Skip to content

feat(roadmap): enable reference links after E5 lift #6588

Open

Description

@devops-cli-service

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, LICENSE and AUTHORS as 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 Makefile as 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: on under roadmap.alternatives in k8s/devops/configmap.example.yaml and a person runs uv 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 runs uv 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.references exist at the commit being refined?: Yes. AlternativesConfig holds references as a RowMode with the default plan, the example ConfigMap holds references: plan under roadmap.alternatives, and docs/CONFIGURATION.md and docs/ENV_VARS.md list 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.references have now?: Keep plan. The example ConfigMap holds references: plan and its comment says the switch to on is this issue, and plan is the default of the setting. The live proof of mode plan is 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 sets on only 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]
  • Which file names must the reference code gate treat as prose when they have no suffix?: NEWS, README, CHANGELOG, LICENSE and AUTHORS. _is_code tests only PurePosixPath(hit.path).suffix against _PROSE_SUFFIXES, so a prose name with no suffix passes as code; the plan-mode proof linked three NEWS files as code. A suffixless file that the list does not name, such as Makefile, 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 NEWS files 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. Makefile and suffixless scripts are code hits, as the test at tests/roadmap/references/test_reference_step.py:299 asserts.
  • Which command proves a change of k8s/devops/configmap.example.yaml?: uv run devops ci --check --only k8s. It runs the kubectl kustomize renders and the argo lint --offline of 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_of turns the alternatives check off for a private repository, so plan_alternatives returns before the reference step opens, and the run opens the step with private=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_relevance meet before it moves from shadow to on?: At least 50 labelled cases, as the issue body requires, with ADR 0023's floor: at least 30 links in continue with no bad label, and review holding at least 20 % of the links that the fallback makes and a person labels bad. The cuts file holds 0 cases, so the settings refuse on until 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.

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.

Dependencies

#5512, #6521

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 21, 2026
  2. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  4. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    First real results of the reference step in mode plan (release 0.223.0, 2026-11-26), as input for the switch to on:

    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_relevance needs labelled cases of this kind.

  5. dan-petty commented on Nov 27, 2026

    @dan-petty
    Owner

    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

    • Two answers say that the setting roadmap.alternatives.references does not exist (docs/CONFIGURATION.md:317). It exists: k8s/devops/configmap.example.yaml:306 holds references: plan.
    • The first requirement asks again for the proof of mode 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.

  6. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions