Repository navigation
Description
Update 2026-11-26 (infra move): tools.lock is gone (#6555), so it has no header with OpenSpec operations text. The operations text is in openspec/config.yaml and docs/SDLC.md. The OpenSpec pin is in the root package.json.
Problem or Motivation
Child 7 of the ADR modernization (#5233). Consolidation. It states both plan paths as they run today, and it keeps the archive in the closing PR with a measured revisit. The owner merges it.
The review of each record that this item changes:
- ADR 0010 (supersede (short OpenSpec record)): The core holds. 'A plan never merges before its code' is false, because 170 Service plan PRs merged at G1. 'Part of', release branches, the 40,000-character budget and Renovate-off are gone. The archive in the closing PR stays, with a measured revisit.
Proposed Solution & Architectural Design
A new record with the Considered Options that still hold (union merge driver, core profile, forked schema, root package.json or npx). The operations text stays in openspec/config.yaml and docs/SDLC.md. Move 21 citation lines. Separate issues: the OpenSpec 2.0.0 migration (binary kind with a digest and an attestation check, one skill tree, the .kilocode tree after one check) and a step job that acts on the plan-recheck 'cleanup' result (4 orphan folders: #1327, #2526, #3060, #3236).
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 0010, archive in the closing PR: the owner kept it on 2026-10-22 and 2026-11-11. A job after the merge needs a push to main or a second PR, and the capability split (refactor(openspec): split big capabilities into nested ones #4981) landed only hours ago. Look at it again after one week of conflict data.
The owner merges this pull request.
Target Subsystem
docs/adr/, openspec/config.yaml, docs/SDLC.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 0010. It states both plan paths as they run today, keeps the archive in the closing pull request with a measured revisit, and keeps the Considered Options that still hold (union merge driver, core profile, forked schema, root
package.jsonor npx). - The operations text stays in
openspec/config.yamlanddocs/SDLC.md, and the 21 citation lines move. - Two separate issues are filed: the OpenSpec 2.0.0 migration (binary kind with a digest and an attestation check, one skill tree, the
.kilocodetree after one check), and a step job that acts on the plan-recheck 'cleanup' result (4 orphan folders: test(cli): the infra commands are thin adapters tested over edge fakes, with no internal patches or private imports #1327, fix(hardening): add guardrails to hardening surfaces #2526, feat(roadmap): a model ladder for retries, with the tier chosen per attempt #3060, fix(mcp): read-only tools take paths that reach the server file system #3236). - 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-26: not-applicable.
Class: docs, no model call.
Tool: none found.
Proposed design
Problem statement
Proceed after #5241 is done; the owner merges the pull request after CI passes. ADR 0010 is out of date: it says a plan never merges before its code, but 170 Service plan PRs merged at G1. It names parts, release branches, a 40,000-character budget and Renovate-off that no longer hold. This item replaces ADR 0010 with a short OpenSpec record, moves the citations, and files the two follow-up items.
Acceptance criteria
Requirement: ADR index lists the new record
The ADR index SHALL list the new record.
Scenario: Index entry exists
- WHEN A person runs
uv run devops ci --checkon the pull request. - THEN The command exits 0 and the ADR index test reports no missing entry.
Requirement: Two-way supersession link
A new ADR record SHALL set supersedes: ["0010"], and ADR 0010 SHALL set status: superseded and superseded-by in the same pull request.
Scenario: The link goes both ways
- WHEN A person runs
uv run devops ci --checkon the pull request. - THEN The command exits 0 and the ADR link test reports no one-way supersession link.
Requirement: Record states both plan paths and keeps live content
The new record SHALL state both plan paths as they run today, keep the union merge driver, core profile, forked schema and root package.json or npx options, keep the archive in the closing pull request with a measured revisit, and link to the operations text in openspec/config.yaml and docs/SDLC.md without copying it.
Scenario: Live content stays in the record
- WHEN A person reviews the new record in
docs/adr/. - THEN The record states both plan paths, names the four options, keeps the archive rule with the measured revisit, and links to the three operation text files.
Requirement: Citation sweep
The pull request SHALL move the 21 citation lines and SHALL leave no citation of ADR 0010 in src/, tests/ or .github/.
Scenario: No source cites the superseded record
- WHEN A person runs
uv run devops ci --checkon the pull request. - THEN The command exits 0 and reports no citation of ADR 0010 in
src/,tests/or.github/.
Requirement: Record fits length and option rules
The new record SHALL have 1,000 words or fewer, a title of 10 words or fewer, a slug of 60 characters or fewer, and one Considered Options section whose bullets end with chosen., rejected, because <reason>. or deferred until <condition>.
Scenario: Length and option forms pass
- WHEN A person runs
uv run devops ci --checkon the pull request. - THEN The command exits 0 and the ADR check reports no record over its length limit and no option bullet with an unaccepted closing form.
Requirement: ADR budget stays under cap
The new record MUST fit in the token budget that the records it supersedes free.
Scenario: Budget test passes
- WHEN A person runs
uv run devops ci --checkon the pull request. - THEN The command exits 0 and the budget test reports every record in force under its cap.
Requirement: Two follow-up issues are filed
The pull request SHALL file two follow-up issues: one for the OpenSpec 2.0.0 migration and one for the plan-recheck cleanup step job.
Scenario: Follow-up issues exist
- WHEN A person runs
gh issue list --state open --search 'OpenSpec 2.0.0 in:title'andgh issue list --state open --search 'plan-recheck cleanup in:title'. - THEN Each command prints one open issue that names its scope.
Existing Tool Considered
The alternatives check in the issue body gives verdict not-applicable (class docs, no search) and names no tool. The change uses the project ADR process of docs/adr/README.md (#5225) and the MADR 4 record format that the issue body already names. No new tool is adopted.
Key questions
None.
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.This is a documentation consolidation with no user-facing defect or security risk.Both belong to the ADR modernization; #5225 adds MADR rules and structure, while the candidate writes one specific superseding record under those rules.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 20, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.