CLOSE — 006-collaboration
Closed: 2026-08-30 · Status: DONE
The charter's objective, verified rather than asserted: a workspace behaves
like more than one person is in it. Members see each other, see what changes
as it changes, are told who they collided with, can say something about a page
or a block on it, and can read what everyone has been doing — all in the
product, without reloading, with every channel key built in one place and
nothing ever delivered to another tenant. npm run check:realtime reports
5 of 5 wired, with live cursors deferred-by-measurement and the report
that earned that deferral cited in the row.
The charter's own bar, phase by phase
| Phase | Done when (charter) | State |
|---|---|---|
| 00 — The channel helper and the realtime ledger | The helper is the only place a key is built, both existing call sites move onto it, and the gate is watched failing on a deliberately broken input | Met. services.ChannelUser/ChannelWorkspace over unexported prefixes, both hand-built call sites moved producing byte-identical keys, and rule T4 reads the call sites rather than grepping, so the cache's own user:%d keys stay out of it. Six rows minted at 0 of 5, watched failing three ways, plus the Go-level isolation test watched failing on a shared workspace key (ADR-0106, #423) |
| 01 — Transport measurement | Decision 006 answered by numbers, with a re-runnable harness; a recommendation to defer is a passing outcome | Met, and it deferred. Fan-out is microseconds at every workspace size; cursors drop 34.7% at 25 members, silently, over a 16-slot buffer. The deciding finding is structural rather than a ceiling: there is no inbound realtime path at all, so cursors alone would buy a second authenticated transport with the tenant boundary drawn across it again (report .station/jobs/006-collaboration/reports/TRANSPORT-MEASUREMENT.md, #424) |
| 02 — Presence | Who is here, ephemeral, never the database, proved with two browser contexts | Met, on a running stack. Presence is derived from the SSE connection — touched on connect, refreshed by the heartbeat that already proves the stream, dropped on disconnect, expiring when a process dies first — with the connection as its unit, so two tabs are not one member leaving. The event carries no member list; the endpoint answers from the intersection of store and roster (ADR-0107, #425, evidence .station/jobs/006-collaboration/evidence/phase-02-running-stack-2026-08-30.md) |
| 03 — Live document state and an attributed 409 | The canvas updates from another member's write, and a conflict names who | Met, both halves, on a running stack. One block.changed per write naming the document — phase 01 measured a 200-event burst delivering 17 — carrying an origin so the writing tab ignores its own echo while a second tab of the same member still updates (ADR-0108). The refusal owed a stored fact: 000035 records who last wrote a block, and the name is resolved through the roster of that block's workspace, never a user lookup (ADR-0109, #426–#427) |
| 04 — Threaded comments | A thread on a resource and on a block within it, workspace-scoped and role-gated | Met, both slices, on a running stack. 000036 targets a links row rather than a (type, id) pair, so target and tenant are one fetch; threading is one level, enforced by a trigger; every route answers 404, never 403; notifications go out on the existing internal-notifications path (ADR-0110, #428). 000037 adds the block scope as a nullable column, proved by the block's own row and inherited by replies from their root (ADR-0111, #429) |
| 05 — Member activity | The feed shows another member's action without a new write path being added for it, and its vocabulary comes from the product registry | Met, on a running stack. Read-only and derived: no table, no publisher. The charter's two named streams turned out to be unusable — neither users_logs nor user_history_events carries a workspace — so the feed reads the rows that do, every arm a WHERE workspace_id. The ledger gained a third carrier, derived, naming sources that must themselves be wired (ADR-0112, #430, evidence .station/jobs/006-collaboration/evidence/phase-05-activity-feed-running-stack-2026-08-30.md) |
What the track decided, and what it refused to
The channel key is the tenant boundary, so it is built in one place. On the other tracks a ledger minted late merely measured nothing; here a hand-built key is a cross-workspace leak waiting for its first publisher, and phase 00 moved both call sites while there were only two. Every surface since has been keyed through it, and rule T4 fails the build at the call site that builds anything else.
Isolation is a security test, with its own evidence file. Every phase
carries one, at Go level and in a browser, and the pattern that recurs is the
inversion: the feature test passing while the isolation test fails is what
a plausible wrong implementation looks like, and four phases recorded exactly
that pair — 403 instead of 404, a global name lookup instead of the roster, a
block target trusted because it was a number, a WHERE missing from one arm of
a union.
A name in a refusal is a disclosure. ADR-0109 is the track's sharpest decision and its rule outlived its phase: a member is named only through the roster that may name them, and nobody named is a complete answer. Comments inherited it; the activity feed inherited it again.
Not every collaboration surface is an event. The ledger learned this twice
by building: the attributed 409 is a refusal carried on the response to the
write it refuses, and the activity feed is derived from surfaces that already
publish. Both times the alternative was inventing a publisher to satisfy a
gate, which is the gate making the tree lie to it.
Two browser contexts, always. A collaboration feature proved in one browser is not proved; its failures are timing-dependent and invisible to a single-session spec. Every phase from 02 on carries a two-context live spec asserting a database read, and every run was made with no Redis configured, so the degraded path is what was proved rather than what was claimed.
A deferral is a deliverable. Live cursors are the one surface this charter named and did not build, and the ledger says so out loud with the measurement that earned it. What reopens the question is a product decision that cursors are worth their own transport — not a performance ceiling being lifted.
Blockers handed back to the owner
Four, each with options and a recommendation in
SESSION.md, and none of them blocked the
track's buildable remainder:
- Do workspaces have AI-agent members? Recommendation: an agent is an existing member's API token — attribution on an identity that exists — because a new member kind is a track's worth of auth work.
- Does a document have version history? Recommendation: snapshot-on-save
with restore, one resource type first, if versions are sold. Deriving them
from
user_history_eventsis the tempting wrong answer, and phase 05 found out why the hard way: that stream is per-user and per-tab, and carries no workspace at all. - What does "backups" mean here? Recommendation: document the operational posture and ship a per-workspace export; restore is where the cost and the risk are and should not be bought by accident.
- Are presence and comments plan-gated? Recommendation: one
comments_is_enabledcapability, default deny, granted to existing plans on000031's precedent; presence ungated, because it has no separable write path. 011 meets the seat axis from pricing's side.
What this track deliberately does not carry forward as work
The open items in SESSION.md stay listed and
stay unowned by this track: lib/blockDefaults.ts seeding settings.paragraph
where the registry collects text (ADR-0064's finding one block over, and the
whole map wants the same census); @csxbase/studio-react exporting Text, Kicker
and Prose that index.d.ts does not declare (#274's finding three components
over — it belongs with 003's residue row); a member who can create a block
but not delete one, which is a role-matrix question; and the environment's
Playwright/Chromium mismatch, recorded so the next run does not rediscover it.
Out of scope by charter and still so: live cursors (deferred, above), AI-agent members, version history and backups (owner decisions, above). The URL lifecycle and subdomain addressing are 009; artifact hosting is 010; the plan ladder and any capability gating collaboration is 011. This track added no capability and no quota.
Source: .station/jobs/006-collaboration/reports/CLOSE.md