Repository navigation
Description
Split from #4805.
Problem: the issue asks the rule chain to give FORM 18 of 18, P_STEP 19 of 19 and OWNER 10 of 10 on the 113 census questions, and to put #3907 and #2144 in ANSWERABLE. Why deferred: the repository records no fixture of the hand sample or of the two items, and the issue gives only counts. A test would assert no value. Acceptance criteria: A fixture records the 113 questions with their labels. A test asserts FORM 18 of 18, P_STEP 19 of 19, OWNER 10 of 10 and ANSWERABLE for #3907 and #2144.
Proposed design
Problem statement
Do not write the fixture yet: the 113 labelled census questions are recorded in no repository file, so the owner must record them first. The resolve chain exists in src/devops_cli/roadmap/resolve.py, and tests/roadmap/test_roadmap_resolve.py already proves that #3907 and #2144 classify as ANSWERABLE. The repository holds no fixture of the census, so no test proves FORM 18 of 18, P_STEP 19 of 19 and OWNER 10 of 10. The change adds the fixture and a test in the existing resolve test module.
Acceptance criteria
Requirement: Census fixture holds 113 labelled questions
The repository SHALL hold a JSON fixture of the 113 census questions, each with the label that a person gave it.
Scenario: The fixture holds 113 labelled entries
- WHEN The test runs
uv run pytest tests/roadmap/test_roadmap_resolve.pyand loadstests/fixtures/roadmap/resolve_census.json. - THEN The fixture holds 113 entries, and each entry holds a
questionand alabelfrom the eight classes of ADR 0020.
Requirement: FORM questions
The resolve chain SHALL return FORM for each of the 18 FORM questions of the census fixture.
Scenario: All 18 FORM questions
- WHEN The test runs
uv run pytest tests/roadmap/test_roadmap_resolve.pyand passes each fixture entry whose label isFORMtoclassify_question. - THEN The chain returns
FORMfor 18 of 18 entries.
Requirement: P_STEP questions
The resolve chain SHALL return P_STEP for each of the 19 P_STEP questions of the census fixture.
Scenario: All 19 P_STEP questions
- WHEN The test runs
uv run pytest tests/roadmap/test_roadmap_resolve.pyand passes each fixture entry whose label isP_STEPtoclassify_question. - THEN The chain returns
P_STEPfor 19 of 19 entries.
Requirement: OWNER questions
The resolve chain SHALL return OWNER for each of the 10 OWNER questions of the census fixture.
Scenario: All 10 OWNER questions
- WHEN The test runs
uv run pytest tests/roadmap/test_roadmap_resolve.pyand passes each fixture entry whose label isOWNERtoclassify_question. - THEN The chain returns
OWNERfor 10 of 10 entries.
Existing Tool Considered
No alternatives check has run. pytest is the open, maintained test runner that the repository pins (pyproject.toml:113) and every roadmap test module uses (tests/roadmap/test_roadmap_alternatives_project_facts.py:24). It covers the test run but lacks the 113-question census fixture and the labels that only the person who labelled the census holds. The plan adds the fixture and a test to tests/roadmap/test_roadmap_resolve.py. Cost: about 1,500 tokens and 1 hour to write the test; about 200 tokens per change to keep and fix. The fixture data waits on the person.
Key questions
- Are the 113 labelled census questions recorded in the repository?: No. ADR 0020 records the count and the fact that a person labelled them, but no repository file holds the 113 questions or their labels.
tests/fixtures/roadmap/holdsalternatives_census.jsonas its only census fixture. [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:198] - Which test runner runs the census test?:
pytest. The repository pinspytest==9.2.0and every roadmap test module uses it. (best practice) [sources: pyproject.toml:113, tests/roadmap/test_roadmap_alternatives_project_facts.py:24]- Chosen: pytest. The repository pins it and every roadmap test module imports it.
- Rejected: unittest. No roadmap test module uses it, and it would add a second test style.
- Where should the fixture and the test live?: Put the fixture in
tests/fixtures/roadmap/resolve_census.json. Add the test to the existingtests/roadmap/test_roadmap_resolve.py, because that file testssrc/devops_cli/roadmap/resolve.pyand a test file is not named after the work. (best practice) [sources: docs/TESTING.md:96, docs/TESTING.md:98, tests/support/paths.py:22, tests/roadmap/test_roadmap_resolve.py:358]- Chosen: The existing
tests/roadmap/test_roadmap_resolve.pyand a JSON fixture undertests/fixtures/roadmap/. The test file mirrors the source module, and the fixture follows the recorded census undertests/fixtures/roadmap/. - Rejected: A new
tests/roadmap/test_roadmap_resolve_census.py. It is named after the work, not the source module, and it splits the tests of one module. - Rejected: A Python constant in the test module. It mixes data with code and does not match the recorded-census fixture.
- Chosen: The existing
- What does
ANSWERABLEmean for feat(research): watch upstream releases of the pins #3907 and feat(k8s): Add scheduled off-node backup and restore for Gitea #2144?:ANSWERABLEis the fifth class of the resolve chain.classify_questionreturns it when no earlier rule matches.tests/roadmap/test_roadmap_resolve.py:358already proves that feat(research): watch upstream releases of the pins #3907 and feat(k8s): Add scheduled off-node backup and restore for Gitea #2144 classify asANSWERABLE; the chain attaches no verified source. [sources: src/devops_cli/roadmap/resolve.py:95, src/devops_cli/roadmap/resolve.py:102, src/devops_cli/roadmap/resolve.py:269, src/devops_cli/roadmap/resolve.py:527, src/devops_cli/roadmap/resolve.py:551, tests/roadmap/test_roadmap_resolve.py:371, tests/roadmap/test_roadmap_resolve.py:384, openspec/specs/roadmap-resolve/spec.md:24] - Is the resolve chain built at this commit?: Yes.
src/devops_cli/roadmap/resolve.pydefines the five classes andclassify_question, andtests/roadmap/test_roadmap_resolve.pytests them. The decision pointresolve.question_classis not registered:POINT_CUTSholds four points and noresolve.question_class. The census test needs only the chain, so it does not depend on feat(roadmap): the question resolver answers with verified sources #4808. [sources: src/devops_cli/roadmap/resolve.py:95, src/devops_cli/roadmap/resolve.py:527, tests/roadmap/test_roadmap_resolve.py:358, src/devops_cli/roadmap/decision_table.py:31, docs/roadmap/decision-points.md:55] - Which labels may the fixture hold?: The eight classes of ADR 0020:
K_TOOL,K_REC,K_DOC,K_BP,P_STEP,WAIT,FORMandOWNER. These are the labels that the person gave the census of 2026-11-11. ADR 0044 supersedes ADR 0020, but the census predates the supersession and its labels are the recorded data. The chain returns its five classes; the test compares the three labels that the bar counts. (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:193, docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:198, docs/adr/0044-the-decision-model-holds-rules-and-a-resolver-chain.md:61, src/devops_cli/roadmap/resolve.py:95]- Chosen: The eight classes of ADR 0020. ADR 0020 records these as the classes of the census labels, and the person labelled the 113 questions with them.
- Rejected: The five
QuestionClassvalues of the resolve chain. They are the chain's output, not the person's labels; aK_TOOLquestion would lose its label. - Rejected: Free-text labels. A free-text label would not let the test compare a label with the chain result.
- Should the fixture use the hand sample in feat(roadmap): the question resolver finds and classes open questions #4805 or a new sample?: Use the 113 questions of the census of 2026-11-11 that a person labelled, which feat(roadmap): the question resolver finds and classes open questions #4805 holds. A new sample would prove no count of the census. (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md:198]
- Chosen: The 113 questions of the census of 2026-11-11. ADR 0020 records this census as the labels, and its counts are the ones that the test must prove.
- Rejected: A new sample. A new sample would prove no count of the census and would change the labels of the bar.
Fit
Fits in one pull request.
Suspected block
The 113 labelled census questions of 2026-11-11 are recorded in no repository file; the owner must record them in the issue or a document before the fixture can be written.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 26, 2026
Both split from #4805 and work on the 113-question census, but the candidate adds a test fixture while #4808 adds the answer step with verified sources.[-]test(roadmap): add the 113-question census fixture for the resolve rule chain[/-][+]test(roadmap): add the 113-question census fixture for the resolve chain[/+]devops-cli-service commentedon Nov 26, 2026
The job shortened the title of this item. The summary had 62 characters, and the limit is 60. The type and the scope stay.
test(roadmap): add the 113-question census fixture for the resolve rule chaindevops-cli-service commentedon Nov 28, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 29, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence