Skip to content

board-api suite hygiene: exit-status pinning helper + BOARD_RUN_TOKEN hermeticity #77

Closed

Description

@SSFSKIM

Final whole-branch review triage of the client agent-grade reads epic (PR #76) ledgered two suite-wide convention gaps, folded into one follow-up:

  1. Exit-status pinning. The t/nt helpers in tests/claude-code/board-api/helpers.sh assert output substrings on combined stdout+stderr and deliberately tolerate nonzero exit — so a regression that flips an exit code (e.g. a refusal drifting from exit 2 to exit 1, or a die-path decaying to success) passes silently. Exit codes are spec-pinned contract for the read verbs (usage/refusals = 2, claim-gate die = 1, degrade paths = 0); this epic hand-confirmed them live twice (7 paths at Task-2 re-review, 6 rows at Task-5 review), which is exactly the manual work a suite exists to retire. Proposal: an rc <expected> <label> <cmd…> helper alongside t/nt, adopted opportunistically — new drills use it; old drills migrate when touched.

  2. BOARD_RUN_TOKEN hermeticity. The suite is not hermetic against an ambient BOARD_RUN_TOKEN: with one set in the environment, ~17 of 19 induced failures are pre-existing drills (the client now legitimately changes behavior on that variable — claim-gate guard, board-show degrade). Failures are loud, not silent, so this is operator-annoyance rather than a correctness hole. Cheapest fix: env -u BOARD_RUN_TOKEN (or an explicit unset) at the top of the board-api harness/helpers, with run-context drills opting in explicitly — which they already do.

Neither blocks anything; both are one-sitting changes to helpers.sh plus adoption notes. Context: .doperpowers/sdd/2026-08-20-client-agent-grade-reads/final-review.md (triage items 1 and 7).

Activity

  1. added a commit that references this issue on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions