Skip to content

v1.91.160.0 fix(scope,review,ship): recognise Dart and Flutter in diff scope and test detection (#3284) - #3300

Merged
capy-ai[bot] merged 3 commits into
mainfrom
capy/dart-scope-3284
Oct 20, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
capy/dart-scope-3284

Conversation

@garrytan

Copy link
Copy Markdown
Owner

Port of #3284 by @arlophoenix onto current main (squashed, co-authored).

  • gstack-diff-scope counts .dart as frontend and backend, so a Flutter widget PR no longer runs only the testing pass. pubspec.lock counts as config, at the root or in a workspace package.
  • lib/frontend-scope.ts mirrors the frontend half. gstack-design-detect never sends .dart to impeccable, which reads web sources only.
  • Test bootstrap, the coverage audits (/ship, /design-review, /plan-eng-review) and review-army detect Dart and Flutter: RUNTIME:dart, FRAMEWORK:flutter (the indented sdk: flutter only), dart_test.yaml, *_test.dart.
  • Adversarial DIFF_SIZE sums git diff --numstat, the same count as review-army's DIFF_LINES; a deletion-only diff no longer reads as 0.

On top of the contributor's diff: one bootstrap comment is shortened so /design-review stays at its SKILL.md size pin, and the 31 pins that shrank are lowered (none raised). The CHANGELOG entry is under [Unreleased].

Gate integrity: the frontend-scope parity test gets a 30 s budget; it spawns git six times and the scope script once per sample, and already timed out at Bun's 5 s default on main on a 4-core machine (2 of 2 standalone runs). The prose trims remove no clause any test or eval asserts (grepped over test/). No threshold, trial count or case kind changed.

Reviewed with gstack /review (Claude Opus 5.5). Free checks: typecheck clean, test typecheck ratchet no new diagnostics, the 5 changed test files 224/0, guard batch (parity, gen-skill-docs, skill-validation, touchfiles, skill-md-size-guard, budgets, tripwire) 1085 pass / 1 skip / 0 fail, generated docs FRESH for both hosts, credential scan clean.

Closes #3284.

Open in Capy

…test detection (#3284)

Port of arlophoenix's #3284 onto current main, squashed:
- gstack-diff-scope: .dart is frontend and backend; pubspec.lock is config.
- lib/frontend-scope.ts mirrors the frontend half; gstack-design-detect
  never sends .dart to the impeccable engine.
- Test bootstrap, coverage audits and review-army detect Dart/Flutter
  (RUNTIME:dart, FRAMEWORK:flutter, dart_test.yaml, *_test.dart).
- Adversarial DIFF_SIZE sums git diff --numstat.

On top of the contributor's diff: shorten the bootstrap's ecosystem-marker
comment so /design-review stays at its SKILL.md size pin, lower the 31 pins
that shrank, and add the CHANGELOG entry.

Co-authored-by: arlophoenix <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

E2E Evals: ❌ FAIL

[test:paid] VERDICT RED — lane gate/pr, attempt 1
  rule 107/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 2
  wall 5m48s · cost $31.88 known + 54 of 132 trial(s) cost unknown

121 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $31.88 rule/judge cost | reconcile exit: 1

Profile: pr / mode dependents; selected behaviors: 108, judges: 24. Deferred to scheduled/release coverage: 138 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Derived dependents (scripts/pr-dependencies.ts):

  • lib/frontend-scope.ts: 246 case(s), 24 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.21
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.28
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 0/1 0 1 0 ❌ $0.96
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $1.01
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $1.14
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $0.81
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.68
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.63
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $0.55
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.33
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.42
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.34
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $0.23
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $0.22
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.35
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.08
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.34
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.06
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.21
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.07
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $0.9
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.73
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $0.34
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.15
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.08
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $0.45
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.08
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.11
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.18
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.25
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.14
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.19
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.27
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.13
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.12
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.11
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.15
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.1
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $0.71
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.16
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $0.32
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $1.03
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.23
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $0.43
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $0.37
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.29
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $1.07
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $0.82
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.26
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $0.57
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $1.08
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.1
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.02
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.29
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.36
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.14
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.23
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.11
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.16
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.18
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.33
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $0.31
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $1.88
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.74
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $0.39
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $0.82
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $0.76
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.45
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $1.43
Fail-closed reconciliation
passed             25s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 13  passed             23s  test/skill-e2e-review-army.test.ts#review-army-quality-score
  slice 13  passed              5s  test/skill-e2e-hermetic-canary.test.ts
  slice 14  passed             56s  test/skill-e2e-third-party-actions.test.ts
  slice 14  passed             26s  test/skill-e2e-plan-tune.test.ts
  slice 14  passed             32s  test/skill-e2e-triage.test.ts
  slice 14  passed             37s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 14  passed             33s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 14  passed             22s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 14  passed             27s  test/skill-e2e-session-intelligence.test.ts
  slice 14  passed             36s  test/skill-e2e-ship-hook-consent.test.ts
  slice 14  passed             29s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 14  passed             23s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 14  passed             25s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 14  passed             27s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 14  passed             14s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 14  passed             26s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 14  passed             25s  test/skill-e2e-safety-pair-agent.test.ts
  slice 14  passed             30s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 15  passed             16s  test/skill-e2e-learnings.test.ts
  slice 15  passed             14s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 121 executed, 0 reused; 120 passed, 1 failed, 0 manual accepted (unscored; no score-cache credit) (121 attempt records from 70 collectors; every record counts)
[test:paid] deselected testcases, zero credit (312):
[test:paid]    298  sibling case of a case shard (its own shard runs it)
[test:paid]      8  periodic-tier case (this lane runs gate)
[test:paid]      6  Bun hook placeholder of a skipped describe block (not a test)
[test:paid] VERDICT RED — lane gate/pr, attempt 1
  rule 107/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 2
  wall 5m48s · cost $31.88 known + 54 of 132 trial(s) cost unknown
[test:paid] failures and split verdicts:
  ✗ ship-docsync-current  rule  FAIL  assertion — expect(received).toEqual(expected)  · cause assertion: session completed; check failed  Expected: [] · Received: [ "command outside declared docs observation interface", ]  [slice 3, attempt 1]  evidence: paid-slice-3-a1/shards/skill-e2e-ship-docsync--ship-docsync-current (fetch: bun run eval:pass-rates --run 39347827595 --case ship-docsync-current)  after a repair: bun run scripts/test-paid-shards.ts --tier gate --case ship-docsync-current
[test:paid] exercised-path map (shadow, non-blocking): 5 MAP_GAP line(s) over 100 executed case(s) with recorded commands
  MAP_GAP document-release bin/gstack-banned-terms: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report bin/gstack-plan-reality: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-docsync-current bin/gstack-banned-terms: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP test-audit-report-only design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)

Sliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry.

Failures and split verdicts

✗ ship-docsync-current  rule  FAIL  assertion — expect(received).toEqual(expected)  · cause assertion: session completed; check failed  Expected: [] · Received: [ "command outside declared docs observation interface", ]  [slice 3, attempt 1]  evidence: paid-slice-3-a1/shards/skill-e2e-ship-docsync--ship-docsync-current (fetch: bun run eval:pass-rates --run 39347827595 --case ship-docsync-current)  after a repair: bun run scripts/test-paid-shards.ts --tier gate --case ship-docsync-current

garrytan and others added 2 commits October 20, 2026 00:26
…eleased]; re-lower size pins)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…f scope and test detection (#3300)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title fix(scope,review,ship): recognise Dart and Flutter in diff scope and test detection (#3284) v1.91.160.0 fix(scope,review,ship): recognise Dart and Flutter in diff scope and test detection (#3284) Oct 20, 2026
@capy-ai

capy-ai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

flaky: ship-docsync-current, failed in run 39347827595 attempt 1 ("command outside declared docs observation interface"), passed on rerun 39347827595 attempt 2 (slice 3, rerun --failed), logged for the daily flaky-fix pass

@capy-ai

capy-ai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Merging under Garry's flaky-test rule (2026-10-19). ship-docsync-current failed in attempt 1 of run 39347827595 and passed on the rerun of slice 3 only. It's a repeat entry in the flaky ledger and unrelated to this diff. — GStack Minder

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