Skip to content

Teaching absorption: Path B build plan

Status: active plan, opened 2026-10-01. Companion records: ADR-0063 (teaching time), ADR-0064 (classroom records), ADR-0065 (Operations API), ADR-0066 (deck authoring and Podium), ADR-0067 (Platform Bridge), ADR-0068 (Deliverables), ADR-0030’s provisional v1 core. Vocabulary: CONTEXT.md. Source material: /home/anton/teaching (yxnu tools and private rosters, resources, Caroline’s paperwork models).

Absorb the teaching repos’ teacher-facing tooling into the platform, until the maintainer’s classes (and later colleagues’) are managed from emergent, close to fully.

Current priority: usable classroom pilot first (2026-10-05)

Section titled “Current priority: usable classroom pilot first (2026-10-05)”

Latest instruction: prototype mode. Anton has forbidden implementing tests and running testing or quality checks until he gives explicit written permission. Continue preparing the complete teaching setup inputs. Source reading and generating those requested inputs are the work; no validation or other quality-check lane is authorized. Keep changes uncommitted while the normal hook would run prohibited checks; do not bypass or weaken gates. This supersedes the verification expectations below.

The maintainer will be the sole user for the next several months. His explicit priority is to get the minimum features basically functional so he can start testing running his classes, then improve reliability and quality. This supersedes earlier interpretations of this plan that made comprehensive acceptance, testing or hardening a prerequisite to the pilot.

  • Choose work by the missing steps in his actual class-running workflow. Deliver one usable path through each necessary feature before adding alternative paths or general infrastructure.
  • Port the working teaching-repo integrations. Ask for the maintainer’s help promptly when his access or knowledge can resolve an uncertainty; do not build around missing evidence.
  • Verification defaults to a focused demonstration of the useful path and the existing mandatory validation/commit gate. Do not add coverage targets, broad regression matrices, parallel review rounds, speculative concurrency work or failure-mode machinery by default.
  • A further fix or test must address a concrete problem likely to block his use, corrupt his class records or cause an unintended destructive action. Record other hardening work as deferred; it must not delay the minimum usable features.
  • Report progress as what he can actually try, what prevents that trial and the next missing workflow step. Keep deployed/imported/live verification gaps explicit, but do not treat every outstanding acceptance item as a blocker to trying working features.
  • Include this priority in implementation briefs and continuation records. Do not silently restore the original reliability-first scope after a context compaction.

The existing repository gates and additive-migration rules still apply. The maintainer resumed implementation on 2026-10-05: commit this priority change, then complete the remaining work outside P2/P3 as quickly as possible, under the pilot-first rule above.

  • Path B order (maintainer’s choice, 2026-10-01): foundations → classroom → daily management → paperwork → breadth.
  • Continuation priority (maintainer’s choice, 2026-10-03): finish P1, then complete and review Phases 1–3 before starting P2/P3. Their read-only preparation is retained. Partial Connections/Push slices and outstanding acceptance checks must stay explicitly partial.
  • Spring semester is the full target. Piloting begins as parity lands, in the maintainer’s own live classes, with the flat-file tooling as the day’s fallback.
  • The January submission from emergent is the goal (“not hard”, but the objective): the Deliverables chain must be complete enough in December, which imposes that bridge Pulls and native marking are done by then even though Path B puts the classroom first.

Each slice is one implementer run (one bounded unit of work on develop, one commit, the validation gate run). Slices are ordered; schema-touching slices never run concurrently (migration folders chain through snapshots — see docs/runbooks/migrations.md).

# Slice Depends on Notes
F1 Teaching time schema + generation — timetable, room, academic calendar (+holidays, swap days), meeting pattern, meeting, meeting plan/segment, checkpoint; the pure domain generator (pattern × calendar → meetings) with tests — ADR-0063. The first migration since 2026-09-24; additive per the runbook.
F2 Teaching time wiring — server paths to create/regenerate an Offering’s Meetings when a Pattern or the calendar changes; sync exposure of the client-touched tables; RLS/erasure classes per house rules F1 Generation stays server-side; regeneration limited to planned Meetings, with tests.
F3a Operations API skeleton — the operation registry (typed definitions, permission checks), audit trail, person-bound tokens (issue/scope/revoke), HTTP transport — DONE 16558a6a — ADR-0065. First operations: meeting create/move/cancel/regenerate, plan replacement.
F3b MCP transport adapter over the same catalogue — DONE 53dd4b12 F3a The workstation-assistant door; the SDK lands here.
F4a Teaching-time authoring operations — Timetable Slots, Rooms, Academic Calendars (+ Holidays/Swap Days) and Meeting Patterns as Operations; a config write auto-regenerates what it affects in the same transaction; org-level permission descriptor joins the catalogue — DONE 5505dec1 F3a Without this nothing can create the config a calendar is generated from; the maintainer’s workstation assistant can then enter a whole semester.
F4b Meeting surface in the teacher portal — the Offering calendar tab (labelled Meetings): Meetings grouped by teaching week read on the sync rail, meeting detail with its Plan, Move/Cancel/Regenerate via the portal’s Operations client, a read-only config panel — DONE 76d369fa F4a The first thing the maintainer can actually look at; also the seam Tasks will attach to.
F4c Config authoring UI — Timetable, Room, Calendar and Pattern forms in the portal — DONE bc273b95 F4b Reuses the existing Operations, with complete-read replacement gates and actual-target permissions.
# Slice Depends on Notes
C1 Classroom records schema — attendance, observation, ritual, rota (+allocations), observation/assessment linkage; erasure classes (attendance sever, observation sever+scrub note, allocation sever) — DONE ffb2f29c (+ review fix 8ed44e14) F1 ADR-0064.
C2a Classroom records wiring — rail registration and per-client exposure for the seven tables (plus score_scale, which the level picker needs), the optimistic write path for the in-class FACTS (Attendance, Observation: ADR-0065’s “in-class records … ride the sync rail”), and the application-level kind/level validation against the declaration — DONE 6d3f24cd C1 The F1→F2 analogue: exposure taken with the paths that write them.
C2b Portal logging surfaces — the Offering’s classroom screen: attendance toggle, observation tap, coverage counts, and the Observation Assessment declaration it logs against; independent of Podium — DONE 768ba4bf C2a The January path must not depend on Podium. The Picker derives from these.
C2c Rota lifecycle — Ritual/Rota authoring on the rail, the Publish Operation (stamps published_at + published_by_person_id), “allocations move as a block” on a cancel/move, the automatic re-queue on absence, and the one-shot rota.csv import — DONE 8d40eab4 C2a C4’s picker is its first consumer; nothing on the January chain waits on it.
C2d Observation gradebook projection — compute an Observation Assessment’s learner marks from its declared scale and observations, include them in the gradebook and weighted finals without storing a second aggregate — DONE b89646f3 C2b ADR-0064. Explicitly assigned during the continuation review: C2b delivered logging and coverage, but no slice owned the grade projection. Complete before the Deliverables chain consumes classroom marks; nonnumeric band values need an explicit numeric interpretation.
C2e Server gradebook projections — adapt the shared Observation projection to server reads and the existing OneRoster provider/export consumers; share that read seam with Deliverables — DONE 9136158c C2d Review identified that the current OneRoster readers consume only stored gradebook_entry rows and silently omit derived marks. Preserve teacher-only evidence, explicit configuration errors and correct change metadata after Observation retraction; no stored grade aggregate. Required before claiming export/passback support for Observation marks.
C3 Deck + Slide schema and rendering — deck, slide (+typed extras: cue, media bindings, layout class, slide bindings), server-side Marp rendering into the presenter model; slide-range validation; the one-shot corpus import (migration tool, not productised) — DONE ebae7a75 F1 ADR-0066. Media as Content bindings.
C4 Podium — Presenter view and Audience window in the teacher portal; plan/cues/slides/clock; Checkpoints; picker, attendance and observation logging on the surface; Prepare (offline warm-up) — DONE 528f6dfc C2b, C2c, C3 Ports slide-range/reflow/status rules as behaviour. Presenting must run with no network.
# Slice Depends on Notes
D1 Tasks, Reminders, Notification minimal core — Task generation from declarations (Survey open/close, Ritual cadence, Assessment windows), Reminder scheduling, in-app notifications, email via the existing Mailgun path F4 ADR-0030 v1 core.
D2 Platform Bridge: Connections — the encrypted per-teacher session store (Vault key, RLS owner-only), the login form (Xuexitong login-by-code, captcha relay), cookie-paste fallback, reconnect UX F3 ADR-0067. Test forbidotherlogin before relying on the form.
D3 Platform Bridge: Pull (Xuexitong, iTest) — results into Gradebook Entries and External Item Results, questionnaire answers into Survey Responses, attributed by student number; counterpart mappings — DONE c62663b7 D2 Assessed results 245a1218; Survey vectors c62663b7. Native Scores require real Attempts.
D4 Platform Bridge: Push (Xuexitong) — 问卷, 作业 create/publish behind dry-run, files to 资料/云盘; fences ported from the CLI’s safety-line test D2 Teacher-invoked only.
D4b Platform Bridge: Push (iTest) — papers and class tests, using the same durable intent/outcome ledger and explicit dry-run/reconciliation fences D2, D4 ledger ADR-0067’s remaining toolbox; implement after the Xuexitong Push slice.
# Slice Depends on Notes
P1 Competency reuse for 课程目标 — course framework per 大纲, nodes as objectives, alignment target shares; attainment projection over alignments + gradebook D3 (for final-exam components) ADR-0068.
P2 Deliverable engine + v1 templates — generation Operations, org-scoped templates, storage under the Offering; the process-grades workbook, attainment workbook, teaching-summary form P1 The maintainer’s reduced subset list is still open; build the three data-dense shapes.
P3 Deck as PDF Deliverable — the department’s slide submission from the Deck model C3 PPTX postponed (PDF satisfies “for the moment”).

Content migration (unit packs, item banks, surveys), full local-teacher paperwork set, the zip packaging (backlog 0019), slide-aware editor if earned, UI language for Chinese colleagues.

  • Migrations: additive only, per docs/runbooks/migrations.md; never db:regenerate; applying to any database is the maintainer’s step. Never edit a committed migration folder.
  • The validation gate (bun run validate / validate:full) always runs; never --no-verify.
  • Latest versions for every dependency touched; package scripts over direct tool invocation.
  • Tests: real behaviour over mocks; PGlite harness (@emergent/db/testing) for DB-touching units; integration lanes untouched.
  • Terms come from CONTEXT.md; new vocabulary is never coined by an implementer — it routes back.
  • Scratch only under tmp/agents/.
  • develop only; no branches.
  • Pilot continuation (2026-10-05) — priority committed as 7c835daf; the iTest and selected-import source slice is committed as 4c2c0aaa. It fills a retained iTest paper, publishes it and creates its class test through the maintained protocol, with inline portal controls and actual question search. The corpus import CLI now accepts repeatable --source and --runsheet selections: one class need not supply mappings for unrelated semester Decks/Plans. A real selected dry run renders the 10 October Oral 26-3 source as 18 Slides and one valid Plan, with no media; its actual Offering and Meeting mappings remain to be populated. The existing AV schedule already settles the holiday Rota question: four 25 September turns join the four 9 October turns. A reconciled import copy preserves all learners/order; no teaching input source or real database has been changed. P2/P3 remain parked. The normal source commit hook passed the existing validation gate, including all affected static and coverage tasks. The maintainer confirms that migrations have not been applied and teaching courses have not been imported. The next useful prerequisite is first-course setup/import, not a lookup of nonexistent Offering/Meeting rows. Migration application remains his step. First-course bootstrap tooling is committed as b1d2a4ba: prepare a validated OneRoster archive from the actual rosters, then explicitly import it and create the selected Meeting through existing authenticated workflow/Operations endpoints. Actual preparation passed for Oral 26-3 (26 learners) and all six classes (three Courses, 172 distinct learners). The confirmed teacher sign-in email is anton@melser.org; the teacher row leaves names unasserted so an existing profile is preserved. Generated-ID database reads happen only after successful import. The focused useful path and normal validation hook passed; no real import or database mutation occurred. Start with the first-class import runbook.

  • F1 7f566421 — teaching-time schema, the pure generator, migration (+ re-emits). Verified, accepted.

  • F2 1d09b92a — sync registration and the generation service. Verified, accepted.

  • F2 fix 60261d7c — claims are wide (any row naming a Pattern holds its date), the write boundary stays narrow; mid-semester regeneration never duplicates held Contact time.

  • F3a 16558a6a — Operations catalogue (transport-neutral, in @emergent/domain), runner with audit trail, person-bound ops_ tokens, HTTP transport, mint-operation-token bootstrap CLI; origin semantics for a move ruled (original stays patterned + cancelled + link, replacement is moved).

  • F3b 53dd4b12 — the MCP transport at /mcp over the same catalogue (@modelcontextprotocol/sdk 1.31.0, web-standard streamable HTTP, stateless per request, ops_ bearer auth before any protocol work).

  • F4a 5505dec1 — the six authoring operations with in-transaction auto-regeneration (affected-regeneration.ts plans the (Offering, Period) pairs per scope; a Timetable replace that would orphan a Pattern’s slot refuses atomically with the old timetable kept). Org-level reach is the same domain rule’s org branch (canManageTeacherOrganization), so an offering-scoped grant never reaches org config.

  • F4b 76d369fa — the Meetings tab in the teacher portal: week-grouped list, detail drawer with the plan, Move/Cancel/Regenerate through the portal’s typed Operations client (session bearer, local schema parse, typed refusals), read-only config panel, three empty states; the Academic Calendar joins the teacher rail (no re-emits owed — every builder derives from the authoritative registry, evidenced by the drift lane). Mantine was verified against the installed @mantine/core types because the MCP tools were unavailable in that run.

  • C1 ffb2f29c — classroom-records schema (ADR-0064), with its review fix 8ed44e14. Seven tables. attendance is one record per (Meeting, Person) — the partial unique (on person_id is not null) is what lets erasure’s severed husks coexist with a fresh record — and carries the status × source pair plus a recorded_at that is a STATED fact, never server-defaulted, because the Presenter logs offline and syncs later. observation holds per-Offering kind/level as TEXT, never a platform enum (a course renames “warmer” with no schema change), with observation_assessment the linkage that declares the ordered kinds, the projection rule (the ADR’s one rule, CHECK-pinned, because a new rule is a code change) and the coverage target N; the level scale is the definition’s existing score_scale_id, so there is no second scale and no stored aggregate. ritual carries a cadence plus a contiguous week window. rota + rota_meeting + rota_allocation carry the ordered allocation: (rota, pass, position) is the order of record, a learner holds at most one LIVE turn per pass, and a re-queue appends an allocation linked back to the missed one so the missed turn survives as history — there is deliberately no stored “missed” state, since “missed” follows from Attendance. rota_meeting is the one table beyond the ADR’s one-line summary, and the ADR’s own words require it: the maintainer’s live rota varies capacity INSIDE a pass (4 a Meeting, 5 on the last two of each half), so a scalar capacity_per_meeting on rota cannot state “a capacity per Meeting”; it is also the composite-FK target that keeps an allocation’s Meeting and pass number honest. Erasure declared as ruled: attendance sever, observation sever with the note scrubbed while the level husk survives (gradebook_entry‘s posture), rota allocation sever, the publisher an actor (sever/none). Nothing is registered on a sync rail — C1 authors the entries’ posture (the deliberately narrow teacher-manage read on all seven) and C2 takes the exposure decision, exactly as F1→F2. The change-set re-emits identity_linking (six new pristine probes) and the ACL floor last; the floor grants the new tables nothing until C2 registers them. Two findings from the review, fixed in 8ed44e14: the rota publisher is no longer claims-stamped on create (it would have made a draft rota fail its own rota_publisher_published_ck — the stamp belongs to C2’s Publish Operation and the one-shot CSV import), and ritual_cadence_window_ck now refuses a half-written window in BOTH directions (an appended additive ALTER TABLE migration; a committed folder is never edited). NOT representable, recorded rather than approximated: “every Week A” — F1’s Academic Calendar has no A/B week concept, so the cadence set is every_meeting | week_range and the gap is stated in the domain union.

  • Open for C2, from C1: DONE, in 55b909b1 (see the review-fix entry below) — findMeetingsWithChildren (apps/api/src/features/teaching-time/meeting-generation-service.ts) now probes the classroom-records dependents, because a stale planned Meeting carrying any of them was judged childless and DELETEd, cascading a published Rota’s Meeting and its turns away. Then the rail registration and per-client exposure for the seven tables (with attendance/observation confirmed learner-invisible: an Observation is “never released to the learner as a mark on its own”), Publish-a-Rota as an Operation (sets published_at + published_by_person_id, runs “allocations move as a block” and the automatic re-queue), and application-level observation.kind/level validation against the declaration (no CHECK can read another table). Accepted, not a defect: self sign-in keeps CONTEXT.md’s spelling as a pgEnum label — legal, and the repo’s first space-bearing label (delivery_profile’s hyphens are the precedent). The Picker owes no table: ADR-0064 rules it stores no domain record.

  • Review fixes 55b909b1 — the adversarial review of 59aec246…ffb2f29c (tmp/agents/review-59aec246/), three findings plus the C1 integration gap, with the maintainer’s ownership ruling taken before the brief. (1) P1, destructive: regenerating one linked Learning Period deleted or cancelled ANOTHER Period’s Meetings — the run generated candidates from one Academic Calendar but judged every patterned Meeting of the Offering against them. Fixed by per-Meeting Period OWNERSHIP: meeting.learning_period_id (uuid, nullable, set null), stamped on generation and on meetings.create (the resolver that already picked the calendar now yields the Period beside the zone), INHERITED by a move, never changed by an in-place re-timing; NULL is meaningful and never stale. The CLAIM read stays WIDE (any owner, any status — or two linked Periods would each generate the shared occurrence) and only the STALE decision narrows: diffMeetingsForRegeneration takes the run’s learningPeriodId and requires the row’s owner to match. A Pattern’s week range is now refused only when NO linked calendar can hold it, and the service clamps the range to each calendar’s week count (a range starting past it generates nothing) instead of the domain generator throwing. (2) P2: meetings.move stranded the authored plan on the cancelled original; the meeting_segment rows are re-pointed at the replacement in the same transaction, while Checkpoints, Attendance and Observations deliberately stay on the original — they are facts about THAT gathering. (3) P2: the portal’s calendar filtered Meetings by the selected Period’s date window before week-grouping, so a make-up Meeting accepted after the last teaching week was listed under no selection; selection is now ownership-driven with a window fallback for unattributed rows, and a row inside NO linked window is listed under every selection, where the EXISTING grouping paints it in “outside teaching weeks” — no new copy. Verified against the reviewer’s own probes, which now fail in the inverted direction (originalSegments: 0, replacementSegments: 1; the 04/01/2027 make-up is listed), plus the coordinator’s independent 5-case probe of the wide-claim/narrow-stale split. Two decisions worth knowing: the week CLAMP is the service’s, keeping the domain’s “a week outside the calendar is a data error” rule intact; and the in-place UPDATE set stays wide across owners (a no-op in practice, because two linked Periods’ candidates for a shared occurrence are identical).

  • C2 re-sliced (the plan’s single C2 row was too large for one implementer run): C2a wiring, C2b the portal logging surfaces, C2c the Rota lifecycle. Ruling behind the split, from ADR-0065: “the platform’s offline guarantee is for presenting and for in-class records (Checkpoints, Attendance, Observations), which ride the sync rail as every app write does” — so the classroom FACTS are written on the RAIL, not through Operations, and Operations own only the Rota PUBLISH verb. Recorded for whoever takes C2c: NO slice owns the one-shot rota.csv import today (ADR-0064 states it as a consequence; only C1’s note grouped it with “C2’s Publish Operation”); C2c takes it explicitly or records it unowned.

  • C2a 6d3f24cd — classroom records wiring (the first half of the plan’s C2). C1’s seven entries plus score_scale are registered on the authoritative AND teacher rails; none joins the learner or admin rail — learner-invisible is a decision pinned by tests, and for the seven it is the second lock behind C1’s DENY_ALL row filter. attendance, observation and observation_assessment join the optimistic write path (gate + dispatch ladder) because ADR-0065’s offline guarantee covers the in-class FACTS: no Operation is added, and the Rota PUBLISH verb stays C2c’s. The applier derives offering_id from the named Meeting (or the assessment definition) and ignores a client-supplied one, stamps the actor only through the declarations’ authClaim managedFields (proven by real pgwasm execution of the generated apply function, not by inspection), gates Membership, and validates observation.kind/level against the declaration’s kinds and the Score Scale reached through its definition — the recorded carry-over (d): 400, a wrong payload, never a dischargeable conflict. DELETE stays real for attendance (a missing row means attendance was NOT TAKEN) and for a mis-tapped Observation. The four rota tables are registered readwrite and still refused by name until C2c; the applier’s stale “no readwrite entry lacks a write path” note is corrected and pinned with the standing list. score_scale joins the teacher rail READONLY (its own schema migration, one SELECT policy): an Observation’s level is a band value of the assessment’s Scale, so C2b cannot render a level picker without the bands. Its nullable-org read admits platform-scoped scales to any authenticated caller — exactly the posture of its sibling assessment_definition and of grade_category (includeGlobalNull), recorded in a test rather than hidden; narrowing it is a change those two tables owe in lockstep, so it is left as it is.

  • C2b 768ba4bf — the Offering’s Classroom tab (/offerings/$offeringId/classroom), the first surface a teacher can mark from without Podium. It reads the Meeting (default: the one in progress, else the next planned, else the most recent), the whole audience INCLUDING the teacher (ADR-0064’s “attendance is recorded for the whole audience … roles decide what it feeds”), the declaration and the Score Scale bands, and it writes only through the rail — the write envelopes are pure, pinned by value in the lib tests, and sent by five new provider verbs (recordAttendance, retractAttendance, logObservation, removeObservation, saveObservationAssessment). The four attendance states are CONTEXT.md’s, and “not taken” is a DELETE, never a fifth status; an Observation’s kind/level come from the selected declaration and its assessment’s scale, with no note in this surface (prose belongs to the Presenter); coverage counts are per learner for the SELECTED declaration, with the below-target list and copy stating outright that nothing enforces it. The random Picker is deliberately absent (ADR-0064: session-local, stores no fact); so is any rota rendering (C2c). No schema change, no migration, no Operation, no registry entry: the applier’s derived columns, Membership gate and kind/level check are reused, not re-implemented. Verified independently: the portal suite via its own script (bun run test → 452 pass / 0 fail; a bare bun test src drops the --preload ./test/setup-dom.ts and fails 9 DOM tests, which is a RUNNER artefact, not a code one), i18n:check regenerates clean, the i18n package typechecks (so the new keys exist in both locales), and the terminology guard is clean at 1081 files. The run reported a pre-existing i18n “drift”; the coordinator could NOT reproduce it — the English lang.grade.save.pending key was already present at the parent commit and the en/zh diffs here are purely additive — so it was an artefact of regenerating against a partially staged tree, recorded as a hazard (regenerate only on a settled tree), not as a defect.

  • C2c 8d40eab4 — the Rota lifecycle, with the maintainer’s three rulings taken before the brief (cancel SHIFTS a turn, a move FOLLOWS it; a shift absorbs at the next Meeting with spare capacity and only the very end may go over capacity; the Rota SURFACE waits for C4’s Picker). The four authoring tables are now client-writable on the rail (offering_id derived Ritual → Rota → children; published_at and published_by_person_id refused in every client payload, so a publish is never an ordinary edit), and rotas.publish is the slice’s ONE command: a new { kind: "rota", field: "rotaId" } reach descriptor, seven new OperationErrorKeys, and ordered refusals — unknown, already published (a published order is never republished; later changes are swaps), no Meetings, no allocations, a Meeting over its capacity (or a learner twice in one pass), an allocation outside the audience — then one UPDATE stamps the publication instant and the publisher. ONE shared helper (apps/api/src/features/classroom-records/rota-turns.ts) answers all three “where does a turn go” rules so they cannot drift: a CANCELLED Meeting’s live turns move FORWARD to the next Rota Meeting with spare capacity and, when none has room, land on the LAST one beyond its capacity (later turns keep their own places — “pushing later ones down” is the turn going later, never a cascade); a MOVED Meeting keeps its turn, the placement following the replacement; an ABSENT turn is re-queued by a privileged post-apply write inside the attendance transaction, idempotent over C1’s unique requeue-source index, with the missed row kept as history. All three guard on a PUBLISHED Rota: a draft is ordinary authoring data. The one-shot rota.csv import landed too, as a maintenance CLI plus a pure mapping module (identity resolved from the OneRoster identity_binding student number and never guessed, all-or-nothing, --dry-run printing the rows, refuse-to-run-twice by the natural key (offering, ritual name, audience)); the imported Rota lands PUBLISHED with published_by_person_id null, which is exactly the one-way shape C1’s rota_publisher_published_ck was written to allow. No migration: the four tables were already registered in C2a, so the gate/ladder change is app-side. Two decisions recorded for review: a published Rota’s rows may not be DELETED through the rail (deletes of a draft stay legal, and updates to a published Rota stay legal — a swap is a deliberate change), and excused does NOT re-queue (ADR-0064 names “absent” only). When C4 wires the Publish verb into a client, the seven new refusal keys need portal copy in both locales, or they degrade to “unexpected”.

  • Follow-up review fixes 92ef9a73 — the second adversarial review (tmp/agents/review-59aec246/findings-followup.md) found four defects in the classroom lifecycle; the coordinator reproduced all four before briefing, and all four are closed. (1) P1, security: an attendance UPDATE refused by RLS still reached the PRIVILEGED turn re-queue, because the target was resolved from the client’s own payload and a zero-row UPDATE is silent — an outsider who knew an attendance UUID could re-queue another teacher’s published Rota. The re-queue is now bracketed on the apply’s OWN transaction: a for update read of the attendance row under the CALLER’S OWN authorization context (the same set_config('role', …) + request.jwt.claims the in-DB apply function uses) BEFORE the envelope, and a confirmation AFTER it that the row is visible, matches the identity and has a MOVED clock — a refused, invisible or stale write leaves the published order untouched, and the requested payload alone never authorizes a lifecycle write. (2) P1: chooseForwardRotaMeeting searched across passes, so a full two-pass Rota made a first-pass cancellation collide with the learner’s live second-pass turn (rota_allocation_rota_pass_person_uq) and roll the whole cancellation back. The selector is now PASS-SCOPED: strictly later placements of the turn’s OWN pass, overflow onto that pass’s last ELIGIBLE placement, and nothing at all when nothing follows in the pass. (3) P2: eligibility is a Meeting that will still run (planned / in_progress) for BOTH the spare-capacity pick and the overflow pick, so an out-of-order cancellation can no longer strand a turn on a cancelled Meeting. (4) P2: a Group-scoped Meeting’s attendance and Observation audience is that Meeting’s Group plus the teaching set, not the whole Offering: the server gate requires Group membership (teacher/assistant excepted; mentor/observer are not the teaching set), the portal resolves it through a new use-meeting-audience read, and the coverage count deliberately STAYS Offering-wide. The reviewer’s three probes now fail as written (they assert the buggy behaviour) and the behaviour is pinned instead by the repo’s own suites (a new seven-case follow-up suite, the applier’s authorized/outsider split, the pass-scoped selector cases and five render cases). Two notes for the future: the reviewer’s attendance-auth-repro.ts still prints requeued: 1 because it calls the reallocation helper DIRECTLY, bypassing the applier where the guard lives — do not read that as the defect surviving; and the reviewer’s pinned portal harness now fails wholesale because the component gained a read its stale copy does not stub. No migration: every fix is app-side.

  • Continuation review repair b1a2e2e5 — reviewing 92ef9a73 together with the code in d3405b11 found two regressions in the attendance guard. Its caller-role switch persisted into the owner-only apply-function call, so ordinary absent writes failed with permission denied; after isolating that failure, a first absent CREATE also failed to re-queue because its pre-existing-row lock was necessarily empty. The guard now scopes and restores both role and claims around each authorization read, confirms the actual landed status, and distinguishes a new CREATE from an UPDATE. The production transaction sequence is exercised as one unit with the real generated artifact and its EXECUTE restrictions, covering authorized create/update, inaccessible update, repeated absence, duplicate create refusal and atomic rollback. The split-transaction test seam (claimsOverride) was removed. The forwarding and Group audience fixes remain satisfactory. Verification: 188 focused tests; final lifecycle suite 10/10; API typecheck/lint; bun run validate passed, including 1,615 API tests. Two localhost-listener tests required the validation run outside the filesystem/network sandbox; no HTTP integration or deployed-browser coverage is claimed. No dependency change or migration. Findings: tmp/agents/review-59aec246/findings-fix-review.md.

  • Continuation scope — C3, C4, C2d, C2e, F4c, D1 and D3 are complete; D2’s paste-based Connections slice is accepted, with login/captcha proof still open. D4 is in progress, followed by the remaining Path B slices. C2d explicitly owns ADR-0064’s previously unassigned Observation gradebook projection and must precede the Deliverables chain. The C3 corpus audit found all 68 Marp sources. On 2026-10-02 the maintainer chose a first-class image Content kind for its photographs and QR-code images, including upload and delivery support. Authoring keeps raw Markdown, while rendering excludes development notes and projects cues/media as typed data. Real imports and migration application remain separate from implementing and dry-running their tools.

  • Observation band values (maintainer, 2026-10-02): the AV four-band scheme uses midpoints — Excellent 9.5, Good 8.5, Fairly good 7.5, Average 6.5 out of 10; equivalently 19/17/15/13 out of 20. C2d represents these as an explicit per-Offering declaration (ratios 0.95/0.85/0.75/0.65), preserving other Offerings’ freedom to declare their own bands. The mark is the mean ratio scaled to the Assessment’s maximum; no Observations means no mark, and the coverage target is not a grading gate.

  • C3 ebae7a75 — teacher-only readonly Deck/Slide/Slide Binding/media-link rails and seven online authoring Operations; raw Markdown, typed cues/layout/bindings, surgical Slide identities and atomic validation of all attached numeric Plan ranges. First-class image Content follows the existing upload/reference/delivery path, with teacher authoring and learner image rendering. Meeting stores nullable authored title and selected Deck; moves inherit these and the Plan, and regeneration protects authored preparation even without Segments. Plan rules live in teacher-only meeting_plan metadata, sharing visibility and consistency with Segments. Typed Segment substeps retain fractional minutes; their total may fall short of the Segment’s minutes but cannot exceed them. Omitted rules preserve the current value and explicit [] clears it. The one-shot importer uses real transactional authoring, refuses reruns/authored Plans, and rolls back the whole corpus on a late refusal. Rendering retains complete sanitized Marp SVG, including math and split-background geometry, shared CSS and stable Content references. C4 must display the complete SVG through its sandboxed frame, resolve current binding facts from synced rows, warm bytes and reconstruct local media URLs. Review fixed lost split-background geometry, rejection of valid ampersand-containing footer text, and five omitted Circuits replication entries. Real native RLS/ACL regressions cover reads and all 15 direct client mutation denials. bun run validate and the source commit hook passed: 1,634 API, 1,453 database, 1,228 learner and 461 teacher tests; coverage and the final characterization lane passed. No new HTTP sync integration or deployed-browser coverage is claimed. The actual database-free core dry-run covers 68 Decks / 1,155 Slides / 175 media occurrences / 23 Plans. Explicitly selecting the shared introduction adds 34 Slides and 29 image occurrences: combined 69 Decks / 1,189 Slides / 23 Plans, with all image inputs present and no invalid ranges/subtimings. This resolves the two oral Plans’ external Deck selection. Offering, Meeting and Content mappings remain required before a write; five AV annotated directory badges need exact source mappings. Thirty-nine distinct oral clip names (44 occurrences) lack built out/**/media candidates; this does not establish whether the original recordings exist. No input repository or real database was changed. Review and verification: tmp/agents/review-59aec246/findings-c3.md and tmp/agents/teaching-continuation/c3-validation.md.

  • C4 528f6dfc — Meeting-scoped Presenter and standalone same-origin Audience; immutable planned timings plus Checkpoint-derived reflow, clock/status/overrun, explicit taps independent of paging, previews/cues, picker/Group/Rota ordering, and existing attendance/Observation logging locked to the selected Meeting. Checkpoint writes use the real generated apply artifact and derive lifecycle from landed facts within the same transaction. Prepare atomically stores the exact read snapshot and entitled media bytes in IndexedDB, reconstructs local URLs after reload, waits for the service worker, and integrates explicit Forget. Full sanitized Marp SVG retains its wrapper/theme and split geometry; live binding text updates preserve playing media. Playlist manifests are refused as offline media. Teacher-selected Survey shortlists use a teacher-only readonly rail and the validated surveyShortlists.replace Operation, preserving authored order and supporting explicit clearing. Both review axes have zero unresolved actionable findings. Root validation and source commit hook passed: 1,643 API / 1,453 database / 485 teacher / 635 domain tests; all coverage gates passed. The production teacher build precaches database WASM/data and fonts. A focused real Chromium 153.0.8010.12 harness with ordinary HTTP caching disabled proved offline shell/database boot, durable bytes, Marp geometry, Audience paging/reload, native audio playback, in-place binding refresh, script/resource blocking and explicit Forget. This is not a full authenticated/deployed sync E2E or HTTP integration lane; abrupt-process crash recovery was not tested. Four additive migrations remain unapplied: 20261002094145_survey_shortlists, 20261002094240_registry_governance, 20261002094305_sync_artifact, 20261002094441_client_role_acl (last). No committed migration was rewritten, dependency changed, real import run, or input repository modified. Review and evidence: tmp/agents/review-59aec246/findings-c4.md, tmp/agents/teaching-continuation/c4-validation.md.

  • C2d b89646f3 — shared pure Observation mark projection and live teacher Results, including declared draft columns, Grade Category weighting and per-cell coverage/configuration states. Explicit per-Offering ratios cover the existing Score Scale bands exactly; missing configuration remains logging-only, unknown historical levels refuse the affected learner’s mark, and no evidence has no mark. Stored cells cannot double-count a declared column; no aggregate or Attempt is invented. Draft native Assessment authoring now supports organization/shared Score Scales, with server reach checks and published-field freezing. Real generated-artifact guards prevent conversion of Assessments carrying Items, Attempts or stored grades, and prevent subsequent Item/Attempt creation on declarations. The authoritative read predicate excludes Observation definitions from ordinary learner delivery while preserving independently granted teaching reach. Results follows queued facts and declaration changes; stable translation dependencies also repair native review/grading modal reload loops. Both review axes have zero unresolved findings. Root bun run validate and the normal source commit hook passed: 42 static tasks, 10 coverage tasks, API 1,655 / database 1,457 / teacher 505 / domain 643 tests, and 29 characterization tests. An obsolete smoke-test predicate expectation was corrected; validation completed after the memory interruption on a fresh run. Three additive migrations remain unapplied: 20261002124743_observation_level_ratios, 20261002124812_sync_artifact, 20261002124911_client_role_acl (last). No committed migration or dependency changed, real import, input edit, external call, full HTTP integration or authenticated browser E2E claimed. Existing OneRoster export/passback support is owned by C2e. Review and proof: tmp/agents/review-59aec246/findings-c2d.md, tmp/agents/teaching-continuation/c2d-validation.md.

  • C2e 9136158c — the shared server read adapter reuses C2d’s pure projector inside a consistent database snapshot. Institutional consumers include declared draft Observation columns and use actual learner memberships, retaining identifiable historical membership as the existing OneRoster roster lifecycle does. A server-owned evidence-change clock survives deleting the newest or last Observation without changing the declaration’s authored LWW version; projected grades remain unstored. Stable Result identities carry active grades or configured zero-evidence tombstones. Missing configuration and obsolete levels produce scoped issues, never a grade-clearing assertion. Ordinary rostering stays available, affected REST Result reads refuse explicitly, and incomplete bulk CSV exports refuse. Derived passback uses fixed-identity PUTs and refreshes editable Observation LineItem metadata before Results; the source needs gradebook.createput support. The status envelope and PUT endpoint follow the OneRoster 1.2 Gradebook REST binding. Injected transport tests do not establish live SIS compatibility. Both review axes have zero unresolved findings. Review repairs preserve deterministic Result pagination, refresh mapped column maxima before recalculated grades and narrow configuration refusals to the requested Result scope. Root bun run validate and the normal source commit hook passed: 42 static tasks, 10 coverage tasks, API 1,661 / database 1,458 / teacher 505 / domain 643 tests, and 29 characterization tests. An obsolete schema posture assertion now includes the server-owned clock among withheld columns. Four additive migrations remain unapplied: 20261002141318_observation_evidence_metadata, 20261002141407_observation_evidence_clock, 20261002142150_sync_artifact, 20261002142420_client_role_acl (last). No committed migration or dependency changed, real import, input edit, outbound SIS call or deployed HTTP/sync integration claimed. Review and proof: tmp/agents/review-59aec246/findings-c2e.md, tmp/agents/teaching-continuation/c2e-validation.md.

  • F4c bc273b95 — bounded portal editors reuse the existing Timetable, Room, Calendar and Meeting Pattern Operations. Whole replacements require settled successful reads and preserve a single editable snapshot, including slot labels, second-precision times, Room kinds and Calendar exceptions. Calendar creation includes linked Learning Periods with no Calendar. Organization configuration permission is checked for the actual target, independently from an Offering grant; Patterns use Offering management permission. The Offering–Learning Period read predicate adds bounded teaching reach for grant-only teachers while preserving learner membership and personal-space enumeration protections. No new generation policy is introduced: the Pattern description is corrected to the reviewed rule that its range fits at least one linked Calendar, with generation clamped separately to each Calendar. Both review axes have zero unresolved findings. Portal focused checks: 61 tests / 208 assertions; database focused checks: 67 / 730. Root bun run validate and the normal source hook passed: 42 static tasks, 10 coverage tasks, API 1,661 / database 1,462 / teacher 514 / domain 643 tests, and 29 characterization tests. The native DOM harness exposes the browser input constructors Mantine uses. The initial root gate caught stale generated translation comments after the final copy edit; regeneration repaired them. No migration was needed: artifact, governance and ACL builders remain byte-identical. No dependency change, migration application, real import, input edit, external request or deployed authenticated end-to-end proof claimed. Review and proof: tmp/agents/review-59aec246/findings-f4c.md, tmp/agents/teaching-continuation/f4c-validation.md.

  • D1 complete — source 38d979fc; the provisional teacher-only Task/Reminder/Notification core in ADR-0030. Source-owned declarations and normalized explicit recipients generate stable work from actual dates/Meeting occurrences; landed-row reconciliation preserves terminal history through moves, re-timing and source removal. Eight freshly authorized Operations support manual Tasks, source declarations, exact pending Meeting schedules and owner inbox acknowledgement. The portal exposes calendar/source editors, deliberate catalogue action buttons and the private Notification drawer. The durable worker records in-app delivery atomically and uses verified mailboxes through Mailgun; uncertain provider acceptance is retained without blind retry. Its build/chart/runbook are wired. Learner reads remain unchanged; no central templates, scheduled status flips or automatic Operations. Survey windows use the clock and native write policy; awaited completion retains failed answers. Accepted response retries preserve the original document/items under opaque-key transaction locks, even after closure; anonymous bearer retries return no response data and retain no identity link. Review corrections also fix pre-FK lock ordering, recipient search races, reminder deadline text and nested Person fields in Task action JSON. Both review axes have zero unresolved findings. Plain root validation passed: 42 static tasks, 10 coverage tasks, API 1,686 / database 1,469 / learner 1,236 / teacher 530 / domain 658 tests, and 29 characterization tests / 514 assertions. The normal source commit hook passed the same gate. Initial gates caught obsolete catalogue assertions and untested new domain refinements; meaningful recipient/assignment/date projection controls restore full domain coverage without lowering gates. Seven additive folders remain UNAPPLIED; latest 20261002160852_client_role_acl sorts last. No committed migration rewrite, dependency change, live email, migration application or real import. Native single-backend tests do not prove cross-session locking; an existing container Survey case adds pooled concurrency coverage but was not run. No deployed authenticated sync proof claimed. Review/proof: tmp/agents/review-59aec246/findings-d1.md, tmp/agents/teaching-continuation/d1-validation.md.

  • D2 paste-based slice accepted — owner-only Connection Operations, encrypted per-teacher session custody, bounded authenticated probes and portal paste/check/reconnect/revoke. Remote probes run outside database transactions; version/generation fences prevent stale verification from restoring a revoked row. Former teachers retain authenticated owner list/revoke access on /connections. Existing source probes do not independently identify the signed-in platform account; metadata reports that limitation rather than inferring identity from cookies or course/paper owners. Explicit reconnect may replace an unknown-account session with another authenticated unknown session. A known account cannot silently become different or unknown. D3/D4 readiness must be re-established against actual target/owner evidence after session replacement, independently of persistent counterpart identity. The source-derived password/captcha protocol and browser-session coexistence proof remain incomplete; those methods stay unavailable while paste functionality proceeds. This is a bounded implementation choice, not a new maintainer policy or a claim that D2’s complete login slice has passed. D4b explicitly owns iTest Push required by ADR-0067. Source committed as 7232ed79. Both independent reviews have zero unresolved findings; the expired-verification lease and multiline cURL fixes are satisfactory. Actual HTTP/MCP refusal controls exercise fictional secrets as values and unknown keys, with no response/audit/log echo. Plain validation and the normal source hook passed: 54 static tasks, 12 coverage tasks, API 1,722 / database 1,476 / learner 1,236 / teacher 546 / domain 660 tests, plus 29 characterization tests / 514 assertions. The required latest update ran at the root and all 18 workspaces; canonical dev:bump retained the existing preview-library channel. Four additive folders remain UNAPPLIED; latest 20261003013025_client_role_acl sorts last. Native custody proof does not establish actual Vault encryption or separate physical-reader deployment privileges. Review: tmp/agents/review-59aec246/findings-d2.md; proof: tmp/agents/teaching-continuation/d2-validation.md.

  • D3a complete 245a1218 — Xuexitong assignment/iTest assessed-result readers, storage, Operations and an Offering-local Bridge surface. Aggregate marks use existing Gradebook Entries; explicit attempt-less External Item Results preserve item marks and authored Item-Version mappings without inventing native Attempts or Scores. A safe readonly Gradebook origin prevents imported cells entering native Attempt review/grading. D3b remains responsible for Survey answers, explicit mobilelearn host preparation and anonymous-response identity/privacy. Stable source mappings exclude Connection IDs; every Pull freshly proves exact readable class/object access, with no asserted external self-account identity. Design: docs/design/platform-bridge-pull.md. Attachment disables native learner delivery under a server-owned gate and refuses existing non-erased native Attempts; both native start rails and direct client inserts enforce it. Unused retargeting restores old delivery atomically. Native/OneRoster writers cannot replace or retract Bridge-owned grades. Plain validation and the normal commit hook passed all 54 static and 12 coverage tasks: API 1,776, DB 1,491, teacher 564, learner 1,236 and domain 663 tests, plus 29 characterization tests. Nine additive folders remain UNAPPLIED, latest 20261003030307_client_role_acl; committed folders were unchanged. Both review axes have no unresolved finding and deem the delivery repair and previous fixes satisfactory. Review: tmp/agents/review-59aec246/findings-d3a.md; proof: tmp/agents/teaching-continuation/d3a-validation.md. At that checkpoint D3b remained open; its current-answer-vector semantics, deidentified anonymous replacement and explicit mobilelearn scope are implemented below.

  • D3b complete c62663b7 — explicit Xuexitong Survey preparation, exact native target and authored question mappings, complete current-answer-vector Pull, private canonical ownership and counts-only HTTP/MCP/portal outcomes. Feedback is operational teaching and research-excluded. Anonymous imports retain no hidden Person/source receipt; complete changes replace only the owned graph with shuffled random identities and one observation time. Identified corrections preserve identities and erasure behavior. Both telemetry readers exclude imported graphs. Native direct DML and the actual generated apply artifact enforce provenance and attachment-time semantics; safe titles/status/windows remain editable. Before any accepted snapshot, explicit same-binding activity-ID correction clears stale proof/maps; accepted zero counts as used. Six practical setup/recovery bugs found during review were fixed. Both axes report zero unresolved findings and previous fixes remain satisfactory. Plain validation and the normal commit hook passed 54 static and 12 coverage tasks: API 1,834, DB 1,497, teacher 588, learner 1,236, domain 667 tests, plus 29 characterization tests / 514 assertions. Five additive folders remain UNAPPLIED, latest 20261003041336_client_role_acl; older folders are unchanged and sync/governance generation was genuinely byte-identical. Full D3 is complete. Live platform/Vault/login coexistence and independently scheduled multibackend locks remain distinct deployment acceptance. Review: tmp/agents/review-59aec246/findings-d3b.md; proof: tmp/agents/teaching-continuation/d3b-validation.md.

  • D4a complete 27ad3a88 — the durable Push intent/outcome ledger and Survey draft create/update. Work/publication/files and D4b iTest remain subsequent work. One execution performs one non-idempotent effect; its marker commits before dispatch and a verified receipt commits before continuation. Uncertainty survives lease expiry/reconnect/revoke/erasure and requires explicit read-only reconciliation. The inspected Survey copy route returns no ID and its inventory has no proved completeness protocol, so reissue remains a visible follow-up rather than guessed parity. Nine practical review/gate issues were corrected, including first-create preparation, independent Push mapping, prefix-only append maps, fresh Connection metadata, lock ordering, receipt history, source-year duplicate-effect bypass and MCP catalogue discovery. Both final review axes have zero unresolved findings and consider prior fixes satisfactory. Plain validation and the normal source hook passed all 54 static / 12 coverage tasks: API 1,890, DB 1,501, teacher 610, learner 1,236, domain 672, plus 29 characterization tests / 514 assertions. Three additive folders remain UNAPPLIED, newest 20261003052254_client_role_acl; prior folders are unchanged and sync/governance generation was genuinely byte-identical. Review: tmp/agents/review-59aec246/findings-d4a.md; proof: tmp/agents/teaching-continuation/d4a-validation.md.

  • P1 preparation settled — the direct-attainment design reuses exact competency editions and distinct alignment target-mark shares. The maintainer approved direct grade projection with institutional indirect components pending. Generic configuration/authoring and a required aggregate projection are P1a; genuine item/subcomponent evidence for multiple outcomes is P1b. Real AV process-weight reconciliation and the unresolved unit/iTest split are parked until no further independent implementation is possible. The current III syllabus differs from the legacy II workbook; neither supplies automatic semester defaults.

  • P1a complete b61e7b4b — exact competency-edition authoring, private Offering configuration, separate target-mark shares, atomic scoped replacement and required direct grade projection. The teacher portal exposes configuration, edition authoring and direct attainment alongside unchanged current grades. Current evidence capture is distinct from historical cohort/alignment selection. Multi-outcome whole-score targets remain unavailable until P1b provides genuine item evidence; indirect institutional components remain pending as approved. Review fixed three feature bugs (saved-row DTO parsing, lost copied-edition metadata and failed-read retries losing drafts) and an inherited client-written human-grading marker bug. The new invoker floor protects direct/artifact writes while preserving teacher correction and erasure; legacy markers cannot establish P1b provenance. Both final review axes have zero unresolved findings and consider previous fixes satisfactory. The plain gate and normal source commit hook passed all 54 static / 12 coverage tasks: API 1,908, DB 1,518, teacher 621, learner 1,236, domain 706, plus 29 characterization tests / 514 assertions. An initial domain coverage refusal was repaired with meaningful public contract/evidence controls; no threshold was relaxed. Five additive folders remain UNAPPLIED, latest 20261003064113_client_role_acl; prior folders are unchanged. Review: tmp/agents/review-59aec246/findings-p1a.md; proof: tmp/agents/teaching-continuation/p1a-validation.md.

  • P1b complete 6af54852 — optional item allocations in the existing composition JSON, genuine current-cell native/Bridge evidence, exact item conservation and rational Unit recipe lifting. Explicit inventory reads and deliberate adoption preserve unsaved portal assignments. Native grading captures its returned Score ID and same-pass trusted snapshot inside the unit transaction; partial human grading retains the original trusted mark after numeric persistence. Legacy/fallback/missing authored maxima remain explicitly unavailable. Review repaired inherited client-maximum PCI inflation and retained grader UUIDs, plus fractional persistence and mixed-grader audit cleanup defects. Both final review axes report zero unresolved findings and satisfactory prior fixes. Plain validation and the normal source hook passed all 54 static / 12 coverage tasks: API 1,935, DB 1,518, teacher 630, learner 1,236 (cached), domain 718, plus infrastructure 19/70 and characterization 29/514. All six relevant generators were actual no-ops; no migration/dependency changed. Review: tmp/agents/review-59aec246/findings-p1b.md; proof: tmp/agents/teaching-continuation/p1b-validation.md. Generic direct P1 is complete; indirect institutional components and actual AV weights/listening split remain explicitly pending.

  • Phases 1–3 completion next — before P2/P3, repair C2c’s ambiguous same-date Meeting import lookup, then finish the remaining Bridge slices and earlier deployment/input acceptance gaps. A Group import may use its Group’s Meeting or a whole-Offering Meeting; remaining date ambiguity refuses. Cancelled/moved originals are excluded while ended history remains importable. The real corpus still requires explicit Offering/Meeting/Content mappings and the holiday allocation reconciliation below; migrations remain maintainer-owned and unapplied. D2 login/captcha, Xuexitong Work/publication/files/reissue and iTest Push remain incomplete. Current public Work scripts establish save-status interpretation, but independent saved-content readback and live compatibility remain separate proof. Preparation: phases-1-2-completion-audit.md, phase-3-next-slice.md, d4-public-js-proof.md under tmp/agents/teaching-continuation/.

  • C2c import follow-up complete 7c8ba45c — CSV dates now resolve within the declared audience; a Group must belong to the Offering, cancelled/moved originals are excluded, and ended history remains eligible. Multiple compatible survivors on a referenced date refuse in either query order; replacements never alias an old date. Published sequence, capacities and all-or-nothing writes are preserved. Both review axes have zero unresolved findings and consider the fix satisfactory. Focused tests passed 18/86; plain validation and the normal hook passed the new infrastructure lane at 28/115, all 54 static / 12 coverage tasks from cache, and characterization 29/514. No dependency, schema, migration or real teaching input changed. Review: tmp/agents/review-59aec246/findings-c2c-import-followup.md. Holiday reconciliation and actual imports remain outstanding; this closes the confirmed importer bug, not their acceptance.

  • D4 Work bank preparation complete 41b06a4c — concrete read-only bridge.inspectWorkBankSelection through HTTP/MCP, with exact ordered bank parent IDs, fresh course/CPI, owned custody and repeated authority/binding/CAS checks. Lookup continues past the CLI’s nineteen-page shortcut within explicit bounds; missing descriptors never default. Key-free parent metadata/fingerprints prove selected observations, not child/scoring parity, global absence or remote ownership. No native objects/intents or provider effects are created. Both review axes have zero unresolved findings; prior fixes remain satisfactory. Plain validation and the normal hook passed static checks and 12 coverage tasks (10 cached): API 1,945 and domain 719 actually reran; DB 1,518, teacher 630, learner 1,236 were cached; infrastructure 28/115 and characterization 29/514 actually ran. No schema/dependency/migration changed. Review: tmp/agents/review-59aec246/findings-d4-work-bank.md; proof: tmp/agents/teaching-continuation/d4-work-bank-validation.md. The next Work slice is the two-effect draft ledger with explicit acknowledgement milestones; the existing-bank v1 workflow does not require a generic QTI compiler or global duplicate-title inventory.

  • D4 Work draft complete e36a378d (2026-10-04) — private acknowledged choose/save milestones, five separate Work Operations and two deliberate portal actions. An existing itemless aggregate Definition supplies the exact title/maximum; Preview gates native delivery atomically without fabricating Items, Attempts or a published counterpart. Explicit fresh-read preparation recovers READY Save after reconnect and proven zero-dispatch Save refusals; uncertain effects remain unresolved and unreplayable. Review repaired ordinary MCP tuple validation, stale failed-inspection custody versions and stranded zero-dispatch continuations. Both final axes have zero unresolved findings and consider prior fixes satisfactory. Plain validation passed all 42 affected static / 10 coverage tasks: API 1,979, DB 1,521 and teacher 647 actually ran; seven other coverage lanes were cached. Characterization passed 29/514. The normal source hook passed with coverage cached; API and portal production builds passed. Two additive folders remain UNAPPLIED, latest 20261004020133_client_role_acl; existing folders are unchanged, and identity/governance/sync generators were actual byte no-ops. Review: tmp/agents/review-59aec246/findings-d4-work-draft.md; proof: tmp/agents/teaching-continuation/d4-work-draft-validation.md. Neither acknowledgement proves copied-content or saved-grading parity. Work publication/files, iTest Push and deployed/input acceptance remain subsequent work. Complete external prior-release absence lacks a proved class inventory/per-class reader. Later source review supports a bounded exact retained-ID publication acknowledgement using the actual reply’s workId/taskId, without listing adoption or claiming global external absence; observed prior releases and local blockers still refuse.

  • D4 Files native preparation complete b64a03bf (2026-10-04) — local entitled Content/artifact choices and deliberate bounded byte/hash preparation, independent of an external Binding or Connection. Initial single-object image/audio/video pass-through artifacts only; documents with generic runtime-bundle MIME, bundles/members and reference Content remain unavailable. Exact native placement/artifact selection, repeated authority/source proof, measured size/SHA and explicitly derived export filename precede any provider upload. Actual institutional and personal media producers are supported; review repaired the genuine personal-upload omission. Both final review axes have zero unresolved findings and find prior fixes satisfactory. Plain validation passed affected static checks and all10 coverage lanes (7cached); API2005, DB1521 and teacher662 actually ran, with infrastructure28/115 and characterization29/514. The normal source hook passed42 static and10 coverage tasks, all cached, plus actual root/infra/characterization checks. API/portal production builds passed. No schema/registry/migration/dependency changed. Review: tmp/agents/review-59aec246/findings-d4-files-preparation.md; proof: tmp/agents/teaching-continuation/d4-files-preparation-validation.md. Provider upload/attachment stays subsequent while exact Resources navigation evidence is unresolved.

  • D4 remaining-action audit (2026-10-04) — Survey publication was omitted from the earlier remaining-work summaries: D4a saves and verifies a draft, while the source’s startActive is a separate effect. An initial exact retained-ID Start with reviewed relative/manual duration is independently implementable; absolute-deadline duration adjustment must remain another effect. Survey Start is accepted at ced83fd8 after Files acceptance: five separate Operations, one marked known-ID Start acknowledgement and later deliberate lifecycle observation. Current latest verified origin CAS, manual/relative <=29-day duration and persistent Start blockers are explicit; no native gate/status/window/Pull/question-map write is introduced. Survey reissue returns no new ID; a copy acknowledgement is weaker than a reusable creation receipt. Work publication’s stronger external-absence guarantee still lacks complete class-release proof; a bounded retained-library reply ACK is independently implementable. iTest source proves fresh private paper creation with an exact returned ppId on an existing published template; node fills/publication are separate effects. Template/class-test creation replies lack exact IDs and require an explicitly weaker acknowledgement contract or stronger evidence.

  • D4 Survey Start complete ced83fd8 (2026-10-04) — latest verified draft origin is captured independently of original creation, with current native/export/binding/custody CAS. One marked GET records a known-ID request acknowledgement; later deliberate metadata observation reports actual start and a computed scheduled deadline separately. No native gate/status/window/Pull/question-map mutation is required. Unknown dispatch never replays; unchanged unused previews and proven zero-dispatch refusals require explicit preparation before a separate later Start. Failed preparation stays nonexecutable. Review fixed lost positive ACKs after cookie processing/merge, public/private plan-hash mismatch, unresolved reconciliation CAS and false uncertainty after durable ACK recovery. Both frozen axes have zero unresolved findings and find prior fixes satisfactory. Plain validation passed all affected static checks and10 coverage tasks (6cached): actual API2047/DB1522/teacher680, infrastructure28/115 and characterization29/514. The normal source hook passed42 static and10 coverage tasks, all cached, plus actual root/infra/characterization checks. API and portal builds passed; focused HTTP/MCP14/1146 and combined DOM112/539 passed. Two additive UNAPPLIED folders: 20261004034238_platform_bridge_survey_start, then 20261004034437_client_role_acl. Committed folders are untouched; identity/sync/governance builders are byte no-ops. No dependency, provider/private call, import or real migration apply. Review: tmp/agents/review-59aec246/findings-d4-survey-start.md; proof: tmp/agents/teaching-continuation/d4-survey-start-validation.md. Work publication, provider Files/iTest, reissue and real deployment/corpus acceptance remain subsequent work.

  • D4 retained Work publication complete 45585680 (2026-10-04). The settled bounded profile uses original Bridge choose/save acknowledgement provenance and a new current supported published native aggregate with delivery disabled. One fixed whole-class AV request records the exact three-ID acknowledgement; it does not automatically attach Pull or observe settings. The preview retains the source-page absolute start and an explicit Gregorian Beijing deadline; complete external prior-release absence remains unproved. Reconcile records independent partial ACK-based observations only, including after deliberate D3 attachment/native edits under live identity/scope. Proven zero-dispatch or unused stale previews need a new request key and full preview/review; uncertain publication never retries or adopts IDs. Four concrete setup/recovery bugs were repaired; both independent review axes report zero unresolved findings and satisfactory prior fixes. Plain validation passed all42 affected static checks and all10 coverage tasks (6cached), with actual API2090, DB1523 and teacher701 tests; infrastructure28/115 and characterization29/514 passed. API/portal builds and the normal source hook passed. Two additive UNAPPLIED folders are 20261004044605_platform_bridge_work_publication and ACL-last 20261004044804_platform_bridge_work_publication_client_role_acl; committed folders remain unchanged and actual identity/sync/governance generators were byte-noops. Review: tmp/agents/review-59aec246/findings-d4-work-publication.md; proof: tmp/agents/teaching-continuation/d4-work-publication-validation.md.

  • D4b standalone iTest template inspection complete a141c8eb (2026-10-04). One explicit read scans the three published catalogues to advertised totals under current Offering teaching reach and owned connected iTest/yxnu custody CAS. Exact lexical IDs, zero maxima, consistent cross-tab provenance and complete local search/paging are preserved; no class Binding, native gate or provider effect is required. Two practical bugs repaired: reconnectRequired now refuses before provider reads, and language changes during inspection recover pending/current local metadata. Both final review axes have zero unresolved findings and satisfactory prior fixes. Plain validation passed42 static tasks (15cached) and10 coverage tasks (7cached): fresh API2117, teacher713 and domain736 tests; unchanged DB1523 was cached. Infrastructure28/115, characterization29/514, API/portal builds and normal source hook passed. No schema/migration/dependency delta. Review: tmp/agents/review-59aec246/findings-d4b-itest-templates.md; proof: tmp/agents/teaching-continuation/d4b-itest-templates-validation.md. Fresh private paper creation is subsequent work. Authenticated co-pilot inspection on 2026-10-04 resolved the required filing-form initializer grammar and its exact new-paper form scope; no create or publication was performed. No title/list receipt adoption substitutes for a creation ACK. Provider Files navigation, Survey reissue and real deployment/ corpus acceptance remain subsequent work; D4/D4b are explicitly partial.

  • D4b own-paper/class-test inventory inspection complete b4c56e89 (2026-10-04). One deliberate read returns both complete supported catalogues under initial/final active Offering teaching reach and owned connected iTest/yxnu custody CAS. Actual authenticated capture proves nine papers and eight tests on pages of five and three despite requested100; source tests retain the final page. Distinct lexical IDs, nullable metadata, literal scores, historical/zero/inconsistent metadata, safe hashes and complete local search/page50 remain observational; no Binding/native gate/ledger/effect or identity/equivalence/assignment/CAS claim is added. Failed reads preserve sealed custody and original attributed UI evidence, recover current local CAS and never retry the provider. Both final review axes have zero unresolved findings and satisfactory prior fixes. Plain validation passed42 static tasks (9cached), all10 coverage tasks (7cached), fresh API2194/teacher753/domain746 tests, infrastructure28/115 and characterization29/514. API/portal builds and normal source hook passed. No dependency/schema/migration change. Review: tmp/agents/review-59aec246/findings-d4b-class-test-sources.md; proof: tmp/agents/teaching-continuation/d4b-class-test-sources-validation.md. Authenticated new-paper filing grammar is now proved, but creation/filling/publication and class-test creation remain subsequent D4b work. Resources co-pilot capture proves the exact teacher/Resources paths and actual context/footer/row shape; it does not prove every entry redirect or authorize upload/attachment. D4/D4b and real deployment/corpus acceptance remain partial. Temporary capture credentials were deleted; private raw responses are scratch only.

  • D4b fresh empty private paper creation complete f3aadb43 (2026-10-04). The actual source parser/transport, native gate/private ledger, five Operations and teacher review/recovery UI are implemented. First explicit Preview discovers templates without intent/gate; selected Preview reserves native external delivery atomically. One marked blank-ID private POST can retain only its exact returned ppId ACK; no fill/publication/ assignment or title adoption. Unknown reconciliation is local only, and logical native-target blockers survive completed/uncertain history and erasure. The proper inert JavaScript AST parser is explicitly declared at verifiedlatest7.29.9; no existing dependency was bumped. Practical strict-summary, observation feedback, unmatched-maximum, lock-order, inert-AST and exact-empty-object findings are repaired. Both final review axes have zero unresolved findings and satisfactory prior fixes. Source/adjacent41/2633, native4/28, ledger12/93, DB10/74, actual HTTP/official MCP32/2743 and final Mantine DOM24/127 passed. Plain validate passed all42 static and10 coverage tasks fresh: API2249, DB1524, teacher778 and domain753 tests; required coverage passed. The normal source hook passed with42static/10coverage cached from that unchanged tree. Only two new additive folders092700/092905 were appended; all190 older files remain unchanged. All migrations remain unapplied to deployment. Review: tmp/agents/review-59aec246/findings-d4b-itest-paper.md; proof: tmp/agents/teaching-continuation/d4b-itest-paper-validation.md. Paper filling/publication, class-test creation and real provider acceptance remain subsequent. Further authenticated co-pilot capture proves browser mooc1 entry and intermediate teacher redirect to the exact primary teacher page, whose hidden identities agree with Resources. This closes that captured chain’s evidence gap. The Resources preparation below now handles the browser/teaching-CLI entry difference and explicit mooc1 custody scope. Sanitized context/path evidence is retained in scratch; temporary credentials were deleted. Course-navigation preparation is the next bounded Files prerequisite, using explicit mooc1 scope and existing custody without new schema. Cloud-drive co-pilot capture returned200 on cldisk with query/header credentials, distinct from released cookie-only Pan preparation; actual Upload-dialog protocol is being gathered with the user. No upload/attachment occurred.

  • D4 Resources navigation session preparation complete e4ce4264 (2026-10-04). One strict Connection-write Operation and teacher panel perform the captured five-read/ two-manual-redirect profile with fresh explicit host-only mooc1 scope and independent primary custody. Reserve/finalize repeat live teaching reach, exact Binding version and physical context, and existing Connection CAS; atomic success advances generation/version once while preserving primary verification metadata and unrelated scopes. Failure/abort/ late CAS saves no partial rotation. Dated output confirms navigation only. Secrets clear before authentication/dispatch and on disposal; stale dispatched replies report unconfirmed, and sibling provider commands visibly disable while preparation runs. The lexical picker, expired-session recovery and raw empty-Domain cookie guard are repaired. Both final reviews have zero unresolved findings and satisfactory prior fixes. Source/adjacent34/1408, native8/68, actual HTTP/official MCP35/2230, final DOM19/166, parent/Survey64/400 and adjacent107/715 passed. Root production parsers also accept the original teacher/Resources captures with agreeing IDs. Plain validate passed42 static tasks (9cached) and10 coverage tasks (7cached): fresh API2297, teacher798 and domain756 tests, required coverage passed. Normal source hook passed, including cached coverage from that unchanged gate. Infrastructure28/115 and characterization29/514 passed. No schema/migration/dependency/store/deployment changes. Review: tmp/agents/review-59aec246/findings-d4-resources-navigation.md; proof: tmp/agents/teaching-continuation/d4-resources-navigation-validation.md. Live end-to-end navigation, deployed Vault and physical competing-backend acceptance remain separate. Browser-Pan certification/Upload-dialog evidence and iTest empty-slot/candidate grammar are being gathered with the user; no upload, attachment, fill or publication occurred.

  • D4 root Resources destination inspection complete 20b41c36 (2026-10-04). Existing captured root16/page1/total1 and maintained row contracts support a useful explicit immediate-folder listing independently of browser-Pan upload. The strict bridge.read Operation uses current prepared navigation and exact Binding/Connection CAS; normal rotation preserves generation. Safe dated root0/folder IDs/names/hash results are attributed to the original context, with local search/paging and no additional mount read. Empty/multi-page/nested profiles remain unsupported; no folder write/readiness claim. Both final independent reviews have zero unresolved findings and satisfactory prior fixes. Plain validation passed42 static tasks (9cached) and10 coverage tasks (7cached), including fresh API2345 and teacher812 tests; infrastructure28/115 and characterization29/514 passed. Focused source51/1513, native11/115, HTTP/official MCP42/2736, domain760/3516 with required coverage, portal13/150 plus combined78/562 and adjacent121/791 passed. API/portal builds and the normal source hook passed. No schema/migration/dependency/store/deployment change or live provider effect. Review: tmp/agents/review-59aec246/findings-d4-files-resources-destinations.md; proof: tmp/agents/teaching-continuation/d4-files-resources-destinations-validation.md. Live compatibility, deployed custody and competing-backend acceptance remain separate; Files upload/attachment and the pending browser-Pan/iTest evidence remain subsequent work.

  • D4 native media → Pan root upload complete 9650c9d9 (2026-10-04). The maintained cookie-based no-hands uploader is sufficient for this profile; optional cldisk browser variants do not impose another credential/capture prerequisite. The user’s supplied certification/dialog GETs expose the inline browser uploader. A separately authorized live dummy test created one debug folder and uploaded one 13-byte TXT through yxnu’s existing client, with no retry, redirect replay or course attachment. Its ACK proves actual numeric 19-digit resid, opaque objectId/name and size: 13, no filesize. Root accepted four bounded source/core/Operations/portal interfaces for explicit Preview and later one marked upload, exact native/destination/current custody proof, original generation, erasure-retained workflow blockers and local-only unresolved reconciliation. Attachment is a subsequent action. Focused source/native/HTTP/MCP/portal proofs pass; both final reviews have zero unresolved findings and satisfactory previous fixes. Plain workspace validation and the normal source hook passed: fresh API 2402 tests, database 1525 and portal 832; required coverage passed. Source-hook coverage reused all 10 task caches. Two additive migrations remain unapplied; live deployed media/custody and course attachment acceptance remain open. Review: tmp/agents/review-59aec246/findings-d4-files-upload.md; proof/settlement: tmp/agents/teaching-continuation/d4-files-upload-validation.md and tmp/agents/teaching-continuation/d4-files-upload-settlement.md.

  • D4 retained Pan upload → course Resources attachment complete 6551de43 (2026-10-05). Reuse the maintained single-entry addYunPan protocol with separate Preview/Attach, exact completed upload origin and original target/Connection generation. No new upload/download/credential scheme or automatic readback. Documented collisions decline the dispatched request and allow a deliberate new Preview after manual resolution; uncertain outcomes remain blocked. Literal root0 requires validated navigation context, without a universal directory inventory. Plain workspace validation and the normal source hook passed: API2,425, DB1,526 and portal837 tests, all required coverage; focused source, native, schema/upgrade/drift, HTTP/MCP and UI checks passed. Coordinator inspection found no unresolved actionable issue; prior fixes remain satisfactory. Migrations remain additive and unapplied, with all198 prior migration files unchanged. No new live effect occurred. Review: tmp/agents/review-59aec246/findings-d4-files-attachment.md; settlement and proof: tmp/agents/teaching-continuation/d4-files-attachment-{settlement,validation}.md.

  • D4 isolated Pan session preparation complete ee81c251 (2026-10-04). One explicit fixed token probe uses fresh host-only Pan paste with current Offering teaching reach and owned already-connected Xuexitong/Chaoxing custody CAS before and after I/O. Only Pan scope is replaced; primary/Survey scopes and account verification metadata remain intact. Safe output is actual saved Connection metadata, probe time and probeOnly, with no token/UID, identity/equality or upload-readiness claim. No Binding/native/ledger/schema/ migration/dependency change. Two practical UI findings repaired: busy parent Pull/Survey controls now visibly disable, and rejected Pan paste offers fresh-paste recovery rather than primary reconnect. Both final review axes have zero unresolved findings and satisfactory prior fixes. The initial gate exposed an existing token-list fixture’s clock-tie assumption; real native evidence confirmed it and a typed distinct-time fixture repair retains exact ordering assertions, without changing production. Plain rerun passed all affected statics and10 coverage tasks (9cached), with fresh API2159 tests; portal730/domain738 passed in the first run and were cached on rerun. Infrastructure28/115, characterization29/514, API/portal builds and normal source hook passed. Review: tmp/agents/review-59aec246/findings-d4-pan-session.md; proof: tmp/agents/teaching-continuation/d4-pan-session-validation.md. Resources navigation is implemented in the separate preparation above; provider upload/attachment remains future work.

  • C4 Presenter reload repair complete 8848691f (2026-10-04). The existing Audience now reconnects after offline Presenter reload using a scalar tab-local hint, strict direct opener/window/channel/path checks and current local scope/preparation/asset verification. Repeated ready replies preserve media and blocked-Play recovery. Offering/Meeting/identity/ Forget cleanup and StrictMode replay are covered; BFCache departure clears the old session, and Back requires explicit Open from current validated rendering. Explicit Open shares the projection guard, so cancelled/moved Meetings and inactive sessions cannot bypass it. Fresh Chromium production-module proof passed2 tests/32 assertions, including two offline Presenter reloads, Audience reload, fresh Blob URLs, the original two windows and cleanup/ missing-byte controls. Both final reviews have zero unresolved findings and satisfactory prior fixes. Plain validation passed42 static tasks (39cached), all10 coverage tasks (9cached) with fresh teacher736 tests, infrastructure28/115 and characterization29/514; teacher statics/build and normal source hook passed. No classroom facts, schema/API/sync/ migration/dependency changes. This does not establish authenticated deployed-sync or physical BFCache acceptance. Review: tmp/agents/review-59aec246/findings-c4-presenter-reload.md; proof: tmp/agents/teaching-continuation/c4-presenter-reload-validation.md.

  • C3 original media preparation complete locally — all 39 distinct oral references /44 occurrences have exact, present manifest-backed originals. Ten FLVs are converted to MP4/H264/yuv420p/AAC with full decode, stream-timeline and frame-count controls passed; 29 MP3 originals remain unchanged. The upload manifest covers all 39 assets with exact provenance, MIME, bytes and SHA256 (69,084,244 delivered bytes total). The FLV audio-tail metadata discrepancy was inspected and preserved rather than trimmed. Evidence: tmp/agents/teaching-continuation/c3-original-assets-audit.md and c3-media/ there. Content uploads, Offering bindings, actual corpus imports and browser acceptance remain outstanding; no Content ID was invented and no migration or teaching input was applied or edited.

  • Open from F3 (candidates for a later small slice, none blocking): idempotency for retried commands, the agent-facing catalogue reference document, scope-filtered tools/list.

  • Open, documentation only: the code cites “ADR-0025” for the authoritative-registry / per-client-projection doctrine throughout (sync-registry.ts, offline-data/src/sync-registry.ts), but docs/adr/0025 is the QTI residual-coverage ADR — the doctrine is recorded only in code comments and docs/design/*. Either point those citations at the right record or write the ADR they mean; nothing depends on it today.

  • Migrations (F1 onward) are generated, drift-checked and committed but never applied; applying is the maintainer’s step. C1 appended three folders (classroom_records, a re-emitted identity_linking, the ACL floor) and its review fix two more (the cadence-window ALTER TABLE and the floor re-emitted last). The review-fix slice 55b909b1 appended three: meeting_learning_period_ownership (the column, its FK, the index — and, incidentally, a ritual_cadence_window_ck DROP/ADD catch-up, because C1’s fix landed as a CUSTOM migration whose snapshot never recorded it, so drizzle-kit re-emits the same constraint; it re-applies cleanly), a re-emitted sync_artifact (the projected column) and the ACL floor last, as always. C2a appended four more: score_scale_rls_policies (the SELECT policy the new teacher-rail read needs — the only one that installs a policy, and the only one listed in DRIZZLE_SCHEMA_MIGRATION_NAMES), a re-emitted registry_governance (the seven tables’ grants + score_scale SELECT), a re-emitted sync_artifact, and the ACL floor last. identity_linking was deliberately NOT re-emitted: C1’s erasure declarations already covered these tables and C2a adds no person column. C2b and C2c appended NO migration (a UI slice and an app-side gate/ladder change; the four rota tables were already registered in C2a), and the follow-up fixes 92ef9a73 appended none either (every one of them is app-side). C3 appends four unapplied folders: 20261002064452_decks_and_image_content, 20261002064729_registry_governance, 20261002065148_sync_artifact, and the newest ACL floor last, 20261002065319_client_role_acl. No identity-linking re-emission is owed: C3 adds no Person-linked column. Previously committed migration folders remain unchanged.

  • Input preparation, before the rota.csv import runs: the maintainer’s real file carries FOUR nominal 25/09 turns that have no generated Meeting (a holiday in the source calendar). The importer refuses an unknown date rather than guessing — correctly — so those dates must be reconciled (a re-arranged Meeting, or an intentional skip) before the one-shot import is run after the migrations are applied.