Skip to content

feat(roadmap): the implement job formats step commits with conventional prefixes #3351

Closed

Description

@dan-petty

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 is Correct the Valkey paragraph in SECURITY.md for 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 paragraph and the step title is Update SECURITY.md for 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 docs prefix. 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.
  • 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.
  • 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

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It enforces a documented standard but does not break a build or block a release.
    • Value: Medium. It keeps every generated commit conformant to CONTRIBUTING.md, which aids history readability and tooling.
    • Effort: Low. It is a formatting change in the commit-message generation path of one job step.
    • Related: docs(agent): require concise commit messages stating direct effect of change #169, which asks for a different change. Both concern commit message format, but #169 updates documentation and agent instructions while the candidate fixes the job code that generates the commit title.
  3. added
    priority/p2-medium
    on Nov 3, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 3, 2026
  5. devops-cli-service commented on Nov 3, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 987280e (see proposed design in issue body).

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

    @devops-cli-service
    Contributor

    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:

    1. Build the step commit title from the item title: 16158 tokens
    2. Commit each task group with the formatted title: 8595 tokens

    The plan run made 2 model request(s), and used 141543 input tokens and 5673 output tokens. The model made no tool call.

  7. added 2 commits that reference this issue on Nov 4, 2026
  8. added
    status/planned
    and removed
    status/ready
    on Nov 4, 2026
  9. removed
    status/planned
    on Nov 4, 2026
  10. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-04 05:32 UTC

  11. added a commit that references this issue on Nov 10, 2026
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/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions