Repository navigation
Description
Split from #4672.
Problem: the references step builds and verifies permalinks, but the owner decision of 2026-11-13 holds roadmap.alternatives.references in mode plan until E5 (#5512) shows a lift. The switch to on cannot be built in this issue yet, because it waits on the E5 result. The merge (#7306), the release (0.223.0) and the live proof of mode plan are done: see the comment of 2026-11-26 on #4672. Acceptance criteria: (delivered on 2026-11-26, 7 result lines in the comment on #4672) after the merge and the release, references runs as the App in mode plan on 5 items of the stage window, and a comment gives the result lines; when E5 (#5512) shows a lift, a reviewed change sets roadmap.alternatives.references to on for public repositories; after 7 days in on, devops_cli_brain_references_total{result=linked} is above 0 for at least 50 % of public checks; before brain.reference_relevance moves from shadow to on, at least 50 labelled cases exist for its Jev fit.
Proposed design
Problem statement
The references step builds and verifies permalinks, and the owner decision of 2026-11-13 holds roadmap.alternatives.references at plan until E5 (#5512) shows a lift. The live proof of mode plan is done on release 0.223.0, with 7 result lines in the comment on #4672, and it found that the code gate links a prose file with no suffix, such as NEWS of Yubico/python-fido2, as code. This change fixes that gate and its rule in docs/roadmap/alternatives.md, then, after the E5 lift, sets references to on for public repositories, and holds the 7-day linked metric. The 50 labelled cases that the brain.reference_relevance fit needs are a separate issue.
Acceptance criteria
Requirement: Prose names with no suffix
The reference code gate SHALL treat each of NEWS, README, CHANGELOG, LICENSE and AUTHORS with no suffix as a prose file.
Scenario: Five prose names have no suffix
- WHEN a test checks each of
NEWS,README,CHANGELOG,LICENSEandAUTHORSas the candidate path of a code hit - THEN the gate reports each name as a prose file, so the step keeps no link and reads no file
Requirement: Suffixless code file stays code
The reference code gate SHALL keep a file with no suffix that the prose names do not name as a code hit.
Scenario: A Makefile has no suffix
- WHEN a test checks the candidate path
Makefile - THEN the gate reports
Makefileas a code hit and the step keeps its permalink
Requirement: References on after the E5 lift
When E5 (#5512) shows a lift, a reviewed change SHALL set roadmap.alternatives.references to on for public repositories.
Scenario: ConfigMap renders the on setting
- WHEN a reviewed change sets
references: onunderroadmap.alternativesink8s/devops/configmap.example.yamland a person runsuv run devops ci --check --only k8s - THEN the check renders the ConfigMap with no error and reports success
Requirement: Pending a person after the merge
After 7 days in on, devops_cli_brain_references_total{result=linked} SHALL be above 0 for at least 50 % of the public checks.
Scenario: Seven-day linked share
- WHEN 7 days after the reviewed change sets
references: on, a person runsuv run devops prometheus query 'sum by (repo) (increase(devops_cli_brain_references_total{result="linked"}[7d])) > 0' - THEN the query returns a linked series for at least half of the public repositories that ran a check
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers the need: the change adds the prose names with no suffix to the project's own gate in src/devops_cli/roadmap/references/candidates.py, and no library decides which suffixless file name is prose. The written cost of that code is about 2,000 tokens to build, about 500 tokens a year to keep and about 1,000 tokens to fix, in under 1 hour. The ConfigMap flip adds no code.
Key questions
- Does
roadmap.alternatives.referencesexist at the commit being refined?: Yes.AlternativesConfigholdsreferencesas aRowModewith the defaultplan, the example ConfigMap holdsreferences: planunderroadmap.alternatives, anddocs/CONFIGURATION.mdanddocs/ENV_VARS.mdlist the setting. feat(roadmap): link reference implementations in each checked item #4672 is merged and released, so the setting and the step are in this commit. [sources: src/devops_cli/config/settings.py:1994, src/devops_cli/config/defaults.py:1264, k8s/devops/configmap.example.yaml:306, docs/CONFIGURATION.md:321, docs/ENV_VARS.md:214] - Which mode must
roadmap.alternatives.referenceshave now?: Keepplan. The example ConfigMap holdsreferences: planand its comment says the switch toonis this issue, andplanis the default of the setting. The live proof of modeplanis done on release 0.223.0, with 7 result lines in the comment on feat(roadmap): link reference implementations in each checked item #4672. A reviewed change setsononly after E5 (feat(roadmap): eval stage leaves out one research section #5512) shows a lift and the gate treats a prose file with no suffix as prose. (best practice) [sources: k8s/devops/configmap.example.yaml:303, k8s/devops/configmap.example.yaml:306, src/devops_cli/config/defaults.py:1264, docs/roadmap/alternatives.md:68]- Chosen: Keep
planuntil the lift and the gate fix. The owner decision of 2026-11-13 holds the row inplan, E5 (feat(roadmap): eval stage leaves out one research section #5512) has shown no lift, and the gate still linksNEWSas code. - Rejected: Set
onnow. E5 (feat(roadmap): eval stage leaves out one research section #5512) has shown no lift, and the gate still links a prose file with no suffix as code. - Rejected: Set
off.offsends no request and gives no live proof, and the owner decision holdsplan, notoff.
- Chosen: Keep
- Which file names must the reference code gate treat as prose when they have no suffix?:
NEWS,README,CHANGELOG,LICENSEandAUTHORS._is_codetests onlyPurePosixPath(hit.path).suffixagainst_PROSE_SUFFIXES, so a prose name with no suffix passes as code; the plan-mode proof linked threeNEWSfiles as code. A suffixless file that the list does not name, such asMakefile, stays a code hit. (best practice) [sources: src/devops_cli/roadmap/references/candidates.py:78, src/devops_cli/roadmap/references/candidates.py:110, src/devops_cli/roadmap/references/candidates.py:118, docs/roadmap/alternatives.md:92, tests/roadmap/references/test_reference_step.py:299, tests/roadmap/references/test_reference_step.py:311]- Chosen: Add the five prose names with no suffix to the gate. The live proof linked three
NEWSfiles as code, and each of the five names is prose, not an implementation. - Rejected: Keep the suffix-only test. A prose file with no suffix becomes a code link, as the live proof shows.
- Rejected: Treat every suffixless name as prose.
Makefileand suffixless scripts are code hits, as the test attests/roadmap/references/test_reference_step.py:299asserts.
- Chosen: Add the five prose names with no suffix to the gate. The live proof linked three
- Which command proves a change of
k8s/devops/configmap.example.yaml?:uv run devops ci --check --only k8s. It runs thekubectl kustomizerenders and theargo lint --offlineof the Argo objects; a test never reads a manifest or a config file. [sources: docs/TESTING.md:68, docs/CLUSTER.md:311, k8s/README.md:78] - Which repositories get the switch to
on?: Public repositories only.web_search_ofturns the alternatives check off for a private repository, soplan_alternativesreturns before the reference step opens, and the run opens the step withprivate=False. ADR 0023 keeps the shared tier for public repositories only, and a private repository gets the two GitHub providers only. (best practice) [sources: src/devops_cli/roadmap/refine/refine.py:1222, src/devops_cli/roadmap/alternatives.py:1710, src/devops_cli/roadmap/alternatives.py:1741, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:114, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:118, docs/roadmap/alternatives.md:88]- Chosen: Public repositories only. A private repository has no shared cache, the check is off there, and the step has no provider beyond the two GitHub searches.
- Rejected: Every repository. A private repository keeps its content out of the shared cache, and the alternatives check returns before the step opens.
- What bar must
brain.reference_relevancemeet before it moves fromshadowtoon?: At least 50 labelled cases, as the issue body requires, with ADR 0023's floor: at least 30 links incontinuewith no bad label, andreviewholding at least 20 % of the links that the fallback makes and a person labels bad. The cuts file holds 0 cases, so the settings refuseonuntil a fit, and a person turns the point on only after it. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:99, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:109, docs/roadmap/alternatives.md:103, src/devops_cli/roadmap/references/reference_relevance_cuts.json]- Chosen: At least 50 labelled cases with ADR 0023's floor. The issue's owner decision sets 50 labelled cases, above ADR 0023's older floor of 30 links in
continue; both hold. - Rejected: Only ADR 0023's 30-link floor. It is lower than the 50 labelled cases that the issue requires.
- Rejected: Turn on with no bar. ADR 0023 and the issue both require a fit and a person's decision before a point moves to
on.
- Chosen: At least 50 labelled cases with ADR 0023's floor. The issue's owner decision sets 50 labelled cases, above ADR 0023's older floor of 30 links in
Fit
Fits in one pull request.
Suspected block
The E5 (#5512) lift result, which waits on the hold #6521, and the 7-day metric window after the switch to on.
Activity
devops-cli-service commentedon Nov 21, 2026
Both concern the references step in the roadmap pipeline, but #4672 builds the step and the candidate flips it from plan to on after E5 shows a lift.devops-cli-service commentedon Nov 22, 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.
dan-petty commentedon Nov 26, 2026
First real results of the reference step in mode
plan(release 0.223.0, 2026-11-26), as input for the switch toon:NEWSof Yubico/python-fido2, hpjansson/chafa and gphoto/gphoto2. A file with no suffix passes the code gate, which tests the suffix against a prose list.NEWS,README,CHANGELOG,LICENSEandAUTHORSare prose.renovate.jsonof angular/angular and a release script of TryGhost/Ghost, which fit the item better.The full proof is in the comment on #4672. Before the switch, the gate needs the prose names with no suffix, and the fit of
brain.reference_relevanceneeds labelled cases of this kind.dan-petty commentedon Nov 27, 2026
Design check, 2026-11-26
Body, 2 corrections: #4672 is merged (#7306) and released (0.223.0). Its comment of 2026-11-26 gives the live proof of mode
plan, with 7 result lines. So criterion 1 is delivered, and only the switch waits.Refine block
roadmap.alternatives.referencesdoes not exist (docs/CONFIGURATION.md:317). It exists:k8s/devops/configmap.example.yaml:306holdsreferences: plan.plan.Dependencies: #4672 is closed. #5512 (E5) is open, and its body names the hold #6521. So this item waits for the hold.
Not verified: that the 7 items of the proof were in the stage window.
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.