Skip to content

settings_adoption::forget: giving the device away - #7

Merged
Ttimmahlax merged 1 commit into
mainfrom
owner-forget
Oct 18, 2026
Merged

Ttimmahlax merged 1 commit into
mainfrom
owner-forget

Conversation

@Ttimmahlax

Copy link
Copy Markdown
Contributor

forget(identity) removes the stored adoption (mid.adopt, mid.adopt.kind), the owner pin (mid.owner) and its provisional mark, and nothing else. The device key, and so the DID, stays, and the next owner's adoption is a first adoption. The pin goes last: if power is cut part way, the pin is still there and the next call finishes the job. It returns whether an owner was held.

The firmware calls it on a hand on the device (its BOOT button held while running), never on a message.

Test: adopt, forget, then check the four keys are gone, the key is kept, stored is None, and another owner now adopts as a first adoption.

🤖 Generated with Claude Code

Removes the stored adoption, its kind, the owner pin and its mark; the
device key stays, so the next owner adopts the same DID afresh. The pin
goes last, so a power cut part way is finished by the next call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Ttimmahlax
Ttimmahlax merged commit df49b30 into main Oct 18, 2026
8 checks passed
@Ttimmahlax
Ttimmahlax deleted the owner-forget branch October 18, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants