Skip to content

Consolidate the Oral I teaching Groups

ADR 0073 defines the shared Offering. The first transition uses the existing 26-3 Offering as its destination because it already contains the complete set of eleven Oral I Units. The four source classes become Groups with their original OneRoster identifiers. The other Offering envelopes retain their earlier editions and are archived.

The command reads the maintained YXNU rosters and inspects the installed database in a repeatable-read, read-only transaction. Set DATABASE_URL to the intended instance. Local development configuration points at dev101.

Terminal window
bun --env-file=.env.development.local tools/scripts/consolidate-yxnu-oral.ts \
--plan tmp/agents/oral-i-group-preview/transition.private.json

Supply --source-id <uuid> when several OneRoster sources have the Oral I class identifiers. The default target is oral-english-1-26-3. The output contains the proposed Group identifiers, a snapshot fingerprint, dependency counts and any reconciliation blockers. The adjacent transition.private.snapshot.private.json retains the original database rows for review and recovery. Both contain private student information and stay under tmp/agents/.

The preview can inspect an instance before its additive schema migrations have been installed. Apply the new migrations through the normal maintainer workflow, then generate a fresh preview. Inspect the Group mapping, the historical dates, the current 26 / 26 / 28 / 22 teaching audiences and the 22 mixed observation profiles before applying. Kaiqi and Flora reuse their existing Person identities, with their supplied 25-1 administrative class and official second-year standing. Their Oral I Group membership starts at the first confirmed September Meeting. The classroom-inactive 26-1 learner retains official enrollment and historical Group membership ending on October 9.

The maintainer runs this command after the schema and application changes are installed. The apply transaction locks the inventoried tables, rereads the source rows and rejects a changed fingerprint or an edited reconciliation map. A failure rolls back the transaction. Existing assessment attempts, incompatible definitions, unsupported populated subsystems and competing home-Meeting evidence produce an explicit reconciliation error during preview.

Terminal window
bun --env-file=.env.development.local tools/scripts/consolidate-yxnu-oral.ts \
--plan tmp/agents/oral-i-group-preview/transition.private.json \
--apply \
--setup-receipt tmp/agents/teaching-setup-2026S1/receipt.private.json \
--rebased-receipt tmp/agents/oral-i-group-preview/setup-rebased.private.json

Use the path of the retained import mapping or setup receipt from the actual setup run. The two receipt options are optional together. The rebased receipt maps Offering, Unit, assessment, grade-category, score-scale and ritual aliases onto their canonical identities. For an import mapping, its Deck-source Offering aliases are rebased alongside the nested setup receipt. Meeting, Pattern, Deck, task and external acknowledgement identities are retained. Keep the original receipt and use the rebased one for later grouped setup refreshes. The applied receipt also records each source class’s Group, original Offering and retained Meeting and Pattern identifiers.

Repeated apply returns the recorded receipt. It creates each Group, historical membership and alternate-Meeting arrangement once. A completed transition uses the ordinary grouped OneRoster import for subsequent roster changes.

Open the shared Oral I Offering and select each Group’s Meeting. A September register should include its expected students even with attendance left blank. Open the mixed November 20 Meeting and verify the 66 existing P/L/F scores and the original observation dates, authors and rubric snapshots. The saved optional I states describe the original entry records. Published manifests, source digests, slide bodies, cues and media bytes retain their issued editions.

The November 25–27 Meetings are cancelled for Sports Week. Homework can still release on Friday. Harriet stays in her usual 26-2 teaching Group and attends the selected mixed Fridays from October 30 through December 18, with November 27 excluded. Arranging these Meetings creates an expectation. Presence requires separate attendance evidence. Her week-18 final remains with 26-2.

If source assessments had different release times or deadlines, the transition retains those as Group overrides on the shared definition. Existing Xuexitong work and recipient identifiers remain in their retained provider records and publication receipts. A native external binding that needs additional mapping appears as a preview blocker before it can be affected.

In an assessment’s date controls, set the shared release and deadline for the Offering. Open Group schedules, choose a teaching Group and clear Use the shared release time or Use the shared deadline to enter an exception. The two inheritance choices are independent. A Group with an earlier release can continue to inherit every later correction to the shared deadline. An empty explicit override removes that date limit for that Group. Selecting both shared choices removes the exception.

The Operations are assessmentGroupSchedules.set and assessmentGroupSchedules.remove. They require teaching authority over the whole Offering and an expectedUpdatedAtUs matching the last read override, or null for a new override. An override names the assessment and a teaching Group in the same Offering. Shared schedule edits validate the effective dates of its Group exceptions. A one-Meeting attendance arrangement uses the learner’s usual Group for homework scheduling.

For native assessments, the effective release controls discovery, direct opening and fresh Attempt admission on both native write paths. The learner’s local store resolves the same schedule while offline. Attempts already started remain available for resumption, and the deadline permits the existing late-work flow. Published offline-complete Item content can already be cached on a member’s device. Scheduled release governs presentation and starting work. Secure server-anchored delivery continues to use its existing per-attempt content window.

External homework retains its own delivery identifiers and recipient selections. Native schedule edits apply to native assessment delivery. Scheduling or changing an external platform’s publication uses that platform’s existing bridge workflow.