Repository navigation
feat(re-anchor): sweep-all-disciplines dedup-by-root-cause step + real cost datapoint - #1174
Conversation
…l cost datapoint Addresses #1154 (F4), an enhancement — the batched sweep works as documented, but a real full-batch run surfaced one root finding (a recall-based claim) as three separate ledger entries (do-your-research, recheck-against-upstream, mind-your-maxims), and the main thread had to dedup by hand. - Names an explicit dedup-by-root-cause step between collect and correct: group ledger entries that share a root cause, carry the union of evidence + the list of reporting correctors, correct once at the highest-priority reporter's rank, report the merged finding once with attribution. Pass renumbers 1-5 (fan out → collect → dedup → correct → report). - Reaffirms fork independence: the forks never share a ledger (keeps each audit un-anchored); the merge is the single point ledgers combine. - Cost gotcha gains the real datapoint: ~170K tokens/fork (inherited transcript), ~1.4M for an 8-in-scope pass in two waves of four. Doc-only (skill runbook + changelog); no code. re-anchor 0.8.0. Closes #1154 Co-Authored-By: Claude Fable 5 <[email protected]>
|
Claude finished @kyle-sexton's task in 3m 7s —— View job Code Review
Overall: Clean, well-executed doc-only change. The dedup step is logically placed and internally consistent. No correctness bugs, no security concerns.
|
| Location | Old | New | Correct? |
|---|---|---|---|
| Step 3 (new Dedup block), line 94 | — | "correction in step 4" | ✓ |
| Step 4 (Correct), line 103–104 | "the shared loop's step 3, batched" | unchanged | ✓ (shared-loop ref, not batch ref) |
| Step 4 (Correct), line 104 | — | "merged in step 3" (batch Dedup) | ✓ |
| Carve-out note, line 115 | "step 3" | "step 4" | ✓ |
| Step 5 (Report), line 117 | — | "merged in step 3" (batch Dedup) | ✓ |
The introductory paragraph (line 65, unchanged) still reads "the correction (step 3) is collected and applied ONCE on the main thread" — this uses the shared loop's step numbering, not the batch runbook's, and is correct in that context. It was pre-existing and not a regression introduced here.
New step 3 (Dedup) content is well-specified:
- Groups by root cause (not by corrector) ✓
- Carries union of located evidence + list of reporting correctors ✓
- Merge is the ONLY ledger-combining point; fork independence explicitly reaffirmed ✓
- Single-corrector findings pass through unchanged ✓
- Rank resolution for merged findings: highest-priority (lowest-rank) reporter ✓
Step 5 (Report) correctly reflects the dedup merge — merged findings listed once with full attribution rather than once per reporting corrector. ✓
One minor observation (not a blocker)
The carve-out parenthetical at SKILL.md line 113–115 reads:
(The fork *audit* inherits context on purpose: step 2 is a same-context self-audit; this carve-out is about step 4.)
"step 2" here refers to the shared loop's step 2 (self-audit), while "step 4" refers to the batch runbook's step 4 (Correct) — two different numbering systems in one sentence. This was pre-existing ambiguity (previously "step 3" for the correction step). A future clarifying edit like "the shared loop's step 2" would resolve it cleanly, but it's not introduced by this PR and doesn't block merge.
Summary: All three files are consistent, the step-renumbering is fully applied, the CHANGELOG accurately reflects the changes, and the version bump is appropriate. No issues to address before merging.
|
Claude finished @kyle-sexton's task in 1m 34s —— View job Security Review — PR #1174
No security issues found. This PR is doc-only (skill runbook + changelog + version bump). Here is what I reviewed against each threat class:
Existing GitHub Actions / workflow files: none changed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 26cfd43a67
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex P2: a shared root cause can demand non-interchangeable remedies — retracting an unsupported claim satisfies the research reporters, but mind-your-maxims may still need a reader-facing uncertainty disclosure. The dedup step now makes explicit that grouping collapses re-analysis and re-reporting of one root cause, NOT the corrective work: the finding carries the union of every reporter's distinct remedy, and each remedy is still applied at its own rank. CHANGELOG updated to match. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Claude finished @kyle-sexton's task in 1m 25s —— View job Code Review — PR #1174 (HEAD
|
| Location | Claim | Consistent? |
|---|---|---|
| Step 3 | carries "union of distinct remedies each reporter asks for" | ✓ |
| Step 4 | "apply every reporter's distinct remedy, each at its own rank" | ✓ |
| Step 5 | "listed once, attributed to every corrector that reported it" | ✓ |
| CHANGELOG Added | "every reporter's remedy is still applied, each at its own rank" | ✓ |
All four locations tell the same story. ✓
First-commit observations — still hold at HEAD
All points from the prior review remain valid and unchanged:
- Step renumbering (3→4, 4→5) fully applied throughout ✓
- Fork independence reaffirmation language untouched ✓
- Cost datapoint math (~170K × 8 ≈ 1.4M) ✓
plugin.jsonversion bump0.7.0→0.8.0✓
The pre-existing carve-out ambiguity at SKILL.md L123 ("step 2" = shared-loop numbering, "step 4" = batch-runbook numbering in one sentence) is still pre-existing, still not introduced by this PR, and still not a blocker.
No issues to address before merging. The Codex P2 finding is fully resolved; the PR is internally consistent at HEAD.
|
Claude finished @kyle-sexton's task in 1m 15s —— View job Security Review — PR #1174
No security issues found. This PR is doc-only (skill runbook update + changelog + version bump). I reviewed each changed file against the threat classes that static analysis misses:
Existing GitHub Actions / workflow files: none changed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: faca188248
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…its rank (Codex) Codex P2: storing a union of remedies plus a separate reporter list loses which reporter asked which remedy, so step 4 cannot apply each remedy at its reporting corrector's rank. The grouped finding now carries a reporter→remedy mapping (keyed by corrector), so a communication disclosure and a research retraction each land at their own rank. CHANGELOG updated to match. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Claude finished @kyle-sexton's task in 1m 29s —— View job Code Review — PR #1174 (HEAD
|
Before (faca188) |
After (d0fb6fa) |
|---|---|
| "the list of reporting correctors, AND the union of the distinct remedies each reporter asks for" | "keyed BY reporting corrector, the remedy that corrector asks for — a reporter→remedy mapping, not a flat remedy list beside a separate reporter list, so step 4 knows which remedy belongs to which rank" |
The new language precisely describes a reporter→remedy map (keyed by corrector, not unkeyed), making the association between rank and remedy explicit and unambiguous. ✓
Cross-location consistency at HEAD:
| Location | Claim | Consistent? |
|---|---|---|
| Step 3 (Dedup), L93–95 | grouped finding carries "keyed BY reporting corrector, the remedy that corrector asks for" | ✓ |
| Step 4 (Correct), L110–115 | "apply every reporter's distinct remedy, each at its own reporting corrector's rank" | ✓ — step 4 correctly consumes the keyed map |
| Step 5 (Report), L127 | "listed once, attributed to every corrector that reported it" | ✓ — unchanged and still correct |
| CHANGELOG L15–16 | "a reporter→remedy mapping, so each remedy keeps its rank" | ✓ — consistent with SKILL.md |
Evidence vs. remedy distinction preserved: Step 3 correctly carries "the union of their located evidence" (undirected — attribution doesn't matter, coverage does) alongside the keyed remedy map (directed — rank association must be preserved). The asymmetry is correct and is accurately specified. ✓
Prior-commit observations — all still hold at HEAD
- Step renumbering (3→4, 4→5) fully applied ✓
- Fork independence reaffirmation language unchanged ✓
- Cost datapoint math (~170K × 8 ≈ 1.4M) ✓
plugin.jsonversion bump0.7.0→0.8.0✓
The pre-existing carve-out ambiguity at SKILL.md L124–125 ("step 2" = shared-loop numbering, "step 4" = batch-runbook numbering in one sentence) remains pre-existing, not introduced by this PR, and not a blocker.
Security
No security concerns. The reporter→remedy map is a model-judgment concept expressed in prose — no new execution surface, no new external input path, no new credentials or egress, no workflow changes.
Both Codex P2 findings are fully addressed; the PR is internally consistent at HEAD. No issues to address before merging.
|
Claude finished @kyle-sexton's task in 1m 21s —— View job Security Review — PR #1174 (HEAD
|
| Item | Status |
|---|---|
userConfig literal-placeholder guard (SKILL.md L153–156) |
Present and untouched |
batch_exclude / batch_promote / batch_demote — no code execution possible (name-list filter only) |
Confirmed |
| GitHub Actions / workflow files | None changed |
| Dependency or action pins | None changed |
| Secrets or credentials | None introduced |
| Outward-artifact gate ("no PR/issue/published comment without explicit opt-in") | Unchanged, still present |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d0fb6fa5e1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…Codex) Codex P2: the dedup step keys remedies by reporting corrector, but step 1 told forks to run audit-only (shared-loop steps 1-2) and return a located violation — which carries no remedy, so step 3 had no reporter->remedy data to preserve. The fork instruction now returns, per ledger entry, the remedy that corrector would apply (the step-3 corrective action, described not performed — the fork still writes nothing). This supplies the data the dedup mapping keys on. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Claude finished @kyle-sexton's task in 1m 52s —— View job Code Review — PR #1174 (HEAD
|
| Step | What it does | Data available | Consistent? |
|---|---|---|---|
| 1 Fan out (L82–90) | Fork returns finding + described remedy | Nothing upstream | ✓ (source) |
| 2 Collect (L92) | Aggregate all fork ledgers | Fork output includes remedies | ✓ |
| 3 Dedup (L93–110) | Group by root cause; build reporter→remedy map | Ledger entries carry remedies | ✓ |
| 4 Correct (L111–130) | Apply each reporter's remedy at its own rank | reporter→remedy map from step 3 | ✓ |
| 5 Report (L131–134) | One entry per root cause, all reporters attributed | Merged findings from step 3 | ✓ |
The "described not performed" constraint in step 1 is correctly enforced — forks still make no writes, they only describe the remedy they would apply — and step 4 then executes those descriptions on the main thread. ✓
CHANGELOG [0.8.0] — minor observation (not a blocker)
The CHANGELOG accurately documents the dedup step's reporter→remedy mapping and fork independence. However, it does not mention the fan-out protocol change introduced in this fourth commit: that each fork must now return the proposed remedy per finding, not just the located violation. The entry is functionally accurate (the feature behaves as described), but leaves the question implicit — how does step 3 know the remedies? — answered only by reading the SKILL.md.
This is acceptable for a user-facing changelog, where the observable behavior (step 3 has a reporter→remedy map) matters more than the protocol detail (step 1 was updated to supply it). Not a blocker, but a future-changelog author will appreciate knowing that CHANGELOG [0.8.0]'s description of step 3 is backed by a step 1 protocol change in the same version.
Prior-commit observations — all still hold at HEAD
- All step-number cross-references correctly updated (3→4, 4→5 throughout) ✓
- Fork independence reaffirmation language untouched ✓
- Cost datapoint math (~170K × 8 ≈ 1.4M) ✓
plugin.jsonversion bump0.7.0→0.8.0✓- All three Codex P2 findings addressed: distinct remedies preserved (
faca188), reporter→remedy map keyed correctly (d0fb6fa), fan-out supplies the remedy data (f1c4833) ✓
The pre-existing carve-out ambiguity at SKILL.md L129–130 ("step 2" = shared-loop numbering, "step 4" = batch-runbook numbering in one sentence) remains pre-existing, not introduced by this PR, and not a blocker.
No issues to address before merging. All three Codex P2 findings are fully resolved; the data-flow chain is coherent end-to-end at HEAD.
|
Claude finished @kyle-sexton's task in 1m 36s —— View job Security Review — PR #1174 (HEAD
|
| Item | Status |
|---|---|
userConfig literal-placeholder guard (SKILL.md L158–161) |
Present and untouched |
batch_exclude / batch_promote / batch_demote — name-list filters only, no code execution |
Confirmed |
| Outward-artifact gate ("no PR/issue/published comment without explicit opt-in") | Unchanged, still present |
| GitHub Actions / workflow files | None changed |
| Dependency or action pins | None changed |
| Secrets or credentials | None introduced |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f1c4833da9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex P2: the new step-3 dedup had no eval guard — the full-batch fixture described collect-then-correct with no dedup, so a regression removing it (and the reporter->remedy preservation it enables) would still pass the model-graded check. Adds eval #6 exercising a shared-root-cause session (multiple correctors flag one from-memory claim) and asserting the merge, per-reporter remedy keying + per-rank application, and single attributed report; strengthens eval #2's full-batch expectations to include the dedup step and the remedy-carrying ledger. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Claude finished @kyle-sexton's task in 2m 6s —— View job Code Review — PR #1174 (HEAD
|
| Field | Before | After |
|---|---|---|
expected_output |
Described fan-out + collect + correct-in-rank-order | Now includes "each ledger entry carrying the finding AND the remedy that corrector would apply", "dedups them by root cause", then applies corrections |
expectations[2] |
(absent) | "Dedups ledgers by root cause between collect and correct, then applies corrections in rank order with tighten-your-output last" |
A regression that removes the dedup step now fails here, as it would produce an expected output with collect → correct (no dedup) and miss the new third expectation. ✓
Eval #6 (dedup-by-root-cause-preserves-per-reporter-remedies) — new
The prompt exercises the exact real-world scenario from the PR body (multiple correctors flag the same from-memory API claims). The expected output and expectations cover all three key behavioral properties:
| Property | Covered? |
|---|---|
| Merge entries that share a root cause rather than correcting the same cause multiple times | ✓ (evals.json L71) |
Preserve reporter→remedy keying; apply each remedy at its own rank (not collapsed to one) |
✓ (evals.json L68–69, L72) |
| Report once with full attribution; keep fork ledgers independent (merge only at consolidation) | ✓ (evals.json L73) |
The expected output's concrete examples (verify/retract the claim for the research reporters; a reader-facing uncertainty disclosure for mind-your-maxims) match those in SKILL.md L103–106, and the non-interchangeability rationale is stated correctly in both places. ✓
Cross-eval / cross-file consistency at HEAD
| Location | Claim | Consistent with SKILL.md? |
|---|---|---|
Eval #2 expected_output — "each ledger entry carrying the finding AND the remedy" |
SKILL.md L84–89 step 1 fan-out instruction | ✓ |
Eval #2 expected_output — "dedups them by root cause" |
SKILL.md L93–110 step 3 Dedup | ✓ |
Eval #6 expected_output — "reporter->remedy mapping … keyed to the corrector that asked for it" |
SKILL.md L98–100 | ✓ |
Eval #6 expected_output — "step 4 applies every remedy, each at its own reporting corrector's rank" |
SKILL.md L117–119 | ✓ |
Eval #6 expectations[2] — "keeps the forks' ledgers independent (merge only at consolidation)" |
SKILL.md L107–110 | ✓ |
One minor observation (not a blocker)
evals.json L68 uses reporter->remedy (ASCII ->) while SKILL.md and CHANGELOG consistently use reporter→remedy (Unicode →). Purely cosmetic in JSON prose content — the model-graded eval reads both identically — but worth normalising if uniformity across the skill files matters.
Prior-commit observations — all still hold at HEAD
- Step renumbering (3→4, 4→5) fully applied throughout SKILL.md ✓
- Fork independence reaffirmation language untouched ✓
- Cost datapoint math (~170K × 8 ≈ 1.4M) ✓
plugin.jsonversion bump0.7.0→0.8.0✓- All four Codex P2 findings addressed across commits
faca188,d0fb6fa,f1c4833,fa361b9✓ - Data-flow chain (step 1 supplies remedy data → step 2 collects → step 3 keys by reporter → step 4 applies each at its own rank → step 5 reports once with attribution) coherent end-to-end ✓
The pre-existing carve-out ambiguity at SKILL.md L129–130 ("step 2" = shared-loop numbering, "step 4" = batch-runbook numbering in one sentence) remains pre-existing, not introduced by this PR, and not a blocker.
No issues to address before merging. All Codex P2 findings are fully resolved; eval coverage is in place; the PR is internally consistent at HEAD.
|
Claude finished @kyle-sexton's task in 1m 25s —— View job Security Review — PR #1174 (HEAD
|
| Item | Status |
|---|---|
userConfig literal-placeholder guard (L158–161) |
Present and untouched |
batch_exclude / batch_promote / batch_demote — name-list filters only, no code execution |
Confirmed |
| Outward-artifact gate ("no PR/issue/published comment without explicit opt-in") (L138–144) | Unchanged, still present |
| GitHub Actions / workflow files | None changed |
| Dependency or action pins | None changed |
| Secrets or credentials | None introduced |
|
Pre-merge CI classification — all required checks green, 0 failing / 0 pending.
Doc/eval-only enhancement (F4). Merging per the standing drive-to-MERGED directive. |
Summary
Resolves the F4 finding from inbox item
20260723-090435-melodic-session-plugins-audit— an enhancement (the sweep works as documented), doc-only.A real full-batch
sweep-all-disciplinesrun surfaced one root finding (a recall-based claim) as three separate ledger entries — flagged independently bydo-your-research,recheck-against-upstream, andmind-your-maxims— and the main thread had to dedup by hand between collect and correct.re-anchor 0.8.0 (doc-only: skill runbook + changelog; no code).
Test plan
skill-quality:check sweep-all-disciplinesPASS (0 errors, 0 warnings); all 7 base-ref trigger phrases preserved; SKILL.md 185/500 lines.markdownlint-cli2(repo config) clean on both changed files.Related
20260723-090435-melodic-session-plugins-auditfinding F4.Closes #1154
🤖 Generated with Claude Code