Skip to content

feat(#1651): --chain and multi-issue runs print an "experimental" warning with their measured success rates — fixed, dated counts; the code stays - #1678

Merged
admarble merged 3 commits into
mainfrom
feature/1651-feat-run-chain-and-multi-issue-runs-print-an-exper
Nov 15, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/1651-feat-run-chain-and-multi-issue-runs-print-an-exper

Conversation

@admarble

@admarble admarble commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The --chain and multi-issue warnings are in and pushed on feature/1651-feat-run-chain-and-multi-issue-runs-print-an-exper (commit 84e2bf699). It's left to the orchestrator to open the PR.

What changed

  • The two W-1 lines are new constants with an emitExperimentalWarnings helper in src/commands/run-experimental.ts (new), which keeps run.ts at 190 lines, under the 200-line cap. The helper prints with console.error, so the lines start at column 0 with ⚠ , and the chain line comes first.
  • In src/commands/run.ts, runCommand calls the helper after the pre-flight rejections and before RunOrchestrator.resolveConfig. A rejected run prints nothing, and --json stdout is unchanged.
  • Batch runs: a --batch run counts the issues across all batches and prints the multi-issue line when there is more than one. This is the spec's Open Question 2, where I took the recommendation.
  • docs/reference/run-command.md has an experimental note with the counts in ### Running Multiple Issues and ### Chain Mode only. CHANGELOG.md has an [Unreleased] → ### Changed entry.
  • src/commands/run.experimental-warning.test.ts (new) has 7 cases. They cover the four mode combinations with exact-string checks, --batch, order before resolveConfig with nothing on stdout, and a rejected pre-flight printing nothing.

Acceptance criteria

AC Result
AC-1 run.experimental-warning.test.ts: 7 passed, 0 failed
AC-2 grep -c '41 of 87' docs/reference/run-command.md gives 2
AC-3 chain-preflight.test.ts and chain-resume.test.ts pass
AC-4 The awk/grep check on [Unreleased] gives 1
AC-5 The skill-directory diff check gives 0

Checks: npm run build and npm run lint pass.

Affected tests: npx vitest run --changed origin/main plus the callers of run.ts selected 1 file, 141 tests passed. The AC files above are 4 files, 58 tests passed.

Gate-test mutation markers: none. The spec says no AC is a gate test.

Weakest part: the ordering assertion compares invocation order of two mocks, so it tests the call sequence, not worktree provisioning itself.

Coverage gaps: none. Both new source files are covered by the new test file.

Progress comment: none, because under sequant run the orchestrator handles that.

PR status: left to the orchestrator, branch pushed.

Fixes #1651

QA verdict: NEEDS_VERIFICATION — acceptance criteria met, pending external verification (e.g. CI or a manual test). See the QA review comment.

Runner verification (2026-11-11)

I ran each AC's Evidence command verbatim in the worktree at 84e2bf6.

  • AC-1: run.experimental-warning.test.ts, 7 passed, 0 failed.
  • AC-2: 2
  • AC-3: chain-preflight and chain-resume, 47 passed, 0 failed.
  • AC-4: 1
  • AC-5: 0

The warnings go to stderr and begin ⚠ --chain is experimental and ⚠ Multi-issue runs are experimental, at column 0, so the smoke test's AC-1 regex (#1655) matches them once stderr is captured.

Follow-ups

  • QA gap: the two warning constants were exported but used only inside their module. Fixed in f24f520: they're now module-private. The test pins the literal text on purpose and imports neither; tsc --noEmit is clean.
  • QA's NEEDS_VERIFICATION was for CI still pending. test and canary passed at 84e2bf6 and are re-running at f24f520.

🤖 Generated by sequant run

@admarble

Copy link
Copy Markdown
Contributor Author

Read first

Computed from the diff, the issue's Evidence: clauses and git log. Nothing here is written by a model.

Residue

  • src/commands/run-experimental.ts (+19 −0): no AC's evidence names it — git diff --numstat origin/main...HEAD -- src/commands/run-experimental.ts
  • src/commands/run.ts (+3 −0): no AC's evidence names it — git diff --numstat origin/main...HEAD -- src/commands/run.ts
  • CHANGELOG.md is hot: 20 fix commits in 28 days — git log --since=28.days --format=%s origin/main -- CHANGELOG.md | grep -cE '^fix(\(|:|!)'

Tests

  • src/commands/run.experimental-warning.test.ts: mock; mutation record: none — grep -nE 'vi\.mock|jest\.mock|SKILL\.md' src/commands/run.experimental-warning.test.ts, gh pr view 1678 --json body

Explained

  • src/commands/run.experimental-warning.test.ts — AC-1
  • docs/reference/run-command.md — AC-2
  • CHANGELOG.md — AC-4

AC verdict: the SEQUANT_QA_VERDICT comment on #1651.

@admarble
admarble merged commit d93aff8 into main Nov 15, 2026
9 of 10 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(run): --chain and multi-issue runs print an "experimental" warning with their measured success rates — fixed, dated counts; the code stays

1 participant