oficina / suite Public

Revision 10: Astra's round-3 polish (APPROVE on 983114a)

Harness tests for cursors that need escaping, an item repeated across
pages (its last row is its state), and an address-keyed server ignoring
the asker's kind; three mutations red. Doctrine status records the review
(three passes, APPROVE on 983114a); §12's "no server half yet" and s3.go's
custody comment marked as pre-revision-10.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 51948c23365bea07d024faf003e1bfcefe29d04a parent 983114a
3 files changed, +60 −6
  • conformance/conformance_test.go +50 −0
  • docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md +6 −4
  • s3.go +4 −2

CI passed — run details

CI log
=== gate ===
ok  	amadan.net/oficina/suite	0.008s
ok  	amadan.net/oficina/suite/conformance	0.019s
ok  	amadan.net/oficina/suite/server	0.010s
diff --git a/conformance/conformance_test.go b/conformance/conformance_test.go
index 5fe45d9..d3882ea 100644
--- a/conformance/conformance_test.go
+++ b/conformance/conformance_test.go
@@ -37,6 +37,8 @@ type referenceServer struct {
staleFeedRevision bool // feed rows one revision behind
neverEnds bool // a new cursor every page, for ever
stuckWithRows bool // the same cursor back, with rows
+ reservedCursor bool // cursors that need query escaping (correct)
+ repeatEarlierRow bool // an item's last row older than its current revision
}
func (s *referenceServer) find(itemID string) (suite.CustodyCase, bool) {
@@ -217,6 +219,28 @@ func (s *referenceServer) serveS1(w http.ResponseWriter, r *http.Request) {
default:
page = []map[string]any{}
}
+ if s.reservedCursor {
+ // A cursor with characters a query string must escape. A harness
+ // that sent it unescaped would read "c 1&x=y" as "c 1".
+ switch cursor {
+ case "":
+ page, next = rows[:half], "c 1&x=y"
+ case "c 1&x=y":
+ page, next = rows[half:], "c+2#end"
+ default:
+ page = []map[string]any{}
+ }
+ }
+ if s.repeatEarlierRow && cursor == "c-1" {
+ // The second page repeats an item from the first at an older
+ // revision: the item's state is its LAST row, and it is stale.
+ stale := map[string]any{}
+ for k, v := range rows[0] {
+ stale[k] = v
+ }
+ stale["revision"] = rows[0]["revision"].(int64) - 1
+ page = append(page, stale)
+ }
if s.neverEnds {
next = cursor + "x"
}
@@ -388,3 +412,29 @@ func TestHarnessRunsForAnAddressKeyedApp(t *testing.T) {
t.Errorf("an address-keyed reference server failed: %v", report.Failures)
}
}
+
+// Astra's round-3 polish (2026-11-01): what its independent probes covered
+// and the repository's suite did not.
+//
+// MUTATION-TESTED 2026-11-01, each reverted: the cursor sent unescaped →
+// "reserved characters"; the FIRST row for an item taken as its state →
+// "an item's last row"; the wrong-kind check skipped in address mode → "an
+// address-keyed server ignoring the kind".
+func TestHarnessRound3(t *testing.T) {
+ s := newReference(t)
+ s.reservedCursor = true
+ if report := conformance.Check(s); len(report.Failures) != 0 {
+ t.Errorf("reserved characters: a correct server with such cursors failed: %v", report.Failures)
+ }
+ s = newReference(t)
+ s.repeatEarlierRow = true
+ if report := conformance.Check(s); len(report.Failures) == 0 {
+ t.Error("an item's last row: a feed whose last row for an item is a revision behind passed")
+ }
+ s = newReference(t)
+ s.fixture.Asker.Kind, s.fixture.Stranger.Kind = suite.SubjectAddress, suite.SubjectAddress
+ s.ignoreKind = true
+ if report := conformance.CheckAs(s, suite.SubjectAddress); len(report.Failures) == 0 {
+ t.Error("an address-keyed server ignoring the kind passed")
+ }
+}
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 1d5c190..1935b18 100644
--- a/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md
+++ b/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md
@@ -3,8 +3,10 @@
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 awaits its
-review pass (AGENTS.md); until then it is a proposal carrying Paul's ruling.
+**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.
**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
@@ -1338,8 +1340,8 @@ that cannot be written as stated is a spec bug.
blocked, which is the right answer.
Types and fixtures only: S1, S2, S3, the
- hostile-hostname fixture, gates 1 to 4. No server half yet. Docs moves
- its module path.
+ hostile-hostname fixture, gates 1 to 4. No server half yet *(built in
+ revision 10 as `suite/server`, §6.5)*. Docs moves its module path.
3. **memoria slice 1 against the module**, with Sheets and Docs serving
S1 to S3. The second adoption corrects the fixtures.
4. **S6, before memoria's slice 2 and not before its slice 1.** Sheets
diff --git a/s3.go b/s3.go
index b4c225e..ea47259 100644
--- a/s3.go
+++ b/s3.go
@@ -22,8 +22,10 @@ var ErrContractBreach = errors.New("suite: sibling broke the contract")
// DecodeS3 reads a content fetch. There is no asker anywhere in this call:
// S3 is custody-scoped and person-less, and memoria's draft 3 added a person
// to it, which both broke the ingest path — the warm-up, the rebuild and
-// derived-artefact regeneration have no asker — and pulled individually
-// granted rows into a store that may not hold them.
+// derived-artefact regeneration have no asker — and (before revision 10,
+// when a store could hold only team-visible items) pulled individually
+// granted rows into a store that might not hold them. Since revision 10 a
+// consumer holds every live item and who sees one is S2's question.
func DecodeS3(status int, body []byte) ([]byte, error) {
switch {
case status >= 200 && status <= 299: