Skip to content

test(roadmap): add the 113-question census fixture for the resolve chain #7281

Backlog

Description

@devops-cli-service

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.py and loads tests/fixtures/roadmap/resolve_census.json.
  • THEN The fixture holds 113 entries, and each entry holds a question and a label from 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.py and passes each fixture entry whose label is FORM to classify_question.
  • THEN The chain returns FORM for 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.py and passes each fixture entry whose label is P_STEP to classify_question.
  • THEN The chain returns P_STEP for 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.py and passes each fixture entry whose label is OWNER to classify_question.
  • THEN The chain returns OWNER for 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/ holds alternatives_census.json as 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 pins pytest==9.2.0 and 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 existing tests/roadmap/test_roadmap_resolve.py, because that file tests src/devops_cli/roadmap/resolve.py and 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.py and a JSON fixture under tests/fixtures/roadmap/. The test file mirrors the source module, and the fixture follows the recorded census under tests/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.
  • What does ANSWERABLE mean for feat(research): watch upstream releases of the pins #3907 and feat(k8s): Add scheduled off-node backup and restore for Gitea #2144?: ANSWERABLE is the fifth class of the resolve chain. classify_question returns it when no earlier rule matches. tests/roadmap/test_roadmap_resolve.py:358 already 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 as ANSWERABLE; 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.py defines the five classes and classify_question, and tests/roadmap/test_roadmap_resolve.py tests them. The decision point resolve.question_class is not registered: POINT_CUTS holds four points and no resolve.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, FORM and OWNER. 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 QuestionClass values of the resolve chain. They are the chain's output, not the person's labels; a K_TOOL question 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

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

    @devops-cli-service
    ContributorAuthor
  3. changed the title [-]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[/+] on Nov 26, 2026
  4. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 62 characters, and the limit is 60. The type and the scope stay.

    • Before: test(roadmap): add the 113-question census fixture for the resolve rule chain
    • Source of the summary: the background model
  5. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    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.

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

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions