Repository navigation
Description
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
specreplaces the scopeopenspecfor 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/specin place ofscope/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 prefixdocs(openspec): plan #, because merged plan pull requests keep their titles. - Rollout, after the release: an agent renames the GitHub label
scope/openspectoscope/specwith onePATCH, 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, theopenspec/folder and the OpenSpec tool keep their names.
Related
- fix(roadmap): Score a renamed bot PR by its first kind #5984 (score a renamed bot PR by its first kind), feat(roadmap): an open job creates each bot PR from a push #5974 (the open step checks the title), feat(roadmap): the PR review gate scores each bot PR #5968.
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
- WHEN the stage job builds the title for item refactor(roadmap): Use the scope spec for plan titles and commits #6007 with summary
Use spec scope - THEN the title is
docs(spec): plan #6007 Use spec scope.
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 scopeanddocs(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 plananddocs(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
- WHEN the implement job creates the split, amend and archive commits for item refactor(roadmap): Use the scope spec for plan titles and commits #6007
- THEN each commit subject starts with
docs(spec):and no subject starts withdocs(openspec):.
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
- WHEN the eval fixture builds the plan commit for item refactor(roadmap): Use the scope spec for plan titles and commits #6007
- THEN the commit subject starts with
docs(spec): plan #6007.
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-checkreports a plan title problem - THEN the message contains
docs(spec): plan #and does not containdocs(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,zizmorruns - 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-runruns - THEN it lists
scope/specand noscope/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,zizmorruns - THEN it exits 0 with no expression error in the
plan-checkcondition.
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 docsruns - 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 --helpruns - 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 usedocs(spec):. (best practice) [sources: .github/workflows/pr-title.yml, .github/labels.yml, CONTEXT.md]- Chosen:
docs(spec): plan #. The owner asked fordocs(spec), andspecis 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.
- Chosen:
- 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 openspeccommand group, theopenspec/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-checkjob condition detect?: The condition accepts bothdocs(spec): plan #anddocs(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
dan-petty commentedon Nov 16, 2026
Both touch the docs(openspec): plan # prefix in .github/workflows/pr-title.yml, but #3829 fixes a race condition in the check while the candidate renames the scope.devops-cli-service commentedon Nov 18, 2026
Status set to Ready at c62c598 (see proposed design in issue body).
Moved to new items: #6314.
devops-cli-service commentedon Nov 25, 2026
Released in v0.219.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.219.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 17:09 UTC