Repository navigation
docs: verify every live document against the code, one subsystem at a time #3522
Description
Goal
Bring every live document under docs/ back in line with the code, one subsystem at a time.
The work is grouped by subsystem rather than by document because that is how the drift arrives. When a subsystem changes, several documents describe it from different angles, and they go stale together. Reviewing them as a group is also the only way to notice that two documents now contradict each other.
Each box below is one subsystem. Tick it when every document under it has been read against the current implementation and either corrected or confirmed accurate. A document that turns out to be accurate needs no change — recording that it was checked is the point.
What a pass over one subsystem covers
- Named symbols still exist: classes, methods, tool names, event types, config keys.
- Described storage matches the implementation. The migration from per-run files to SQLite invalidated file-layout diagrams in more than one place.
- Cited file paths resolve, including test paths offered as the verification route.
- Documents in the group do not contradict each other.
- Paired translations move together.
translation_status: syncedis the only value used across the paired documents in this repository, so updating one language alone makes that field false. last_verifiedreflects the pass.
Scope
In scope: the 61 documents listed below.
Out of scope:
docs/archive/**(38 files). Each carries an "Archived on<date>… not current architecture authority" banner. Their historical content is correct as archived material and must not be rewritten.docs/eval/**(3 files). These are benchmark run records tied to a specific date and model set, not descriptions of current behaviour.
Subsystems
-
Runtime core (2) — done in docs: correct stale runtime-core architecture facts #3523
docs/architecture/runtime-core-architecture-draft.md—PermissionEngine,respondToPermission(), therun.json/events.jsonllayout, a step limit of 50, and a deleted test path — addressed by docs: correct stale runtime-core architecture facts #3523docs/architecture/runtime-core-architecture-draft.zh-CN.md— same set as its counterpart — addressed by docs: correct stale runtime-core architecture facts #3523
-
Recovery and resume (7)
docs/architecture/runtime-recovery-resolver-adr.zh-CN.mddocs/architecture/runtime-resume-architecture.mddocs/architecture/runtime-resume-architecture.zh-CN.mddocs/architecture/runtime-resume-extraction-ledger.zh-CN.mddocs/architecture/runtime-resume-phase0-crash-contract.mddocs/architecture/runtime-resume-phase1-safe-boundary-contract.mddocs/architecture/runtime-resume-phase3-phase4-workspace-checkpoint-design.zh-CN.md
-
Context and compaction (2)
docs/architecture/llm-compaction-events-log-projection-draft.md— citespackages/storage/src/__tests__/agent-run-store.test.ts, which does not existdocs/architecture/llm-compaction-events-log-projection-draft.zh-CN.md— same citation as its counterpart
-
Multi-agent orchestration (4) — done in docs: correct the multi-agent orchestration documents #3555
docs/architecture/agent-graph-stream-scheduling-draft.mddocs/architecture/agent-graph-stream-scheduling-draft.zh-CN.mddocs/agent-swarm.mddocs/side-conversation.md
-
Runtime host (4)— audited 2026-08-23, no changes neededdocs/architecture/runtime-host-architecture.mddocs/architecture/runtime-host-architecture.zh-CN.mddocs/runtime-host-remote-access.mddocs/runtime-host-remote-access.zh-CN.md
-
Managed workspace (5)
docs/architecture/runtime-managed-workspace-baseline-open-v1.zh-CN.mddocs/architecture/runtime-managed-workspace-execution-admission-v1.zh-CN.mddocs/architecture/runtime-managed-workspace-owner-v1.zh-CN.mddocs/architecture/runtime-workspace-version-authority-v1.zh-CN.mddocs/architecture/managed-dependency-storage-authority-v1.zh-CN.md
-
Sandbox and privacy (4)
docs/architecture/windows-sandbox-rfc-v1.mddocs/architecture/windows-sandbox-rfc-v1.zh-CN.mddocs/permission-onboarding-plan.mddocs/workspace-privacy-context.md
-
Workflow state (4)
docs/session-task-ledger-lifecycle.md— documentstask-events.jsonlandtasks.json; state is the SQLite tableworkflow_task_ledger_eventsdocs/work-board-contract.mddocs/architecture/scheduled-task-unified.mddocs/deep-research-durable-workspace.md— documentssessions/<session>/deep-research/events.jsonl; state is the SQLite tableworkflow_deep_research_events
-
Tools and capabilities (3)
docs/architecture/mcp-runtime-architecture-draft.zh-CN.mddocs/skill-catalog-policy.mddocs/web-search-provider-capability.md
-
Computer use (9)
docs/computer-use-cursor-provenance.mddocs/computer-use-evidence-classes.mddocs/computer-use-foundation-contract.mddocs/computer-use-host-events-contract.mddocs/computer-use-model-loop-foundation.mddocs/computer-use-provenance.mddocs/computer-use-provider-evidence.mddocs/computer-use-ui-coverage.mddocs/codex-pip-reverse-engineering.md
-
Model access (2)
docs/architecture/openai-responses-incremental-transport.mddocs/model-metadata-firstscreen-optimization.md
-
Desktop and frontend (7)
docs/frontend-architecture-astryx-review-2026-08-09.mddocs/frontend-css-governance.mddocs/frontend-css-governance.zh-CN.mddocs/settings-astryx-deep-review.zh-CN.mddocs/astryx-alignment-inventory.mddocs/astryx-full-surface-audit.mddocs/astryx-surface-file-inventory.md
-
CLI and distribution (5)
docs/cli-distribution.mddocs/cli-npm-release.mddocs/cli-npm-release.zh-CN.mddocs/windows-support.mddocs/windows-test-inventory.md
-
Bots (1)
docs/architecture/bot-onboarding-runtime.zh-CN.md
-
Provenance records (1)
docs/code-origin-audit.md
-
Index (1)
docs/README.md
Known drift found so far
The notes above came from one sweep, not from reading all 61 documents. Anything unannotated is simply unverified, not confirmed correct.
for pat in 'run\.json' 'events\.jsonl' 'runtime-events\.jsonl' 'PermissionEngine' \
'respondToPermission' 'agent-run-store\.test\.ts'; do
grep -rln "$pat" docs/ | grep -v '^docs/archive/'
doneTwo matches were checked and are correct as written:
docs/architecture/mcp-runtime-architecture-draft.zh-CN.mdmentionsPermissionEngineonly to state that no per-callPermissionEngineexists on the ordinary path.- The resume, agent-graph, recovery-resolver and workspace-version documents mention JSONL only to contrast a legacy or degraded host with the SQLite commit sink.
Contributing
Pick one subsystem, open one PR for it, and reference this issue with Refs #3522. Please do not open a PR that spans several subsystems: the groups are sized so that a reviewer who knows that area can check the whole change.
Activity
Joob1n commentedon Aug 22, 2026
The runtime-core entry is addressed by #3523. The remaining three entries are open.
[-]docs: stale storage-layout and permission facts in live architecture documents[/-][+]docs: verify every live document against the code, one subsystem at a time[/+]docs: correct stale runtime-core architecture facts (#3523)
Joob1n commentedon Aug 23, 2026
Multi-agent orchestration is addressed by #3555.
docs/side-conversation.mdwas audited as part of that group and needs no change — its unresolved symbols are all inside sections that describe OpenAI Codex rather than Maka.docs: separate swarm's supervision policy from the graph's machinery
docs: correct the multi-agent orchestration documents (#3555)
Joob1n commentedon Aug 23, 2026
Runtime host: audited, no changes needed.
All four documents in this group were read against the code and are accurate as written, so there is no PR for this group.
docs/architecture/runtime-host-architecture.{md,zh-CN.md}RuntimeHostLifecycleMode = 'ephemeral' | 'service'(server/host-kernel.ts)HostUpgradePrepareInput.expectedHostEpoch(protocol/host-status.ts)HostUpgradePrepareInput.allowInterruptActiveTasksHostStatusResult.{connections, activeOperations, activeResidencies}beforeRunProviderDispatch: commitRunComposition(server/execution-model-composition.ts)WorkspaceTargetto a canonical Host pathserver/workspace-resolver.ts, handling thehost_pathandprojecttargetsAlso checked against a live Host on macOS: its
registration.jsoncarrieslifecycleMode: "ephemeral",state: "ready"andcompositionId: "maka.interactive", and the control directory holds theowner.lockthe document calls the exclusive write lease.docs/runtime-host-remote-access.{md,zh-CN.md}maka runtime-hostcommand in the document is still accepted byparseRuntimeHostCommand:serve,service,access,project,profile. (setupandcapability-provideralso exist but the document does not use them.)service install|status,access issue,project add|list,profile set.Worth noting for the remaining groups: this document survived because it is written in terms of boundaries and invariants rather than file layouts, class names and default values. The runtime-core chapter drifted precisely where it had pinned those details.
fxl112233 commentedon Aug 27, 2026
I’m taking the Context and compaction documentation-audit slice only.
Plan:
llm-compaction-events-log-projection-draft.mdand itszh-CNcounterpart against the current Runtime and Storage implementation;last_verified;This PR will use
Refs #3522rather than close the tracking issue.Automated disclosure: this claim was drafted and posted by OpenAI Codex at @fxl112233’s direction. @fxl112233 remains the human contributor of record.
docs(architecture): audit context compaction (#4046)
ggbdpq commentedon Aug 31, 2026
I’m taking the Bots documentation-audit slice only.
Plan:
docs/architecture/bot-onboarding-runtime.zh-CN.mdagainst the current Desktop onboarding service and@maka/runtime/botsimplementation;last_verified, and keep this group to a single PR.This PR will use
Refs #3522rather than close the tracking issue.jackeyfaker77 commentedon Sep 1, 2026
I’m taking the Index documentation-audit slice only.
Plan:
docs/README.mdagainst the current documentation tree and implementation authorities;This PR will use
Refs #3522rather than close the tracking issue.中文对照
我只认领 Index(文档索引) 这一部分的文档审计工作。
计划:
docs/README.md;本 PR 将使用
Refs #3522引用该跟踪 Issue,而不会关闭它。37 remaining items
docs(computer-use): fix residual intervention-lock and keyboard doc d…
docs: verify the sandbox and privacy docs against main (#3522) (#6045)
docs: verify the tools and capabilities docs against main (#3522) (#6042
docs: verify the managed workspace docs against main (#3522) (#6043)
docs(architecture): verify the recovery and resume docs against main (#…
BigDataDZ commentedon Oct 10, 2026
Claiming the Workflow state group. One PR for this subsystem only,
Refs #3522.BigDataDZ commentedon Oct 10, 2026
Claiming the Provenance records group. One PR for this subsystem only,
Refs #3522.docs: correct the compaction projection facts surfaced in review (apa…
docs: correct the runtime core facts surfaced in review (apache#3522)
docs: verify the runtime core docs against main (#3522) (#6054)
docs: verify the workflow state docs against main (#3522) (#6055)
docs: restore the AiSdkTurn owner and the 2026-10-10 verification dat…
garvit-arora commentedon Oct 12, 2026
I am taking the Index documentation-audit slice (
docs/README.md) only. I will check its links and authority map against current main, correct any confirmed drift, and keep the PR limited to that document withRefs #3522.docs: verify the compaction projection docs against main (#3522) (#6052)
docs: verify the code origin audit against main (#3522) (#6056)