oficina / suite Public

Clone
git clone https://amadan.net/oficina/suite

Plain git — no account needed to clone.

Download

Download this file

1# 🤖 suite
2
3The Oficina suite's shared repository: the sharing doctrine that binds
4every app, and the contract module they implement against.
5
6The suite is a consolidation. Home, Docs, Sheets, memoria and calendar
7each keep their own repository, and mail and files arrive later as
8wrappers around keymail and slopbox. What they share lives here so no app
9owns the rule that binds the others.
10
11## What is here
12
13- `docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md`: the
14 doctrine. The team is the boundary. Inside it the apps are one thing;
15 across it, sharing is membership and nothing moves. Read §1 first.
16- The contract module, `amadan.net/oficina/suite`: types, golden fixtures
17 and a thin client for the calls apps make to each other. It has no
18 dependencies, so the pin chain from an app is one deep.
19- `fixtures/`: the golden set. `custody.json` is one case per rung of the
20 sharing ladder; `hostile_hosts.json` is the list of hostnames a sibling
21 client must refuse. Both are shared so every app runs the same gate
22 rather than inventing its own.
23- `conformance/`: the harness an app points at its own server half.
24- `server/`: the producer half, the bearer check, the three routes, their
25 wire shapes and cache headers, and the cursor reset, that an app mounts
26 as `server.Handler` by implementing `Producer` (doctrine §6.5, §6.6).
27
28## How an app uses it
29
30An app spec cites the doctrine and lists the rulings it consumes. It never
31restates one.
32
33In code, an app *will* import the module, mount the three sibling routes on
34a handler, and run the harness against that handler in CI. **Not yet. See
35Status: the import path does not resolve, so the module has no consumers and
36cannot get one.** The shape it will take:
37
38```go
39func TestSuiteConformance(t *testing.T) {
40 // The producer, mounted through server.Handler as the app mounts it,
41 // behind a token the harness mints. Never server.Routes (deprecated).
42 conformance.RunProducer(t, myapp.SuiteProducer(), suite.SubjectPersonRef)
43}
44```
45
46For the calls it makes, it takes a client that cannot leave its own team:
47
48```go
49c := suite.NewSiblingClient("acme", nil) // refuses another team's label,
50 // and never follows a redirect
51```
52
53## What is built, and what is not
54
55Built: S1 the change feed, S2 authorization with its total decoder, S3
56content, the typed asker subject, the team-bound client, and gates 1 to 4.
57That is the doctrine's §12 step 2, and it does not wait on the home. S6 is
58step 4, after memoria's slice 1 and before its slice 2; it is specified and
59has no fixture yet.
60
61The server half, `server/`, was built in revision 10 with the first two
62apps that serve it, Docs and Fichas, and corrected by them in revision 11
63(§6.6) — which is the point of §10.
64
65Not built, deliberately: call 7, call 8, the roster or anything needing an
66assertion; those are §12 steps 4 and 5 and they wait on the home's identity
67layer.
68
69## Status
70
71**The doctrine is the status.** Read its own status block rather than this
72one — it is at `docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md`
73and it says which revision it is, who has reviewed it, and what is
74deliberately unanswered.
75
76This section used to repeat all of that and went stale within a day: it
77still said revision 4 and three review passes when the doctrine was at 7,
78which is precisely the drift §2 diagnoses and §10 exists to stop, committed
79by this repository's own README about its own document. So it stopped
80repeating it.
81
82What belongs here, because it is about the repository rather than the
83doctrine: **the contract module cannot currently be imported.**
84