Skip to content

fix(test): reconcile Bun failures and clarify eng-review flow - #2956

Closed
garrytan wants to merge 4 commits into
mainfrom
capy/fix-bun-failure-accounting
Closed

garrytan wants to merge 4 commits into
mainfrom
capy/fix-bun-failure-accounting

Conversation

@garrytan

@garrytan garrytan commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Failure accounting

The strict test classifier and free-shard reporter previously recognized only (fail) lines, so supported ✗ results and terminal N fail totals could be missed or attributed incorrectly. This change recognizes both formats, reconciles named and unnamed failures against the terminal count, and tests split UTF-8, quoted-log negatives, retries, missing summaries, and nonzero exits through the real runner.

Engineering-review workflow

The engineering-review entrypoint now routes its full section read through ordered preparation before the Scope Challenge. The section names the conditional complexity gate, joins both paths at the findings/decision loop, and distinguishes question transport, permission-bound writes, required logging, and the final exit gate. The future Brain Calibration Write-Back hook stays gated: absent an explicit supported producer, trust or MCP availability cannot enable it. Generated Claude outputs and focused regressions match the templates.

QA-only capability fixture

The no-fix QA case previously supplied only an approval allowlist, which did not remove the built-in Edit tool under its noninteractive launch. It now supplies an explicit availability list of Bash, Read, Write and Glob. A registered-callback regression checks report writing, absent tool restriction, report/source Edit attempts and source mutation via Write; the existing no-Edit and clean-source assertions remain intact.

Validation and current gate

  • Head d50ab2e: pinned Bun 1.4.0 build, all-host generation, credential scan (0 high / 0 advisory), 795 focused/adjacent tests and a native no-cost Claude Code 2.1.251 smoke passed. Native init advertised exactly Bash/Glob/Read/Write, with no Edit; Write created a report and Bash verified it. This smoke is not live QA credit.
  • The explicitly selected QA-only live case passed on its first attempt: 1 selected pass, 0 fail, with three unselected Bun placeholders skipped. It used the existing model/timeout/retry and left the source clean; no second sample or cache claim.
  • Source-sealed full free acceptance passed 25,595 / 0 / 60 (pass/fail/skip) across 1,012 files. The first run's 29 launcher failures remain retained separately; a corrected writable isolated checkout, acting-user Git identity and Python venv components passed all 373 affected focused tests before this complete green run. The test source stayed byte-identical through both runs.
  • The engineering clarity judge on the earlier source failed its first configured attempt (3/4/3) and passed its retry (4/5/4), with both attempts retained and no reusable cache receipt. Prior CI reported 105/106 selected finals because QA-only used Edit twice on both attempts. New-head broad CI is pending; fast PR selection defers QA-only, so the explicit live result above supplies its changed-input proof without crediting deferred cases.

The ✗ regression is a synthetic supported-output replay, not a native macOS or Windows reproduction. No merge or deployment is included.

Open in Capy

@trunk-io

trunk-io Bot commented Sep 24, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

E2E Evals: ❌ FAIL

105/106 recorded final results passed | 106 executed, 0 reused | $32.34 total cost | reconcile exit: 1 | ⚠ 2 cases with multiple attempts

Profile: pr / full-fallback; selected behaviors: 84, judges: 25. Deferred to scheduled/release coverage: 123 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Shard Result Executed Reused Status Cost
e2e-browse/skill-e2e-bws 7/7 7 0 ✅ $0.58
e2e/skill-e2e-coverage-audit 2/2 2 0 ✅ $0.7
e2e-cso/skill-e2e-cso 1/1 1 0 ✅ $0.85
e2e-deploy/skill-e2e-deploy 6/6 6 0 ✅ $2.81
e2e-design/skill-e2e-design 3/3 3 0 ✅ $0.86
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 1 0 ✅ $0.21
e2e-hermetic/skill-e2e-hermetic-canary 2/2 2 0 ✅ $0.04
e2e-learnings/skill-e2e-learnings 1/1 1 0 ✅ $0.21
e2e-opus-47/skill-e2e-opus-47 6/6 6 0 ✅ $1.38
e2e-plan-tune-cathedral/skill-e2e-plan-tune-cathedral 5/5 5 0 ✅ $0
e2e-plan-tune/skill-e2e-plan-tune 1/1 1 0 ✅ $0.42
e2e/skill-e2e-plan 7/7 7 0 ✅ $2.46
e2e-qa-workflow/skill-e2e-qa-workflow 3/3 3 0 ✅ $2.15
e2e-retro/skill-e2e-retro 1/1 1 0 ✅ $0.57
e2e-review-army/skill-e2e-review-army 4/5 5 0 ❌ $1.22
e2e-review-attribution/skill-e2e-review-attribution 3/3 3 0 ✅ $0.48
e2e-review/skill-e2e-review 2/2 2 0 ✅ $0.53
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 4 0 ✅ $0.52
e2e/skill-e2e-shared-libs-paths 3/3 3 0 ✅ $5.55
e2e/skill-e2e-shared-libs 4/4 4 0 ✅ $5.67
e2e-ship-docsync/skill-e2e-ship-docsync 1/1 1 0 ✅ $0.62
e2e-skillify/skill-e2e-skillify 3/3 3 0 ✅ $1.52
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 5 0 ✅ $0.55
e2e-triage/skill-e2e-triage 1/1 1 0 ✅ $0.36
e2e/skill-e2e-workflow 4/4 4 0 ✅ $1.56
llm-judge/skill-llm-eval 25/25 25 0 ✅⚠ $0.52
Fail-closed reconciliation
[test:paid] report: 6/6 slices, 38 planned shards, tier=gate
[test:paid] coverage: profile=pr mode=full-fallback; selected E2E=84, judges=25
[test:paid] deferred: 123 broad behaviors, 0 changed prompts without quick live coverage; these are not PR passes
  slice 1  passed            206s  test/skill-e2e-plan-mode-no-op.test.ts
  slice 1  passed             65s  test/skill-e2e-plan-tune.test.ts
  slice 1  passed             58s  test/skill-e2e-session-intelligence.test.ts
  slice 1  passed             43s  test/skill-e2e-triage.test.ts
  slice 2  passed             18s  test/skill-e2e-opus-47.test.ts
  slice 2  passed            294s  test/skill-e2e-plan.test.ts
  slice 2  passed            376s  test/skill-e2e-qa-workflow.test.ts
  slice 2  passed            660s  test/skill-e2e-shared-libs-paths.test.ts
  slice 2  passed            291s  test/skill-e2e-workflow.test.ts
  slice 3  passed             27s  test/skill-e2e-learnings.test.ts
  slice 3  passed            135s  test/skill-e2e-plan-devex-plan-mode.test.ts
  slice 3  passed             92s  test/skill-e2e-review-attribution.test.ts
  slice 3  passed            159s  test/skill-e2e-skillify.test.ts
  slice 3  passed            318s  test/skill-llm-eval.test.ts
  slice 4  passed            104s  test/skill-e2e-bws.test.ts
  slice 4  passed            435s  test/skill-e2e-deploy.test.ts
  slice 4  passed             44s  test/skill-e2e-docsync-spawned.test.ts
  slice 4  passed            194s  test/skill-e2e-plan-ceo-finding-floor.test.ts
  slice 4  passed             37s  test/skill-e2e-plan-ceo-plan-mode.test.ts
  slice 4  passed            143s  test/skill-e2e-retro.test.ts
  slice 4  passed            613s  test/skill-e2e-shared-libs.test.ts
  slice 4  passed              0s  test/skill-llm-eval-spec.test.ts
  slice 5  passed             45s  test/skill-e2e-coverage-audit.test.ts
  slice 5  passed            144s  test/skill-e2e-design.test.ts
  slice 5  passed              8s  test/skill-e2e-hermetic-canary.test.ts
  slice 5  passed            458s  test/skill-e2e-plan-design-with-ui.test.ts
  slice 5  passed            167s  test/skill-e2e-plan-devex-finding-floor.test.ts
  slice 5  failed            572s  test/skill-e2e-review-army.test.ts
  slice 5  passed            154s  test/skill-e2e-ship-docsync.test.ts
  slice 5  passed              0s  test/skill-routing-e2e.test.ts
  slice 6  passed              0s  test/llm-judge-recommendation.test.ts
  slice 6  passed             73s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 6  passed            224s  test/skill-e2e-cso.test.ts
  slice 6  passed             31s  test/skill-e2e-diagram.test.ts
  slice 6  passed             67s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 6  passed              0s  test/skill-e2e-plan-tune-cathedral.test.ts
  slice 6  passed            116s  test/skill-e2e-review.test.ts
  slice 6  passed             75s  test/skill-e2e-third-party-actions.test.ts
[test:paid] collector final outcomes: 106 executed, 0 reused; 105 passed, 1 failed (108 attempt records from 27 collectors)
[test:paid] report: ⚠ 2 cases with multiple attempts this run:
  ⚠ /review army N+1 detection (x2) — shards/skill-e2e-review-army/1.89.0-HEAD-e2e-review-army-2026-09-24-1529.json
  ⚠ plan-ceo-review/SKILL.md modes (x2) — shards/skill-llm-eval/1.89.0-HEAD-llm-judge-2026-09-24-1522.json
[test:paid] report: ⚠ 2 shard(s) passed with EVERY test skipped — they verified nothing:
  ⚠ test/skill-routing-e2e.test.ts (10 skipped — external service missing or tier mismatch)
  ⚠ test/llm-judge-recommendation.test.ts (1 skipped — external service missing or tier mismatch)

Sliced lane: declared PR profile or broad fallback via scripts/test-paid-shards.ts (planner → 6 executors → fail-closed report). Reused scores retain their original provenance and expiry.

Failures

  • ❌ /review army N+1 detection: exit_code_1

@capy-ai

capy-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

CI status: eval-slices (5) failed because /plan-devex-review's question-floor live test timed out in its nested Claude assessment on both configured attempts (spawnSync ... ETIMEDOUT); slices-report correctly marks that shard failed. The test and its judge are byte-identical to main, while this PR changes only strict/free runner accounting and its regressions. The failed run remains a real gate failure—not a pass or a proved pre-existing defect. I'm holding readiness and preserving the CI receipt rather than weakening, skipping, or blindly resampling the case.

@capy-ai capy-ai Bot changed the title fix(test): account for Bun failure markers and footer totals fix(test): reconcile Bun failures and clarify eng-review flow Sep 24, 2026
@capy-ai

capy-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Current-head CI on d50ab2e proves the QA-only repair: /qa-only no-fix passed its first live attempt, the native tool set was Bash/Glob/Read/Write, and no Edit call occurred. The QA workflow finished 3/3; free and Windows checks also passed.

The PR remains red. The authorized paid run recorded 105/106 final passes (106 executed, 0 reused; $32.34). /review army N+1 detection timed out at 300 seconds after writing its report near 286 seconds, then its configured retry exited 1 without a native transcript. Its test/review inputs did not change in this PR, but that does not prove a pre-existing failure. The slice and aggregate checks correctly failed; two all-skipped shards and 123 deferred periodic behaviors receive no pass credit. No budget, threshold, retry policy, or source has been changed to hide this result, and no merge or waiver is requested.

@capy-ai

capy-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Superseded by #2959, the single integrated 14-family reliability-wave PR requested by Garry. This branch and its validation evidence are retained; no merge occurred.

@capy-ai capy-ai Bot closed this Sep 24, 2026
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.

1 participant