Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 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".
9023679 to
d02238a
Compare
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]>
|
Replacing with new PR after rebase chain reset; same content, new base. |
60edd7e to
4aa079a
Compare
## 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]>
## 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]>
|
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. |
|
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. |
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 --helpafter 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 declaresmust_vanish_paths,must_vanish_cli_commands,must_vanish_devtools_commands,forbidden_substrings, andaccepted_aliases. Seeded withretire-audit-qa-showcase(refactor: retire public audit qa showcase surfaces #413) and a placeholder forretire-inbox-source(feat(cli): support transient input paths in run pipeline #409).devtools/verify_migrations.py(~200 LOC): for each migration, checks file-existence, scanspolylogue --helpanddevtools --list-commandsoutput, scans for forbidden substrings under glob patterns. Reports per-migration findings.[info]. Use--strict <name>to promote a specific migration to blocking when it's the focus of work.devtools verify --quick.Verification
Pattern complete
This lands the fifth in the evidence-driven structural specification track:
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