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

Open Beginner friendly
#4,982 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Lanqiao-Luca is already working on this.

Since Dec 3, 2026.

  • #5043 by @Lanqiao-Luca — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli, testing

Research direction

Start with crew/lib/ship-queue-train-cli.ts lines 81–93 and compare the accepted case names with the gate test-record keys described in the issue. Then check the wording in crew/docs/captain.md line 792 and captain/templates/merge-train-peer.md line 37. Done when ready handles invalid or normalized names clearly, or the docs direct lanes to copy the verdict's red= list.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
143k
Forks
21.1k
Avg merge
4h 18m
Merged PRs (30d)
745

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from garrytan/gstack

All issues in garrytan/gstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.