Skip to content

refactor: remove demo seeding and modules nothing imports - #6771

Merged
hurttlocker merged 1 commit into
mainfrom
del/zero-importers
Nov 24, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
del/zero-importers

Conversation

@hurttlocker

Copy link
Copy Markdown
Collaborator

Removes the demo fleet data and its seed script, plus 61 modules that no route, page, CLI command, script, bundle entry or other module imports. The owner cut this on 2026-11-24.

Removed

  • src/lib/demo (the demo fleet) and scripts/seed-demo-state.mjs.
  • The retired UI loop and its proof writer, tile operations, the json-render catalog and its demo specs, and the first-merge onboarding helper.
  • The realtime client store, two unused src/app/broadcast components (BroadcastStage, TruthPanel), and the unused src/lib/mobile barrel and pending queue. No mobile route imports either.
  • Unused barrels and other leftovers.
  • Tests that covered only these modules, and the canvas ui-loop-proof verb, which nothing handled.

TS: −6,764 lines net. Rust: none. No module removed here was loaded at server startup: src/ws-server.ts imports none of them. No loops or timers removed.

Kept

Modules that only tests import, where those tests also exercise live code, stay for a follow-up. Database tables and data files are unchanged.

How the zero-importer check works

Every deleted path was checked against static imports, import(), require, vi.mock and path strings across src, cli, scripts, tests, apps and native. The check was re-run after rebasing on c98f8c54d.

Verification

  • npm run typecheck:fast and tsc -p cli/tsconfig.json pass.
  • The nine enumerating real-path suites plus o8d-packet-steer-owner-real-path, against an o8d built from this branch: 10 of 10 files and 306 tests passed, 5 skipped. The skips are the three Real-path suites drifted on main because they only run when their own files change #6761 quarantines and two platform skips.
  • npm run verify:ci: Lint, Type Check, Test Classification, Hermetic Unit Tests, Server Bundle Size, Security Audit and Governance Smoke pass.
    • Integration (changed files) fails locally on one gate only: api-front-door requires 15 GiB free disk, and this machine has about 7 GiB. With the gate lowered for a local run, that suite passed with the run above.

🤖 Generated with Claude Code

Removes the demo fleet data and its seed script, and modules that no
route, page, CLI command, script, bundle entry or other module imports:
unused barrels, the retired UI loop and its proof writer, tile
operations, the json-render catalog, the first-merge onboarding helper,
the realtime client store, and other leftovers. Tests that covered only
these modules go with them, as does the canvas `ui-loop-proof` verb that
nothing handled.

Modules that only tests import but that those tests use alongside live
code stay for a follow-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hurttlocker hurttlocker added the tests-removed-ok Human-reviewed: test deletions/assertion loss are intentional label Nov 24, 2026
@github-actions github-actions Bot added the size/XL Pull request with XL diff size label Nov 24, 2026
@github-actions

Copy link
Copy Markdown

🔍 PR Review Bot

Metric Value
Files changed 70
Additions +2
Deletions -6801
New files 0

⚠️ Large files (>300 lines changed)

  • scripts/seed-demo-state.mjs — +0/-441
  • src/lib/orchestrator/participant-projection.ts — +0/-312
  • src/lib/orchestrator/ui-loop.ts — +0/-726
  • src/lib/tiles/operations.ts — +0/-647
  • src/lib/workflows/templates/sentry-triage-pr.ts — +0/-485
  • tests/ui-loop-budgets-real-path.test.ts — +0/-367

Note: This PR touches 70 files. Consider splitting into smaller PRs.


Automated review — CI workflow

@github-actions

Copy link
Copy Markdown

📝 o8.run docs may need updating

This PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):

  • The Brain the-brain — tracks src/lib/cortex/qa/compose-prompts.test.ts, src/lib/cortex/qa/compose-prompts.ts, src/lib/cortex/indexer/index.ts

Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited.

@hurttlocker
hurttlocker added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 2398dfa Nov 24, 2026
36 of 37 checks passed
@hurttlocker
hurttlocker deleted the del/zero-importers branch November 24, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Pull request with XL diff size tests-removed-ok Human-reviewed: test deletions/assertion loss are intentional

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant