Skip to content

Audit and debloat the codebase - #99

Merged
poitee merged 34 commits into
mainfrom
cleanup/audit-debloat
Sep 28, 2026
Merged

poitee merged 34 commits into
mainfrom
cleanup/audit-debloat

Conversation

@poitee

@poitee poitee commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Audit and cleanup of the whole repo. Behavior is unchanged except for three small fixes listed below. About 13,300 fewer lines (20,255 deleted, 6,945 added, lockfile excluded); about 5,700 of the added lines are code moved into new files unchanged. npm run quality passes, and local npm test now exits clean on macOS, which it did not on main.

What changed

Dead code

  • About 270 exports nothing imported, plus the code only they kept alive. Found with knip, then deleted in a loop until tsc (noUnusedLocals) reported nothing.
  • The in-app advisor leftovers: tool-loop.ts and its helpers, system prompt, feedback scoring and token budget. /assistant/chat has returned 410 since the advisor was removed; MCP uses invokeAssistantTool and applyAssistantAction, which keep their tests.
  • Eight web components and hooks and 89 functions and API clients that no screen or server path called, with the 117 tests that covered only them. A before/after comparison of test names per file confirmed no removed test covered live code.
  • The api/engine.ts re-export barrel, the unused RepoSource and AuthProvider ports, a dead path-hints fallback, and two unreferenced scripts.

Structure

  • Migration DDL moved out of db/schema.ts (2,859 to 1,189 lines) and db/client-postgres.ts (2,015 to 194). The job runner moved from routes/jobs.ts to services/job-runner.ts. Assistant tool specs moved to assistant/tool-specs.ts. All moves are line-for-line.
  • About 15 copies of an object guard became lib/guards.ts. Two identical save-flush contexts became one. Web copies of domain helpers and contract types now import the originals. About 170 lines of unused CSS removed.

Docs

  • 14 dated audit, research and verification notes with no inbound links removed (git keeps them). Orphan guides and the ADRs are now indexed in docs/README.md.

Fixes

  • Nine Preview3D tests on main failed because the test's fake renderer could not back the new reflection map. Six server tests failed on macOS only (/var is a symlink to /private/var). Both fixed in the tests.
  • Backup, API key and logging settings called fetch with bare paths, so an expired session never reached the app-wide re-login handler. They now use the shared transport. A new test fails on the old code.
  • Each health poll sent two /health requests; it now sends one.

Guardrail

  • npm run quality now runs knip (npm run lint:dead), which fails on unused exports, files and undeclared dependencies. It runs with --no-gitignore because the root .gitignore excludes build/ and re-includes src/components/build, which knip does not honor.

Verification

lint, knip, typecheck, npm test (contracts 101, domain 141, web 1313, server 2146), workflow smoke, build, runtime and browser tests all pass.

Reviewer notes

  • Commits are ordered so each slice reverts on its own. The largest deletions are in their own commits.
  • Kept on purpose: docs/kit-catalog.yaml (the Voron drop-in example catalog), web/README.md, and the path-sanitizer variants (their rules differ).

🤖 Generated with Claude Code


Note

Medium Risk
Very large deletion and module moves could hide missed callers despite quality gates; the few auth/transport fixes touch session handling on settings routes.

Overview
This PR is a repo-wide debloat and hygiene pass (~13k net lines removed) that deletes unused exports, tests, web UI, assistant prompt/loop code, the api/engine barrel, and unused server ports (RepoSource, AuthProvider), while moving migration DDL, the job runner, and assistant tool specs into smaller modules and deduplicating shared guards/helpers.

Docs drop 14+ stale audit/research/verification notes and Cursor verify artifacts; docs/README.md is reindexed (ADRs, new guides), and manifest path-hint links now point at web/apps/server/src/data/path-hints.yaml.

Guardrails: npm run quality adds knip (lint:dead) to fail on unused exports/files/deps.

Small behavior fixes: backup/API-key/logging settings use the shared API transport so session expiry triggers re-login; health polling uses one /health request; Preview3D and macOS path tests are repaired.

Reviewed by Cursor Bugbot for commit 5f637a9. Bugbot is set up for automated code reviews on this repo. Configure here.

poitee and others added 30 commits September 27, 2026 11:38
ee5cd2b added a room environment map built with PMREMGenerator. The
accessibility test's fake WebGLRenderer cannot back a real generator, so
setup threw, the preview fell into its error state, and 9 tests failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No production module imported api/engine.ts. Its six tests move beside
the endpoint modules they exercise and import them directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m react-router-dom

Both apps imported zod through hoisting from other packages. instrument.ts
was the only module importing the transitive react-router package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
knip removed export keywords no module imports; tsc (noUnusedLocals) then
named every declaration left unreferenced, which was deleted, repeated
until clean. Four exports knip misjudged behind lazy route imports stay.
The backup upload-path test now imports safeBackupUploadPath by name so
the dependency is visible to the type checker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Point-in-time notes nothing linked to, a one-run PROVE_IT log, the
September workflow-cleanup changelog, and the September dependency
triage (tracked in issue 67). Git history keeps them. The production
route research stays because code cites it; the 09-04 rehabilitation
audit stays as the record of known residual limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The third candidate in loadShippedPathHintRules resolved to a directory
that exists in neither the src nor the dist layout. Docs now link to the
shipped rules in server data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ne transport

These three settings cards called fetch with bare relative paths, so they
ignored VITE_API_URL/VITE_API_PREFIX, sent no credentials cross-origin,
and never invoked the app-wide unauthorized handler when a session
expired. They now use engineFetchStream, which keeps each card's own
failure message and surfaces the server's detail when present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm run quality (and so Web CI) now runs knip. It runs with
--no-gitignore because the root .gitignore excludes build/ and then
re-includes src/components/build, which knip does not honor; without the
flag it silently skips that directory and misreports its imports.

Declares the dependencies tests and scripts imported through hoisting
(fflate, esbuild, playwright-core, pg, contracts), drops the unused root
fastify devDependency, and un-exports buildWorkflowSignature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lient modules

schemaMigrations and the parts trigger DDL move from db/schema.ts to
db/migrations-sqlite.ts; postgresPostInitMigrations moves from
db/client-postgres.ts to db/migrations-pg.ts. Table exports stay in the
schema modules for drizzle. currentSchemaVersion now lives only in
db/schema.ts; the Postgres client imports it instead of a duplicate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…services/job-runner

InProcessJobRunner, createJobRunner and their types move verbatim to
services/job-runner.ts. routes/jobs.ts keeps only the HTTP and WebSocket
routes. Adapters, assistant, MCP and route modules import the runner from
its new home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ASSISTANT_TOOL_SPECS, its AssistantToolSpec type and the manifest selection
schema it references move verbatim out of assistant/tools.ts. The tool
implementations stay in tools.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both adapters constructed them and nothing read them. SaasAuthProvider
held the only x-tenant-id header tenant resolution in the codebase, and
it was never called. Request tenancy already lives in routes/auth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…seBody

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…teraction graph

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…om lib/guards

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lper

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… paths

Source path resolution returns realpaths. On macOS tmpdir() sits under
/var, a symlink to /private/var, so six tests failed locally while
passing on Linux CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ImportRulesSaveContext and KitManifestSaveContext were the same registry
with names swapped. One BuildSaveFlushProvider now holds both, keyed by
kind so a Source id and a Profile id cannot collide, and exports
useFlushBuildPageSaves directly. The identical save-status label and
retry helpers move to lib/autosaveStatus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…main

folderKeyFromRelativePath and the rule normalizer were copies of
packages/domain code. Add ./parts-grouping and ./import-rules subpath
exports (the domain root pulls in Node-only modules) and import them.
applyStackToggle had no callers outside its tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ontracts

productionSend.ts copied the PrinterSendQueue* contract types verbatim.
planManifests.ts redeclared ReviewPart with assembled_units, spool_summary
and spool_badge, which the server's accepted-plan review rows do send; add
them to the contract type and use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
card, empty-state, table-wrap, data-table, manifest-yes, two-col,
warning-list, dialog-card, rules-textarea, qty-display, part-thumb,
checkoff-grid/card/card-top/thumb-wrap, progress-ring-* and
checkoff-mobile-thumb* appear in no component, test page or
index.html. .mono is still used by ImportRulesTree and stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The only caller passed () => {}.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…neHealth

No caller passed it and the query owns its own interval.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…w updates

optimisticReviewCacheKey was only an alias for it. reviewCache keeps
rollbackOptimisticCache, which planReview still uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
loadHealth called ensureEngineRunning, which fetched /health, then
fetched it again for the data. It now fetches once and keeps the same
"API server is not reachable" error on failure; ensureEngineRunning had
no other caller. HelpPage reads data_dir from the health query instead
of fetching /health a third time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
poitee and others added 4 commits September 27, 2026 12:26
…er its removal

POST /assistant/chat has returned 410 since the in-app advisor was
removed (GRE-225), but tool-loop.ts and its text-recovery, tool-call
parsing, and stack-suggestion helpers stayed alive through their own
tests. MCP uses invokeAssistantTool and applyAssistantAction directly,
which keep their golden-eval coverage. Also removes the Printables
metadata stub and the domain secure-path copy, both test-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SourceFilePickerCard, SourceDocsSheet, useImportRulesAutosave,
BuildSourceGuide, BuildWorkflowNextAction, and three lib helpers had no
production importer. Import rules still save through SourceDetailSheet
and ShareImportSetupPanel. With import-rule autosave gone, the Build
save-flush registry only holds kit-manifest flushes, so it keys by
Profile id without a kind. Navigation-guard behavior stays covered by
BuildSaveNavigationGuard.test.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… tests that pinned them

Found with knip in production mode (tests excluded as entry points),
keeping only exports their own module never used either. Most were
leftovers of the removed in-app advisor: its system prompt, feedback
scoring, and daily token budget. The rest were an unused sidecar slice
call, two path guards, spoolman label helpers, an artifact observer,
and a catalog mismatch report. Helpers that live tests use as fixtures
(loadKitBundleBytes, appendAssistantHistory) stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…heir tests

Endpoint wrappers for routes the UI never requests (the removed advisor
chat, manifest builder and templates, source notes, several plan and
printer reads) and lib helpers only their own tests imported. The server
routes stay available to API and MCP clients.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 499 files, which is 199 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: bf45050b-c610-4e0b-b4c7-c2dafe317bee

📥 Commits

Reviewing files that changed from the base of the PR and between ee5cd2b and 5f637a9.

⛔ Files ignored due to path filters (1)
  • web/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (499)
  • .agents/research/2026-08-23-production-workspace-ux.md
  • .agents/research/2026-09-09-build-library-sharing.md
  • .cursor/skills/verify-print-partner/artifacts/.gitignore
  • .cursor/skills/verify-print-partner/artifacts/PROVE_IT.md
  • docs/README.md
  • docs/agents/domain.md
  • docs/audits/2026-08-23-mcp-capability-inventory.md
  • docs/audits/2026-08-23-site-visibility.md
  • docs/audits/2026-08-25-engine-ts-blast-radius.md
  • docs/audits/2026-08-27-printer-files-offline-artifacts-webcams-research.md
  • docs/audits/2026-08-27-workflow-ux-research.md
  • docs/audits/2026-08-27-working-tree-refactor-review.md
  • docs/audits/2026-08-28-production-route-choice-research.md
  • docs/audits/2026-08-31-full-site-audit.md
  • docs/audits/2026-08-31-source-monitoring-capabilities.md
  • docs/audits/2026-09-04-codebase-rehabilitation.md
  • docs/dependency-advisories.md
  • docs/design/2026-08-30-annotated-workflow-ux.md
  • docs/design/2026-08-31-library-checkoff-workflow.md
  • docs/path-hints.yaml
  • docs/playbooks/author-manifest-on-stack.md
  • docs/reference-sharing.md
  • docs/workflow-cleanup.md
  • manifests/README.md
  • web/apps/server/package.json
  • web/apps/server/src/adapters/saas/index.ts
  • web/apps/server/src/adapters/self-host/index.ts
  • web/apps/server/src/app.ts
  • web/apps/server/src/assistant/accepted-plan-reader.ts
  • web/apps/server/src/assistant/accepted-plan-tool-model.ts
  • web/apps/server/src/assistant/accepted-progress-tools.test.ts
  • web/apps/server/src/assistant/anthropic-adapter.ts
  • web/apps/server/src/assistant/assistant-context.test.ts
  • web/apps/server/src/assistant/assistant-context.ts
  • web/apps/server/src/assistant/assistant-routes.test.ts
  • web/apps/server/src/assistant/build-decisions.ts
  • web/apps/server/src/assistant/create-assistant.ts
  • web/apps/server/src/assistant/domain-pack.ts
  • web/apps/server/src/assistant/example-builds.ts
  • web/apps/server/src/assistant/farm-status-print-stats.test.ts
  • web/apps/server/src/assistant/golden-eval.fixtures.ts
  • web/apps/server/src/assistant/golden-eval.test.ts
  • web/apps/server/src/assistant/history-feedback.test.ts
  • web/apps/server/src/assistant/history.ts
  • web/apps/server/src/assistant/openai-adapter.ts
  • web/apps/server/src/assistant/parse-text-tool-calls.test.ts
  • web/apps/server/src/assistant/parse-text-tool-calls.ts
  • web/apps/server/src/assistant/preferences-digest.ts
  • web/apps/server/src/assistant/proposed-actions.ts
  • web/apps/server/src/assistant/recover-proposals-from-text.test.ts
  • web/apps/server/src/assistant/recover-proposals-from-text.ts
  • web/apps/server/src/assistant/resolve-assistant.ts
  • web/apps/server/src/assistant/source-docs-digest.ts
  • web/apps/server/src/assistant/source-tool-model.ts
  • web/apps/server/src/assistant/stack-suggest.test.ts
  • web/apps/server/src/assistant/stack-suggest.ts
  • web/apps/server/src/assistant/sync-action.ts
  • web/apps/server/src/assistant/tool-inputs.ts
  • web/apps/server/src/assistant/tool-loop-decision-hints.test.ts
  • web/apps/server/src/assistant/tool-loop-sync-followup.test.ts
  • web/apps/server/src/assistant/tool-loop.ts
  • web/apps/server/src/assistant/tool-specs.ts
  • web/apps/server/src/assistant/tools.test.ts
  • web/apps/server/src/assistant/tools.ts
  • web/apps/server/src/assistant/types.ts
  • web/apps/server/src/assistant/usage.test.ts
  • web/apps/server/src/assistant/usage.ts
  • web/apps/server/src/build-persist.test.ts
  • web/apps/server/src/db/accepted-filament-assignment-schema.ts
  • web/apps/server/src/db/accepted-part-filament.ts
  • web/apps/server/src/db/accepted-plan-operational-model.ts
  • web/apps/server/src/db/accepted-plan-operational.ts
  • web/apps/server/src/db/accepted-plan-progress.ts
  • web/apps/server/src/db/accepted-plan-revisions.ts
  • web/apps/server/src/db/accepted-plate-layout-model.ts
  • web/apps/server/src/db/accepted-plates.ts
  • web/apps/server/src/db/accepted-printer-attribution.ts
  • web/apps/server/src/db/client-postgres.ts
  • web/apps/server/src/db/client.ts
  • web/apps/server/src/db/compatibility-dirty-repair.ts
  • web/apps/server/src/db/completed-prefix.ts
  • web/apps/server/src/db/database.ts
  • web/apps/server/src/db/migrations-pg.ts
  • web/apps/server/src/db/migrations-sqlite.ts
  • web/apps/server/src/db/printer-plan-bindings.ts
  • web/apps/server/src/db/profile-summary-caller-inventory.test.ts
  • web/apps/server/src/db/repository.ts
  • web/apps/server/src/db/required-units.ts
  • web/apps/server/src/db/schema-pg.ts
  • web/apps/server/src/db/schema-v9.test.ts
  • web/apps/server/src/db/schema.ts
  • web/apps/server/src/db/source-revision-tenant-repair.ts
  • web/apps/server/src/db/sync-db-bridge.ts
  • web/apps/server/src/db/upgrade-guard.ts
  • web/apps/server/src/integrations/adapters/ai-assistant.ts
  • web/apps/server/src/integrations/adapters/home-assistant.ts
  • web/apps/server/src/integrations/adapters/moonraker.ts
  • web/apps/server/src/integrations/adapters/prusalink.ts
  • web/apps/server/src/integrations/adapters/slicer-sidecar.test.ts
  • web/apps/server/src/integrations/adapters/slicer-sidecar.ts
  • web/apps/server/src/integrations/adapters/storage-path.ts
  • web/apps/server/src/integrations/digest-auth.ts
  • web/apps/server/src/integrations/registry.ts
  • web/apps/server/src/integrations/spoolman-client.test.ts
  • web/apps/server/src/integrations/spoolman-client.ts
  • web/apps/server/src/integrations/store.ts
  • web/apps/server/src/lib/board-model.ts
  • web/apps/server/src/lib/bounded-response.test.ts
  • web/apps/server/src/lib/bounded-response.ts
  • web/apps/server/src/lib/deployment-capability.ts
  • web/apps/server/src/lib/guards.test.ts
  • web/apps/server/src/lib/guards.ts
  • web/apps/server/src/lib/hosted-planning.ts
  • web/apps/server/src/lib/mcp-transport-path.ts
  • web/apps/server/src/lib/print-file-classification.ts
  • web/apps/server/src/lib/repo-readme.ts
  • web/apps/server/src/lib/secure-path.test.ts
  • web/apps/server/src/lib/secure-path.ts
  • web/apps/server/src/lib/source-cover.test.ts
  • web/apps/server/src/lib/source-cover.ts
  • web/apps/server/src/lib/tenant-disk-quota.ts
  • web/apps/server/src/lib/thumbnails.ts
  • web/apps/server/src/lib/version.ts
  • web/apps/server/src/mcp/http-routes.ts
  • web/apps/server/src/mcp/http-session-capacity.ts
  • web/apps/server/src/mcp/product-mcp-farm-status.test.ts
  • web/apps/server/src/mcp/product-mcp.ts
  • web/apps/server/src/mcp/stdio-server.test.ts
  • web/apps/server/src/mcp/stdio-server.ts
  • web/apps/server/src/mcp/try-build-planning.ts
  • web/apps/server/src/middleware/api-key.ts
  • web/apps/server/src/phase5.test.ts
  • web/apps/server/src/ports/index.ts
  • web/apps/server/src/route-hardening.test.ts
  • web/apps/server/src/routes/accepted-operational-exports.test.ts
  • web/apps/server/src/routes/accepted-plate-export-delivery-routes.test.ts
  • web/apps/server/src/routes/accepted-plates-route-model.test.ts
  • web/apps/server/src/routes/accepted-plates-route-model.ts
  • web/apps/server/src/routes/accepted-plates.ts
  • web/apps/server/src/routes/accepted-state-detail.ts
  • web/apps/server/src/routes/api-v1-extensions.ts
  • web/apps/server/src/routes/assistant.ts
  • web/apps/server/src/routes/auth-route-model.ts
  • web/apps/server/src/routes/auth-types.ts
  • web/apps/server/src/routes/auth.ts
  • web/apps/server/src/routes/backups-upload-path.test.ts
  • web/apps/server/src/routes/bambu-connect-failure-cleanup.test.ts
  • web/apps/server/src/routes/bambu-connect.ts
  • web/apps/server/src/routes/board.ts
  • web/apps/server/src/routes/core-routes.ts
  • web/apps/server/src/routes/discord-digest.test.ts
  • web/apps/server/src/routes/jobs-printer-upload-reconcile.test.ts
  • web/apps/server/src/routes/jobs-tenant.test.ts
  • web/apps/server/src/routes/jobs.ts
  • web/apps/server/src/routes/plan-role-assignment-model.ts
  • web/apps/server/src/routes/plan-summary-presenter.ts
  • web/apps/server/src/routes/printer-checkoff.ts
  • web/apps/server/src/routes/printer-route-model.ts
  • web/apps/server/src/routes/printer-send-queue.ts
  • web/apps/server/src/routes/settings-build-tracking.test.ts
  • web/apps/server/src/routes/settings-discord-webhook-validation.test.ts
  • web/apps/server/src/routes/settings-source-monitoring.test.ts
  • web/apps/server/src/routes/slicer-handoff.ts
  • web/apps/server/src/routes/source-cover-route-model.ts
  • web/apps/server/src/routes/source-filesystem-isolation.test.ts
  • web/apps/server/src/routes/sources-bulk-category.test.ts
  • web/apps/server/src/routes/sources.ts
  • web/apps/server/src/services/accepted-artifacts.test.ts
  • web/apps/server/src/services/accepted-artifacts.ts
  • web/apps/server/src/services/accepted-direct-export-3mf.ts
  • web/apps/server/src/services/accepted-operational-export.ts
  • web/apps/server/src/services/accepted-plan-review.ts
  • web/apps/server/src/services/accepted-plan-views.ts
  • web/apps/server/src/services/accepted-plate-workspace.ts
  • web/apps/server/src/services/api-key-manager.ts
  • web/apps/server/src/services/app-update-check.ts
  • web/apps/server/src/services/archive-import.ts
  • web/apps/server/src/services/auth-store.ts
  • web/apps/server/src/services/backup-restore.ts
  • web/apps/server/src/services/board-store.ts
  • web/apps/server/src/services/build-planning.ts
  • web/apps/server/src/services/build-recipe.ts
  • web/apps/server/src/services/build-workflow.ts
  • web/apps/server/src/services/custom-filaments.ts
  • web/apps/server/src/services/export-kit.ts
  • web/apps/server/src/services/export-stl-pack.ts
  • web/apps/server/src/services/farm-filament.ts
  • web/apps/server/src/services/filament-catalog.ts
  • web/apps/server/src/services/filament-matches.ts
  • web/apps/server/src/services/filament-resolve.ts
  • web/apps/server/src/services/gcode-object-parser.ts
  • web/apps/server/src/services/github-client.ts
  • web/apps/server/src/services/github-readme.ts
  • web/apps/server/src/services/github-sync.test.ts
  • web/apps/server/src/services/github-sync.ts
  • web/apps/server/src/services/guide-ingest.ts
  • web/apps/server/src/services/interaction-graph.test.ts
  • web/apps/server/src/services/interaction-graph.ts
  • web/apps/server/src/services/job-runner.ts
  • web/apps/server/src/services/kit-bundle-share.ts
  • web/apps/server/src/services/kit-catalog.ts
  • web/apps/server/src/services/kit-manifest-store.ts
  • web/apps/server/src/services/kit-vocabulary.ts
  • web/apps/server/src/services/knowledge-bundle.ts
  • web/apps/server/src/services/legacy-export-migration.ts
  • web/apps/server/src/services/legacy-source-manifest.ts
  • web/apps/server/src/services/local-source-revision.ts
  • web/apps/server/src/services/local-source-snapshot.ts
  • web/apps/server/src/services/logger.ts
  • web/apps/server/src/services/manifest-apply.ts
  • web/apps/server/src/services/manifest-selections.ts
  • web/apps/server/src/services/part-paths.test.ts
  • web/apps/server/src/services/part-paths.ts
  • web/apps/server/src/services/password-reset-mail.ts
  • web/apps/server/src/services/path-hints.ts
  • web/apps/server/src/services/pdf-text-extract.ts
  • web/apps/server/src/services/plan-compare.ts
  • web/apps/server/src/services/plan-decisions.ts
  • web/apps/server/src/services/plan-draft-workspace.ts
  • web/apps/server/src/services/plan-drafts.ts
  • web/apps/server/src/services/plan-publication.ts
  • web/apps/server/src/services/plan-snapshots.ts
  • web/apps/server/src/services/printer-checkoff-store.ts
  • web/apps/server/src/services/printer-checkoff-verify.ts
  • web/apps/server/src/services/printer-checkoff.ts
  • web/apps/server/src/services/printer-fleet.ts
  • web/apps/server/src/services/printer-outcomes-store.ts
  • web/apps/server/src/services/printer-profile-assignments.ts
  • web/apps/server/src/services/printer-queue-suggestions.ts
  • web/apps/server/src/services/printer-send-queue-store.ts
  • web/apps/server/src/services/printer-send-queue.ts
  • web/apps/server/src/services/printer-upload-job.ts
  • web/apps/server/src/services/printer-upload-multipart.ts
  • web/apps/server/src/services/production-packing-rules.ts
  • web/apps/server/src/services/profile-sync.ts
  • web/apps/server/src/services/reference-share-import.ts
  • web/apps/server/src/services/repo-tree-summary.ts
  • web/apps/server/src/services/repos-txt.ts
  • web/apps/server/src/services/required-unit-reconciliation.ts
  • web/apps/server/src/services/required-units.ts
  • web/apps/server/src/services/role-filament-store.ts
  • web/apps/server/src/services/search/brave.ts
  • web/apps/server/src/services/search/exa.ts
  • web/apps/server/src/services/search/index.ts
  • web/apps/server/src/services/search/types.ts
  • web/apps/server/src/services/slicer-docker-presets.ts
  • web/apps/server/src/services/slicer-docker.ts
  • web/apps/server/src/services/slicer-instances.ts
  • web/apps/server/src/services/source-adapters.ts
  • web/apps/server/src/services/source-docs-scan.ts
  • web/apps/server/src/services/source-manifest-migration.ts
  • web/apps/server/src/services/source-monitoring-settings.ts
  • web/apps/server/src/services/source-update-check.ts
  • web/apps/server/src/services/source-watcher.ts
  • web/apps/server/src/services/source-workspace.test.ts
  • web/apps/server/src/services/source-workspace.ts
  • web/apps/server/src/services/storage-inventory.ts
  • web/apps/server/src/services/three-mf-import.ts
  • web/apps/server/src/services/transfer-artifact-retention.ts
  • web/apps/server/src/services/upload-limits.ts
  • web/apps/server/src/services/variant-dimensions.ts
  • web/apps/server/src/services/working-plan-sources.ts
  • web/apps/server/src/test/make-app.ts
  • web/apps/web/package.json
  • web/apps/web/src/App.accessibility.test.tsx
  • web/apps/web/src/App.css
  • web/apps/web/src/App.public-route-loading.test.tsx
  • web/apps/web/src/App.site-map.test.tsx
  • web/apps/web/src/AuthenticatedApp.tsx
  • web/apps/web/src/api/contractRequest.ts
  • web/apps/web/src/api/endpointTestHttp.ts
  • web/apps/web/src/api/endpoints/acceptedPlates.ts
  • web/apps/web/src/api/endpoints/assistant.test.ts
  • web/apps/web/src/api/endpoints/assistant.ts
  • web/apps/web/src/api/endpoints/auth.test.ts
  • web/apps/web/src/api/endpoints/auth.ts
  • web/apps/web/src/api/endpoints/browserFiles.ts
  • web/apps/web/src/api/endpoints/checkoff.ts
  • web/apps/web/src/api/endpoints/filaments.ts
  • web/apps/web/src/api/endpoints/imports.ts
  • web/apps/web/src/api/endpoints/integrations.ts
  • web/apps/web/src/api/endpoints/jobs.test.ts
  • web/apps/web/src/api/endpoints/jobs.ts
  • web/apps/web/src/api/endpoints/media.test.ts
  • web/apps/web/src/api/endpoints/media.ts
  • web/apps/web/src/api/endpoints/planDrafts.recompute.test.ts
  • web/apps/web/src/api/endpoints/planManifests.kitManifest.test.ts
  • web/apps/web/src/api/endpoints/planManifests.test.ts
  • web/apps/web/src/api/endpoints/planManifests.ts
  • web/apps/web/src/api/endpoints/planVariants.phaseManifest.test.ts
  • web/apps/web/src/api/endpoints/plans.test.ts
  • web/apps/web/src/api/endpoints/plans.ts
  • web/apps/web/src/api/endpoints/printerSettings.test.ts
  • web/apps/web/src/api/endpoints/printerSettings.ts
  • web/apps/web/src/api/endpoints/printers.details.test.ts
  • web/apps/web/src/api/endpoints/productionSend.test.ts
  • web/apps/web/src/api/endpoints/productionSend.ts
  • web/apps/web/src/api/endpoints/productionSetup.test.ts
  • web/apps/web/src/api/endpoints/productionSetup.ts
  • web/apps/web/src/api/endpoints/runtime.test.ts
  • web/apps/web/src/api/endpoints/runtime.ts
  • web/apps/web/src/api/endpoints/slicers.test.ts
  • web/apps/web/src/api/endpoints/slicers.ts
  • web/apps/web/src/api/endpoints/sourceArtifacts.test.ts
  • web/apps/web/src/api/endpoints/sourceArtifacts.ts
  • web/apps/web/src/api/endpoints/sourceContent.test.ts
  • web/apps/web/src/api/endpoints/sourceContent.ts
  • web/apps/web/src/api/endpoints/sourceNaming.test.ts
  • web/apps/web/src/api/endpoints/sourceNaming.ts
  • web/apps/web/src/api/endpoints/sources.test.ts
  • web/apps/web/src/api/endpoints/sources.ts
  • web/apps/web/src/api/endpoints/stlNaming.ts
  • web/apps/web/src/api/engine.ts
  • web/apps/web/src/components/BuildHeadings.accessibility.test.tsx
  • web/apps/web/src/components/BuildSaveNavigationGuard.test.tsx
  • web/apps/web/src/components/BuildSaveNavigationGuard.tsx
  • web/apps/web/src/components/CommandPalette.tsx
  • web/apps/web/src/components/FilamentSwatch.tsx
  • web/apps/web/src/components/KitManifestOptions.multiselect.test.tsx
  • web/apps/web/src/components/KitManifestOptions.navigation.test.tsx
  • web/apps/web/src/components/KitManifestOptions.tsx
  • web/apps/web/src/components/PlanPicker.navigation.test.tsx
  • web/apps/web/src/components/PlanPicker.tsx
  • web/apps/web/src/components/Preview3D.accessibility.test.tsx
  • web/apps/web/src/components/SourceFilePickerCard.tsx
  • web/apps/web/src/components/build/BuildSourceGuide.test.tsx
  • web/apps/web/src/components/build/BuildSourceGuide.tsx
  • web/apps/web/src/components/build/BuildWorkflowNextAction.test.tsx
  • web/apps/web/src/components/build/BuildWorkflowNextAction.tsx
  • web/apps/web/src/components/build/useBuildPlanningQuery.ts
  • web/apps/web/src/components/checkoff/CheckoffStateNotice.tsx
  • web/apps/web/src/components/checkoff/CheckoffWorklist.tsx
  • web/apps/web/src/components/checkoff/ProgressPartRow.tsx
  • web/apps/web/src/components/export/ExportRecentPanel.tsx
  • web/apps/web/src/components/export/PlateApprovalCard.tsx
  • web/apps/web/src/components/export/PrinterSendQueuePanel.tsx
  • web/apps/web/src/components/export/SlicerHandoffPanel.tsx
  • web/apps/web/src/components/export/accepted-plates/AcceptedPlateSection.tsx
  • web/apps/web/src/components/export/accepted-plates/AcceptedPlateUnitActions.tsx
  • web/apps/web/src/components/export/useProductionCheckoffLinks.ts
  • web/apps/web/src/components/export/useProductionSendFleet.ts
  • web/apps/web/src/components/printers/asyncView.ts
  • web/apps/web/src/components/printers/printFileAssignment.ts
  • web/apps/web/src/components/printers/printFileClassification.ts
  • web/apps/web/src/components/printers/trackedPrintPresentation.ts
  • web/apps/web/src/components/settings/ApiKeyManagementCard.tsx
  • web/apps/web/src/components/settings/BackupManagementCard.test.tsx
  • web/apps/web/src/components/settings/BackupManagementCard.tsx
  • web/apps/web/src/components/settings/LoggingManagementCard.test.tsx
  • web/apps/web/src/components/settings/LoggingManagementCard.tsx
  • web/apps/web/src/components/settings/StlNamingEditor.tsx
  • web/apps/web/src/components/sources/LibrarySourceRow.tsx
  • web/apps/web/src/components/sources/SourceDetailSheet.test.tsx
  • web/apps/web/src/components/sources/SourceDetailSheet.tsx
  • web/apps/web/src/components/sources/SourceDocsSheet.test.tsx
  • web/apps/web/src/components/sources/SourceDocsSheet.tsx
  • web/apps/web/src/components/sources/sourceLabels.ts
  • web/apps/web/src/context/BuildSaveFlushContext.test.tsx
  • web/apps/web/src/context/BuildSaveFlushContext.tsx
  • web/apps/web/src/context/ImportRulesSaveContext.tsx
  • web/apps/web/src/context/SaveStatusContext.tsx
  • web/apps/web/src/context/ThemeContext.tsx
  • web/apps/web/src/hooks/useEngineHealth.ts
  • web/apps/web/src/hooks/useFlushBuildPageSaves.ts
  • web/apps/web/src/hooks/useImportRulesAutosave.test.ts
  • web/apps/web/src/hooks/useImportRulesAutosave.ts
  • web/apps/web/src/hooks/useImportSharedBuild.navigation.test.tsx
  • web/apps/web/src/hooks/useImportSharedBuild.test.tsx
  • web/apps/web/src/hooks/useImportSharedBuild.ts
  • web/apps/web/src/hooks/useKitManifestAutosave.ts
  • web/apps/web/src/hooks/useSpoolmanEnabled.ts
  • web/apps/web/src/instrument.ts
  • web/apps/web/src/layout/AppLayout.accessibility.test.tsx
  • web/apps/web/src/layout/AppLayout.tsx
  • web/apps/web/src/lib/acceptedMediaCallerInventory.test.ts
  • web/apps/web/src/lib/acceptedPlateCoordinates.ts
  • web/apps/web/src/lib/autosaveStatus.test.ts
  • web/apps/web/src/lib/autosaveStatus.ts
  • web/apps/web/src/lib/buildPageViewModel.ts
  • web/apps/web/src/lib/buildSourceLayers.ts
  • web/apps/web/src/lib/buildSummaryModel.ts
  • web/apps/web/src/lib/checkoffConsoleActivity.ts
  • web/apps/web/src/lib/checkoffConsoleCorrection.ts
  • web/apps/web/src/lib/checkoffConsoleModel.ts
  • web/apps/web/src/lib/checkoffConsoleMutations.ts
  • web/apps/web/src/lib/checkoffConsoleOrder.ts
  • web/apps/web/src/lib/checkoffConsolePreferences.ts
  • web/apps/web/src/lib/checkoffConsoleReorder.ts
  • web/apps/web/src/lib/checkoffConsoleRowErrors.test.ts
  • web/apps/web/src/lib/checkoffConsoleRowErrors.ts
  • web/apps/web/src/lib/checkoffGroups.ts
  • web/apps/web/src/lib/checkoffPrinterActivity.ts
  • web/apps/web/src/lib/checkoffProgress.test.ts
  • web/apps/web/src/lib/checkoffProgress.ts
  • web/apps/web/src/lib/colorPresets.ts
  • web/apps/web/src/lib/deskNextStep.ts
  • web/apps/web/src/lib/exportActionGates.ts
  • web/apps/web/src/lib/exportActions.ts
  • web/apps/web/src/lib/fetchWithRetry.ts
  • web/apps/web/src/lib/globalProduction.ts
  • web/apps/web/src/lib/googleDrive.ts
  • web/apps/web/src/lib/importRulesSave.test.ts
  • web/apps/web/src/lib/importRulesSave.ts
  • web/apps/web/src/lib/importRulesSuggest.ts
  • web/apps/web/src/lib/kitManifestSave.test.ts
  • web/apps/web/src/lib/kitManifestSave.ts
  • web/apps/web/src/lib/mergeConflictCopy.test.ts
  • web/apps/web/src/lib/mergeConflictCopy.ts
  • web/apps/web/src/lib/meshCache.ts
  • web/apps/web/src/lib/parseSlicedObjects.ts
  • web/apps/web/src/lib/partWarnings.ts
  • web/apps/web/src/lib/partsGroups.ts
  • web/apps/web/src/lib/partsManifest.ts
  • web/apps/web/src/lib/persistedCheckoffUi.test.ts
  • web/apps/web/src/lib/persistedCheckoffUi.ts
  • web/apps/web/src/lib/persistedPrinterStatusPoll.ts
  • web/apps/web/src/lib/persistedSidebarUi.ts
  • web/apps/web/src/lib/persistedSourcesUi.ts
  • web/apps/web/src/lib/phaseManifest.ts
  • web/apps/web/src/lib/planDataStable.test.ts
  • web/apps/web/src/lib/planDataStable.ts
  • web/apps/web/src/lib/planDraftPartMatch.ts
  • web/apps/web/src/lib/planDraftUi.ts
  • web/apps/web/src/lib/planPickerGroups.ts
  • web/apps/web/src/lib/planWarnings.test.ts
  • web/apps/web/src/lib/planWarnings.ts
  • web/apps/web/src/lib/preview3dModel.test.ts
  • web/apps/web/src/lib/preview3dModel.ts
  • web/apps/web/src/lib/printerCheckoffUnits.test.ts
  • web/apps/web/src/lib/printerCheckoffUnits.ts
  • web/apps/web/src/lib/printerLiveStrip.test.ts
  • web/apps/web/src/lib/printerLiveStrip.ts
  • web/apps/web/src/lib/printerPlanBind.test.ts
  • web/apps/web/src/lib/printerPlanBind.ts
  • web/apps/web/src/lib/printerSendModel.ts
  • web/apps/web/src/lib/printerSettingsModel.ts
  • web/apps/web/src/lib/progressListOrder.test.ts
  • web/apps/web/src/lib/progressListOrder.ts
  • web/apps/web/src/lib/proposeCheckoffFromObjects.test.ts
  • web/apps/web/src/lib/proposeCheckoffFromObjects.ts
  • web/apps/web/src/lib/reorderList.test.ts
  • web/apps/web/src/lib/reorderList.ts
  • web/apps/web/src/lib/reviewCache.test.ts
  • web/apps/web/src/lib/reviewCache.ts
  • web/apps/web/src/lib/reviewParts.test.ts
  • web/apps/web/src/lib/reviewParts.ts
  • web/apps/web/src/lib/reviewPartsFilter.ts
  • web/apps/web/src/lib/rolePreviewColor.test.ts
  • web/apps/web/src/lib/rolePreviewColor.ts
  • web/apps/web/src/lib/routes.test.ts
  • web/apps/web/src/lib/routes.ts
  • web/apps/web/src/lib/settingsPageModel.ts
  • web/apps/web/src/lib/siteMap.test.ts
  • web/apps/web/src/lib/siteMap.ts
  • web/apps/web/src/lib/slicerLinks.ts
  • web/apps/web/src/lib/slicerSettingsModel.ts
  • web/apps/web/src/lib/sourceCategoryDnD.test.ts
  • web/apps/web/src/lib/sourceCategoryDnD.ts
  • web/apps/web/src/lib/sourceCategoryOptions.ts
  • web/apps/web/src/lib/sourceFilePickerModel.test.ts
  • web/apps/web/src/lib/sourceFilePickerModel.ts
  • web/apps/web/src/lib/sourceImportModel.ts
  • web/apps/web/src/lib/sourceLibraryFilters.ts
  • web/apps/web/src/lib/sourceMonitoring.ts
  • web/apps/web/src/lib/sourceSaveDraft.ts
  • web/apps/web/src/lib/sourceSelection.ts
  • web/apps/web/src/lib/sourcesSetupTasks.test.ts
  • web/apps/web/src/lib/sourcesSetupTasks.ts
  • web/apps/web/src/lib/spoolPickerUtils.ts
  • web/apps/web/src/lib/statusTone.test.ts
  • web/apps/web/src/lib/statusTone.ts
  • web/apps/web/src/lib/stlAutoSync.ts
  • web/apps/web/src/lib/supportLinks.ts
  • web/apps/web/src/lib/waitForSheetThumbnails.ts
  • web/apps/web/src/lib/webFilePickers.ts
  • web/apps/web/src/lib/workPackageProjection.ts
  • web/apps/web/src/lib/workPackageTasks.ts
  • web/apps/web/src/lib/workingPlanChanged.ts
  • web/apps/web/src/pages/BuildPage.plan-draft.test.tsx
  • web/apps/web/src/pages/BuildPage.sources.test.tsx
  • web/apps/web/src/pages/BuildPage.tsx
  • web/apps/web/src/pages/HelpPage.tsx
  • web/apps/web/src/pages/SourcesPage.tsx
  • web/apps/web/src/queries/acceptedPlates.ts
  • web/apps/web/src/queries/buildTracking.ts
  • web/apps/web/src/queries/health.test.tsx
  • web/apps/web/src/queries/health.ts
  • web/apps/web/src/queries/planRecipe.ts
  • web/apps/web/src/queries/planReview.ts
  • web/apps/web/src/queries/productionSetup.ts
  • web/apps/web/src/queries/profiles.ts
  • web/knip.json
  • web/package.json
  • web/packages/contracts/src/index.ts
  • web/packages/domain/package.json
  • web/packages/domain/src/secure-path.test.ts
  • web/packages/domain/src/secure-path.ts
  • web/scripts/checkoff-all-copies.browser.mjs
  • web/scripts/checkoff-sort.browser.mjs

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands.

@cursor

cursor Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_14df0228-2946-4a4c-88c7-d589ae46a3ab)

@poitee

poitee commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

Independent pre-merge verification: PASS+NOTES for 5f637a9f7fa8eea8db33db1a0d34c5ebeed66781 against ee5cd2b7a77342500f3c6669d3b019be52377892.

An independent Codex agent that did not author this PR inspected the cleanup's live-risk paths and ran 68 focused tests. SQLite and PostgreSQL migration arrays match the parent byte for byte; the moved job-runner implementation is unchanged. Removed UI chains had no live parent consumer, and active path-security consumers retain the server helper. No concrete merge blocker was found.

Limits: this was a bounded review of the large cleanup. Fresh tests ran on integrated stack head 94e42d00, with unchanged reviewed web modules and migration extraction checked separately. Exact-head CI and the integrated 3,720-test quality pass are separate supporting evidence. Cursor cloud verification was unavailable; this is a Codex review, not human approval. Physical printing and production deployment were not tested.

@poitee
poitee merged commit 3d16e62 into main Sep 28, 2026
7 checks passed
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