Skip to content

refactor(roadmap): Use the scope spec for plan titles and commits #6007

Done

Description

@dan-petty

Problem

The title of each plan pull request starts with docs(openspec): plan #<n>, and the implement job writes commits with docs(openspec): .... Owner, 2026-11-16: "we should use docs(spec) instead of docs(openspec) to help with pr title length". The CI title check limits only the summary (60 characters after <type>(<scope>): ), so the change shortens the whole title by 4 characters in pull request lists, git log and release notes; it does not change the summary limit.

Expected behavior

  • The scope spec replaces the scope openspec for new titles and commits: the stage job's plan title (docs(spec): plan #<n> <summary>), the plan check message, the implement commits (split, amend, archive), the eval fixtures' plan commit, the title check scope list of .github/workflows/pr-title.yml, .github/labels.yml (scope/spec in place of scope/openspec), CONTRIBUTING.md, the docs and the specs.
  • One constant holds the plan title prefix that new titles use. The readers of merged history (the plan-kind of a pull request in pr_verdict.py, the plan detection in the implement job, the grades) also accept the old prefix docs(openspec): plan #, because merged plan pull requests keep their titles.
  • Rollout, after the release: an agent renames the GitHub label scope/openspec to scope/spec with one PATCH, so issues and pull requests keep their mark, and retitles each open plan pull request to the new prefix. Then label sync runs.
  • The CLI command group devops openspec, the openspec/ folder and the OpenSpec tool keep their names.

Related

Alternatives check of 2026-11-17: not-applicable.
Class: refactor, no search.
Tool: none found.

Proposed design

Problem statement

Plan pull request titles and implement commits use the long scope openspec. The owner asked for docs(spec) to shorten each whole title by 4 characters in lists, git log and release notes. The change updates the one prefix constant, the readers of merged plan titles, the title check, the labels file and the docs. The live label rename and retitle of open plan pull requests wait on the next release and are deferred.

Acceptance criteria

Requirement: Plan title prefix constant

The stage job MUST use one constant for the new plan title prefix docs(spec): plan #.

Scenario: New plan title

Requirement: Plan kind reads both prefixes

The plan-kind reader in pr_verdict.py MUST accept the new prefix and the legacy prefix docs(openspec): plan #.

Scenario: Both plan prefixes

  • WHEN the plan-kind reader classifies docs(spec): plan #6007 Use spec scope and docs(openspec): plan #6007 Old plan
  • THEN it returns the plan kind for both titles.

Requirement: Implement job detects both plan prefixes

The implement job MUST detect a plan pull request whose title starts with either plan prefix.

Scenario: Both plan prefixes

  • WHEN the implement job checks docs(openspec): plan #6007 Old plan and docs(spec): plan #6007 Use spec scope
  • THEN it treats both pull requests as plans.

Requirement: Grades read both plan prefixes

The grade reader MUST accept both plan title prefixes.

Scenario: Grade of a legacy plan

  • WHEN the grade reader reads a plan pull request titled docs(openspec): plan #6007 Old plan
  • THEN it includes the pull request in the plan grade.

Requirement: Implement commits use the spec scope

The implement job MUST write the split, amend and archive commits with the docs(spec): scope.

Scenario: Implement commit titles

Requirement: Eval fixture plan commit uses the new prefix

The eval fixture plan commit MUST use the docs(spec): plan # prefix.

Scenario: Eval fixture commit

Requirement: Plan check message uses the new prefix

The plan check message MUST name docs(spec): plan # as the plan title prefix.

Scenario: Plan check message

  • WHEN uv run devops roadmap plan-check reports a plan title problem
  • THEN the message contains docs(spec): plan # and does not contain docs(openspec): plan #.

Requirement: Title check workflow accepts the spec scope

The title check workflow MUST declare spec and MUST NOT declare openspec in its scope list.

Scenario: Workflow lint

  • WHEN uv run devops ci --check --only actionlint,zizmor runs
  • THEN it exits 0 for the updated .github/workflows/pr-title.yml.

Requirement: Labels file declares scope/spec

The labels file MUST declare scope/spec in place of scope/openspec.

Scenario: Label sync dry run

  • WHEN uv run devops gh label sync --dry-run runs
  • THEN it lists scope/spec and no scope/openspec.

Requirement: Plan-check workflow detects both prefixes

The plan-check job MUST run for a plan pull request with the new prefix and with the legacy prefix.

Scenario: Workflow expression lint

  • WHEN uv run devops ci --check --only actionlint,zizmor runs
  • THEN it exits 0 with no expression error in the plan-check condition.

Requirement: Documentation uses the spec scope

CONTRIBUTING.md, the docs and the specs MUST name docs(spec): plan # for new plan titles.

Scenario: Docs check

  • WHEN uv run devops ci --check --only docs runs
  • THEN it exits 0 and the changed documents name docs(spec): plan #.

Requirement: OpenSpec names stay unchanged

The devops openspec command group, the openspec/ folder and the OpenSpec tool MUST keep their names.

Scenario: OpenSpec command remains

  • WHEN uv run devops openspec --help runs
  • THEN it exits 0 and lists the command group.

Existing Tool Considered

The alternatives check of 2026-11-17 in the issue body records not-applicable for class refactor, with no search and no tool. No open, maintained tool or library covers an internal rename of a title scope. The proposal edits the project's own constant, readers, workflow, labels and docs.

Key questions

  • Which scope do new plan titles and implement commits use?: New plan titles use docs(spec): plan #<n> <summary>. New implement commits use docs(spec):. (best practice) [sources: .github/workflows/pr-title.yml, .github/labels.yml, CONTEXT.md]
    • Chosen: docs(spec): plan #. The owner asked for docs(spec), and spec is a declared scope that is shorter by four characters.
    • Rejected: docs(openspec): plan #. It is the current long scope that the issue replaces.
    • Rejected: docs: plan #. It drops the scope and does not match the scope label.
  • How do the readers keep merged plan pull requests with the old prefix?: Keep the new prefix in one constant. Keep the old prefix in the same module. A shared helper accepts both prefixes for plan-kind, implement detection and grades. (best practice) [sources: .github/workflows/pr-title.yml, tests/commands/test_roadmap_eval_grades.py, tests/core/test_roadmap_implement_planned_run.py, tests/roadmap/stage/test_roadmap_stage_plan_record.py]
    • Chosen: Shared helper with new and legacy prefixes. Merged plan pull requests keep their titles, so the readers must accept both.
    • Rejected: Replace the old prefix everywhere. Merged plan pull requests would stop being plans.
    • Rejected: Repeat the string checks in each reader. Three readers would drift.
  • Does the label rename and the retitle of open plan pull requests belong in this change?: No. Defer them to a follow-up issue that runs after the next release. (best practice) [sources: .github/labels.yml, CONTEXT.md]
    • Chosen: Defer the live rollout until after the release. The code and docs can merge first, and one PATCH then keeps the marks on issues and pull requests.
    • Rejected: Run the live rename in this pull request. A rename before the release breaks label sync and the old readers.
    • Rejected: Keep the old label. The issue asks for scope/spec.
  • Do the devops openspec command group, the openspec/ folder and the OpenSpec tool change their names?: No. They keep their names. Only the Conventional Commit scope changes. (best practice) [sources: CONTEXT.md, .agents/skills/devops-openspec-new/SKILL.md]
    • Chosen: Keep the OpenSpec names. The issue says so, and the tool and folder are not commit scopes.
    • Rejected: Rename the command group and folder. It breaks commands and paths beyond the title change.
  • Which titles does the plan-check job condition detect?: The condition accepts both docs(spec): plan # and docs(openspec): plan #. (best practice) [sources: .github/workflows/pr-title.yml, tests/commands/test_roadmap_plan_check_cmd.py]
    • Chosen: Accept both prefixes. New plan pull requests use the new prefix, and open plan pull requests keep the old title until the rollout.
    • Rejected: Accept only the new prefix. Open plan pull requests would get no plan check until a person retitles them.
    • Rejected: Accept only the old prefix. New plan pull requests would get no plan check.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/refactor
    source/agent
    on Nov 16, 2026
  2. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor
  3. added
    scope/roadmap
    status/new
    value/low
    effort/medium
    priority/p2-medium
    on Nov 16, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 18, 2026
  5. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

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

    Moved to new items: #6314.

  6. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 25, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 25, 2026
  8. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 17:09 UTC

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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/refactorvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions