Skip to content

Direct attainment over competency alignments

Implementation design for build-plan P1 and proposed ADR-0068, 2026-10-03. The maintainer approved direct grade-based projection with the indirect components pending. Real-semester weights and the unresolved unit/iTest listening split are parked until they block further independent work. These are configuration gaps, not platform defaults.

A syllabus is an organization Competency Framework, with an explicitly selected edition and its node revisions. A course objective remains a durable Competency Node. No second objective model or stored person mastery is introduced.

An alignment’s nullable target-mark share records points allocated to that outcome out of the target’s declared maximum. It is separate from association strength. Null means unauthored; zero is an explicit allocation. The selected edition, node, target, effective window and allocation must agree. Ambiguous or merge-collapsed duplicate alignments are configuration issues. Shares use six decimal places within the canonical mark range; excess precision refuses rather than silently rounding. Partial authored allocations may be saved, but their positive sum must cover the target maximum before projection can be complete.

An Offering configuration captures the exact edition, selected outcomes, cohort selection time and bounded weighted component recipe. Components reference canonical Assessment Definitions or Learning Units; a unit recipe composes explicit assessment references with relative weights. Required missing evidence blocks a complete result. The same leaf cannot contribute twice through a composite and an independently selected child. Arbitrary formulas and inferred assessment/category weights are outside the interface.

The configuration also captures every selected Assessment Definition’s exact version and maximum, and every selected Unit’s change clock. Save checks these against the fresh complete authored snapshot under locks. Projection reports source drift rather than silently applying an old configuration to changed references; correction requires deliberate reload and save. These are structural references, never a persisted learner matrix or historical grade snapshot.

Framework/edition/node authoring uses existing organization teaching authority; Offering-only teachers can select an existing edition and configure their own Offering targets. Published editions remain immutable. Every write checks live reach and an explicit version/change-clock precondition. Configuration and projection are server-authorized Operations, with teacher-only read responses.

The Offering’s framework picker is paged; exact requested and configured editions remain resolvable independently of that page. Copying an edition keeps its revision subject/education-level links and edition associations. A complete fresh read can establish that a managed alignment has been deleted and permit deliberate replacement under the configuration precondition. Failed or partial reads cannot establish that absence or authorize a replacement.

The domain projection is pure. API resolution uses the existing server-gradebook seam within one repeatable-read snapshot, together with configuration, edition, alignments and distinct eligible non-erased cohort members. Observation marks retain their established projection and approved band midpoints. Bridge marks retain canonical origin; no synthetic native Attempts or Scores are generated.

The cohort/alignment selection time is not a historical grade snapshot. Existing canonical grades can be overwritten and cannot reconstruct earlier values. Output identifies the current evidence capture time explicitly.

Each leaf normalizes its numeric mark by its actual positive maximum. Authored relative weights compose required leaves without dropping and renormalizing missing work. A graded zero is valid; absent, partial, retracted, exempt or unresolvable evidence is an issue rather than zero. Extra-credit handling is an explicit required choice: allow, cap at the maximum, or reject. There is no preselected policy. Precision is retained until presentation.

A whole-assessment score cannot establish separate performance for multiple outcomes. Multiple outcome allocations require corresponding subcomponent/item marks; unavailable evidence stays unresolved. A whole-paper ratio is never silently repeated across a 56/34/10 vector. Aggregate output identifies complete and incomplete cohort counts instead of averaging away missing learners.

The initial P1a engine supports whole-score targets allocated to a single outcome. P1b supplies genuine item/subcomponent evidence for multiple outcomes. The current native Gradebook Entry does not identify its originating Attempt or Score, so selecting the latest Attempt would fabricate provenance. Bridge’s current canonical result links can support a narrower source; both profiles need explicit identity/completeness contracts before use.

Review also reproduced an inherited native grading defect: a client could write human-grading markers directly to its item row, and later teacher evaluation could trust that mark. An invoker database trigger now reserves those keys and protects human-scored response, score and source-context changes from client roles; ordinary learner writes and privileged teacher grading remain supported. Existing records are preserved. A legacy marker alone still does not establish the exact trusted item evidence needed by P1b.

The existing running-grade calculation remains unchanged: it deliberately renormalizes over available graded categories. Extracting that pure function into the domain package does not change the portal’s current-grade semantics. The attainment completeness gate is separate.

P1b adds optional composition.itemAllocations to the existing configuration JSON. Each required leaf pins its component, Definition version and native structure fingerprint, full unique reference/immutable Item Version inventory and independently authored maxima. Each positive-maximum whole item belongs to one selected outcome; zero-maximum inventory entries require mark zero and no outcome. Existing exact-edition target shares remain authoritative.

For direct targets, item maxima assigned to each outcome must conserve its share exactly. For Units, lift those maxima through the authored normalized leaf recipe and declared Unit maximum. Sum exact rational contributions per outcome before testing six-place representability. Nonrepresentable shares remain unavailable; do not round a final item, distribute residuals or repeat the whole-paper ratio. Bound inventories to 2,000 items per leaf and total composition and resolved evidence to 500,000 item cells; refuse before excessive materialization rather than truncate.

Resolution must anchor the selected current canonical cell to an exact source. Native grading records its actual returned Score ID/Attempt pointer and an immutable bounded snapshot from the same authoritative scoring pass inside the unit transaction. Human evidence requires current authorized supplied marks or an exact prior trusted snapshot matching the current session/version/ revision; a legacy marker cannot suffice. Bridge evidence must match the exact counterpart/result, reverse canonical link, current structure/mapping and full native inventory. Never select a latest Score/result or fabricate an Attempt. Unsupported selection, repeated versions, scoring transforms, missing authored maxima and aggregate-only origins remain explicit. In particular ordinary manual Item versions without an independently authored maximum keep aggregate grading but cannot yet establish complete item attainment.

Native consistency uses the closed four-place half-unit persistence bound (0.00005) for both the actual floating aggregate and exact supported item sum. Bridge consistency uses the source parser bound plus independent storage rounding (0.001 + (n + 1) * 0.00005). Signed residuals remain visible; neither policy changes item evidence. Maxima and allocations conserve exactly at six places. allow retains trusted extra credit; cap/reject with above-maximum items needing redistribution reports unsupported item attainment while the independent P1a grade remains inspectable.

For native score arithmetic only, canonical micro-point recovery may recognize ordinary floating representation noise within the closed bound 2 * Number.EPSILON * max(1, abs(value)). Keep original evidence and residuals; genuine seventh-decimal marks remain unsupported. The exact item-sum comparison uses integer/rational arithmetic at the inclusive 50-micro-point boundary. The actual floating aggregate uses the same representation bound when comparing its persisted mark, with no discretionary count-scaled epsilon. Authored maxima and shares never use this recovery allowance.

Safe structural inventory supports configuration authoring even without cohort grades. API authorization/provenance joins stay in the existing repeatable-read projection; pure math receives closed DTOs without responses, keys, provider identities or private raw metadata. Success removes only the unavailable-submark gate, preserving source/configuration/Observation/grade/cohort completeness. No retrospective provenance backfill or institutional policy is inferred.

The typed attainment.getItemInventory Operation reads explicitly selected Definition IDs/expected versions independently of the configuration draft. Inventory reads cannot reset allocations. A shared pure helper derives exact direct/Unit share recommendations from that structural draft; a teacher may deliberately adopt those totals into the existing alignment-share inputs.

The supplied legacy II workbook and current III syllabus have different outcome wording and allocations. Templates do not establish current calculation policy. The III syllabus’s 70% direct / 10% student / 10% teacher / 10% peer metric also needs inputs absent from the gradebook. The approved first result is direct grade-based attainment, with those indirect components explicitly pending. No institutional full metric, threshold, real-semester mapping or source import is invented.

P2 consumes the same authorized projection and issues when filling templates; it cannot relabel an incomplete or direct-only result as complete institutional attainment. P3 Deck PDF generation is independent of P1 and remains a separate Deliverable path. Migrations are additive and remain unapplied during development.