Repository navigation
fix(harness): name the gates the umbrella's pre-commit hook actually runs - #394
Conversation
…runs Both published descriptions of that gate were one change behind the hook itself. `charly.yml`'s `hooks` task advertised a mechanism that no longer exists: "Install the pre-commit gate for this clone (policy B + parity)". Parity was real when f230518 (#247) wrote it: that commit's own hooks/pre-commit listed "harness parity -- the 5 files byte-identical to charly's by design" and called `"$CHARLY" task harness` (verb:file-parity) at the end of the gate. f092c21 (#341, "rule 8 reversal" in its own subject -- the same content is rule 5 in today's AGENTS.md) absorbed the harness config into the umbrella and deleted the mechanism, leaving the sentence that announced it. Nothing has been compared since: `grep -rn -i parity hooks/ scripts/` returns 0, and AGENTS.md rule 5 states the position outright, "no mirrors, no parity gate". What the hook runs is policy B, the self-tests, and the opencode, pi and pr-watch gate scripts. `hooks/pre-commit`'s own header carried the same staleness in the other direction: cfd30b2 (#390) added the pi gate call to the body without adding it to the list of what the hook runs, so the header said four gates while the file ran five. Both now name the five gates. The task description enumerates them because that is this surface's own idiom -- `verify`, `map` and `self-test` say what they run too. Proved on the tree, by execution rather than inspection: `charly task list` renders the new description; `charly task hooks` reports the plan step and leaves `core.hooksPath = hooks`; `node scripts/check-harness-config.mjs` passes; and the changed hook itself ran all five gates green on this commit. Agent: readme-truth - session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — diff is description/comment-only; the Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Both published descriptions of the umbrella's pre-commit gate were one change behind the
hook they describe. This brings them current. Nothing else changes.
charly.yml— thehookstask description said(policy B + parity). Parity wasreal when
f230518(feat(task): replace the umbrella Taskfile + scripts with the charly task surface #247) wrote it: that commit's ownhooks/pre-commitlisted# 2. harness parity — the 5 files byte-identical to charly's by design(
charly task harness→verb:file-parity) and ended the gate by calling"$CHARLY" task harness.f092c21(refactor(harness)!: absorb every harness's config into the umbrella (rule 8 reversal, the #317 absorb leg) #341 — "rule 8 reversal" in its own subject; thesame content is rule 5 in today's
AGENTS.md) absorbed the harness config into theumbrella and deleted the mechanism, leaving the sentence that announced it. Nothing
has been compared since:
grep -rn -i parity hooks/ scripts/returns 0, and rule 5states the position outright — "no mirrors, no parity gate".
hooks/pre-commit— the header listed four gates; the file runs five.cfd30b2(feat(harness): restore the umbrella pi harness config (.pi/) #390) added the pi-gate call to the body without adding it to the list of what the hook
runs, so a reader learned about four of the five gates it actually runs.
Both now name the five gates the hook runs: policy B, the self-tests, and the opencode, pi
and pr-watch gate scripts.
References umbrella#393 (closed by hand when this merges; the
Closeskeyword does notauto-close in this org).
How tested
Every changed path, executed live on the final committed tree. The changed hook is the
strongest part of this: it ran this commit, so the gate this PR describes gated its own
change.
--- host AS IT IS; no mount namespace, no over-mount, no exported variable ---
uname: Linux 7.2.4-arch1-2 x86_64 node: v26.8.2 git: 2.55.0
/usr/lib/charly/plugins entries: 21 (the charly package IS installed here)
CHARLY_PLUGIN_ONLY= CHARLY_PLUGIN_DIR= CHARLY_REPO_OVERRIDE=: the shell's own environment
cwd: /home/atrawog/Sync/Atrapub/lo/opencoder/opencharly/.worktrees/readme-truth/umbrella-hooksfix
head: a29b203 (the commit this PR publishes)
tree: b091168e98297f1371b5b07ea6d95c6ba2570b46
binary: ./charly/bin/charly — 2026-10-06T14:29:48, built by charly/scripts/bootstrap-charly.sh in THIS worktree from its own charly commit c5ea6c91
git status --porcelain: '' (empty: the measured tree IS the committed tree)
$ ./charly/bin/charly task list # the changed manifest, loaded live
WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
hooks Install the pre-commit gate for this clone (policy B, the self-tests, the opencode, pi and pr-watch gates)
map List every submodule with its pin and sync state
org-map Verify the README "## The org map" tables against the repo and .gitmodules
pins The policy-B pin operation over the distro-* set (mode via param)
policy-b Assert policy B — every distro-* gitlink equals charly's own box/* gitlink
prune Reap merged-upstream session worktrees + branches (MODE=report is a dry run)
self-test Self-test the committed CI body/pin-evidence builders + the dispatcher splice
skills Splice the generated R0 dispatcher from the pinned marketplace into AGENTS.md
sync Bump all submodule pins per policy B (preview; does not commit)
verify Run the full pinning gate on demand (every pin, incl. the remote branch audit)
LIST_EXIT=0
$ ./charly/bin/charly task list | grep -E "^hooks" # the one changed line
hooks Install the pre-commit gate for this clone (policy B, the self-tests, the opencode, pi and pr-watch gates)
$ ./charly/bin/charly task hooks # the step body that description describes
WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
task hooks: 1 step(s), 0 failed
[pass] run — set core.hooksPath and report it
exit=0
HOOKS_EXIT=0
core.hooksPath after: hooks
$ node scripts/check-harness-config.mjs # the script that audits the root harness surfaces
PASS .reasonix/watch.items (the reasonix watch binding) exists
PASS marketplace/DISPATCHER.md not checked out — dispatcher-coverage check skipped
check-harness-config: OK
HARNESS_CFG_EXIT=0
pre-commit: running the umbrella gate...
WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-kind_candy_plugin-example-kind-eff4b4afe8a1bcaf (build stamp c44db74c3a0bcaea); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
plugin plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/plugin-example-structkind-8118c4c7a1383690 (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
plugin github.com/opencharly/plugin-jetkvm/candy/plugin-jetkvm: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-jetkvm_candy_plugin-jetkvm-83463bca18e86bd7 (build stamp f932c2ea1cf155ae); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-jetkvm
task policy-b: 1 step(s), 0 failed
[pass] check — policy B holds
ran 1 task(s), 0 step(s) failed
WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
plugin plugin-example-kind: served from /home/atrawog/.cache/charly/plugins/plugin-example-kind-eff4b4afe8a1bcaf (build stamp c44db74c3a0bcaea); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
plugin plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/plugin-example-structkind-8118c4c7a1383690 (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
plugin github.com/opencharly/plugin-jetkvm/candy/plugin-jetkvm: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-jetkvm_candy_plugin-jetkvm-83463bca18e86bd7 (build stamp f932c2ea1cf155ae); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-jetkvm
task self-test: 1 step(s), 0 failed
[pass] run — self-test sync-pin-evidence + sync-pr-body + sync-dispatcher
exit=0
check-opencode-plugin: /home/atrawog/Sync/Atrapub/lo/opencoder/opencharly/.worktrees/readme-truth/umbrella-hooksfix/.opencode/plugins/agent-progress.ts
PASS default export is a definition object (V2), not a V1 function
PASS definition exposes BOTH setup() (>=2.0) and server() (1.x) [setup=true server=true]
PASS definition has a string id
check-opencode-plugin: /home/atrawog/Sync/Atrapub/lo/opencoder/opencharly/.worktrees/readme-truth/umbrella-hooksfix/.opencode/plugins/coord.ts
PASS default export is a definition object (V2), not a V1 function
PASS definition exposes BOTH setup() (>=2.0) and server() (1.x) [setup=true server=true]
PASS definition has a string id
check-opencode-plugin: /home/atrawog/Sync/Atrapub/lo/opencoder/opencharly/.worktrees/readme-truth/umbrella-hooksfix/.opencode/plugins/pr-watch.ts
PASS default export is a definition object (V2), not a V1 function
PASS definition exposes BOTH setup() (>=2.0) and server() (1.x) [setup=true server=true]
PASS definition has a string id
check-opencode-plugin: /home/atrawog/Sync/Atrapub/lo/opencoder/opencharly/.worktrees/readme-truth/umbrella-hooksfix/.opencode/plugins/tracker.ts
PASS default export is a definition object (V2), not a V1 function
PASS definition exposes BOTH setup() (>=2.0) and server() (1.x) [setup=true server=true]
PASS definition has a string id
check-opencode-plugin: /home/atrawog/Sync/Atrapub/lo/opencoder/opencharly/.worktrees/readme-truth/umbrella-hooksfix/.opencode/plugins/umbrella-gates.ts
PASS default export is a definition object (V2), not a V1 function
PASS definition exposes BOTH setup() (>=2.0) and server() (1.x) [setup=true server=true]
PASS definition has a string id
PASS real pre-commit-gate.sh BLOCKS
git commit --no-verify(exit 2)PASS real pre-commit-gate.sh ALLOWS
git commit -m ok(exit 0)SKIP live opencode layer (set LIVE_OPENCODE=1 to run the real binary end to end)
check-opencode-plugin: OK
PASS default export is the V2 { id, setup } definition
PASS pure helpers parseItems/pickSessionID/lastWakeLine are exported
PASS WATCH_EVENTS includes 'comment' (got comment,merged,closed,verdict)
PASS WATCH_EVENTS includes 'verdict' (got comment,merged,closed,verdict)
PASS WATCH_EVENTS includes 'merged' (got comment,merged,closed,verdict)
PASS WATCH_EVENTS includes 'closed' (got comment,merged,closed,verdict)
PASS parseItems trims, drops blanks and # comments, preserves order (got ["acme/widget#12","acme/other#3"])
PASS parseItems yields [] for a comment-only config (got [])
PASS pickSessionID picks the most recently updated root session in the directory (ignores children and other dirs) (got "new-root")
PASS pickSessionID returns undefined when no session matches (got undefined)
PASS pickSessionID tolerates an empty list (got undefined)
PASS pickSessionID ignores sessions without a string id (got undefined)
PASS lastWakeLine returns the last non-empty line (got "COMMENT acme/widget#12 url")
PASS lastWakeLine returns undefined for empty output (got undefined)
PASS stripComments removes ctx.session.synthetic from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains ctx.session.synthetic
PASS stripComments removes ctx.tool.hook from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains ctx.tool.hook
PASS stripComments removes execute.before from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains execute.before
PASS stripComments removes sessionID from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains sessionID
PASS stripComments removes client.tui from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains client.tui
PASS stripComments removes showToast from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains showToast
PASS stripComments removes client.session.list from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains client.session.list
PASS stripComments removes client.session from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains client.session
PASS stripComments removes noReply: true from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains noReply: true
PASS stripComments removes pollOnce from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains pollOnce
PASS stripComments removes sleepAbortable from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains sleepAbortable
PASS stripComments removes seedAll from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains seedAll
PASS stripComments removes reports from a docstring/comment (negative control)
PASS the shipped code (comments stripped) contains reports
check-pr-watch: OK
PASS .pi/extensions/charly-gates.ts: fails closed, rule-2 paths, gate wiring + SOUL injection present
check-pi-gates: OK
pre-commit: OK
[fix/hooks-description-parity a29b203] fix(harness): name the gates the umbrella's pre-commit hook actually runs
2 files changed, 3 insertions(+), 1 deletion(-)
WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
plugin plugin-example-structkind: served from /home/atrawog/.cache/charly/plugins/plugin-example-structkind-8118c4c7a1383690 (build stamp 9e499e845f220ae9); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind: served from /home/atrawog/.cache/charly/plugins/github.com_opencharly_plugin-example-kind_candy_plugin-example-kind-eff4b4afe8a1bcaf (build stamp c44db74c3a0bcaea); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
plugin plugin-jetkvm: served from /home/atrawog/.cache/charly/plugins/plugin-jetkvm-83463bca18e86bd7 (build stamp f932c2ea1cf155ae); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-jetkvm
task verify: 11 step(s), 0 failed
[pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
ran 1 task(s), 0 step(s) failed
[pass] check — every submodule is clean and checked out at its recorded gitlink, and its branch equals the remote default
exit=0
[pass] check — the submodule-cleanliness step above — uninitialized paths are a NOTICE, real defects still FAIL (fixtures)
exit=0
[pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)
exit=0
[pass] check — the PR-watch plugin's pure logic + its shipped (uncommented) SDK delivery primitives
exit=0
[pass] check — the agent-progress monitor+control plugin — static (no .sh), the classifier (RCA regression), and a read-only store
exit=0
[pass] check — the session tracker plugin — the durable ledger (rule 9 invariant), the three tools, and the real-binary load
exit=0
[pass] check — every harness-config surface parses and is wired (rule 5)
exit=0
[pass] check — the pi gate extension fails CLOSED, uses the rule-2 worktree path, and wires both gate scripts
exit=0
[pass] check — every canonical root narrative exists and every root-file reference in the agent surfaces resolves (the #356 content-loss gate)
exit=0
[pass] check — the root-ref gate discriminates — each mutation turns it RED (fixtures)
exit=0
VERIFY_EXIT=0
The owning gate, named honestly. No
scripts/check-*.mjsowns these two paths —check-harness-config.mjsaudits the per-harness surfaces (.claude/,.pi/,.opencode/,.codex/,.reasonix/,.mcp.json), not the project manifest or theumbrella's git hook. So the gate for this diff is exactly what rule 10 prescribes for a
change that touches no submodule, gitlink or pin: its own changed paths, executed live
(above), plus the umbrella's full gate
charly task verifyon the final tree.The dev/worktree notice inside those transcripts, disclosed in one line. Every
charlyprocess on a host with the
charlypackage installed prints oneWARNING:line saying thatthis is a dev/worktree build and that it is not loading the installed package's plugins
from
/usr/lib/charly/plugins(the line itself appears verbatim in each transcript above).It is not a defect and not this diff's: it was added by the
fix that closed
charly#328(0e0f73aa), whose bug was a dev binary loading the host'sinstalled plugins; the fix makes it skip them and the notice makes the skip visible
instead of silent. It announces a host condition, not a property of this change, and it
changes no verdict below.
charly#801, filed for exactly this notice, isCLOSED/NOT_PLANNED(2026-10-06T06:00:51Z) — the maintainer's decision is leave it,disclose, don't land — so this body keeps it, shows it, and asks for nothing beyond that
disclosure.
Rulebook compliance
/charly-internals:git-workflowwas loaded before the first git action;the branch, the worktree and the PR shape follow it.
this change is that rule's leftover — a sentence advertising a mechanism the rule's own
implementation deleted. No harness-config file is added, moved or mirrored, and the parity
mechanism is deliberately not restored: restoring it would re-introduce exactly what
f092c21removed.(
f092c21left the sentence;cfd30b2left the list), never classified as "pre-existing"and never deferred. R2: nothing is parked — both stale descriptions are fixed here.
R3: the hook stays the ONE implementation of the gate; no second list is generated.
R4: no workaround — the descriptions are corrected rather than the hook being wrapped.
changed paths are root files of the umbrella.
origin/mainin a session worktree; no force-push,no push to
main, no hook bypassed.charly task verifygreen on the final tree.N/A — no destroy/rebuild, no bed.Change classification
gitlink or pin moves.
charly task verifyonthe final tree. No
scripts/check-*.mjsowns these paths, and the body says so ratherthan pressing a neighbouring script into service.
fully tested and validated.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)