feat: recover unlinked live daemon registry - #127
Closed
schickling-assistant wants to merge 3 commits into
Closed
Conversation
Collaborator
|
Closing as superseded by #128, the selected issue #126 implementation. The two approaches are protocol-incompatible. Exact review found #127 does not provide the accepted capability/HMAC authorization, signed mutable-metadata revision binding, or private root/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #126.
Summary
Adds a fail-closed
pty recover-live --metadata <snapshot.json> <name>path forfuture daemons whose pathname socket and registry sidecars are accidentally
unlinked while their provider is still alive.
The original daemon watches for a short-lived authenticated request and:
the full persisted launch shape;
the captured metadata plus authoritative launch fields;
There is no process signal and no provider restart. Unsupported snapshots fail
before publishing a request.
Important applicability boundary
This does not recover daemons that were already running before this code.
Those processes have no request watcher or protocol/start-token marker and
cannot be upgraded in place. The CLI deliberately refuses their snapshots;
they must remain alive and use an existing attachment or transcript fallback.
Reproduction
https://github.com/schickling-repros/2026-07-pty-unlinked-live-daemon
Verification
npm run typechecknpm run buildPaired eval: compoundingtech/evals#54 and compoundingtech/evals#55.
Posted on behalf of @schickling
agent_nameagent_session_idagent_toolagent_tool_versionagent_runtimeagent_modelruntime_profileskills_manifestworktreemachinetooling_profile