Caeser v9.2 - evidence-ordered leads and actionable comments (proposed)
v9.2 is a diagnostics-quality release. It does not change the Go adapter, the probe/verification gates, or the root-cause promotion rules. It makes the existing evidence easier to act on: the likely-function shortlist now respects the candidate tier’s own evidence order instead of a coarse provenance bucket, the bounded candidate report no longer lets the failing test file crowd out implementation candidates, and the PR comment shows the concrete failure text and the primary suspect.
This release is not published. It is prepared for review.
Changes
Section titled “Changes”- Evidence-ordered likely-function ranking. The shortlist preserves the candidate tier’s rank and promotes operand-correlated SSA leads (functions on the failed assertion’s operand dependency path, labelled as leads, low confidence). Observed stack frames are ordered ahead of runtime/testing/dependency frames. Root-cause promotion, confidence semantics and abstention are unchanged.
- Candidate report is a developer handoff. Implementation candidates are
kept ahead of
_test.goentries before the report limit, so the failing test file cannot displace them. - Concrete failure text. The panic/exception line is extracted from Go test output and generic runtime-exception text, instead of the placeholder “runtime exception or panic was reported”. The GitHub Actions log prefix is handled.
- Actionable PR comment. The comment leads with a Primary suspect, then
Other ranked leads, then What to investigate from the report’s
existing
next_actions, with the unverified disclaimer retained. - Evidence-grounded causal hypothesis. A new deterministic
causal_explanationtier ties the observed failure semantics (panic/assertion text, expected/actual, subtest) to the primary suspect’s concrete source or SSA operation, states the unresolved causal question, and emits evidence-specific checks (target,evidence_needed,confirms_if,rejects_if). It is read-only, labelled a hypothesis, abstains without a suspect or on refusal, and does not change ranking, confidence, verification, or promotion. Seeevaluation/causal-explanation-findings.md. - Evidence-ordered candidate ranking.
BuildCandidateReportorders existing candidates by evidence strength: observed execution evidence, then functions on the failing test’s type-resolved call path (execution_paths, verified static call edges only), then inferred fan-out. No candidates are added and no score or kind changes. Frozen-16fn_top18→10, misleading primary 8→6 (--rebuild-candidate-report). - Operation-support classification. The causal explanation records whether
the cited operation is
evidence_supported(typed SSA value or verified failing-test call path),source_correlated,source_associated, orrequires_investigation, so a hypothesis is never read as a causally connected fact. - Innermost-frame candidate ordering. Within observed execution evidence,
candidates are ordered by the innermost reported frame they enclose (from the
structured incident locations or the ordered
execution_stack_frameevidence). This resolves ties where every enclosing frame carried the same execution score. Frozen-16fn_top110→11; the independent holdout improved 7→10 with no primary regression. Seeevaluation/iteration3-audit.md. - Backward causal investigation. A deterministic, bounded trace walks
backward from the failure’s manifestation frame to the operation that
produced the invalid value or error, using type-resolved call edges
(
verified_static_call/go_types) with an AST-based fallback. It admits statically-supported producers ascausal_producercandidates, promotes the nearest producer ahead of the manifestation frame only when the frame merely propagates the producer’s value/error, and reports unresolved cross-package or dynamic boundaries instead of fabricating edges. Races are excluded. It never promotes a root cause. Demonstrated on the real starlight repository (primarytoValueinstead of theGoSlice.Indexpanic site). Seeevaluation/iteration5-causal-trace.md. - Developer handoff leads with the answer.
caeser briefnow opens with a Verdict (triage + how far the causal question got + verification status: sandbox cold-path / runtime probe / static-only) and a Suspects block (primary plus alternates with reason and confidence), and puts concrete Next checks ahead of raw evidence.--promptis a self-contained handoff for a developer’s own agent: it states what is observed vs inferred, forbids presenting a hypothesis as verified, and points at the ranked suspects. The PR comment adds a one-line Triage verdict. Presentation only; ranking, confidence, verification and promotion are unchanged.
Validation (frozen 16-case Go corpus)
Section titled “Validation (frozen 16-case Go corpus)”Ranking stage, saved reports, identical inputs (see
cmd/likely-bench/README.md):
| Metric | Before | After |
|---|---|---|
| Top-1 (function) | 5 | 8 |
| Top-1 (function or file) | 7 | 9 |
| Misleading primary | 7 | 5 |
| Coverage | 14/16 | 14/16 |
Candidate-report selection (--rebuild-candidate-report): candidate recall
9→11 (function), top-1 9→10, top-3 11→13, coverage 14→16, non-stack top-1 3→4;
misleading primary 5→6. The precision rate is approximately flat
(35.7%→37.5%); the extra misleading case (go-u004) is a cross-package scope
limitation documented in evaluation/discovery-findings.md.
Held-out check (gin, koanf): gin top-1 tree.go node.getValue; koanf top-3
koanf.go toFloat64. No regression observed, n=2.
Not in this release
Section titled “Not in this release”- Mechanism A (function admission depth) and mechanism C (dependency-package
indexing scope) are investigated and documented, not shipped: they cannot be
validated end-to-end against the frozen reports (fixed snapshots) and risk
noise/cost without that validation. See
evaluation/discovery-findings.md. - No verified-mechanism or root-cause behavior changed. No capability is claimed that has not been validated.
Curated demos
Section titled “Curated demos”Six curated demos were run through the source-built engine
(evaluation/demo-prs/). On the runs that reproduced a failure: a panic
(node.getValue), a conversion regression (RecursiveStructToMapHookFunc) and
an SSA-dependency case (GetInt) produced the correct primary suspect; a deeper
call chain (GoSlice.Index) is partial; an assertion whose culprit is absent
from the stack (Koanf.Int64s vs toFloat64) is a documented ranking
limitation; a data-race case abstains correctly but reproduces intermittently.
Beyond-stack localization is demonstrated by the SSA case: the primary is the
function whose call produces the failed assertion’s operand (mcp/tools.go
GetInt), attributed by following the operand cone’s call callee. The rule is
justified by the trace (the operand cone reaches the GetInt call), keeps
correlation a low-confidence lead, and leaves the frozen-corpus primaries
unchanged.
Toolchain note
Section titled “Toolchain note”The release toolchain is pinned to Go 1.26.11. govulncheck ./... reports
0 called vulnerabilities on that toolchain (2 in required modules that are
not called); the previously used toolchain reported 22 standard-library
advisories.