Skip to content

fix(roadmap): the alternatives check reads the ADRs and the item - #3714

Merged
dan-petty merged 10 commits into
mainfrom
fix/3505-alternatives-check-reads-adrs
Nov 6, 2026
Merged

dan-petty merged 10 commits into
mainfrom
fix/3505-alternatives-check-reads-adrs

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The alternatives check gave covers for a tool that an ADR of the project rejected, or that the item already names. Refine then asked a person a question that the repository already answers. The check now reads the ADRs of docs/adr/ that are in force, with their status lines, and sends them to the model. The model proposes rejected with adr and in-use with in_use. The job gives either verdict only when the ADR or the item text confirms it. It drops a proposal that it cannot confirm and keeps the verdict of the reply. A name of one word counts only in a code span, a link or strong emphasis. Refine asks no question for either verdict.

Closes #3505

Change: openspec/changes/archive/2026-11-06-3505-alternatives-check-reads-adrs/
Elapsed: 3.55s

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 6, 2026
@dan-petty

dan-petty commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner Author

Test results and fail-to-pass run

Fail-to-pass. uv run devops ci fail-to-pass --base origin/main exits 0. The new tests prove the fix. 7 tests fail on the base. 2 test files error on the base: test_roadmap_adr and test_roadmap_alternatives do not collect, since devops_cli.roadmap.adr does not exist there. 490 other tests of the 7 touched files pass on the base and on the branch.

Full gate. uv run devops ci ran once on the final code. 19,237 tests pass. Every static row passes: ruff, mypy, docs, openspec, test-tree, startup-imports, swallowed-failures, constructs, security and the rest. 4 tests fail and 1 errors, and all of them are the host-state failures of #3585: test_ssh, test_config_env_overrides, test_devcontainer_install_tools_dry_run and test_tool_executor_contract. They come from this devcontainer. The coverage row did not run, because the test row failed. A narrow run measures adr.py at 100% and the changed lines of alternatives.py as covered.

After the last rebases. origin/main moved twice (#3710, #3712) after the gate run. The rebase touched constants.py, messages.py, instruments.py, k8s/README.md, docs/TELEMETRY.md and test_roadmap_limit_classes.py. The 7 narrow test files and tests/invariants pass again (1,204 tests), and so do devops ci docs and devops openspec check.

Review findings and what I did

Two independent reviews found problems in the first version. I checked each one against the code and the real ADRs of this repository.

  • A name match decided rejected alone (major). Real: ADR 0011 names release-please in a rejection that ADR 0012 reversed. Fixed. The model proposes rejected with adr. The job gives it only when an ADR in force, which the model saw, holds that number and names the tool. The entry that the model sees holds the status lines. An ADR that a later ADR supersedes in whole is left out.
  • A correct rejection failed the whole check (major). Real: dbos-transact-py does not match "DBOS Transact". Fixed. The job drops an ADR that it cannot confirm and keeps the verdict of the reply. It never refuses the reply for that. The reply has tool_name, so the display name counts.
  • in-use decided by code with a common word (major). Real: just, task, requests, build, rich and act matched in prose. Fixed. The model flags in_use, and the job confirms it. A name of one word counts only in a code span, a link or strong emphasis. The text is read with markdown-it-py, which the project already uses.
  • The cut was silent and could split an entry (minor). Real. Fixed. fit_to_budget takes whole entries, logs a warning that names each ADR left out, and the job confirms only the ADRs that the model saw.
  • A natural in-use reply stalled the item (minor). Real. Fixed with a retry: the output check that already retries a reply with no search now also retries a verdict that only the job sets. I did not narrow the type, because that changes the recorded reason of a refused not-applicable, which a spec and tests pin.
  • The branch conflicted in k8s/README.md (minor). Fixed by the rebase. The branch text of step 14 and the main text of step 15 stay.
  • Sentences over 25 words (minor). Fixed in the new text of CONTEXT.md, step 14, the alternatives page, the prompts and the OpenSpec files. Some older sentences of the same files stay as they were.
  • Two tests patched an attribute of a devops-cli object (minor). Fixed. ListingStore in tests/roadmap_faults.py counts and fails the listings. The new tests patch nothing.

Not decided here

  • The two supersession sentences ("ADR NNNN supersedes this ADR" and "supersedes ADR NNNN") are the only rule that drops an ADR. The ADRs have no structured status field. A later change can add one and delete the two patterns.
  • A name of one word that appears in plain prose only never confirms in-use or rejected. The check then keeps covers and refine asks its question, as before this change.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 01:42
@dan-petty
dan-petty force-pushed the fix/3505-alternatives-check-reads-adrs branch from 889ee22 to 69ecc80 Compare November 6, 2026 02:25
…confirm them

The first name match decided the two verdicts alone and was wrong on real ADRs and on common-word tool names. The model now proposes rejected with adr and in-use with in_use. The job gives either verdict only when the ADR or the item text confirms it, and it drops a proposal it cannot confirm. The ADR entry holds its status lines, an ADR that a later ADR supersedes is left out, and the cut takes whole entries and logs a warning. A name of one word counts only in a code span, a link or strong emphasis. A reply with a verdict that only the job sets gets one more turn.
The proposal, the design, the spec delta and the tasks of the change, the alternatives page, CONTEXT.md and step 14 of the Service section now name the model proposal and the job confirmation, the status lines, the supersession rule and the forms of a tool name. Sentences have at most 25 words.
@dan-petty
dan-petty force-pushed the fix/3505-alternatives-check-reads-adrs branch from 69ecc80 to e044f3f Compare November 6, 2026 03:37
@dan-petty
dan-petty merged commit a22260c into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3505-alternatives-check-reads-adrs branch November 6, 2026 03:43
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.64.2](v0.64.1...v0.64.2)
(2026-11-06)


### Bug Fixes

* **k8s:** keep grafana, prometheus and loki off the control-plane node
([#3723](#3723))
([34010d6](34010d6))
* **roadmap:** keep a plan with a dropped criterion in draft
([#3718](#3718))
([dacaf57](dacaf57))
* **roadmap:** the alternatives check reads the ADRs and the item
([#3714](#3714))
([a22260c](a22260c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the alternatives check reads the ADRs and the item tool

1 participant