From 835b727856cf193c165416e869626a41bc9d8f8f Mon Sep 17 00:00:00 2001 From: ggbdpq Date: Sat, 5 Sep 2026 00:25:27 +0800 Subject: [PATCH 1/2] docs(architecture): audit Sandbox and privacy group against implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Audit the four Sandbox and privacy documents from the #3522 documentation audit against the current implementation (22715e84f). workspace-privacy-context.md: one drift fixed — the authority section still named `getWorkspacePrivacyContext()` / `defaultWorkspacePrivacyContext()` in `apps/desktop/src/main/main.ts`; neither function exists any more and `main.ts` carries no privacy logic. The effective state is the Runtime Host runtime policy (`runtime-policy.ts` declares the readonly `privacy.incognitoActive` and defaults it to false, patched through the policy codec), desktop surfaces resolve it via `queryRuntimePolicy()`, and core boundaries validate the projection with the unchanged `validateWorkspacePrivacyContext()`. The section and the consumer inventory sentence now describe that chain. windows-sandbox-rfc-v1.md + zh-CN: no drift. The pair stays in lockstep (twelve sections and five guarantee subsections 1:1); the status claims hold (#2961 merged 2026-08-17, the AppContainer filesystem-worker enforcement on the tree, the contract constants in `packages/core/src/sandbox-boundary.ts`). Frontmatter added to both. permission-onboarding-plan.md: no drift. Stage 1 files exist as named (`permission-overlay-controller.ts` and the `src/overlay/` shell), `permissions-actions.ts` still deep-links, and tracking issue #4328 is open. Frontmatter added. All four documents gained the standard frontmatter block with `last_verified` (the RFC pair keeps `translation_status: synced`). Refs #3522 Generated-by: GLM-5.3-Flash (ZCode) --- docs/architecture/windows-sandbox-rfc-v1.md | 12 ++++++++++ .../windows-sandbox-rfc-v1.zh-CN.md | 12 ++++++++++ docs/permission-onboarding-plan.md | 12 ++++++++++ docs/workspace-privacy-context.md | 22 ++++++++++++++----- 4 files changed, 53 insertions(+), 5 deletions(-) diff --git a/docs/architecture/windows-sandbox-rfc-v1.md b/docs/architecture/windows-sandbox-rfc-v1.md index afd0433c98..11691b85b0 100644 --- a/docs/architecture/windows-sandbox-rfc-v1.md +++ b/docs/architecture/windows-sandbox-rfc-v1.md @@ -1,3 +1,15 @@ +--- +doc_id: architecture.windows-sandbox-rfc-v1 +title: "Windows sandbox RFC v1" +language: en +source_language: en +implementation_status: current +document_status: current +translation_status: synced +last_verified: 2026-09-04 +owners: + - maka-backend +---