Repository navigation
chore: prune feature-map bloat, style-heuristic gates, orphan goldens, and legacy mirror script - #2979
Merged
Conversation
…, and legacy mirror script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cut 9,583 lines of feature-map bloat, heuristic shape gates, orphan goldens, and an unused 2.x mirror script.
Runtime behavior, Labs gating, settings recovery, and the 1,500-line non-test file size ceiling are unchanged.
scripts/setup.shis intentionally left for a tiny follow-up because removing its workflow calls touches.github/workflows/(@thdxr).❌ Before
docs/features/README.md(3,960 lines) anddocs/features/labs.md(5,131 lines) hand-duplicated the Labs registry, pasted a dated test log, and required prose updates on unrelated work.scripts/code-shape.pyandsrc/code_shape_tests.rsblocked commits on folder-count limits, filename prefix-family heuristics, and regex design-token literals backed by exception lists, and kept stale ceilings for files already below 1,500 lines.AGENTS.mdrequired bumping four Rune pins and Nix hashes at the start of every work round.rune-modes-speech-{dark,light}.png) and the legacy 2.xscripts/publish-app-mirror.shremained in tree.✅ After
docs/features/README.md(97 lines) is a scannable capability and wire-spec index preserving incoming anchors (#get-ready,#other-platforms-and-consumers), anddocs/features/labs.md(145 lines) documents the Labs contract while pointing tosrc/labs/feature.rsandsite/src/labs.jsonas the single source of truth.scripts/code-shape.pyandsrc/code_shape_tests.rsenforce only non-test file size limits (warn >800, hard fail >1,500, ratcheted inscripts/file-size-exceptions.txtwith stale entries removed);scripts/design-token-exceptions.txtandscripts/folder-shape-exceptions.txtare deleted.AGENTS.mdscopes Rune pin bumps to dedicated dependency PRs or tasks that need a Rune fix, and scopes feature-map updates to user-facing behavior or contract changes.rune-modes-speech-{dark,light}.pnggoldens andscripts/publish-app-mirror.share deleted.🟰 Behavior change: none.
📊 Numbers: exact tracked-file deltas from
git diff --statdocs/features/README.mddocs/features/labs.mdscripts/code-shape.py+src/code_shape_tests.rsscripts/file-size-exceptions.txtceilingsrune-modes-speech-*)👀 Read:
scripts/code-shape.pyandsrc/code_shape_tests.rsto verify both keep the 1,500-line non-test ceiling and inline#[cfg(test)]exclusion while dropping the regex token, folder-count, and prefix-family blockers. The rest is routine.🔍 Found in a code audit · no user reports · measured from git diff and local test runs
Checks run
python3 scripts/code-shape.py --check: exit 0 (1198 source files: no hard problems; 139 files over 800 lines, 34 test files over 1,000 lines (13 excepted))scripts/check labs code_shape_tests: 67 passed, 4,105 skippedcargo clippy --locked --bin hex -- -D warnings: exit 0docs/features/README.mdanddocs/features/labs.md: all validrgcheck for deleted goldens, mirror script, and removed exception files: 0 references