Skip to content

chore: prune dead modules, fixtures, and stale docs across repo - #3180

Merged
kitlangton merged 2 commits into
devfrom
hex-repo-prune
Dec 1, 2026
Merged

kitlangton merged 2 commits into
devfrom
hex-repo-prune

Conversation

@kitlangton

@kitlangton kitlangton commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Removes dead capture modules, unused scripts and fixtures, duplicate documentation, and rustfmt drift across the repository.
Desktop builds no longer compile the unused autocrop playground or standalone HTTP client in crates/capture, and Linux CI formatting checks pass again. All shipped app features, Labs gates, release notes, and scene goldens are unchanged.

❌ Before

  1. crates/capture compiled an uncalled 1,311-line autocrop playground (with a 202 KB embedded HTML/JSON corpus) and carried an unused external HTTP client behind an inactive feature flag.
  2. Twenty-four orphan scripts, fixtures, icons, and one-off perf reports remained in the tree alongside four duplicate READMEs, three unused direct Cargo dependencies, and unratcheted file-size ceilings.
  3. Test fixtures and docs still contained local hostnames, personal home paths, dated run logs, and two rustfmt drift lines in src/local_api.rs and src/transcription/speech_detector.rs.

✅ After

  1. Dead crates/capture playground/client modules, no-op Cargo feature flags, and three unused direct dependencies are removed, and tokio is unified on a single workspace version.
  2. Orphan scripts, fixtures, icons, and duplicate READMEs are retired or folded into their canonical docs, and scripts/file-size-exceptions.txt ratchets six ceilings down by 369 lines.
  3. Test fixtures and docs use generic placeholder paths and hosts, and cargo fmt --all --check passes cleanly.

🟰 Behavior change: none.

- crates/capture: autocrop_lab.rs + playground HTML/JSON + hex.rs + 6 no-op features
- Cargo.toml: 3 unused direct deps + split tokio versions + 2 rustfmt diffs
+ crates/capture: only live Annotate capture modules and active mic feature
+ Cargo.toml + docs + tests: unified deps, ratcheted ceilings, generic test fixtures

📊 Numbers: git diff origin/dev across the repository

Measure Before After
Retired files 28 dead / duplicate files 0
Net lines baseline −4,314 (+396 / −4,710)
Repository weight baseline −405.6 KiB (−415,316 B)
File-size exception ceilings baseline −369 lines across 6 files

Existing unit, integration, and site suites cover the touched modules: 1,973 Rust nextest cases, 2 console tests, 14 Nix pin tests, and 62 site tests pass.

👀 Read: crates/capture/src/transcribe.rs and crates/capture/Cargo.toml, where the inactive hex-client feature branches and dead feature flags were removed while keeping the fallback transcription path intact. The rest is routine.

🔍 Found in a repository-wide code and docs audit · no user reports · measured with git diff and scripts/code-shape.py

Checks run
  • cargo fmt --all -- --check: pass
  • python3 scripts/code-shape.py --check: pass (0 hard problems, 12 exceptions ratcheted)
  • python3 scripts/test-check-nix-git-pins.py && python3 scripts/check-nix-git-pins.py: 14 pass, 3/3 Git pins match
  • cargo clippy --locked --bin hex -- -D warnings: pass (0 warnings)
  • cargo clippy --locked -p hex@3.5.2 -p scrawl-router -p scrawl-capture -p capture-core --all-targets -- -D warnings: pass (0 warnings)
  • cargo clippy --locked -p hex-console --all-targets -- -D warnings && cargo test --locked -p hex-console: 2 pass
  • scripts/check capture_host dictation rune_ui labs control::settings opencode_service hex_microphone feedback speech_detector local_api routing transcribe personal_commands ax web: 1,973 pass
  • cd site && bun test: 62 pass

@kitlangton
kitlangton merged commit 1b4a18e into dev Dec 1, 2026
4 checks passed
@kitlangton
kitlangton deleted the hex-repo-prune branch December 1, 2026 00:21
opencodejr Bot added a commit that referenced this pull request Dec 1, 2026
#3180 removed scrawl-capture's `helper` feature, but build.rs still
compiled the Swift helper only when CARGO_FEATURE_HELPER was set, so
target/release/scrawl-helper was never produced and build-app.sh failed
to copy it into the bundle. Compile it on every macOS build.

Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
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.

1 participant