eval: guard authenticated live-daemon registry recovery - #55
Open
schickling-assistant wants to merge 3 commits into
Open
Conversation
agent-session-id: a078daee-6f98-4916-91a8-d21291407789 agent-tool: Codex CLI agent-tool-version: 0.145.0 agent-model: unknown agent-runtime-profile: /nix/store/mnx8agbdq3wiyb6vz63lhgscgazkrn98-coding-agent-runtime-profile/share/coding-agents/profile.json agent-skills-manifest: /nix/store/5r69m9k2llmri3na81518zx0a7y0d3cn-agent-skills-corpus/share/agent-skills/manifest.json tooling-profile: dotfiles@0fb7e03
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 #54.
Paired implementation: compoundingtech/pty#128, the selected issue #126 protocol.
Summary
Rewrites the deterministic, model-free
pty-live-recoverycell for PTY PR #128’s authenticated snapshot/revision contract. This is a held-out protocol rewrite, not a metadata-only retarget of the incompatible, superseded PR #127 oracle.The cell uses only eval-owned synthetic PTY roots and providers. It proves:
pty recover <name> --snapshot <metadata.json>as the explicit surface;session_start;.recoverypermission downgrades before request/result, lock, socket, PID, or metadata publication;Exact dependency
PTY PR #128 head:
f70f85baa89145136a63cc9909fc2423bd3d1e7d.Local exact-source build provenance:
43189b5b5b1d560be4b9102d2ed0793d89b9b01dbb3bbd976948f10c6669118d60e90a8a0041845c0e382e2cf3873c005bed2a95db8991697e0449c3a71a558df0dfc647f0592f9b273559d561ff9111b2af71c48ba569f4105401994808c0a03f6bfd8ab6a1544cd4f2dbd2bd05eb11c3a631e15f1a4e15bddb1124f4277490This is exact-source draft evidence, not a merged PTY release artifact.
Review-red closure
The predecessor cleanup could ignore a daemon termination timeout and prove only that registry roots were removed. Cleanup now binds every captured PID to its Linux process-start token, sends bounded TERM, uses bounded KILL only while that exact captured identity remains alive, and fails if any tracked identity survives. A TERM-resistant synthetic sentinel forces the KILL path on every green run. The judge requires the receipt’s
allTrackedDaemonsDeadfact, a positive captured-daemon count, and a positive fallback count in addition to root removal.Validation
At eval head
eed04b13ea26d984e0192c10da0e76b9aba37a03:0/8pty-live-recovery:11 PASS / 0 FAIL / 11 gating judges9887b2842222def0838c2cd82e6c24c218f7efa6, binary SHA256d49d44fd4f3f6f655455c212353a469fefa956082bedf22163deb767d8a36a0dNo production recovery, paid call, provider call, merge, or deployment was performed.