Repository navigation
feat(workers): deterministic failure-analyzer pipeline with additive findings[] - #75
Merged
Merged
Conversation
…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.
# Conflicts: # workers/package.json
Closed
7 tasks done
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.
Closes #58.
Promotes the one-off
appendStaleStateHintinto 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.(bundle) => Finding | nullfunctions, 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? };codevalues are a governed vocabulary like the failure taxonomy (new codes need a Discussion).findings[]onAssertionResult, the CLIfailures[]JSON, and the SDK'sVerifyFailure. No existing fields changed. The top finding is rendered intofix_hintprose.stale_sessionreproduces the previous stale-state hint text verbatim (query strings still stripped from URLs).Tests:
stale-state-hint.test.tsported toanalyzers.test.ts(all six original cases preserved) plus pipeline-behavior cases; registered asnpm run test:analyzers.Verified: all three packages typecheck; full workers suite green; testbed smoke test passes with
timeline_url: nulland pure-JSON stdout;cli/test/json-purity.shgreen.Follow-ups building on this: #59 (blocking-overlay analyzer), #60 (prior-console-errors analyzer).