Skip to content

feat(tracker): board shows what is in flight across repos - #331

Merged
bfcarrasco merged 2 commits into
mainfrom
feat/tracker-in-flight-board
Dec 5, 2026
Merged

bfcarrasco merged 2 commits into
mainfrom
feat/tracker-in-flight-board

Conversation

@bfcarrasco

Copy link
Copy Markdown
Owner

Request

#322

  • tracker.mjs board -R owner/repo [-R owner/repo ...] prints JSON per repo: open specs and maps with their progress; claimed tickets with their PR; open PRs with head, check state, latest verdict and number of blocking rounds; tickets labelled ready-for-human; and what next gives.
  • It prints numbers, titles, states and links only: no issue bodies, comments or diffs.
  • A repo that cannot be read is reported under its name with the reason, and the other repos are still printed.
  • Run against this repo, the output matches what the issue and PR pages show.

Closes #322

Why

A session that coordinates work (the orchestrator of #318) must rebuild where every piece of work stands from GitHub alone, across repos, with an empty context.

What changed

  • board reads, per repo: one open-issue list, one open-PR list, one status query per open PR, and next. Output per repo: plans (specs, maps and other issues with sub-issues, with progress), claimed (with the open PRs that close them), prs (head, checks, verdict with the SHA it judged and onHead, blockingRounds, closes), readyForHuman, next.
  • Check state, verdicts and rounds come from the merge gate's own readers (ciState, judgedResults, blockingRounds), so the board and the guard cannot disagree.
  • Decision tickets (plan:research and the like) count as work, not parents.
  • A repo that fails is { repo, error }; the others still print. Without -R it reads the current repo.
  • labels and next refuse more than one -R.

Scope

Writes nothing to GitHub; no T3 threads. No assignee logins in the output.

Verification

  • node --test "tests/*.test.mjs": 876 pass, 0 fail. Three new board tests (shape and gate state, no bodies or names and reads only, an unreadable repo).
  • node plugins/bstack/scripts/tracker.mjs board -R bfcarrasco/bstack -R bfcarrasco/does-not-exist-xyz: the second repo gives "error": "GraphQL: Could not resolve to a Repository ...", the first prints in full.
  • Cross-checked against gh for this repo: specs 318/206/124 and map 207 match the plan:spec/plan:map lists, 206 shows 38/42 as its page; claimed 322, 321 (PR 330), 319 (PR 329), 102, 75 (PR 152) match the assigned list; PR 329 shows PASS on its head, matching its bstack/judge status; PR 136 shows its failed checks; readyForHuman 328, 308, 298, 131 match the label list.

@bfcarrasco

Copy link
Copy Markdown
Owner Author

bstack-judge: PASS+NOTES tier=1 sha=b3dd0f07f1b42022381832d48975d644a9dc07df

PR 331: all four acceptance criteria are proven on the real command and I found no blocking defect.

Head b3dd0f07f1b42022381832d48975d644a9dc07df, checked out detached and confirmed.

Criteria

  1. JSON per repo with the listed parts. I ran node plugins/bstack/scripts/tracker.mjs board -R bfcarrasco/bstack -R bfcarrasco/nope-xyz (exit 0). The real repo prints plans, claimed (with prs), prs (head, checks, verdict, blockingRounds, closes), readyForHuman and next.
  2. Numbers, titles, states and links only. The real output has no bodies, comments, diffs or assignee logins. The test "board prints numbers, titles, states and links only, and writes nothing" checks the requested JSON fields and that every call is a read. Its SECRET marker is in a body and an assignee name, and neither appears in the output.
  3. Unreadable repo reported by name, others still print. nope-xyz printed {"repo":"bfcarrasco/nope-xyz","error":"GraphQL: Could not resolve to a Repository ..."} and the first repo printed in full.
  4. Output matches the issue and PR pages.
    • Specs 318 (1/10), 206 (38/42) and 124 (7/9) and map 207 (6/6) match the progress shown on their issue pages.
    • Claimed tickets 322, 321, 319, 102 and 75 match gh issue list --assignee '*'.
    • Open PRs 331, 330, 329, 272, 152 and 136 match gh pr list.
    • readyForHuman is 328, 308, 298 and 131, matching the label list.
    • PR 329 shows PASS on its head and PR 136 shows failed: check (ubuntu-latest), check (windows-latest).
    • board with no -R reads the current repo. tracker.mjs next -R a/b -R c/d fails with "next takes one repo; board takes several".

Tests

  • node --test tests/tracker.test.mjs: 11 pass, 0 fail.
  • The new board tests cannot pass on base: base tracker.mjs has no board export, and base parseArgs returns repo rather than repos.
  • I did not re-run the full suite, since bstack/checks covers it.

Dropped hypotheses

  • A spec or map that is also labelled ready-for-human or assigned does not show in readyForHuman or claimed. This follows the Request ("specs and maps" are plans), so I did not count it.
  • If one open PR's status query fails, the whole repo becomes {repo, error} and its other PRs are not printed. That is stricter than needed but follows the "cannot be read" rule.
  • A repo with 0 PRs or 0 issues is not a problem, and the test covers PRs with [] checks and no verdict.
  • A PR with several verdicts on different SHAs reports the latest by time with onHead false, and blockingRounds comes from the guard's own reader. The test covers this.
  • No weakened check: the diff deletes no test and adds no suppression. The existing parseArgs assertions only change from repo to repos, which matches the new return shape.

Findings (non-blocking)

  • F1: issue list --limit 500 and pr list --limit 200 truncate silently, so a repo above those limits prints a partial board with no warning.
[{"id":"F1","title":"board truncates silently above 500 open issues or 200 open PRs","reproduction":"plugins/bstack/scripts/tracker.mjs repoBoard: --limit 500 / --limit 200 with no overflow marker","base":"not run","head":"not run","blocks":"no","files":["plugins/bstack/scripts/tracker.mjs"]}]

@bfcarrasco
bfcarrasco merged commit b3f4a1a into main Dec 5, 2026
4 checks passed
@bfcarrasco
bfcarrasco deleted the feat/tracker-in-flight-board branch December 5, 2026 17:21
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.

tracker.mjs board: what is in flight across repos

1 participant