Repository navigation
Conversation
…prevention) The four canonical root narratives were relocated delete-first across two repos and briefly existed in no main (#356). Nothing in task verify read the agent surfaces that referenced them, so no gate saw the loss. scripts/check-root-refs.mjs asserts (1) the four canonical narratives exist at the umbrella root, and (2) every reference to a canonical narrative in an agent surface (AGENTS.md, README.md, .opencode/instructions.md, .pi/extensions/ charly-gates.ts) resolves — a `charly/<Name>.md` reference whose file now lives at the umbrella root is a STALE-reference FAIL, the #356 shape. Wired into the verify plan with a --self-test step that proves it discriminates. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: umbrella Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Addresses the two blocks on #363 in one commit: 1. B14a/B18 — the `else` branch after the `!prefix` guard was unreachable, and the `if (prefix)` wrapper redundant. Collapsed to a prefixed-only walk (the bare-name case is check 1s). 2. B12 — the prefixed DANGLING arm had no mutation. Added `notes/SOUL.md` (a prefix that is neither a file nor a submodule) to --self-test, so the arm is exercised. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
…/soul-md-ref-gate
Review — BLOCKHead SHA: Change class: umbrella Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…tion Addresses the two blocks on #363 (head e803020) in one commit: 1. B12 — the prefixed DANGLING push was redundant with check 1 (a canonical narrative missing at the umbrella root already FAILs check 1), so it could never be reached by a mutation without check 1 also firing. Removed it: check 2 now owns ONLY the STALE arm, and every surviving arm has a mutation that fails without it (check 1 by the SOUL.md-removed case, STALE by charly/SOUL.md). 2. B18/A1 — the verify step description carried an unquoted inline `#356`, which YAML read as a comment — the rendered check name was truncated at `(the`. Quoted the value so it renders in full. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: umbrella Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: umbrella Security screen: clean (T1–T4) — the diff ADDS a gate; no secrets, egress, network calls, new deps, or guardrail weakening; no injected directives in body/comments (nothing addressed at the validator; the "per the validator's finding" prose is review material, not an instruction). No finding. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: umbrella Security screen: clean (T1–T4) — the diff ADDS a gate; no secrets, egress, network calls, new deps, or guardrail weakening; no injected directives in body/comments. No finding. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 unanswered BLOCK/INCONCLUSIVE verdictsThis PR has received 5 non-PASS validator verdicts — Why: re-running the validator against the same unfixed head only adds another verdict and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do: open a NEW pull request from a fresh branch. Fix every finding from any This is a policy action, not a code finding — the validator verdict on this run stands. |
|
RESOLVED Superseded by #365. — this thread was auto-closed at the gate's 5-verdict limit and is no longer acted on. Closure reason: #363 received 5 non-PASS verdicts ( Follow #365. No further action on this closed thread. Agent: |
…prevention, supersedes #363) (#365) * fix(verify): add the "referenced root file exists" landing gate (#356 prevention) The four canonical root narratives were relocated delete-first across two repos and briefly existed in no main (#356). Nothing in task verify read the agent surfaces that referenced them, so no gate saw the loss. scripts/check-root-refs.mjs asserts (1) the four canonical narratives exist at the umbrella root, and (2) every reference to a canonical narrative in an agent surface (AGENTS.md, README.md, .opencode/instructions.md, .pi/extensions/ charly-gates.ts) resolves — a `charly/<Name>.md` reference whose file now lives at the umbrella root is a STALE-reference FAIL, the #356 shape. Wired into the verify plan with a --self-test step that proves it discriminates. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) * fix(verify): de-dead-code the root-ref gate + test its DANGLING arm Addresses the two blocks on #363 in one commit: 1. B14a/B18 — the `else` branch after the `!prefix` guard was unreachable, and the `if (prefix)` wrapper redundant. Collapsed to a prefixed-only walk (the bare-name case is check 1s). 2. B12 — the prefixed DANGLING arm had no mutation. Added `notes/SOUL.md` (a prefix that is neither a file nor a submodule) to --self-test, so the arm is exercised. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) * fix(verify): drop the redundant DANGLING arm; quote the check description Addresses the two blocks on #363 (head e803020) in one commit: 1. B12 — the prefixed DANGLING push was redundant with check 1 (a canonical narrative missing at the umbrella root already FAILs check 1), so it could never be reached by a mutation without check 1 also firing. Removed it: check 2 now owns ONLY the STALE arm, and every surviving arm has a mutation that fails without it (check 1 by the SOUL.md-removed case, STALE by charly/SOUL.md). 2. B18/A1 — the verify step description carried an unquoted inline `#356`, which YAML read as a comment — the rendered check name was truncated at `(the`. Quoted the value so it renders in full. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) --------- Co-authored-by: atrawog <[email protected]>
Summary
Add the "referenced root file exists" landing gate (prevention item 3 of #356) to the umbrella's
charly task verify.opencharly#356root-caused a HIGH content loss: the four canonical root narratives —SOUL.md,VISION.md,GRIEVANCES.md,LIBERATION.md— were relocated from the charly submodule root to the umbrella root (where every session is rooted), and the multi-repo cutover landed delete-first — charly#791 removed them and the umbrella PR that added them was auto-closed at the validator's block limit. For a window the files existed in no repository'smain, and every agent surface (AGENTS.md,.opencode/instructions.md,.pi/extensions/charly-gates.ts) pointed atcharly/SOUL.md, a path that no longer resolved. Nothing intask verifyread those surfaces, so no gate could see the loss.New:
scripts/check-root-refs.mjs, wired into theverifyplan with a self-test step. It asserts:AGENTS.md,README.md,.opencode/instructions.md,.pi/extensions/charly-gates.ts) resolves — acharly/<Name>.mdreference whose file now lives at the umbrella root is a STALE-reference FAIL (the exact#356shape). A canonical missing at the root is check 1's failure, so check 2 owns the STALE arm and nothing redundant.The reference walk is scoped to the four canonical files on purpose: matching every
<Uppercase>.mdproduced false positives on legitimate different files (SKILL.md,charly/AGENTS.md), so the gate covers the narrative-relocation class and nothing else. The canonical list is hardcoded, so a cutover that also deletes the reference (not just the file) still trips the gate.Two files changed:
scripts/check-root-refs.mjs(new) andcharly.yml(twoverifysteps). Part of #356 — this is the mechanical gate (prevention item 3); the remaining prevention items (the relocation ordering rule — add-before-delete — and the "do not auto-close a multi-repo cutover's middle producer without a successor" rule) land as rulebook/skill edits, so #356 stays open until those land.How tested
All output below was re-run on the final head
bf7ebfb41bff2fe36231ce52e9e083e420a30214(aftergh pr update-branch; no force-push).The new gate on the current tree (the four narratives are present at the umbrella root after #357; the three surface references were repointed to the bare names):
The self-test — it proves the gate DISCRIMINATES by EXECUTING it against mutated trees (each mutation must turn it RED; a restored tree GREEN):
Every surviving arm is load-bearing — MEASURED by deleting an arm and re-running the self-test (a test that cannot fail without its arm is not coverage):
Removing the STALE push turns its mutation GREEN, so the arm is genuinely exercised. (Check 1 is proven the same way by its own removed-canonical case. The prefixed DANGLING push this gate previously carried was redundant with check 1 — a canonical missing at the root already fails check 1 — so it was removed rather than tested, per the validator's finding.)
The
#356shape reproduced against a temp tree — root narratives present,AGENTS.mdstill pointing atcharly/SOUL.md:The full gate on the final tree —
./charly/bin/charly task verify(the description renders IN FULL — the value is quoted incharly.yml, so the inline#356is not read as a YAML comment):Rulebook compliance
check(); the--self-testdrives the SAME code path against mutated trees (no parallel re-implementation).task verify; no ad-hoc shell, no hand-run substitute../charly/bin/charly task verify.task verifyran on the final committed tree (11/11, pasted above).Change classification
verifygate — a newscripts/*.mjschecker + twocharly.ymlverifysteps (the umbrella's own task surface; no submodule edit)../charly/bin/charly task verifyon the final tree — 11/11 PASS, including the two new steps.fully tested and validated— the full gate passed on the final tree and the changed path (the new checker) executed with retained output, plus the self-test proving discrimination.Closes nothing on its own — part of #356 (prevention item 3). Relates to #357 (the restoration this gate would have caught).
Agent:
soul-md· sessionses_ef8af7149ffe5G0oj20EhTQn6VAssisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)