Skip to content

LBA REQ 057

github-actions[bot] edited this page Nov 19, 2026 · 3 revisions

LBA-REQ-057: Handoff Beacon -- reviewer visual verdict (signed human PASS/FAIL)

Status

Proven

Area

Deployment / agentic (ADR-0037 -- reviewer visual verdict beacon, under the Handoff Beacon Protocol ADR-0035)

Statement

The system shall emit a signed reviewer visual verdict (reviewer-verdict@1 mapping to acg-human-signoff-v1) for an extension release candidate, so a fail-closed gate proves the human's PASS/FAIL of the built candidate is Ed25519-signed by an enrolled reviewer and gates the release alongside the plane agreement.

Rationale

The reviewer VM exists for the human's VISUAL PASS/FAIL of a candidate -- the thing the whole reviewer gate is for. That verdict was informal (a chat "looks good" or a hand-edited release-agreement signoff). Making it a signed, candidate-bound, verifiable artifact turns the human gate into a governed release input, and -- because enrolled Ed25519 needs no OIDC -- it is signed IN the VM where the human is (keyless cosign layers on in CI).

Acceptance Criteria

  • buildReviewerVerdict / validateReviewerVerdict derive the candidate-bound verdict (target component/version/commit/vsixSha256 + evidence), fail-closed; reviewerVerdict.mjs is dependency-free so it stages into the extension's media/ and signs headless.
  • signReviewerVerdict maps the verdict to an acg-human-signoff-v1 bound to its canonical digest (a pass is an approve); verifyReviewerVerdict fails closed on a wrong schema, a tampered verdict, an unknown station, an un-enrolled reviewer, a mismatched key, or a bad signature. WINDOWS_VM, UBUNTU_VM, and LINUX_CODESPACE are distinct signed station values.
  • Ubuntu review staging verifies the VSIX SHA-256 and manifest against the full candidate target, installs it with the VS Code CLI, requires the exact installed extension id/version, and writes a non-secret stage receipt before visual review begins.
  • gateVisualReview publishes only on a pass verdict with >= minReviewers verified enrolled approvals; release-with-review.mjs's gateReleaseWithReview composes it with the ADR-0018 gateReleasePublish so the machine corroboration and the human's PASS are independently required.
  • The extension's Render Reviewer Verdict command signs the verdict in the VM (enrolled reviewer key) into handoff/verdicts/; reviewer-workstation/render-verdict.sh sets the target + collects it; tools/release-governance/verify-visual-review.mjs gates a release's visualReview block against the committed reviewer-allowlist.json; CI keyless-cosign counter-signs the verdict bundle.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

experiments/handoff-beacon/reviewerVerdict.mjs and reviewer-workstation/stage-ubuntu-vsix.mjs plus their self-tests are gated by handoff-verdict and ubuntu-reviewer-candidate-staging and mapped in the RTM; the verdict builder is staged into media/ + loaded by src/extension.ts. Reviewer keys are enrolled via reviewer-workstation/enroll-reviewer.mjs (the private key stays local; the public key is committed to reviewer-allowlist.json). This is the verdict tier of the Handoff Beacon Protocol (ADR-0035); the lbabus post ships as its own governed slice. Authored under the singular-requirement directive (one shall).

TestID

T-057

CodeRef

experiments/handoff-beacon/reviewerVerdict.mjs; experiments/handoff-beacon/reviewerVerdict.selftest.mjs; experiments/handoff-beacon/release-with-review.mjs; tools/release-governance/verify-visual-review.mjs; tools/release-governance/reviewer-allowlist.json; reviewer-workstation/render-verdict.sh; reviewer-workstation/sign-visual-verdict.mjs; reviewer-workstation/stage-ubuntu-vsix.mjs; reviewer-workstation/stage-ubuntu-vsix.selftest.mjs; reviewer-workstation/verify-staged-vsix.mjs; reviewer-workstation/verify-staged-vsix.selftest.mjs; reviewer-workstation/enroll-reviewer.mjs; src/extension.ts; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally