Skip to content

feat(devtools): migration-completeness manifest - #441

Closed
Sinity wants to merge 3 commits into
feature/feat/test-ownership-manifestfrom
feature/feat/migration-completeness-manifest
Closed

Sinity wants to merge 3 commits into
feature/feat/test-ownership-manifestfrom
feature/feat/migration-completeness-manifest

Conversation

@Sinity

@Sinity Sinity commented Apr 26, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #434. Fifth and final evidence-driven structural lint completing the pattern established by #429 (topology), #435 (file-size), #437 (test-ownership).

Problem

Retirement issues like #413 ("retire public audit/qa/showcase surfaces") describe what must vanish in prose: paths, CLI commands, devtools commands. Today reviewers eyeball polylogue --help after the PR. There is no machine-checkable assertion that every targeted item has actually disappeared.

Solution

Same shape as the prior four lints: declarative YAML + a small subprocess-based lint.

  • docs/plans/migrations.yaml: each named migration declares must_vanish_paths, must_vanish_cli_commands, must_vanish_devtools_commands, forbidden_substrings, and accepted_aliases. Seeded with retire-audit-qa-showcase (refactor: retire public audit qa showcase surfaces #413) and a placeholder for retire-inbox-source (feat(cli): support transient input paths in run pipeline #409).
  • devtools/verify_migrations.py (~200 LOC): for each migration, checks file-existence, scans polylogue --help and devtools --list-commands output, scans for forbidden substrings under glob patterns. Reports per-migration findings.
  • Default mode is informational so landing the manifest does not gate every PR — until a migration is actively in flight, it shows surviving entries as [info]. Use --strict <name> to promote a specific migration to blocking when it's the focus of work.
  • Wired into devtools verify --quick.

Verification

$ devtools verify-migrations
[info] retire-audit-qa-showcase (#413): 5 surviving
    surviving_paths: devtools/verify_showcase.py
    surviving_paths: polylogue/cli/commands/qa.py
    surviving_paths: tests/baselines/showcase/help-audit.txt
    surviving_cli_commands: audit
    surviving_devtools_commands: verify-showcase
[info] retire-inbox-source (#409): complete
blocking=False

$ devtools verify-migrations --strict retire-audit-qa-showcase
exit 1  # would block #413's PR until findings are resolved

$ devtools verify --quick
verify: all checks passed (incl. all five lints)

$ pytest tests/unit/devtools/test_verify_migrations.py
5 passed

Pattern complete

This lands the fifth in the evidence-driven structural specification track:

  1. Placement (feat(devtools): make architectural cohesion executable (Phase 1 of #429) #438 / feat(devtools): make architectural cohesion executable #429): every file is at a known target path.
  2. Cohesion (feat(devtools): make architectural cohesion executable (Phase 1 of #429) #438 / feat(devtools): make architectural cohesion executable #429 cluster check): proposed subpackages don't have cross-cluster cycles.
  3. Size (feat(devtools): file-size budgets per package and module #439 / feat(devtools): file-size budgets per package and module #435): per-file LOC budgets with sunset exceptions.
  4. Coverage (feat(devtools): test-ownership manifest with import-resolution #440 / feat(devtools): test-ownership manifest #437): every production module imported by ≥1 unit test.
  5. Retirement (this / feat(devtools): migration-completeness manifest for retirement work #434): named migrations vanish what they claim.

The pattern (declarative YAML + lint + tracked exceptions with sunset issues) generalizes; future architectural claims can reuse it.

Stacked on

Based on feature/feat/test-ownership-manifest (#440), which chains through #439 → #438 to master. Merge order: #438 → #439 → #440 → this.

Refs #401, #413, #429, #434.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Apr 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8d357a69-f29f-4aae-97f4-20c63d0c66d8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/migration-completeness-manifest

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60edd7ee73

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread devtools/verify_migrations.py Resolved
Comment thread devtools/verify_migrations.py Resolved
@Sinity
Sinity force-pushed the feature/feat/test-ownership-manifest branch from 9023679 to d02238a Compare April 26, 2026 06:19
Sinity and others added 3 commits April 26, 2026 08:20
Closes #435.

Adds the third evidence-driven structural lint after #429 (topology) and
the topology cluster-cohesion check. Catches file accretion early — a new
module that grows past its declared ceiling fails the next commit.

- docs/plans/file-size-budgets.yaml: defaults (source 1100, test 1500)
  plus per-package ceilings for devtools/, polylogue/proof/,
  polylogue/pipeline/services/, polylogue/operations/, polylogue/storage/,
  tests/infra/. Nine exceptions name a sunset issue (#403, #419) and will
  fail the lint when their issue closes.
- devtools/verify_file_budgets.py: walks polylogue/, devtools/, tests/;
  resolves ceilings via exception → per-package → default; reports
  overages with file path, current LOC, and ceiling source.
- Wired into devtools verify --quick alongside verify-topology.

Pattern reuse from #429: declarative YAML + lint + tracked exceptions
with sunset issues. Same shape will land for #436 (mypy coverage),
#437 (test ownership), #434 (migration completeness).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Closes #437.

Adds the fourth evidence-driven structural lint after #429 (topology) and
#435 (file-size). Verifies each production module is imported by at least
one unit test.

- docs/plans/test-ownership.yaml: untested[] (modules legitimately not
  needing unit tests, with justification) plus shared[] (cross-cutting
  test infrastructure that does not own one production module).
- devtools/verify_test_ownership.py: AST-based import resolution. For
  each production module under polylogue/ or devtools/, verifies at
  least one unit test imports it. Reports uncovered modules (blocking),
  stale untested entries (blocking), and orphan tests (warning).
- Wired into devtools verify --quick alongside verify-topology and
  verify-file-budgets.

Currently 0 uncovered production modules across 674 production files
(polylogue + devtools). Four orphan tests are explicitly listed in
shared: with reasons (structural test, terminal-snapshot, growth budget,
entrypoints runtime).

Pattern reuse from #429: declarative YAML + lint + tracked exceptions.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Closes #434.

Adds the fifth and final evidence-driven structural lint after #429
(topology), #435 (file-size), and #437 (test-ownership). Verifies that
named retirement migrations actually delete what they claim to delete.

- docs/plans/migrations.yaml: declarative list of named migrations,
  each with must_vanish_paths, must_vanish_cli_commands,
  must_vanish_devtools_commands, forbidden_substrings, and accepted
  aliases. Seeded with the retire-audit-qa-showcase migration (#413)
  and a placeholder for retire-inbox-source (#409).
- devtools/verify_migrations.py: subprocess + path-existence + import
  scan against each migration spec. Default mode is informational so
  landing the manifest does not gate every PR; --strict <name>
  promotes a specific migration to blocking once it's in flight.
- Wired into devtools verify --quick alongside the other lints.

Pattern reuse complete: declarative YAML + lint + tracked exceptions
across topology placement (#429), file-size (#435), test-ownership
(#437), and now retirement (#434). Every structural-cohesion claim
the topology refactors carry is now CI-checkable.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@Sinity

Sinity commented Apr 26, 2026

Copy link
Copy Markdown
Owner Author

Replacing with new PR after rebase chain reset; same content, new base.

@Sinity Sinity closed this Apr 26, 2026
@Sinity
Sinity force-pushed the feature/feat/migration-completeness-manifest branch from 60edd7e to 4aa079a Compare April 26, 2026 06:25
Sinity added a commit that referenced this pull request Apr 26, 2026
## Summary

Closes #434. Replaces #441 (closed after the rebase chain reset). Fifth
and final evidence-driven structural lint completing the pattern
established by #429 (topology), #435 (file-size), #437 (test-ownership).

## Problem

Retirement issues like #413 declare what must vanish in prose. Reviewers
eyeball `polylogue --help` after the PR. There is no machine-checkable
assertion that every targeted item has actually disappeared.

## Solution

Same shape as the prior four lints: declarative YAML + a small
subprocess-based lint.

- **`docs/plans/migrations.yaml`**: each named migration declares
`must_vanish_paths`, `must_vanish_cli_commands`,
`must_vanish_devtools_commands`, `forbidden_substrings`,
`accepted_aliases`. Seeded with `retire-audit-qa-showcase` (#413) and
`retire-inbox-source` (#409).
- **`devtools/verify_migrations.py`** (~200 LOC): file-existence +
subprocess scans of `polylogue --help` and `devtools --list-commands` +
forbidden-substring globs.
- Default mode is informational; `--strict <name>` promotes a migration
to blocking when it's in flight.
- Wired into `devtools verify --quick`.

## Verification

```
$ devtools verify-migrations
[info] retire-audit-qa-showcase (#413): 5 surviving
    surviving_paths: devtools/verify_showcase.py
    surviving_cli_commands: audit
    surviving_devtools_commands: verify-showcase
[info] retire-inbox-source (#409): complete

$ devtools verify-migrations --strict retire-audit-qa-showcase
exit 1  # would block #413's PR until findings are resolved

$ devtools verify --quick
verify: all checks passed (incl. all 8 lints)

$ pytest tests/unit/devtools/test_verify_migrations.py
5 passed
```

## Pattern complete

Five evidence-driven structural specifications now land:
1. **Placement** (#429): every file at a known target path.
2. **Cohesion** (#429): proposed subpackages don't have cross-cluster
cycles.
3. **Size** (#435): per-file LOC budgets with sunset exceptions.
4. **Coverage** (#437): every production module imported by ≥1 unit
test.
5. **Retirement** (this / #434): named migrations vanish what they
claim.

The pattern (declarative YAML + lint + tracked exceptions with sunset
issues) is reusable for any future architectural claim.

## Stacked on

Based on `feature/feat/test-ownership-manifest` (#450) →
`feature/feat/file-size-budgets` (#442) → master. Merge order: #442 →
#450 → this.

Refs #401, #413, #429, #434, #441 (closed predecessor).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@Sinity

Sinity commented Apr 28, 2026

Copy link
Copy Markdown
Owner Author

🤖 Post-hoc audit note: this PR received bot review feedback verified against current HEAD as part of #544. 2 finding(s) confirmed still present → tracked in #547.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sinity added a commit that referenced this pull request May 7, 2026
## Summary

Closes #434. Replaces #441 (closed after the rebase chain reset). Fifth
and final evidence-driven structural lint completing the pattern
established by #429 (topology), #435 (file-size), #437 (test-ownership).

## Problem

Retirement issues like #413 declare what must vanish in prose. Reviewers
eyeball `polylogue --help` after the PR. There is no machine-checkable
assertion that every targeted item has actually disappeared.

## Solution

Same shape as the prior four lints: declarative YAML + a small
subprocess-based lint.

- **`docs/plans/migrations.yaml`**: each named migration declares
`must_vanish_paths`, `must_vanish_cli_commands`,
`must_vanish_devtools_commands`, `forbidden_substrings`,
`accepted_aliases`. Seeded with `retire-audit-qa-showcase` (#413) and
`retire-inbox-source` (#409).
- **`devtools/verify_migrations.py`** (~200 LOC): file-existence +
subprocess scans of `polylogue --help` and `devtools --list-commands` +
forbidden-substring globs.
- Default mode is informational; `--strict <name>` promotes a migration
to blocking when it's in flight.
- Wired into `devtools verify --quick`.

## Verification

```
$ devtools verify-migrations
[info] retire-audit-qa-showcase (#413): 5 surviving
    surviving_paths: devtools/verify_showcase.py
    surviving_cli_commands: audit
    surviving_devtools_commands: verify-showcase
[info] retire-inbox-source (#409): complete

$ devtools verify-migrations --strict retire-audit-qa-showcase
exit 1  # would block #413's PR until findings are resolved

$ devtools verify --quick
verify: all checks passed (incl. all 8 lints)

$ pytest tests/unit/devtools/test_verify_migrations.py
5 passed
```

## Pattern complete

Five evidence-driven structural specifications now land:
1. **Placement** (#429): every file at a known target path.
2. **Cohesion** (#429): proposed subpackages don't have cross-cluster
cycles.
3. **Size** (#435): per-file LOC budgets with sunset exceptions.
4. **Coverage** (#437): every production module imported by ≥1 unit
test.
5. **Retirement** (this / #434): named migrations vanish what they
claim.

The pattern (declarative YAML + lint + tracked exceptions with sunset
issues) is reusable for any future architectural claim.

## Stacked on

Based on `feature/feat/test-ownership-manifest` (#450) →
`feature/feat/file-size-budgets` (#442) → master. Merge order: #442 →
#450 → this.

Refs #401, #413, #429, #434, #441 (closed predecessor).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants