Repository navigation
Description
Split from #5500.
ProblemThe issue asks for the progress extensions that an attempt used. The writer already uses extensions as an integer count for IMPLEMENT. A list or a second extensions key collides with the count.### Why deferredThe result line holds one name for each field. The existing extensions key is a count. The change needs a format for the names. It also needs a rule that keeps the count.### Acceptance criteria- The line states the progress extensions that an attempt used, or states a count and a separate list.- The existing extensions count for IMPLEMENT keeps its value and its key.- A test proves the format offline.- The change updates the roadmap-service-logs spec.
Proposed design
Problem statement
The result line of a roadmap attempt holds only the integer count extensions. It does not say which progress extensions the attempt used. A reader cannot tell which extensions ran. The change records the names next to the count. The count keeps its key and its value.
Acceptance criteria
Requirement: Names of the used extensions
The roadmap result line SHALL hold the names of the progress extensions that an attempt used, in the key extension_names.
Scenario: An attempt uses two extensions
- WHEN A test builds the result line of an
IMPLEMENTattempt that used the extensionslintandtypes - THEN The line holds
extension_namesas["lint", "types"]andextensionsas the integer2.
Requirement: The count keeps its key and its value
The extensions key of the result line of IMPLEMENT MUST stay an integer count of the extensions used.
Scenario: An attempt uses no extension
- WHEN A test builds the result line of an
IMPLEMENTattempt that used no extension - THEN
extensionsis the integer0andextension_namesis the empty list.
Requirement: Old result lines stay readable
The reader of the result line SHALL treat a missing extension_names key as an empty list.
Scenario: A line from an older run
- WHEN A test parses a result line that holds
extensionsand noextension_nameskey - THEN The parsed names are the empty list and the parse raises no error.
Requirement: The roadmap-service-logs spec states the names field
The change MUST add the extension_names field and the unchanged extensions count to the roadmap-service-logs spec.
Scenario: The change validates
- WHEN
openspec validate --strictruns on the change - THEN The command exits 0 and the spec delta of
roadmap-service-logsholds the requirement forextension_names.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers a field of the project's own roadmap result line, so the project builds the change itself: one new key in its result-line model, one reader rule and one spec delta. Written cost: about 15k tokens to build, keep and fix the change, and about 2 hours of elapsed time.
Key questions
- Which key holds the names of the progress extensions that an attempt used, and how does the existing
extensionscount stay?: Add the keyextension_nameswith a list of strings, and keepextensionsas the integer count. The implement report takes both values from the same collection. (best practice) [sources: src/devops_cli/roadmap/implement/implement_report.py:367, src/devops_cli/roadmap/implement/implement_report.py:469, src/devops_cli/roadmap/job_result.py]- Chosen: New key
extension_nameswith a list of strings. The result line keeps one name for each field, and the count keeps its key and its value. - Rejected: Turn
extensionsinto an object with a count and a list. It breaks theextensionscount key that the body requires to stay, and each reader of the count. - Rejected: Reuse
extensionsfor the list and drop the count. The body requires the count to keep its key and its value. - Rejected: Add a second
extensionskey. JSON holds one value for one name, so the second key collides with the count.
- Chosen: New key
- Where does the result line get the
extensionscount today?: The implement report setsextensionsatimplement_report.py:367andimplement_report.py:469. The roadmap modules read the result line, such asjob_result.pyandjob_grade_report.py. [sources: src/devops_cli/roadmap/implement/implement_report.py:367, src/devops_cli/roadmap/implement/implement_report.py:469, src/devops_cli/roadmap/job_result.py, src/devops_cli/roadmap/job_grade_report.py] - How does a reader treat a result line that an older run wrote with no names key?: The reader treats a missing
extension_nameskey as an empty list. Old lines in Loki stay readable, and the format needs no migration. (best practice) [sources: src/devops_cli/roadmap/job_result.py]- Chosen: A missing key gives an empty list. Old result lines stay valid, and the change needs no migration of stored lines.
- Rejected: Require the key on each line. Old lines have no key, so the reader would fail on each one of them.
- Does the job grade change with the new names field?: No. The job grade report keeps computing each grade from the
extensionscount, so no grade changes. (best practice) [sources: src/devops_cli/roadmap/job_grade_report.py, src/devops_cli/roadmap/job_result.py]- Chosen: Keep the grade on the count. The count keeps its value, so each grade stays the same.
- Rejected: Grade on the names list. It changes no grade and adds no fact that the count lacks.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 25, 2026
Both add fields to the roadmap result line, but the candidate adds progress extension names and #5500 adds attempt, class, pipeline and unit.devops-cli-service commentedon Nov 25, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.