Skip to content

refactor(daemon): sort src into feature folders - #2282

Open
NicholaiVogel wants to merge 11 commits into
mainfrom
nicholai/daemon-layout
Open

NicholaiVogel wants to merge 11 commits into
mainfrom
nicholai/daemon-layout

Conversation

@NicholaiVogel

Copy link
Copy Markdown
Collaborator

Summary

platform/daemon/src had 263 production files sitting loose at its root, most of them prefixed with what they belong to (transcript-import-*, db-owner-*, ontology-*, memory-*). This PR sorts every file into a folder named for what it does, so the tree reads like a table of contents:

daemon.ts  dev-daemon.ts  index.ts
agents/  auth/  config/  db/  dreaming/  embeddings/  harness/  http/  inference/
memory/  ontology/  plugins/  recall/  runtime/  secrets/  sessions/  sources/
telemetry/  transcripts/  workers/  workspace/

Most folders are features (recall/, dreaming/, sources/, transcripts/, ...). Four are shared plumbing: http/ (routes, hooks, MCP), db/ (the DB owner, integrity, maintenance), runtime/ (process lifecycle, logging, updates), and workers/ (scheduled jobs that have no feature of their own). Repeated name prefixes are dropped once a file sits in its folder, so transcript-import-commit.ts becomes transcripts/import/commit.ts. Tests move with the file they cover.

This is a move, not a rewrite. No behavior changes are intended.

Changes

  • 695 files renamed. Git tracks all of them as renames. Apart from path strings (imports, runtime paths, DB site tokens) and line wrapping, the content of every renamed file matches its original.
  • Imports, worker entry paths, CI path filters, audit lists, the event-loop ledger, and docs are rewritten to the new paths.
  • Runtime paths: code that finds a file from its own location (join(__dirname, "..", ...), dirname(dirname(...)), stack-frame matching in DB call-site attribution) now points at the same file it reached before the move. The bundled dist/ candidates are unchanged. Files: dreaming/tools/acpx-mcp.ts, http/routes/{dashboard,skills,state}.ts, runtime/service/service.ts, db/observability/sync-attribution.ts.
  • scripts/daemon-layout.test.ts (new, wired into the PR baseline guardrails): fails if a production file lands loose at the src/ root or an unlisted top-level folder appears.
  • Deleted src/__tests__/worker-sqlite-poc.ts, a standalone proof-of-concept script with no references anywhere in the repo. This is the one change that isn't a move.

Type

  • feat — new user-facing feature (bumps minor)
  • fix — bug fix
  • refactor — restructure without behavior change
  • chore — build, deps, config, docs
  • perf — performance improvement
  • test — test coverage

Packages affected

  • @signet/core
  • @signet/daemon
  • @signet/cli / dashboard
  • @signet/sdk
  • @signet/connector-*
  • @signet/web
  • predictor
  • Other: CI workflow path filters, scripts/ audits and their tests, CONTRIBUTING, AGENTS.md, docs/, web/docs

Screenshots

No UI changes.

Migration Notes (if applicable)

No migrations touched.

Testing

  • bun test passes
  • bun run typecheck passes
  • bun run lint passes
  • Tested against running daemon
  • N/A

The full hermetic suite (bun scripts/run-hermetic-tests.ts ./scripts ./tests ./platform/core ./platform/daemon ./surfaces/cli) ran on this branch and on its base. The bun test box stays unticked because the base itself has failures. Every failure on this branch either also fails on the base, or (for the native-memory, notion, and recall-timeline tests) changes from run to run on both branches. Every test file that failed only here was rerun alone on both branches; none of the failures come from this change.

Check Base This branch
Tests run 6,122 6,123 (+ the layout test)
Skipped 31 31
Failures unique to the branch n/a 0

Gates run locally: bun run audit:ratchet, audit:database-ownership, audit:agent-identity, comments:check, bun scripts/audit-event-loop-contract.ts, bun scripts/sync-root-docs.ts --check, and the daemon build. The build still emits the same worker bundle names: db-owner-worker.js, embedding-worker.js, mcp-stdio.js, and the rest.

Real daemon: an isolated daemon (scratch workspace, HOME and port) was started on base and on this branch, once from source (bun src/daemon.ts) and once from the bundle (dist/daemon.js). All four runs gave identical results:

  • healthy, same version, correct workspace;
  • the dashboard is served;
  • an official Signet skill resolves;
  • no missing-module errors in the startup log;
  • mcp-stdio lists the same 62 tools.

To reproduce the main check:

bun test scripts/daemon-layout.test.ts
cd platform/daemon && bun run build && ls dist

AI disclosure

  • No AI tools were used in this PR
  • AI tools were used (see Assisted-by tags in commits)

Notes

  • Moving into this layout: an open branch that edits a moved file will conflict on the rename. Git's rename detection usually carries the edit over; anything it can't is a path-only fix.
  • Placement: files were placed using the import graph plus a symbol-level clustering pass. A few files that touch several features sit where their main caller is; memory/ is now the shared memory-record model, not a feature.
  • Out of scope: splitting large files, and the same treatment for @signet/core. Both are separate follow-ups.

Move every file in platform/daemon/src into a folder named for what it does, strip repeated name prefixes, and rewrite imports, worker paths, site tokens, audit lists, and docs to match. Regenerate the event-loop ledger for the new paths. Add a layout test so new files cannot land loose at the source root.

Assisted-by: Hermes:claude-opus-5-5
Paths built at runtime from a file's own location (join(__dirname, ...), dirname(dirname(...)), template imports, stack-frame matching, CI path globs, and DB site tokens) were not covered by the import rewrite. Repoint each source-run candidate to the file it reached before the move; bundled dist candidates are unchanged.

Assisted-by: Hermes:claude-opus-5-5
dev-daemon.ts is the package dev entry point; return it to the source root beside daemon.ts and index.ts, and align the accessor test expectations with the corrected site-token lines.

Assisted-by: Hermes:claude-opus-5-5
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 774 files, which is 674 over the limit of 100.

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

Upgrade to a paid plan to raise the limit.

Usage-priced reviews support at most 500 files.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 745808c1-824b-4564-8186-7e0aa38183fc
Commits

Reviewing files that changed from the base of the PR and between cfa56c7 and afaa0f0.

Files selected for processing: 774

  • .github/workflows/embedding-health-isolation.yml
  • .github/workflows/memorybench-dreaming-gate.yml
  • .github/workflows/pr-baseline.yml
  • .github/workflows/release.yml
  • .github/workflows/transcript-import-platform.yml
  • AGENTS.md
  • CONTRIBUTING.md
  • docs/context-delivery.md
  • docs/dreaming.md
  • docs/evidence.md
  • docs/inference.md
  • docs/telemetry.md
  • docs/workspace.md
  • evals/agent-coordination/ledger/coverage-ledger.json
  • platform/daemon/build.ts
  • platform/daemon/legacy-sync/db-accessor-sync.ts
  • platform/daemon/src/__tests__/worker-sqlite-poc.ts
  • platform/daemon/src/agents/board/board.test.ts
  • platform/daemon/src/agents/board/board.ts
  • platform/daemon/src/agents/cross-agent/acp.ts
  • platform/daemon/src/agents/cross-agent/context.test.ts
  • platform/daemon/src/agents/cross-agent/context.ts
  • platform/daemon/src/agents/cross-agent/inspect.ts
  • platform/daemon/src/agents/cross-agent/messages.test.ts
  • platform/daemon/src/agents/cross-agent/messages.ts
  • platform/daemon/src/agents/cross-agent/notifications.test.ts
  • platform/daemon/src/agents/cross-agent/notifications.ts
  • platform/daemon/src/agents/cross-agent/session-section.ts
  • platform/daemon/src/agents/cross-agent/subagent-context.test.ts
  • platform/daemon/src/agents/cross-agent/subagent-context.ts
  • platform/daemon/src/agents/cross-agent/wake.test.ts
  • platform/daemon/src/agents/cross-agent/wake.ts
  • platform/daemon/src/agents/identity/agent-id.test.ts
  • platform/daemon/src/agents/identity/agent-id.ts
  • platform/daemon/src/agents/identity/removal.test.ts
  • platform/daemon/src/agents/identity/removal.ts
  • platform/daemon/src/agents/identity/scope-cache-lifecycle.test.ts
  • platform/daemon/src/auth/api-keys.test.ts
  • platform/daemon/src/auth/api-keys.ts
  • platform/daemon/src/auth/auth.test.ts
  • platform/daemon/src/auth/policy.ts
  • platform/daemon/src/config/feature-flags.ts
  • platform/daemon/src/config/legacy-routing-migration.test.ts
  • platform/daemon/src/config/memory-config-bench.test.ts
  • platform/daemon/src/config/memory-config.test.ts
  • platform/daemon/src/config/memory-config.ts
  • platform/daemon/src/config/migration.test.ts
  • platform/daemon/src/config/migration.ts
  • platform/daemon/src/daemon-auth-guard-colocation.test.ts
  • platform/daemon/src/daemon-production-wiring.test.ts
  • platform/daemon/src/daemon-refactor.test.ts
  • platform/daemon/src/daemon-rejection-handler.test.ts
  • platform/daemon/src/daemon-status.test.ts
  • platform/daemon/src/daemon.ts
  • platform/daemon/src/db/integrity/database-integrity-worker.ts
  • platform/daemon/src/db/integrity/fts-index-state.ts
  • platform/daemon/src/db/integrity/fts-startup-recovery.test.ts
  • platform/daemon/src/db/integrity/fts-startup-recovery.ts
  • platform/daemon/src/db/integrity/incremental.test.ts
  • platform/daemon/src/db/integrity/incremental.ts
  • platform/daemon/src/db/integrity/integrity.test.ts
  • platform/daemon/src/db/integrity/integrity.ts
  • platform/daemon/src/db/integrity/migration-startup.ts
  • platform/daemon/src/db/integrity/migration-verify.test.ts
  • platform/daemon/src/db/integrity/migration-verify.ts
  • platform/daemon/src/db/integrity/restore-live-fixture.test.ts
  • platform/daemon/src/db/integrity/restore-verification.test.ts
  • platform/daemon/src/db/integrity/restore-verification.ts
  • platform/daemon/src/db/integrity/startup-recovery.test.ts
  • platform/daemon/src/db/integrity/startup-recovery.ts
  • platform/daemon/src/db/maintenance/maintenance.test.ts
  • platform/daemon/src/db/maintenance/maintenance.ts
  • platform/daemon/src/db/maintenance/query-planner-statistics.test.ts
  • platform/daemon/src/db/maintenance/query-planner-statistics.ts
  • platform/daemon/src/db/maintenance/repair-actions.test.ts
  • platform/daemon/src/db/maintenance/repair-actions.ts
  • platform/daemon/src/db/maintenance/vacuum-worker.ts
  • platform/daemon/src/db/maintenance/vacuum.test.ts
  • platform/daemon/src/db/maintenance/vacuum.ts
  • platform/daemon/src/db/maintenance/workspace-writer-barrier.test.ts
  • platform/daemon/src/db/maintenance/workspace-writer-barrier.ts
  • platform/daemon/src/db/maintenance/write-pressure.test.ts
  • platform/daemon/src/db/maintenance/write-pressure.ts
  • platform/daemon/src/db/maintenance/yielding-writes.test.ts
  • platform/daemon/src/db/maintenance/yielding-writes.ts
  • platform/daemon/src/db/observability/observability.test.ts
  • platform/daemon/src/db/observability/observability.ts
  • platform/daemon/src/db/observability/sync-attribution.test.ts
  • platform/daemon/src/db/observability/sync-attribution.ts
  • platform/daemon/src/db/observability/sync-site-token.ts
  • platform/daemon/src/db/owner/accessor-lifecycle.ts
  • platform/daemon/src/db/owner/accessor.test.ts
  • platform/daemon/src/db/owner/accessor.ts
  • platform/daemon/src/db/owner/client.test.ts
  • platform/daemon/src/db/owner/client.ts
  • platform/daemon/src/db/owner/db-owner-worker.ts
  • platform/daemon/src/db/owner/db.ts
  • platform/daemon/src/db/owner/foundation-boundary.test.ts
  • platform/daemon/src/db/owner/helpers.test.ts
  • platform/daemon/src/db/owner/helpers.ts
  • platform/daemon/src/db/owner/protocol.ts
  • platform/daemon/src/db/owner/recall.test.ts
  • platform/daemon/src/db/owner/recall.ts
  • platform/daemon/src/db/owner/runtime.ts
  • platform/daemon/src/db/owner/sql-utils.ts
  • platform/daemon/src/db/owner/sql.ts
  • platform/daemon/src/dreaming/evidence/consumption.ts
  • platform/daemon/src/dreaming/evidence/coverage.test.ts
  • platform/daemon/src/dreaming/evidence/coverage.ts
  • platform/daemon/src/dreaming/evidence/episodic-evidence-cutover.test.ts
  • platform/daemon/src/dreaming/evidence/episodic-sources.test.ts
  • platform/daemon/src/dreaming/evidence/episodic-sources.ts
  • platform/daemon/src/dreaming/evidence/evidence.test.ts
  • platform/daemon/src/dreaming/evidence/evidence.ts
  • platform/daemon/src/dreaming/evidence/retry.ts
  • platform/daemon/src/dreaming/evidence/reviews.ts
  • platform/daemon/src/dreaming/head/head.test.ts
  • platform/daemon/src/dreaming/head/head.ts
  • platform/daemon/src/dreaming/head/owner.ts
  • platform/daemon/src/dreaming/operations/capabilities.ts
  • platform/daemon/src/dreaming/operations/contract.test.ts
  • platform/daemon/src/dreaming/operations/contract.ts
  • platform/daemon/src/dreaming/operations/operations.test.ts
  • platform/daemon/src/dreaming/operations/operations.ts
  • platform/daemon/src/dreaming/passes/attention.ts
  • platform/daemon/src/dreaming/passes/claim-relative-time.test.ts
  • platform/daemon/src/dreaming/passes/claim-relative-time.ts
  • platform/daemon/src/dreaming/passes/dreaming.test.ts
  • platform/daemon/src/dreaming/passes/dreaming.ts
  • platform/daemon/src/dreaming/passes/head-fence.test.ts
  • platform/daemon/src/dreaming/passes/history.test.ts
  • platform/daemon/src/dreaming/passes/history.ts
  • platform/daemon/src/dreaming/passes/live-events.test.ts
  • platform/daemon/src/dreaming/passes/live-events.ts
  • platform/daemon/src/dreaming/passes/memory-review-due.test.ts
  • platform/daemon/src/dreaming/passes/memory-review-due.ts
  • platform/daemon/src/dreaming/passes/memorybench-dreaming-gate.test.ts
  • platform/daemon/src/dreaming/passes/policies.ts
  • platform/daemon/src/dreaming/passes/runbook.test.ts
  • platform/daemon/src/dreaming/passes/runbook.ts
  • platform/daemon/src/dreaming/passes/skill.test.ts
  • platform/daemon/src/dreaming/passes/startup.test.ts
  • platform/daemon/src/dreaming/passes/startup.ts
  • platform/daemon/src/dreaming/passes/surprisal.test.ts
  • platform/daemon/src/dreaming/passes/surprisal.ts
  • platform/daemon/src/dreaming/passes/telemetry.test.ts
  • platform/daemon/src/dreaming/passes/token-cache.ts
  • platform/daemon/src/dreaming/passes/worker.test.ts
  • platform/daemon/src/dreaming/passes/worker.ts
  • platform/daemon/src/dreaming/tools/acpx-mcp.test.ts
  • platform/daemon/src/dreaming/tools/acpx-mcp.ts
  • platform/daemon/src/dreaming/tools/acpx-pass-tools.test.ts
  • platform/daemon/src/dreaming/tools/agent-tools.test.ts
  • platform/daemon/src/dreaming/tools/agent-tools.ts
  • platform/daemon/src/dreaming/tools/mcp-tools.test.ts
  • platform/daemon/src/dreaming/tools/mcp-tools.ts
  • platform/daemon/src/dreaming/tools/pass-tools.ts
  • platform/daemon/src/embeddings/index/coverage.test.ts
  • platform/daemon/src/embeddings/index/coverage.ts
  • platform/daemon/src/embeddings/index/health.test.ts
  • platform/daemon/src/embeddings/index/health.ts
  • platform/daemon/src/embeddings/index/migration.test.ts
  • platform/daemon/src/embeddings/index/migration.ts
  • platform/daemon/src/embeddings/index/owner.test.ts
  • platform/daemon/src/embeddings/index/profile.test.ts
  • platform/daemon/src/embeddings/index/profile.ts
  • platform/daemon/src/embeddings/index/repair-state.test.ts
  • platform/daemon/src/embeddings/index/repair-state.ts
  • platform/daemon/src/embeddings/index/state.test.ts
  • platform/daemon/src/embeddings/index/state.ts
  • platform/daemon/src/embeddings/index/tracker.test.ts
  • platform/daemon/src/embeddings/index/tracker.ts
  • platform/daemon/src/embeddings/usage/cost.test.ts
  • platform/daemon/src/embeddings/usage/cost.ts
  • platform/daemon/src/embeddings/usage/usage.test.ts
  • platform/daemon/src/embeddings/usage/usage.ts
  • platform/daemon/src/embeddings/vectors/integration.test.ts
  • platform/daemon/src/embeddings/vectors/repair-owner.test.ts
  • platform/daemon/src/embeddings/vectors/repair-owner.ts
  • platform/daemon/src/embeddings/vectors/repair-policy.ts
  • platform/daemon/src/embeddings/vectors/repair.ts
  • platform/daemon/src/embeddings/vectors/umap-projection.test.ts
  • platform/daemon/src/embeddings/vectors/umap-projection.ts
  • platform/daemon/src/event-loop-responsiveness.test.ts
  • platform/daemon/src/harness/health/harness-health-worker.ts
  • platform/daemon/src/harness/health/health.test.ts
  • platform/daemon/src/harness/health/health.ts
  • platform/daemon/src/harness/identity/context.test.ts
  • platform/daemon/src/harness/identity/context.ts
  • platform/daemon/src/harness/identity/graphiq.test.ts
  • platform/daemon/src/harness/identity/graphiq.ts
  • platform/daemon/src/harness/identity/sync.test.ts
  • platform/daemon/src/harness/identity/sync.ts
  • platform/daemon/src/harness/install/harness-install-worker.ts
  • platform/daemon/src/harness/install/python.test.ts
  • platform/daemon/src/harness/install/python.ts
  • platform/daemon/src/harness/install/registry.test.ts
  • platform/daemon/src/harness/install/registry.ts
  • platform/daemon/src/http/hooks/config.test.ts
  • platform/daemon/src/http/hooks/config.ts
  • platform/daemon/src/http/hooks/hooks.prompt-submit.test.ts
  • platform/daemon/src/http/hooks/hooks.test.ts
  • platform/daemon/src/http/hooks/hooks.ts
  • platform/daemon/src/http/hooks/recall.test.ts
  • platform/daemon/src/http/hooks/transcript-review.test.ts
  • platform/daemon/src/http/mcp/index.ts
  • platform/daemon/src/http/mcp/mcp-stdio.ts
  • platform/daemon/src/http/mcp/route.test.ts
  • platform/daemon/src/http/mcp/route.ts
  • platform/daemon/src/http/mcp/stdio-runtime.ts
  • platform/daemon/src/http/mcp/stdio-url.test.ts
  • platform/daemon/src/http/mcp/stdio-url.ts
  • platform/daemon/src/http/mcp/tools.test.ts
  • platform/daemon/src/http/mcp/tools.ts
  • platform/daemon/src/http/routes/agent-routes-policy.test.ts
  • platform/daemon/src/http/routes/assistant-chat.test.ts
  • platform/daemon/src/http/routes/auth-routes.test.ts
  • platform/daemon/src/http/routes/auth-routes.ts
  • platform/daemon/src/http/routes/board-routes.test.ts
  • platform/daemon/src/http/routes/board-routes.ts
  • platform/daemon/src/http/routes/changelog.ts
  • platform/daemon/src/http/routes/connectors-routes.ts
  • platform/daemon/src/http/routes/cross-agent-context-routes.test.ts
  • platform/daemon/src/http/routes/dashboard-identity.ts
  • platform/daemon/src/http/routes/dashboard.ts
  • platform/daemon/src/http/routes/database-diagnostics.test.ts
  • platform/daemon/src/http/routes/database-diagnostics.ts
  • platform/daemon/src/http/routes/document-routes.test.ts
  • platform/daemon/src/http/routes/git-config.ts
  • platform/daemon/src/http/routes/git-sync.test.ts
  • platform/daemon/src/http/routes/git-sync.ts
  • platform/daemon/src/http/routes/graphiq-install-path.ts
  • platform/daemon/src/http/routes/graphiq-routes.test.ts
  • platform/daemon/src/http/routes/graphiq-routes.ts
  • platform/daemon/src/http/routes/harness-install.test.ts
  • platform/daemon/src/http/routes/harness-install.ts
  • platform/daemon/src/http/routes/harnesses-route.test.ts
  • platform/daemon/src/http/routes/health.test.ts
  • platform/daemon/src/http/routes/health.ts
  • platform/daemon/src/http/routes/hooks-routes.notifications.test.ts
  • platform/daemon/src/http/routes/hooks-routes.ts
  • platform/daemon/src/http/routes/import-routes.test.ts
  • platform/daemon/src/http/routes/import-routes.ts
  • platform/daemon/src/http/routes/inference.ts
  • platform/daemon/src/http/routes/interactive-mutation-audit.test.ts
  • platform/daemon/src/http/routes/knowledge-routes.constellation.test.ts
  • platform/daemon/src/http/routes/knowledge-routes.ts
  • platform/daemon/src/http/routes/marketplace-reviews.test.ts
  • platform/daemon/src/http/routes/marketplace-reviews.ts
  • platform/daemon/src/http/routes/memory-capture-admission.test.ts
  • platform/daemon/src/http/routes/memory-routes-curator.test.ts
  • platform/daemon/src/http/routes/memory-routes-read-scope.test.ts
  • platform/daemon/src/http/routes/memory-routes-scope.test.ts
  • platform/daemon/src/http/routes/memory-routes.test.ts
  • platform/daemon/src/http/routes/memory-routes.ts
  • platform/daemon/src/http/routes/misc-routes.test.ts
  • platform/daemon/src/http/routes/misc-routes.ts
  • platform/daemon/src/http/routes/native-killswitch.test.ts
  • platform/daemon/src/http/routes/ontology-routes.ts
  • platform/daemon/src/http/routes/pipeline-routes-agent.test.ts
  • platform/daemon/src/http/routes/pipeline-routes-dreaming-live.test.ts
  • platform/daemon/src/http/routes/pipeline-routes-dreaming-tools.test.ts
  • platform/daemon/src/http/routes/pipeline-routes-evidence-coverage.test.ts
  • platform/daemon/src/http/routes/pipeline-routes-models.test.ts
  • platform/daemon/src/http/routes/pipeline-routes.ts
  • platform/daemon/src/http/routes/plugins-routes.test.ts
  • platform/daemon/src/http/routes/plugins-routes.ts
  • platform/daemon/src/http/routes/queue-diagnostics.test.ts
  • platform/daemon/src/http/routes/queue-diagnostics.ts
  • platform/daemon/src/http/routes/reflection-routes.test.ts
  • platform/daemon/src/http/routes/reflection-routes.ts
  • platform/daemon/src/http/routes/repair-routes.embedding-scope.test.ts
  • platform/daemon/src/http/routes/repair-routes.test.ts
  • platform/daemon/src/http/routes/repair-routes.ts
  • platform/daemon/src/http/routes/secrets-routes.test.ts
  • platform/daemon/src/http/routes/secrets-routes.ts
  • platform/daemon/src/http/routes/session-control-permissions.test.ts
  • platform/daemon/src/http/routes/session-routes.ts
  • platform/daemon/src/http/routes/skill-analytics.test.ts
  • platform/daemon/src/http/routes/skill-analytics.ts
  • platform/daemon/src/http/routes/skills.test.ts
  • platform/daemon/src/http/routes/skills.ts
  • platform/daemon/src/http/routes/source-deletion-startup-race.test.ts
  • platform/daemon/src/http/routes/source-routes-auth.test.ts
  • platform/daemon/src/http/routes/sources-routes.test.ts
  • platform/daemon/src/http/routes/sources-routes.ts
  • platform/daemon/src/http/routes/state.ts
  • platform/daemon/src/http/routes/telemetry-routes.test.ts
  • platform/daemon/src/http/routes/telemetry-routes.ts
  • platform/daemon/src/http/routes/transcript-import-routes.scope.test.ts
  • platform/daemon/src/http/routes/transcript-import-routes.ts
  • platform/daemon/src/http/routes/utils.ts
  • platform/daemon/src/http/server/bind-with-retry.test.ts
  • platform/daemon/src/http/server/bind-with-retry.ts
  • platform/daemon/src/http/server/bun-socket-polyfill.test.ts
  • platform/daemon/src/http/server/bun-socket-polyfill.ts
  • platform/daemon/src/http/server/internal-fetch.test.ts
  • platform/daemon/src/http/server/internal-fetch.ts
  • platform/daemon/src/http/server/middleware-body-limit.test.ts
  • platform/daemon/src/http/server/middleware-foreign-origin.test.ts
  • platform/daemon/src/http/server/middleware.ts
  • platform/daemon/src/http/server/request-scope.test.ts
  • platform/daemon/src/http/server/request-scope.ts
  • platform/daemon/src/http/server/server.test.ts
  • platform/daemon/src/http/server/server.ts
  • platform/daemon/src/http/server/sse-stream.test.ts
  • platform/daemon/src/http/server/sse-stream.ts
  • platform/daemon/src/index.ts
  • platform/daemon/src/inference/embeddings/circuit-breaker.test.ts
  • platform/daemon/src/inference/embeddings/circuit-breaker.ts
  • platform/daemon/src/inference/embeddings/embedding-worker.test.ts
  • platform/daemon/src/inference/embeddings/embedding-worker.ts
  • platform/daemon/src/inference/embeddings/fetch.test.ts
  • platform/daemon/src/inference/embeddings/fetch.ts
  • platform/daemon/src/inference/embeddings/native-embedding-eventloop-isolation.test.ts
  • platform/daemon/src/inference/embeddings/native.test.ts
  • platform/daemon/src/inference/embeddings/native.ts
  • platform/daemon/src/inference/embeddings/sharp-shim.ts
  • platform/daemon/src/inference/embeddings/transformers-runtime.ts
  • platform/daemon/src/inference/embeddings/wasm-config.test.ts
  • platform/daemon/src/inference/embeddings/wasm-config.ts
  • platform/daemon/src/inference/embeddings/worker-handle.test.ts
  • platform/daemon/src/inference/embeddings/worker-handle.ts
  • platform/daemon/src/inference/embeddings/worker-protocol.ts
  • platform/daemon/src/inference/embeddings/worker-status.test.ts
  • platform/daemon/src/inference/providers/acpx-harness.live.test.ts
  • platform/daemon/src/inference/providers/dreaming-token-worker.ts
  • platform/daemon/src/inference/providers/oauth-runtime.ts
  • platform/daemon/src/inference/providers/oauth.test.ts
  • platform/daemon/src/inference/providers/oauth.ts
  • platform/daemon/src/inference/providers/pi-agent-client.test.ts
  • platform/daemon/src/inference/providers/pi-agent-client.ts
  • platform/daemon/src/inference/providers/pi-agent-fake-acks.mjs
  • platform/daemon/src/inference/providers/pi-agent-fake-die.mjs
  • platform/daemon/src/inference/providers/pi-agent-fake-dispose-ack.mjs
  • platform/daemon/src/inference/providers/pi-agent-fake-silent-die.mjs
  • platform/daemon/src/inference/providers/pi-agent-fake-stale.mjs
  • platform/daemon/src/inference/providers/pi-agent-fake-tool-cancel.mjs
  • platform/daemon/src/inference/providers/pi-agent-fake-two-turns.mjs
  • platform/daemon/src/inference/providers/pi-agent-protocol.ts
  • platform/daemon/src/inference/providers/pi-agent-worker.test.ts
  • platform/daemon/src/inference/providers/pi-agent-worker.ts
  • platform/daemon/src/inference/providers/pi-provider.live.test.ts
  • platform/daemon/src/inference/providers/pi-provider.test.ts
  • platform/daemon/src/inference/providers/pi-provider.ts
  • platform/daemon/src/inference/rerank/cross-encoder-buckets.test.ts
  • platform/daemon/src/inference/rerank/cross-encoder-buckets.ts
  • platform/daemon/src/inference/rerank/native.test.ts
  • platform/daemon/src/inference/rerank/native.ts
  • platform/daemon/src/inference/router/api.test.ts
  • platform/daemon/src/inference/router/llm-concurrency-limits.ts
  • platform/daemon/src/inference/router/llm.ts
  • platform/daemon/src/inference/router/local-context-window.test.ts
  • platform/daemon/src/inference/router/local-context-window.ts
  • platform/daemon/src/inference/router/model-registry.test.ts
  • platform/daemon/src/inference/router/model-registry.ts
  • platform/daemon/src/inference/router/provider-executable-availability.test.ts
  • platform/daemon/src/inference/router/provider-factory.test.ts
  • platform/daemon/src/inference/router/provider-factory.ts
  • platform/daemon/src/inference/router/provider-matrix.test.ts
  • platform/daemon/src/inference/router/provider.test.ts
  • platform/daemon/src/inference/router/provider.ts
  • platform/daemon/src/inference/router/rate-limit.test.ts
  • platform/daemon/src/inference/router/router.test.ts
  • platform/daemon/src/inference/router/router.ts
  • platform/daemon/src/memory/candidates.test.ts
  • platform/daemon/src/memory/candidates.ts
  • platform/daemon/src/memory/classification.ts
  • platform/daemon/src/memory/derived-memory-provenance.ts
  • platform/daemon/src/memory/ingest-filter.test.ts
  • platform/daemon/src/memory/mutation-api.test.ts
  • platform/daemon/src/memory/thread-heads.test.ts
  • platform/daemon/src/memory/thread-heads.ts
  • platform/daemon/src/memory/transactions.test.ts
  • platform/daemon/src/memory/transactions.ts
  • platform/daemon/src/ontology/claims/assertions.test.ts
  • platform/daemon/src/ontology/claims/assertions.ts
  • platform/daemon/src/ontology/claims/evidence.ts
  • platform/daemon/src/ontology/claims/source-claim-review.ts
  • platform/daemon/src/ontology/claims/trace.test.ts
  • platform/daemon/src/ontology/claims/trace.ts
  • platform/daemon/src/ontology/contradictions/antonyms.ts
  • platform/daemon/src/ontology/contradictions/detector.test.ts
  • platform/daemon/src/ontology/contradictions/detector.ts
  • platform/daemon/src/ontology/contradictions/state.test.ts
  • platform/daemon/src/ontology/contradictions/state.ts
  • platform/daemon/src/ontology/evidence/evidence.ts
  • platform/daemon/src/ontology/evidence/link-evidence.ts
  • platform/daemon/src/ontology/extraction/extraction.test.ts
  • platform/daemon/src/ontology/extraction/extraction.ts
  • platform/daemon/src/ontology/extraction/fallback.test.ts
  • platform/daemon/src/ontology/extraction/fallback.ts
  • platform/daemon/src/ontology/extraction/source-extraction.ts
  • platform/daemon/src/ontology/graph/community-detection.ts
  • platform/daemon/src/ontology/graph/entity-quality.test.ts
  • platform/daemon/src/ontology/graph/entity-quality.ts
  • platform/daemon/src/ontology/graph/hygiene.test.ts
  • platform/daemon/src/ontology/graph/hygiene.ts
  • platform/daemon/src/ontology/graph/impact.ts
  • platform/daemon/src/ontology/graph/knowledge-graph-list.test.ts
  • platform/daemon/src/ontology/graph/knowledge-graph.ts
  • platform/daemon/src/ontology/graph/knowledge-navigation.test.ts
  • platform/daemon/src/ontology/graph/quality.test.ts
  • platform/daemon/src/ontology/graph/quality.ts
  • platform/daemon/src/ontology/graph/structural-features.test.ts
  • platform/daemon/src/ontology/graph/structural-features.ts
  • platform/daemon/src/ontology/graph/transactions.test.ts
  • platform/daemon/src/ontology/graph/transactions.ts
  • platform/daemon/src/ontology/history/compaction.test.ts
  • platform/daemon/src/ontology/history/compaction.ts
  • platform/daemon/src/ontology/history/history.ts
  • platform/daemon/src/ontology/proposals/aspect-feedback.ts
  • platform/daemon/src/ontology/proposals/aspect-suggestions.ts
  • platform/daemon/src/ontology/proposals/consolidation.ts
  • platform/daemon/src/ontology/proposals/proposals.test.ts
  • platform/daemon/src/ontology/proposals/proposals.ts
  • platform/daemon/src/plugins/audit.ts
  • platform/daemon/src/plugins/host.test.ts
  • platform/daemon/src/plugins/host.ts
  • platform/daemon/src/plugins/index.ts
  • platform/daemon/src/recall/context/budget.test.ts
  • platform/daemon/src/recall/context/budget.ts
  • platform/daemon/src/recall/context/construction.ts
  • platform/daemon/src/recall/context/prompt-entity-context.test.ts
  • platform/daemon/src/recall/context/prompt-entity-context.ts
  • platform/daemon/src/recall/context/session-recall-dedupe.test.ts
  • platform/daemon/src/recall/context/session-recall-dedupe.ts
  • platform/daemon/src/recall/context/session-start-format.test.ts
  • platform/daemon/src/recall/context/session-start-format.ts
  • platform/daemon/src/recall/graph/inline-entity-linker.test.ts
  • platform/daemon/src/recall/graph/inline-entity-linker.ts
  • platform/daemon/src/recall/graph/knowledge-expand-api.test.ts
  • platform/daemon/src/recall/graph/knowledge-expansion.ts
  • platform/daemon/src/recall/graph/knowledge-feedback.test.ts
  • platform/daemon/src/recall/graph/path-feedback.test.ts
  • platform/daemon/src/recall/graph/path-feedback.ts
  • platform/daemon/src/recall/graph/search.test.ts
  • platform/daemon/src/recall/graph/search.ts
  • platform/daemon/src/recall/graph/structured-evidence.test.ts
  • platform/daemon/src/recall/graph/structured-evidence.ts
  • platform/daemon/src/recall/graph/structured-path-evidence.test.ts
  • platform/daemon/src/recall/graph/structured-path-evidence.ts
  • platform/daemon/src/recall/graph/traversal-compare.test.ts
  • platform/daemon/src/recall/graph/traversal.test.ts
  • platform/daemon/src/recall/graph/traversal.ts
  • platform/daemon/src/recall/rerank/cross-encoder-memo.test.ts
  • platform/daemon/src/recall/rerank/cross-encoder-memo.ts
  • platform/daemon/src/recall/rerank/cross-encoder.test.ts
  • platform/daemon/src/recall/rerank/cross-encoder.ts
  • platform/daemon/src/recall/rerank/embedding.ts
  • platform/daemon/src/recall/rerank/llm.live.test.ts
  • platform/daemon/src/recall/rerank/llm.test.ts
  • platform/daemon/src/recall/rerank/llm.ts
  • platform/daemon/src/recall/rerank/reranker.ts
  • platform/daemon/src/recall/search/aggregate-recall.test.ts
  • platform/daemon/src/recall/search/aggregate-recall.ts
  • platform/daemon/src/recall/search/assistant-retrieval.test.ts
  • platform/daemon/src/recall/search/assistant-retrieval.ts
  • platform/daemon/src/recall/search/filters.ts
  • platform/daemon/src/recall/search/freshness.test.ts
  • platform/daemon/src/recall/search/memory-access-scope.ts
  • platform/daemon/src/recall/search/memory-feedback-api.test.ts
  • platform/daemon/src/recall/search/memory-search.bench.ts
  • platform/daemon/src/recall/search/memory-search.test.ts
  • platform/daemon/src/recall/search/memory-search.ts
  • platform/daemon/src/recall/search/memory-similar-lifecycle.test.ts
  • platform/daemon/src/recall/search/rank-fusion.test.ts
  • platform/daemon/src/recall/search/rank-fusion.ts
  • platform/daemon/src/recall/search/session-memories.bench.ts
  • platform/daemon/src/recall/search/session-memories.test.ts
  • platform/daemon/src/recall/search/session-memories.ts
  • platform/daemon/src/recall/search/transcript-prefetch.test.ts
  • platform/daemon/src/recall/temporal/edges.ts
  • platform/daemon/src/recall/temporal/expand.test.ts
  • platform/daemon/src/recall/temporal/expand.ts
  • platform/daemon/src/recall/temporal/fallback.ts
  • platform/daemon/src/recall/temporal/memory-timeline.test.ts
  • platform/daemon/src/recall/temporal/memory-timeline.ts
  • platform/daemon/src/recall/temporal/recall.test.ts
  • platform/daemon/src/recall/temporal/recall.ts
  • platform/daemon/src/recall/temporal/summary-api.test.ts
  • platform/daemon/src/recall/temporal/timeline.ts
  • platform/daemon/src/recall/text/anchor-terms.ts
  • platform/daemon/src/recall/text/content-normalization.test.ts
  • platform/daemon/src/recall/text/content-normalization.ts
  • platform/daemon/src/recall/text/dampening.test.ts
  • platform/daemon/src/recall/text/dampening.ts
  • platform/daemon/src/recall/text/prompt-text.test.ts
  • platform/daemon/src/recall/text/prompt-text.ts
  • platform/daemon/src/recall/text/stop-words.ts
  • platform/daemon/src/recall/text/tokenizer.test.ts
  • platform/daemon/src/recall/text/tokenizer.ts
  • platform/daemon/src/runtime/concurrency/admission.test.ts
  • platform/daemon/src/runtime/concurrency/admission.ts
  • platform/daemon/src/runtime/concurrency/async-yield.test.ts
  • platform/daemon/src/runtime/concurrency/async-yield.ts
  • platform/daemon/src/runtime/concurrency/single-flight-runner.test.ts
  • platform/daemon/src/runtime/concurrency/single-flight-runner.ts
  • platform/daemon/src/runtime/logging/logger.test.ts
  • platform/daemon/src/runtime/logging/logger.ts
  • platform/daemon/src/runtime/logging/pipeline-error.test.ts
  • platform/daemon/src/runtime/logging/pipeline-error.ts
  • platform/daemon/src/runtime/logging/pipeline-operation.test.ts
  • platform/daemon/src/runtime/logging/pipeline-operation.ts
  • platform/daemon/src/runtime/service/lifecycle.test.ts
  • platform/daemon/src/runtime/service/lifecycle.ts
  • platform/daemon/src/runtime/service/service.test.ts
  • platform/daemon/src/runtime/service/service.ts
  • platform/daemon/src/runtime/service/single-instance-lock.test.ts
  • platform/daemon/src/runtime/service/single-instance-lock.ts
  • platform/daemon/src/runtime/service/version.test.ts
  • platform/daemon/src/runtime/service/version.ts
  • platform/daemon/src/runtime/service/which.test.ts
  • platform/daemon/src/runtime/service/which.ts
  • platform/daemon/src/runtime/service/windows-process-visibility.test.ts
  • platform/daemon/src/runtime/shutdown/restart.test.ts
  • platform/daemon/src/runtime/shutdown/restart.ts
  • platform/daemon/src/runtime/shutdown/shutdown.test.ts
  • platform/daemon/src/runtime/shutdown/shutdown.ts
  • platform/daemon/src/runtime/startup/deferred-runtime-gate.test.ts
  • platform/daemon/src/runtime/startup/deferred-runtime-gate.ts
  • platform/daemon/src/runtime/testing/test-temp-dir.exit.test.ts
  • platform/daemon/src/runtime/testing/test-temp-dir.test.ts
  • platform/daemon/src/runtime/testing/test-temp-dir.ts
  • platform/daemon/src/runtime/update/install.ts
  • platform/daemon/src/runtime/update/native-release-limits.ts
  • platform/daemon/src/runtime/update/native-runtime-assets.test.ts
  • platform/daemon/src/runtime/update/native-runtime-assets.ts
  • platform/daemon/src/runtime/update/route.test.ts
  • platform/daemon/src/runtime/update/system.test.ts
  • platform/daemon/src/runtime/update/system.ts
  • platform/daemon/src/secrets/bitwarden.test.ts
  • platform/daemon/src/secrets/bitwarden.ts
  • platform/daemon/src/secrets/onepassword.test.ts
  • platform/daemon/src/secrets/onepassword.ts
  • platform/daemon/src/secrets/secrets.test.ts
  • platform/daemon/src/secrets/secrets.ts
  • platform/daemon/src/sessions/api.test.ts
  • platform/daemon/src/sessions/checkpoints.test.ts
  • platform/daemon/src/sessions/checkpoints.ts
  • platform/daemon/src/sessions/claims.test.ts
  • platform/daemon/src/sessions/claims.ts
  • platform/daemon/src/sessions/compaction-owner.test.ts
  • platform/daemon/src/sessions/continuity-scoring.test.ts
  • platform/daemon/src/sessions/continuity-state.test.ts
  • platform/daemon/src/sessions/continuity-state.ts
  • platform/daemon/src/sessions/end-state.ts
  • platform/daemon/src/sessions/noise.test.ts
  • platform/daemon/src/sessions/noise.ts
  • platform/daemon/src/sessions/start-state.ts
  • platform/daemon/src/sessions/tracker.test.ts
  • platform/daemon/src/sessions/tracker.ts
  • platform/daemon/src/sessions/ttl-finalizer.test.ts
  • platform/daemon/src/sessions/ttl-finalizer.ts
  • platform/daemon/src/sources/imports/admission-ledger.test.ts
  • platform/daemon/src/sources/imports/admission-ledger.ts
  • platform/daemon/src/sources/imports/document-import-service.ts
  • platform/daemon/src/sources/imports/inbox.test.ts
  • platform/daemon/src/sources/imports/inbox.ts
  • platform/daemon/src/sources/imports/manual-inbox-worker.test.ts
  • platform/daemon/src/sources/imports/manual-inbox-worker.ts
  • platform/daemon/src/sources/imports/normalizer.test.ts
  • platform/daemon/src/sources/imports/normalizer.ts
  • platform/daemon/src/sources/lifecycle/artifact-graph.test.ts
  • platform/daemon/src/sources/lifecycle/artifact-graph.ts
  • platform/daemon/src/sources/lifecycle/deletion-lock.ts
  • platform/daemon/src/sources/lifecycle/imported-lifecycle.test.ts
  • platform/daemon/src/sources/lifecycle/imported-lifecycle.ts
  • platform/daemon/src/sources/lifecycle/imported-outcome.test.ts
  • platform/daemon/src/sources/lifecycle/imported-outcome.ts
  • platform/daemon/src/sources/lifecycle/index-progress.test.ts
  • platform/daemon/src/sources/lifecycle/index-progress.ts
  • platform/daemon/src/sources/lifecycle/memory-lineage-migration.test.ts
  • platform/daemon/src/sources/lifecycle/memory-lineage.test.ts
  • platform/daemon/src/sources/lifecycle/memory-lineage.ts
  • platform/daemon/src/sources/lifecycle/provider-registry.ts
  • platform/daemon/src/sources/lifecycle/purge-tx.ts
  • platform/daemon/src/sources/lifecycle/purge.ts
  • platform/daemon/src/sources/lifecycle/semantic-memory-projection.ts
  • platform/daemon/src/sources/lifecycle/snapshots.test.ts
  • platform/daemon/src/sources/lifecycle/snapshots.ts
  • platform/daemon/src/sources/providers/discord/desktop-cache-source.ts
  • platform/daemon/src/sources/providers/discord/fetch.test.ts
  • platform/daemon/src/sources/providers/discord/fetch.ts
  • platform/daemon/src/sources/providers/discord/gateway-tail.ts
  • platform/daemon/src/sources/providers/discord/provider.test.ts
  • platform/daemon/src/sources/providers/discord/provider.ts
  • platform/daemon/src/sources/providers/filesystem/connector-registry.ts
  • platform/daemon/src/sources/providers/filesystem/connector.test.ts
  • platform/daemon/src/sources/providers/filesystem/connector.ts
  • platform/daemon/src/sources/providers/filesystem/file-sync.test.ts
  • platform/daemon/src/sources/providers/filesystem/file-sync.ts
  • platform/daemon/src/sources/providers/filesystem/watcher-ignore.test.ts
  • platform/daemon/src/sources/providers/filesystem/watcher-ignore.ts
  • platform/daemon/src/sources/providers/github/fetch.test.ts
  • platform/daemon/src/sources/providers/github/fetch.ts
  • platform/daemon/src/sources/providers/github/provider.test.ts
  • platform/daemon/src/sources/providers/github/provider.ts
  • platform/daemon/src/sources/providers/native-memory/constants.ts
  • platform/daemon/src/sources/providers/native-memory/dataless.test.ts
  • platform/daemon/src/sources/providers/native-memory/directory.ts
  • platform/daemon/src/sources/providers/native-memory/native-memory-source-worker.test.ts
  • platform/daemon/src/sources/providers/native-memory/native-memory-source-worker.ts
  • platform/daemon/src/sources/providers/native-memory/provider.test.ts
  • platform/daemon/src/sources/providers/native-memory/provider.ts
  • platform/daemon/src/sources/providers/native-memory/sync-state.ts
  • platform/daemon/src/sources/providers/native-memory/worker-scale.test.ts
  • platform/daemon/src/sources/providers/notion/fetch.ts
  • platform/daemon/src/sources/providers/notion/provider.test.ts
  • platform/daemon/src/sources/providers/notion/provider.ts
  • platform/daemon/src/sources/providers/obsidian/chunks.ts
  • platform/daemon/src/sources/providers/obsidian/embeddings.test.ts
  • platform/daemon/src/sources/providers/obsidian/embeddings.ts
  • platform/daemon/src/sources/providers/obsidian/graph.test.ts
  • platform/daemon/src/sources/providers/obsidian/graph.ts
  • platform/daemon/src/sources/providers/web/provider.test.ts
  • platform/daemon/src/sources/providers/web/provider.ts
  • platform/daemon/src/sources/providers/web/url-fetcher.ts
  • platform/daemon/src/sources/providers/web/url-validation.ts
  • platform/daemon/src/sources/providers/web/url.ts
  • platform/daemon/src/telemetry/diagnostics/black-box.test.ts
  • platform/daemon/src/telemetry/diagnostics/black-box.ts
  • platform/daemon/src/telemetry/diagnostics/diagnostics.test.ts
  • platform/daemon/src/telemetry/diagnostics/diagnostics.ts
  • platform/daemon/src/telemetry/diagnostics/queue.ts
  • platform/daemon/src/telemetry/diagnostics/status-projection.test.ts
  • platform/daemon/src/telemetry/diagnostics/status-summary.test.ts
  • platform/daemon/src/telemetry/diagnostics/status-summary.ts
  • platform/daemon/src/telemetry/pressure/resource-monitor.test.ts
  • platform/daemon/src/telemetry/pressure/resource-monitor.ts
  • platform/daemon/src/telemetry/pressure/resource-telemetry.test.ts
  • platform/daemon/src/telemetry/pressure/resource-telemetry.ts
  • platform/daemon/src/telemetry/pressure/runtime-pressure.test.ts
  • platform/daemon/src/telemetry/pressure/runtime-pressure.ts
  • platform/daemon/src/telemetry/pressure/system-pressure.ts
  • platform/daemon/src/telemetry/search/memory-search-project.ts
  • platform/daemon/src/telemetry/search/memory-search.test.ts
  • platform/daemon/src/telemetry/search/memory-search.ts
  • platform/daemon/src/telemetry/search/recall.test.ts
  • platform/daemon/src/telemetry/search/recall.ts
  • platform/daemon/src/telemetry/search/source-lifecycle.test.ts
  • platform/daemon/src/telemetry/search/source-lifecycle.ts
  • platform/daemon/src/telemetry/usage/analytics.test.ts
  • platform/daemon/src/telemetry/usage/analytics.ts
  • platform/daemon/src/telemetry/usage/consent.integration.test.ts
  • platform/daemon/src/telemetry/usage/telemetry.test.ts
  • platform/daemon/src/telemetry/usage/telemetry.ts
  • platform/daemon/src/transcripts/capture/capture.test.ts
  • platform/daemon/src/transcripts/capture/capture.ts
  • platform/daemon/src/transcripts/capture/skill-invocations.test.ts
  • platform/daemon/src/transcripts/capture/skill-invocations.ts
  • platform/daemon/src/transcripts/capture/skill-transcript-scan.test.ts
  • platform/daemon/src/transcripts/capture/skill-transcript-scan.ts
  • platform/daemon/src/transcripts/capture/worker.test.ts
  • platform/daemon/src/transcripts/capture/worker.ts
  • platform/daemon/src/transcripts/import/adapter.test.ts
  • platform/daemon/src/transcripts/import/adapter.ts
  • platform/daemon/src/transcripts/import/admission.ts
  • platform/daemon/src/transcripts/import/bytes.test.ts
  • platform/daemon/src/transcripts/import/bytes.ts
  • platform/daemon/src/transcripts/import/commit.test.ts
  • platform/daemon/src/transcripts/import/commit.ts
  • platform/daemon/src/transcripts/import/migration.ts
  • platform/daemon/src/transcripts/import/operation-lock.ts
  • platform/daemon/src/transcripts/import/replay-regression.test.ts
  • platform/daemon/src/transcripts/import/safe-fs.ts
  • platform/daemon/src/transcripts/import/scan.test.ts
  • platform/daemon/src/transcripts/import/scan.ts
  • platform/daemon/src/transcripts/import/store.ts
  • platform/daemon/src/transcripts/import/worker.ts
  • platform/daemon/src/transcripts/recovery/session-end.ts
  • platform/daemon/src/transcripts/recovery/transcript-recovery-child.ts
  • platform/daemon/src/transcripts/recovery/transcript-recovery-supervisor.ts
  • platform/daemon/src/transcripts/recovery/transcript-recovery-worker.test.ts
  • platform/daemon/src/transcripts/recovery/transcript-recovery-worker.ts
  • platform/daemon/src/transcripts/store/artifact-lease.ts
  • platform/daemon/src/transcripts/store/audit.test.ts
  • platform/daemon/src/transcripts/store/audit.ts
  • platform/daemon/src/transcripts/store/files.test.ts
  • platform/daemon/src/transcripts/store/files.ts
  • platform/daemon/src/transcripts/store/health.ts
  • platform/daemon/src/transcripts/store/jsonl.test.ts
  • platform/daemon/src/transcripts/store/jsonl.ts
  • platform/daemon/src/transcripts/store/lifecycle-intents.test.ts
  • platform/daemon/src/transcripts/store/lifecycle-intents.ts
  • platform/daemon/src/transcripts/store/lifecycle.ts
  • platform/daemon/src/transcripts/store/normalization.test.ts
  • platform/daemon/src/transcripts/store/normalization.ts
  • platform/daemon/src/transcripts/store/session-transcript-delete.integration.test.ts
  • platform/daemon/src/transcripts/store/session-transcript-owner.integration.test.ts
  • platform/daemon/src/transcripts/store/session-transcript-review.test.ts
  • platform/daemon/src/transcripts/store/session-transcripts.test.ts
  • platform/daemon/src/transcripts/store/session-transcripts.ts
  • platform/daemon/src/worker-process-boundary.test.ts
  • platform/daemon/src/workers/document.test.ts
  • platform/daemon/src/workers/document.ts
  • platform/daemon/src/workers/index.ts
  • platform/daemon/src/workers/maintenance.test.ts
  • platform/daemon/src/workers/maintenance.ts
  • platform/daemon/src/workers/prospective-index.test.ts
  • platform/daemon/src/workers/prospective-index.ts
  • platform/daemon/src/workers/reflection.test.ts
  • platform/daemon/src/workers/reflection.ts
  • platform/daemon/src/workers/retention.test.ts
  • platform/daemon/src/workers/retention.ts
  • platform/daemon/src/workers/skills/frontmatter.ts
  • platform/daemon/src/workers/skills/graph.test.ts
  • platform/daemon/src/workers/skills/graph.ts
  • platform/daemon/src/workers/skills/reconciler.test.ts
  • platform/daemon/src/workers/skills/reconciler.ts
  • platform/daemon/src/workers/stale-leases.test.ts
  • platform/daemon/src/workers/stale-leases.ts
  • platform/daemon/src/workers/synthesis/lifecycle-proof.test.ts
  • platform/daemon/src/workers/synthesis/protocol.ts
  • platform/daemon/src/workers/synthesis/render-worker.test.ts
  • platform/daemon/src/workers/synthesis/request.test.ts
  • platform/daemon/src/workers/synthesis/request.ts
  • platform/daemon/src/workers/synthesis/synthesis-render-worker.ts
  • platform/daemon/src/workers/synthesis/worker.test.ts
  • platform/daemon/src/workers/synthesis/worker.ts
  • platform/daemon/src/workspace/layout-startup.ts
  • platform/daemon/src/workspace/layout-upgrade.test.ts
  • platform/daemon/src/workspace/layout-upgrade.ts
  • platform/daemon/src/workspace/private-paths.test.ts
  • platform/daemon/src/workspace/private-paths.ts
  • platform/daemon/src/workspace/protection-receipt.test.ts
  • platform/daemon/src/workspace/protection.test.ts
  • platform/daemon/src/workspace/protection.ts
  • platform/daemon/src/workspace/startup.test.ts
  • scripts/audit-architecture-ratchet.test.ts
  • scripts/audit-architecture-ratchet.ts
  • scripts/audit-database-ownership.test.ts
  • scripts/audit-database-ownership.ts
  • scripts/audit-event-loop-contract.test.ts
  • scripts/audit-event-loop-contract.ts
  • scripts/bench-memory.test.ts
  • scripts/bench-prompt-submit.ts
  • scripts/build-native-bun.ts
  • scripts/build-signet-mcp.ts
  • scripts/check-publish-manifests.test.ts
  • scripts/check-publish-manifests.ts
  • scripts/claim-trace-eval.ts
  • scripts/daemon-layout.test.ts
  • scripts/doc-drift.ts
  • scripts/evals/cross-agent-notification-latency.ts
  • scripts/evals/dream-attach.ts
  • scripts/evals/runtime-pressure-envelope.ts
  • scripts/evals/web-source-import.ts
  • scripts/event-loop-contract-audit.md
  • scripts/event-loop-contract-baseline.json
  • scripts/load-test-stale-session-sweep.ts
  • scripts/native-dreaming-finalize-smoke.test.ts
  • scripts/native-dreaming-mcp-smoke.test.ts
  • scripts/native-worker-bundle-contract.test.ts
  • scripts/observer-belief-eval.ts
  • scripts/pr-baseline-workflow.test.ts
  • scripts/sql-owners.json
  • scripts/sync-db-attribution-runtime.test.ts
  • scripts/vector-repair-compiled-fixture.ts
  • surfaces/cli/src/cli.ts
  • surfaces/cli/src/features/graphiq.ts
  • surfaces/dashboard/DASHBOARD_API_MAP.md
  • surfaces/dashboard/README.md
  • web/docs/src/content/docs/api/route-inventory.md
  • web/docs/src/content/docs/architecture/db-owner-protocol.md
  • web/docs/src/content/docs/architecture/platform-services.md
  • web/docs/src/content/docs/connectors.md
  • web/docs/src/content/docs/contributing.md
  • web/docs/src/content/docs/knowledge-architecture.md
  • web/docs/src/content/docs/knowledge-graph.md
  • web/docs/src/content/docs/mcp.md
  • web/docs/src/content/docs/memory.md
  • web/docs/src/content/docs/pipeline/continuity-lineage.md
  • web/docs/src/content/docs/pipeline/workers-maintenance.md

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

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

The embedding isolation workflow and the release workflow run daemon tests by package-relative path; update them to the files' new locations.

Assisted-by: Hermes:claude-opus-5-5
Assisted-by: Hermes:claude-opus-5-5
@NicholaiVogel

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Action not completed

Review skipped: 773 files exceed the limit of 100.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

The DB foundation and owner-purity guards matched import strings that the move made stale, so equivalent forbidden imports passed. Resolve each import to its source path and check that instead. Also point the architecture docs at the moved files.

Assisted-by: Hermes:claude-opus-5-5
The ratchet judged a renamed file's base content against the head SQL owner list, so an owner renamed in the same change lost its exemption at base and gained false raw-SQL budget. Read the owner list from the base revision of the script. Also widen the foundation guard's import scan to every relative path string so side-effect imports, require, and export-from are caught.

Assisted-by: Hermes:claude-opus-5-5
Parsing the owner list from the base script could fall back to the head list or read it partially after a harmless reformat. Exempt a file's base side when its old path or any new path is a SQL owner instead. Collect foundation guard imports with the TypeScript parser so unrelated strings are ignored and every import form is seen.

Assisted-by: Hermes:claude-opus-5-5
Path-based exemptions mis-handled copies into owners and owner demotions. Count each base file under the base revision's owner list, read from that revision's script with the TypeScript parser, resolving spreads and failing when the list cannot be read. The foundation guard also follows import-equals and parenthesized loaders.

Assisted-by: Hermes:claude-opus-5-5
Reading the base owner list by parsing the base script kept missing ways the list could be written. Store the list in scripts/sql-owners.json so each revision's list is read as data, and fail when it is not a string array. The foundation guard now asks Bun's transpiler which modules a file loads at runtime.

Assisted-by: Hermes:claude-opus-5-5
Bun's import scanner does not report import.meta.require calls, so collect literal ones alongside it. Point the contributor docs at scripts/sql-owners.json.

Assisted-by: Hermes:claude-opus-5-5
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