oficina / meet Public

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

Plain git — no account needed to clone.

Download

Download this file

1# Product
2
3<!-- impeccable:product-schema 1 -->
4
5> **How this file was written.** Written unattended, on the same
6> instruction that produced `oficina/docs`' `PRODUCT.md`: every fact
7> below comes from repository evidence, not an interview —
8> `docs/superpowers/specs/2026-09-07-meet-design.md` (revision 9, plus
9> the 2026-09-10 and 2026-09-12 amendments), `AGENTS.md`, the slice
10> records under `docs/superpowers/reviews/`, `native/README.md`, and the
11> shipped code in `internal/calls/` on branch `slice/6-deploy`, main
12> `9225ec2`. Facts are cited to a spec section or a file. A reading
13> rather than a citation is marked **[inferred — confirm]** and should
14> be corrected, not trusted. A bare "ruling N" is the Calls spec's §1; a
15> doctrine ruling is always written "suite ruling N".
16
17## Platform
18
19Web, plus native Mac and iPhone/iPad clients over the same server
20contracts (spec §8.4's 2026-09-14 amendment, `native/README.md`).
21
22## Users
23
24**Primary: a member of one team**, making and joining that team's video
25calls. The instance boundary is the team — one instance per team
26(preamble; suite ruling 1, 5, §0.2), the "lone shape" until a suite home
27exists (§7.1). **Secondary: an outside guest**, admitted with a real
28identity, never as an anonymous URL holder: every participant signs in,
29and a meeting link gives an outsider a **guest grant**, never a way in
30without a name (ruling 1; suite ruling 15); a guest waits until an
31admitted member lets them in (ruling 9, §3.3).
32
33Access is a magic link gated by `CALLS_ALLOWED_ADDRESSES`
34(`internal/calls/config.go`), with optional Home sign-in when an operator
35sets all four `CALLS_HOME_*` settings (§7.1.1) — Home only *links* an
36existing member after independent local sign-in; it never creates a
37person or grants membership. Unlike Docs' §8.1, the spec states no
38passkey ruling of its own. **[inferred — confirm]** the team is assumed
39small enough that an address allowlist is appropriate; the spec states
40no target size.
41
42## Product Purpose
43
44Calls is **video calling for one Oficina team**: a member makes a
45meeting, sends one link, and the people who follow it set up camera and
46microphone, wait to be let in if not on the team, and talk (preamble).
47"The instance carries the pages, the sign-in, the signalling and the
48in-call chat, and never a frame of media" (§0.1) — falsifiable: publish
49the SQLite file, its WAL, and every log line, and the worst anyone
50learns is the shape of the team's meetings and who minted what, never a
51title, chat text, or signalling payload, enforced by a WAL-grep test and
52a captured-logger test, not merely asserted (§0.1). Since 2026-10-03 the log also
53holds quality and problem reports under random tags (§15.26): the shape of
54a call's connections, never which meeting or who; since 2026-10-28 a
55struggling client may send its diagnostics on its own (§15.29).
56
57## Positioning
58
591. **The claim is made per process, not once** (§0.1): Calls' own
60 process never touches a media packet; the platform TURN relay
61 forwards encrypted DTLS-SRTP it cannot read; a future platform SFU
62 decrypts to forward and gets its own spec revision when it ships
63 (§5.7).
642. **No relay of its own, by ruling** (suite ruling 6, §5.2): present
65 `CARLOS_RELAY` mints ICE credentials per call; absent means host
66 candidates only, stated before the join button (§5.5).
673. **Two authorities, not one, for a room.** *Standing* (§2.3, computed
68 per request, never stored) decides who may **enter**; a
69 *participation* (§2.4, hub state) decides who may **continue** — an
70 admitted guest keeps talking past its grant's expiry while a member
71 who loses standing is dropped at once (ruling 14).
72
73## Operating Context
74
75- **One Go binary per instance**, `CGO_ENABLED=0`, deployed on CARLOS as
76 a **unit route** (§7.3). Native Apple bindings under `native/` are the
77 one place cgo is used, isolated in `native/go.mod` (`AGENTS.md`).
78- **Routes today** (`internal/calls/app.go`): `GET /`, `POST /meetings`;
79 `GET /j/{token}` (outside the session group); the holding screen and
80 room; signalling (`stream`, `signal`, `ice`); `POST /m/{sqid}/share`
81 (2026-09-12); five destructive confirmation pairs (remove, takeover,
82 replace invitation, end meeting, revoke agent); Settings and agent
83 tokens; sign-in including optional Home routes; native handoff
84 endpoints; a bearer-only `/api/v1/*` group (`api.go`) outside CSRF and
85 the session group. `GET /healthz`/`GET /api/version` answer from
86 rastrillo itself, outside app middleware.
87- **Scriptless, with browser media participation as the exception, and
88 two script-only parts inside a live room.** Reaching a camera and
89 another browser needs script; so, once a call exists, do the chat
90 panel (`partials/chat.html` renders it `hidden` until script un-hides
91 it) and the admission queue's Admit controls (`room.js`). Every other
92 screen — the list, creating a meeting, a link shown once, every
93 confirm page, sign-in, `/welcome`, the agent token page, the Share
94 page and the Home account-link screens (§7.1.1), and the
95 server-rendered parts of the holding screen and room — works with
96 scripts off (§9; `AGENTS.md`'s UX line carries the media exception;
97 full list below).
98- **Nothing stored beyond a meeting's bones.** Rooms, peers, admission,
99 chat and presence live in an in-process hub and die with the process
100 (§2.2); a restart drops every live call (§4.5). Stored: `persons`,
101 `meetings` (sealed title, `internal/calls/seal/`), `meeting_links`
102 (hash-indexed plus a sealed copy for sharing since 2026-09-12),
103 `pending_joins` (a keyed address fingerprint, never plaintext),
104 `guest_grants`, `agents` (a member's minted principal; the token
105 itself is never stored, only its SHA-256) (models.go; §2.1).
106- **Quality reports and "Report a problem" go to the log, by Paul's ruling
107 of 2026-10-03** (spec §15.26), which knowingly bends "stores nothing
108 about calls". Collected: every 30 s in a call and at leave, each client's
109 connection numbers per remote peer (bitrate, loss, RTT, jitter, audio
110 concealment and jitter buffer, video freezes and frames, frame size and
111 fps, the encoder's limitation, screen recovery steps), the candidate types
112 and transport of the path (host/srflx/relay, udp/tcp/tls), the notices
113 shown (Reconnecting, can't hear you yet, no sound, sound blocked, screen
114 stalled), app/browser/OS and their versions, and the *kind* of microphone
115 and speaker (bluetooth, usb, built-in…); all under a random call tag and a
116 random peer tag. When someone presses Send in "Report a problem": their
117 note, and their call diagnostics, which include device names and, on the
118 web, the user agent, with people as peer tags and the meeting scrubbed.
119 Never: names, emails, meeting titles or sqids, peer ids, IP addresses,
120 device names (in quality reports), chat, audio or video. Nothing goes to
121 the database; the log is the only store, kept for the platform's log
122 retention — seven days, or 50 MiB of compressed log per app per box,
123 whichever is first. `CALLS_QUALITY_REPORTS=off` stops quality reports; a
124 person can stop their own in Settings (apps) or the Devices panel (web).
125 **Since 2026-10-28 (spec §15.29) the diagnostics may also be sent
126 automatically when a call is struggling** — freezes in two windows in a
127 row, a round trip over 800 ms in two in a row, "Reconnecting…" for more
128 than 5 s, or a shared screen the recovery had to rebuild: the same
129 anonymous diagnostics as Report a problem, scrubbed the same way, with no
130 note (nobody typed one) and the rule that fired, at most once every ten
131 minutes and three times per participation. It follows the same switches
132 as the quality reports: a person who turned theirs off sends none, and
133 `CALLS_QUALITY_REPORTS=off` stops them. The quality reports also now
134 carry, per remote peer, the window's average and highest round trip and
135 jitter, the counts of candidates gathered and offered by type and which
136 kinds of pair worked (types and counts, never an address), the relay's
137 region, whether each video encoder and decoder is hardware or software,
138 the codec family, the screen's share mode, and how long bandwidth or the
139 CPU held the encoder back — written as one flat `calls: quality peer`
140 line per remote peer so `carlos logs` shows all of it.
141
142## Capabilities and Constraints
143
144**Shipped:** meeting creation and listing; a link shown once, replaced
145or shared via `POST /m/{sqid}/share`; sign-in with the pending-join
146exception admitting an outsider only while holding a live link (ruling
14712, §3.2); optional Home account-linking (§7.1.1); the holding screen
148and a P2P mesh room capped at four with perfect negotiation, resume, and
149a replay ring (§4); relay-minted ICE credentials renewed before deadline
150(§5.2, §5.3); ephemeral chat and screen share (§6, §5.4); a bearer-token
151drive surface for agents re-checking operator membership on every
152request (§8, §15.17); native Mac and iPhone/iPad apps sharing the Go
153protocol core (`native/README.md`).
154
155**Deliberately not built yet** (§11, as amended): see "What is
156deliberately not here" below for the full, cited list.
157
158**Binding technical constraints:**
159
160- **Media never touches Calls' own process** (§0.1); no handler accepts
161 a media packet. **`scope.Owned`, no bound request body**: every
162 user-owned query goes through it, reads and writes alike; a row that
163 isn't yours 404s, never 403s (`AGENTS.md`).
164- **Standing is computed, never cached** — every request, every
165 15-second hub tick (§2.3, §2.4). A shipped migration is never edited.
166 The agent API's rate limit keys on the resolved agent, not the client
167 address, deliberately (§15.17; see below).
168- **`CGO_ENABLED=0 make ci` is the server's cgo-free gate.** Two
169 things run under `CGO_ENABLED=1` and never ship: `make race`, for
170 any change to `internal/calls/hub` or the stream, and `make
171 native-test`'s own `callscore` race sub-step. The native Mac and
172 iPhone/iPad apps are the one place real cgo does ship — `CallsBridge`
173 is a binary target `CallsKit` links (`native/apple/Package.swift`,
174 `native/scripts/build-mac.sh`) — while every server release stays
175 `CGO_ENABLED=0` (`AGENTS.md`). **`make browser`** needs UDP, which
176 the Claude Code bash sandbox blocks (`AGENTS.md`).
177
178## Brand Commitments
179
180- **Name:** Calls, `amadan.net/oficina/calls`, served at
181 `calls.oficina.works`. Renamed from Calls on 2026-09-16. Ruling 2 chose
182 `oficina/meet` over `oficina/conferencia` (preamble); that ruling stands
183 as the record of what was decided then, and this row is the current
184 name. Built beside Docs, Calendar, Slides and the suite doctrine,
185 consuming a decision made there rather than restating it
186 (preamble, §0.2).
187- **The theme is Estilo's**, adopted at whatever Estilo holds when each
188 slice lands. As recorded on 2026-09-14 (`git ls-remote --tags`
189 against `oficina/estilo`, empty at that check), no tag exists;
190 consumed at a pseudo-version, already adopted by the Home integration
191 on main. **[inferred — confirm]** the exact commit at any later date.
192- **The chat panel is Calls' contribution to Estilo** — "one
193 self-contained template partial and one script file so a second app
194 can adopt it," the suite's first chat, built to be taken (§6).
195- **Voice: [inferred — confirm].** Copy review was waived for this
196 documentation round (steering on `oficina/suite` discussion 5), so
197 shipped strings were not checked against a review record.
198
199## Evidence on Hand
200
201- **Spec:** revision 9 plus the 2026-09-10 and 2026-09-12 amendments,
202 2100+ lines, six rounds of Codex review (§14). **Plans:**
203 `docs/superpowers/plans/`, one programme (slices 2–6) plus a plan per
204 slice. **Slice records:** `docs/superpowers/reviews/`, one per slice
205 2–5 (room, relay, chat/screen-share, drive surface), each an index
206 into the spec's own §15 rulings for that slice.
207- **Native:** `native/README.md`, `native/DESIGN.md`,
208 `native/VERIFICATION.md` — build, gates, stated acceptance limits (no
209 real-device pass claimed for camera permissions, audio-device
210 switching, sleep/wake, or Home passkeys).
211- **What does not exist and must not be invented:** customers,
212 testimonials, benchmarks, pricing, usage numbers, launch date, press,
213 or a production promotion from this slice — edge
214 (`calls.oficina.works`) is promoted by hand by Paul, separately from
215 documentation (slice 6 plan, "What slice 6 was"). The acknowledgements
216 page and the Estilo theme pin are the other two slice-6 items with a
217 disposition rather than a delivery; spec §15.18 is the record for all
218 three.
219
220## Product Principles
221
2221. **State the degradation rather than let it be discovered.** The
223 no-relay floor says calls usually connect only on the same network
224 (§5.5); §0.3 states what the privacy claim excludes (signalling in
225 flight, a replay ring of up to 32 messages for 30 seconds, a link as
226 a bearer); the mail-budget residue is written down, not claimed away
227 (§3.2).
2282. **A verification that cannot distinguish "no" from "I can't see it"
229 is not a verification.** The §0.1 claim is enforced by grepping raw
230 SQLite bytes and the WAL and capturing the logger during a real call;
231 `make browser` asserts a received track by `ontrack` and frame count,
232 never a label (§13).
2333. **Two authorities are named because one would be wrong in some
234 direction** (§2.3–§2.4, ruling 14): a single authority either drops
235 an admitted guest at the grant's two-hour mark or lets an expired
236 grant re-enter.
2374. **A contract is written for the next client, not the current one.**
238 Signalling, `/ice` and the meeting API are contracts a native client
239 could speak (ruling 15, §8.4); the native apps are that ruling paying
240 off.
2415. **Actors are `person:<id>` or `agent:<id>`, never fabricated**
242 (§7.2, doctrine ruling 9).
243
244## Accessibility & Inclusion
245
246`AGENTS.md`'s vendored UI conventions apply: labelled fields with one
247error envelope, destructive actions on their own confirm-page URL and
248never a modal (`ui/confirm-form` — §3.1, §3.5, §4.2), state shown with a
249text label and not colour alone, and empty states that say what the
250screen is for.
251
252**The scriptless floor is the accessibility constraint this app adds
253beyond that shared list.** Reaching a camera and another browser needs
254script, and so, once a call exists, do the room's chat panel and its
255admission-queue Admit controls; nothing else does. With scripts off
256the holding screen's join button becomes one paragraph saying a call
257needs JavaScript and everything else on the page works without it
258(§3.3); the room does the same (§3.4).
259
260No target locale count or WCAG conformance level is stated in the Calls
261spec or `AGENTS.md`. **[inferred — confirm]**: Docs states "WCAG 2.2 AA,
262no exemptions" for itself; nothing here says the same target binds Calls,
263and this file does not assume it does.
264
265## What is deliberately not here
266
267- **Scriptless media, chat and admission** — the exceptions to the
268 scriptless floor: reaching a camera and another browser needs script,
269 and so, once a call exists, do the room's chat panel and its
270 admission-queue Admit controls; every other screen, including the
271 server-rendered parts of the holding screen and the room, works with
272 scripts off (spec §9; `AGENTS.md`'s UX-conventions line carries the
273 media exception in the same words).
274- **No STUN or TURN server of Calls' own.** ICE servers come from the
275 platform relay, present or not at all — never a server Calls names
276 itself (suite ruling 6, §5.2, §5.5).
277- **No SFU, and the room is capped at four admitted peers** — not a
278 claimed product limit, the mesh's own (ruling 5), lifted only when a
279 platform SFU that decrypts to forward ships, in its own spec revision,
280 not a quiet cap change (§5.7, §0.3, §11 "rooms above four").
281- **No client-address limiter on the drive surface.** The agent API's
282 per-agent rate limit (one request a second sustained, burst 60) keys
283 on the resolved agent, not the client address: behind the platform's
284 relay socket every request can share one address, and an
285 address-keyed limiter would let one flood take out every real agent
286 at once (§15.17).
287- **No passkeys ruling of its own.** Unlike Docs §8.1, the spec states
288 no instance-local-passkey decision. **[inferred — confirm]**.
289- **Chat is never stored.** A `chat` message fans out to admitted peers
290 and renders client-side; not replayed to a peer who joins or resumes
291 later, gone with the tab (ruling 8, §6).
292- **No recurring meetings, Calendar integration, recording, attendance
293 records, reactions, dial-in, captions, multi-host signalling,
294 push-to-talk, or virtual backgrounds, and no way to deny a knock** — a
295 guest who isn't admitted simply waits or leaves (§11).
296- **No native client sign-in method of its own** — a native client
297 authenticates through the same Home/local sign-in the browser uses,
298 handed off through a five-minute, one-use authorization; no separate
299 bearer or token scheme for native apps (§8.4's 2026-09-14 amendment,
300 `native/README.md`).
301 **No attendance claim, ever**: §0.3 says Calls does not record who was
302 in a call or for how long; an earlier revision implied one and the
303 spec dropped the implication rather than building the model. The
304 quality reports of §15.26 show that a call under a random tag happened
305 between two times with so many clients in it, for seven days; never
306 which meeting or who.
307
308---
309
310*See also:* the design spec, `README.md`, `AGENTS.md`, and the slice
311records under `docs/superpowers/reviews/`.
312
313