Repository navigation
feat: gate the umbrella where it matters - wire the Claude Code hooks, delete the verify and smoke workflows - #28
Conversation
Claude Code was the only harness running without the git-discipline gates, and it was reading a rulebook 30 lines behind the real one. - .claude/settings.json: add the PreToolUse/Bash hooks block invoking pre-commit-gate.sh + pre-push-gate.sh (timeout is SECONDS here, unlike .reasonix/settings.json's milliseconds). pi, opencode and reasonix already wired these; Claude Code had no "hooks" key at all, so --no-verify, core.hooksPath, force-push and direct-main push were unguarded. - CLAUDE.md: replaced with a symlink to AGENTS.md. The hand-kept copy had drifted on rule 3, rule 6, R0, the hooks doctrine and the PR-body rule, and was missing the whole "Command hygiene & context discipline" section. A symlink removes the duplicate-copy class outright (R3/R5). - AGENTS.md: 22 -> 344 submodules (matches `verify-pins: OK - 344 submodules`); drop `.agents/` from rule 8 (the skills farm was deleted in the marketplace cutover); hooks doctrine now names .claude/settings.json, true as of this commit. - reasonix.toml: drop the allow-list entry reading the deleted .agents/skills/.charly-profile.json. - .github/workflows/verify.yml: run check-harness-parity.sh in CI - the "identical by design" claim was enforced only when a human ran `task harness`. - .gitignore: .claude/scheduled_tasks.lock, a session-local runtime lock that sync.yml's `git add -A` would otherwise sweep in. Claude-Session: https://claude.ai/code/session_01RGZ2FckswfKoQZMxY4fMrk
Review — BLOCKHead SHA: Change class: harness configuration + instructions (config + docs; no Go, no pins, no scripts' behavior). Security screen: PASS — the PR strengthens gates (wires the previously-unwired Claude Code Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
The umbrella pinned plugin-gpu at 467d733d, which no longer exists on the remote (force-pushed away). verify.yml checks out with submodules: recursive, so the dangling pin broke the gate. Advance the gitlink to the current default-branch HEAD c2f2474 (tag v2026.240.0125).
Review — PASSHead SHA: Security screen: PASS — the PR strengthens gates (wires the previously-unwired Claude Code Checklist: All applicable rules PASS or NA. Prior
Remaining "Also found" items are either fixed in-tree, routed to a NAMED target ( Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Validator BLOCK 2 (R5 sweep completeness) was right, though not where it looked: the R0 section of AGENTS.md is clean, but .pi/extensions/umbrella-gates.ts still resolved every skill from the deleted .agents/skills/ farm, so the umbrella_load_skills tool returned [SKILL NOT FOUND] for all six dispatcher entries. - .pi/extensions/umbrella-gates.ts: resolve SKILL.md from the marketplace/ submodule, mapping plugin to source dir via marketplace/.claude-plugin/marketplace.json (with a charly-<dir> convention fallback). Also normalise the hardcoded git-workflow fallback from the farm filename form charly-internals--git-workflow to the dispatcher form charly-internals:git-workflow, which the new splitter parses. - HARNESS-PARITY.md: record the CLAUDE.md decision the phase log asks to have recorded (pointer, not copy), and correct the quoted rule 8 text, which still listed .agents/. Claude-Session: https://claude.ai/code/session_01RGZ2FckswfKoQZMxY4fMrk
Review — PASSHead SHA: Security screen: PASS — the PR strengthens gates (wires the previously-unwired Claude Code Checklist: All applicable rules PASS or NA. Prior
Attribution tier Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
An audit of what verify actually asserts, judged against the README contract that the umbrella is "a view of the org, not a new home for anything" (nothing builds, deploys, publishes or releases from it): - dir-exists / clean-tree / gitlink==HEAD / charly nested init: actions/checkout CREATES exactly this state. They can only fail if checkout already failed, which already fails the job. Empty in CI. - .gitmodules url/branch sanity: a malformed entry fails the checkout step itself. - branch== real remote default (344 ls-remote, 163 s): reads remote state no PR diff can change, and sync-gitlinks.sh, its only consumer, fails on its own if stale. - policy B, the umbrella-gates.ts parse, and harness parity are the only assertions a commit can actually violate. Together they cost about a second. So the gate moved to where a commit is: hooks/pre-commit, installed per clone with `task hooks`. The whole-tree assertions stay in `task verify` as the on-demand local audit, where they are load-bearing (proven: de-initialising a submodule makes it fail). smoke is separately redundant: charly/go.work has one member (use ./charly), every candy resolves from the Go proxy, and charly ci.yml already runs go test ./charly/... plus gofmt on those commits. It re-tested a snapshot charly had already tested. R3 sweep while extracting: the CHARLY_PINNED map was copy-pasted verbatim into both verify-pins.sh and sync-gitlinks.sh. It now has one home, scripts/lib/policy-b.sh, sourced by both, with the comparison itself in scripts/check-policy-b.sh so the hook and the full gate share one implementation. sync.yml drops submodules: recursive too - it was the last one. The 344 root submodules are 25 MB; recursive added 11,121 MB, 209 redundant clones of charly.git, none of which sync-gitlinks.sh reads. R1/R5 stale-reference sweep: pr-validator.yml, AGENTS.md R7, README.md (twice), HARNESS-PARITY.md (twice), umbrella-gates.ts injected prompt, and check-umbrella-gates-syntax.mjs all claimed a CI gate that no longer exists. BREAKING - requires a settings change before merge: ruleset 21198628 still lists `verify` as a required status check. Merging this without removing that context leaves every PR waiting forever for a check that can no longer report. Claude-Session: https://claude.ai/code/session_01RGZ2FckswfKoQZMxY4fMrk
Review — BLOCKHead SHA: Change class: harness config + instructions + gate-machinery change (deletes CI workflows, adds pre-commit hook + new scripts, pin bump). Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no scope mismatch (every diff file is accounted for in the body), no supply-chain concern (the Checklist: All applicable rules PASS or NA. Prior
Non-blocking note: the body's Summary says "Three commits" while the history has four (the Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: gate machinery + harness configuration + instructions (deletes CI Blocks
Comment intake
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
|
Maintainer sign-off. I directed this change. I asked for the audit of what I accept the consequence the body states without hedging: there is no longer any server-side enforcement of the pinning invariants. I have also consolidated branch protection accordingly: Posted from my account by Claude Code at my explicit direction, in this session. |
Review — PASSHead SHA: Change class: gate machinery + harness configuration + instructions (deletes CI Security screen: PASS. The T4 guardrail change (deleting server-side Checklist: All applicable rules PASS or NA. Comment intake:
Placement: CORRECT — umbrella-root hooks/scripts/workflows/config are the right layer for org-level gating; no core/sdk/candy placement concerns. Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…643) * chore(pins): advance charly, crabbox and docs to their served mains Three umbrella pins behind their producers' served main, advanced through `charly task sync` (verb:git-submodules bump). Each target was verified as on the producer's merged origin/main before pinning. - charly 52145aff0b -> b379120b55 (served main). The served ref is past the requested a384bed6: it is the tag-on-merge CHANGELOG for PR #1047 (2026.296.2116), five merged commits after a384bed6. Pin the served ref. - crabbox 0df9b8b92b -> 4ffefd37be (main, 2026-10-23T21:21:47Z, "an honest declared surface, a fail-closed criu, and a live CI smoke row", #28). crabbox has NO tag-on-merge workflow and NO CalVer tag; the merged commit is pinned and no tag was hand-created. The gap is tracked at opencharly/crabbox#19. - docs 1ab65a75ab -> 5e26799086 (main; tag v2026.296.2006 at f3bd7cc5, and the served head is its tag-on-merge CHANGELOG commit). The newer sync verb also advanced three unlisted pins in the index (layer-charly-internals, plugin-kubevirt, plugin-task). They are outside this wave's scope and were restored to their base gitlinks; disclosed for the next wave. sdk moved on its remote during the wave and is likewise left for the next wave. layer-containerd, layer-krun and layer-criu have no umbrella gitlink; they are reported, not added (#480). Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore(pins): re-freeze the wave-6 head with the re-taken gate transcript No tree change: the three gitlink advances are unchanged. This round fixes the PR body only, per the validator BLOCK on fa8f9eb: - the head and the charly checkout SHA are now printed immediately before each measurement, so the transcript is self-attributing; - the plugin-task served-SHA difference between the before and after runs is reconciled: its remote moved (c90827531d -> 0a3785d2f6) during the wave, as did sdk (7727b6d501 -> d515baf89d); both are out of scope and left for wave 7; - the crabbox untagged pin now cites the wave brief's explicit clause. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
Four commits — three below, plus
4f16d40(not mine), theplugin-gpupin advance covered under Change classification. One theme: make the umbrella's gating match what actually needs gating. Claude Code was running with no git-discipline hooks at all and a rulebook 30 lines out of date; the CI gate was spending 44 minutes asserting things a checkout had already guaranteed.1.
feat: wire the Claude Code gates and collapse CLAUDE.md into AGENTS.md.claude/settings.jsonhad nohookskey (grep -c '"hooks"'→0)..claude/hooks/pre-commit-gate.shandpre-push-gate.share written to the Claude CodePreToolUse(Bash)contract and work, but nothing invoked them — pi, opencode and reasonix all wired them; Claude Code did not.--no-verify,core.hooksPath, force-push and direct-mainpush were unguarded there. Now wired.CLAUDE.md→ symlink toAGENTS.md. The hand-kept copy had drifted on rule 3, rule 6, R0, the hooks doctrine and the PR-body rule, and was missing the entire Command hygiene & context discipline section. SinceCLAUDE.mdis the file Claude Code reads, all of that was live misinformation. A symlink removes the duplicate-copy class instead of re-syncing it (R3/R5).AGENTS.md:22→344submodules;.agents/dropped from rule 8; hooks doctrine corrected.reasonix.toml: dropped the allow-list entry reading the deleted.agents/skills/.charly-profile.json..gitignore:.claude/scheduled_tasks.lock.2.
fix: complete the .agents/ sweep — pi skill loader reads the marketplace.pi/extensions/umbrella-gates.tsstill resolved every skill from the deleted.agents/skills/farm, soumbrella_load_skillsreturned[SKILL NOT FOUND]for all six dispatcher entries. It now resolves from themarketplace/submodule viamarketplace/.claude-plugin/marketplace.json.3.
feat: delete the verify and smoke workflows; gate on commit instead— the guardrail change, justified in full below.Why the CI gate was deleted (T4 — guardrail change, explicit justification)
This is a deliberate weakening, requested by the maintainer after being shown the audit and the trade-off. It is not incidental. What is lost is stated plainly at the end of this section.
Judged against the
README.mdcontract — the umbrella is "a view of the org, not a new home for anything", and no workflow builds, deploys, publishes or releases:verify[ -d $path ], clean tree,gitlink == HEAD, charly's nested initactions/checkoutcreates this state; can only fail if checkout already failed, which already fails the job.gitmodulesurl=/branch=,>=20modulesbranch=equals real remote default (344ls-remote, 163 s)sync-gitlinks.sh, its only consumer, fails on its own if staleumbrella-gates.tsparses, harness parityhooks/pre-commitEmpirically confirmed rather than argued: on a clean tree
git submodule status | grep -cE '^[+U]'is0, andpod-chrome-cdppasses the clean-tree andgitlink == HEADassertions while its own nestedcharlyis uninitialized.smokeis separately redundant (R3):charly/go.workhas one member (use ./charly), every candy resolves from the Go proxy at a pinnedgo.modrequire, and charly's ownci.ymlalready runsgo test ./charly/...+gofmton those commits. It re-tested a snapshot charly had already tested.What is genuinely lost, stated without hedging: server-side enforcement.
hooks/pre-commitis per-clone (needstask hooksonce), and--no-verifybypasses it for a human at a terminal — the harness gates still block that for agents. A contributor who never installs it gets no gating. After this,validateis the only thing running on the server. The full pinning audit is demoted to on-demandtask verify; it is still load-bearing there, proven below. The maintainer accepted this trade-off explicitly.Prerequisite before merge — otherwise every PR blocks forever
Ruleset
21198628(main-protection) still listsverifyas a required status check. With the workflow deleted, that check can never report and every PR sits on "Expected — Waiting for status to be reported". Do not merge until theverifycontext is removed from that ruleset. Both rulesets then require onlyvalidate / validate, which also resolves the pre-existing overlap between21198628and21226877(the latter already required onlyvalidate).Verified safe: the shared validator has no code dependency on a check named
verify—dotgithub/.github/workflows/pr-validator.ymlmentions "verify/go" only in a header comment; it enables native auto-merge and lets branch protection do the waiting.R3 sweep performed while extracting
declare -A CHARLY_PINNEDwas copy-pasted verbatim into bothverify-pins.shandsync-gitlinks.sh. Reimplementing it a third time in the hook would have been the duplication R3 forbids, so it now has one home —scripts/lib/policy-b.sh, sourced by both — with the comparison itself inscripts/check-policy-b.sh, called by the hook and byverify-pins.sh.sync.ymlalso dropssubmodules: recursive, the last one: the 344 root submodules are 25 MB,recursiveadded 11,121 MB (209 redundant clones ofcharly.git), none of whichsync-gitlinks.shreads.R1/R5 stale-reference sweep
Deleting the workflows falsified seven claims; all corrected in the same commit:
.github/workflows/pr-validator.yml(x2),AGENTS.mdR7,README.md(x2),HARNESS-PARITY.md(x2), the injected prompt text in.pi/extensions/umbrella-gates.ts, and the header ofscripts/check-umbrella-gates-syntax.mjs— each claimed a CI gate that no longer exists.git grep "the CI gate"now returns nothing outsideCHANGELOG/.How tested
The new hook blocks all three things it exists to catch. Each break was made, a commit attempted, and the tree restored;
HEADnever moved (a search of all refs for the test commit messages returns0):A clean commit passes — this PR's own third commit printed
pre-commit: OKimmediately before[feat/claude-harness-wiring 5a5c8ff].The demoted assertions are still load-bearing in
task verify— de-initialising a submodule makes it fail, which is exactly why they stay there rather than being deleted:Full gate, green on the committed tree (R10):
The extraction is behaviour-preserving:
verify-pins.shstill endsverify-pins: OK - 344 submodules, policy B holds, now via the extracted script.The Claude Code hooks from commit 1 fire live in-session (these are the harness's own
PreToolUseerrors, not manual script runs):They also caught this PR's own work twice: the second commit was blocked as untokenizable until it used
-F <file>, and the edit publishing this very body was blocked for the same reason and rewritten rather than bypassed.Symlink resolves with no drift:
git ls-files -s CLAUDE.mdshows mode120000;readlink CLAUDE.mdgivesAGENTS.md;diff CLAUDE.md AGENTS.mdis empty.Working-tree repair before any of this: 114 submodules were half-checked-out (only
.git, every file staged-deleted — an interruptedgit submodule update). Restored withgit submodule update --init;git submodule status | grep -c '^+'then returned0. No pin was hand-edited (R4).Not covered by testing: whether
sync.ymlstill produces identical pins under the non-recursive checkout — it is a nightly cron and has not run since the change. The reasoning is thatsync-gitlinks.shfetches and detaches root submodules and readsgit -C charly ls-tree HEAD(a tree object) for the distro pins, so no nesting is read; the next 03:17 UTC run confirms it.Rulebook compliance
charly/.claude/settings.jsonhas the same missing-hooksbug and was deliberately left alone; it needs its own PR toopencharly/charly. Staging was by explicit path, nevergit add -A.hooks/pre-commitis activated by repo config (core.hooksPath), which is not the inline-c core.hooksPath=...bypass thatgitcmd.pyblocks. Policy B is still asserted, now per commit.git statusbefore each destructive step; no force-push, no--no-verify, no direct push tomain.plugin-gpuand labelled it "pre-existing"; that was root-caused to an empty object store left by my own aborted recursive submodule update and retracted —98941f3is present and the pin is valid. The one item routed elsewhere names its exact target repo and fix.CHARLY_PINNEDduplication removed rather than tripled; theCLAUDE.mdcopy deleted rather than re-synced.Change classification
scripts/check-policy-b.sh,scripts/lib/policy-b.sh,hooks/pre-commit,verify-pins.sh,sync-gitlinks.sh) and delete two CI workflows. No Go. One pin moves —plugin-gpu467d733dtoc2f2474in commit4f16d40(not mine), to the default-branch HEADsync-gitlinks.shwould pin anyway; for the record its "was dangling" premise does not hold, sincegit -C plugin-gpu branch -r --contains 467d733dlistsorigin/main.task verify+task harness+check-policy-b.sh, green on the committed tree, plus live proof that every gate blocks — the three pre-commit breaks and the two Claude CodePreToolUseblocks above.fully tested and validated.Assisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)
https://claude.ai/code/session_01RGZ2FckswfKoQZMxY4fMrk