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 the stated known limits. Reviews (7) · 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 |
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
ecd03b8 to
421933d
Compare
What Changed
bin/fm-spawn.shnow installs aPermissionRequesthook for Claude workers. It calls the newpermission-requestcommand inbin/fm-busy-event.sh. The command validates the payload and appends a keyedneeds-decisionline tostate/<id>.status. It does not change busy state and does not answer the prompt. Duplicate requests share one key, derived from the incarnation, lifecycle sequence, session, tool input and transcript size.<id>.permission-keyssidecar. The nextapplyof the same incarnation appends one matchingresolvedline.arm,retireand incarnation clearing close every open key before the sidecar is removed, so a relaunch cannot leave a decision open.tests/fm-claude-permission.test.shand the live e2etests/fm-claude-permission-live-e2e.test.sh. Registered both inbin/fm-test-run.shand updated the shard doc, the adapter wiring and t3code tests, the Claude harness reference, the operational-home-layout skill, anddocs/verification/runtime-backends.md.Risk Assessment
✅ Low: The rebase keeps the PR's bounded behavior intact: a Claude PermissionRequest appends one deduplicated needs-decision line under the existing writer lock and gen check, the same incarnation's next apply closes it, and arm, retire, and teardown (via retire) close it; the conflict-resolved shard lists, timing hints, and runtime-backends doc section are consistent with no duplicates or broken anchors.
Testing
Ran the permission and busy-adapter wiring tests; both passed. Ran the opt-in live e2e with the real Claude 2.1.311 CLI, using hooks generated by fm-spawn. A real permission prompt produced a decision signal within 120s, before the 3600s busy bound, and no keys were sent. The full suite was not run.
bash tests/fm-claude-permission.test.sh(real fm-busy-event.sh against a temp state dir)bash tests/fm-busy-adapter-wiring.test.shEvidence: live e2e output
Source: live e2e output
ok - claude 2.1.311 (Claude Code): real auto-mode PermissionRequest produces a decision signal within 120s, before the 3600s busy bound; no keys sentPipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
docs/verification/runtime-backends.md- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-claude-permission.test.sh(real fm-busy-event.sh against a temp state dir)bash tests/fm-busy-adapter-wiring.test.shbash tests/fm-claude-permission.test.shbash tests/fm-busy-adapter-wiring.test.shFM_CLAUDE_PERMISSION_LIVE=1 bash tests/fm-claude-permission-live-e2e.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.