{
  "topic": "site-runtime",
  "reviewMethod": "Static source review at pinned commits (agent 9542399f0060, desktop 986b55d69f3f, plugins ea65d3ca0d62); whole-site narrative synthesizes existing verified topics (overview, enterprise-tour-narrative, enterprise-task-e2e, desktop-client, trust-boundaries). Product Pack×Edition / MSP framing from product-narrative (no code evidence). No product runtime tests or production inspection. Latest review: 2026-10-29 GitHub default-branch pinned snapshot; cited-file blob comparison and changed-range semantic review, not deployment verification.",
  "claims": [
    {
      "statement": "三仓分工：Agent 持企业执行机制与 Run/IX 真相；Desktop Main 承载本机能力与 PluginHost；Plugins 仓提供协议、SDK 和不可变包，不持有服务端任务状态。",
      "status": "verified",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/gateway/orchestrator-runtime.ts",
          "line": 434,
          "endLine": 462,
          "symbol": "prepareExecution"
        },
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/electron/plugin-host/plugin-host.ts",
          "line": 96,
          "endLine": 127,
          "symbol": "export class PluginHost"
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/execution-host/router.ts",
          "line": 50,
          "endLine": 80,
          "symbol": "ExecutionHostRouter"
        }
      ]
    },
    {
      "statement": "一轮用户话：Desktop Main 组装并持久提交；ChatSubmissionStore.admit 共同受理 direct/routed，RunExecutionWorker 领取后由 Work 共同控制推进，HTTP 仅为受理和观察传输，不拥有执行寿命。",
      "status": "verified",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/README.md",
          "line": 14,
          "endLine": 75
        },
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/electron/agent-loop/enterprise-adapter.ts",
          "line": 119,
          "endLine": 177,
          "symbol": "prepareEnterpriseChatInput"
        }
      ]
    },
    {
      "statement": "Run 状态是可更新的持久化记录（agent_runs）；Desktop 本地仓与 SSE 投影不能反写服务端 SoT。",
      "status": "verified",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/run-store.ts",
          "line": 668,
          "endLine": 698,
          "symbol": "UPDATE agent_runs"
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/shared/interaction-kernel-state.ts",
          "line": 11,
          "endLine": 41,
          "symbol": "INTERACTION_STATUSES"
        }
      ]
    },
    {
      "statement": "Desktop 协议门对显式错误版本，以及缺头但携带本机执行载荷的请求返回426；无头且无本机载荷只证明通过该门，不单独证明最终工具集合。IX与Runtime Work协议另行校验。",
      "status": "verified",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/gateway/chat-routes.ts",
          "line": 326,
          "endLine": 364,
          "symbol": "DESKTOP_UPGRADE_REQUIRED_BODY"
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/gateway/chat-routes.ts",
          "line": 401,
          "endLine": 408,
          "symbol": "RUNTIME_EXECUTION_PROTOCOL_UNSUPPORTED"
        },
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/shared/generated/protocol-version.ts",
          "line": 1,
          "endLine": 8,
          "symbol": "DESKTOP_PROTOCOL_VERSION"
        }
      ]
    },
    {
      "statement": "MSP / Pack×Edition 为产品会前口径（MSP≠单纯多租户；AidaWork=VMS/MSP 产品包），本主题不另证代码完备；运行扩缩与租户配额见 scaling-roles，≠ MSP 产品定义。",
      "status": "unverified",
      "limit": "产品口径历史记录，不作代码实现或部署证明。"
    },
    {
      "statement": "Mermaid M01 责任与事实归属：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/README.md",
          "line": 1,
          "endLine": 75
        }
      ]
    },
    {
      "statement": "Mermaid M02 一次持久执行与断线观察：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/README.md",
          "line": 14,
          "endLine": 75
        }
      ]
    },
    {
      "statement": "Mermaid M03 条件产物完成判定：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/work/run-work-conditional-artifact.ts",
          "line": 88,
          "endLine": 365
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/work/run-work-carrier-terminal.ts",
          "line": 15,
          "endLine": 50
        }
      ]
    },
    {
      "statement": "Mermaid M04 会话队列的真实状态：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/conversation-turn-queue.ts",
          "line": 24,
          "endLine": 36
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/conversation-turn-queue.ts",
          "line": 370,
          "endLine": 435
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/conversation-turn-queue.ts",
          "line": 539,
          "endLine": 629
        }
      ]
    },
    {
      "statement": "Mermaid M05 Interaction 与提交尝试分开：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/shared/interaction-kernel-state.ts",
          "line": 234,
          "endLine": 413
        }
      ]
    },
    {
      "statement": "Mermaid M06 Settlement attempt 的不确定结果：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/shared/interaction-kernel-state.ts",
          "line": 10,
          "endLine": 45
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/shared/interaction-kernel-state.ts",
          "line": 245,
          "endLine": 335
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/shared/interaction-kernel-state.ts",
          "line": 376,
          "endLine": 400
        }
      ]
    },
    {
      "statement": "Mermaid M07 邮箱读取的范围与分页：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/gateway/delegated-desktop-capabilities.ts",
          "line": 218,
          "endLine": 229
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/connectors/email/imap-mailbox-client.ts",
          "line": 394,
          "endLine": 477
        }
      ]
    },
    {
      "statement": "Mermaid M08 UML：Worker、配置接口与观测快照：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/execution/run-execution-worker.ts",
          "line": 42,
          "endLine": 75
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/execution/run-execution-worker.ts",
          "line": 90,
          "endLine": 162
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/execution/run-execution-worker.ts",
          "line": 164,
          "endLine": 189
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/execution/run-execution-attempt.ts",
          "line": 81,
          "endLine": 102
        }
      ]
    },
    {
      "statement": "Mermaid M09 组件关系：Worker 的领取、维护与执行依赖：按相应源码表达责任、调用或状态；区分类、接口、依赖、合同与概念视图。",
      "status": "verified",
      "limit": "静态源码复核，不证明真实浏览器布局、所有 producer 迁移或生产部署；持久性只按实现保证。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/execution/run-execution-worker.ts",
          "line": 192,
          "endLine": 262
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/execution/run-execution-worker.ts",
          "line": 265,
          "endLine": 344
        }
      ]
    },
    {
      "statement": "开发者指南 change：定位代码改动，按当前固定源码与关联主题定位责任和边界；建议操作与验收计划不是已执行结果。",
      "status": "verified",
      "limit": "只核对当前代码与文档结构；生产配置、所有真实客户端、清理作业及原生/浏览器验收另行举证。PR状态仅为读取时快照。",
      "sources": [
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/conversation-turn-queue.ts",
          "line": 24,
          "endLine": 36
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/conversation-turn-queue.ts",
          "line": 307,
          "endLine": 359
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/conversation-turn-queue.ts",
          "line": 539,
          "endLine": 596
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/execution/run-execution-worker.ts",
          "line": 192,
          "endLine": 344
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/local-file-message-attachment.ts",
          "line": 11,
          "endLine": 45
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/session/local-file-operation-store.ts",
          "line": 545,
          "endLine": 674
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/routing/conditional-artifact-contract.ts",
          "line": 15,
          "endLine": 103
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/work/run-work-conditional-artifact.ts",
          "line": 89,
          "endLine": 365
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/shared/interaction-kernel-state.ts",
          "line": 234,
          "endLine": 413
        },
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/electron/plugin-host/plugin-host.ts",
          "line": 1452,
          "endLine": 1557
        },
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/electron/auth/credential-vault.ts",
          "line": 87,
          "endLine": 163
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/connectors/credential-provider.ts",
          "line": 55,
          "endLine": 144
        },
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/electron/security/local-secure-envelope.ts",
          "line": 79,
          "endLine": 139
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/README.md",
          "line": 14,
          "endLine": 75
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/runtime/stream/work-chat-sse-ledger.ts",
          "line": 21,
          "endLine": 49
        },
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/package.json",
          "line": 44,
          "endLine": 65
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/routing/router.ts",
          "line": 21,
          "endLine": 75,
          "symbol": "CapabilityRouter"
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/gateway/workbench-work-execution.ts",
          "line": 154,
          "endLine": 235,
          "symbol": "WorkbenchWorkExecution"
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/orchestrator/drive-react-loop.ts",
          "line": 159,
          "endLine": 238,
          "symbol": "OwnedRoundProjection"
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/orchestrator/resume-original-tool.ts",
          "line": 14,
          "endLine": 75,
          "symbol": "resumeOriginalToolRound"
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "packages/agent/src/orchestrator/repeated-tool-call-breaker.ts",
          "line": 65,
          "endLine": 122,
          "symbol": "RepeatedToolCallBreaker"
        }
      ]
    },
    {
      "statement": "开发者指南 acceptance：看实现与验收，按当前固定源码与关联主题定位责任和边界；建议操作与验收计划不是已执行结果。",
      "status": "verified",
      "limit": "只核对当前代码与文档结构；生产配置、所有真实客户端、清理作业及原生/浏览器验收另行举证。PR状态仅为读取时快照。",
      "sources": [
        {
          "repo": "aida-desktop",
          "commit": "4346d79eb36402355e51118df0edf1f98586880c",
          "path": "apps/desktop/electron/update/automatic-update-installation.ts",
          "line": 12,
          "endLine": 42
        },
        {
          "repo": "aida-agent",
          "commit": "7f2e519936b57902d4907ed8026fe1ecdd146e82",
          "path": "docs/adr/0098-revisitable-pending-cards.md",
          "line": 1,
          "endLine": 17
        }
      ]
    }
  ]
}
