Correct public identifier and delegated write contracts
1 file changed,
+18
−1
docs/superpowers/specs/2026-10-25-agent-access.md+18 −1
CI passed — run details
diff --git a/docs/superpowers/specs/2026-10-25-agent-access.md b/docs/superpowers/specs/2026-10-25-agent-access.md| index 22d00d6..5323f41 100644 |
| --- a/docs/superpowers/specs/2026-10-25-agent-access.md |
| +++ b/docs/superpowers/specs/2026-10-25-agent-access.md |
| @@ -36,7 +36,7 @@ maximum 100, ascending exact ID cursor) on one currently readable sheet. |
| - sheets_list (sheets:read): live/non-filling permitted sheets, default 20 and |
| maximum 100 per page, descending numeric ID cursor decoded exactly. Return |
| - public Sqid, title and URL. Decode sealed titles/names |
| + canonical decimal ID strings, title and URL. Decode sealed titles/names |
| through store helpers and fail if opening fails. A grant join filters before |
| pagination; guests see only explicitly granted sheets. |
| - sheets_get_range (sheets:read): one tab, integer start row/column and height/ |
| @@ -123,3 +123,20 @@ Five effective mutations failed: cache transaction handle, remove range lock, |
| remove initial-tab emptiness guard, ignore dirty markers, ignore missing cache. |
| This is store-slice approval; app adapter, full CI, whole-branch review and |
| deployed canary remain required. |
| + |
| +## Identifier and write-boundary amendment (2026-10-25) |
| + |
| +GPT-6 Astra approved correction of the original Sqid wording: this baseline's |
| +browser routes use decimal sheet/tab IDs. Expose IDs and cursors as JSON strings |
| +containing canonical positive decimals up to 9223372036854775807. Reject signs, |
| +leading zeroes, whitespace and overflow; omit the cursor for the first page. |
| +Do not introduce a second ID scheme. |
| + |
| +Contracts must be identical across teams; enforce the selected target team at |
| +invocation. Reject malformed Unicode before lossy decoding. Reverify delegation |
| +at the reserved writer boundary and before commit, preserving subject, client, |
| +grant, team and scope; failure rolls back creation. Keep those network checks |
| +separate from transaction-local identity queries. Validate the bounded create |
| +result before commit, and preserve recoverable client attribution sealed outside |
| +the digest-only receipt. These amendments are approved design, not source |
| +approval for the forthcoming app adapter. |