Skip to content

Deferred findings from the /ship review of #3484 (train ops) #3485

Closed as not planned

Description

@capy-ai

Deferred findings from the /ship review of #3484 (train ops: screen verdict, watch, forget, post-merge, dispatch-ci, stack-tests). Each was judged below the blocking floor (would fail a test, break production, or lose data or secrets) or lives in code #3484 does not own, so it is filed here rather than fixed in that PR (crew rule 23). Blocking findings were fixed in #3484's pass-1 commits.

Design / neighbouring code

  1. Scratch-merge screens on a conflicting PR cannot route. scripts/eval-readiness.ts:45,115 admits only event === 'pull_request' Free Tests runs at the head. A head that conflicts with main has no merge ref, so GitHub runs no pull_request workflow; the ready --screen scratch merge (screen/<pr>-<head12>) and the --dispatch-ci workflow_dispatch runs are both invisible to readiness. The route job waits ~20 min and fails, screenVerdict reads not-run, and lib/ship-queue-train-ready.ts (notFollowing) dispatches an identical screen on the next ready --screen. Fix belongs in readiness (accept a workflow_dispatch Free Tests run at the same head) or in the scratch path (refuse when no pull_request run exists).
  2. Screen verdict is not bound to the receipt. lib/ship-queue-screen.ts parses gate-binding.json (pr, head_sha, tested_sha, purpose) but compares none of them with the receipt's pr, head, screen.merge_sha; a receipt whose screen.run names any green evals run reads GREEN. Refuse (unknown) unless purpose/pr/tested_sha match; same for the reuse record.
  3. --stack-tests runs PR test files with the coordinator's full environment (API keys, gh token, git identity) and against a symlinked node_modules from the coordinator's checkout (stale deps give false red/green). Consider an env allowlist and a process-group kill on timeout.
  4. verify --post-merge can settle green before every push workflow has attached a check run (the backstop queues behind a previous run with cancel-in-progress: false). Require the policy's known push checks before settled, or an --expect list.
  5. One RED screen pins a head red forever, even when the red was main's fault and main has since moved (QUEUE_SCREEN_RED is checked on the prior receipt before the new merge SHA is computed). Decide whether the refusal should be scoped to the prior merge's base.
  6. ready --screen re-dispatch bounds. An incomplete prior run re-dispatches on every call; and after main moves, a fresh scratch merge is screened even when the prior run at this head is GREEN or pending. Follow the prior run or require an explicit --rescreen.
  7. train forget --train leaves the remote train/<nonce> branch orphaned (pruneTrains no longer sees the train). Delete it in forget or refuse while it exists.
  8. ready --screen pushes a fork head's scratch merge to screen/<pr>-<head12> before any fork refusal (admitSlots/dispatchCi refuse later). Check isCrossRepository before screenMerge.
  9. A pending screen is seated as screened and never re-read before the merge; a screen that turns RED after train build still gates the head.
  10. Artifact-derived strings are printed verbatim into the parsed block (FLAKY:, SCREEN_VERDICT: detail); collapse whitespace/control characters as the gh error paths do.
  11. --dispatch-ci details. Workflows are dispatched and awaited serially against one --timeout; clearObligation is called directly (bypassing clearDecision, nil effect today); a lane is cleared without checking pregate.json's head (no bypass: verifyPregate refuses PREGATE_STALE); a cancelled or non-success workflow_dispatch run at the head blocks --dispatch-ci until a new push.
  12. Minor. lib/ship-queue-screen.ts classifies reconcile_exit != 0 with a non-RED verdict as RED (permanent); ScreenChoice.branch is written but never read; hand-rolled sleep helpers are duplicated across modules.

Test gaps left open (state-matrix cells without a test)

ScreenOutcome 5/18, prune --stale 4/6, forget 2/4, watch 2/5, post-merge 2/6 (state-machines specialist matrix); coverage audit 63% value-weighted before the pass-1 test additions.

Activity

  1. capy-ai commented on Oct 26, 2026

    @capy-ai
    ContributorAuthor

    Two more follow-ups from GStack Minder (2026-10-26), raised after #3484's pin fe019b3 was pushed and frozen:

  2. capy-ai commented on Oct 27, 2026

    @capy-ai
    ContributorAuthor

    #3515 (v1.91.279.0) marks test/pregate-remote-stamp-only.test.ts KNOWN_WINDOWS_INCOMPATIBLE in scripts/lib/windows-curation.ts with the how-to in docs/TESTING_INTERNALS.md, and lands the below-floor rulings table. The remaining items here stay open.

  3. added
    S3
    on Oct 31, 2026
  4. capy-ai commented on Nov 16, 2026

    @capy-ai
    ContributorAuthor

    Closing. This holds findings an earlier review judged below the blocking bar and set aside. We now keep deferred review findings on the pull request where they came up, not as open issues, unless one describes a live security exposure, and none here does.

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

    S3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions