gstack icon indicating copy to clipboard operation
gstack copied to clipboard

train ready --fixes-base-red accepts case names the gate never matches

Open capy-ai[bot] opened this issue 3 days ago • 1 comments

What happens

gstack-ship-queue train ready --fixes-base-red <file> accepts any case names. A lane copies the names from vitest's FAIL lines, which look like file > describe > case. The gate's test-record keys look like ci.yml:file.describe > case, so none of the names match. The train still seats the fixer at slot 1 (BASE_RED: fixer) and then returns RED-ON-MAIN, and nothing explains why.

Where (at e394c3f)

  • crew/lib/ship-queue-train-cli.ts lines 81-93 read the file but never check the names against the known gate keys.
  • crew/docs/captain.md:792 and captain/templates/merge-train-peer.md:37 say "gate cases" but don't say where the exact key comes from.

Possible fixes

  1. ready normalizes vitest-style names to gate keys, or refuses names that match no known key and lists the valid ones.
  2. The docs tell lanes to copy names from the train verdict's red= list.

Workaround today: copy the names from the verdict's red= list.

Seen on two consecutive trains in a downstream repo on 2026-12-01.

capy-ai[bot] avatar Dec 01 '26 17:12 capy-ai[bot]

Checked

DananjayaNadun avatar Dec 02 '26 04:12 DananjayaNadun