Skip to content

fix(harness): name the gates the umbrella's pre-commit hook actually runs - #394

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/hooks-description-parity
Oct 6, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/hooks-description-parity

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

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.

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 Closes keyword does not
auto-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.

**1. The changed manifest, loaded live from the committed tree.**

--- 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


**2. The changed hook gating its own commit.** `hooks/pre-commit` runs five gates on every
commit in this clone, so the commit that changes it *is* its own live execution. This is
`git commit -F <message>` in the worktree, pasted verbatim — the hook's own output, all
five gates, its verdict last:

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(-)


**3. The umbrella's full gate on the same bytes.**

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


`task verify` was run in this worktree with the change staged and no other modification,
and `git status --porcelain` is **empty** at the commit above — so the tree the gate
measured and the tree this PR publishes are the same bytes, not two similar ones.

The owning gate, named honestly. No scripts/check-*.mjs owns these two paths —
check-harness-config.mjs audits the per-harness surfaces (.claude/, .pi/,
.opencode/, .codex/, .reasonix/, .mcp.json), not the project manifest or the
umbrella'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 verify on the final tree.

The dev/worktree notice inside those transcripts, disclosed in one line. Every charly
process on a host with the charly package installed prints one WARNING: line saying that
this 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's
installed 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, is
CLOSED/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

  • R0 skills: /charly-internals:git-workflow was loaded before the first git action;
    the branch, the worktree and the PR shape follow it.
  • Rule 5 (harness config lives only in the umbrella, with no mirror and no parity gate):
    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
    f092c21 removed.
  • Rule 10 / R1: the divergence is root-caused to the two commits that created it
    (f092c21 left the sentence; cfd30b2 left 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.
  • Rule 1 (never edit inside a submodule): no submodule content is touched. The two
    changed paths are root files of the umbrella.
  • R6 git safety: a fresh branch off origin/main in a session worktree; no force-push,
    no push to main, no hook bypassed.
  • R7 runtime gate: the changed paths executed live (pasted above) and
    charly task verify green on the final tree.
  • R10 disposable + coverage: N/A — no destroy/rebuild, no bed.

Change classification

  • Change class: umbrella description text — two comments/descriptions, no submodule,
    gitlink or pin moves.
  • Verification gate: the changed paths executed live (above) + charly task verify on
    the final tree. No scripts/check-*.mjs owns these paths, and the body says so rather
    than pressing a neighbouring script into service.
  • Attribution tier: fully tested and validated.
  • Breaking change + rollback: none — a revert restores the previous wording.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

…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)
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: a29b2037b297a449f178de70df04aa5b745a10f6 (branch: fix/hooks-description-parity)

Security screen: PASS — diff is description/comment-only; the hooks/pre-commit touch is purely additive comment lines (no gate logic altered, no guardrail weakened), no secrets/egress, no supply-chain change, no scope mismatch (body's "nothing else changes" matches the 2-file/+3/-1 diff).
Checklist: All applicable rules PASS or NA (description/docs class: no bed, no schema/proto, no candy, no submodule/gitlink). Assisted-by: is the last line, correctly preceded by the Agent: line; tier fully tested and validated is supported by the live charly task list/task hooks execution of the changed description and the green task verify on the same git status --porcelain-clean tree. N/A dispositions (R10 bed, R6/R8/R9 artifact/binary, RDD/ADE/SDD, R16 placement) carry one-line reasons. Comment thread: 0 comments — nothing to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 6, 2026 12:48
@github-actions
github-actions Bot merged commit 243d072 into main Oct 6, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 6, 2026
@aitrawog
aitrawog deleted the fix/hooks-description-parity branch November 1, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants