Skip to content

fix(board): promote <n> honours the shim's --backlog-file flag - #659

Merged
tieubao merged 2 commits into
masterfrom
fix/promote-backlog-file
Sep 16, 2026
Merged

tieubao merged 2 commits into
masterfrom
fix/promote-backlog-file

Conversation

@tieubao

@tieubao tieubao commented Sep 16, 2026

Copy link
Copy Markdown
Member

Consumer shims (<repo>/_meta/board) append --backlog-file <path> to every subcommand. board.sh promote forwards argv verbatim to lib/board/bin/add-backlog, whose selector runs int() over every token, so promote <n> through a shim printed usage and exited 2. promote list and promote all never reached the parser, which hid the break.

Fix: add-backlog parses --backlog-file, resolves the staging file beside the named board, and keeps the env overrides first. A dangling flag is a usage error.

Proof: docs/verification/board-promote-backlog-file.md. tests/test-board-promote.sh 34 of 34 (5 new); negative control on the unpatched file fails exactly the 3 shim cases; tests/run-all.sh all 151 suites green; the real ops-toolkit shim reaches the selector with DWARVES_KIT pointed at this branch.

Staged candidate in _meta/backlog-staging.md (uncommitted on master, from the same session) describes this row.

Consumer shims append --backlog-file <path> to every subcommand; the promote selector parsed it as a candidate index and printed usage. Parse the flag, resolve the staging file beside the named board, keep env overrides first. Five new test cases plus a proof of done.
@tieubao
tieubao merged commit 6cfb595 into master Sep 16, 2026
1 check passed
@tieubao
tieubao deleted the fix/promote-backlog-file branch September 23, 2026 07:11
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