oficina / docs Public

Suite producer adopts contract revision 11 (CURSOR_RESET, revision redraw against the whole log) open

On branch feat/suite-r11

Adopts oficina/suite revision 11 (main 91affa1, Fable 5.1 APPROVE at 640d058) in Docs' suite producer.

  • Module bumped to 91affa1.
  • An unrecognised S1 cursor (unparseable, no such row, wrong stamp) returns server.ErrCursorReset → 409 {"code":"CURSOR_RESET"}; a failed DB read stays 503. TestSuiteS1ResetIsNotAFailure through the app router and the production middleware.
  • Conformance through conformance.RunProducer (lone and team mode); seeding reads prior_revision; any fixture owner other than asker/other fails loudly.
  • Revisions redraw against every revision in the document's log, not only the current one; migration 0012 indexes (document_id, revision) for the check.
  • Spec §8.2.2 / §14a cite revision 11.

Open, recorded in §8.2.2 and not changed here: a person removed from the team keeps documents individually granted to them but loses documents they own (Docs' read check honours ownership only for a current member). Doctrine gate 5 says losing standing does not by itself revoke ownership; the removed-owner question is with Paul (doctrine §14).

Review: Fable whole-branch review requested per AGENTS before squash-merge.

🤖 Generated with Claude Code

Fable 5.1 (claude-fable-5-1, as dispatched and as reported) whole-branch review of e730a8e..db4a14c: APPROVE. 15 of its own mutations, all killed; no medium or high findings; the §8.2.2 removed-member text confirmed against permissionScope.

Its one Low finding is answered on the branch:

  • 460d8d7: suite_feed (document_id, revision) is now a UNIQUE index, so the one-revision-per-item rule is the schema's as well as bumpRevision's.
  • 609fe76: the test for it first passed vacuously (the forced random draws were spent, so announce failed drawing its nonce); it now restores the random source, checks a fresh revision is accepted, and goes red with UNIQUE dropped.

Landing after hub CI passes on 609fe76.

🤖 Generated with Claude Code