Repository navigation
Description
Split from #4470.
The scenario for criterion 2 in #4445 does not match markdown-it-py 4.2.0. It cannot tell the inline rule on from off. The correct statement is that the inline token has children == []. #4445 is closed, and this test item cannot edit another issue. A person must settle the record. This part is deferred so the test item can reach Ready. Acceptance criteria: The scenario for criterion 2 in #4445 states that the inline token has children == []. A reader can tell the parser with the inline rule on from the parser with it off.
Proposed design
Problem statement
Criterion 2 of #4445 cannot tell the inline rule on from off. markdown-it-py 4.2.0 gives the same inline token in both cases: with the rule off its children is [], and with it on it has a text child. The correct text is that the inline token has children == [] when the rule is off, and the rule-on case gives it a text child. #4445 is closed, and its body still holds the wrong scenario. An agent corrects the body with devops gh issue edit; the correction is already recorded in the archived proposal of #4470.
Acceptance criteria
Requirement: Corrected inline token scenario
The body of #4445 MUST state, for criterion 2, that the inline token has children == [] when the core rule inline is off.
Scenario: Read the corrected criterion in the closed issue
- WHEN An agent runs
uv run devops gh issue view 4445 --repo dan-petty/devops-cliafter the body edit. - THEN The output shows criterion 2 with the sentence that the
inlinetoken haschildren == [].
Requirement: Rule-on contrast in the scenario
The body of #4445 MUST state, for criterion 2, that the inline token has a text child when the core rule inline is on, so a reader can tell the two parsers apart.
Scenario: Read the rule-on contrast in the closed issue
- WHEN An agent runs
uv run devops gh issue view 4445 --repo dan-petty/devops-cliafter the body edit. - THEN The output shows criterion 2 with the sentence that the
inlinetoken has atextchild when the rule is on.
Existing Tool Considered
No alternatives check has run. The need is to edit the body of a closed GitHub issue. devops gh issue edit (docs/commands/gh.md:603) covers it: it takes --body (docs/commands/gh.md:622) and PATCHes the issue through gh api (src/devops_cli/commands/gh.py:1368), and an agent runs it under AGENTS.md:21. devops gh api --method PATCH repos/dan-petty/devops-cli/issues/4445 --input - also covers a body from stdin. The gh CLI and the GitHub REST API are the underlying tools. The tool lacks nothing for the edit, so no code is built. The edit is one command, and the item opens no pull request.
Key questions
- Which text corrects the scenario of criterion 2 in perf(roadmap): parse only the bodies that hold a job record #4445?: Criterion 2 must state that, with the
inlinerule off, theinlinetoken haschildren == [], and with the rule on it has atextchild. markdown-it-py 4.2.0 gives the sameinlinetoken in both cases, so only the children tell the two parsers apart. (best practice) [sources: openspec/changes/archive/2026-11-11-4470-count-the-record-parses-of-split/proposal.md:25, openspec/changes/archive/2026-11-11-4470-count-the-record-parses-of-split/design.md:7]- Chosen:
inlinetoken haschildren == []when the rule is off. The archived proposal of test(roadmap): count the record parses of split_record #4470 records that markdown-it-py 4.2.0 gives theinlinetoken withchildren[]when the rule is off and atextchild when it is on, so the empty children list is the fact that tells the parsers apart. - Rejected:
inlinetoken is absent when the rule is off. The archived proposal of test(roadmap): count the record parses of split_record #4470 records theinlinetoken in both parses, so its presence cannot tell the rule on from off.
- Chosen:
- Who edits the body of the closed issue perf(roadmap): parse only the bodies that hold a job record #4445?: An agent runs
devops gh issue edit 4445 --body "<corrected body>"(ordevops gh api --method PATCH repos/dan-petty/devops-cli/issues/4445 --input -) with the corrected body. The command PATCHes the issue body and needs no open state. Editing an issue body is not one of the acts that AGENTS.md leaves to a person; agents run every other project command. No person and no pull request are needed. (best practice) [sources: AGENTS.md:21, docs/commands/gh.md:603, docs/commands/gh.md:622, src/devops_cli/commands/gh.py:1368, src/devops_cli/roadmap/stores/github_store.py:586, openspec/changes/archive/2026-10-30-2715-title-labels/design.md:17]- Chosen: An agent runs
devops gh issue edit. AGENTS.md:21 gives agents every project command except merges, verdicts, milestones, secrets, settings and hardware; docs/commands/gh.md:603 documents the body edit; src/devops_cli/commands/gh.py:1368 PATCHes the issue with no state check, so the closed state does not block it; and the design of fix(roadmap): intake derives type and scope labels from the issue title #2715 says a person or an agent runs a one-time data edit withdevops gh issues edit. - Rejected: A person edits the body. Editing an issue body is not one of the person-only acts in AGENTS.md:21, and the project's own design leaves a one-time data edit to a person or an agent.
- Rejected: An agent posts a comment only. A comment does not change the scenario text in the body, so perf(roadmap): parse only the bodies that hold a job record #4445 would still hold the wrong scenario and docs(roadmap): correct the inline scenario text in #4445 #4502's acceptance criterion would fail.
- Chosen: An agent runs
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
docsprefix of the title gives the type.(roadmap)scope of the title gives the scope.The change corrects one scenario text in a closed issue and it is deferred.A clear scenario text helps a reader tell the inline rule on from off.One person changes one scenario statement.The candidate is split from #4470 and both concern the #4445 criteria, but #4470 adds tests and the candidate corrects text.dan-petty commentedon Nov 15, 2026
Returned: the item asks for an edit of the body of #4445, which is closed, and #4445 says that a person settles that record. This agent can post a comment on #4445 but cannot rewrite its scenario. The correction to apply: criterion 2 of #4445 states that the
inlinetoken haschildren == [], because markdown-it-py 4.2.0 gives the same token with theinlinerule on and off.devops-cli-service commentedon Nov 19, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.