Daily harness signal

Test the branch that holds the authority

A two-stage GitHub Actions safety design stayed apparently healthy because ordinary runs exited before its privileged branch. Its first genuine input exposed an unsupported API field and stopped every intended action.

July 13, 2026 · JST Fresh · merged 01:11 JST 1 implementation finding
Implementation lesson: a green no-op path does not validate a privileged automation. Exercise the smallest realistic artifact through re-validation and up to a guarded side-effect seam before trusting the workflow.
01 · Fresh · source date 2026-07-13 JST

Give split-trust workflows a positive-path fixture

Use when. An untrusted GitHub Actions job hands minimal data to a later workflow_run job with write permissions—for example, to label, comment on, close, publish, or deploy. The ordinary “nothing flagged” path is insufficient evidence.

Action. Keep the boundary narrow: let the read-only stage emit only a digits-only PR number; in the privileged stage, re-fetch state, author association, labels, and changed files, and never check out or execute pull-request code. Verify every queried field against the actual CLI schema. In this incident, replace the nonexistent gh pr view --json authorAssociation field with the REST endpoint:

assoc="$(gh api "repos/$GH_REPO/pulls/$PR_NUMBER" \
  --jq '.author_association')"

Add a disposable-repository or dry-run fixture that uploads the same artifact as a flagged external pull request and reaches the guarded comment/label/close seam. Test malformed input, trusted authors, mixed file changes, and already-processed records as separate no-op cases.

Acceptance check. The flagged fixture reaches the side-effect seam with the expected re-derived values; malformed artifacts fail closed; trusted and nonmatching fixtures exit without writes. A run that only reports success because no artifact existed fails acceptance.

Evidence. MCP Registry’s merged fix documents the exact failing command, the first real flagged PR, and the replacement query. The linked Actions run is observably failed, the current workflow contains the repair, and GitHub CLI’s manual confirms authorAssociation is absent from gh pr view JSON fields.

Caveat. The endpoint and field names are GitHub-specific, and one repository incident does not prove every split workflow is broken. Because workflow_run may access secrets and write tokens, run the positive-path check in a disposable repository or stop before destructive effects.

Compact source notes

  1. MCP Registry PR #1440 and merged commit 2d3262c8 (July 12, 2026 16:11 UTC; July 13 01:11 JST). Primary patch and maintainer failure analysis.
  2. Failed workflow run 29178568034 (re-run July 12, 2026 16:15 UTC). Primary execution artifact: failure, exit code 1.
  3. GitHub CLI manual: gh pr view and GitHub Actions workflow_run documentation (retrieved July 13, 2026). Official field list and privilege-boundary guidance.