Repository navigation
refactor(harness)!: absorb every harness's config into the umbrella (rule 8 reversal, the #317 absorb leg) - #341
Conversation
…rule 8 reversal, the #317 absorb leg) The umbrella becomes the SOLE home for all harness config. Adds the move-in set from charly that had no umbrella copy yet: .codex/ (config.toml + agents/pr-validator.toml), .pi/README.md, .pi/extensions/charly-gates.ts (the pi gate wiring) + its registration, .reasonix/README.md, and the pr-validator FINALIZER duty folded into .opencode/agent/pr-validator.md. Rewrites rule 8 to the umbrella-sole-home model, deletes the charly task harness block + its hook/doc references (no mirror, no parity gate), and drops the two stale 'task harness' comment references in check-harness-config.mjs. Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: harness-config move-in + rulebook/config edit, plus a new 499-line executable pi extension — not docs-only, and not "config … no bed": the code half needs proof. Security screen: finding — the PR edits security machinery ( Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
… paths, pi-gate regression check
Round-1 findings on the absorb leg (all 6):
1. T4 sign-off: posted separately on the PR.
2. B12/A2: add scripts/check-pi-gates.mjs — a fail-closed, rule-9-path and
gate-wiring regression gate for .pi/extensions/charly-gates.ts, with a
--self-test that proves every assertion goes red on a mutation.
3. R4a: .reasonix/README.md now says `charly box validate` (PATH form), not ./bin/charly.
4. T3/R4: charly-gates.ts tool_call exec catch now FAILS CLOSED (block:true) on
any unexpected error and on any exit not in {0,2}.
5. R1/R4: charly_worktree_create/_remove use the rule-9 <umbrella>/.worktrees/<slug>/
path and name charly/bin/charly.
6. A1: the body now accounts for every changed file.
Also wires the new check into hooks/pre-commit + the charly.yml verify task.
Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
|
STATUS Operator authorization — T4, scoped to this PR's gate/validator edits. I authorize the changes this PR makes to security machinery:
Rationale. These are the rule-8 reversal's mechanical consequences: the harness config moves to its sole home and the mirror/parity gate is deleted. The pre-commit gate's git-discipline checks (policy-b, self-test, the opencode + pr-watch + pi-gate plugin contracts) are all RETAINED — the only removal is the now-nonexistent parity task. No guardrail is weakened; the pi-gate check is ADDED. Scope limit. This authorization covers the T4 gate/validator edits only. The other findings (B12/A2 pi-gate test, R4a command form, T3/R4 fail-closed, R1/R4 rule-9 paths, A1 accounting) remain the author's to fix and are NOT waived. Agent: |
Review — PASSHead SHA: Security screen: PASS — no injection, secrets, scope mismatch, or unauthorized weakening. The T4 gate/validator edits ( Checklist: All applicable rules PASS or NA. Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…runs (#394) 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) Co-authored-by: atrawog <[email protected]>
Summary
The umbrella ABSORB leg — the prerequisite for every remaining #317 consumer leg. Harness config becomes the umbrella's SOLE home (rule 8 reversal): this adds the move-in set that had no umbrella copy yet, so the consumer legs (
charly,.github,pod-charly-hooks) can then delete their duplicates without a split cutover.Added (the move-in set):
.codex/config.toml+.codex/agents/pr-validator.toml— the umbrella had no.codex/at all..pi/README.md+.pi/extensions/charly-gates.ts(the pi gate wiring) + its registration in.pi/settings.json— the umbrella's.pi/lacked the gate extension..reasonix/README.md(itssettings.jsonwas already present)..opencode/agent/pr-validator.md(the charly fork's CalVer final-tree-delta R10 decision).Also changed (accounting for every file):
scripts/check-harness-config.mjs— its header comment referenced the now-deletedtask harness; corrected (the harness-config gate itself is unchanged).scripts/check-pi-gates.mjs— new regression gate for the pi extension (finding 2 below).charly.yml— theharnesstask block deleted; acheck-pi-gates.mjsstep added toverify.hooks/pre-commit— thetask harnessline replaced bycheck-pi-gates.mjs.AGENTS.md/README.md— rule 8 rewritten; everytask harnessmention swept..reasonix/README.md— command form corrected to the PATHcharly(R4a, finding 3).Rule 8 rewritten to the umbrella-sole-home model, and
charly task harness+ itscharly.ymlblock deleted (no mirror, no parity gate).Head
be99cf7f050a98959d595c1fb3c484f60c569374(branchfeat/harness-absorb). Round-1 findings all fixed in ONE commit (below).How tested
The harness-config gate (rule 8 surfaces parse and are wired):
Its self-test (every check is live):
The full pinning gate on the final tree (
task verify):The pi extension gate (finding 2) — a new fail-closed regression check:
Findings 4 + 5 fixed in
charly-gates.ts: thetool_callexec catch now fails CLOSED (block: trueon any unexpected error, and on any exit not in {0,2}), andcharly_worktree_create/_removeuse the rule-9<umbrella>/.worktrees/<slug>/path (with the binary atcharly/bin/charly), not.claude/worktrees/.No residual
task harnessreference:The pre-commit hook ran on this commit (policy-b, self-test, opencode gate, pr-watch):
pre-commit: OK.Rulebook compliance
agents(harness-adapter CONFIG mechanism) +git-workflowloaded before any change.charly/scripts), and verify runs the real gate.task harnessdeletion sweeps its hook, README and AGENTS references; the sweep above shows no residual.task verify+ the harness-config gate + self-test are pasted above.task verify(pasted), no bed.Change classification
task harnessremoval). Not docs-only (a gate/rulebook edit).task verify(all pasted above).analysed on a live system.Authoring-runtime evidence (A3):
Unblock order this establishes: this absorb leg merges →
charlydeletes.claude/.codex/.opencode/.reasonix/.pi/opencode.json→.githubdeletes its copy →pod-charly-hooks(kubevirt family) lands. Leg 6 (marketplace) already landed (#407).Closes nothing; **relates to #**317.
Agent:
umbrella-catchup· sessionses_f01e6144bffesN8qO8MaOSEPGdAssisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)