跳转至

数据表图谱

这里按领域列出关键表,不追求把 111 个文件逐项复制,而是帮助你从一个业务事实找到它的持久化邻居。

组织与访问

事实 表
Company companies
人类/Agent membership company_memberships
Agent agents、agent_runtime_state
Agent API key agent_api_keys
Board API key board_api_keys
instance admin instance_user_roles
细粒度权限 principal_permission_grants
Agent membership/config revision agent_memberships、agent_config_revisions

规划与任务

事实 表
Goal tree goals、project_goals
Project projects、project_memberships
Project workspace project_workspaces
Issue issues
Parent/blocked relation issue_relations
Comments issue_comments
Thread interaction issue_thread_interactions
Labels labels、issue_labels
Tree pause issue_tree_holds、issue_tree_hold_members
Watchdog issue_watchdogs
Recovery issue_recovery_actions
Monitor issue_watchdogs、issue_execution_decisions 等相关表

执行与调度

事实 表
Wake intent agent_wakeup_requests
Execution attempt heartbeat_runs
Structured events heartbeat_run_events
Task session agent_task_sessions
Agent runtime state agent_runtime_state
Run watchdog decision heartbeat_run_watchdog_decisions
Issue execution decision issue_execution_decisions

Workspace 与环境

事实 表
Execution workspace execution_workspaces
Environment environments
Environment lease environment_leases
Workspace operation workspace_operations
Runtime service workspace_runtime_services
Custom image environment_custom_image_templates、environment_custom_image_setup_sessions
Workspace file/portable references workspace_file_resources 等 shared 类型与 service

治理与账务

事实 表
Approval approvals、approval_comments
Budget budget_policies、budget_incidents
Cost cost_events
Finance finance_events
Activity activity_log
Decision decisions、decision_queues、decision_training_examples
Attention attention 相关 service/read model

内容与交付

事实 表
Document documents、document_revisions
Annotation document_annotation_threads/comments/anchor_snapshots
Uploaded asset assets
Issue attachment issue_attachments
Work product issue_work_products
External object external_objects、external_object_mentions
Feedback feedback_votes、feedback_exports

Skills 与自动化

事实 表
Company skill company_skills、company_skill_policies
Secret-backed skill state company_secret_bindings 等
Routine routines、routine_documents
Pipeline pipelines、pipeline_stages、pipeline_transitions
Pipeline Case pipeline_cases、pipeline_case_events
Case blockers/links pipeline_case_blockers、pipeline_case_issue_links
Automation ledger pipeline_automation_executions

Tools 与 Secrets

事实 表
Company secret company_secrets、company_secret_versions
Provider vault/config company_secret_provider_configs
Secret proposal/access company_secret_proposals、secret_access_events
Tool application/connection tool_applications、tool_connections
Tool catalog tool_catalog_entries
Profile/binding/entry tool_profiles、tool_profile_bindings、tool_profile_entries
Policy/action request tool_policies、tool_action_requests
Invocation/audit tool_invocations、tool_audit_events
Runtime slot/gateway tool_runtime_slots、tool_mcp_gateways

Plugins

事实 表
Installed plugin plugins
Config plugin_config、plugin_company_settings
State/entities plugin_state、plugin_entities
DB namespace plugin_database
Jobs/runs plugin_jobs
Webhooks plugin_webhooks
Logs plugin_logs
Managed resources plugin_managed_resources、built_in_managed_resources

读表的三个问题

面对一个新表,先问:

  1. 它是当前状态、append-only 事件,还是外部资源索引?
  2. company scope 和 active/terminal/retired 条件在哪里?
  3. 它与哪个 CAS/唯一键/lease/operation 配对?

只看列名不容易看出真正语义;索引和相邻 service 通常更有信息量。