diff --git a/openspec/changes/4730-choose-the-review-facts-by-project/.openspec.yaml b/openspec/changes/4730-choose-the-review-facts-by-project/.openspec.yaml new file mode 100644 index 000000000..462e04dae --- /dev/null +++ b/openspec/changes/4730-choose-the-review-facts-by-project/.openspec.yaml @@ -0,0 +1,2 @@ +schema: spec-driven +created: 2026-11-25 diff --git a/openspec/changes/4730-choose-the-review-facts-by-project/design.md b/openspec/changes/4730-choose-the-review-facts-by-project/design.md new file mode 100644 index 000000000..8a2b9bf5d --- /dev/null +++ b/openspec/changes/4730-choose-the-review-facts-by-project/design.md @@ -0,0 +1,32 @@ +# Design + +## Decisions + +- **Read the review tag pattern from the review table of the roadmap file of the checkout, with the default `v*`.**: A repository sets its own tag form in its own roadmap file, and `src/devops_cli/roadmap/project_profile.py:78:name = CONST_ROADMAP_IMPLEMENT_STEPS_FILE` shows that one file is the roadmap file of a repository. +- **Keep the default `v*` in one constant beside the name of the roadmap file.**: Two copies of the default would drift, and `src/devops_cli/config/constants.py:3777:CONST_ROADMAP_IMPLEMENT_STEPS_FILE: Final[str] = ".devops/roadmap.toml"` holds the name of the roadmap file in that module. +- **Accept the review table in the declaration of the roadmap file, so `resolve_profile` reads a repository file that holds it.**: `src/devops_cli/roadmap/project_profile.py:49:class _Declaration(BaseModel):` holds the only tables that the roadmap file declares, and `src/devops_cli/roadmap/project_profile.py:50:model_config = ConfigDict(extra="forbid", frozen=True)` refuses a table that the model does not hold, so a repository that writes the review table would fail the implement job. +- **Take the merged pull request titles from the `listing.merged_titles` fact of the catalog, which shares the one listing read of the run, and return `[]` when empty.**: `src/devops_cli/roadmap/project_review/readers.py:176:return [record.model_dump(mode="json", exclude={"body"}) for record in records]` keeps the title of each record, and `src/devops_cli/roadmap/project_review/dispatch.py:442:if fact.reader in _ONE_READ` shares one listing read between its facts, so the last fallback costs no request and returning `[]` yields `ok` with `n=0` instead of `review_no_value`. +- **Rank the hotspots by churn alone when the hot files hold no path that lizard reads.**: `src/devops_cli/roadmap/project_review/facts.py:223:read = [row for row in rows if lizard_languages.get_reader_for(row.path) is not None]` already asks lizard which hot files it reads, so the empty list is the one place that knows the repository holds no language that lizard reads. +- **Take the functional change from the CHANGELOG sections, then the feat and fix subjects, then the merged pull request titles, and name that step as the source of the fact.**: Each step costs more than the one before: the CHANGELOG is a file of the checkout, a subject is one line of a commit that the review already reads, and the titles come from the one listing read of the run. +- **Place the functional change fact after `lizard.complexity` and before the catalog facts, and modify the requirement that fixes the order of the facts.**: `src/devops_cli/roadmap/project_review/review.py:77:facts=[*facts, *result.facts],` puts the git facts before the catalog facts, so a fact that the review builds from the window belongs at that boundary and the requirement that lists the facts must name it. +- **List each repository of `service.repos` in a dry run that names no window, with the reason of each fact whose setting is unset and the text of each other condition.**: `src/devops_cli/roadmap/project_review/dispatch.py:def _setting` decides a setting with no read and `src/devops_cli/roadmap/project_review/dispatch.py:def _condition` renders each condition text, while `src/devops_cli/commands/roadmap_review.py:66:request = parse_window(version=version, since=since, until=until, week=week, last=last, now=now)` refuses a run with no window, so the listing decides each setting condition of every repository and sends no request. +- **List a `window:` or `path:` condition as its text, and modify the base requirement `A dry run of the review starts no program` to hold the no-window case instead of adding a requirement beside it.**: `src/devops_cli/roadmap/project_review/dispatch.py:210:commits = (window.base_sha, window.head_sha)` shows that a path condition is read at the commits of the window, and the base requirement already states what a dry run prints and that it starts no program, so a second requirement would repeat it. +- **Keep the recorded git transcript `tests/fixtures/git/review_window.json` unchanged.**: The default pattern builds the same `for-each-ref` command, and `tests/support/git_scenarios.py:610:for fact in review_facts(repo, resolved, tags)` shows that the transcript records the facts of `review_facts` and not the facts of `run_review`, so the functional change fact does not reach it. + +## Rejected alternatives + +- **Read the planning system and the languages from `resolve_profile` of the generalization plan.**: `src/devops_cli/roadmap/project_profile.py:52:project: _Project = _Project()` shows that the declaration holds the project table only, and `src/devops_cli/roadmap/project_profile.py:60:preset: ToolchainPreset` shows that the resolved profile holds the preset alone, so it holds no language and no planning system. +- **Call `resolve_profile` from the review to read the roadmap file.**: `src/devops_cli/roadmap/project_profile.py:79:listed = git(source, "ls-tree", "--name-only", ref, "--", name, operation=_OPERATION)` starts a git command that the review does not start today, and `tests/fixtures/git/review_window.json:25:refs/tags/v*` is the only tag read of the recorded transcript. +- **Hard-code the pattern `v*` in the review.**: `src/devops_cli/roadmap/project_review/git_read.py:24:_RELEASE_TAGS: Final = "refs/tags/v*"` is that fixed pattern, and a repository whose tags are `release-1.0` cannot change it. +- **Add a trait detector of the review, or probe each file with lizard.**: `src/devops_cli/roadmap/project_review/facts.py:223:read = [row for row in rows if lizard_languages.get_reader_for(row.path) is not None]` already asks lizard which hot files it reads, so a detector would copy that lookup. +- **Read the merged pull request titles with a second GitHub read in `functional.py`.**: `src/devops_cli/roadmap/project_review/readers.py:176:return [record.model_dump(mode="json", exclude={"body"}) for record in records]` already keeps each title, and `src/devops_cli/roadmap/project_review/dispatch.py:442:if fact.reader in _ONE_READ` shares one listing read, so a second read would send a request that the run already pays for once. +- **Insert the functional change fact after the catalog facts.**: `src/devops_cli/roadmap/project_review/review.py:77:facts=[*facts, *result.facts],` appends the catalog facts last, so a git fact of the window would sit after them and the fixed order of the review would break. +- **Decide the `path:` condition of the dry run from the working tree of a clone of each repository of `service.repos`.**: `src/devops_cli/roadmap/project_review/dispatch.py:210:commits = (window.base_sha, window.head_sha)` shows that the review reads a path at the commits of the window, so a working-tree check would print a skip that the run does not make. +- **Add a second dry-run requirement beside `A dry run of the review starts no program`.**: `openspec/specs/roadmap-project-review/spec.md` holds the requirement `A dry run of the review starts no program`, whose text already says what a dry run prints and that it starts no program, so a second requirement would repeat it. +- **Take the commit subjects before the CHANGELOG sections.**: The probe states: The path `CHANGELOG.md` is a file of the staging commit. A section of that file already groups the subjects of a release, so a subject is the coarser source. +- **Put the tag pattern in the config of devops-cli instead of the roadmap file of the repository.**: The probe states: The path `.devops/roadmap.toml` is a file of the staging commit, and `src/devops_cli/roadmap/project_profile.py:78:name = CONST_ROADMAP_IMPLEMENT_STEPS_FILE` reads the roadmap file of a repository, so the repository owns its pattern. +- **Route a private repository summary to its tracker issue in this change.**: `run_review` in `src/devops_cli/roadmap/project_review/review.py:74:return ReviewData(` builds `data.json` only and sends no external summary; HTML rendering and tracker-issue publishing belong to #4720, #4733 and #4624. + +## Unchanged references + +- `tests/fixtures/git/review_window.json` (snapshot file): The default pattern `v*` builds the same `for-each-ref` command, and the transcript records the facts of `review_facts` and not of `run_review`, so the recorded answer stays the same. diff --git a/openspec/changes/4730-choose-the-review-facts-by-project/proposal.md b/openspec/changes/4730-choose-the-review-facts-by-project/proposal.md new file mode 100644 index 000000000..ea9eb2953 --- /dev/null +++ b/openspec/changes/4730-choose-the-review-facts-by-project/proposal.md @@ -0,0 +1,82 @@ +# Proposal + +## Why + +The project review works for one repository only: it reads one fixed tag ref, takes the functional change only from the OpenSpec facts, and asks lizard to read a Shell file that lizard cannot read. #4730 makes the review read the traits of each managed repository, record the reason of each skipped fact, take the functional change from a fallback source, and list the sections and the conditions of each repository of `service.repos` in a dry run. + +## What Changes + +- Read the review tag pattern from the review table of the roadmap file of the checkout, with the default `v*`, in `src/devops_cli/roadmap/project_profile.py`, and keep that default in a constant of `src/devops_cli/config/constants.py` beside `src/devops_cli/config/constants.py:3777:CONST_ROADMAP_IMPLEMENT_STEPS_FILE: Final[str] = ".devops/roadmap.toml"`. +- Accept the review table in the declaration of the roadmap file, so `resolve_profile` reads a repository file that holds it, in `src/devops_cli/roadmap/project_profile.py`. +- Give the tag read of `src/devops_cli/roadmap/project_review/git_read.py` and `src/devops_cli/roadmap/project_review/window.py` the pattern, and refuse a version window when no tag matches it, with a message that names `tag_pattern`. +- Name the pattern in the tag query of `src/devops_cli/roadmap/project_review/facts.py`, and pass it from `src/devops_cli/roadmap/project_review/review.py`. +- Add the functional change fact in `src/devops_cli/roadmap/project_review/functional.py`: the CHANGELOG sections first, then the feat and fix subjects, then the titles of the merged pull requests. +- Add the `listing.merged_titles` fact to `src/devops_cli/roadmap/project_review/catalog.yaml`, which gives those titles from the one listing read of the run. +- Record the functional change in `src/devops_cli/roadmap/project_review/review.py` after `lizard.complexity` and before the catalog facts, when the catalog result holds no ok fact whose id starts with `openspec.`. +- Skip the complexity rank in `src/devops_cli/roadmap/project_review/facts.py` when lizard reads no hot file, and keep the churn rank with the reason as the note. +- List each repository of `service.repos` in a dry run with no window, with the title of each section, the id of each fact, the reason of each fact whose setting is unset and the text of each other condition, from `src/devops_cli/roadmap/project_review/dispatch.py`. +- State the review tag pattern, the functional change fallback, the churn-only hotspots and the dry-run listing in `docs/ROADMAP_WORKFLOW.md`. +- The change fits one pull request. + +## Capabilities + +### New Capabilities + +None. + +### Modified Capabilities + +- `roadmap-project-review`: A version window needs a tag that matches the tag pattern, The functional change comes from the CHANGELOG without openspec, The functional change falls back to the commit subjects, The functional change falls back to the merged pull request titles, The complexity rank is skipped when lizard reads no hot file, The review writes the facts in a fixed order with the disagreements and the read counts, A dry run of the review starts no program +- `toolchain-preset`: The roadmap file holds a review table + +## Impact + +- Code: `src/devops_cli/roadmap/project_review/dispatch.py`, `src/devops_cli/commands/roadmap_review.py`, `src/devops_cli/lang/en/messages.py`, `src/devops_cli/config/constants.py`, `src/devops_cli/roadmap/project_profile.py`, `src/devops_cli/roadmap/project_review/git_read.py`, `src/devops_cli/roadmap/project_review/window.py`, `src/devops_cli/roadmap/project_review/facts.py`, `src/devops_cli/roadmap/project_review/review.py`, `src/devops_cli/roadmap/project_review/functional.py`, `src/devops_cli/roadmap/project_review/catalog.yaml`, `src/devops_cli/roadmap/project_review/data.py` +- Documents: `docs/ROADMAP_WORKFLOW.md` +- Tests: `tests/commands/test_roadmap_review.py`, `tests/roadmap/test_roadmap_project_profile.py`, `tests/roadmap/project_review/test_review_window.py`, `tests/roadmap/project_review/test_review_facts.py`, `tests/roadmap/project_review/test_review_functional.py` + +## Feasibility + +- `read_spec` with the capability `roadmap-project-review` listed its requirements, and `read_spec` with the requirement `A dry run of the review starts no program` gave the text that `devops roadmap review run --dry-run` SHALL print the git commands, the shared reads and each fact of the catalog, with the two scenarios `A dry run lists the git commands` and `A dry run lists the catalog queries and sends no request`; the `modified` entry keeps both and adds `A dry run with no window lists each repository of service.repos`, because a `modified` entry replaces the whole requirement. +- `read_spec` with the requirement `The review writes the facts in a fixed order with the disagreements and the read counts` gave one scenario, `The facts of a fixture catalog follow the git facts`, and the `modified` entry keeps that name and adds the functional change to the order of the facts. +- `read_spec` with the capability `toolchain-preset` listed the requirements `Toolchain preset read`, `Default preset neutral`, `devops-cli parity`, `neutral scoped checks`, `Unknown preset refused`, `Docs step gated`, `Archive step gated`, `Step gates gated`, `implement-steps removed` and `devops-cli declares preset`, so the added name `The roadmap file holds a review table` repeats no existing name. +- The no-window dry run prints the reason of each unset setting from `src/devops_cli/roadmap/project_review/dispatch.py:231:return texts.review_unset_setting.format(setting=name)` and the condition text of each other condition from `src/devops_cli/lang/en/messages.py:7232:review_plan_condition: dict[str, str] = field(`, without deciding `path:` conditions that require a window. +- The catalog gates the OpenSpec reader on one trait condition: `src/devops_cli/roadmap/project_review/catalog.yaml:38:openspec: {requires: ["path:openspec/specs"]}`. The release tags are git facts in `src/devops_cli/roadmap/project_review/facts.py:def git_facts` and the lizard reader check sits in `src/devops_cli/roadmap/project_review/facts.py:def complexity_fact`, so the catalog dry run has no condition line for them and the no-window scenario asserts the OpenSpec condition text instead. +- A dry run starts no program and sends no request: `src/devops_cli/commands/roadmap_review.py:50:@dry_run_class("request-plan")` declares the class, and `src/devops_cli/commands/roadmap_review.py:68:if dry_run or is_dry_run():` returns before the run. +- `src/devops_cli/commands/roadmap_review.py:66:request = parse_window(version=version, since=since, until=until, week=week, last=last, now=now)` refuses a run with no window, so group 1 lists the repositories before that call, and `tests/commands/test_roadmap_review.py:36:result = cli("roadmap", "review", "run", "--version", VERSION, "--dry-run")` keeps the window branch. +- A setting condition is decided with no read: `src/devops_cli/roadmap/project_review/dispatch.py:def _setting` walks the settings, and `src/devops_cli/roadmap/project_review/dispatch.py:231:return texts.review_unset_setting.format(setting=name)` gives the reason, so a dry run decides `setting:prometheus.url` with no request. +- A `path:` condition needs the window: `src/devops_cli/roadmap/project_review/dispatch.py:def _missing_path` reads `src/devops_cli/roadmap/project_review/dispatch.py:210:commits = (window.base_sha, window.head_sha)`, so the listing prints the condition text instead of a reason that it cannot know. +- `src/devops_cli/roadmap/project_review/dispatch.py:def _condition` renders each condition through `MESSAGES.roadmap.review_plan_condition`, so the `path` condition of the OpenSpec reader prints as `the base and the head commits hold openspec/specs`. +- `src/devops_cli/config/settings.py:1814:repos: Annotated[list[str], Variable()] = Field(` shows that `service.repos` is a setting that names repositories, and `src/devops_cli/roadmap/project_review/dispatch.py:def _setting` reads one dotted setting with no read, so the listing reads the 7 names with no request. +- The probe states: The path `.devops/roadmap.toml` is a file of the staging commit. The probe states: The path `CHANGELOG.md` is a file of the staging commit. So the roadmap file and the changelog that the plan reads are in the staged tree. +- The probe states: The path `service.repos` is no file of the staging commit, so `service.repos` is a setting and not a path of the tree. The probe states: The path `data.json` is no file of the staging commit. `src/devops_cli/roadmap/project_review/review.py:83:def review_folder(repo: str, window_id: str) -> Path:` shows that a run writes under the data directory, so `data.json` is the output of a run. +- `src/devops_cli/roadmap/project_review/git_read.py:24:_RELEASE_TAGS: Final = "refs/tags/v*"` is the one fixed tag ref, with the value `refs/tags/v*`, and `src/devops_cli/roadmap/project_review/git_read.py:52:def tag_args() -> tuple[str, ...]:` is its one builder, so group 3 replaces the fixed ref with the pattern of the repository. +- `src/devops_cli/roadmap/project_review/window.py:155:def read_tags(checkout: Path) -> list[Tag]:` reads the tags once, and `src/devops_cli/roadmap/project_review/window.py:209:def resolve_window(checkout: Path, request: WindowRequest, tags: Sequence[Tag]) -> ReviewWindow:` takes that list, so the refusal of a version window belongs in `resolve_window` and needs no git read over an empty tag list. +- `src/devops_cli/roadmap/project_review/review.py:63:tags = read_tags(checkout)` reads the tags before `src/devops_cli/roadmap/project_review/review.py:73:result = read_catalog(catalog or load_catalog(), context)`, and `src/devops_cli/roadmap/project_review/review.py:77:facts=[*facts, *result.facts],` puts the git facts before the catalog facts, so group 7 inserts the functional change fact at that boundary. +- `src/devops_cli/roadmap/project_review/facts.py:177:log_query, tag_query = query_text(log), query_text(tag_args())` builds the tag query of a fact from that builder, and `src/devops_cli/roadmap/project_review/facts.py:239:def review_facts(checkout: Path, window: ReviewWindow, tags: Sequence[Tag]) -> list[Fact]:` is its caller, so group 4 passes the pattern to both. +- `src/devops_cli/roadmap/project_review/facts.py:223:read = [row for row in rows if lizard_languages.get_reader_for(row.path) is not None]` already asks lizard which hot files it reads, so group 8 skips the complexity rank when that list is empty and needs no second detector. +- The review reads the titles of the merged pull requests from the catalog: `src/devops_cli/roadmap/project_review/readers.py:176:return [record.model_dump(mode="json", exclude={"body"}) for record in records]` keeps the title of each record, and `src/devops_cli/roadmap/project_review/dispatch.py:442:if fact.reader in _ONE_READ` shares one listing read between its facts, so the third fallback needs no second request. +- `src/devops_cli/roadmap/project_review/catalog.yaml:66:- id: listing.pulls_merged` is the listing fact of the merged pull requests of the activity section, so group 6 adds `listing.merged_titles` beside it. +- The profile declaration holds one table: `src/devops_cli/roadmap/project_profile.py:49:class _Declaration(BaseModel):` declares it, and `src/devops_cli/roadmap/project_profile.py:50:model_config = ConfigDict(extra="forbid", frozen=True)` refuses a table that the model does not hold, so group 2 adds the `review` table to that declaration before a repository writes it. +- `src/devops_cli/lang/en/messages.py:7173:review_fact_definitions: dict[str, str] = field(` holds the definition of each git fact, so group 5 adds `functional.change` there. +- `src/devops_cli/roadmap/project_review/data.py:70:source: str = Field(` declares the source of a fact and names the reader kinds, so group 7 adds `functional`, `changelog`, `subjects` and `pull_requests` to that description. +- `tests/commands/test_roadmap_review.py:143:assert [fact["id"] for fact in written["facts"]] == [` holds the exact fact list of a run, and `tests/commands/test_roadmap_review.py:152:*(fact.id for fact in load_catalog().facts),` appends the catalog facts, so group 7 adds `functional.change` to that list before the catalog facts. +- `tests/roadmap/test_roadmap_project_profile.py:27:stage_repo.track({STEPS_FILE: '[project]\ntoolchain = "devops-cli"\n'})` shows that the profile test writes the roadmap file of a real checkout, so group 2 writes the review table there and needs no client and no network. +- `tests/support/git_scenarios.py:610:for fact in review_facts(repo, resolved, tags)` shows that the recorded `review_window` transcript holds the facts of `review_facts` and not the facts of `run_review`, so the functional change fact of group 7 leaves the transcript unchanged. +- `tests/fixtures/git/review_window.json:25:refs/tags/v*` holds the tag ref of the recorded `review_window` transcript, and the default pattern `v*` builds the same ref, so group 4 keeps that recording and adds a `git_fake.answer` refusal case and a zero-process `planned_review` case. +- Precondition of the call: `review_tag_pattern` reads the roadmap file of a checkout with `tomllib`, as `src/devops_cli/roadmap/project_profile.py:16:import tomllib` shows, so the call needs a checkout of the repository and no client and no network. +- Precondition of the call: `read_tags`, `resolve_window` and `functional_change` run git on a checkout, as `src/devops_cli/roadmap/project_review/git_read.py:def run_git` shows, so each needs a checkout of the repository and no client and no network. +- Precondition of the call: `read_catalog` reads the catalog through the GitHub, Prometheus and Loki readers of `src/devops_cli/roadmap/project_review/dispatch.py:525:def read_catalog(catalog: Catalog, context: ReadContext) -> CatalogResult:`, so it needs a client of each service and a network; the tests double those readers and reach no network. +- `src/devops_cli/roadmap/project_profile.py:55:class ProjectProfile(BaseModel):` and `src/devops_cli/roadmap/project_profile.py:60:preset: ToolchainPreset` show that `resolve_profile` holds only the preset, with no `planning.system` and no `languages`, so the premise of the issue is confirmed: `src/devops_cli/roadmap/project_review/dispatch.py:542:reason = _unmet(rules.requires, context, paths) or _too_early(fact, context)` already evaluates catalog `requires` conditions and records `status: skipped` with `reason` (#4692), and routing a private repository summary to its tracker issue belongs to open issues #4720, #4733 and #4624. +- The count of the 7 repositories of `service.repos` is unverified: the probe states: The path `service.repos` is no file of the staging commit. The census is the `verify` of group 1, `uv run devops ci test tests/commands/test_roadmap_review.py`, whose first case sets `service.repos` to 7 names and asserts 7 blocks (stopping when the block count differs from 7), while a second case sets 3 names and asserts 3 blocks. Each of the 7 members is allowlisted, because the dry run lists it with its sections, fact ids, unset-setting reasons, condition texts or no-condition notes and sends no request; none is removed or restricted. +- First check of the implementation: `uv run devops ci test tests/commands/test_roadmap_review.py`, then `uv run devops ci test tests/roadmap/test_roadmap_project_profile.py tests/roadmap/project_review/test_review_window.py tests/roadmap/project_review/test_review_facts.py tests/roadmap/project_review/test_review_functional.py`, then `uv run devops ci --check`. +- Failure class and runner capability: the plan introduces no program, and `uv` and `devops` are Runner tools of the image, so a failing test is class `test` and a failing docs row is class `lint`; the pod runs with `readOnlyRootFilesystem: true`, `runAsNonRoot: true` and `capabilities.drop: ALL`, and no program of the plan is `NOT_IN_RUNNER`. + +## Existing Tool Considered + +No open tool covers the need: git-cliff writes a changelog from commits and onefetch gives a repository summary, and neither gates a catalog condition on the traits of a repository, records a skipped reason, nor falls back from the CHANGELOG to the commit subjects and the merged pull request titles. Building it in the project review package costs about 80k tokens to build, keep and fix, and 1 day elapsed. It deletes no internal code. + +## Dependencies + +- #4692: this change gates each fact of the review catalog on its `requires` conditions, so the catalog of `src/devops_cli/roadmap/project_review/catalog.yaml` must be on the default branch first. +- #4635: it adds `resolve_profile` and the roadmap file declaration of `src/devops_cli/roadmap/project_profile.py` that this change extends, so it comes first. diff --git a/openspec/changes/4730-choose-the-review-facts-by-project/specs/roadmap-project-review/spec.md b/openspec/changes/4730-choose-the-review-facts-by-project/specs/roadmap-project-review/spec.md new file mode 100644 index 000000000..6ca763b2b --- /dev/null +++ b/openspec/changes/4730-choose-the-review-facts-by-project/specs/roadmap-project-review/spec.md @@ -0,0 +1,64 @@ +## ADDED Requirements + +### Requirement: A version window needs a tag that matches the tag pattern +The project review SHALL read the review tag pattern from the review table of the roadmap file of the checkout, MUST use `v*` when the table or the key is absent, and MUST refuse a version window when no tag of the repository matches the pattern, with an error that names `tag_pattern` and the pattern. + +#### Scenario: A repository with no tag that matches the tag pattern +- **WHEN** A fixture checkout holds the tags `release-1.0` and `release-2.0`, and the review table names the pattern `v*`. +- **THEN** `resolve_window` raises an error whose message names `tag_pattern` and `v*`, and starts no git command. + +#### Scenario: A checkout with no review table +- **WHEN** A fixture checkout holds no review table in its roadmap file and holds the tag `v1.2.3`. +- **THEN** The default pattern `v*` matches the tag `v1.2.3`, so the review accepts the version window that names it. + +### Requirement: The functional change comes from the CHANGELOG without openspec +The project review SHALL record the functional change of the window from the Features and Bug Fixes sections of `CHANGELOG.md` when the catalog result holds no ok fact whose id starts with `openspec.`, and the fact MUST name `changelog` as its source. + +#### Scenario: A repository without openspec +- **WHEN** A fixture checkout holds a `CHANGELOG.md` with a Features section, and the catalog result holds no ok OpenSpec fact. +- **THEN** The functional change fact holds the items of the Features section and names `changelog` as its source. + +### Requirement: The functional change falls back to the commit subjects +The project review SHALL record the functional change of the window from the feat and fix subjects of its commits when `CHANGELOG.md` gives no section, and the fact MUST name `subjects` as its source. + +#### Scenario: A repository with neither openspec nor changelog +- **WHEN** A fixture checkout holds no OpenSpec fact and no `CHANGELOG.md`, and its window holds a feat commit and a fix commit. +- **THEN** The functional change fact holds those two subjects and names `subjects` as its source. + +### Requirement: The functional change falls back to the merged pull request titles +The project review SHALL record the functional change of the window from the titles of the merged pull requests of the `listing.merged_titles` fact when no CHANGELOG section and no feat or fix subject exists, and the fact MUST name `pull_requests` as its source. + +#### Scenario: A repository with only pull request titles +- **WHEN** A fixture window holds no CHANGELOG section and no feat or fix subject, and the `listing.merged_titles` fact holds two titles. +- **THEN** The functional change fact holds the two titles and names `pull_requests` as its source. + +### Requirement: The complexity rank is skipped when lizard reads no hot file +The project review SHALL rank the hotspots by churn alone and MUST record the complexity rank as skipped with a reason when the window holds hot files and lizard reads none of them, and the summary MUST show that reason. + +#### Scenario: A Shell-only repository +- **WHEN** A fixture window holds only Shell hot files. +- **THEN** `complexity_fact` gives a skipped fact whose reason says that no hot file is one that lizard reads, and the hotspots keep the churn rank. + +## MODIFIED Requirements + +### Requirement: The review writes the facts in a fixed order with the disagreements and the read counts +The facts in `data.json` SHALL be the commits, their types, the net change and the churn with generated paths apart, the release tags, the hot files and the complexity, the functional change when the catalog result holds no ok OpenSpec fact, then each fact of the catalog in the catalog order. `data.json` SHALL also hold the disagreements, and the count of the reads of each reader kind with the seconds of the collection. + +#### Scenario: The facts of a fixture catalog follow the git facts +- **WHEN** the review runs with a fixture catalog of two facts in the section `service` +- **THEN** the review data holds the git facts, then the functional change fact, then the two facts of the section `service`, and the count of the reads of each reader kind + +### Requirement: A dry run of the review starts no program +`devops roadmap review run --dry-run` SHALL print the git commands, the shared reads and each catalog fact with its id, its reader kind and its rendered query, with placeholders for read values. A dry run with no window option SHALL list each repository of `service.repos` with the catalog sections and facts, the reason of each unset setting and the condition of each other fact. It SHALL start no program, send no request, open no connection and write no file. + +#### Scenario: A dry run lists the git commands +- **WHEN** a person runs `devops roadmap review run --version v1.0.0..v1.1.1 --dry-run` +- **THEN** the output lists the `git log` command of each tag and the first-parent log of `..`, and no program starts + +#### Scenario: A dry run lists the catalog queries and sends no request +- **WHEN** a person runs `devops roadmap review run --last 7d --dry-run` with fakes of GitHub, Prometheus, Loki and the processes that record each call +- **THEN** the output lists each fact id of the catalog with its rendered query, and each fake records 0 calls + +#### Scenario: A dry run with no window lists each repository of service.repos +- **WHEN** a person runs `devops roadmap review run --dry-run` with no window option while `service.repos` names 7 repositories and the setting `prometheus.url` has no value, with fakes of GitHub, Prometheus, Loki and the processes that record each call +- **THEN** the output holds one block for each of the 7 repositories, with the title of each section of the catalog and the id of each fact, the reason `The setting prometheus.url has no value.` on the line of each fact of the prometheus reader, the text `the base and the head commits hold openspec/specs` on the line of each fact of the openspec reader, and each fake records 0 calls diff --git a/openspec/changes/4730-choose-the-review-facts-by-project/specs/toolchain-preset/spec.md b/openspec/changes/4730-choose-the-review-facts-by-project/specs/toolchain-preset/spec.md new file mode 100644 index 000000000..09c8eb428 --- /dev/null +++ b/openspec/changes/4730-choose-the-review-facts-by-project/specs/toolchain-preset/spec.md @@ -0,0 +1,8 @@ +## ADDED Requirements + +### Requirement: The roadmap file holds a review table +`resolve_profile` SHALL accept the review table of the roadmap file of a repository, so a repository that sets `[review] tag_pattern` keeps a valid roadmap file for the implement job. + +#### Scenario: A roadmap file with a review table +- **WHEN** A commit holds a roadmap file with the project table and the review table, and the review table names `tag_pattern = "release-*"`. +- **THEN** `resolve_profile` gives the preset of the project table with no error. diff --git a/openspec/changes/4730-choose-the-review-facts-by-project/tasks.md b/openspec/changes/4730-choose-the-review-facts-by-project/tasks.md new file mode 100644 index 000000000..7bcee3721 --- /dev/null +++ b/openspec/changes/4730-choose-the-review-facts-by-project/tasks.md @@ -0,0 +1,96 @@ +# Tasks + +## 1. List the sections and the conditions of each repository in a dry run + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_review/dispatch.py`, `src/devops_cli/roadmap/project_review/catalog.py`, `src/devops_cli/commands/roadmap_review.py`, `src/devops_cli/config/settings.py`, `src/devops_cli/lang/en/messages.py`, `tests/commands/test_roadmap_review.py`, `tests/lang/test_language_catalogs.py`, `tests/roadmap/implement/test_roadmap_implement_amend.py`, `tests/roadmap/project_review/test_review_dispatch.py`, `tests/roadmap/project_review/test_review_readers.py`, `tests/roadmap/refine/test_roadmap_refine_tracker.py`, `tests/roadmap/stage/test_roadmap_stage_module_test_order.py`, `tests/roadmap/stage/test_roadmap_stage_paths.py`, `tests/roadmap/stage/test_roadmap_stage_trace_subject.py`. Changes: `src/devops_cli/roadmap/project_review/dispatch.py`, `src/devops_cli/commands/roadmap_review.py`, `src/devops_cli/lang/en/messages.py`, `tests/commands/test_roadmap_review.py`. +Adds: `planned_sections` + +- [ ] 1.1 `tests/commands/test_roadmap_review.py::test_a_dry_run_with_no_window_lists_each_repository_of_service_repos` fails first: with `service.repos` naming 7 repositories and no `prometheus.url` value, `devops roadmap review run --dry-run` prints one block for each of the 7, each with the title of each section of `src/devops_cli/roadmap/project_review/catalog.yaml` and the id of each fact, the reason `The setting prometheus.url has no value.` on the line of each fact of the prometheus reader, the text `the base and the head commits hold openspec/specs` on the line of each fact of the openspec reader, and `process_fake.calls == []` with `refuse_requests == []`; a second case with `service.repos` naming 3 repositories prints 3 blocks + - Verification: `$ uv run devops ci test tests/commands/test_roadmap_review.py` fails on the base +- [ ] 1.2 Add `planned_sections(catalog: Catalog, settings: Settings) -> str` to `src/devops_cli/roadmap/project_review/dispatch.py`: for each repository of `settings.service.repos` a heading (or an empty-repos message when `settings.service.repos` is empty), then each section title of the catalog, then each fact of that section with the reason of the first `setting:` condition of `catalog.rules(fact).requires` that `_setting` finds unset, else the text of `_condition` of its conditions, else a text that says the fact has no condition; print it with `write_stdout` from `run_cmd` of `src/devops_cli/commands/roadmap_review.py` when `(dry_run or is_dry_run())` holds and no window option is given (`not any((version, since, until, week, last))`), before `parse_window` and `find_repo_root`; add the heading, section, fact, no-condition and empty-repos texts to `src/devops_cli/lang/en/messages.py` + - Verification: `$ uv run devops ci test tests/commands/test_roadmap_review.py` passes + +## 2. Read the review tag pattern from the roadmap file + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_profile.py`, `src/devops_cli/config/constants.py`, `tests/roadmap/test_roadmap_project_profile.py`, `.devops/roadmap.toml`. Changes: `src/devops_cli/config/constants.py`, `src/devops_cli/roadmap/project_profile.py`, `tests/roadmap/test_roadmap_project_profile.py`. +Adds: `CONST_ROADMAP_REVIEW_TAG_PATTERN`, `_Review`, `review_tag_pattern` + +- [ ] 2.1 `tests/roadmap/test_roadmap_project_profile.py::test_the_review_table_gives_the_tag_pattern_and_the_default_is_v_star` fails first: `review_tag_pattern` gives `release-*` from a checkout whose `.devops/roadmap.toml` holds the review table, gives `v*` from a checkout whose file holds none, raises `ConfigurationError` naming `.devops/roadmap.toml` on invalid TOML or unknown keys, and `resolve_profile` reads a commit whose file holds the review table with no error + - Verification: `$ uv run devops ci test tests/roadmap/test_roadmap_project_profile.py` fails on the base +- [ ] 2.2 Add `CONST_ROADMAP_REVIEW_TAG_PATTERN` with the value `v*` to `src/devops_cli/config/constants.py` beside `CONST_ROADMAP_IMPLEMENT_STEPS_FILE`; add the model `_Review` with the field `tag_pattern` and the function `review_tag_pattern(source: Path) -> str` to `src/devops_cli/roadmap/project_profile.py`, which reads `source / CONST_ROADMAP_IMPLEMENT_STEPS_FILE` with `tomllib`, validates it through `_Declaration.model_validate` and raises `ConfigurationError` with `MESSAGES.roadmap.roadmap_toml_invalid` on a decode error or a validation error, and gives `CONST_ROADMAP_REVIEW_TAG_PATTERN` when the file, the table or the key is absent; add `review: _Review = _Review()` to `_Declaration` so `resolve_profile` accepts the table. `tests/roadmap/test_roadmap_limit_classes.py` counts the numeric limits of the `CONST_ROADMAP_` prefix, and this string constant takes no entry there + - Verification: `$ uv run devops ci test tests/roadmap/test_roadmap_project_profile.py` passes + +## 3. Refuse a version window when no tag matches the pattern + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_review/window.py`, `src/devops_cli/roadmap/project_review/git_read.py`, `src/devops_cli/config/constants.py`, `src/devops_cli/lang/en/messages.py`, `tests/roadmap/project_review/test_review_window.py`, `tests/roadmap/project_review/test_review_facts.py`, `tests/lang/test_language_catalogs.py`, `tests/roadmap/implement/test_roadmap_implement_amend.py`, `tests/roadmap/refine/test_roadmap_refine_tracker.py`, `tests/roadmap/stage/test_roadmap_stage_module_test_order.py`, `tests/roadmap/stage/test_roadmap_stage_paths.py`, `tests/roadmap/stage/test_roadmap_stage_trace_subject.py`. Changes: `src/devops_cli/roadmap/project_review/git_read.py`, `src/devops_cli/roadmap/project_review/window.py`, `src/devops_cli/lang/en/messages.py`, `tests/roadmap/project_review/test_review_window.py`. + +- [ ] 3.1 `tests/roadmap/project_review/test_review_window.py::test_a_version_window_needs_a_tag_that_matches_the_tag_pattern` fails first: `resolve_window` refuses a version window over an empty tag list and the pattern `release-*` with an error that names `tag_pattern` and `release-*` before any git command, and a second case resolves the window of the recorded tags of `v*` through `read_tags` and keeps `v1.0.0..v1.1.1` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_window.py` fails on the base +- [ ] 3.2 Give `tag_args` of `src/devops_cli/roadmap/project_review/git_read.py` the pattern, defaulted to `CONST_ROADMAP_REVIEW_TAG_PATTERN`, and build `refs/tags/` in place of the constant `_RELEASE_TAGS`; give `read_tags` and `resolve_window` of `src/devops_cli/roadmap/project_review/window.py` that pattern with the same default, and make `resolve_window` refuse a version window over an empty tag list before its first git read; add the refusal text to `src/devops_cli/lang/en/messages.py` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_window.py` passes + +## 4. Name the review tag pattern in the tag query and the run + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_review/facts.py`, `src/devops_cli/roadmap/project_review/review.py`, `src/devops_cli/roadmap/project_review/window.py`, `src/devops_cli/roadmap/project_review/git_read.py`, `src/devops_cli/roadmap/project_profile.py`, `tests/roadmap/project_review/test_review_facts.py`, `tests/fixtures/git/review_window.json`, `tests/ai/review/test_review.py`, `tests/commands/test_review.py`. Changes: `src/devops_cli/roadmap/project_review/facts.py`, `src/devops_cli/roadmap/project_review/review.py`, `tests/roadmap/project_review/test_review_facts.py`. + +- [ ] 4.1 `tests/roadmap/project_review/test_review_facts.py::test_the_run_reads_the_tag_pattern_of_the_roadmap_file` fails first: `review_facts` given the pattern `release-*` gives a `git.releases` fact whose query holds `refs/tags/release-*`; `planned_review` in a checkout whose `.devops/roadmap.toml` sets `[review] tag_pattern = "release-*"` starts no git command and lists `refs/tags/release-*`; `run_review` in a checkout whose `.devops/roadmap.toml` sets `release-*` with `git_fake.answer` answering empty tags for `refs/tags/release-*` refuses a version window naming `tag_pattern` and `release-*`; and `run_review` in the checkout of the recorded `review_window` transcript, whose roadmap file holds no review table, still reads the tags of `v*` and keeps the window `v1.0.0..v1.1.1` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_facts.py` fails on the base +- [ ] 4.2 Give `git_facts` and `review_facts` of `src/devops_cli/roadmap/project_review/facts.py` the pattern, defaulted to `CONST_ROADMAP_REVIEW_TAG_PATTERN`, and build the tag query with `tag_args(pattern)`; read the pattern in `run_review` and `planned_review` of `src/devops_cli/roadmap/project_review/review.py` with `review_tag_pattern(checkout)` and pass it to `read_tags`, `resolve_window`, `review_facts` and `tag_args` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_facts.py` passes + +## 5. Give the functional change from the CHANGELOG and the subjects + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_review/facts.py`, `src/devops_cli/roadmap/project_review/git_read.py`, `src/devops_cli/roadmap/project_review/data.py`, `src/devops_cli/roadmap/commit_title.py`, `src/devops_cli/lang/en/messages.py`, `tests/lang/test_language_catalogs.py`, `tests/roadmap/implement/test_roadmap_implement_amend.py`, `tests/roadmap/refine/test_roadmap_refine_tracker.py`, `tests/roadmap/stage/test_roadmap_stage_module_test_order.py`, `tests/roadmap/stage/test_roadmap_stage_paths.py`, `tests/roadmap/stage/test_roadmap_stage_trace_subject.py`. Changes: `src/devops_cli/roadmap/project_review/functional.py` (new), `tests/roadmap/project_review/test_review_functional.py` (new), `src/devops_cli/lang/en/messages.py`. +Adds: `changelog_sections`, `functional_change` + +- [ ] 5.1 `tests/roadmap/project_review/test_review_functional.py::test_the_changelog_gives_the_functional_change_then_the_subjects` fails first: `functional_change` gives the `functional.change` fact with `section="changes"` from the Features and Bug Fixes sections of a `CHANGELOG.md` of the checkout with the source `changelog`, then from the feat and fix subjects of the window with the source `subjects`, and gives a skipped fact with `source="functional"` and a reason when both are empty + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_functional.py` fails on the base +- [ ] 5.2 Add `src/devops_cli/roadmap/project_review/functional.py` with `changelog_sections(text: str) -> list[str]` for the bullets under the `### Features` and `### Bug Fixes` headings of the first release (`## ...`) of `CHANGELOG.md`, and `functional_change(checkout: Path, window: ReviewWindow) -> Fact`, which reads `CHANGELOG.md` of the checkout, then the commits of the window with `commits(run_git(checkout, log_args(...)))` and `commit_type` of `src/devops_cli/roadmap/commit_title.py`, and gives the `functional.change` fact with `section=SECTION` (`"changes"`), list value and `n=len(items)` and source `changelog` or `subjects`, else a skipped fact with `source="functional"` and a reason; add the definition of `functional.change` and the reasons to `src/devops_cli/lang/en/messages.py` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_functional.py` passes + +## 6. Give the functional change from the merged pull request titles + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_review/functional.py`, `src/devops_cli/roadmap/project_review/catalog.yaml`, `src/devops_cli/roadmap/project_review/data.py`, `src/devops_cli/lang/en/messages.py`, `tests/roadmap/project_review/test_review_catalog.py`, `tests/lang/test_language_catalogs.py`, `tests/roadmap/implement/test_roadmap_implement_amend.py`, `tests/roadmap/refine/test_roadmap_refine_tracker.py`, `tests/roadmap/stage/test_roadmap_stage_module_test_order.py`, `tests/roadmap/stage/test_roadmap_stage_paths.py`, `tests/roadmap/stage/test_roadmap_stage_trace_subject.py`. Changes: `src/devops_cli/roadmap/project_review/functional.py`, `src/devops_cli/roadmap/project_review/catalog.yaml`, `src/devops_cli/lang/en/messages.py`, `tests/roadmap/project_review/test_review_functional.py`. + +- [ ] 6.1 `tests/roadmap/project_review/test_review_functional.py::test_the_changelog_gives_the_functional_change_then_the_subjects_then_the_pull_request_titles` fails first: `functional_change` given titles and an empty CHANGELOG and no feat or fix subject gives the fact with the source `pull_requests`, and `read_catalog` over `load_catalog()` evaluates `listing.merged_titles` to the merged titles (and `[]` with `n=0` and status `ok` when no pull request merged in the window) + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_functional.py` fails on the base +- [ ] 6.2 Give `functional_change` of `src/devops_cli/roadmap/project_review/functional.py` the argument `titles: Sequence[str] = ()`, and give the `functional.change` fact with the source `pull_requests` from the titles when the CHANGELOG and the subjects give none; add the `listing.merged_titles` fact to `src/devops_cli/roadmap/project_review/catalog.yaml` beside `listing.pulls_merged` (`query: repos/{repo}/issues?state=all`, `unit: pull requests`), returning a list of `.title` strings (`[]` when empty so status stays `ok` with `n` as `length`); add the definition and the reason to `src/devops_cli/lang/en/messages.py` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_functional.py` passes + +## 7. Record the functional change in the review + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_review/review.py`, `src/devops_cli/roadmap/project_review/data.py`, `src/devops_cli/roadmap/project_review/functional.py`, `src/devops_cli/roadmap/project_review/dispatch.py`, `tests/commands/test_roadmap_review.py`, `tests/roadmap/project_review/test_review_facts.py`, `tests/ai/review/test_review.py`, `tests/commands/test_review.py`, `tests/roadmap/project_review/test_review_catalog.py`, `tests/roadmap/project_review/test_review_dispatch.py`, `tests/roadmap/project_review/test_review_readers.py`, `tests/roadmap/project_review/test_review_window.py`. Changes: `src/devops_cli/roadmap/project_review/review.py`, `src/devops_cli/roadmap/project_review/data.py`, `tests/commands/test_roadmap_review.py`. + +- [ ] 7.1 `tests/commands/test_roadmap_review.py::test_a_run_records_the_functional_change_of_a_checkout_without_openspec` fails first: a run in the checkout of the recorded transcript with a `CHANGELOG.md` and no ok OpenSpec fact records the `functional.change` fact after `lizard.complexity` and before the catalog facts with the source `changelog`, `test_a_run_writes_data_json_under_the_data_directory_and_prints_it` holds `functional.change`, and a run with an ok `openspec.` fact omits `functional.change` + - Verification: `$ uv run devops ci test tests/commands/test_roadmap_review.py` fails on the base +- [ ] 7.2 In `run_review` of `src/devops_cli/roadmap/project_review/review.py`, after `read_catalog`, add the fact of `functional_change(checkout, window, titles)` to the git facts before the catalog facts when the catalog result holds no ok fact whose id starts with `openspec.`, with the titles of the ok `listing.merged_titles` fact; in `src/devops_cli/roadmap/project_review/data.py`, add `functional`, `changelog`, `subjects` and `pull_requests` to the description of `Fact.source`, state in `Fact.id` that `functional.change` names its kind there and its fallback in `source`, and state in `ReviewData.facts` that the functional change fact sits between the git facts and the catalog facts when no OpenSpec fact is ok; add `functional.change` to the exact fact list of `tests/commands/test_roadmap_review.py` before the catalog facts + - Verification: `$ uv run devops ci test tests/commands/test_roadmap_review.py` passes + +## 8. Skip the complexity rank when lizard reads no hot file + +Kind: behavior. Reads: `src/devops_cli/roadmap/project_review/facts.py`, `src/devops_cli/lang/en/messages.py`, `tests/roadmap/project_review/test_review_facts.py`, `tests/lang/test_language_catalogs.py`, `tests/roadmap/implement/test_roadmap_implement_amend.py`, `tests/roadmap/refine/test_roadmap_refine_tracker.py`, `tests/roadmap/stage/test_roadmap_stage_module_test_order.py`, `tests/roadmap/stage/test_roadmap_stage_paths.py`, `tests/roadmap/stage/test_roadmap_stage_trace_subject.py`. Changes: `src/devops_cli/roadmap/project_review/facts.py`, `src/devops_cli/lang/en/messages.py`, `tests/roadmap/project_review/test_review_facts.py`. + +- [ ] 8.1 `tests/roadmap/project_review/test_review_facts.py::test_a_shell_only_window_keeps_the_churn_rank_and_skips_the_complexity_rank` fails first: `complexity_fact` gives a skipped fact whose reason says that no hot file is one that lizard reads when `rows` holds a Shell file and lizard reads none of them (while empty `rows` stays `ok`), and `render_review` prints the skipped reason alongside `git.hotspots` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_facts.py` fails on the base +- [ ] 8.2 In `complexity_fact` of `src/devops_cli/roadmap/project_review/facts.py`, return a skipped fact with the new text when `rows` is non-empty and `read` is empty, so empty `rows` keeps `ok` `[]`, `git.hotspots` keeps the churn rank and `render_review` prints the reason; add the text to `src/devops_cli/lang/en/messages.py` + - Verification: `$ uv run devops ci test tests/roadmap/project_review/test_review_facts.py` passes + +## 9. Document the review traits and the functional change fallback + +Kind: other. Reads: `docs/ROADMAP_WORKFLOW.md`, `src/devops_cli/roadmap/project_review/catalog.yaml`. Changes: `docs/ROADMAP_WORKFLOW.md`. + +- [ ] 9.1 Add the paragraph on the review traits to `docs/ROADMAP_WORKFLOW.md` + - Verification: `$ uv run devops ci docs` passes +- [ ] 9.2 Edit `docs/ROADMAP_WORKFLOW.md` to state the review tag pattern of the roadmap file of a repository with the default `v*`, the functional change from the OpenSpec facts then the CHANGELOG sections then the feat and fix subjects then the merged pull request titles, the churn-only hotspots of a repository that lizard cannot read, and the dry-run listing of each repository of `service.repos` with the reason of each unset setting and the condition of each other fact + - Verification: `$ uv run devops ci docs` passes + +## Criteria + +- Group 3: A fixture repository with no tags refuses a version window, with a message that names `tag_pattern`. +- Group 7: A repository with no `openspec/` takes its functional change from the CHANGELOG. +- Group 8: A Shell-only repository gets churn-only hotspots with a note. +- Group 1: `--dry-run` for each of the 7 `service.repos` lists the sections and the skipped reasons. + +## Workflow follow-up + +- Pending a person: review the diff in tuicr (tuicr -r ..HEAD).