Personal offerings under a platform-managed sentinel organization
Status: accepted
Date: 2026-07-30
Relates to: docs/architecture/core-model.md (Intent: “learning history follows the person”;
Independent mode’s “persistent personal offering” — named there since v1, never built), ADR-0034
(the customer-0 sentinel-org precedent), ADR-0052 (fine-grained competency referents — the
learner model this structure anchors), ADR-0014 (erasure), ADR-0053 (registry tiers and read
contract), docs/architecture/language-module-migration-v1.md (decision 3),
docs/design/language-module-phase-1-plan.md (workstream A; decisions ratified 2026-07-30).
Context
Section titled “Context”Emergent’s brief spans individual self-directed learners through MOOCs, and the core model
promises a “persistent personal offering” for independent mode — but the schema never realised
it. offering_authority_level is [platform, organization, teacher]; offering.organization_id
is NOT NULL; every learner-state anchor (practice_session, item_session, interaction_event,
progress_snapshot) requires an offering; and all content authoring paths are org/teacher/admin
scoped. A person cannot exist as a learner without an institution provisioning an offering around
them — the individual end of the spectrum is structurally unreachable.
The language module (the transcrobes migration) makes this concrete and urgent: its core value is self-directed learning over personally imported content, with a person-scoped learner model spanning all offerings.
Design review (2026-07-16, migration doc decision 3) established that no new authority machinery
is needed: person_role_grant already supports offering-scoped teacher/assistant grants
(org-XOR-offering shape), and canManageTeacherOffering already scopes manage rights to exactly
that offering for such grants. What is missing is anchoring, ownership visibility, and
provisioning.
Decisions
Section titled “Decisions”-
One platform-managed sentinel organization hosts every personal offering. A dedicated sentinel org (
personal-0), seeded as a platform primitive — not created as an importer side-effect likecustomer-0.offering.organization_idstays NOT NULL everywhere; no learner-state anchor changes shape.customer-0is deliberately NOT reused: it is the platform-content master home with its own exclusion semantics (tracking copies,provisioned_from); the personal org wants the opposite posture — nothing org-visible, everything person-private. Two sentinels, two postures, each excluded on its own terms.Amendment, 2026-09-13 (backlog 0011). “Each excluded on its own terms” is now implemented for both.
customer-0is excluded from the same surfacespersonal-0is — the OneRoster provider projection (orgs, classes, courses, enrollments, resources, categories), the platform-adminorganization/offering/ org-keyed sync entries, the seed pools and count assertions, and the Caliper catalog-resource reader — keyed ALWAYS on the sentinel org id, never onauthority_level. The reason is decision 2’s own logic read the other way: a master offering incustomer-0and the read-only tracking copy provisioned into a real org both carryauthority_level = 'platform', so no row-local authority predicate can separate them, and the copies must keep projecting and syncing. The masters lose nothing an org can see — an org consumes its copy. Learner-data surfaces (attempts, scores, gradebook, PNP, LTI line items) keep their person-authority guards unchanged: no learner data exists incustomer-0. -
offering_authority_levelgainsperson. A personal offering is distinguishable on the row itself: every boundary exclusion (dashboards, OneRoster provider, Caliper org aggregates, gradebook, catalog reads) becomes an indexed predicate on the offering, not a join against a well-known org id. The sentinel org id remains an implementation detail;authority_level = 'person'is the contract. -
Exactly one persistent personal offering per person, provisioned lazily. Minted by an idempotent, concurrency-safe server-side path on first personal-space use — never at person creation (org-only learners carry nothing). The provisioning creates the learning container, the offering (sentinel org,
personauthority), the person’s learner membership, and an offering-scoped teacher grant so the person manages their own offering through the existing grant machinery. The grant surfaces in JWT authorization claims like any other; no org-scoped grant is ever issued in the sentinel org. The provisioner is necessarily a server-side path: the sync-rail offering create deliberately omitsauthority_level(it collapses to the DB defaultorganization— the omitColumns trap), so aperson-authority offering cannot be minted over the sync rail even by accident. -
Personal offerings are invisible to every institutional surface — proven, not assumed. Every boundary that enumerates offerings, memberships, or org-scoped learner data excludes
person-authority offerings, each with a test: teacher/admin dashboards and rosters, the OneRoster provider (CSV and REST — the round-trip gate must pass with a personal offering seeded), Caliper org-scoped aggregates, gradebook reads, and thecatalog_resourceteacher fan-out (whose org-wide reach — one hop through offering → org even from an offering-scoped grant — would otherwise leak personal catalog metadata across persons; its row filter is revised with a revision bump). The exclusion inventory lives with its tests; new org-enumerating surfaces inherit the obligation. -
Personal content rides the standard rails, person-private. Personal imports are
catalog_resourcerows in the sentinel org, attached viaoffering_resourceto the personal offering, created through a person-usable variant of the ADR-0026 document-package workflow — one delivery pipeline for institutional and personal channels alike. Owner-private RLS end to end; no share or redistribute path exists (private-hosting posture, the predecessor’s proven custody model).
Alternatives considered
Section titled “Alternatives considered”- Per-person shadow organizations (GitHub-style user namespaces): keeps org invariants but floods the org table with pseudo-orgs and makes every org-scoped query reason about millions of single-member orgs.
- Nullable
organization_idfor person-authority offerings: erodes a NOT NULL invariant that every org-scoped query, RLS policy, and projection relies on — fixing ownership in one place is strictly better than weakening anchoring everywhere. - The learner as “teacher” of their personal offering with no enum change: structurally workable via offering-scoped grants alone, but leaves personal offerings indistinguishable on the row, pushing every exclusion into sentinel-org-id joins and bending the neutral vocabulary (a self-directed learner is not a Teacher).
Consequences
Section titled “Consequences”- The individual end of the individual→MOOC spectrum becomes structurally real; the language module’s personal channel (migration Phases 3-4) has its anchor.
- Every learner-state anchor keeps its NOT NULL offering; self-directed activity anchors to the personal offering with zero schema change to those tables.
- New org-enumerating surfaces must consider
person-authority exclusion from birth; the exclusion inventory and its tests are the enforcement mechanism (workstream A of the Phase 1 plan). - Erasure: the personal offering, its membership, and its grant are person-linked rows — registered in the erasure registry like any others (erasure-is-anonymization, ADR-0014).
- The sentinel org must never leak member lists or aggregate views; it is excluded from org administration surfaces entirely.
customer-0has no exclusion precedent to inherit (verified 2026-07-30): the existing sentinel is invisible only because its importer is opt-in and no one grants roles in it — no production filter, projection, aggregate, or seed excludes it. Theperson-authority exclusion built here is the first of its kind, andcustomer-0’s own latent gap is recorded as a backlog item rather than fixed in this lane. (Closed 2026-09-13 — backlog 0011 landed thecustomer-0exclusions on the org id; see the amendment under decision 1.)- Two rulings deliberately deferred: (i) erasure semantics for
person-authority rows — theofferingtable’s registered class isseverwith no subject link, which would leave an erased person’s personal offering as an orphan husk in the sentinel org; person-authority rows likely want deletion instead, settled when the provisioner lands (slice A2). (ii) Caliper per-person event emission for personal activity — today it would emit with the sentinel org as the group; whether personal activity emits at all, and grouped how, is settled with the archive/telemetry work (workstream C / Phase 2). Org-scoped aggregates exclude personal offerings now.