Repository navigation
Description
Problem or Motivation
A design study compares the options for a change and writes a design, and the owner decides from it. The files of each study stay only under .data/, which git ignores (.gitignore:73). The issues that a study informs hold no mark of it. So no program can count the studies, join a study to the items that it informed, or show it in the project review (#5219).
The label scope/design marks the design spec, its tokens and their build (#5186, #4906), not studies, so it cannot do this.
Proposed Solution & Architectural Design
A minimal record that a program reads, with no new store:
- One HTML-comment marker line in the body of each issue that a study informed, in the form of the
devops-signalline of feat(roadmap): report job grades and fix effects in the project review #5219:<!-- devops-study: {"v":1,"date":"2026-11-12","topic":"<short topic>","decision":"<the chosen option>"} -->. GitHub does not show the line. The listing snapshot (feat(roadmap): read project review facts through a catalog #4692) holds the bodies, so the review reads the lines with 0 more GitHub requests. - The parser and the formatter use the line module of feat(roadmap): find a success or efficiency change after a release #5175 (
roadmap/signal_link.py), so one copy of the line format exists. - The agent that files or changes an issue from a study writes the line. The filing skill names the rule.
- The study files stay local. The line holds no path under
.data/and no text of the study.
Alternatives considered and rejected: a label (it holds no date, topic or decision); study files under docs/ (each file needs a review for private data, and the files go out of date).
Cost to build (estimate): about 0.3 M tokens and 1 hour elapsed. Keep: one parse for each body in the snapshot, a few milliseconds.
Target Subsystem
src/devops_cli/roadmap/ (the line module of #5175), the filing skill under .agents/skills/, docs/SELF_IMPROVEMENT.md.
Existing Tool Considered
markdown-it (the project parses issue bodies with it now) and the JSON schema of the signal line of #5175. No new tool.
Acceptance Criteria
- A test reads a body with one study line and gives its fields. A line with an unknown field, a field that is not a string, or a bad date is refused with the line number.
- A function gives the study lines of the issues in a recorded listing snapshot with 0 GitHub requests.
-
docs/SELF_IMPROVEMENT.mdnames the study line and who writes it.
Dependencies
Related
- feat(roadmap): report job grades and fix effects in the project review #5219 (the review section that found this problem), feat(roadmap): read project review facts through a catalog #4692 (the listing snapshot), feat(design): apply the design tokens to hosted service UIs #5186 and fix(design): check the design test bound and source hex values #4906 (the
scope/designlabel).
Source: #5219
Alternatives check of 2026-11-29: in-use.
The repository already uses this tool.
Tool: markdown-it-py (https://pypi.org/project/markdown-it-py), MIT License, last activity 2026-11-10, maintained.
Reason: Searches found no tool that records or validates study markers in issue bodies; markdown-it-py, already the project's body parser, tokenizes the hidden comment line, but the closed schema, formatter and snapshot reader are project code.
Covers:
- Parses issue bodies into markdown tokens
- Exposes HTML comment lines as html blocks
- Already used by the project to read bodies
Lacks:
- No closed schema check of the four fields
- No parse error that names the line number
- No formatter for the marker line
- No reader of the recorded listing snapshot
Proposed design
Problem statement
Add one hidden devops-study line to each issue body that a design study informed. Read the line from the recorded listing snapshot with 0 GitHub requests. Wait for #5175 to provide the shared line module. Today the study files stay under .data/ and the issues hold no mark. No program can count studies or join a study to its issues for the project review (#5219).
Acceptance criteria
Requirement: Study line parser
The roadmap SHALL read a devops-study line from an issue body and return its version, date, topic and decision.
Scenario: Valid study line gives four fields
- WHEN A test parses a body that holds one valid
devops-studyline on line 3. - THEN The parse returns version 1, the date, the topic and the decision, and
uv run pytest tests/roadmap/test_signal_link.py::test_parse_study_linepasses.
Requirement: Invalid study line refused
The parser MUST refuse a study line with an unknown field, a wrong type or a bad date, and MUST name the line number.
Scenario: Each invalid study line raises with its line number
- WHEN A test parses three bodies: one with the unknown field
owner, one with an integertopic, and one with the date12-11-2026, each on line 7. - THEN Each parse raises the study-line error with line number 7, and
uv run pytest tests/roadmap/test_signal_link.py::test_refuse_study_linepasses.
Requirement: Study lines from snapshot offline
A function SHALL return the study line of each issue in a recorded listing snapshot and MUST send no GitHub request.
Scenario: Recorded snapshot gives study lines
- WHEN A test calls
study_lineswith a recordedListingSnapshotand a GitHub client that raises on each request. - THEN The function returns each study line, the client sends no request, and
uv run pytest tests/roadmap/project_review/test_review_readers.py::test_study_lines_from_snapshotpasses.
Requirement: One copy of line format
The formatter and parser MUST use the #5175 line module and MUST NOT hold a second copy of the line format.
Scenario: Formatter and parser round-trip a study line
- WHEN A test formats a study line with
src/devops_cli/roadmap/signal_link.pyand parses the result with the study-line parser. - THEN The four fields are the same after the round trip, and
uv run pytest tests/roadmap/test_signal_link.py::test_study_line_round_trippasses.
Requirement: Document names the line and writer
docs/SELF_IMPROVEMENT.md MUST name the devops-study line, its four fields and the agent that writes it.
Scenario: Self-improvement document states the rule
- WHEN A test reads
docs/SELF_IMPROVEMENT.mdand searches it for thedevops-studymarker, the four field names and the writer rule. - THEN The test finds each item, and
uv run pytest tests/invariants/test_self_improvement_study_line.py::test_self_improvement_names_study_linepasses.
Requirement: Filing skill names the study line rule
The devops-roadmap filing skill MUST name the devops-study line and the rule that the agent writes it.
Scenario: Every committed copy of the filing skill states the rule
- WHEN A test reads the
devops-roadmapskill in.claude/skills,.agents/skillsand.kilocode/skillsand searches each for the marker and the writer rule. - THEN Each copy holds the marker and the rule, and
uv run pytest tests/invariants/test_skills.py::test_the_roadmap_skill_names_the_study_linepasses.
Existing Tool Considered
The alternatives check in the issue body records markdown-it-py (https://pypi.org/project/markdown-it-py) with verdict in-use. The project already uses it to parse issue bodies. The block in the issue body lists what the tool covers and lacks. The change adds the closed four-field schema and the snapshot reader over ListingSnapshot. It adds the shared formatter in the #5175 line module. These parts cover what the tool lacks.
Key questions
- Where does the record of one design study live?: The record is one hidden
devops-studyHTML comment line in the body of each issue that the study informed. The line holdsv,date,topicanddecision, and no path under.data/or study text. GitHub shows none of the line. The listing snapshot holds each issue body, so the review reads the line with no GitHub request. A label holds no date, topic or decision. A file under.data/is outside git. (best practice) [sources: src/devops_cli/roadmap/stores/store.py:826, src/devops_cli/roadmap/owner_question.py:29, src/devops_cli/roadmap/stores/listing_snapshot.py:85, docs/adr/0016-labels-hold-the-roadmap-items-fields.md:19]- Chosen: hidden comment line in the issue body. The body already holds a hidden job record, and the snapshot holds the bodies.
- Rejected: label. A label holds no date, topic or decision, and
scope/designhas another meaning. - Rejected: study file under
docs/. Each file needs a review for private data, and the files go out of date. - Rejected: study file under
.data/with an index. git ignores.data/, so a snapshot reader cannot join a study to its issues.
- Which module holds the study line format?: The line module of feat(roadmap): find a success or efficiency change after a release #5175 at
src/devops_cli/roadmap/signal_link.pyholds the study line format. The checkout does not hold that file at the refined commit. This item waits on feat(roadmap): find a success or efficiency change after a release #5175 and adds no second copy of the line format. The current hidden-line format is insrc/devops_cli/roadmap/stores/store.py:826; feat(roadmap): find a success or efficiency change after a release #5175 extracts it. (best practice) [sources: src/devops_cli/roadmap/stores/store.py:826]- Chosen: line module of feat(roadmap): find a success or efficiency change after a release #5175. One copy of the line format exists, and the item waits on feat(roadmap): find a success or efficiency change after a release #5175.
- Rejected: new module
roadmap/study_link.py. It gives a second copy of the line format. - Rejected: job-record module in
stores/store.py. It mixes the study line with the job record and leaves a second parser.
- How strict is the schema of the study line?: The schema is closed and holds exactly four fields.
vis the integer 1.date,topicanddecisionare strings.dateis a full ISO 8601 date inYYYY-MM-DDform. The parser refuses an unknown field and a field of the wrong type. It refuses a date that is notYYYY-MM-DD. The error names the line number. (best practice) [sources: ARCHITECTURE.md:181, src/devops_cli/roadmap/stores/store.py:900, src/devops_cli/commands/gh.py:355]- Chosen: closed schema with four typed fields. A typo fails at parse time, and each field has one meaning for the review.
- Rejected: open schema that ignores unknown fields. A misspelled field passes as no field, so the review reads a wrong record.
- Rejected: schema that coerces a number to a string. A wrong type reads as a valid field, and the record hides the mistake.
- Where does the snapshot reader live and how does it avoid GitHub requests?: The reader is
study_lines(snapshot: ListingSnapshot)insrc/devops_cli/roadmap/project_review/readers.py. It readsIssueRecord.bodyfor each issue in the recorded snapshot and calls the study-line parser. It builds no GitHub client. The snapshot holds the parsed record of every issue, and each lane keeps its own snapshot. (best practice) [sources: src/devops_cli/roadmap/stores/listing_snapshot.py:85, src/devops_cli/roadmap/stores/store.py:666, src/devops_cli/roadmap/project_review/readers.py]- Chosen: read the bodies in the listing snapshot. The snapshot holds the bodies, so the read costs 0 GitHub requests.
- Rejected: call the GitHub API for each issue. It costs one request for each issue and hits the rate limit.
- Rejected: keep a separate study index in Valkey. It adds a second store and a second copy of the record.
- Who writes the study line?: The agent that files or changes the issue from a study writes the line in the same edit. The
devops-roadmapfiling skill names the rule in its committed copies.docs/SELF_IMPROVEMENT.mdstates the rule for a person who writes a body by hand. (best practice) [sources: .agents/skills/devops-roadmap/SKILL.md:12, docs/ROADMAP_WORKFLOW.md:23, CONTRIBUTING.md:83, tests/invariants/test_skills.py:11, docs/SELF_IMPROVEMENT.md]- Chosen: the agent that files or changes the issue. It holds the topic and the decision when it writes the body.
- Rejected: a roadmap job that adds the line later. The job cannot know the topic or the decision of the study.
- Rejected: a person writes each line by hand. A person forgets it, and the review then misses the study.
- Does GitHub show the hidden study line?: No. The line is an HTML comment. The project already keeps hidden comments in issue bodies: the job record
devops-roadmap-recordand the owner-question frame. The line stays in the body for a program to read. [sources: src/devops_cli/roadmap/owner_question.py:29, src/devops_cli/roadmap/stores/store.py:826]
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 12, 2026
Both add structured metadata to the roadmap system, but #3224 records plan dependencies while this records design study markers.dan-petty commentedon Nov 15, 2026
The item waits on #5175, which is open. The design says the parser and the formatter of the study line use
src/devops_cli/roadmap/signal_link.pyof #5175, and that file is not in the repository.Once #5175 merges, this item adds the study line to
signal_link.py, the parse test with the four refusals, the snapshot reader function and the rule indocs/SELF_IMPROVEMENT.md.devops-cli-service commentedon Nov 17, 2026
Refine cannot set this item to Ready at 90a3d2a while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 19, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 26, 2026
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.