oficina / sheets Public

Delegated spreadsheet API, CLI and MCP operations open

On branch feat/agent-access

Reviewed design at 3f299d5 adds current-grant reads and populated sheet creation to the Oficina connection, targeting CLI, Paseo, ChatGPT and Claude. No implementation yet. Existing sheet domain rules, sealed data and guest grants remain authoritative; initial content uses existing parser/calculator/store services in one transaction with retry receipts.

GPT-6 Astra independently approved the amended spec after requiring error-returning authority/tab ownership checks, unregistered transaction-local handles discarded after commit or rollback, receipt/attribution namespace binding, concrete byte/enumeration bounds and a coherent current revision contract. The amendments are in the spec; no remaining blocking design findings. Implementation review, full CI and deployed canary remain release gates. No merge or deployment.

Store foundation pushed as ba4f50c. GPT-6 Astra approved the source slice after fixing both stale-calculation and missing-cache reads. InitializeTab shares the parent transaction without registering its handle. ReadRange returns coherent raw/calculated values and next-stamp revision, refuses incomplete calculation, and caps requests at 500 cells. Focused race tests passed; five material mutations failed their intended gates. App adapter, full branch CI/review, and deployed canary remain outstanding.

Sheets 5d84c7b adds live delegated list/tabs/range/create endpoints, contract export and usage docs. GPT-6 Astra approved whole-branch source/spec against 6d700d6. Full make test passed on final restored sources (vet/browser-tag vet, format, build, migration agreement, all Go tests, store/live race), plus focused agent race. Real HTTPS CLI/grant/gateway/MCP creates and reads populated formula sheets, safely retries and honors logout revocation. Coverage includes six simultaneous first creates, rebuilt app/Home replay after restart, >2^53 IDs, current permissions, precommit revocation/unlink rollback, malformed Unicode, ciphertext corruption, output limits and actual partial HTTP abort. Eleven effective adapter mutants and five store mutants failed. No deployed canary, merge or live client certification claimed.

Follow-up at 4fbee95: pin Home/connect7430dd2 and replace the incomplete hand-written transaction identity check with Bridge.ResolveOn on the current transaction connection. The existing keyed personbinding and current local identity/admission are now checked before commit without a second SQL connection; operation-specific permissions remain. A trigger corrupts personbinding after the effect begins and proves content plus receipt/attribution roll back. GPT-6 Astra approved this bounded source/evidence delta. Full required CI and focused race checks pass; a runtime mutant bypassing ResolveOn fails the rollback regression. Shared Home separately proved that both link/person lookups stay on the transaction and binding validation cannot be omitted. No merge or deployed-canary claim.

The feature branch now integrates main 35dd773 and Home/connect 6d99b0c. Delegated operations capture one Home roster decision, resolve only existing account links, require current membership for creation, retain independent shares after removal, and ignore creator self-grants without membership. Stored roles and the local allowlist cannot grant team standing. Agent-team binding is checked before configuration is committed; atomic effects/receipts/attribution and completed retry checks remain on the writer connection. Full lists refuse Unknown, including authority lost during the final grant read. Transport deadlines respect both the retained lease and a shorter request deadline.

GPT-6 Astra independently approved the bounded compatibility source/evidence. Full make test, including store/live race checks, passes. Focused all-agent race passes (18.969s). New real team regressions cover membership/removal/Unknown, independent versus self grants, pagination, direct writer and completed retry expiry, Home-only refusal, foreign binding, late Unknown lists and real socket deadlines. Six new compatibility mutations failed: creator standing, final retry, self-grant, late list, lease deadline, and the final-query ordering case (in addition to the previous branch's reviewed evidence).

No main merge, deployed canary, or live-client certification. User selected the existing Oficina dashboard team. Supported read-only replica inspection has now confirmed Home's directory tables are empty, so registration of that existing team and its apps is the next deployment prerequisite. No credentials were copied from a browser.

Remote CI is now green on the reviewed integration head 0bb2f68. Full local make test and focused all-agent race (18.969s) also pass. Deployed canary and live-client acceptance remain.