Skip to content

feat(roadmap): record design studies so the review can read them #5222

Open

Description

@dan-petty

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:

  1. One HTML-comment marker line in the body of each issue that a study informed, in the form of the devops-signal line 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.
  2. 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.
  3. The agent that files or changes an issue from a study writes the line. The filing skill names the rule.
  4. 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.md names the study line and who writes it.

Dependencies

Related

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-study line 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_line passes.

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 integer topic, and one with the date 12-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_line passes.

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_lines with a recorded ListingSnapshot and 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_snapshot passes.

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.py and 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_trip passes.

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.md and searches it for the devops-study marker, 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_line passes.

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-roadmap skill in .claude/skills, .agents/skills and .kilocode/skills and 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_line passes.

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-study HTML comment line in the body of each issue that the study informed. The line holds v, date, topic and decision, 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/design has 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.py holds 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 in src/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]
  • How strict is the schema of the study line?: The schema is closed and holds exactly four fields. v is the integer 1. date, topic and decision are strings. date is a full ISO 8601 date in YYYY-MM-DD form. The parser refuses an unknown field and a field of the wrong type. It refuses a date that is not YYYY-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) in src/devops_cli/roadmap/project_review/readers.py. It reads IssueRecord.body for 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-roadmap filing skill names the rule in its committed copies. docs/SELF_IMPROVEMENT.md states 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-record and 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.

Dependencies

#5175

Activity

  1. added
    source/agent
    type/feature
    on Nov 12, 2026
  2. added
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. dan-petty commented on Nov 15, 2026

    @dan-petty
    OwnerAuthor

    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.py of #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 in docs/SELF_IMPROVEMENT.md.

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

    @devops-cli-service
    Contributor

    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.

  7. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    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:

    • markdown-it-py token map line numbers html block token, results: 5
    • library structured metadata marker in GitHub issue body hidden comment, results: 5
    • python parse JSON metadata from HTML comment in markdown, report line number of invalid field, results: 5
    • remark mdast html comment node position line number parse metadata, results: 5
    • pydantic extra forbid validate JSON model line number error, results: 5
    • "markdown-it-py" html_block token map line number pypi, results: 5
    • markdown-it-py PyPI Python markdown parser, results: 5
    • github issue forms body parser JSON stefanbuck github-issue-parser, results: 5
    • python-frontmatter github library parse metadata block from document, results: 5
    • executablebooks markdown-it-py documentation, results: 5

    Sources:

  8. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions