<!-- GENERATED by ./generate-readme.mjs. Edit cells/*.md frontmatter, then run: node docs/architecture/ownership/generate-readme.mjs -->

# Architecture Ownership Map

本目录是 Cat Cafe 架构归属路由索引。它与 `docs/architecture/2026-05-05-architecture-views.md` 互补：architecture views 是叙事性架构快照；ownership cells 用来判断新 Feature 落在哪条架构线，以及本次是否改变边界。

Feature spec 和 implementation plan 应引用：

```markdown
Architecture cell: {cell_id}
Map delta: none | update required | new cell required
Why: 一句话
```

普通增量只引用已有 cell，不改 map。只有 Feature 改变归属、边界、扩展点或 canonical anchors 时才更新 cell。找不到 cell = Phase 0 架构发现还没做完。

## Cells

| Cell | Title | Summary | Canonical Features | Primary Code Anchors |
|------|-------|---------|--------------------|----------------------|
| [`action-plane`](cells/action-plane.md) | Action Plane | 外部动作的 typed service、CLI executor、callback route、权限、审计、dry-run 与资源句柄。 | `ADR-029`, `F162` | `packages/api/src/infrastructure/enterprise/WeComActionService.ts`<br>`packages/api/src/infrastructure/enterprise/WeComCliExecutor.ts`<br>`packages/api/src/infrastructure/enterprise/LarkActionService.ts`<br>`packages/api/src/infrastructure/enterprise/LarkCliExecutor.ts`<br>`packages/api/src/routes/callback-wecom-action-routes.ts`<br>`packages/api/src/routes/callback-lark-action-routes.ts` |
| [`bubble-pipeline`](cells/bubble-pipeline.md) | Bubble Pipeline | 前端消息气泡 identity、reducer single-writer、hydration、诊断与 cache invalidation。 | `F183` | `packages/shared/src/types/bubble-pipeline.ts`<br>`packages/web/src/stores/bubble-reducer.ts`<br>`packages/web/src/stores/chatStore.ts`<br>`packages/web/src/hooks/useAgentMessages.ts`<br>`packages/web/src/debug/bubbleIdentity.ts`<br>`packages/web/src/debug/bubbleInvariantDiagnostics.ts` |
| [`callback-auth`](cells/callback-auth.md) | Callback Auth | Invocation credential、callback token 验证、refresh、telemetry 与现场 auth failure 可见性。 | `F174` | `packages/api/src/domains/cats/services/agents/invocation/InvocationRegistry.ts`<br>`packages/api/src/domains/cats/services/agents/invocation/RedisAuthInvocationBackend.ts`<br>`packages/api/src/domains/cats/services/agents/invocation/MemoryAuthInvocationBackend.ts`<br>`packages/api/src/routes/callback-auth-prehandler.ts`<br>`packages/api/src/routes/callback-auth-schema.ts`<br>`packages/api/src/routes/callback-auth-telemetry.ts`<br>`packages/api/src/routes/callback-auth-system-message.ts`<br>`packages/shared/src/types/callback-auth-reasons.ts` |
| [`dispatch`](cells/dispatch.md) | Dispatch / Queue | Invocation queue、busy gate、fairness、priority 与外部 wake 执行。 | `F175`, `F185` | `packages/api/src/domains/cats/services/agents/invocation/InvocationQueue.ts`<br>`packages/api/src/domains/cats/services/agents/invocation/QueueProcessor.ts`<br>`packages/api/src/domains/cats/services/agents/invocation/InvocationTracker.ts`<br>`packages/api/src/infrastructure/email/ConnectorInvokeTrigger.ts`<br>`packages/api/src/routes/messages.ts` |
| [`harness-eval`](cells/harness-eval.md) | Harness Eval Control Plane | Harness contract、runtime eval、verdict handoff、domain registry、legacy scheduled-task migration 与 re-eval closure。 | `F192` | `packages/api/src/infrastructure/harness-eval/f167-eval.ts`<br>`packages/api/src/infrastructure/harness-eval/attribution.ts`<br>`packages/api/src/infrastructure/harness-eval/eval-domain-registry.ts`<br>`packages/api/src/infrastructure/harness-eval/verdict-handoff.ts`<br>`packages/api/src/infrastructure/harness-eval/eval-cat-invocation.ts`<br>`packages/api/src/infrastructure/harness-eval/legacy-task-cleanup.ts`<br>`packages/api/src/infrastructure/harness-eval/reeval-closure.ts`<br>`packages/api/src/infrastructure/harness-eval/eval-a2a-adapter.ts`<br>`sop-definitions/development.yaml`<br>`sop-definitions/stubs/video-cocreation.yaml`<br>`sop-definitions/stubs/tech-article.yaml`<br>`sop-definitions/stubs/family-office.yaml`<br>`scripts/sop-definitions.mjs`<br>`scripts/lib/sop-definition-codegen.mjs`<br>`packages/shared/src/types/sop-definition.generated.ts` |
| [`identity-session`](cells/identity-session.md) | Identity / Session | Agent identity、connector session binding、bubble identity、runtime session binding 四个 subcell 的边界。 | `F032`, `F088`, `F183`, `F211` | `cat-config.json`<br>`packages/api/src/config/cat-config-loader.ts`<br>`packages/shared/src/types/cat.ts`<br>`packages/api/src/infrastructure/connectors/ConnectorThreadBindingStore.ts`<br>`packages/api/src/infrastructure/connectors/connector-binding-keys.ts`<br>`packages/api/src/routes/thread-cats-core.ts`<br>`packages/web/src/debug/bubbleIdentity.ts`<br>`packages/api/src/domains/cats/services/stores/ports/SessionChainStore.ts`<br>`packages/api/src/domains/cats/services/agents/providers/antigravity/AntigravityBridge.ts` |
| [`memory`](cells/memory.md) | Memory / Evidence | Evidence indexing、retrieval、scanner selection、bootstrap 与 library memory。 | `F102`, `F152`, `F209` | `packages/api/src/domains/memory/interfaces.ts`<br>`packages/api/src/domains/memory/IndexBuilder.ts`<br>`packages/api/src/domains/memory/SqliteEvidenceStore.ts`<br>`packages/api/src/domains/memory/CatCafeScanner.ts`<br>`packages/api/src/domains/memory/GenericRepoScanner.ts`<br>`packages/api/src/domains/memory/ExpeditionBootstrapService.ts`<br>`packages/api/src/domains/memory/KnowledgeResolver.ts` |
| [`thread-navigation`](cells/thread-navigation.md) | Thread Navigation / Metadata | Thread labels、pins、favorites、sidebar filters 与用户面向的 thread 组织语义。 | `F057`, `F095`, `F187` | `packages/api/src/routes/labels.ts`<br>`packages/api/src/routes/threads.ts`<br>`packages/api/src/domains/cats/services/stores/ports/ThreadStore.ts`<br>`packages/api/src/domains/cats/services/stores/redis/RedisLabelStore.ts`<br>`packages/api/src/domains/cats/services/stores/redis-keys/label-keys.ts`<br>`packages/api/src/domains/cats/services/stores/factories/LabelStoreFactory.ts`<br>`packages/web/src/stores/label-store.ts`<br>`packages/web/src/components/ThreadSidebar/ThreadSidebar.tsx`<br>`packages/web/src/components/ThreadSidebar/LabelFilterBar.tsx`<br>`packages/web/src/components/ThreadSidebar/ThreadLabelPicker.tsx`<br>`packages/web/src/components/ThreadSidebar/thread-navigation.ts` |
| [`transport`](cells/transport.md) | Transport Plane | Raw transport 规范化之后的平台/设备消息入口、出口与对话语义。 | `F088`, `F124` | `packages/api/src/infrastructure/connectors/ConnectorRouter.ts`<br>`packages/api/src/infrastructure/connectors/ConnectorMessageFormatter.ts`<br>`packages/api/src/infrastructure/connectors/ConnectorCommandLayer.ts`<br>`packages/api/src/infrastructure/connectors/ConnectorThreadBindingStore.ts`<br>`packages/api/src/infrastructure/connectors/OutboundDeliveryHook.ts`<br>`packages/api/src/infrastructure/connectors/StreamingOutboundHook.ts`<br>`packages/shared/src/types/connector.ts` |

## Generated Source

本 README 由 `cells/*.md` frontmatter 生成，不是真相源。不要手改上方表格。
