oficina / docs Public

Delegated Docs API, CLI and MCP operations open

On branch feat/agent-access

Paul requested one browser-granted Oficina connection across apps and selected CLI, Paseo, ChatGPT and Claude as initial clients. Reviewed spec at 3b154f2 defines read/list and populated document creation using the existing collaborative core, current grants, guarded team response emission, sealed body storage and atomic keyed retry receipts. No local people or credentials are provisioned from the delegated identity.

GPT-6 Astra independently reviewed against baseline 5a4f6de. Initial review required five changes: bind the identity namespace separately from the grant issuer, preserve final response/lease guards, key body fingerprints and refuse changed receipt keys, bind revision to the replayed body, and make pagination/read bounds precise. All were incorporated; GPT-6 Astra approved the amended specification for implementation planning. This approval does not cover implementation, full CI, whole-branch review or deployment. No merge or deployment has happened.

First core implementation slice review identified a blocking Yjs interoperability defect: existing CreateDraft assigns 63-bit server client IDs; when the new initializer authors CRDT structs, JavaScript cannot decode the high IDs. GPT-6 Astra independently reproduced Integer out of Range. Fix underway: uint32 bound in Rust and Go initializer, uint32 allocation for newly created documents, and maximum-uint32 wire parity plus rejection tests. Existing stored IDs/replay remain untouched.

Four effective initial-content adverse mutations fail, and real Yjs/ProseMirror parity caught then verified the numeric heading-attribute correction. First full local CI passed Rust/wasm/wire stages but failed an existing release-binary test because macOS TMPDIR produced an overlong Unix socket path. Remaining test process was stopped after that known failure to apply the review fix. Next full run will use TMPDIR=/tmp; no passing full-CI claim yet.

GPT-6 Astra approved the complete branch source against 5a4f6de (29 changed/new files), after reviewing core ABI/Wasm, adapter, identity/transactions, routing, migrations, dependencies and documentation. Reviewed-source manifest SHA-256: 371262544b8c887d0eec90785d72f52e5cd9dd27a12e2d36e82adf04439c7a40. Reviewer independently ran all TestAgent tests and confirmed the serving framework preserves ErrAbortHandler. Actual HTTPS grant/gateway/CLI/MCP create/read/retry and open-session revocation pass; team-epoch late refusal and partial-abort tests pass. Twelve effective adverse mutations fail their intended gates. Full .amadan/ci.d/10-gate is running locally with TMPDIR=/tmp and Go1.26.5; no green-CI, merge or deployment claim yet. Source review fixed five issues: writer-boundary delegation checks, common multi-team contracts, strict raw Unicode, bounded create receipts, and recoverable sealed client attribution.

Docs 3acf639 now passes the entire required .amadan/ci.d/10-gate: Rust formatting/clippy/tests, canonical Wasm generation/verification, JavaScript wire parity, Go vet/tests/format/build. TMPDIR=/tmp avoids the macOS temporary Unix-socket path limit. GPT-6 Astra whole-branch source approval is recorded above. Remote CI is still queued; no deployed canary review, merge or production configuration change is claimed.

Integration is now at 87de917 (merge 3dd5f5f over current main 7d218bd). It preserves main's one-way adoption into shared Home identity storage and roster-based permission model, while retaining delegated list/get/create and ABI-5 initial collaborative content. Home/connect is pinned to 6d99b0c; linked-only ResolveOn verifies the current binding on the caller's writer connection. One captured roster Access survives registry, transaction/retry and emission checks. Unknown full lists are withheld even when independent shares remain; exact independent shares still work. Completed retries repeat final creator authority.

Full canonical .amadan/ci.d/10-gate passes with its pinned toolchains (GOTOOLCHAIN=go1.26.5, TMPDIR=/tmp and rustup); the focused Agent + TeamBufferedEmission race run passes. Existing real HTTPS CLI/MCP tests were preserved. New regressions cover real legacy adoption/reopen, completed retries, binding corruption rollback, ordinary non-team empty lists, Home-only refusal, changed/unlinked identities and chunk-time authority loss. Four compatibility mutations and the shorter-caller-deadline mutation fail as intended. Canonical Wasm is rebuilt and all static bundle/wire gates pass.

The exhaustive Colophon now includes the MCP libraries through independently reviewed Estilo 1348c4b. Only Oficina's own agent-access module joins the existing first-party exclusions; third-party licenses and collectors remain intact. GPT-6 Astra independently approved the integration source and catalog; final evidence review is recorded in the following update.

No main merge, deployment, or live-client certification. The historical October25 binary must not be deployed over current Docs identity storage.

GPT-6 Astra has now completed final bounded integration evidence approval at 87de917. Full canonical gate and focused race (155.703s) pass, and remote CI is green on that head. No deployment or live-client certification.

Completed the approved bounded editing slice in 7a3a7f6. docs_update edits top-level paragraphs/headings with an expected body revision, preserves untouched rich XML, and commits the canonical Yjs update, sealed client attribution and immutable retry receipt together. Current write permission is rechecked in the writer and at response emission.

Independent GPT-6 Astra specification and final source review approved. Twelve selected source faults each caused behavioral failures, including stale body commits, completed retries overwriting later browser changes, missing final writer authority, rollback leakage, reused editing identities and damaged untouched rich content. Original sources were restored. The canonical Rust/Wasm/wire/Go gate and focused race tests passed; production-schema Yjs/ProseMirror compatibility and offline convergence passed.

Exact-tip remote CI passed. The final real Docs/Calls/Calendar HTTPS fixture also passed CLI partial results after a lost committed event reply, fresh-gateway MCP resumption, readable linked resources, exact retries, changed-request conflict and revocation. No main merge, production deployment or live hosted-client acceptance is claimed.