feat(portal): inline Trace-dependencies expander per claim (26 CF.2)#175
Merged
bryanmatthewsimonson merged 2 commits intoJul 18, 2026
Conversation
Phase 26 slice CF.2 (docs/COUNTERFACTUAL_DESIGN.md §3; resolved §7:
inline per-claim expander) — completes the approved Phase-26 ladder.
- shared/case-counterfactual.js traceLines(delta, {claimsById}) — the
pure plain-list source the DOM projects 1:1: every line a count with
its derivation on the face (knot dissolve/split/shrink, only-support
losses with claim texts, attestation origin deltas with surviving
origins, falling propositions with chain lengths, entity/timeline
losses, hypothesis-edge removals or role-flips). Negate wording says
flips/rests-on and recomputes no verdict; the honest zero states
that nothing rests on the claim.
- shared/hypothesis-map.js collectHypothesisEdgeJoins — one read of
both models, canonicalized refs + labels, the CF.1 hypothesisEdges
join input.
- portal/trace-block.js mountTraceExpander — a native details element
per claim row in the evidence block; computes LAZILY on first open
over the already-collected shared data envelope; If removed /
If negated mode toggle; explainer states "measured over the local
graph. Not a probability of anything."
- evidence-block accepts {data, hypothesisEdges}; case-view collects
the joins once beside the shared assembly and passes both through.
- Tests: traceLines content for both modes, the honest zero, and the
§4 copy guard — no likelihood/strength/percent phrasing in any line
or derivation, either mode, across four claims.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The manual checklist for the H.1–H.4 / CF.1–CF.2 surfaces: authoring idempotency, seed promotion, crux badges, verdict-chip context, the no-scoreboard read, the gated LLM suggestion with its disclosures and the unopposed check, and the trace expander's remove/negate/zero paths. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bryanmatthewsimonson
force-pushed
the
claude/phase-26-cf1-counterfactual
branch
from
July 16, 2026 17:20
aa6001f to
950afbb
Compare
bryanmatthewsimonson
force-pushed
the
claude/phase-26-cf2-trace-expander
branch
from
July 16, 2026 17:20
1b3d310 to
494d7c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase-26 slice CF.2 — the final slice of the approved ladder. Stacked on #174 (→ #173 → #172 → #171 → #170 → #169); merge in order.
Each claim row in the case view's Evidence block gains a Trace dependencies expander (a native
<details>, computed lazily on first open over the already-collected shared data envelope — no second collection pass). Inside:traceClaimDependencies(CF.1),traceLines— every line a count with its derivation on the face: "A contradiction knot of 3: it dissolves — edges: link_…", "Leaves 1 claim with no remaining support", "Proposition …: attestation origins 2→1 (demonstrably independent 1→1)", "Hypothesis 'Zoonotic': loses 1 supporting and 0 undermining attachments",collectHypothesisEdgeJoins(one read, canonicalized) feeds the hypothesis-map joins into the delta.Guard
The §4 copy guard runs
traceLinesfor both modes across four differently-shaped claims and bans likelihood/strength/percent phrasing in every line and derivation string.Tests: 1,784 green (4 new) · build clean · lint 0 errors.
🤖 Generated with Claude Code