oficina / suite Public

Revision 11: restore-safe revisions and the cursor reset; fail-closed gates (answering Fable on c38e3ad)

This session, 2026-11-01, answering Fable's (claude-fable-5-1) review of
revision 10. Not yet reviewed.

- §6.6 (new, normative): a revision names one byte sequence for ever; a
  reissuing producer is not conformant; STALE from the log; a revision the
  log does not hold is UNKNOWN on S2 and the 404 on S3. An unrecognised
  cursor is 409 {"code":"CURSOR_RESET"}; the consumer drops everything from
  that producer, re-reads from "", and retires what the re-read omits. H1.
- §4.3: "behind" is not a number (H1); proposal (this session, not Paul):
  no team standing reaches nothing, ownership included (L4).
- §11 gate 3: prior/unknown revisions, unknown ids, S3 missing/malformed/
  POST, strict S2 rows, cursor reset, no-store (H1, H2, M3, M5). Gate 3c:
  the never-cached flip case (H3).
- §6.5: Handler is the only mount; RunProducer; Routes deprecated and why
  not removed (M4); every response no-store (M3); author/date on decisions.
- §6 S4 sentence marked superseded (M1); §6.4 reworded; §9 item 2 says a
  token reads the grant graph (M6); status-block wording on sealing (L7).
- §8 + §14: NEEDS PAUL — may private items be embedded by the model
  provider? Interim: nothing private embedded (M2).
- README: the server half is built; RunProducer in the example.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 0a59e7de37d9f70fbe81b24d47442b8a6183fecd parent 4c10dfe
2 files changed, +308 −35
  • README.md +11 −7
  • docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md +297 −28

CI passed — run details

CI log
=== gate ===
ok  	amadan.net/oficina/suite	0.016s
ok  	amadan.net/oficina/suite/conformance	0.072s
ok  	amadan.net/oficina/suite/server	0.019s
diff --git a/README.md b/README.md
index c80cff8..11fa282 100644
--- a/README.md
+++ b/README.md
@@ -21,9 +21,9 @@ owns the rule that binds the others.
client must refuse. Both are shared so every app runs the same gate
rather than inventing its own.
- `conformance/`: the harness an app points at its own server half.
-- `server/`: the producer half — the bearer check, the three routes and
- their wire shapes — that an app mounts by implementing `Producer`
- (doctrine §6.5, revision 10).
+- `server/`: the producer half — the bearer check, the three routes, their
+ wire shapes and cache headers, and the cursor reset — that an app mounts
+ as `server.Handler` by implementing `Producer` (doctrine §6.5, §6.6).
## How an app uses it
@@ -37,7 +37,9 @@ cannot get one.** The shape it will take:
```go
func TestSuiteConformance(t *testing.T) {
- conformance.Run(t, myapp.SuiteRoutes())
+ // The producer, mounted through server.Handler as the app mounts it,
+ // behind a token the harness mints. Never server.Routes (deprecated).
+ conformance.RunProducer(t, myapp.SuiteProducer(), suite.SubjectPersonRef)
}
```
@@ -57,9 +59,11 @@ step 4,
after memoria's slice 1 and before its slice 2; it is specified and has no
fixture yet.
-Not built, deliberately: the server half — that arrives with the first app
-that serves one, and the fixtures get corrected by the second, which is the
-point of §10. Nor call 7, call 8, the roster or anything needing an
+The server half, `server/`, was built in revision 10 with the first two
+apps that serve it, Docs and Fichas, and corrected by them in revision 11
+(§6.6) — which is the point of §10.
+
+Not built, deliberately: call 7, call 8, the roster or anything needing an
assertion; those are §12 steps 4 and 5 and they wait on the home's identity
layer.
diff --git a/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md b/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md
index 1935b18..164d49e 100644
--- a/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md
+++ b/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md
@@ -3,10 +3,56 @@
How the apps of the suite share identity, membership and content with
each other, and where the line is that nothing crosses.
-**Status:** design, **revision 10**, 2026-11-01. Revision 10 carries
-Paul's ruling and was reviewed by GPT-6 (Codex, "Astra") in three passes:
-REQUEST CHANGES on 12848f8 and 53b79d5, **APPROVE** on 983114a, its polish
-items applied after.
+**Status:** design, **revision 11**, 2026-11-01. Revision 11 is this
+session's answer to a review of revision 10 (at c38e3ad) by Fable
+(claude-fable-5-1); **revision 11 has not itself been reviewed.** Revision
+10 carries Paul's ruling and was reviewed by GPT-6 (Codex, "Astra") in
+three passes: REQUEST CHANGES on 12848f8 and 53b79d5, **APPROVE** on
+983114a, its polish items applied after.
+
+**Revision 11 makes a restore safe, and makes S2 and S3 fail closed where
+the harness could not see them fail open.** Who: this session, answering
+Fable's findings on c38e3ad; nothing in it is Paul's except where quoted,
+and the one question it raises is his (below). Why: the two producers that
+implemented revision 10 — Fichas (`main` c837d28) and Docs (branch
+`feat/suite-producer`) — both found that a counted or clock-based revision
+is **reissued after a database restore**: an `(item, revision)` memoria
+already held then matched different bytes, and S2 said `VISIBLE` over stale
+private text. Both moved to random revisions and stamped cursors, and both
+were left answering an unrecognised cursor with a 503 and a manual reset.
+What changes, each where it lives:
+
+- **§6.6 is new and normative**: a revision names one byte sequence for
+ ever; a producer that can reissue one is not conformant; `STALE` is
+ decided from the producer's own log, and a revision the log does not hold
+ is `UNKNOWN` on S2 and the refusal on S3. A cursor the log does not
+ recognise is answered with one fixed `409 {"code":"CURSOR_RESET"}`, and
+ the consumer drops everything it holds from that producer and reads it
+ again from the beginning (Fable H1).
+- **The fixture** names each case's `prior_revision` and
+ `unknown_revision`; the harness computes no "one behind" any more. It
+ asks S2 about an id the producer does not know (`NOT_VISIBLE`, never a
+ fail-open `VISIBLE`), refuses S3 with no, a malformed or a zero revision
+ and on POST, refuses S2 rows carrying any field beyond the three, and
+ requires `Cache-Control: no-store` and `Vary: Authorization` on every
+ response (Fable H1, H2, M3, M5). A new case, `doc-owner-left`, is a
+ private item whose owner has lost team standing: `NOT_VISIBLE` to them
+ too — this session's proposal (§4.3), not a ruling.
+- **Gate 3c** gains a flip case: an answer is never cached, so the next
+ request on every surface follows the sibling's new answer (Fable H3).
+- **`suite/server`**: `Handler` is the only thing an app mounts, and
+ `conformance.RunProducer` tests it through a token it mints; the
+ unauthenticated `Routes` is deprecated, kept because the module is
+ additive and Docs' and Fichas' tests call it (Fable M4).
+- **§9 item 2** says plainly that a sibling token reads the grant graph
+ (Fable M6); revision-9 text left unmarked in §6 and §6.4 is marked
+ (Fable M1, low items).
+
+**Paul's question (§14, NEEDS PAUL):** may a consumer send private items to
+its model provider to embed them? Revision 10 put private documents in the
+corpus that §8 compares to "whole-corpus egress", and nobody ruled on that
+egress. Until he does, a consumer embeds nothing private and sends a model
+only passages already ruled `VISIBLE` for the person asking (§8).
**Revision 10 widens custody to every live item, by Paul's ruling, and
builds the producer half.** Asked *"Is it possible for everyone's Memoria to
@@ -39,7 +85,9 @@ stays where it is. What changes, each where it lives:
what every teammate could read, so a bug in its per-person gate could at
worst show a teammate something they could already open in the app. Under
revision 10 a consumer holds everyone's private and individually shared
-items, sealed at rest like everything else it holds, and the same bug shows
+items, sealed at rest — which bounds a disk and not a process *(wording
+corrected in revision 11; it read "like everything else it holds")* — and
+the same bug shows
a teammate somebody else's private document. S2 — asked per person, per
request, never cached, with every non-`VISIBLE` answer withholding — is now
the only thing between those documents and a teammate's search, and every
@@ -415,6 +463,28 @@ revision the app of record does not recognise is **`UNKNOWN`**: withheld
loudly, the app named, the consumer free to re-ingest. memoria records
this defect open in its §13; A.4 closes it. *(GPT-6 review, finding 11.)*
+> **Revision 11 (this session, 2026-11-01, answering Fable's review of
+> c38e3ad): "behind" is not a number.** The paragraph above reasons in
+> counts — "holds 7, the app now has 5" — and a count is exactly what a
+> restore reissues: after it, the app reaches 7 again with different bytes,
+> and a consumer holding the old 7 is told `VISIBLE`. So a revision names
+> **one byte sequence for ever**; a producer whose revisions can be
+> reissued is not conformant; `STALE` means "a revision my log holds that
+> is not current", decided from the log and never by comparing numbers;
+> and a revision the log does not hold is `UNKNOWN` for a person who may
+> open the item (and `NOT_VISIBLE` for one who may not — the person is
+> checked first). §6.6 states it as the contract.
+
+> **Revision 11 (this session's proposal, 2026-11-01; not ruled by Paul):
+> no team standing reaches nothing, ownership included.** A member who
+> owns private items and is then removed from the team gets `NOT_VISIBLE`
+> on S2 for their own items, as every stranger does for every item. A
+> consumer serves the team's members; a person off the roster is not one,
+> and "they own it" is a fact inside the app of record, where they can
+> still be served by its own rules. The fixture's `doc-owner-left` holds
+> every app to it. If Paul wants a removed owner to keep their own items
+> in a consumer, this proposal and that case change together.
+
**Never cached, at any scope.** Not per session, not per page, not for
the life of a warm process. Caching authorization is what makes a stale
answer a leak (memoria §6.5), and the usability pressure to cache within
@@ -749,8 +819,8 @@ spec, which owns them, and are cited here for completeness of direction.
| 1–6 | person → home, instance → home | session; consumer token | — | Home §9. Unchanged. |
| 7 activity | home → instance | **assertion** for the person, `aud` = instance | who the front door is for | `design-activity-pull` §4–5 owns the wire shape. The home renders and holds rendered output only, under two ages (§4.3). Not in the contract module yet — §12 step 2 is S1, S2 and S3. When it arrives, the fixtures **cite** that spec's gates 10–20 rather than restate them, or this contract rebuilds §2's drift one layer down. |
| 8 roster | instance → home | consumer token | which instance asks | §5.3. Scoped to the caller's team. Paged; the copy has a TTL. |
-| S1 change feed | sibling → sibling | consumer token | same-team sibling | `(item_id, revision, gone, touched_at)`. No title, no content, no visibility flag. Per-consumer TTL; past it, full re-announce. |
-| S2 authorization | sibling → sibling | consumer token **+ named asker** | same-team sibling, asking for a person | Four values, total decoder, cap 256 pairs. **Never cached**: a passage crosses no request boundary without an S2 `VISIBLE` in the request that carried it (memoria §8.4, gate 26). Asker is a typed subject (§3); the answer is the app's own read check for that person — team rung, ownership, a live grant, never a link — with no custody intersection since revision 10 (§4.3). |
+| S1 change feed | sibling → sibling | consumer token | same-team sibling | `(item_id, revision, gone, touched_at)`. No title, no content, no visibility flag. Per-consumer TTL; past it, full re-announce. A cursor the producer's log does not recognise is `409 {"code":"CURSOR_RESET"}` and nothing else; the consumer drops what it holds from that producer and reads from the beginning (§6.6, revision 11). |
+| S2 authorization | sibling → sibling | consumer token **+ named asker** | same-team sibling, asking for a person | Four values, total decoder, cap 256 pairs. **Never cached**: a passage crosses no request boundary without an S2 `VISIBLE` in the request that carried it (memoria §8.4, gate 26). Asker is a typed subject (§3); the answer is the app's own read check for that person — team rung, ownership, a live grant, never a link — with no custody intersection since revision 10 (§4.3). An id the app does not know is `NOT_VISIBLE`; a revision its log does not hold is `UNKNOWN` (§6.6). |
| S3 content | sibling → sibling | consumer token | same-team sibling | `(id, revision)`, **no person**. Every live item at its current revision since revision 10 (team-visible only before it); one identical 404 for deleted, unknown or superseded. Never 403. |
| S6 aggregate | sibling → Sheets | consumer token + named asker | as S2 | Enumerated function over cell refs, never expression text. Cap 64. Typed subject and the app's own read check, as S2 (no custody intersection since revision 10). |
| S8 write-as-self | sibling → sibling | consumer token | same-team sibling | §7.2. Into the caller's designated area only; only items the caller authored. |
@@ -788,7 +858,10 @@ implying one exists.
**S4 and S5 are not calls, and no number is reserved for them.** memoria
§6.1 resolved S4, the tombstone, into a feed row — `gone` covers deletion
-and departure from team-visibility indistinguishably — and S5, consumer
+and departure from team-visibility indistinguishably *(superseded by
+revision 10, Paul, 2026-11-01: `gone` means deleted and nothing else; a
+move down the ladder is not a departure from custody, and S2 rules on it.
+Marked in revision 11, which found it unmarked)* — and S5, consumer
expiry, into the per-consumer TTL, since expiry is the decommission verb.
Both are settled; they are recorded here because a table that runs S1, S2,
S3, S6, S8 leaves two holes, and a hole in a numbered contract is somewhere
@@ -796,12 +869,17 @@ a later call falls. *(Review pass, 2026-09-05.)*
### 6.5 The producer half (revision 10)
+*Decisions in this section: this session, 2026-11-01, reviewed by GPT-6
+("Astra", APPROVE on 983114a); the revision-11 additions are this session's,
+answering Fable's review of c38e3ad, and are not yet reviewed.*
+
`amadan.net/oficina/suite/server` is the server half §6 names, built with
the first two apps that serve it (Docs and Fichas). An app implements one
interface, `Producer` — `Feed(cursor, limit)`, `Rule(asker, pairs)`,
`Content(item, revision)` — and mounts `server.Handler` beside its router.
-The package owns everything an app could get subtly wrong and must not get
-differently from its neighbour:
+**`Handler` is the only thing an app mounts.** The package owns everything
+an app could get subtly wrong and must not get differently from its
+neighbour:
- **The bearer check.** `<APP>_SUITE_CONSUMERS` is strict JSON,
`[{"consumer_id":"memoria","tokens":[{"epoch":1,"sha256":"<hex>"}]}]`,
@@ -812,21 +890,118 @@ differently from its neighbour:
- **S1.** `rows` is never null; a producer's empty cursor is a 500, and a
failed read a 503, never an empty page. At the tip the producer returns
the cursor it was given and no rows, which is what stops memoria's poll.
- 256 rows a page.
+ 256 rows a page. A row at revision under 1 is a 500 (revision 11). A
+ producer returns `server.ErrCursorReset` for a cursor its log does not
+ recognise and the package writes §6.6's fixed 409; a reset of the
+ beginning, `""`, is a 500, because it would loop a consumer for ever.
- **S2.** The request is decoded strictly (no unknown fields, no trailing
document), the asker through `NewSubject`, the batch through
- `CheckS2Batch`; anything else is a 400. A producer error is a 503, which
- the consumer reads as `UNKNOWN` for the whole call; an answer count that
- differs from the pair count is a 500. Every pair is echoed.
+ `CheckS2Batch`, and a pair at revision under 1 is refused as S3 refuses
+ one (revision 11); anything else is a 400. A producer error is a 503,
+ which the consumer reads as `UNKNOWN` for the whole call; an answer count
+ that differs from the pair count is a 500. Every pair is echoed, and a
+ row is `(item_id, revision, result)` and nothing else — the consumer's
+ decoder refuses the whole answer otherwise (revision 11).
- **S3.** One refusal — an empty 404 — for a deleted item, an id that
never existed, a revision that is not current, missing or malformed, and
a body over 2 MiB (memoria refuses more than 2 MiB + 64 KiB and would
otherwise retry the same feed page for ever). Never 403. A 200 is
- `text/plain`.
-
-`server.Routes` is the same routes without the bearer check, for the
-conformance harness, which drives a handler with no token. An app never
-mounts it. The package keeps the module's rule: standard library only.
+ `text/plain`. S3 is a GET; any other method is not served.
+- **Every response** — each 200, each refusal, the 401 and the router's own
+ 404 and 405 — carries `Cache-Control: no-store` and `Vary:
+ Authorization` (revision 11). An S2 answer is one person's and an S3 body
+ may be a private item's; a cache between two apps that kept either would
+ serve it to the next request, which is leak-list item 11's failure on a
+ sibling call. Refusals stay byte-identical to each other with the headers
+ on, because every one carries the same two.
+
+**Testing it: `conformance.RunProducer(t, producer, kind)`** (revision 11).
+It mounts the producer through `Handler` exactly as the app does, mints a
+token for itself, requires the 401 without it, and runs the whole harness
+through it — so what is tested is what is served. `server.Routes`, the
+routes with no bearer check, existed for the harness to drive and is
+**deprecated**: mounted, it serves every live item, private ones included,
+to anybody who can reach the app. It stays because the module is additive
+(AGENTS.md) and Docs' and Fichas' tests call it; both move to
+`RunProducer`, and nothing new may call `Routes`. Rejected: removing it
+(a removed exported name is a new major version, and two branches use it
+today); renaming it to something that sounds dangerous (a new exported
+footgun with a scarier name is still a footgun, and the harness no longer
+needs one at all). The package keeps the module's rule: standard library
+only.
+
+### 6.6 Revisions and cursors survive a restore (revision 11)
+
+*This session, 2026-11-01, answering Fable's review of c38e3ad (H1). Found
+by both producers: Fichas `main` c837d28 and Docs `feat/suite-producer`.*
+
+**A revision names one byte sequence for ever.** Once a producer has
+issued `(item, revision)`, that pair names those bytes and no others, for
+the life of the item — across a restart, a migration and a restore from a
+backup. A producer whose revisions can be reissued is **not conformant**:
+a counter, or a clock, rolls back with a restored database and hands the
+same numbers out again to different text. The consumer then holds an old
+`(item, 7)` that the app's log also calls 7, S2 answers `VISIBLE`, and a
+passage the item no longer contains — a private one, since revision 10 —
+is shown as current. That is the leak both producers found in themselves.
+
+So, normatively:
+
+- A revision is **unique per item for ever**. The recommended shape is the
+ one both producers chose: a random positive int63 drawn per change, and
+ drawn again on a collision with the current one. It has no order, and
+ nothing may compare two revisions by size.
+- **`STALE` comes from the producer's own log**: the asked revision is one
+ the log holds for that item, and it is not the current one.
+- **A revision the log does not hold is `UNKNOWN` on S2** for a person who
+ may open the item (`NOT_VISIBLE` for one who may not — the person is
+ checked before the revision), **and the refusal on S3**: the same
+ byte-identical 404 as a deleted item. After a restore, everything the
+ consumer holds that the restored log never issued is therefore withheld
+ loudly and re-fetched, never shown.
+- The fixture names, per case, a `prior_revision` (held, not current) and
+ an `unknown_revision` (never issued), and the harness asks about both
+ rather than computing "one behind". Most unknown revisions sit *below*
+ the current one, so a producer still comparing numbers fails.
+
+**A cursor carries the identity of the log that issued it.** A cursor that
+is only a position is reissued by a restore exactly as a counted revision
+is: the restored log reaches the same position with different events, and
+the consumer continues silently from the wrong place. Both producers stamp
+each cursor with a random value written alongside the event it names, and
+check it on every request.
+
+**A cursor the log does not recognise** — the log was restored, or the
+cursor was issued by some other log, or it does not parse — is answered
+with **status 409 and exactly the body `{"code":"CURSOR_RESET"}`**: no
+other field, no position, no count, no reason. It is never answered as the
+tip (which leaves a consumer holding a dead log's items for ever) and never
+as a generic 5xx (which stalls it for ever, as Docs' and Fichas' 503 and
+manual reset did). It means: *your cursor names no position in my log;
+discard everything you hold from me and read from the beginning.* The
+beginning, `""`, is never reset. The module carries it as
+`suite.CursorResetStatus`, `suite.CursorResetBody`, `suite.ErrCursorReset`
+(what `DecodeS1` returns for exactly that answer, and for nothing else —
+any other 409 is a plain failure, because a reset destroys a consumer's
+whole copy), and `server.ErrCursorReset` (what a producer's `Feed` returns
+for the package to write it).
+
+**The consumer's half, binding.** On `ErrCursorReset` a consumer:
+
+1. drops **every** item it holds from that producer — the text, every
+ passage, embedding and derived artefact built from it — and its cursor
+ for that producer, before it reads anything else from it;
+2. reads S1 again from `""` to the tip, ingesting as it would a new
+ producer;
+3. retires as gone **every item absent from that complete re-read**, so an
+ item the restored log no longer has cannot survive in the consumer
+ because nothing told it to leave.
+
+Step 1 comes first because steps 2 and 3 can fail part-way; a consumer that
+re-read before dropping could be left serving a mix of two logs. Until the
+re-read reaches the tip, the consumer names that producer's items nowhere
+and says the app is being re-read — the loud withholding §4.3 requires,
+not a silently shorter answer.
### 6.1 Why two credentials
@@ -864,8 +1039,14 @@ caching authorization.**
Any hop across a `<team>` label. Any sibling presenting an assertion it
did not receive from the home for its own `aud`. Any write except §7. Any
-item outside the custody predicate. The home in the loop of a sibling
-call. Content leaving the team's hosts except under ruling 6.
+item outside custody — which since revision 10 is every live item, so the
+clause now forbids holding a deleted item, an id the app does not know,
+and any revision but the current one *(reworded in revision 11; it said
+"outside the custody predicate", which revision 10 left meaning nothing)*.
+Any passage shown to a person without an S2 `VISIBLE` for that person in
+the same request. The home in the loop of a sibling call. Content leaving
+the team's hosts except under ruling 6, and private content leaving them
+at all until §14's egress question is answered.
---
@@ -1073,6 +1254,22 @@ Docs rejected, differing only in the three properties the second clause
names (discussion 33). Both specs cite this section and delete their own
wording (Appendix A).
+> **Revision 11 (this session, 2026-11-01; Fable's review of c38e3ad, M2):
+> the comparison above was made when the corpus was team-visible items
+> only.** Since revision 10 a consumer holds private and individually
+> granted items too, so "whole-corpus egress" now includes documents only
+> their owner may open. Nobody has ruled on sending those to a model
+> provider. Paul ruled on 2026-09-19 that TensorX is zero-data-retention
+> and is treated as local — that ruling is context, and it answers a
+> retention question, not whether private documents may leave the team's
+> hosts for embedding. **Until Paul rules (§14), a consumer embeds no
+> private or individually granted item, and sends a model provider only
+> passages already ruled `VISIBLE` by S2 for the person asking in the same
+> request** — which memoria's AI answer already does. A private item is
+> then held and searchable by its own words, and absent from semantic
+> recall, and the consumer says so rather than pretending the recall is
+> complete.
+
---
## 9. The suite leak list
@@ -1096,13 +1293,17 @@ apps are a suite, and every one is a consequence of ruling 1 or 4.
granted, or link-only (§4.2) — and an honest consumer retires what
leaves; a compromised one retires nothing, and no revocation reaches a
copy it already holds (ruling 14).
-2. **A compromised sibling can name any asker on S2**, and so learn which
- items a given member may open — private ones included, since revision
- 10 removed the intersection (Paul, 2026-11-01). Bounded by item 1 as
- revision 10 states it: it already holds every live item, so what S2
- adds is who may open each, which a compromised holder of the items and
- the roster could largely infer anyway. *Revision 9 bounded this by the
- custody intersection; that bound no longer exists.*
+2. **A sibling's consumer token reads the team's grant graph.** It can
+ name any asker on S2, so whoever holds the token — a compromised
+ sibling, or anybody who lifts the token from its config — learns, for
+ every member and every live item, who may open what: who owns which
+ private document, who was granted which, and who was not. Since
+ revision 10 (Paul, 2026-11-01) that includes every private item. It is
+ not bounded by item 1 and not "largely inferable" from the items
+ *(revision 10 said "could largely infer anyway"; revision 11, answering
+ Fable's review of c38e3ad, M6, says it plainly)*: the text of a document
+ rarely says who it was shared with, and S2 does. *Revision 9 bounded
+ this by the custody intersection; that bound no longer exists.*
3. **A compromised sibling can write into its own designated area** as
itself (S8). It cannot write as a person or touch a person-authored
item.
@@ -1219,6 +1420,23 @@ that cannot be written as stated is a spec bug.
revision, and `gone` only for deletion. The paragraph below is revision
9's gate 3, superseded.
+ **Revision 11** (this session, 2026-11-01, answering Fable's review of
+ c38e3ad) adds, all in the harness: S2 is asked at each case's
+ `prior_revision` (`STALE` for who may open it) and `unknown_revision`
+ (`UNKNOWN` for who may open it, `NOT_VISIBLE` for who may not), never at
+ a computed ±1 (§6.6); S3 refuses both with the baseline 404. S2 about
+ `NonexistentItemID`, for the asker and for the stranger, is
+ `NOT_VISIBLE` — a producer that fails open, `VISIBLE` for an id it
+ cannot find, passes every case that exists and fails here. S3 with no
+ revision, a malformed one or revision 0 is the baseline refusal, and S3
+ does not serve a POST. An S2 row with any field beyond `item_id`,
+ `revision` and `result` fails the whole call. S1 at a cursor the log
+ never issued (`NeverIssuedCursor`) is `409 {"code":"CURSOR_RESET"}`.
+ Every response carries `Cache-Control: no-store` and `Vary:
+ Authorization`. `doc-owner-left` — private, owned by the stranger — is
+ `NOT_VISIBLE` to everybody (§4.3's proposal). An app on `suite/server`
+ runs it as `conformance.RunProducer` (§6.5).
+
*Revision 9:* **Custody, one fixture per rung.** S3 answers 200 for a `team` item and
404 for `private`, `granted`, guest-only, **link-shared-but-not-team**
(ruling 15) and deleted. The status and body are identical for "not
@@ -1237,6 +1455,21 @@ that cannot be written as stated is a spec bug.
citations, the document page, every list, a delete or report path —
shows the first and never the second, and withholds loudly when the
sibling does not answer. memoria's is `TestEverySurfaceAsksTheAppOfRecord`.
+
+ **Never cached, tested (revision 11; Fable's review of c38e3ad, H3).**
+ Seeding two documents shows a surface asks; it does not show the
+ surface asks *again*. So the gate also: seeds a document the sibling
+ answers `VISIBLE`, renders every surface above for that person and
+ asserts it shows; **flips the sibling's answer for that item to
+ `NOT_VISIBLE`** with nothing else changed — no feed row, no restart, no
+ cache cleared — and asserts that the **next request on every surface**
+ hides it, the AI answer and its citations included; then flips it to
+ `UNKNOWN` and asserts every surface **withholds loudly and names the
+ app** rather than hiding silently or showing the earlier answer. A
+ surface that still shows the item after the flip has cached an
+ authorization answer, which §4.3 forbids at any scope. Writing it is
+ memoria's; the doctrine makes it binding, and a consumer may not ingest
+ a private item until it passes.
4. **No cross-team dial.** Zero connections to a host whose `<team>` label
differs — `acme-evil`, `acme.docs.oficina.works.evil` — and zero
*follow-up* connections when an allowed host answers with a redirect to
@@ -1391,6 +1624,22 @@ change to where the list comes from.
## 14. Open
+- **NEEDS PAUL — may private items be sent to the model provider for
+ embeddings?** *(Raised by this session in revision 11, from Fable's
+ review of c38e3ad, M2; not decided here.)* Revision 10 (*"Hold private
+ too, check per person"*) put every private and individually granted item
+ in a consumer's corpus, and §8 compares memoria's embedding ingest to
+ "whole-corpus egress" — a comparison made when the corpus was team items
+ only. Context, not an answer: Paul ruled on 2026-09-19 that TensorX is
+ zero-data-retention and treated as local, which settles what the
+ provider keeps and not whether a person's private document may leave the
+ team's hosts to be embedded. The choices: embed private items too (full
+ semantic recall over one's own private documents; private text leaves
+ the hosts); embed team items only (private items found by their words
+ alone, and the consumer says so); or embed nothing until a local model
+ exists. **Until he rules, §8's interim rule holds**: nothing private is
+ embedded, and only passages S2 has ruled `VISIBLE` for the asker in the
+ same request reach a model.
- **A third review pass, on revision 3.** Two models have read this and
the second returned *request changes*; revision 3 answers all sixteen of
its findings and adds four rulings, so what needs reading now is
@@ -1527,6 +1776,14 @@ S1 to S3 and S8 **wherever sibling consumer tokens are configured**."*
> a `team` rung for documents, the default for new ones and not for
> existing ones (*"New docs Team, old private"*). Docs implements the
> producer through `suite/server` (§6.5).
+>
+> **Revision 11 (this session, 2026-11-01)**: Docs' random revisions and
+> stamped cursors are §6.6's recommended shape, now normative. An
+> unrecognised cursor returns `server.ErrCursorReset` (the 409), not the
+> 503 and manual reset; the conformance tests move from `server.Routes` to
+> `conformance.RunProducer`; the seeding adds `doc-owner-left`, owned by
+> the stranger, and reads `prior_revision` from the fixture. Fichas, which
+> has no appendix here, adopts the same three.
The sibling switch is independent of shape (suite §3): §12 steps 2 and 3
have Docs and Sheets serving lone peers before the home exists, so "in
suite shape" would forbid the sequencing this document depends on.
@@ -1615,6 +1872,18 @@ removed the asker rather than adding one.
> document page, so they are ruled there). A surface that names a document
> without asking is the leak revision 10 moved the risk into. memoria
> §8.13 records the surfaces and their gate.
+>
+> **Revision 11 (this session, 2026-11-01) adds three.** On
+> `suite.ErrCursorReset` from a sibling's S1, memoria follows §6.6's three
+> steps — drop everything held from that app and its cursor, re-read from
+> `""`, retire whatever the complete re-read did not list — and withholds
+> that app's items loudly until the re-read reaches the tip; today any S1
+> error, this one included, leaves the cursor where it is, which is safe
+> but never recovers. Gate 3c's flip case (§11) is memoria's to write.
+> And until Paul answers §14's egress question, memoria embeds no private
+> or individually granted item. `DecodeS2` now refuses a result row with
+> any field beyond the three; memoria's own fakes emit exactly the three,
+> so nothing in memoria changes for it.
§4.1: intersect S2's answer with the custody predicate (suite §4.3), and
type the asker subject (suite §3). The grants join as §4.1 states it —