Repository navigation
Description
Problem or Motivation
ADR 0021 uses due marks as the transport between jobs. watch sets the due marks fix-checks:<pr> and fix-conflict:<pr>, and the sweep reads them. The router sets a due mark during a hold and after a failed create. The section "The trigger transport stays" and the rejected option "A Valkey stream as the trigger queue" give due marks as the reason. The approved pipeline split design (owner approval 2026-11-13, tracker #5482) removes every due mark: one pure function, due_jobs, is the only source of what is due.
ADR 0021 also has no permission table for each job, no classes for a killed attempt and no per-pod request budget. ADR 0022 section 7 does not say when a -n branch suffix gets built. #4617 adds the links between ADR 0021 and ADR 0022 in the same two files, so this item folds it.
Proposed Solution & Architectural Design
Write one short record that amends ADR 0021, under the ADR rules of docs/adr/README.md: one Considered Options section, a Confirmation section, and 1,000 words or fewer. Set amended-by on ADR 0021. The record states:
due_jobsis the only due source. No job writes a due mark. The sweep, the router anddevops roadmap explaincall it.- Replacement text for the router rules: during a hold, or after a failed create, the router creates nothing and sets no mark. The next sweep finds the work through
due_jobs, within 5 minutes. - Replacement text for "The trigger transport stays" and for the reason of the rejected option "A Valkey stream as the trigger queue": the sweep and
due_jobsfind each lost trigger within 5 minutes. - The trigger cells of the job table (stage, refine, sweep,
fix-checks,fix-conflict,brain-daily) name the due predicate in place of a due mark. - The watch draft route and the Staged rule (D3, D7).
- The triage unit: intake, the retitle summary and premise; at most 5 items; no clone.
- One research unit, just in time, with the semaphore
research1. - incident reads the alert state (feat(roadmap): add incident and supervise jobs that read the SLOs #5477). No Alertmanager route and no new webhook provider. The text of a public issue comes from an allowlist and
mask_secrets. - The permission table for each job (a link to the code table of feat(roadmap): each roadmap Job gets its keys and a scoped token #5498).
- A killed attempt is
evicted(free up to 3 for each head),deadlineoroom(both count). - The per-pod request budget until feat(service): share the GitHub budget and holds in Valkey #4563.
- The semaphores
agent2,research1,triage1 andsteward1. No PriorityClass.
Issue #5246 owns the job limits, the soft caps and the progress extensions, so this record does not repeat them. #5245 owns the text of the Valkey key classes. This record removes only "a due mark" from that list and from the list of what moves to valkey-roadmap, after #5245 merges.
Considered options, each with its verdict: Argo Events and Tekton Triggers (rejected, a second receiver); KEDA and Kueue (rejected, they duplicate the semaphores); an Alertmanager route (rejected, a new provider and a new credential); a review check run (deferred until E4); a commit status (rejected, the App has no permission for it); GitHub Actions as the engine (rejected).
Add a dated Status History note to ADR 0022 section 7: no -n suffix until the two-branch check of cleanup (#5026) finds a real case (D2).
From #4617: the Status section of ADR 0022 links to the ADR 0021 file. The line of ADR 0021 that names ADR 0022 links to the ADR 0022 file, and no text says that a later PR adds the link.
Target Subsystem
Architecture decision records (docs/adr/).
Acceptance Criteria
-
uv run devops docs checkand the ADR tests pass, with the link checks. - The record links to
docs/ROADMAP_WORKFLOW.mdand to the code table. - ADR 0021 holds no rule that sets or reads a due mark.
- The Status section of ADR 0022 links to the ADR 0021 file, and ADR 0021 links to the ADR 0022 file (docs(adr): link the naming record ADR 0022 and the move record ADR 0021 #4617).
- The owner merges the pull request.
- No live proof applies: this item changes documents only.
Existing Tool Considered
The MADR form (in use) covers the record. Build: 150,000 to 250,000 agent tokens and 0.5 day, plus the owner review.
Related
Tracker #5482, Phase 2. Depends on #5245 and #5246 (the same ADR text). It replaces #4617. #5233 (the merge order of ADR records). #5235 holds the label rule (D4).
Source: #5482
Alternatives check of 2026-11-17: not-applicable.
Class: docs, no search.
Tool: none found.
Proposed design
Problem statement
ADR 0021 uses due marks as the transport between roadmap jobs. The approved pipeline split removes every due mark and makes due_jobs the only due source. ADR 0021 also lacks a permission table, killed-attempt classes and a per-pod request budget. ADR 0022 section 7 does not state when a -n branch suffix is built. One short amending record updates these rules and adds the ADR 0021 and ADR 0022 links from #4617.
Acceptance criteria
Requirement: New ADR form and index
The new ADR SHALL use the MADR 4 form of docs/adr/README.md, have status: accepted, a body-hash, 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 ADR invariant test passes on the new record
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns. - THEN The command exits 0 and reports no rule break for the new record.
Requirement: New record amends ADR 0021
The new record SHALL name 0021 in amends as a quoted four-digit string, and ADR 0021 SHALL name the new record in amended-by.
Scenario: The front-matter links go in both directions
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns. - THEN The command exits 0 and the front matter names an existing record in both directions.
Requirement: Existing ADRs keep their body hashes
ADR 0021 and ADR 0022 SHALL keep their body hashes and each SHALL get one dated Status History line.
Scenario: Both body hashes still match
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns andrg -q '#5026' docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.mdruns. - THEN Both commands exit 0, and the ADR test reports Status History lines of 30 words or fewer.
Requirement: The two records link to each other
ADR 0021 SHALL link to the ADR 0022 file, and ADR 0022 SHALL link to the ADR 0021 file.
Scenario: The docs link check passes
- WHEN
uv run devops docs checkruns. - THEN The command exits 0 and reports no broken link.
Requirement: The record states the due_jobs rule and callers
The new record SHALL state that due_jobs is the only due source, that no job writes a due mark, that the sweep, the router and devops roadmap explain call it, and that the trigger cells name the due predicate.
Scenario: The due_jobs rule and callers are present
- WHEN
rg -q 'only due source' docs/adrruns andrg -q 'No job writes a due mark' docs/adrruns andrg -q 'devops roadmap explain' docs/adrruns andrg -qi 'trigger cells' docs/adrruns. - THEN All four commands exit 0.
Requirement: The record states the router replacement
The new record SHALL state that during a hold or after a failed create the router creates nothing and sets no mark, and that the next sweep finds the work through due_jobs within 5 minutes.
Scenario: The router replacement is present
- WHEN
rg -q 'creates nothing and sets no mark' docs/adrruns andrg -q 'within 5 minutes' docs/adrruns. - THEN Both commands exit 0.
Requirement: The record states the trigger transport replacement
The new record SHALL state that the sweep and due_jobs find a lost trigger within 5 minutes, and SHALL reject the Valkey stream with that reason.
Scenario: The trigger transport replacement is present
- WHEN
rg -q 'lost trigger' docs/adrruns andrg -q 'Valkey stream' docs/adrruns. - THEN Both commands exit 0.
Requirement: The record names killed classes and semaphores
The new record SHALL name evicted, deadline and oom as killed classes, SHALL state the per-pod request budget until #4563, SHALL name the semaphores agent, research, triage and steward, and SHALL state that no PriorityClass is used.
Scenario: The killed classes, budget and semaphores are present
- WHEN
rg -q 'evicted' docs/adrruns andrg -q 'deadline' docs/adrruns andrg -q 'oom' docs/adrruns andrg -q '#4563' docs/adrruns andrg -q 'steward' docs/adrruns andrg -q 'PriorityClass' docs/adrruns. - THEN All six commands exit 0.
Requirement: The record links workflow and permission table
The new record SHALL link to docs/ROADMAP_WORKFLOW.md and to the code table of #5498, and SHALL NOT copy the permission table.
Scenario: The workflow and code-table links are present
- WHEN
rg -q 'ROADMAP_WORKFLOW.md' docs/adrruns andrg -q '#5498' docs/adrruns. - THEN Both commands exit 0.
Requirement: The record states the remaining split rules
The new record SHALL state the incident alert rule, the public text rule, the triage unit, the research unit, the watch draft route and the Staged rule.
Scenario: The remaining split rules are present
- WHEN
rg -q '#5477' docs/adrruns andrg -q 'Alertmanager' docs/adrruns andrg -q 'mask_secrets' docs/adrruns andrg -q 'allowlist' docs/adrruns andrg -q 'triage' docs/adrruns andrg -q 'research' docs/adrruns andrg -q 'draft_readiness' docs/adrruns andrg -q 'Staged' docs/adrruns. - THEN All eight commands exit 0.
Requirement: Pending a person after the merge
The owner MUST merge the pull request after the checks pass.
Scenario: The owner merges the pull request
- WHEN The checks pass and the owner reviews the pull request.
- THEN The pull request merges and the issue closes.
Existing Tool Considered
The alternatives check in the issue body records not-applicable and names no tool. The change uses the MADR 4 form that docs/adr/README.md sets and uv run devops docs generate for the index. It builds no code. The written cost is 150,000 to 250,000 agent tokens and 0.5 day, plus the owner review.
Key questions
- Does the new record amend ADR 0021 or supersede it?: Amend ADR 0021 with a new record. The new record holds the replacement rules. ADR 0021 keeps its body and gets one dated Status History line. (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]
- Chosen: Amend ADR 0021 with a new record. The README allows an amendment, and the approved split design says amend.
- Rejected: Supersede ADR 0021. The new record must write again every rule in force within 1,000 words, and the edits of docs(adr): Valkey keys are coordination keys or cache keys #5245 and docs(adr): job limits are settings with a soft cap and a hard ceiling #5246 lose their target.
- Rejected: Edit the body of ADR 0021 in place. The README forbids it, and the body-hash check fails.
- Where does the replacement text for the router rules, the trigger transport and the rejected Valkey-stream option go?: Into the new record. Its Decision Outcome holds the router replacement and the 5-minute rule. Its Considered Options repeats the Valkey stream as rejected with the new reason. (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]
- Chosen: Put the replacement text in the new record. An accepted record's body does not change, and the new record is the rule in force.
- Rejected: Edit the section in ADR 0021. The body-hash check fails, and the README forbids the edit.
- Rejected: Add a Status History note only. A note of 30 words cannot hold the replacement rules.
- How do ADR 0021 and ADR 0022 link to each other (docs(adr): link the naming record ADR 0022 and the move record ADR 0021 #4617) without changing their body hashes?: Put link targets on the existing mention of ADR 0022 in ADR 0021 and on the mention of ADR 0021 in the Status section of ADR 0022. The body hash ignores link targets, so the hash stays valid. ADR 0021 gets a dated Status History line for the amendment, and ADR 0022 gets a dated line for the -n rule. (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/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md]
- Chosen: Put link targets on the existing mentions. The body hash ignores link targets, so the hash stays valid and the link is on the line that names the other record.
- Rejected: Add only a Status History line. The line that names the other record still has no link, so docs(adr): link the naming record ADR 0022 and the move record ADR 0021 #4617 stays open.
- Rejected: Rewrite the body text. The body hash changes, and
docs/adr/README.mdallows only link targets and one dated line.
- How does the new record satisfy the rule that ADR 0021 holds no rule that sets or reads a due mark?: The new record amends ADR 0021 and states that no job writes a due mark and that
due_jobsis the only due source. ADR 0021 keeps its body as history and gets a dated Status History line. The new record is the rule in force. (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]- Chosen: Amend ADR 0021 with a new record. The README allows the body to stay and the new record to hold the rule in force.
- Rejected: Edit the due mark text in the body of ADR 0021. The body-hash check fails, and the README forbids the edit.
- Rejected: Add only a Status History note. A note of 30 words cannot hold the replacement rules.
- Where do the semaphore counts, the per-pod request budget and the triage cap go?: The record names each semaphore and rule and links the setting or spec that holds the number. It does not state the numbers as bare values. (best practice) [sources: docs/adr/README.md, docs/ROADMAP_WORKFLOW.md]
- Chosen: Name each semaphore and rule, and link the setting. The record keeps the decision, and the number stays in one place that a person changes.
- Rejected: State the numbers in the record. A value is not a record, and the 1,000-word limit is for decisions.
- Rejected: Leave the semaphores out. The concurrency bound is part of the split design, and a reader needs its name.
- What does the record state for a killed attempt and the per-pod request budget?: It names the killed classes
evicted,deadlineandoom. An evicted attempt is free up to the limit that the setting holds, and deadline and oom both count. It links the setting for the limit and the per-pod request budget until feat(service): share the GitHub budget and holds in Valkey #4563. It does not copy the limit or the budget into the record. (best practice) [sources: docs/adr/README.md, src/devops_cli/roadmap/implement/implement_submit.py:289]- Chosen: Name the classes and link the settings. The record keeps the decision, and the numbers stay in one place that a person changes.
- Rejected: State the limit and the budget as numbers. A value is not a record, and the 1,000-word limit is for decisions.
- Rejected: Leave the killed classes out. The class of a killed attempt is part of the job split.
- What does the Confirmation section name?: It names
uv run devops ci test tests/invariants/test_adr_records.py,uv run devops docs check, andtests/roadmap/test_roadmap_fix_checks_row.py. (best practice) [sources: docs/adr/README.md, tests/roadmap/test_roadmap_fix_checks_row.py]- Chosen: Name the current checks and the fix-checks row test. Each named check exists today.
- Rejected: Name a test that phase 2 adds. The check does not exist, so the Confirmation names no passing command.
- Rejected: Name no Confirmation section.
docs/adr/README.mdrequires a Confirmation section.
- Which record number and title does the new record take?: The next free number in the ADR index is 0041 at this commit. Use a title of 10 words or fewer and a slug of 60 characters or fewer, for example
Roadmap jobs use due_jobs as the only due source. [sources: docs/adr/README.md] - Which items must land before this record?: docs(adr): Valkey keys are coordination keys or cache keys #5245 and docs(adr): job limits are settings with a soft cap and a hard ceiling #5246, because they change the same ADR text.
docs/adr/README.mdsays the pull requests of new records merge one at a time in tracker order. The record links the code table that feat(roadmap): each roadmap Job gets its keys and a scoped token #5498 writes. (best practice) [sources: docs/adr/README.md]- Chosen: Wait for docs(adr): Valkey keys are coordination keys or cache keys #5245 and docs(adr): job limits are settings with a soft cap and a hard ceiling #5246. They change the same ADR text, and the merge order is tracker order.
- Rejected: Merge this record first. Two open pull requests then change the same record text, and the later one conflicts.
- What does the record state for the incident alert rule and the public text rule?: incident reads the alert state (feat(roadmap): add incident and supervise jobs that read the SLOs #5477). No Alertmanager route and no new webhook provider. The text of a public issue comes from an allowlist and
mask_secrets. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, src/devops_cli/security/sanitizer.py:468]- Chosen: incident reads the alert state. The state already exists, and the rule adds no new provider or credential.
- Rejected: Add an Alertmanager route. The route adds a new provider and a new credential.
- Rejected: Add a new webhook provider. The provider adds a new credential and a second receiver.
- What does the record state for the watch draft route, the Staged rule, the triage unit and the research unit?: It states the watch draft route and the Staged rule as
docs/ROADMAP_WORKFLOW.mdandCONTEXT.mdstate them. The triage unit covers intake, the retitle summary and premise, and no clone. The record names one just-in-time research unit with the semaphoreresearchand links the triage cap setting. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, CONTEXT.md, docs/adr/README.md]- Chosen: State the rules and link the triage cap setting. The record keeps the decision, and the cap stays in one place that a person changes.
- Rejected: Copy the cap into the record. A value is not a record, and the 1,000-word limit is for decisions.
- Rejected: Leave the triage and research units out. The units are part of the split design, and a reader needs their names.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 13, 2026
Both concern the pipeline split and due_jobs, but the candidate writes the ADR record while #5474 tracks the implementation of the 24 jobs.devops-cli-service commentedon Nov 17, 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-17. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 18, 2026
Owner question: Who merges the pull request that accepts the 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.