Skip to content

docs: record daemon ownership state machines - #4964

Merged
thymikee merged 1 commit into
0.22from
docs/0.22-daemon-state-machines-adr
Nov 22, 2026
Merged

thymikee merged 1 commit into
0.22from
docs/0.22-daemon-state-machines-adr

Conversation

@thymikee

@thymikee thymikee commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Accept ADR 0040 for lifetime-scoped session authority, shared expiry settlement, and producer-owned output. Record the five transition owners, the mixed-version contract, and the seven-step migration. The evidence note records the 0.22 baseline. Related work: #4949, #4950, #4960.

Before / after

Documentation only. Daemon and client behavior are unchanged.

Validation

At 1e051f88d37b4fdb00b8f0f21b9255e064cc0cca, ADR citations and local ADR links passed. Formatting, the build, docs prose, site links, command reference, and the capability matrix passed locally. The serialized affected check passed at this exact commit with adr-citations as its selected check. Runtime and device tests do not apply to this documentation change.


Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 1e051f8

No open findings.

Reviewed with this repository's own Sentinel configuration (e10ad0cc2fb8).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at 1e051f8: the ADR transitions are consistent with the 0.22 baseline code paths and the existing ADRs. Not blocking, and fine to take or leave: the row in daemon-session-authority-0.22.md says the store offers journal access by name but links recordAction(ref, ...), which is ref-based, so pointing it at recordEvent/readEvents (L254 onward in session-store.ts) would match the text; and the ADR could say in the Decision intro that its tables describe the target machines, not 0.22 behavior. No conflicts are known. The Body rules check was cancelled, not failed, and the diff touches only ADR and evidence markdown, so it looks unrelated; the other 6 checks passed. Not verified here: the transitions against an implementation (none exists yet), the ADR citation and docs gates run locally, and the full session-teardown path called from lease expiry. Before merge, re-run the cancelled Body rules check.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 22, 2026
@thymikee
thymikee merged commit 8765b19 into 0.22 Nov 22, 2026
6 of 7 checks passed
@thymikee
thymikee deleted the docs/0.22-daemon-state-machines-adr branch November 22, 2026 18:57
hannojg pushed a commit to hannojg/agent-device that referenced this pull request Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant