Repository navigation
Description
When the roadmap implement job runs an implementation step for an item whose type is docs (such as issue #2670), the job created an implementation commit with the title:
Correct the Valkey paragraph in SECURITY.md (#2670)
which lacks a Conventional Commit prefix like docs(security): ....
Although the archive commit added docs(openspec): archive the change (#2670) and the pull request title is docs(security): SECURITY.md says that the Valkey commands are not MCP tools, the implementation step commit message itself did not follow the Conventional Commit format required by CONTRIBUTING.md.
The implementation job should ensure that commit messages generated for intermediate implementation steps follow the Conventional Commit format matching the issue type and scope (e.g. docs(security): ...), or derive the title from the task group title with the appropriate semantic prefix.
Proposed design
Problem statement
The implement job creates intermediate step commits from task group titles without a Conventional Commit prefix. This violates CONTRIBUTING.md and makes the history inconsistent with the pull request title and archive commit. The job must format each step commit with the item's type and scope and keep one issue reference.
Acceptance criteria
Requirement: Step commit type and scope
The implement job SHALL prefix each intermediate implementation step commit title with the Conventional Commit type and scope of the item title.
Scenario: Docs item step commit
- WHEN The item title starts
docs(security):and the step title isCorrect the Valkey paragraph in SECURITY.mdfor issue 2670. - THEN The commit title is
docs(security): Correct the Valkey paragraph in SECURITY.md (#2670).
Requirement: Issue reference
The implement job MUST add the issue reference (#) to each intermediate step commit title exactly once.
Scenario: Step title already holds the issue reference
- WHEN The step title ends with
(#2670)and the issue number is 2670. - THEN The commit title has one
(#2670)suffix.
Requirement: Archive commit format
The implement job SHALL keep the archive commit title in the form docs(openspec): archive the change (#).
Scenario: Archive commit
- WHEN The implement job archives the change for issue 2670.
- THEN The archive commit title is
docs(openspec): archive the change (#2670).
Requirement: Non-conventional item title
The implement job MUST fall back to chore when the item title has no valid Conventional Commit type.
Scenario: Item title without prefix
- WHEN The item title is
Correct the Valkey paragraphand the step title isUpdate SECURITY.mdfor issue 2670. - THEN The commit title is
chore: Update SECURITY.md (#2670).
Requirement: Offline helper test
The implementation MUST include an offline unit test for the step commit title helper.
Scenario: Commit title helper test
- WHEN The test calls the helper with a docs item title and a step title.
- THEN The test asserts the exact Conventional Commit title.
Existing Tool Considered
No alternatives check has run. The closest open maintained tool is commitizen. Commitizen validates Conventional Commit messages but does not derive an intermediate step title from an issue title. The repository has a PR form check that parses Conventional Commit titles, so the change reuses that parser and adds a small helper. The written cost is about 1,500 tokens to build, 500 tokens to review, and 30 minutes of elapsed time. One unit test keeps the helper fixed.
Key questions
- What does the implement job do for each task group?: The implement job runs one step for each task group that has an unticked task. It creates the intermediate implementation commit at that step. [sources: CONTEXT.md]
- Which Conventional Commit type and scope should an intermediate step commit use?: Use the type and scope from the item title. Then add the step title and the issue reference
(#N). (best practice) [sources: CONTRIBUTING.md, CONTEXT.md]- Chosen: Item title type and scope. It matches the item and the required Conventional Commit format.
- Rejected: Task group title with a fixed
docsprefix. Task groups have no type or scope, and a fixed prefix mislabels non-docs items. - Rejected: Existing
docs(openspec)prefix. That prefix belongs to the archive commit, not to implementation steps.
- How should the job handle an item title that has no Conventional Commit prefix?: Use
chore: (#N)and log a warning. Do not stop the step for this formatting fallback. (best practice) [sources: CONTRIBUTING.md]- Chosen: Fall back to
chore. It keeps every commit valid and lets the step finish. - Rejected: Fail the step. A missing title prefix stops delivery for a formatting problem.
- Rejected: Use the item title without a prefix. It repeats the defect that this issue fixes.
- Chosen: Fall back to
- Should the archive commit keep its current title form?: Yes. Keep
docs(openspec): archive the change (#N)for the archive commit. (best practice) [sources: CONTEXT.md]- Chosen: Keep
docs(openspec). The archive is a docs change and the form already works. - Rejected: Use the item type and scope. The archive is not the item's code change, so the item scope mislabels it.
- Chosen: Keep
- What test proves the commit title formatting?: A unit test of the helper with exact input and output strings proves the formatting offline. (best practice) [sources: docs/TESTING.md]
- Chosen: Unit test of the helper. It checks the exact title and runs offline.
- Rejected: End-to-end implement job test. It needs more setup and is slower for a pure formatting rule.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 3, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It enforces a documented standard but does not break a build or block a release.It keeps every generated commit conformant to CONTRIBUTING.md, which aids history readability and tooling.It is a formatting change in the commit-message generation path of one job step.Both concern commit message format, but #169 updates documentation and agent instructions while the candidate fixes the job code that generates the commit title.devops-cli-service commentedon Nov 3, 2026
Status set to Ready at 987280e (see proposed design in issue body).
devops-cli-service commentedon Nov 3, 2026
Staged: branch
feat/3351-the-implement-job-formats-step-commits, draft pull request #3352. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
The plan run made 2 model request(s), and used 141543 input tokens and 5673 output tokens. The model made no tool call.
docs(openspec): plan #3351 name the step inputs and the tests to update
docs(openspec): plan #3351 format step commits with the item type (#3352
devops-cli-service commentedon Nov 4, 2026
Released in v0.55.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.55.0
devops-cli-service commentedon Nov 4, 2026
Live since 2026-11-04 05:32 UTC
docs(openspec): plan #3414 Refuse a behavior group that omits its test (