Repository navigation
Bring the #33 promotion fixes for #13/#31 into the promotion candidate (#4) - #40
Merged
Merged
Conversation
…t and speech results (#31) - adoptDisk re-applies every revocation this run knows to whatever it reads, so an older copy restored after a saved revocation cannot bring the app back (Codex P-01 from the #33 promotion check). Test added. - [AGENT-DRAFT] and [AGENT-SPEECH] log lines with the result, the app (or peer pid) and lengths only (Codex P-05 / Claude P-04). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
6a573bb's new restored-file test declared `kept` twice in one scope, so ./build.sh test did not compile. Test-only rename. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…31) NSHomeDirectory() ignores HOME, so fixtures that set HOME still reached the user's Application Support (drafts.sqlite, agent-approvals.json), and helpers built without TTS_AGENT_FIXTURE_KEYS wrote the user's agent-client-keys. - -D TTS_FIXTURE_HOME: only fixture builds take their home from TTS_TEST_HOME, keep sockets relative to the fixture root, use the fixture identity com.codebasic.tts.fixture.receiver, keep helper keys under that home and register no system integration. The product reads no path from the environment. - Tests/Fixtures/fixture_support.py: shared flags, environment and one sign() that refuses product identifiers; ad hoc unless a certificate leaf is pinned. - Fixtures build with the flag instead of patching TTSRuntime.swift, and add Logging.swift where the server needs it. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Approval UI and preview isolation look for "외부 대본 전체 받기" (the old "외부 대본 받기 허용 (이번 실행)" item is gone); the preview checks the fixture-relative socket name under TTS_FIXTURE_HOME. - Instruction candidate pins the probe's own certificate (leaf or, for a self-signed one, root) and gives the adapter copy the fixture identity. - Draft titles, local draft candidate and persistent pairing approve a new agent app once after receipt on (#13), through a registered, certificate- signed launcher where the approval must survive a restart; a different key is a different app (approval_required, not other_agent); receipt off keeps the approval and reports "disabled". The probe reports each request's helper PID so the right one is approved. run_draft_titles passes in full. run_local_draft_candidate and run_persistent_pairing pass their opening scenario groups and still stop at blocks written for the pre-#13 session model (ID-less disconnect/forget, allow-new, keychain slot keys); see #31. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ture (#31) - run_local_draft_candidate: the takeover scenario now uses per-app off (`disconnect <id>`: every session of the app reports "disabled", approval kept), `resume <id>`, and a second session of the same registered app taking over with no new approval when the first ends. The enable-expiry check times the approval request instead of racing the #31 ready signal. - run_persistent_pairing: key reset runs `--forget-key` from the registered app it belongs to and needs one new approval; `forget <id>` revokes the key (status "revoked", also after a client restart) until a reset and a new approval; `disconnect <id>` stays off across client and app restarts and `resume <id>` needs no new pairing. No step was dropped. - run_speech_socket_log (new): one stub-handled and one invalid request through the real LocalSpeechSocket, no audio; checks the [AGENT-SPEECH] lines carry result, pid and length only (the check is skipped when run inside a sandbox, where `log` refuses to run). All runnable fixtures exit 0. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der, no env home (#31) Answers the round-18 Codex review of the P-01 fix: - A known revocation missing from the file read becomes a pending denial, so a failed write-back is retried and only a re-read file settles it. - Only the pairing socket holder writes back; another instance adopts read-only and writes on takeover. - Merging never trims the revocation list (no eviction cascade at the cap). - The product's home comes from the user database (getpwuid), like the helper's key directory; NSHomeDirectory() follows CFFIXED_USER_HOME. - [AGENT-DRAFT] also logs the helper pid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
31a0a62 stopped trimming the revoked list when merging (no eviction cascade at the cap), but the older full-list check still expected the disk's oldest entry to be evicted. It now expects every entry kept plus the replayed revocation. Test-only change. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A second helper of the same app may ask again on a later ready signal, so a fixed 0.3 s check could see a fresh request (3 of 4 runs on 31a0a62). Poll up to 2 s until every request has expired; none is ever approved. Test timing only. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ge, guard file size (#31) Answers the round-19 Codex review: - Revocations the file lacks are put before the file's own, so a later trim (oldest first) drops them before anything the file recorded; the cap is 1024 and a merge holds at most twice that. - commit never writes a file larger than the read limit. - The product home has no environment fallback (getpwuid only, like the helper). - [AGENT-DRAFT] logs the key prefix the connect line shows instead of the approval id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
#31) The poll ended at the first empty list, so a second helper's late request (one signal-driven attempt per second plus 0.25 s jitter, and one follow-up) could appear afterwards unchecked. Ask both helpers first, then require the list to stay empty for 1.5 s within 5 s: late requests also expire and none is approved. Test timing only. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Answers the round-20 reviews (Codex and Antigravity): any cut-off of the revocation list lets a restored older copy, or a retried write, bring a dropped key back. The list now has no count limit; a file that would pass the 256 KiB read limit (thousands of revocations) is not written and the denial stays pending and in effect. Tests cover 2,048 saved revocations with a failed first write and a restored backup, and the read limit. [AGENT-DRAFT] drops the key prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
…31) 29964c0 removed trimming and the merge ordering (revocations are only appended when absent), but the takeover test still expected the older list before the newer one. It now checks that every entry is kept exactly once. Test-only change. Agent: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eping what removes a row (#31) Answers the round-21 Codex finding: two histories that each fit may not fit together. The merge then keeps every revocation that removes a row of the file read, then the file's own, then the newest others, and writes that, so a revoked app with a row in a restored backup stays revoked after a restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
…#31) Answers the round-22 reviews: the fit no longer removes anything from memory or pending, and never drops a revocation the file last read already holds (no safety margin). Past the read limit, commit writes the revocations that remove a row of the file last read, all of that file's own, then the newest others that fit exactly; the rest stay in effect and pending. Nothing is written when even the first two do not fit. Test: two restored backups in a row, the second with K's row, do not bring K back in the run or after a restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
…p a write over it (#31) Answers the round-23 reviews: the skip-identical-write branch compared with a file read before it became unreadable, so turning receipt on left the unreadable file in place. onDisk is cleared when the file is missing or unreadable and the skip needs a readable, open file. The restore test now puts back a copy without K's row before the one with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
…31) Answers the round-24 Codex finding: clearing onDisk also cleared what the fit keeps first, so replacing an unreadable file could push out revocations the last readable file held. lastGood keeps the last intact file for the fit; onDisk (cleared on missing/unreadable) only gates skipping a write. Test: replacing an unreadable near-limit file keeps every revocation it held. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015LJG7KnMPqFcfTZ8A1C2qh
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
This merges
integration/issue-31at6262d82(PR #39) intointegration/issue-4. It fixes the findings in #13/#31 that blocked the #33 promotion check:The evidence, the review verdicts and the follow-ups are in PR #39. At
ee78d9c, Codex and Antigravity both agree to merge into integration/issue-4.Codex P-02 and Claude P-07 are not included. They are held for the user.
Generated by Claude Code