Repository navigation
Description
Problem or Motivation
The project review must work for other project types too. Repositories differ:
- of the 7 repositories in
service.repos, only devops-cli hasopenspec/; - 3 of them have 0 tags;
- 2 of them are Shell, which lizard does not read.
A second trait detector would copy the ProjectProfile of the generalization plan (#4627).
Proposed Solution & Architectural Design
- Evaluate each
requirescondition of the catalog againstresolve_profile(planning.system,languages) and the review traits:[review] tag_patternin.devops/roadmap.toml(defaultv*) and the presence ofCHANGELOG.md. - Record
skipped: <reason>indata.json, and show a "not available for this repository" line. - The functional change falls back to the CHANGELOG sections, then to the feat and fix subjects, then to the merged pull request titles.
- Repositories that lizard cannot read get the churn rank only.
- The summary of a private repository goes only to its own tracker issue.
Target Subsystem
SDLC, Git & PR Governance (src/devops_cli/roadmap/project_review/).
Existing Tool Considered
resolve_profile of the generalization plan (#4635) detects the project traits. The review adds no detector of its own: it reads the profile and two review traits. Cost (estimate): about 100-200 lines with tests, one issue-size item, about 0.33 USD on the DeepSeek implement path and 1 day elapsed.
Acceptance Criteria
- A fixture repository with no tags refuses a version window, with a message that names
tag_pattern. - A repository with no
openspec/takes its functional change from the CHANGELOG. - A Shell-only repository gets churn-only hotspots with a note.
--dry-runfor each of the 7service.reposlists the sections and the skipped reasons.
Dependencies
- feat(roadmap): read project review facts through a catalog #4692 feat(roadmap): read project review facts through a catalog.
- feat(roadmap): a toolchain preset sets the implement checks #4635 feat(roadmap): a toolchain preset sets the implement checks (it adds
resolve_profile).
Source: #4679
Alternatives check of 2026-11-20: none.
Tool: none found.
Reason: Searches and repository facts surfaced git-cliff (changelog from commits) and onefetch (repository summary: languages, churn) as the nearest tools, but neither evaluates catalog requires conditions against a profile, records skipped reasons, or runs the CHANGELOG → subjects → pull request title fallback.
Lacks:
- Gating a fact on a profile
requirescondition - Recording
skipped: <reason>per unavailable fact - CHANGELOG to subjects to pull request title fallback
- Churn-only hotspots when the language is unreadable
Proposed design
Problem statement
The project review must work across the 7 repositories of service.repos. Their traits differ: only one has openspec/, 3 have no tags, and 2 hold only Shell. The review must skip a fact that needs a missing trait, record the reason, and take the functional change from a fallback source. The private summary routing is deferred to a separate issue.
Acceptance criteria
Requirement: Catalog facts gate on requires conditions
The project review SHALL collect a catalog fact only when each requires condition of that fact holds for the resolved profile and the review traits.
Scenario: A requires condition does not hold
- WHEN A fixture profile fails one
requirescondition of a catalog fact. - THEN
data.jsonholds that fact underskippedwith the reason, and the rendered summary shows a 'not available for this repository' line for it.
Requirement: Skipped version window names tag_pattern
The project review SHALL skip the version window when no tag of the repository matches [review] tag_pattern, and the skipped reason SHALL name tag_pattern.
Scenario: Repository with no matching tag
- WHEN A fixture repository has no tag that matches the configured
tag_pattern. - THEN The review records the version window under
skippedwith a reason that namestag_pattern.
Requirement: Default tag pattern
The project review SHALL use v* as the tag pattern when .devops/roadmap.toml has no [review] tag_pattern.
Scenario: No review table
- WHEN A fixture repository has no
[review]table in.devops/roadmap.tomland has a tagv1.2.3. - THEN The review matches
v1.2.3with the defaultv*pattern and collects the version window.
Requirement: Functional change from CHANGELOG
The project review SHALL take the functional change from the CHANGELOG sections when the repository has no openspec/ folder.
Scenario: Repository without openspec
- WHEN A fixture repository has a
CHANGELOG.mdwith a Features section and noopenspec/folder. - THEN
data.jsonrecords the functional change from the CHANGELOG section and nameschangelogas its source.
Requirement: Functional change from commit subjects
The project review SHALL take the functional change from the feat and fix subjects of the window when the repository has no openspec/ folder and no CHANGELOG section.
Scenario: Repository with neither openspec nor changelog
- WHEN A fixture repository has no
openspec/folder and noCHANGELOG.md, and its window holdsfeatandfixcommits. - THEN
data.jsonrecords the functional change from those subjects and namessubjectsas its source.
Requirement: Functional change from merged pull request titles
The project review SHALL take the functional change from the titles of the merged pull requests of the window when no CHANGELOG section and no feat or fix subject exists.
Scenario: Repository with only pull request titles
- WHEN A fixture repository has no
openspec/, noCHANGELOG.mdand nofeatorfixsubject, and its window holds merged pull requests. - THEN
data.jsonrecords the functional change from those titles and namespull_requestsas its source.
Requirement: Churn-only hotspots
The project review SHALL rank hotspots by churn alone when no language of the profile is one that lizard reads, and SHALL show a note that says why.
Scenario: Shell-only repository
- WHEN A fixture repository holds only Shell files.
- THEN
data.jsonrecords the hotspots with the churn rank only and a skipped reason for the complexity rank, and the summary shows the note.
Requirement: Dry run lists sections and skipped reasons
A dry run of the project review MUST list each repository of service.repos with the sections it would collect and the reason of each skipped section, and MUST send no request.
Scenario: Dry run over seven repositories
- WHEN A test runs the project review with
--dry-runand a fixture that names 7 repositories. - THEN The output lists 7 repositories, each with its sections and each skipped reason, and the fake GitHub and model clients record no request.
Existing Tool Considered
The alternatives check in the issue body gives the verdict none. It names orhun/git-cliff and o2sh/onefetch as the nearest tools and records what they lack. No open, maintained tool covers the need. The change builds its own code in src/devops_cli/roadmap/project_review/. The written cost is about 100-200 lines with tests, one issue-size item, about 0.33 USD on the DeepSeek implement path and 1 day elapsed.
Key questions
- Which values does the review read to evaluate a catalog
requirescondition?: The review readsplanning.systemandlanguagesfrom the resolved profile. It also reads[review] tag_patternin.devops/roadmap.tomland the presence ofCHANGELOG.mdat the repository root. (best practice) [sources: .devops/roadmap.toml, CHANGELOG.md]- Rejected: Read the whole profile. Most profile facts decide no review fact, and a wider read copies the profile.
- Rejected: Read the two review traits only. The catalog conditions name
planning.systemandlanguages. - Chosen: Read
planning.system,languages,tag_patternandCHANGELOG.md. These are the four values that the catalog conditions name.
- What is the default
tag_pattern, and where does it live?: The default isv*. It lives in the[review]table of.devops/roadmap.toml. (best practice) [sources: .devops/roadmap.toml, CHANGELOG.md]- Rejected: Hard-code
v*in the review. A repository with another tag form cannot set its own pattern. - Rejected: Put the pattern in the project profile. A tag pattern is a review setting, not a fact of the project layout.
- Chosen:
[review] tag_patternin.devops/roadmap.toml, defaultv*. The repository sets the pattern in its own roadmap file, and the default matches the tags release-please writes.
- Rejected: Hard-code
- Which source gives the functional change when
openspec/is absent?: The CHANGELOG sections come first. Then thefeatandfixsubjects. Then the titles of the merged pull requests. The review records the source that it used indata.json. (best practice) [sources: CONTEXT.md, CHANGELOG.md]- Rejected: Merged pull request titles only. It reads GitHub for every repository and loses the release-please categories.
- Rejected: Commit subjects first. A subject is a raw commit line, and release-please already groups it into a section.
- Chosen: CHANGELOG sections, then subjects, then merged pull request titles. Each step costs more than the one before it, and each step names its own source.
- How does the review know that lizard cannot read the repository?: It reads
languagesof the profile. When no language is one that lizard reads, the hotspots use the churn rank only. The summary shows a note that says why. (best practice) [sources: CONTEXT.md]- Rejected: Probe each file with lizard. It runs lizard on every file and adds a second detector beside the profile.
- Rejected: Add a trait detector of its own. It copies the ProjectProfile, as the body states.
- Chosen: Gate on
languagesof the profile. The profile already holds the languages of the repository, so no second detector is necessary.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 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 extends the review to 6 of 7 repositories but is one slice of a larger generalization plan.It makes the project review usable across all seven service repositories instead of only one.The body estimates 100 to 200 lines with tests as one issue-size item.Both adapt the roadmap tool for repositories that lack certain files, but #4664 targets onboarding and stage/implement while the candidate targets the review fact-selection logic.devops-cli-service commentedon Nov 14, 2026
Alternatives check: none
Reason: The searches surfaced repository-summary and changelog tooling such as onefetch (language/repository statistics) and git-cliff (changelog generation from conventional commits), but neither evaluates the catalog's
requiresconditions against a resolved profile and review traits, records skipped reasons, nor implements the review-fact fallback chain. The issue's profile source,resolve_profile, is an internal dependency, and the selection logic described is specific to this project's review catalog.Tool: none found
Lacks:
requirescondition againstresolve_profileand the review traits[review] tag_patternandCHANGELOG.mdpresence.skipped: <reason>indata.jsonor renders the 'not available for this repository' line.Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at a8a99cb while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 21, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
6 remaining items
devops-cli-service commentedon Nov 25, 2026
Plan pull request #7027 closed with no merge. The job waits for an edit of the text of this item, or for a commit that changes a file that the reason names.
No comment of a person with write access on the pull request gives a reason.
devops-cli-service commentedon Nov 25, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.
devops-cli-service commentedon Nov 25, 2026
Released in v0.216.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.216.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 06:00 UTC