Skip to content

feat(workers): deterministic failure-analyzer pipeline with additive findings[] - #75

Merged
jyotir-aditya merged 2 commits into
mainfrom
feat/analyzer-pipeline
Jul 10, 2026
Merged

jyotir-aditya merged 2 commits into
mainfrom
feat/analyzer-pipeline

Conversation

@jyotir-aditya

Copy link
Copy Markdown
Contributor

Closes #58.

Promotes the one-off appendStaleStateHint into a registry-based failure-analyzer pipeline (workers/src/assertions/analyzers.ts):

  • EvidenceBundle — one typed input per failed assertion: failure type, assertion, error/details, state_restored, console + network logs.
  • Analyzers — pure (bundle) => Finding | null functions, ordered, capped at 3 findings, each wrapped so an analyzer bug can never fail a run. Deterministic only — no LLM anywhere in this pipeline.
  • Finding — { code, summary, evidence, suggestion? }; code values are a governed vocabulary like the failure taxonomy (new codes need a Discussion).
  • Contract — additive optional findings[] on AssertionResult, the CLI failures[] JSON, and the SDK's VerifyFailure. No existing fields changed. The top finding is rendered into fix_hint prose.
  • Analyzer feat(cli): add runtime bootstrap flow verfix init #1 = pure refactor: stale_session reproduces the previous stale-state hint text verbatim (query strings still stripped from URLs).

Tests: stale-state-hint.test.ts ported to analyzers.test.ts (all six original cases preserved) plus pipeline-behavior cases; registered as npm run test:analyzers.

Verified: all three packages typecheck; full workers suite green; testbed smoke test passes with timeline_url: null and pure-JSON stdout; cli/test/json-purity.sh green.

Follow-ups building on this: #59 (blocking-overlay analyzer), #60 (prior-console-errors analyzer).

…findings[] (#58)

Promote appendStaleStateHint into a registry-based analyzer pipeline:
pure functions over already-captured evidence emit typed findings, capped
and priority-ordered; the top finding renders into fix_hint. stale_session
is analyzer #1 with behavior preserved verbatim. AssertionResult, the CLI
failures[] contract, and the SDK gain an additive optional findings field.
@jyotir-aditya
jyotir-aditya merged commit d522a6f into main Jul 10, 2026
2 checks passed
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.

feat(workers): deterministic failure-analyzer pipeline with additive findings[] in failure JSON

1 participant