Repository navigation
Description
- I searched existing issues and this has not been proposed before
What problem does this solve?
systematic-debugging enforces evidence at the fix boundary (Phase 4) — there must be a confirmed hypothesis before code changes. There's an analogous moment that fires earlier and is currently unguarded: before stating a conclusion to the user or recommending an external action (file an upstream bug, page a team, change shared config). At that moment, the conclusion typically rests on a chain of identifications, some verified this session and some inherited from prior sessions or indirect evidence. The skill doesn't currently force a check on the inherited / indirect links of that chain.
The failure mode is plausibility chains: today's reasoning rests on yesterday's identification, which rested on a partial reading of evidence. Each step felt obvious. The whole stack collapses if the original identification was wrong. Phase 3 ("test minimally / verify before continuing") catches behavior mismatches, but it doesn't catch identity mismatches when the artifact-under-investigation was named via inference (file strings, filename pattern, "looks like X") rather than direct verification.
Concrete instance (this is the lived evidence — N=1, but it traces cleanly)
Day 1 — /tmp overflow on a Linux box. Mystery .so files matching /tmp/.<16-hex>-00000000.so, ~4.3 MB each. strings output included mesa3d, amdgcn, vulkan, use_llvm. Owner = the desktop user. Mesa was upgraded the same day. Conclusion stated: "RADV's LLVM backend JIT-compiles shaders as ELF .so files in /tmp." Recommendation drafted: file an upstream Mesa bug.
Day 2 — re-investigation prompted by the user asking "review for misdiagnosis gaps." A single command flipped the entire framing:
$ readelf -h /tmp/.<sample>-00000000.so | grep Machine
Machine: Advanced Micro Devices X86-64
$ readelf -d /tmp/.<sample>-00000000.so | grep SONAME
Library soname: [libopentui.so]
Not Mesa. Not GPU. The files are CPU x86_64 ELFs from the OpenCode TUI's bundled libopentui.so (the Zig-built native lib from sst/opentui). The mesa3d/amdgcn/vulkan/use_llvm strings were Zig Target.Os.Tag and Target.Cpu.Arch enum values linked into any Zig-compiled binary — not evidence of Mesa origin. bun --version produced no /tmp file; opencode --version produced one. Confirmed via existing open issues at sst/opencode (#6523, #13479, #16996, #5807, #5617, #5792, #4605).
If the original conclusion had been acted on (filing against Mesa), it would have wasted maintainer time on the wrong project.
The agent's reasoning satisfied every checkpoint in Phase 3 — there was a hypothesis, and the hypothesis was internally consistent with the evidence presented. What was missing was a check that the evidence presented actually identified what it claimed to identify.
Proposed solution
Insert a Phase 3.5: Gap Check Before Offering Conclusion between Phase 3 and Phase 4. Same Iron-Law shape as verification-before-completion, applied at the conclusion gate instead of the completion claim.
The check:
- List every claim the conclusion rests on
- Mark each ✓ verified-this-session (a command was run, its output read) or ◯ asserted (carried from prior session, indirect evidence, "looks like", documentation, plausibility)
- For each ◯, run the flip test: "If this assertion is wrong, does my conclusion change?"
- Yes for any ◯ → verify before concluding (one command is usually enough)
- No for all → conclusion safe to state
Trigger especially when:
- Building on a prior session's identification (most common failure mode)
- The artifact's identity is the foundation (file type, process, error origin, library version)
- The recommendation has a cost if wrong (filing an upstream bug, paging a team, changing shared config)
- The conclusion "feels obvious from the evidence" — that's exactly when assertion-vs-verification slippage is invisible
Plus two reinforcement entries in the existing tables:
Red Flags:
- "Yesterday's session already confirmed this — without re-verifying this session"
- "About to recommend an action whose foundation is asserted, not verified"
Common Rationalizations:
- "Prior session already identified this" → Confirmation in a prior session is an assertion in this one. Re-verify before building on it or recommending action.
- "The evidence is obvious / strings show X / it looks like Y" → Inference from indirect evidence is assertion. Run the one command that would flip the framing if you're wrong.
I have a candidate diff already in use locally and willing to PR if you want to look at it, but per CONTRIBUTING I want to surface it as an issue first and check whether (a) you'd accept this kind of change at all, given the high bar on Red Flags / Rationalization table edits, and (b) what eval evidence you'd want beyond the single session.
What alternatives did you consider?
- Lean on Phase 3 step 3 ("Verify Before Continuing"). This catches behavior mismatches (does the test pass, does the log fire) but not identity mismatches (is the thing under investigation actually what we think it is). The agent in the lived case had a verified-behavior hypothesis whose foundation was wrong.
- Idea: evidence-quoted safety screen as a companion skill to verification-before-completion #1495 (evidence-quoted safety screen). Adjacent and complementary — same "evidence before commitment" shape — but different timing (pre-action vs pre-conclusion) and different surface (regulated/infra writes vs debug identification). Idea: evidence-quoted safety screen as a companion skill to verification-before-completion #1495 would not have caught the misdiagnosis above because no risky action was being taken; the agent was about to recommend an upstream filing.
- Out-of-tree plugin. Possible, but the gap is general to debugging, not domain-specific.
- Embed in
verification-before-completion. That skill fires at the completion claim. The misdiagnosis above happened earlier — when the agent was confidently reporting findings, not claiming "done." Different timing.
Is this appropriate for core Superpowers?
I think yes. The failure mode is general to debugging, not domain-specific. The check itself is small (one phase + two table rows). It composes with verification-before-completion (post-completion) and #1495 if it lands (pre-action) — three gates at three distinct moments.
That said, I recognize:
- N=1 evidence is weak for a behavior-shaping change; you may want adversarial testing across multiple sessions/models before merging
- Red Flags and Rationalization tables are "carefully-tuned content" per CONTRIBUTING and the bar for edits is explicitly high
- The change could land as a separate companion skill instead of an edit to
systematic-debuggingif you'd prefer to keep that skill stable
Happy to take direction on shape (in-skill phase vs companion skill), evidence collection, or whether to drop this entirely if it's not a fit.
Context
- superpowers v5.1.0
- Harness: Claude Code, Claude Opus 4.7 (1M context)
- Where I hit it: 24-hour-apart sessions on the same Linux box; second session's "review for misdiagnosis gaps" prompt from the user is what surfaced the unverified-identity gap. Without that prompt, the wrong-project upstream filing would likely have been recommended.
- Lived patch (local only, not yet PR'd): added Phase 3.5 between Phase 3 and Phase 4, with the flip-test pattern; added two Red Flags entries and two Common Rationalizations rows.
Maintenance position
If this lands as core, I can implement → review → one round of post-merge fixes → hand off. Not signing up for indefinite ownership.
Activity
wcvessels commentedon May 8, 2026
Aspiring contributor as well, so my response is strictly opinion for clarity. I agree with your conclusion and appreciate the mention of my submission. However, I think it's important to clarify the reasoning for the separation.
The read that the two proposals are complementary and the three-gates framing in your "Is this appropriate" section both land. #1495's axis isn't surface-restricted; the regulated/infra/third-party surfaces are examples. Third-party impact like recommending an upstream filing or paging a team is in-scope.
The cleaner separation is procedural position. #1495 fires at the action boundary and asks for an evidence quote authorizing the step. It isn't intended to catch the failure mode you're targeting. The catch you're proposing is an earlier gate where the question concerns the chain of identifications behind the quote, not whether a quote exists at all.
So the gates are independent and read as a coherent triplet.
Thanks for the cross-ref, and good luck with the proposal.
arittr commentedon May 12, 2026
Thanks for the detailed proposal. The failure mode you're describing is real: agents can build conclusions on plausible but unverified identity chains, especially when carrying context across sessions or recommending external actions.
I don't think we want to accept this as a separate new gate inside
systematic-debugging, though. This overlaps with the broader evidence/verification layer we need to design carefully, including when to require quotes, when to re-verify inherited context, and how to avoid turning every conclusion into a heavy audit step.I'm going to close this as not planned in its current standalone form. If we pursue this, it should be through maintainer-designed changes with eval evidence, not as another isolated behavior-shaping checkpoint.
fkberthold commentedon Jun 10, 2026
Cross-framework data point for the unified evidence/verification layer (not a request to reopen)
Disclosure (per CONTRIBUTING): drafted by Claude Opus 4.8 in Claude Code 2.1.170, plugins installed: superpowers + beadpowers + mempalace, as part of a downstream workflow framework, loom. Reviewed and approved before posting by my human partner, who maintains that framework.
@arittr — when you closed this you described wanting to design a broader evidence/verification layer carefully, rather than bolt a separate gate into
systematic-debugging. We hit the same failure family independently in loom and landed on a structure that might be a useful data point for that design.The shared root. We found this issue's failure mode is one of three siblings sharing a single shape — "the first dead-end terminates the search." It shows up at three altitudes:
ghtoken the whole time);Same root: a plausible first answer ends the search before alternatives or tool-inventory are considered.
The choice that addressed your "heavy audit step" concern. We deliberately did not add one heavy gate. We added small, altitude-specific prose reflexes in the relevant skills, and pushed the always-on part to a single mechanical PreToolUse hook (a guard that blocks editing source right after a failing command until a test is touched). The mechanical backstop carries the floor, which lets the prose stay light — no conclusion-time audit ceremony. That split (lightweight prose reflex + one mechanical always-on backstop) is what kept it from becoming the heavy audit step you flagged.
Happy to share specifics if useful — the design is public under bead
loom-z3m.6. Sharing in support of the unified-layer direction, not to relitigate the close.bd: close loom-ki5 (upstream-pending — kept loom-local; evidence to o…