Skip to content

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

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/migration-completeness-manifest
Apr 26, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/migration-completeness-manifest

Conversation

@Sinity

@Sinity Sinity commented Apr 26, 2026

Copy link
Copy Markdown
Owner

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 (refactor: retire public audit qa showcase surfaces #413) and retire-inbox-source (feat(cli): support transient input paths in run pipeline #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 (feat(devtools): make architectural cohesion executable #429): every file at a known target path.
  2. Cohesion (feat(devtools): make architectural cohesion executable #429): proposed subpackages don't have cross-cluster cycles.
  3. Size (feat(devtools): file-size budgets per package and module #435): per-file LOC budgets with sunset exceptions.
  4. Coverage (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) 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

@coderabbitai

coderabbitai Bot commented Apr 26, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 43 minutes and 15 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 43 minutes and 15 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4acacdf5-d316-4442-8f85-723a8f0576c8

📥 Commits

Reviewing files that changed from the base of the PR and between 997f4d8 and 32e174d.

📒 Files selected for processing (7)
  • devtools/command_catalog.py
  • devtools/verify.py
  • devtools/verify_migrations.py
  • docs/devtools.md
  • docs/plans/migrations.yaml
  • tests/unit/devtools/test_verify.py
  • tests/unit/devtools/test_verify_migrations.py
✨ 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: 4aa079a2ee

ℹ️ 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_file_budgets.py Resolved
Comment thread devtools/verify_migrations.py Resolved
Comment thread devtools/verify_test_ownership.py Resolved
@Sinity
Sinity force-pushed the feature/feat/test-ownership-manifest branch from d02238a to 2062796 Compare April 26, 2026 10:43
Base automatically changed from feature/feat/test-ownership-manifest to master April 26, 2026 10:56
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 force-pushed the feature/feat/migration-completeness-manifest branch from 4aa079a to 32e174d Compare April 26, 2026 11:00
@Sinity
Sinity merged commit 5bb0c25 into master Apr 26, 2026
13 checks passed
@Sinity
Sinity deleted the feature/feat/migration-completeness-manifest branch April 26, 2026 11:15
@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. 3 finding(s) confirmed still present → tracked in #547.

@Sinity
Sinity requested review from Copilot and removed request for Copilot May 1, 2026 00:44
@Sinity
Sinity removed the request for review from Copilot May 1, 2026 02:15
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.

feat(devtools): migration-completeness manifest for retirement work

1 participant