Repository navigation
Description
Problem or Motivation
Child 10 of the ADR modernization (#5233). Decision that follows the owner directions of 2026-11-11 (loosen caps) and 2026-11-12 (eval bands, docs jobs). It waits for the owner's approval at the merge.
The review of each record that this item changes:
- ADR 0021 (amend (Status History and two amending records)): The direction holds (owner, 2026-11-11), but only 2 of its 15 steps are built, and it grew from 3,585 to 7,472 words in 2 days. New rows go to their OpenSpec change and the step order to feat(roadmap): move Service work to Workflows and Valkey #4517. Caps become settings, cache keys fall back, and coordination keys fail closed.
- ADR 0023 (amend (shared-state and limits records)): The built parts match (the pybreaker tier, the SBOM tools), and 9 of the 13 sub-issues are open. AOF and a backup replace the hidden-block copies if the owner agrees. The count caps become settings with RowMode plan, and the USD ceilings stay hard.
- ADR 0025 (amend (Status History and the limits record)): The core holds, and the site builds with Zensical. CLI_REFERENCE.md becomes an index (docs(cli): turn CLI_REFERENCE into an index of the command group pages #5163, which the owner approved). The drift lane uses fingerprinted issues and RowMode (feat(docs): track the docs site upgrade and the docs and Pages jobs #5151), not 3 batch issues a week.
Proposed Solution & Architectural Design
A new record amends section 8 of 0021, sections 1, 3 and 4 of 0023 and section 3 of 0025. Each cap is a setting under roadmap..*. USD ceilings stay hard, and only the owner raises one, on the tracker. Counts start at today's values and change by eval band. RowMode off|plan|on replaces 'the first runs only plan'. The drift lane keeps fingerprinted issues (#5151). A test checks that each inner default is less than its outer default. A separate code issue moves the fix-plan constants (constants.py:3791-3793) into RoadmapFixPlanConfig.
Rules of the ADR process (docs/adr/README.md, #5225) that apply:
- Use one form for a Status History line, 30 words at most: 'YYYY-MM-DD: Amended by ADR NNNN, section S | Amended by the owner decision in #N, section S | Superseded by ADR NNNN | Fact out of date: (#N) | Living detail moved to (#PR).' The PR that makes a fact of a record wrong adds the line (AGENTS.md rule 8). An agent never edits the body of an accepted record.
- 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.
- 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 0003/0017/0021, the sweep is the source of truth and 'webhooks as the only trigger' stays rejected: 25 of 100 deliveries got 403, and about 116 s are lost at each rollout.
- ADR 0021, coordination keys fail closed (shared request window, holds, identity halt, locks): a local fallback would let N pods pass the owner's cap.
- ADR 0023/0025, USD ceilings and the caps on new issues: they stop an intake flood. No progress extension applies to weekly output counts.
The owner merges this pull request.
Target Subsystem
docs/adr/, src/devops_cli/config/ (the defaults test).
Existing Tool Considered
MADR 4 and the rules of docs/adr/README.md (#5225). No new tool.
Acceptance Criteria
- A new record amends section 8 of ADR 0021, sections 1, 3 and 4 of ADR 0023 and section 3 of ADR 0025.
- Each cap is a setting under
roadmap.<row>.*. USD ceilings stay hard, and only the owner raises one, on the tracker. Counts start at the values of today and change by eval band. -
RowModeoff|plan|onreplaces 'the first runs only plan'. The drift lane keeps fingerprinted issues (feat(docs): track the docs site upgrade and the docs and Pages jobs #5151). - A test checks that each inner default is less than its outer default.
- A separate code issue is filed: move the fix-plan constants (
constants.py:3791-3793) intoRoadmapFixPlanConfig. - 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
ADR 0021 section 8, ADR 0023 sections 1, 3 and 4, and ADR 0025 section 3 state fixed job limits and the first-runs rule. The owner directions of 2026-11-11 and 2026-11-12 make each count a setting with a soft default and a hard ceiling. They keep the USD ceilings hard and replace the first-runs rule with RowMode off|plan|on. The records and the code disagree. This item writes one record that amends three records, updates the links and the index, and defers the code move.
Acceptance criteria
Requirement: Amendment links
The new record SHALL amend ADR 0021, ADR 0023 and ADR 0025, and each amended record SHALL link back to the new record.
Scenario: The ADR link test passes
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns - THEN The command exits 0 and reports no one-way link and no link to a missing record.
Requirement: Amended records keep their bodies
The change SHALL change only the front-matter status keys and the Status History lines of the amended records, and it SHALL NOT edit their bodies.
Scenario: The amended records keep their body hash
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns - THEN The command exits 0 and reports no body-hash mismatch on ADR 0021, ADR 0023 or ADR 0025.
Requirement: Record length
The new record SHALL keep the body, title and slug within 1,000 words, 10 words and 60 characters.
Scenario: The ADR length test passes
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns - THEN The command exits 0 and reports no record over a length limit.
Requirement: Record acceptance state
The new record SHALL have status: accepted and a body-hash of its body in the ready pull request.
Scenario: The ADR body hash test passes
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns - THEN The command exits 0 and reports no body-hash mismatch.
Requirement: ADR index
The ADR index in docs/adr/README.md SHALL list the new record with its links.
Scenario: The ADR index check passes
- WHEN
uv run devops docs checkruns - THEN The command exits 0 and reports no out-of-date index.
Requirement: Job limits are settings
Each roadmap job limit SHALL be a setting of its job section under roadmap.<row>.*, with a hard ceiling of four times its default.
Scenario: The job limit settings test passes
- WHEN
uv run devops ci test tests/config/test_roadmap_job_limit_settings.pyruns - THEN The command exits 0 and reports each setting at its default and each value above its ceiling refused with the setting name.
Requirement: Inner default below outer default
The defaults test SHALL assert that each inner default of a roadmap job limit is less than the outer default that holds it.
Scenario: The defaults test checks the shipped defaults
- WHEN
uv run devops ci test tests/config/test_roadmap_job_limit_settings.pyruns - THEN The command exits 0 and reports each inner default below its outer default.
Requirement: Alternatives budget
The records in force SHALL fit CONST_ROADMAP_ALTERNATIVES_MAX_ADR_TOKENS, so the alternatives check leaves out no record.
Scenario: The alternatives budget test passes
- WHEN
uv run devops ci test tests/roadmap/test_roadmap_alternatives.pyruns - THEN The command exits 0 and reports no record over the token cap.
Requirement: Pending a person after the merge
The owner SHALL approve the new record that amends ADR 0021 section 8, ADR 0023 sections 1, 3 and 4, and ADR 0025 section 3.
Scenario: The owner approves the record
- WHEN The owner reviews the new record and merges the pull request into
main - THEN The new record is on
mainand states the amended sections, the settings and the hard USD ceilings. It also statesRowMode, the drift lane, the kept constraints, and theConsidered OptionsandConfirmationsections.
Existing Tool Considered
The alternatives check in the issue body gives not-applicable and names no tool. No open tool or library covers this documentation change, and the change builds no code. MADR 4 is the template that docs/adr/README.md requires, and src/devops_cli/docs/adr_records.py is the existing checker.
Key questions
- Which records does the new record amend, and does it supersede ADR 0021?: The new record amends ADR 0021 section 8, ADR 0023 sections 1, 3 and 4, and ADR 0025 section 3. It does not supersede ADR 0021.
docs/adr/README.mdrequires a supersession after the third amendment or when the body contradicts the code. The index shows that ADR 0021 has one amendment, by ADR 0023. (best practice) [sources: docs/adr/README.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md, docs/adr/0025-generated-documents-stay-in-git-and-the-project-brain-cites-them.md]- Chosen: Amend the three records. The issue directs the three amendments. The index shows one amendment to ADR 0021.
- Rejected: Supersede ADR 0021. No source shows the third amendment or a body that contradicts the code.
- Rejected: Amend ADR 0021 only. The issue also names sections of ADR 0023 and ADR 0025.
- Which settings segment names each job limit:
roadmap.<row>.*or a new namespace?: The existing job sections are the rows:roadmap.stage,roadmap.implementandroadmap.fix_plan. Each limit is a key of its job section.RowModesets the mode of a row. (best practice) [sources: tests/config/test_roadmap_job_limit_settings.py, src/devops_cli/config/settings.py:2063, CONTEXT.md]- Chosen: Use the existing job sections. The settings model and the defaults test already name these three sections.
- Rejected: Add a
roadmap.limitssection. A second name for one section makes the record and the settings ambiguous. - Rejected: Add a new
roadmap.<row>namespace. The row sections already exist as the job sections, andRowModeholds the row mode.
- What is the hard ceiling of a job limit setting?: The ceiling is four times the default, from
CONST_ROADMAP_LIMIT_CEILING_FACTOR(4). The settings load refuses a value above it and names the setting. The default is the soft cap. [sources: src/devops_cli/config/constants.py:3762, tests/config/test_roadmap_job_limit_settings.py] - Does
RowModeoff|plan|onalready exist in the settings?: Yes.RowModeis defined atsrc/devops_cli/config/defaults.py:1265. The settings,src/devops_cli/roadmap/open_row.py,src/devops_cli/roadmap/references/step.pyandsrc/devops_cli/roadmap/steps/review.pyuse it. The issue gives its values asoff,planandon. [sources: src/devops_cli/config/defaults.py:1265, src/devops_cli/config/settings.py, src/devops_cli/roadmap/open_row.py, src/devops_cli/roadmap/references/step.py, src/devops_cli/roadmap/steps/review.py] - What changes a count cap: an eval band or a job grade?: An eval band. The issue names eval bands for the counts.
CONTEXT.mddefines a job grade as a measured performance and states that a job grade is not a band. (best practice) [sources: CONTEXT.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]- Chosen: Eval band. The issue names eval bands for the counts.
- Rejected: Job grade.
CONTEXT.mdseparates a job grade from a band.
- How does the drift lane file its findings?: It files one fingerprinted issue for each finding (feat(docs): track the docs site upgrade and the docs and Pages jobs #5151). It does not file three batch issues a week. (best practice) [sources: docs/adr/0025-generated-documents-stay-in-git-and-the-project-brain-cites-them.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]
- Chosen: One fingerprinted issue for each finding. A fingerprint stops a second issue for the same finding.
- Rejected: Three batch issues a week. A batch hides findings and carries no fingerprint.
- Does a check prove the
Considered Optionsverdicts and theConfirmationsection of the new record?: No.tests/invariants/test_adr_records.pychecks the front matter keys, the two-way links, the body hash, the length limits and the index. The owner review checks the option verdicts and theConfirmationsection. [sources: tests/invariants/test_adr_records.py, docs/adr/README.md] - What limits the tokens of the decisions that the alternatives check reads?:
CONST_ROADMAP_ALTERNATIVES_MAX_ADR_TOKENScaps the read at 8,192 tokens. The check takes whole records, the newest first, and leaves out the oldest record that does not fit. The new record keeps short option bullets to stay under the cap. [sources: src/devops_cli/config/constants.py:3896, src/devops_cli/roadmap/alternatives.py, docs/adr/README.md, tests/roadmap/test_roadmap_alternatives.py] - Does this item move the fix-plan constants into
RoadmapFixPlanConfig?: No.RoadmapFixPlanConfigis atsrc/devops_cli/config/settings.py:2063. The constants atsrc/devops_cli/config/constants.py:3791-3793are not in the defaults test. This item defers the move to a new issue. (best practice) [sources: src/devops_cli/config/settings.py:2063, src/devops_cli/config/constants.py, tests/config/test_roadmap_job_limit_settings.py]- Chosen: Defer the move to a new issue. This item changes documents only, and AGENTS.md rule 1 keeps one issue to one pull request.
- Rejected: Move the constants in this pull request. The pull request would change code and documents, and the issue asks for a separate code issue.
- Rejected: File no issue. The constants stay module constants, and the issue asks for the move.
- Which constraints does the new record keep?: It keeps the rejection of webhooks as the only trigger, the fail-closed coordination keys, and the caps on new issues and on USD spend. The review gives a reason for each. 25 of 100 deliveries got 403. About 116 s are lost at each rollout. A local fallback would let N pods pass the owner's cap. The caps stop an intake flood. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, docs/adr/0017-each-subscribed-webhook-event-runs-the-update-scoped-to-it.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]
- Chosen: Keep the constraints. The review records a reason for each constraint.
- Rejected: Drop the constraints. A dropped constraint loses the reason that the review recorded.
- Who raises a USD ceiling, and does the ceiling stay hard?: Only the owner raises a USD ceiling, on the tracker. The ceiling stays hard. No roadmap job and no setting raises its own cap. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, AGENTS.md]
- Chosen: The owner raises it, on the tracker. The owner direction of 2026-11-11 keeps the hard ceiling.
- Rejected: A roadmap job raises it. A job that raises its own ceiling removes the intake flood guard.
- Rejected: A setting raises it. The cap is hard, and the owner raises it on the tracker.
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 concern job limits, but #3206 raises the cap values while this candidate records the architectural decision that caps become settings with a soft/hard split.dan-petty commentedon Nov 13, 2026
The approved roadmap pipeline split (tracker #5482) keeps the job limits, the soft caps and the progress extensions in this record. #5502 waits for this item and does not repeat them. #5511 and the stage Job (#4559) read these limits as
roadmap.<job>.*settings (#5440).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 approves and merges the new record? (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
devops-cli-service commentedon Nov 27, 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.