Repository navigation
docs(rulebook)!: R12 — spike every candidate solution before implementing; AGENTS.md as when/do/done gists - #1283
Conversation
…ting; AGENTS.md as when/do/done gists AGENTS.md gains R12. After the RCA names the cause, spike every plausible solution and implement only one that works; its success proves the RCA, and if none works the RCA is wrong. Every section becomes a When / Do / Done-when gist that points at the one skill holding its detail. strict-policy's new "Spike-first" section is the single home of the spike model, the `### Spike` block, the exemptions, and the RDD/ADE/SDD "which instrument when" table. The RCA agent and skill hand the root fix to the R12 round. The validator spec gains its R11 and R12 items. Every R0–R11 claim, the heading the pi binding injects, and the PR-body tooling's rule rows move to R12. The rule-map gate reports, instead of failing, a live AI_REVIEW_PROMPT equal to the rulebook at the PREVIOUS action-review pin: that is the producer-first window between this pin advance and the operator's re-sync of the org variable after the merge. A `charly task sync` wave advances 14 pins, among them action-review to the merged R12 rulebook and marketplace to the R0–R12 body linter. lobster stays at its tagged pin because its new head carries no tag (opencharly/.github#192), and plugin-pod stays at its pin because its new head moves two design/dulling.tsv citations (#1282). Closes #1278 Claude-Session: https://claude.ai/code/session_01Tvdn3vf6royM8fuXQB9Wu5 Agent: spike-first-r12 · Claude Code session df4ab072-9d67-4868-96df-b6e1d06b6825 Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
Review — BLOCKHead SHA: Change class: rulebook/skill prose + umbrella gate scripts + a 14-pin wave (no runtime/deploy code). Security screen: finding (T4 — self-modifying-security change without the required sign-off). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS Maintainer sign-off (T4), posted by this session at the operator's explicit direction. The operator chose "Post it at my direction" in this session's question for #1283; this is not the agent's own initiative. The security machinery this PR touches, and why each change is accepted:
Why the relaxation: the operator's ordering is that the org variable is re-synced only AFTER this guidance merges, so the validator never enforces an R12 the rulebook does not yet state. Without the relaxation, that ordering would make the umbrella's own Agent: |
|
STATUS RCA of the round-1 BLOCK, which has one finding: T4, no maintainer sign-off.
No diff change in this round: the head stays Agent: |
Review — PASSHead SHA: Change class: rulebook/skill prose + umbrella gate scripts + a 14-pin wave (no runtime/deploy code). Security screen: PASS — T1/T2 clean (no embedded directives, no secrets, no egress, no obfuscation). T3/T4: the diff does touch security machinery ( Checklist: All applicable rules PASS or NA (R11 NA — no DESIGN surface touched). Comment dispositions
Non-blocking notes (not blocks)
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…2 spine (#644) strict-policy now owns R12 and the spike model ("Spike-first"), and the umbrella rulebook's spine is R0–R12 (opencharly/opencharly#1283). The registry's strict-policy row gains both, and the umbrella row's `R1–R10` becomes `R0–R12`. Closes #642 Claude-Session: https://claude.ai/code/session_01Tvdn3vf6royM8fuXQB9Wu5 Agent: spike-first-r12 · Claude Code session df4ab072-9d67-4868-96df-b6e1d06b6825 Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)
…TE banner Round 2 of #1283. The banner cited the issue (opencharly/opencharly#1278) while the PR body cited the merged PR (opencharly/opencharly#1283) for the same fact. It now names the PR and the issue together, so the body and the diff agree. Claude-Session: https://claude.ai/code/session_01Tvdn3vf6royM8fuXQB9Wu5 Agent: spike-first-r12 · Claude Code session df4ab072-9d67-4868-96df-b6e1d06b6825 Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)
…tate the programme record (#1283) * docs(agents): the org spine is R0–R12 — sweep the stale R1–R10 / R0–R10 claims The umbrella rulebook's ground-truth rules now run R0–R12 (opencharly/opencharly#1283). `AGENTS.md:5` and `charly/AGENTS.md:17` still named the spine `R1–R10` and `R0–R10`; both now say `R1–R12` and `R0–R12`. `PROGRAM/pi-integration.md` is a programme record, so it gains an UPDATE banner, the form that file already uses for its corrections, rather than having its history rewritten. Closes #1258 Claude-Session: https://claude.ai/code/session_01Tvdn3vf6royM8fuXQB9Wu5 Agent: spike-first-r12 · Claude Code session df4ab072-9d67-4868-96df-b6e1d06b6825 Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed) * docs(program): cite the merged umbrella PR in the pi-integration UPDATE banner Round 2 of #1283. The banner cited the issue (opencharly/opencharly#1278) while the PR body cited the merged PR (opencharly/opencharly#1283) for the same fact. It now names the PR and the issue together, so the body and the diff agree. Claude-Session: https://claude.ai/code/session_01Tvdn3vf6royM8fuXQB9Wu5 Agent: spike-first-r12 · Claude Code session df4ab072-9d67-4868-96df-b6e1d06b6825 Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)
…e its exemption (#1286) The rulebook's spine is now R0–R12 (#1283) and the body linter requires an R12 answer (opencharly/marketplace#653). The pre-validator self-audit listed eleven items and stopped at R11, so an author following it would pass its own checks and still be blocked on the one rule it never mentioned. The new item 12 states when R12 bites (a change that fixes or implements behaviour), what the round looks like (`### Spike` under `## How tested`, on a disposable target or against the real artifact, BEFORE the diff), and the exemptions that must be named rather than invented — prose-only/comment-only, a revert to a proven state, or a spike-equivalent (a regression test that fails on the unmodified tree and passes with the fix; a live bed run at the exact boundary). *Agent: `qwen3-tts-vram` · Claude Code session `699080d3-3ff0-4337-afa4-94f960590338`* *Assisted-by: Claude Code Ollama Cloud deepseek-v4.1-flash (documentation reviewed)*
Summary
The rulebook gains R12 — spike every candidate solution before implementing, and AGENTS.md becomes a rulebook of gists. Every section now says when it applies, what to do and when it is done, in a few lines, and points to the one skill that carries the full explanation.
R12, in one line: after the RCA names the cause, spike every plausible solution for it. Implement only a candidate that works; its success is the proof the RCA was right. If none works, the RCA is wrong, so redo it. The cause itself is never spiked.
Where each piece now lives
AGENTS.mdcdi, the watcher event list → watch-and-wake, Part II #2/#5 → umbrella-mechanics andskills). The RDD, ADE and SDD gists each answer when. The validator table gains anR12row and rewords R1 and PIL; the dispatcher gains a row for "a fix is about to be implemented"; the acceptance checklist gains an R12 item and a pillars item. Every heading and every phrase a gate checks is kept..agents/skills/strict-policy/SKILL.md### Spikeblock, the exemptions, the schema / trace / assumption-bed variants, the forbidden internal voices, and the RDD/ADE/SDD "which instrument when" table. RDD's old conditional spike paragraph and its "never a blocking gate" line are replaced by pointers to it. The issue-body line in "R1, applied" now asks for the R12 round, not a high-risk-only spike..agents/skills/root-cause-analyzer/SKILL.md,.agents/agents/root-cause-analyzer.md--spikerecords the round..agents/agents/pr-validator.md.agents/skills/design/SKILL.md,.agents/skills/cutover-policy/SKILL.md,.agents/skills/git-workflow/references/pre-validator-self-audit.md### Spikeitem)scripts/check-validator-rule-map.mjs,charly.ymlAI_REVIEW_PROMPTequal to the rulebook at the PREVIOUSaction-reviewpin is REPORTED as a re-sync pending, not failed (see the spike below); any other difference still fails. The two task descriptions say so..pi/extensions/charly-gates.ts,scripts/check-pi-gates.mjsThe ground-truth rules R1–R12scripts/sync-pr-body.sh,scripts/check-pr-body-gate.mjs,scripts/check-pr-body-diff.mjsREADME.md,.claude/hooks/pre-commit-gate.sh,.agents/skills/agents/**,.agents/skills/git-workflow/references/branch-and-pr-loop.mdR0–R11→R0–R12The pin wave (
charly task sync, run twice on a base current withorigin/mainb1e107a4334bdc3229d1b00de50670db0f7812b5; see the second anomaly under How tested). It moves 14 pins. Two of them are this cutover's producers:action-reviewcarries opencharly/action-review#26, the validator's R12 check, merged as5be54a98a50a027b121323a45a07e5085f2dda36and taggedv2026.329.1023;marketplacecarries opencharly/marketplace#653, the R0–R12 body linter, merged as1c919af2d458e8c9964c469638c0b222c3c62148. The rest are what the wave found merged. Two paths stay at their base pins:lobster, because its new head carries no tag (opencharly/.github#192), andplugin-pod, because its new head moves twodesign/dulling.tsvcitations (#1282).git diff --raw origin/main HEAD)Qwen3-TTS86598b4→a228cc3action-review27029d6→9756bb2clawsweeper1fa8e7d→1ba87c8crabbox9d34c7c→09543a4crabhelmdac4da4→8eeda95dotgithubacddac2→6b1dea1gst-wayland-displayb38bbeb→50ea638layer-gemini2b6c1ea→5e29948marketplace4fb2174→7dc9220openclaw9354a2c→f6d11c6openclaw-enterprisea13bc4c→dbf8b3bpod-maputnikde8a163→ecf5448pod-qwen3-tts0bbd83d→390ce2bspecf37676a→f8649beBoth producers are inside their new pins:
After this merges, the operator's direction is to re-sync the org variable
AI_REVIEW_PROMPTto the merged rulebook. The ordering is deliberate: the guidance lands first, so the validator never enforces an R12 the rulebook does not yet state. Until the re-sync, the rule-map gate reports the window instead of failing.How tested
The umbrella's gate, on this committed tree:
The currency report's
lobster: differs (no checkout to judge ancestry)andplugin-pod: behindare the two pins this PR holds back at their base pins (see the second and third anomalies).charly: behindis opencharly/charly#1281, merged at 2026-11-25T11:39:25Z, after the wave ran;behind,differsandblocked-byare reported, not failed, by design.An anomaly on the first verify run, and its RCA (R1). On the first committed tree, verify failed one step out of 53: the cross-surface governance reconcile. The org manifest
dotgithub/scripts/governance-claims.tsvrequires AGENTS.md to state ten governance phrases verbatim: the footer order, the 60-minute takeover window, comment-first takeover, the successor protocol, the account-gated sign-off, the auto-close default, read-in-full, "Every validation failure is an R1 anomaly", and theSTATUS/HOLDINGduties. My gist rewrite had paraphrased them away.AGENTS.md. This gate reads its required phrases from a manifest in another repo, so a string-keyed inventory cannot see it.A second anomaly, at the first push, and its RCA (R1). The pre-push DESIGN control
design-pintagblocked the push with one finding:gst-wayland-display@87713ee2a07f60acc6eea4b10dd7eb10a13f201d: untagged — 1 first-parent commit(s) above v2026.328.1511.stable's head at that moment, fix(input): an ABSOLUTE move bypasses a client's pointer lock gst-wayland-display#22's squash. That repo is a fork whose tags are minted separately from the merge, and the squash carries none. Since thenstablehas advanced to50ea638dac17, which is taggedv2026.329.1052.design-pintag.sh --remoteshowed 5 of them were local stores that had not fetched their new tags, and one was really untagged:lobster@f318da970032, an org rollout commit with no tag (evidence posted on R5: the per-repo tag-on-merge callers still run actions/github-script@v7 (Node 20, mutable) — #188's removal stopped at this repo .github#192).git submodule update --initthe 5 stale stores, and leavelobsterat its base pin474759a40a3b, which this PR then does not move.design-pintag.shthen reports400 judged … every pin is at a tag, one CHANGELOG commit above one, or explained(exit 0).A third anomaly, at the second push, and its RCA (R1). The pre-push DESIGN control
design-citeblocked with two findings:dulling.tsv:command:config: plugin-pod/candy/plugin-pod/pod_cmd.go:420-450 no longer holds the bytes this row was affirmed against (pin 8224f8d86caa), anddulling.tsv:command:cp: … :410 now sits inside Run, not the CpCmd this row was affirmed against.plugin-pod, and its new head moved the constructs the DESIGN ledger cites by line.design/, which needs the DESIGN A.6 sign-off, for a pin this rulebook change does not need.plugin-podat its base pinc79a5a421d3e(Q2) works:design-cite: every citation resolves at its pin; 150 line citation(s) still hold …(exit 0), andbash scripts/design-check.shthen reportsdesign-check: all controls pass.plugin-pod(design/dulling.tsv: two plugin-pod citations (command:config, command:cp) no longer hold at plugin-pod main 8224f8d — the next pin wave cannot advance plugin-pod #1282).design-pintag, not the wholedesign-check.sh; the full DESIGN check now runs on the final tree before the push.The gate change ran live, and its coverage fails without it (R7). The live variable was untouched (the operator's direction), so the real run exercises the new branch:
With the pending branch mutated to
differs, the self-test goes red on exactly that case; once the file was restored, it is green:The self-test also reads the previous pin from a real git fixture — a nested repo holding two rulebooks, pinned by a gitlink — both from an index that moved the gitlink and from the commit that moved it.
Spike
R12 applies to the one behaviour change here, the rule-map gate. The rest of the diff is prose, the pin wave, and rule-id rows (exempt: prose-only, plus pins that point at commits already merged, each with its own round). The two producer legs carried their own rounds: opencharly/action-review#26 (C1/C2/C3 on the real review engine) and opencharly/marketplace#653 (A/B on the real linter).
RCA claim: the producer-first landing of a rulebook change cannot pass the umbrella's own gate.
check-validator-rule-map.mjsFAILS whenever the committed rulebook differs from the liveAI_REVIEW_PROMPT, and in a producer-first landing the pin advance and the variable re-sync cannot happen at once. With the operator's ordering (the variable only after this merges), the gate is red from the pin advance until the re-sync.Candidates spiked:
action-reviewpin as a pending re-sync; fail everything else (this diff). Run on this worktree after the sync, with the live variable untouched. The index pins9756bb2ecc35fb40ce49fc2d9e6968fb5ed6f69fand HEAD's previous pin is27029d63f487fb080783cfbde774ad88a096fd55:differs).--no-live. On a throwaway root whose committed prompt was hand-drifted so that it matches neither the live variable nor any merged rulebook:mainrulebook instead of the pinned one:Winner: G1. It is the only candidate that passes the window and still fails every real drift.
RCA verdict: confirmed. G1 removes the cause, and the gate's result changes only for the producer-first window.
Rulebook compliance
/charly-internals:git-workflow,/charly-internals:skills,/charly-internals:strict-policy,/charly-internals:cutover-policy,/charly-internals:root-cause-analyzer,/charly-internals:repo-setupand/charly-review:reviewbefore the first action; read theaction-reviewandmarketplaceAGENTS.md before acting there.design-pintaganddesign-citepush blocks are each RCA'd above (mechanism, missed control, root fix). Three earlier anomalies were defects in my own instruments: agrepexit reported as a gate's, a copied linter missing its sibling module, and aheadpipe exit. Each was named and its instrument re-run correctly. The two sweep stragglers in repos this PR does not edit are listed under## Filed issues.git grepfor its key phrases finds, outside strict-policy, only the AGENTS.md gist, the RCA hand-off, and the validator spec's enforcement mirror of the merged prompt. Restated skill detail was removed from AGENTS.md, each cut checked against the owning skill first.feat/branch in a session worktree off freshorigin/main(b1e107a4334bdc3229d1b00de50670db0f7812b5), rebased and amended only while unpushed; no force-push, no bypass. The commit gate refused twice (an untokenizable message, then R12 not yet in the pinned rulebook), and the pre-push gate refused twice (design-pintag, thendesign-cite). Each time the cause was fixed, never bypassed../charly/bin/charly, built bycharly task worktree, ran sync and verify.charly task verify, pasted above. No deploy target is involved.Change classification
AI_REVIEW_PROMPT. Rollback: revert this squash and re-sync the org variable to the previous rulebook (action-reviewat27029d63f487fb080783cfbde774ad88a096fd55).Filed issues
design/dulling.tsvcitations intoplugin-podno longer hold at its main8224f8d86caa; the next pin wave cannot advance it until they are re-anchored (non-blocking, filed unclaimed; this PR holdsplugin-podat its base pin).charly/AGENTS.md:5still says R1–R10 (existing, non-blocking, unclaimed; updated with the R0–R12 evidence).Closes #1278
Agent:
spike-first-r12· Claude Code sessiondf4ab072-9d67-4868-96df-b6e1d06b6825Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)