Repository navigation
feat(#929): sequant ready never records run metrics — no visibility into escalation, iteration counts, or gate outcomes - #1401
Merged
admarble merged 3 commits intoOct 10, 2026
Conversation
Entire-Checkpoint: f410838d6ed0
…orrect the stale #971 metrics comment Entire-Checkpoint: 283aba1369a8
…y-sequant-ready-never-records-run-metrics
admarble
deleted the
feature/929-feat-ready-sequant-ready-never-records-run-metrics
branch
October 10, 2026 15:16
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
Standalone
sequant ready <issue>now records its gate pass to.sequant/metrics.jsonas aMetricRunwithsource: "ready"(graph doc D-3: reuseMetricRunwith a discriminator).successwhen ready, elsefailed), the phases (qa, plusloopwhen it iterated), iterations, tokens,effortEscalations(feat(loop): evidence-based effort escalation on quality-loop retries #915) andmodelEscalations(feat(run): model escalation ladder on capability-bound non-convergence #971).--jsonstdout.source(written before this change) parses as"run".sequant statskeeps its headline aggregates tosource: "run"and adds abySourcebreakdown (and a "By source" line once areadyrecord exists).Fixes #929
Acceptance criteria
source: "ready"record per gate pass, and a writer failure leaves the exit code unchanged. Covered byready.metrics.test.ts.effortEscalations. Covered byready.metrics.test.ts› AC-2.sequant statscountsreadyruns separately. Covered bystats-source.test.ts.source: "run". Covered bymetrics-schema.source.test.ts.run --ready-gaterecording is unchanged. The feat(loop): evidence-based effort escalation on quality-loop retries #915 tests pass, andcreateMetricRunandrecordRundefault the source to"run".Mutation-verified: AC-1 —
buildReadyMetricsRecordwritessource: "run";src/commands/ready.metrics.test.ts > readyCommand — #929 metrics recording > AC-1: writes one source:ready record; failure keeps exit code > calls MetricsWriter.recordRun once with source 'ready' after runReadyGate resolvesfailed alone; restored.Mutation-verified: AC-3 —
calculateSourceBreakdownputs every record in therunbucket;src/commands/stats-source.test.ts > statsCommand — #929 by-source breakdown > AC-3: ready runs counted separately from run runs > --json reports bySource.run.total === 1 and bySource.ready.total === 1failed (4 of 5 in the file); restored.Mutation-verified: AC-4 — removed
.default("run")fromMetricRun.source;src/lib/workflow/metrics-schema.source.test.ts > MetricRun source (#929) > AC-4: legacy records read as source 'run' > parses a metrics file whose run has no source into runs[0].source === 'run'failed alone; restored.Runner verification (graph-2026-10-freeze, wave 2)
fix_nowfindings ina79df1af:--json --verboseprinted a non-JSON line on stdout. The writer's verbose "Metrics recorded" line went to stdout. The writer is now quiet under--json. A new test asserts it, and restoringoptions.verbosefails that test.readyhas no metrics record. It does now, so the comment is corrected.main.ready.metrics,stats-source,metrics-schema.source,statsandreadytests: 69 passed.tsc --noEmitis clean.git diff --name-only origin/main...HEAD | grep -E '^(plugin|\.claude/skills|templates/skills)/'is empty.🤖 Generated with Claude Code