Repository navigation
feat(pr-pipeline): run the project's app-control skill in pr-verify after the deterministic tests #8651
Description
Refs: #7580
Refs: #7555
Decision: #7555 (comment)
Blocked by: #8816 (adds the app-control plugin and /app-control:drive, whose report.json this step reads).
Agent Brief
Type: Feature
Summary: After the deterministic tests pass, the verifier runs the project's own app-control skill against the PR head and folds what it finds into its verdict. Stack-neutral: the project names its skill; Docker is used only if that skill uses it.
Problem: The verifier judges a PR from its diff and text; nothing drives the running app the way a user would. The line that asked for this ("agent browser checks run after the deterministic tests, with no write token while PR code runs") sat in Phase 9, which closed with it unbuilt.
Current behavior:
.github/workflows/pr-verify.yml:3-27: runs onworkflow_runafterpr-require-checkscompletes; "No pull request code runs here"; job tokens can only read (:66-68,:384-386).- No app-control plugin exists yet; Phase 13 creates
/app-control:driveand the generatedcontrol-<app>skill shape.
Desired behavior:
- A setting in
docs/conventions/pr-pipeline.yamlnames the project's app-control skill. Unset: the step is skipped and the verdict says no app check ran. - When set: a separate job, after the deterministic checks pass, checks out the PR head and runs
/app-control:drive --unattended, which finds the project's control skill; the verdict job judges drive'sreport.json(drive itself never judges; D54). It holds no write token and no secret beyond the model credential the run needs, on a fresh GitHub-hosted runner, under ADR 0049's hardening. - Its findings go to the verdict job as data, framed as untrusted (
docs/conventions/untrusted-content/README.md); a blocking finding makes the verdict FAIL. - Nothing in the workflow names a stack. Docker appears only if the project's skill starts it.
Key interfaces:
.github/workflows/pr-verify.yml;.github/scripts/pr-verify/write-verdict.mjs.docs/conventions/pr-pipeline.yaml(new key) anddocs/conventions/pr-pipeline/README.md("Verifier verdict")./app-control:drive'sreport.jsoncontract from feat(app-control): add the app-control plugin with /app-control:drive #8816 (plugins/app-control/skills/drive/reference/evidence.md).
Done when:
- The diff adds the setting, the new job and the verdict input, and the job's
permissions:grant no write scope (read from the diff). - With the setting unset, the verdict notes that no app check ran (a
workflow.test.mjscase). CI'stest-nodepasses on the PR (a PR check; this run does not run it). - CI's
check-pluginspasses on the PR (a PR check; this run does not run it). - Security & Cost's pass on the final head is recorded on the PR (
.github/workflowschanges; owner rule 2026-10-20).
Out of scope:
- Building app-control itself (app-control: new plugin plus testing and debugging changes #7581).
- A stack-specific default (Docker or any other).
Origin:
- Verifier agents that run the app and click around like a user, then fix and repeat: hers (Lauren, stream ~53:10), adapted.
- Docker app stack plus browser checks in CI: the owner's (2026-10-16); moved to Phase 13 and made stack-neutral: ours, confirmed by the owner 2026-10-20.
Review: security (runs PR code in CI).
Do not run with: other pr-verify.yml changes.
Size Large, Complexity High, Uncertainty Knowable.
Slice of #7580 (Phase 13), filed from the owner's 2026-10-20 disposition round.
Activity
kyle-sexton commentedon Oct 30, 2026
Phase text for S7 (the pr-verify capture job), from the evidence-verification plan (Brief: #11364 (comment)). Slices are sub-issues of this issue.
Satisfies: AC1, AC2, AC5, AC9, AC10
Size Large. Depends on: S2a (#11388), S4a (#11386), S4b (#11390), S6 (#11385), and owner answers to U1 and U2 (USER-RESERVED). Files:
.github/workflows/pr-verify.yml,.github/scripts/pr-verify/prompt.md,workflow.test.mjs. Design: T8, sequence flow 2.setup-runner-isolation, a head-code step tries to read the runtime token and the credential from a hook; the job fails closed if either is readable.capture: sameifas.github/workflows/pr-verify.yml:73-77(fork heads never run), gates, read-only token,.baseplugins,--trusted-root .base,/testing:run-e2e unattended app=<merge.verify-capture.app> base=<base-sha>; uploads publishable files aspr-capture-<pr>-<sha>withretention-days; skip with note when the key is unset..github/workflows/pr-verify.yml:102-175).timeout-minutes: 30; the outer session runs through ci-workflows'run-claude-cliwith its own role, a tool allowlist and the drivemaxEntryPointscap (S4b (feat(harness-ops): mask control-claude-code captures and launch changed plugins #11390)); a capture timeout leavescapture: blockedand never stops the judge.check-intentgainsneeds: capturewith!cancelled();check-intent-subscriptionandcheck-intent-fallbackkeep their success chain (.github/workflows/pr-verify.yml:434-445) and download the same run's artifact by id. All three download intopr-verify-data/capture/; the prompt frames it untrusted and says a missing or blocked capture is never a FAIL reason, while a trusted-text manifest lineEvidence loop: 3/3 cap reached, last NEEDS WORKis a FAIL (AC7's park path then runs).merge.verify-capture.app: claude-codeand show one in-repo PR with a judged capture (AC1). Comment block at.github/workflows/pr-verify.yml:33-36updated (reviewed change: jobs now take an artifact).node --test .github/scripts/pr-verify/workflow.test.mjsexits 0 with cases: capture job permissions contain nowrite; the three judge jobs carry identical capture-download steps; captureifincludes the head-repository check; no job-levelalways()in pr-verify.yml; only check-intentneeds: capture; a probe step exists, runs aftersetup-runner-isolationand before any head code, and has nocontinue-on-error;actionlintpasses.Depends on
🤖 Generated with Claude Code
https://claude.ai/code/session_01UJUn7KoThXoYQoxfvdCVi7
kyle-sexton commentedon Oct 30, 2026
Owner decision 2026-10-30, Q11: the capture job stays in pr-verify as its own job (no write token; only its run directory reaches the judge). No verdict-forgery probe and no artifact-name filter: the only actors are the owner's own agents, and the producer and reviewer are separate agents. Q10: it uses pr-verify's existing credential legs. Remaining dependencies: #11388, #11386, #11390, #11385. Brief and decisions: #11364
kyle-sexton commentedon Oct 31, 2026
Decisions 2026-10-31 (audit of Q10-Q12, resolved from the owner's standing direction s1, s5, s10):
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1so hooks and Bash in the driven session get no credentials (https://code.claude.com/docs/en/env-vars). No separate OS user and no /proc defense: reading another process's environment on purpose needs a malicious actor, which the threat model excludes.