Repository navigation
Conversation
|
Speaking as Kun's firstmate: thanks @Azd325. I read the whole PR and the diff. The hook only records the decision. It never answers the prompt, and it leaves busy state alone, which is the right shape for a security decision. Where it stands:
Next step: we're waiting on the CI re-run. If it comes back green, this goes to Kun for a merge-or-leave call, because it adds a default-on hook and wake. That will be a captain decision. Nothing is waiting on you unless the re-run fails again in those tests. |
|
Two CI shards are red on head
The other 17 checks pass. |
|
Speaking as Kun's firstmate: thanks @Azd325, and thanks for checking the watcher test against main. Where it stands on head
My contract-class verdict is unchanged: new-default. Every Claude worker and secondmate launch gets a new Next step: we're waiting on CI only. Nothing is needed from you right now. If the re-run comes back green, this goes to Kun for a merge-or-leave decision (captain decision, not waiting on you). If |
|
Speaking as Kun's firstmate: thanks @Azd325 for bringing this up to date with main. I re-read the new head CI: 18 of 19 green, and the serial 5 failure from last time is gone. The only red is contract-class: new-default (unchanged): every Claude worker and secondmate launch gets a new VISION, rule by rule: One captain aligns (a stuck permission prompt reaches the first mate instead of silently stalling). Authority aligns (the hook records the decision and never answers it). Scripts/judgment aligns. Restart aligns (a keyed, deduplicated status line). Delegation aligns. Vendor aligns (it uses Claude's documented hook, not the rendered surface). Scope aligns. Nothing is needed from you right now. If the serial 2 re-run comes back green, this goes to Kun for a merge-or-leave decision. That will be a captain decision, not waiting on you. |
|
Speaking as Kun's firstmate: thanks @Azd325 for keeping this current. Delta since my 10-21 stamp ( CI: 18 of 19 green. Contract-class: new-default (unchanged). Every Claude worker and secondmate launch gets a Nothing is needed from you. If the re-run is green, this goes to Kun for a merge-or-leave decision. That's a captain decision, not waiting on you. |
|
Speaking as Kun's firstmate: thanks @Azd325. The re-run came back green. All 19 checks pass on head Contract-class: new-default (unchanged). Every Claude worker and secondmate launch gets a This goes to Kun now as a merge-or-leave decision. It's a captain decision, so it isn't waiting on you. |
a8b495b to
4da203b
Compare
[Medium impact] The PR appears safe to merge with no new actionable findings. Reviews (8) · Last reviewed commit: "no-mistakes(document): Document permissi..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thanks @Azd325 for the re-raise. On head I've added the |
|
Speaking as Kun's firstmate: thanks @Azd325. The full suite ran on head Behavior portable parallel 1, The other red lane, serial 6 ( Waiting on you: update that expected hook set and re-raise through |
020260a to
b6769e4
Compare
|
Speaking as Kun's firstmate: thank you @Azd325, this round fixes both things that were open. The full suite on Waiting on you for one thing. The no-mistakes attestation for Contract-class: new-default (unchanged). Every Claude worker and secondmate launch gets the |
8382b66 to
96fd2b9
Compare
|
Speaking as Kun's firstmate: thank you @Azd325 for the clean re-raise. On head Waiting on you for two small things before this can go to Kun:
I've left the |
|
Live validation on head 96fd2b9c, this time with node on PATH (v24.22.2). Ran in a temporary lab home, with no shared state or sessions touched:
The live test uses fm-spawn to generate the worker settings with the PermissionRequest hook, then a real Claude permission prompt raises the decision signal through that hook. |
96fd2b9 to
38cbf76
Compare
|
Speaking as Kun's firstmate: thanks @Azd325 for the re-raise. On Test coverage guard (job The fix: add provisional serial hints for both scripts in I'm leaving |
38cbf76 to
ecd03b8
Compare
|
Speaking as Kun's firstmate: thanks @Azd325, that fixed it. On The full suite is still red, but neither failure comes from this branch. One lane hits a test that is currently broken on main too. The other, The next step is ours (the full-suite re-run), not yours. Contract class (my own read): new-default, because every Claude spawn gets the |
ecd03b8 to
421933d
Compare
Report permission requests through durable decision status without answering the security prompt. Deduplicate repeats within the armed worker incarnation and preserve the busy record. Refs kunchenguid#7105
… a permission `needs-decision` opened by an incarnation must close when that incarnation resumes work. - `permission-request` now also records `<gen> <key>` in a new sidecar, `state/<id>.permission-keys`. It does this only when it appends a new status line, under the writer lock. - The next `apply` of the same gen appends `resolved [key=…]` once for each matching key. It then removes the sidecar. Other gens' lines are skipped. - `arm` and `retire` clear the sidecar through `clear_stream_incarnation`. - No new command, no message to the worker, and no crew-state output change. I added `test_resume_closes_the_decision` to `tests/fm-claude-permission.test.sh`. The test covers the full flow: the request opens the decision, a resume event closes it, `status_own_open_decisions` is empty, and a second event adds no second resolved line. `tests/fm-claude-permission.test.sh` passes with the fix. With the `bin/fm-busy-event.sh` change stashed, it fails with "resume left the decision open". I ran only that test file, not the wider suite. I changed nothing for ci-1 (full-ci label) and posted no PR comments
…ion` must close before its worker incarnation is discarded. I added `close_permission_keys [gen]` in `bin/fm-busy-event.sh`. `clear_stream_incarnation` calls it with no gen. That makes `arm` and `retire` append `resolved [key=…]` for every stored key before the sidecar is removed. The `apply` resume path now calls the same helper with its own gen, which replaces the inline loop. I added `test_relaunch_closes_the_abandoned_decision` to `tests/fm-claude-permission.test.sh`. With the `bin/fm-busy-event.sh` change stashed, it fails with "relaunch left the decision open". With the change, it passes. I raised two status-line counts in `test_request_identity_and_generation` from 2 to 4 and from 3 to 5. They now include the resolved lines that `arm` appends. All four tests in that file pass. I did not run the wider suite. I posted no PR comments
421933d to
aaa7d77
Compare
|
Speaking as Kun's firstmate: thanks @Azd325 for the rebase. Head is now What I checked: the PR's Contract class: new-default, unchanged: every Claude spawn gets the |
What Changed
bin/fm-busy-event.shnow tracks Claude permission requests with a per-request key sidecar. A permission prompt raises aneeds-decisionevent that wakes the supervisor. The event closes withresolved [key=…]when the request resolves.arm,retire, and theapplyresume path close every stored key before the worker incarnation is discarded, through a sharedclose_permission_keyshelper.bin/fm-spawn.shis wired to match.tests/fm-claude-permission.test.shcovers request identity, generation, and closing the abandoned decision on relaunch.tests/fm-claude-permission-live-e2e.test.shis a live end-to-end test.tests/fm-busy-adapter-wiring.test.shandtests/fm-backend-t3code.test.share adjusted for the new events.bin/fm-test-run.shandtests/fm-test-ci-timings.tsvregister the new tests with serial duration hints.docs/verification/runtime-backends.md,docs/fm-test-portable-shards.md, and the operational-home-layout skill now describe the permission-keys sidecar and the close-on-resume behavior.Risk Assessment
✅ Low: Apart from the conflict merges, the rebased diff matches the pre-rebase PR head 421933d line for line. The two merges are the shared shard-family line in bin/fm-test-run.sh, which now also keeps upstream's fm-codex-account-quota entry, and the new rows in the upstream timings table. The bin/fm-busy-event.sh diff is identical to the old head, so behavior is unchanged as the intent requires.
Testing
I ran the focused permission test file, which passed all four tests. I also ran the opt-in live e2e test against real Claude Code 2.1.326. A real auto-mode permission prompt raised a decision signal through the generated hook within 120s, with no keys sent. The earlier untested live scenario is now covered. I did not run the full suite.
Evidence: permission test log
Source: permission test log
Evidence: live Claude permission log
Source: live Claude permission log
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
bin/fm-test-run.sh- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
docs/fm-test-portable-shards.md:24- The new Claude-permission hint sentence sits between thefm-pi-bash-timeoutprovisional-hint sentence (line 23) and its follow-up "Replace it with an Ubuntu timing-artifact maximum at the next CI refresh" (line 25). "it" now reads as if it refers to the Claude hints, which separates the pi-bash-timeout instruction from its subject. Move the new sentence after line 25 so each provisional-hint note stays complete.✅ **Test** - passed
✅ No issues found.
bash tests/fm-claude-permission.test.shFM_CLAUDE_PERMISSION_LIVE=1 bash tests/fm-claude-permission-live-e2e.test.sh(real Claude 2.1.326 on the normal login)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.