Repository navigation
Conversation
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]>
|
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: c10eba4ebb
ℹ️ 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".
## Summary Closes #435. Reopens the work from #439 (auto-closed when its base branch was deleted by #438's merge). Adds the second evidence-driven structural lint after #429 (topology). Catches file accretion early. ## Problem Polylogue has several modules and tests that grew past sustainable size: `pipeline_probe.py` (1,468 LOC), `proof/runners.py` (1,339 LOC), several test files at 2,000+ LOC. Issue #419 splits the worst offenders, but nothing prevents the next file from accreting in the same shape. ## Solution Same shape as #429: a declarative YAML manifest plus a small lint that walks the realized tree. - **`docs/plans/file-size-budgets.yaml`**: defaults (source 1100, test 1500); per-package ceilings for `devtools/`, `polylogue/proof/`, `polylogue/pipeline/services/`, `polylogue/operations/`, `polylogue/storage/`, `tests/infra/`; nine exceptions naming sunset issues (#403, #419). - **`devtools/verify_file_budgets.py`** (~150 LOC): 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` after `verify-topology`. - `tests/unit/devtools/test_verify_file_budgets.py`: parser round-trip, resolution-order, and "committed budgets are clean" smoke test. ## Verification ``` $ devtools verify-file-budgets file-size budgets: clean $ devtools verify --quick verify: all checks passed (incl. verify-topology, verify-file-budgets) $ pytest tests/unit/devtools/test_verify_file_budgets.py 3 passed ``` ## Context Previously stacked on `feature/feat/topology-cohesion-executable`; rebased to master after #438 merged. Refs #401, #419, #429, #435. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added `devtools verify-file-budgets` command to enforce per-file line-of-code budgets defined in a configuration file * Supports JSON output format and policy configuration with per-package overrides and temporary exceptions * **Documentation** * Added documentation for the new file budget verification command * **Tests** * Added tests for file budget verification functionality <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
## Summary Closes #435. Reopens the work from #439 (auto-closed when its base branch was deleted by #438's merge). Adds the second evidence-driven structural lint after #429 (topology). Catches file accretion early. ## Problem Polylogue has several modules and tests that grew past sustainable size: `pipeline_probe.py` (1,468 LOC), `proof/runners.py` (1,339 LOC), several test files at 2,000+ LOC. Issue #419 splits the worst offenders, but nothing prevents the next file from accreting in the same shape. ## Solution Same shape as #429: a declarative YAML manifest plus a small lint that walks the realized tree. - **`docs/plans/file-size-budgets.yaml`**: defaults (source 1100, test 1500); per-package ceilings for `devtools/`, `polylogue/proof/`, `polylogue/pipeline/services/`, `polylogue/operations/`, `polylogue/storage/`, `tests/infra/`; nine exceptions naming sunset issues (#403, #419). - **`devtools/verify_file_budgets.py`** (~150 LOC): 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` after `verify-topology`. - `tests/unit/devtools/test_verify_file_budgets.py`: parser round-trip, resolution-order, and "committed budgets are clean" smoke test. ## Verification ``` $ devtools verify-file-budgets file-size budgets: clean $ devtools verify --quick verify: all checks passed (incl. verify-topology, verify-file-budgets) $ pytest tests/unit/devtools/test_verify_file_budgets.py 3 passed ``` ## Context Previously stacked on `feature/feat/topology-cohesion-executable`; rebased to master after #438 merged. Refs #401, #419, #429, #435. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added `devtools verify-file-budgets` command to enforce per-file line-of-code budgets defined in a configuration file * Supports JSON output format and policy configuration with per-package overrides and temporary exceptions * **Documentation** * Added documentation for the new file budget verification command * **Tests** * Added tests for file budget verification functionality <!-- end of auto-generated comment: release notes by coderabbit.ai --> 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. |
Summary
Closes #435. Adds the third evidence-driven structural lint after #429 (topology). Catches file accretion early — a new module that grows past its declared ceiling fails the next commit.
Problem
Polylogue has several modules and tests that grew past sustainable size:
pipeline_probe.py(1,468 LOC),proof/runners.py(1,339 LOC), several test files at 2,000+ LOC. #419 splits the worst offenders, but nothing prevents the next file from accreting in the same shape.Solution
Same shape as #429: a declarative YAML manifest plus a small lint that walks the realized tree.
docs/plans/file-size-budgets.yaml: defaults (source 1100, test 1500); per-package ceilings fordevtools/,polylogue/proof/,polylogue/pipeline/services/,polylogue/operations/,polylogue/storage/,tests/infra/; nine exceptions naming sunset issues (refactor: rationalize source and test module structure #403, refactor(tests): split oversized contract suites #419).devtools/verify_file_budgets.py(~150 LOC): walkspolylogue/,devtools/,tests/. Resolves ceilings via exception → per-package → default. Reports overages with file path, current LOC, and ceiling source.devtools verify --quick.tests/unit/devtools/test_verify_file_budgets.py: parser round-trip, resolution-order, and a "committed budgets are clean" smoke test.Verification
Stacked on
Based on
feature/feat/topology-cohesion-executable(#438). When #438 merges, base auto-updates tomaster.Refs #401, #419, #429, #435.
🤖 Generated with Claude Code