Skip to content

feat(roadmap): choose the review facts by project profile #4730

Done

Description

@dan-petty

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 has openspec/;
  • 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 requires condition of the catalog against resolve_profile (planning.system, languages) and the review traits: [review] tag_pattern in .devops/roadmap.toml (default v*) and the presence of CHANGELOG.md.
  • Record skipped: <reason> in data.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-run for each of the 7 service.repos lists the sections and the skipped reasons.

Dependencies

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 requires condition
  • 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 requires condition of a catalog fact.
  • THEN data.json holds that fact under skipped with 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 skipped with a reason that names tag_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.toml and has a tag v1.2.3.
  • THEN The review matches v1.2.3 with the default v* 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.md with a Features section and no openspec/ folder.
  • THEN data.json records the functional change from the CHANGELOG section and names changelog as 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 no CHANGELOG.md, and its window holds feat and fix commits.
  • THEN data.json records the functional change from those subjects and names subjects as 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/, no CHANGELOG.md and no feat or fix subject, and its window holds merged pull requests.
  • THEN data.json records the functional change from those titles and names pull_requests as 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.json records 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-run and 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 requires condition?: The review reads planning.system and languages from the resolved profile. It also reads [review] tag_pattern in .devops/roadmap.toml and the presence of CHANGELOG.md at 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.system and languages.
    • Chosen: Read planning.system, languages, tag_pattern and CHANGELOG.md. These are the four values that the catalog conditions name.
  • What is the default tag_pattern, and where does it live?: The default is v*. 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_pattern in .devops/roadmap.toml, default v*. The repository sets the pattern in its own roadmap file, and the default matches the tags release-please writes.
  • Which source gives the functional change when openspec/ is absent?: The CHANGELOG sections come first. Then the feat and fix subjects. Then the titles of the merged pull requests. The review records the source that it used in data.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 languages of 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 languages of 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.

Dependencies

#4692, #4635

Moved to new items

#7042

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 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 extends the review to 6 of 7 repositories but is one slice of a larger generalization plan.
    • Value: Medium. It makes the project review usable across all seven service repositories instead of only one.
    • Effort: Low. The body estimates 100 to 200 lines with tests as one issue-size item.
    • Related: feat(roadmap): onboard a repository that lacks a project dependency #4664, which asks for a different change. 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.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    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 requires conditions 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:

    • No tool evaluates each catalog requires condition against resolve_profile and the review traits [review] tag_pattern and CHANGELOG.md presence.
    • No tool records skipped: <reason> in data.json or renders the 'not available for this repository' line.
    • No tool implements the functional-change fallback from CHANGELOG sections to feat/fix subjects to merged pull request titles.
    • No tool restricts repositories that lizard cannot read to churn-rank hotspots, or routes a private repository's summary only to its own tracker issue.

    Tools considered:

    Searches run:

    • tool detect project profile languages tags changelog repository traits, results: 5
    • Python library detect repository languages and files for project analysis, results: 5
    • code churn hotspots analysis tool git history, results: 5
    • github linguist detect repository languages command line, results: 5
    • git-cliff changelog generator conventional commits, results: 5
    • tokei count lines of code by language repository, results: 5
    • feature flags conditional configuration evaluation library, results: 5
    • project trait detection repository profile tool open source, results: 5
    • CodeMeta project metadata profile detection software, results: 5
    • github-linguist language detection tool repository, results: 5

    Sources:

    Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.

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

    @devops-cli-service
    Contributor

    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.

  7. added
    status/ready
    and removed
    status/new
    on Nov 21, 2026
  8. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  9. added
    owner/service
    on Nov 24, 2026
  10. 6 remaining items

  11. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    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.

  12. added
    status/new
    status/ready
    and removed
    status/ready
    owner/service
    status/new
    on Nov 25, 2026
  13. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

  14. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 25, 2026
  15. removed
    status/in-review
    on Nov 25, 2026
  16. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor
  17. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 06:00 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/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