Repository navigation
Description
Problem or Motivation
Child 8 of the ADR modernization (#5233). Decision about the executor of review scanners. It waits for the owner's approval at the merge.
The review of each record that this item changes:
- ADR 0005 (supersede (review-evidence record)): The core rule (tools create findings, models explain) stays. The sandbox becomes a set of controls, with bubblewrap or a dedicated scan Job and never the runner pod, so feat(roadmap): devops review runs in the runner shell #3827 can go on. The unbuilt GPU-slot jobs and the ingest consequence go out, and reference facts stay a requirement (feat(research): watch upstream releases of the pins #3907, refactor(ai): the review loop reads manuals from the index #3916).
Proposed Solution & Architectural Design
A new record supersedes 0005. SECURITY.md rule 7 allows bubblewrap, or a dedicated scan Job pod with the 0018 controls, and never the runner shell pod. No option turns the sandbox off. Move 16 citation lines. Separate issues: the scan Job (it unblocks #3827), a count of use and then the removal of the 4 devops ai ingest commands, and the Renovate manager for binary pins (#4902).
Rules of the ADR process (docs/adr/README.md, #5225) that apply:
- Supersession: the new record sets 'supersedes', and the same PR sets status and 'superseded-by' on the old record. The test fails on a link that goes only one way. The new record restates each rule and each rejected option that still holds, because the alternatives check drops superseded records. Never amend a superseded record. After a third amendment, or when a body contradicts the code, the next change is a supersession.
- Length: the body of a new record has 1,000 words or fewer, its title has 10 words or fewer, and its slug has 60 characters or fewer. Designs, catalogues, row tables, cutover plans, caps and measurements go to OpenSpec changes and specs, to settings or to docs, with a link under More Information.
- Use one Considered Options section. Each bullet ends with 'chosen.', 'rejected, because .' or 'deferred until .'. 'Deferred' does not match the rejected regex (adr.py:49), so the check stops refusing on a premise that changed. Each record has a Confirmation section that names its test, CI row or metric, and an optional tracker key.
- Code, tests and workflows cite the record in force. A test fails on a citation of a superseded record in src/, tests/ and .github/ (archived changes and CHANGELOG.md are history). Each superseding PR moves the citations of the records that it supersedes. Rename sweeps do not change docs/adr/.
- Merge ADR changes in batches. Each change of the ADR set changes adr_hash (alternatives.py:634-644, 1006) and makes every checked item due again. So all pure status changes go in docs(adr): add MADR front matter, a Status History and the ADR rules #5225, and the record PRs merge one at a time in the planned order.
- Keep the fix(roadmap): the ADRs in force fill the alternatives ADR budget #5049 budget test. A new record must fit in the tokens that the records it supersedes free. Short option bullets keep the budget, because options are 6,883 of the 8,464 tokens today.
Keep these constraints on purpose. The review found a reason for each one:
- ADR 0005, sandbox controls with no opt-out (feat(review): review tools run through one injectable executor in a network-less sandbox with CPU, memory and time limits #772 decision 1), and model output that cannot create or change a finding.
The owner merges this pull request.
Target Subsystem
docs/adr/, SECURITY.md.
Existing Tool Considered
MADR 4 and the rules of docs/adr/README.md (#5225). No new tool.
Acceptance Criteria
- A new record supersedes ADR 0005. Tools create findings and models explain. The sandbox is a set of controls: bubblewrap on a workstation, or a dedicated scan Job pod with the ADR 0018 controls, and never the runner shell pod. No option turns the sandbox off.
-
SECURITY.mdrule 7 says the same, and the 16 citation lines move. - Separate issues are filed: the scan Job (it unblocks feat(roadmap): devops review runs in the runner shell #3827); a count of use and then the removal of the 4
devops ai ingestcommands; the Renovate manager for binary pins (feat(deps): repin tool downloads and their sha256 for Renovate #4902). - The index and link tests of docs(adr): add MADR front matter, a Status History and the ADR rules #5225 pass, and the fix(roadmap): the ADRs in force fill the alternatives ADR budget #5049 budget test passes: the alternatives check fits every record in force under its cap.
Dependencies
Related
- Tracker: docs(adr): track the ADR modernization #5233. Review source:
docs/adr/at e413c40.
Source: #5233
Alternatives check of 2026-11-16: not-applicable.
Class: docs, no search.
Tool: none found.
Proposed design
Problem statement
Write a new ADR that supersedes ADR 0005 and update SECURITY.md rule 7; the owner merges the pull request. ADR 0005 sets one sandbox executor for review tools, and SECURITY.md rule 7 now allows the direct executor in the pod of a runner Job. The sandbox is now a set of controls: bubblewrap on a workstation, or a dedicated scan Job pod with the ADR 0018 controls. The runner shell pod never runs a review tool, and no option turns the sandbox off. The scan Job and the removal of the four devops ai ingest commands are separate issues; the Renovate manager for binary pins is #4902.
Acceptance criteria
Requirement: Supersession link
The ADR set SHALL hold a new record with supersedes: ["0005"], and ADR 0005 SHALL read status: superseded with a superseded-by value that names the new record.
Scenario: Both directions of the supersession link
- WHEN
uv run pytest tests -k adrruns. - THEN The test passes and reports no one-way supersession link between ADR 0005 and the new record.
Requirement: Form limits
The new record MUST have a body of 1,000 words or fewer, a title of 10 words or fewer and a slug of 60 characters or fewer.
Scenario: The form check on the new record
- WHEN
uv run pytest tests -k adrruns. - THEN The test reports no length error for the new record.
Requirement: Confirmation section
The new record SHALL have a Confirmation section that names its test, CI row or metric.
Scenario: The Confirmation section of the new record
- WHEN
uv run pytest tests -k adrruns. - THEN The test reports no missing Confirmation section in the new record.
Requirement: Closed Considered Options bullets
Each bullet of the Considered Options section SHALL end with chosen., rejected, because <reason>. or deferred until <condition>..
Scenario: The options check on the new record
- WHEN
uv run pytest tests -k adrruns. - THEN The test reports no bullet without one of the three endings.
Requirement: Restated core rule and reference store
The new record SHALL state that tools create findings and models explain, and SHALL keep the reference store as a requirement.
Scenario: The restated core rule of ADR 0005
- WHEN
rg -ni 'tools create findings|reference store' docs/adrruns. - THEN The output shows the new record states that tools create findings and models explain, and keeps the reference store.
Requirement: Sandbox controls
The new record SHALL define the review sandbox as bubblewrap on a workstation or a dedicated scan Job pod with the ADR 0018 controls, and SHALL name the runner shell pod as excluded.
Scenario: The sandbox controls of the new record
- WHEN
rg -n 'bubblewrap|dedicated scan Job|runner shell pod' docs/adrruns. - THEN The output shows the new record names bubblewrap and a dedicated scan Job, and names the runner shell pod as excluded.
Requirement: No option turns the sandbox off
The new record and SECURITY.md rule 7 SHALL state that no option turns the sandbox off.
Scenario: The no-opt-out statement
- WHEN
rg -n 'no option|turns the sandbox off' docs/adr SECURITY.mdruns. - THEN The output shows the statement in the new record and in
SECURITY.mdrule 7.
Requirement: SECURITY.md rule 7 placements
SECURITY.md rule 7 SHALL name bubblewrap and the dedicated scan Job pod as the only two review sandbox placements.
Scenario: The text check of rule 7
- WHEN
rg -n 'bubblewrap|dedicated scan Job|runner shell pod' SECURITY.mdruns. - THEN The output shows bubblewrap and the dedicated scan Job in rule 7, and the runner shell pod as excluded.
Requirement: No citation of the superseded record
The change SHALL move each citation of ADR 0005 in SECURITY.md, src/, tests/ and .github/ to the new record.
Scenario: The citation test on the tree
- WHEN
uv run pytest tests -k adrruns andrg -n '0005' SECURITY.mdruns. - THEN The test reports no citation of ADR 0005 in
src/,tests/or.github/, and the search returns no line inSECURITY.md.
Requirement: ADR index and links
The ADR index SHALL list the new record, and each link of the ADR set SHALL resolve.
Scenario: The index and link check
- WHEN
uv run pytest tests -k adrruns. - THEN The test reports no missing index entry and no broken link.
Requirement: ADR token budget
The new record MUST fit in the tokens that the records it supersedes free.
Scenario: The budget test after the supersession
- WHEN
uv run pytest tests -k adrruns. - THEN The test reports the ADR set under its cap.
Existing Tool Considered
The alternatives check in the issue body returned not-applicable for the docs class and named no tool. The change writes one ADR record and edits SECURITY.md. It builds no code, so it has no build cost. The record uses the MADR 4 template that docs/adr/README.md sets.
Key questions
- Which sandbox does the new record define, and which options does it reject?: The sandbox is a set of controls. Bubblewrap runs on a workstation. A dedicated scan Job pod runs with the ADR 0018 controls. The runner shell pod never runs a review tool. No option turns the sandbox off. (best practice) [sources: SECURITY.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]
- Chosen: One controls set: bubblewrap and a dedicated scan Job pod. Rule 7 fails closed when a host cannot start bubblewrap, so a cluster review needs the scan Job pod.
- Rejected: Bubblewrap only. A host with no bubblewrap runs no tool, so a cluster gets no review.
- Rejected: A direct executor with an opt-out. Rule 7 and decision 1 of feat(review): review tools run through one injectable executor in a network-less sandbox with CPU, memory and time limits #772 say no option, config key or MCP tool turns the sandbox off.
- Rejected: A dedicated scan Job pod only. A workstation review has no cluster, so it needs the bubblewrap sandbox.
- Does a new record supersede ADR 0005, and what does the same pull request set on the old record?: The new record supersedes ADR 0005. It holds
supersedes: ["0005"]. The same pull request setsstatus: supersededandsuperseded-bywith the new number on ADR 0005. (best practice) [sources: docs/adr/README.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]- Chosen: Supersede ADR 0005 with a new record. The sandbox becomes a set of controls and the GPU-slot text goes out, so the old record keeps its text and its history.
- Rejected: Amend ADR 0005 in place. The body records that a changed scope is a supersession, and an amendment keeps the text that goes out.
- Which rules and rejected options of ADR 0005 does the new record restate, and which go out?: The new record restates the core rule, the reference store as a requirement and the patch rule. It also restates each rejected option that still holds. The unbuilt GPU-slot job scheduler and the
devops ai ingestconsequence go out. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md, SECURITY.md]- Chosen: Restate the core rule, the reference store and the patch rule. Rule 7 still runs the tools, and no model output becomes a finding or changes one.
- Rejected: Restate every section of ADR 0005. The GPU-slot scheduler is unbuilt, and the ingest consequence belongs to the deferred command removal.
- Which file name, title and length does the new record get?: The new record takes the next free number in
docs/adr/. Its title isThe review sandbox is a set of controls. Its slug isthe-review-sandbox-is-a-set-of-controls. Its body has 1,000 words or fewer. (best practice) [sources: docs/adr/README.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]- Chosen: A title that states the decision. The title has 8 words and the slug has 39 characters, under the limits of the process.
- Rejected: A title that names the superseded record. The title states the decision in force, and the front matter holds the supersession.
- Which citations of ADR 0005 move, and what enforces the move?: Each citation of ADR 0005 in
SECURITY.md,src/,tests/and.github/moves to the new record in the same pull request. A test fails on a citation of a superseded record insrc/,tests/and.github/. A search checksSECURITY.md. (best practice) [sources: openspec/specs/adr-records/spec.md, CONTEXT.md, SECURITY.md]- Chosen: Move each citation in the same pull request. The ADR process requires code, tests and workflows to cite the record in force.
- Rejected: Leave citations to a follow-up. The citation test fails on a citation of a superseded record.
- Who merges this pull request?: The owner merges the pull request. Only a person merges pull requests (
AGENTS.md). (a person decides) [sources: AGENTS.md] - In what order does this record merge with the other ADR records?: The pull request merges after docs(adr): a short OpenSpec record supersedes ADR 0010 #5242. Each record pull request merges one at a time in the planned order. Each change of the ADR set changes
adr_hashand makes every checked item due again. (best practice) [sources: docs/adr/README.md, src/devops_cli/roadmap/alternatives.py]- Chosen: One record pull request at a time in the planned order. Each change of the ADR set changes
adr_hash. - Rejected: Batch the record pull requests. A batch changes
adr_hashfor every record at once and makes every checked item due again.
- Chosen: One record pull request at a time in the planned order. Each change of the ADR set changes
- Which follow-up parts become separate issues, and which stay in this change?: This change writes the new ADR record and edits
SECURITY.md. The scan Job and the removal of the fourdevops ai ingestcommands are deferred to new issues. The Renovate manager for binary pins is feat(deps): repin tool downloads and their sha256 for Renovate #4902. (best practice) [sources: docs/adr/README.md]- Chosen: Keep the ADR and
SECURITY.mdin this change; defer the scan Job and the ingest removal. The scan Job is a separate implementation, and the ingest removal waits on a count of use. - Rejected: Build the scan Job and the ingest removal in this change. The ADR change is docs only, and the removal waits on a count of use.
- Chosen: Keep the ADR and
Open questions
- Who merges this pull request? (a person decides)
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 12, 2026
adr, and .github/labels.yml declares no scope/adr label. Add the label to the file to give the scope to this item.Both work in docs/adr/; #5225 adds the ADR process rules, this candidate writes a specific record under those rules.devops-cli-service commentedon Nov 12, 2026
adr, and .github/labels.yml declares no scope/adr label. Add the label to the file to give the scope to this item.Both are children of the ADR modernization #5233, but 5242 supersedes ADR 0010 and the candidate supersedes ADR 0005.devops-cli-service commentedon Nov 16, 2026
Alternatives check: not-applicable
Class: docs. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 17, 2026
Owner question: Who merges this pull request, and in what order? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 21, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 24, 2026
The owner merges the pull request. Only a person merges pull requests (AGENTS.md).
devops-cli-service commentedon Nov 24, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence