Skip to content

feat(re-anchor): sweep-all-disciplines dedup-by-root-cause step + real cost datapoint - #1174

Merged
kyle-sexton merged 5 commits into
mainfrom
feat/1154-sweep-dedup-root-cause
Jul 23, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
feat/1154-sweep-dedup-root-cause

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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-disciplines run surfaced one root finding (a recall-based claim) as three separate ledger entries — flagged independently by do-your-research, recheck-against-upstream, and mind-your-maxims — and the main thread had to dedup by hand between collect and correct.

  • New dedup-by-root-cause step (the batched pass renumbers 1–5: fan out → collect → dedup → correct → report). Group ledger entries that share a root cause, carry the union of their located evidence and the list of reporting correctors, correct once at the highest-priority (lowest-rank) reporter's rank, and report the merged finding once with full attribution. A single-corrector finding passes through unchanged.
  • Fork independence reaffirmed: the forks never share a ledger — that independence keeps each audit's perspective un-anchored — and the dedup merge is the only point where ledgers combine (by root cause, not by corrector).
  • Cost gotcha gains the real datapoint: ~170K tokens per fork (inherited transcript), ~1.4M for an 8-in-scope pass in two waves of four — so the sweep is budgeted as a deliberate spend, not a reflex.

re-anchor 0.8.0 (doc-only: skill runbook + changelog; no code).

Test plan

  • skill-quality:check sweep-all-disciplines PASS (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

Closes #1154

🤖 Generated with Claude Code

…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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 3m 7s —— View job


Code Review

  • Gather context (PR metadata, changed files)
  • Read changed files and diff
  • Review plugin.json version bump
  • Review CHANGELOG.md entry
  • Review SKILL.md changes (dedup step, cost datapoint)
  • Check alignment with CLAUDE.md / repo guidelines
  • Post final review

Overall: Clean, well-executed doc-only change. The dedup step is logically placed and internally consistent. No correctness bugs, no security concerns.


plugin.json — Version bump ✓

0.7.0 → 0.8.0. Minor bump is appropriate: adding a new step to the runbook is new functionality, even for a doc-only skill. No other field touched.


CHANGELOG.md — Format and accuracy ✓

Follows Keep a Changelog; the [0.8.0] entry is consistent with prior entries (no date, which matches every previous release in this file). Both sections are accurate:

  • Added correctly describes the new step, its rank-priority merge rule, and the fork-independence reaffirmation.
  • Changed correctly characterizes the cost gotcha update as a datapoint, not a behavioral change.

Math sanity check on the token datapoint: 8 forks × ~170 K tokens/fork ≈ 1.36 M → reported as ~1.4 M. ✓


SKILL.md — Step renumbering and new content ✓

All step-number cross-references updated correctly throughout:

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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 34s —— View job


Security Review — PR #1174

  • Gather PR diff and changed files
  • Review plugin.json changes
  • Review CHANGELOG.md changes
  • Review SKILL.md changes
  • Post security findings

No security issues found.

This PR is doc-only (skill runbook + changelog + version bump). Here is what I reviewed against each threat class:

plugin.json — version bump 0.7.0 → 0.8.0 only. No schema changes, no new permissions, no new userConfig fields, no external references added.

CHANGELOG.md — narrative documentation. No executable content, no URLs, no credentials.

SKILL.md — the substantive change. Three additions:

  1. New dedup-by-root-cause step (step 3). Groups fork ledger entries that share a root cause before the correction pass. This is semantic/model-judgment logic, not code. I checked for prompt-injection amplification: could adversarial conversation content cause fork A's ledger to falsely merge with a legitimate finding from fork B, corrupting evidence or suppressing attribution? Theoretically yes, but this is no worse than the existing trust model — the main thread already consumes fork outputs directly, and the merge step adds no new external input surface. The grouping criterion ("same underlying finding") is judged by the model, not by a parser or evaluator, so there is no injection vector beyond what already exists in fork output handling.

  2. Step renumbering (3→4, 4→5). Mechanical update; no security relevance.

  3. Cost datapoint in Gotchas (~170K tokens/fork, ~1.4M for 8-in-scope). Informational. No sensitive data disclosed — token counts for the plugin's own operation are not secrets.

Existing userConfig variable handling (unchanged): the literal-placeholder guard (Treat BOTH an empty value AND a surviving literal placeholder as unset) was already present and is untouched by this PR.

GitHub Actions / workflow files: none changed.
Dependencies / pinned actions: none changed.
Secrets or credentials: none introduced.
Permissions: none changed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 25s —— View job


Code Review — PR #1174 (HEAD faca188)

  • Gather context (PR metadata, changed files, prior review comments)
  • Diff the full PR (both commits, HEAD faca188)
  • Review second commit — Codex P2 fix (distinct remedies per reporter)
  • Verify first-commit review observations still hold at HEAD
  • Post final review

Overall: Clean fix. The Codex P2 concern is fully and consistently resolved across every affected location. No regressions from the first-commit review; no new issues introduced.


Second commit (faca188) — Codex P2 fix

The Codex finding was: merging a finding at only the lowest-ranked reporter's rank could silently drop the other reporters' corrective obligations while marking the consolidated finding as corrected.

The fix addresses this in two places:

Step 3 (Dedup) — SKILL.md L88–103

The grouped finding now carries three things: union of located evidence, list of reporting correctors, and the union of each reporter's distinct remedies. The key sentence added:

What dedup collapses is the re-analysis and the re-reporting of one root cause — NOT the corrective work

The inline example (research retraction vs. mind-your-maxims uncertainty disclosure) makes the non-interchangeability concrete and unambiguous. ✓

Step 4 (Correct) — SKILL.md L104–113

Old language: "corrected at the rank of the highest-priority (lowest-rank) corrector" — this phrase is gone. New language:

apply every reporter's distinct remedy, each at its own reporting corrector's rank (so the research retraction and the mind-your-maxims disclosure both happen, in rank order), rather than dropping the lower-priority reporters' corrective work

This is the structural fix: each remedy now applies at its own reporter's rank, not the merged minimum rank. The step title "Correct once" is clarified inline as "the root cause is analyzed and corrected in a single pass, not that its remedies collapse to one" — accurate and non-misleading. ✓

Step 5 (Report) — SKILL.md L124–127

Unchanged and already correct: "listed once, attributed to every corrector that reported it." ✓

CHANGELOG — CHANGELOG.md L12–22

The old entry said "correct once at the highest-priority reporter's rank" — that phrase is removed and replaced with "every reporter's remedy is still applied, each at its own rank." Fully consistent with SKILL.md. ✓


Cross-location consistency check

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.json version bump 0.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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 15s —— View job


Security Review — PR #1174

  • Read PR diff
  • Review plugin.json changes
  • Review CHANGELOG.md changes
  • Review SKILL.md changes
  • Post findings

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:

plugin.json — version bump 0.7.0 → 0.8.0 only. No new userConfig fields, no permissions changes, no external references added, no schema changes.

CHANGELOG.md — narrative documentation only. No executable content, no URLs pointing outside the plugin, no credentials.

SKILL.md — the substantive change. Three additions to assess:

  1. New dedup-by-root-cause step (step 3). The main thread now reads and groups ledger entries from multiple fork subagents before correcting. I looked at whether this introduces a new injection amplification surface: if adversarial content in the conversation caused a fork to emit a specially-crafted "root cause" description that falsely grouped a legitimate finding with a benign one, the merged entry could suppress attribution or remedies. However, this attack path requires compromising fork output at the text level — no worse than the existing trust model in which the main thread already directly consumed fork ledgers in step 2 (collect). The PR explicitly preserves each reporter's distinct remedy (faca188 addresses the Codex finding on this), so the merge does not drop corrective work. No new execution surface, no new external input path.

  2. Step renumbering (3→4, 4→5). Mechanical update; no security relevance.

  3. Cost datapoint in Gotchas (~170K tokens/fork, ~1.4M for 8-in-scope). Informational; reveals only the plugin's own token consumption, not any secrets or sensitive data.

Existing userConfig variable handling (unchanged): the literal-placeholder guard (Treat BOTH an empty value AND a surviving literal placeholder as unset) is present and untouched at SKILL.md line 153–154. The three userConfig corrector-name filters cannot execute code — they filter a name list.

GitHub Actions / workflow files: none changed.
Dependencies / pinned actions: none changed.
Secrets or credentials: none introduced.
Permissions: none changed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 29s —— View job


Code Review — PR #1174 (HEAD d0fb6fa)

  • Gather context (PR metadata, prior reviews, Codex findings)
  • Read PR diff at HEAD
  • Review third commit — reporter-keyed remedy mapping fix
  • Verify CHANGELOG consistency
  • Post final review

Overall: Clean, precise fix. The second Codex P2 finding is fully resolved; the change is minimal, internally consistent, and introduces no new issues. Ready to merge.


Third commit (d0fb6fa) — Codex P2 fix: reporter-keyed remedy mapping

The Codex finding was: storing a flat remedy union beside a separate reporter list loses which reporter asked for which remedy, so step 4 cannot apply each remedy at its own reporting corrector's rank.

The fix is a surgical 2-line replacement in Step 3 (Dedup):

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.json version bump 0.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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 21s —— View job


Security Review — PR #1174 (HEAD d0fb6fa)

  • Gather PR diff (3 commits, 3 files)
  • Read changed files at HEAD
  • Security analysis
  • Post findings

No security issues found.

This is a doc-only PR (skill runbook, changelog, and version bump). Below is the threat-class analysis of each changed file.


plugin.json

Version bump 0.7.0 → 0.8.0 only. No new userConfig fields, no permissions changes, no new external references, no schema changes. No security surface touched.

CHANGELOG.md

Narrative documentation only. No executable content, no external URLs, no credentials. No security surface.

SKILL.md — the substantive change

Three additions evaluated:

1. New dedup-by-root-cause step (step 3) — ASSESSED, NOT A NEW RISK

The step groups ledger entries emitted by fork subagents that name the same underlying finding. The grouping criterion ("same root cause") is judged by the model reading fork output, which is the most plausible injection surface: adversarial conversation content could cause a fork to emit a crafted root-cause description that, when read by the main thread during dedup, falsely absorbs a legitimate finding from a different fork under the adversary-controlled description, overriding that finding's remedy with an adversary-crafted one.

This path requires compromising fork output at the text level. However, forks already inherit the full conversation in step 1 (fan out) and the main thread already consumes fork ledgers directly in step 2 (collect) — the dedup step adds no new external input that was not already reachable. The attack surface is the same baseline trust model that pre-existed this PR. No new injection vector is introduced.

2. Reporter→remedy keyed mapping (commit d0fb6fa)

The final commit changes the grouped finding from carrying a flat union of remedies plus a separate reporter list to a reporter→remedy map, so each remedy is applied at its own reporting corrector's rank. This is an organizational change to data that was already in the ledger. It does not expand the input surface and is arguably more correct because it prevents remedy drop from lower-priority reporters — a prior design that could have silently suppressed corrective work.

3. Cost datapoint in Gotchas

Informational only (~170K tokens/fork, ~1.4M for 8 forks). Reveals the plugin's own token consumption, not secrets or sensitive data. The added "budget this as a deliberate spend" guidance reduces risk of inadvertent high-cost runaway usage.


Unchanged items verified at 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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 52s —— View job


Code Review — PR #1174 (HEAD f1c4833)

  • Gather context (PR metadata, prior reviews, Codex findings)
  • Read changed files at HEAD
  • Review fourth commit — fan-out remedy mandate fix
  • Verify CHANGELOG and SKILL.md consistency
  • Post final review

Overall: The PR is internally consistent and correct at HEAD. All three Codex P2 findings are resolved across four tightly scoped commits. No new issues introduced. Ready to merge.


Fourth commit (f1c4833) — fan-out remedy mandate

The Codex finding was: the dedup step keys remedies by reporting corrector, but step 1 only told forks to return located violations — so there was no remedy data for step 3's reporter→remedy mapping to operate on.

The fix is a surgical 7-line edit to SKILL.md L82–90:

The fork instruction now requires each ledger entry to carry:

  • The concrete located finding, AND
  • The remedy this corrector would apply (step-3 corrective action, described not performed — the fork still writes nothing), OR an honest "clean"

The explanatory sentence added at L88–89 is particularly well-placed:

Capturing the proposed remedy in the audit is what gives step 3 the reporter→remedy data to key on; a ledger of bare violations would leave the dedup with nothing to preserve.

This closes the loop cleanly across all four steps. ✓


Data-flow consistency check — full chain at 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.json version bump 0.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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 36s —— View job


Security Review — PR #1174 (HEAD f1c4833)

  • Gather context (PR metadata, event type, prior reviews)
  • Read PR diff (git diff 9d2fa61..HEAD)
  • Read changed files at HEAD (plugin.json, CHANGELOG.md, SKILL.md)
  • Security analysis
  • Post findings

No security issues found.

This PR is doc-only across all four commits: a skill runbook update (SKILL.md), changelog (CHANGELOG.md), and version bump (plugin.json). No executable code, no workflow files, no dependency pins, and no credentials are touched.

Below is the threat-class analysis of each changed file and of the three novel additions the PR introduces.


plugin.json

Version bump 0.7.0 → 0.8.0 only. No new userConfig fields, no permissions changes, no new external references, no schema changes. No security surface touched.

CHANGELOG.md

Narrative documentation only. No executable content, no external URLs, no credentials.

SKILL.md — the substantive change

Four additions evaluated:

1. Fan-out step now requests remedy descriptions from forks
(SKILL.md L84–89)

Forks now return each ledger entry's described remedy alongside the located finding. This slightly expands fork output content. An adversary who could influence fork text output could craft a remedy description that, when the main thread reads it in step 4, biases the main thread toward a harmful corrective action. However, the trust level of remedy descriptions is no different from that of findings — both are model text consumed by the same main-thread model that already read the full conversation. The "fork still writes nothing" constraint is explicitly preserved in the instruction, closing the write-path surface. No new execution surface.

2. New dedup-by-root-cause step (step 3)
(SKILL.md L93–110)

The most plausible injection path here: adversarial conversation content could cause Fork A to emit a ledger entry whose root-cause description, when the main thread reads it alongside Fork B's legitimate finding, results in a false grouping — absorbing a security-critical finding under a benign one and marking it "corrected" when only the benign element was addressed.

This path requires compromising fork output at the text level AND relies on the main-thread model making an incorrect grouping judgment. Both conditions are necessary. Critically, the main thread was already consuming fork ledger text in step 2 (Collect) before this PR — the dedup adds no new external input that was not already reachable. The attack surface is the same baseline trust model that pre-existed this PR; the new step does not open a new channel.

The reporter→remedy mapping design (final commit f1c4833) is actually more conservative than a flat remedy union: it preserves which reporter requested which remedy, preventing a false grouping from silently dropping a reporter's corrective obligation. The data structure is harder to exploit for suppression than the flat-union variant it replaced.

3. Reporter→remedy keyed mapping (f1c4833)
(SKILL.md L98–100)

Organizational change to data already in scope. See above — this strengthens attribution preservation, not weakens it.

4. Cost datapoint in Gotchas
(SKILL.md L191–196)

Informational. Reveals only the plugin's own token consumption from a real run, not secrets or sensitive data. The "budget this as a deliberate spend" guidance reduces risk of inadvertent high-cost runaway usage, which is the right direction.


Unchanged items verified at 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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 6s —— View job


Code Review — PR #1174 (HEAD fa361b9)

  • Gather context (PR metadata, prior reviews, Codex findings)
  • Read changed files at HEAD
  • Review fifth commit — eval coverage for dedup-by-root-cause
  • Verify full data-flow chain still holds at HEAD
  • Post final review

Overall: Clean, targeted fix. The last Codex P2 finding (no eval guard for the dedup step) is fully resolved. Both the new eval and the strengthened existing eval are accurate and internally consistent with SKILL.md at HEAD. All four previous-commit observations hold. Ready to merge.


Fifth commit (fa361b9) — eval coverage for dedup-by-root-cause

Only evals.json was touched (+14/-2). Two changes:

Eval #2 (full-batch-fork-audit-then-ordered-correction) — strengthened

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.json version bump 0.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

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 25s —— View job


Security Review — PR #1174 (HEAD fa361b90)

  • Gather context (PR metadata, changed files, prior reviews)
  • Read PR diff (git diff 9d2fa61..HEAD)
  • Read changed files at HEAD
  • Security analysis
  • Post findings

No security issues found.

This is a doc-only PR across all five commits: skill runbook (SKILL.md), changelog (CHANGELOG.md), version bump (plugin.json), and eval fixtures (evals.json). No executable code, no workflow files, no dependency pins, and no credentials are touched.

Below is the threat-class analysis at HEAD fa361b90.


plugin.json

Version bump 0.7.0 → 0.8.0 only. No new userConfig fields, no permissions changes, no new external references, no schema changes.

CHANGELOG.md

Narrative documentation only. No executable content, no external URLs, no credentials.

SKILL.md — substantive changes

Three additions assessed:

1. Fan-out step now requests remedy descriptions from forks
(L84–89)

Forks now return each ledger entry's described remedy alongside the located finding. The "fork still writes nothing" constraint is explicitly preserved in the instruction. A crafted remedy description in fork output would be consumed by the main-thread model in step 4, but that model already read the full conversation and all fork findings in prior steps — the trust surface is unchanged. No new execution path introduced.

2. New dedup-by-root-cause step (step 3)
(L93–110)

The main-thread model now groups fork ledger entries that share a root cause before correcting. The most plausible injection path here: adversarial content in the session could cause a fork to emit a crafted root-cause description that, when the main thread reads it during dedup, falsely groups a security-critical finding under a benign one — suppressing its remedy while marking it "corrected." This requires (a) compromising fork output at the text level AND (b) the main-thread model making an incorrect grouping judgment, both necessary conditions.

Critically, the main thread was already consuming fork ledger text in step 2 (Collect) before this PR — the dedup step adds no new external input that was not already reachable. The reporter→remedy mapping design (finalized in d0fb6fa) is more conservative than a flat union: each remedy is explicitly keyed to its reporting corrector, making remedy suppression via false grouping harder than the pre-PR design, not easier. The trust surface is the same baseline model that pre-existed this PR.

3. Cost datapoint in Gotchas
(L192–196)

Informational. Reveals only the plugin's own token consumption from a real run (~170K/fork, ~1.4M for 8 forks). No secrets disclosed. The "budget as a deliberate spend" guidance reduces inadvertent high-cost runaway usage.

evals/evals.json — new eval #6 and updated eval #2

Eval #6 (L65–75) adds a model-graded behavioral assertion. The prompt and expected_output strings are inputs and reference outputs for a model judge — they are never executed as code and contain no shell metacharacters, no template interpolation sequences, and no credential-shaped content. No injection risk.


Unchanged items verified at 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

@kyle-sexton

Copy link
Copy Markdown
Member Author

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.

@kyle-sexton
kyle-sexton merged commit 73d37ef into main Jul 23, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the feat/1154-sweep-dedup-root-cause branch July 23, 2026 19:23
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.

re-anchor: sweep-all-disciplines — dedup-by-root-cause consolidation step + real cost datapoint

1 participant