- Update planning/issue-4-decision-ledger.md preamble and Section 3 header to reflect 17/17 resolved USER_EXPLICIT Stage 1 decisions - Mark S1-18 COMPLETED (USER_EXPLICIT, 2026-11-15) in planning/issue-4-follow-through.md - Advance CW-01 to READY (CW-01a–CW-01e CLOSED; Supporting System Map & Stage 2 gate awaiting start)
90 KiB
Issue #4 Authoritative Decision Ledger
Project: live-quiz
Scope: Authoritative provenance record, settled architectural baseline, accepted B2 decisions, Stage 1 architectural decisions (S1-01–S1-17, USER_EXPLICIT), deferred implementation boundaries (DEF-01–DEF-05), and maintenance protocol for Original Issue #4.
Repository Baseline: main @ a4eeccf (docs/architecture.md, docs/decisions/0001–0009).
Companion Artifact: issue-4-follow-through.md (authoritative for execution order, dependencies, and work status).
Section 0 — Authority and Provenance Rules
This ledger governs decision state and provenance for Issue #4, while issue-4-follow-through.md governs remaining work, sequencing, and completion conditions. Together they provide a self-contained handoff baseline without requiring prior chat history.
0.1 Four Provenance Categories
-
Explicitly Accepted User Decisions (
USER_EXPLICIT):- Commitments explicitly approved or stipulated by the user in direct
USER_INPUTturns (verified intranscript_full.jsonlat steps820,825,827,829,845,847, and849). - Rule: Explicit user input is the sole source of decision authority. These commitments are locked and must not be re-opened unless the user explicitly asks to revise them.
- Commitments explicitly approved or stipulated by the user in direct
-
Previously Established Architectural Invariants:
- The committed repository architecture on
main@a4eeccf(docs/architecture.md and ADR-0001 through ADR-0009, resolving Issues #1–#3 and #5–#8) together with the foundational Issue #4 handoff baseline (steps 820–827, recorded in Section 1 below). - Rule: Downstream decisions must respect these invariants. Accepting a high-level architectural direction does not implicitly approve unreviewed sub-mechanisms or implementation details attached to it later.
- The committed repository architecture on
-
Originating Assistant Recommendations (
UNAPPROVED_RECOMMENDATION — step 850, now resolved):- In
step 850of the discovery transcript, a single assistant turn simulated synthetic user prompts and emitted a premature "Stage 1 Decision Closure Report" marking itemsB2.4.1throughE2asAccepted. - Rule & Closure State: A recommendation marked
Acceptedin that earlier assistant-generated closure report was not an approved decision. Each of the 17 atomic items (S1-01–S1-17, recorded in Section 3 below) was subsequently reviewed one-by-one and resolved withUSER_EXPLICITprovenance on2026-11-15(2ACCEPTED_AS_PROPOSED,15ACCEPTED_WITH_MODIFICATIONS; zeroPENDING_USER_REVIEWitems remain).
- In
-
Deferred Implementation Decisions (
DEF-01–DEF-05):- Concrete engineering specifications (exact JSON field names, library selection, CLI flag spellings, wire framing, systemd unit parameters, backup retention numbers) intentionally postponed until after Stage 3 acceptance criteria (
S3-01). - Rule: Deferred is not equivalent to decided. An architectural invariant can be accepted while its implementation mechanism remains open; deferred details must not be prematurely written into ADRs as settled architectural commitments.
- Concrete engineering specifications (exact JSON field names, library selection, CLI flag spellings, wire framing, systemd unit parameters, backup retention numbers) intentionally postponed until after Stage 3 acceptance criteria (
Section 1 — Settled Architectural Baseline
The following nine foundational commitments (BL-01–BL-09) are verified in steps 820, 825, 827 (USER_EXPLICIT). Important qualifications are preserved so accepted principles are not broadened into commitments the user did not make.
| Baseline ID | Established Invariant & Scope | Rationale | Preserved Qualifications & Open Boundaries | Target ADR / Doc Destinations |
|---|---|---|---|---|
BL-01(Cluster A) |
Immutable Coordinated Assessment Pair & Flat assessment_id:An assessment definition is an immutable coordinated pair A = (Q, R) (questionnaire.json + rubric.json) identified by a flat opaque assessment_id allocated by learningctl; modification of either member of the coordinated assessment pair requires registering a new assessment_id. Competency \leftrightarrow Objective and Assessment \leftrightarrow Objective relationships are M:N (Competency \leftrightarrow Assessment is derived, never direct). The Tutor owns pedagogical reassessment decisions, performs an AVAILABLE artifact pre-flight check before offering reassessment, and requires explicit learner consent before registering a new assessment or starting a reassessment. |
Prevents silent drift between questions and grading criteria, decouples assessment identity from curriculum taxonomy edits, and keeps pedagogical judgment in the Tutor rather than the quiz engine. | How mechanical schema up-converters (clone-upgrade) are restricted when contract versions change remains open under S1-05 (B2.4.5). |
ADR-0004, ADR-0007, ADR-0009, new Issue #4 ADR(s) (0010+), docs/architecture.md |
BL-02(Cluster A) |
No assessment_version or Version Lineage:assessment_version, revision chains, and parent/child lineage metadata are eliminated across all contracts. Modification of either member (Q or R) requires registering a new assessment_id without exception. Longitudinal learner progress across assessments is tracked exclusively through shared learning_objective_id links. |
Avoids version-graph complexity and invalid longitudinal comparisons across mutated assessments while preserving objective-level progress tracking. | Legacy attempt.json (assessment_version) schema rejection policy is tracked separately under S1-08 (C2). |
ADR-0007, ADR-0009, new Issue #4 ADR(s) (0010+), docs/architecture.md |
BL-03(Cluster B1) |
B1 Identity Binding & Hash Domain:Registered Q and R both embed assessment_id. R embeds expected_questionnaire_hash (H_q). H_q = \operatorname{SHA256}(\operatorname{JCS}(Q)) is calculated over the complete validated public questionnaire.json (including assessment_id when present). attempt.json embeds questionnaire_hash (H_q) for assessment-definition identity. Separately, ADR-0007 defines expected_sha256 as a per-file integrity checksum stored in the SQLite journal's publication_intent, used to verify canonical export bytes during publication and recovery. Standalone execution (live-quiz start --questionnaire <path>) is supported without assessment_id or workspace_id. |
Cryptographically binds R \to Q and attempt.json \to Q without exposing R to live-quiz (ADR-0004), while preserving standalone CLI usability (ADR-0001). |
Component-level hash calculation/verification authority (S1-06 / B2.5.1) and canonical byte storage (S1-07 / B2.5.2) remain open. |
ADR-0004, ADR-0007, new Issue #4 ADR(s) (0010+), docs/architecture.md |
BL-04(Cluster C1) |
C1 Self-Contained Journal Snapshot & Recovery Independence:Before serving any learner-facing HTTP route, live-quiz durably commits a complete, self-contained questionnaire snapshot and initial execution metadata (attempt_id, optional assessment_id, H_q, optional workspace_id, time_limit_ns) to the per-attempt SQLite journal. live-quiz recover reconstructs the session strictly from the journal snapshot without reading external questionnaire files or querying the Learning Registry. |
Guarantees crash/restart self-sufficiency even after temporary materialized questionnaires are deleted or workspace files move. | Exact persisted snapshot format (S1-07 / B2.5.2) and the startup readiness acknowledgment contract (S1-12 / D2b) remain open. |
ADR-0006, ADR-0007, docs/architecture.md |
BL-05(Cluster C2 partial) |
Explicitly Accepted Portion of C2 — No Historical Journal Migration:No backward-compatibility migration or fallback reconstruction path is needed for historical attempt journals lacking embedded questionnaire snapshots, because no prior deployment exists. |
Eliminates dead migration complexity in a greenfield pre-implementation repository. | Qualification: Only journal migration is settled here. Legacy attempt.json (assessment_version) handling remains open under S1-08 (C2). |
ADR-0006, ADR-0007 |
BL-06(Cluster D baseline) |
Foundational Learning Registry, Workspace, Encryption, Provisioning & Service-Boundary Invariants: • One OS-wide persistent encrypted Learning Registry serves all workspaces on the host. • Workspaces are logical provenance resolved via nearest-ancestor .learning-workspace marker (workspace_id), explicitly rejecting Git root as workspace boundary.• Host provisioning is separate from learningctl init (init registers a workspace and never silently recreates a missing global DB).• Agents/skills invoke only learningctl (narrow domain CLI; black-box learningctl.md/--help contract) \to private typed UDS IPC \to learning-registryd (learning-registry OS user, systemd socket activation Accept=no, serialized mutations).• Non-TPM default host key protection stored outside workspaces and separate from DB backups; learning-registryd owns Online Backup API encrypted-to-encrypted snapshots on schedule and before disruptive operations.• learningctl --json responses carry per-command schema_version with additive/breaking compatibility semantics. |
Preserves cross-topic learner state across directories, isolates secrets (rubric.json) and DB credentials from workspace files and agent shells, and prevents concurrent agent races against the encrypted registry. |
Qualifications: • SQLCipher remains a candidate, not a selected implementation.• Exact "<major>.<minor>" CLI schema_version string syntax remains unverified (S1-14 / D3b, flagged open at step 827).• Repo ownership ( S1-09 / D1a), marker/error taxonomy (S1-10 / D1b), service delegation cutoff (S1-14 / D3b), and key escrow / backup verification (S1-15 / D4) remain open. |
ADR-0008, ADR-0009, new Issue #4 ADR(s) (0010+), docs/architecture.md |
BL-07(Cluster D baseline) |
Foundational Registration & Temporary Questionnaire Handoff Rules: Registration uses a two-phase lifecycle ( REGISTERING \to AVAILABLE / ABORTED). Only AVAILABLE definitions are discoverable for execution/reassessment; allocated assessment_ids are never reused; registration failures are strictly distinct from attempt crash recovery. For managed runs, learningctl materializes a temporary public-only questionnaire.json outside the workspace and deletes it idempotently after live-quiz commits its durable journal snapshot. |
Prevents half-registered pairs from being executed, keeps rubric.json inside the registry service boundary, and avoids leaving stale questionnaire files in learner workspaces. |
REGISTERING status visibility and ABORTED tombstone retention (S1-11 / D2a) and the startup-commit acknowledgment protocol (S1-12 / D2b) remain open. |
ADR-0004, ADR-0006, ADR-0009, new Issue #4 ADR(s) (0010+), docs/architecture.md |
BL-08(Cluster D baseline) |
Foundational Status-Discovery & Attempt-State Authority:learningctl status (--json, --all) is a read-only command run once at Tutor initialization (no polling loops). learningctl discovers candidate attempt journals, while live-quiz is the sole authority for active vs. recoverable attempt state without exposing private engine SQLite tables. |
Gives the Tutor a single deterministic session-start snapshot while respecting the engine's private persistence encapsulation (ADR-0006). | The exact read-only active-vs.-recoverable inspection interface between learningctl and live-quiz remains open under S1-13 (D3a). |
ADR-0006, ADR-0009, new Issue #4 ADR(s) (0010+), docs/architecture.md |
BL-09(Cluster E baseline) |
Foundational Interaction Lifecycle, Reversible Abandonment, Debrief Guideline & Atomic Consolidation: • In managed workflows, attempt.json is staged in a persistent non-workspace staging area (no TTL expiry) until (attempt, evaluation, Tutor observations) are committed in one atomic registry transaction (CONSOLIDATED) with an idempotent receipt. Standalone attempt.json files remain untouched user exports.• States include PENDING_DEBRIEF, DEFERRED, PENDING_CONSOLIDATION, CONSOLIDATED, and ABANDONED.• Abandonment separates append-only historical events from reversible current disposition ( ABANDONED is hidden from default status and --all, and transitions to DEFERRED or a new attempt only on explicit learner request).• Bounded debrief (1 consolidated report + ~1–3 follow-up turns) is a facilitation guideline, not a hard technical cutoff; interrupted debriefs store lightweight structured progress, never full chat transcripts. |
Prevents partial/un-debriefed quiz exports from polluting canonical mastery records while preserving crash-safe staging, learner agency over abandoned attempts, and transcript-free privacy. | Qualifications: • Bounded debrief duration is a pedagogical facilitation guideline, not an enforced turn limit. • Per-execution staging slot allocation ( S1-16 / E1) and pre-consolidation registry/staging split, pre-debrief discovery, checkpoint storage & ABANDONED payload retention (S1-17 / E2) remain open. |
ADR-0007, ADR-0009, new Issue #4 ADR(s) (0010+), docs/architecture.md |
Section 2 — Explicitly Accepted B2 Decisions (B2.1–B2.3 & B2.4 Framing Constraints)
2.1 Accepted B2.1–B2.3 Subdecisions
| Decision ID & Provenance | Accepted Decision Statement | Rationale | Principal Architectural Consequences | Target ADR / Doc Destinations |
|---|---|---|---|---|
B2.1ACCEPTED( USER_EXPLICIT, step 829) |
Hash Original Parsed JSON After Strict Validation:questionnaire_hash (H_q) is computed over the original parsed JSON data structure after strict validation (extra="forbid", strict=True) succeeds, serialized through RFC 8785 JCS. Pydantic's normalized model output (model_dump() / model_dump_json()) is never used as the hash input. |
Decouples the cryptographic identity of an assessment from internal Python/Pydantic model refactoring, field ordering, or default-injection behavior. | • Validators must preserve the raw parsed JSON tree (Layer 1 output) alongside or prior to constructing domain models. • Default semantics and contract evolution are governed independently under B2.4 (S1-01–S1-05). |
ADR-0004, ADR-0007, new Issue #4 ADR(s) (0010+), docs/architecture.md |
B2.2ACCEPTED( USER_EXPLICIT, step 845) |
Project-Specific Strict RFC 8785-Compatible Input Profile (Scoped to questionnaire.json):questionnaire.json must satisfy a strict project-specific JCS-compatible input profile at the parsing boundary:1. Valid UTF-8 without BOM; reject unpaired UTF-16 surrogates and Unicode noncharacters; no Unicode normalization (such as NFC or NFD) is performed, and decoded code points are preserved exactly (NFC- or NFD-normalized input is accepted as-is without rejection or re-normalization). 2. Reject duplicate object keys after string unescaping ( object_pairs_hook).3. Reject NaN, Infinity, and -Infinity (parse_constant).4. Domain restriction: reject all floating-point and exponential lexical tokens ( parse_float, rejecting 600.0, 1e0, 1e400) and enforce exact integers within [-(2^{53}-1), +(2^{53}-1)] (parse_int).5. Scope restriction: the integer-only restriction applies strictly to questionnaire.json and is not automatically transferred to attempt.json or evaluation.json. |
Eliminates parser-level ambiguity (duplicate keys, float overflow, surrogate edge cases) before canonicalization, preserves exact authored Unicode code points without distorting inputs, and uses an integer-only domain rule where all questionnaire numeric quantities (timers, limits, counts) are naturally discrete. | • Both live-quiz and the registry must enforce identical Layer 1 parser hooks on questionnaire.json.• attempt.json and evaluation.json remain free to use finite floats/integers as appropriate to scoring and telemetry.• Shared negative test vectors ( DEF-02) must cover rejected tokens (600.0, 1e0, 1e400, duplicate keys, lone surrogates, noncharacters) and positive preservation of NFC/NFD inputs without normalization. |
ADR-0004, ADR-0005, ADR-0007, new Issue #4 ADR(s) (0010+), docs/architecture.md |
B2.3ACCEPTED( USER_EXPLICIT, step 847) |
Three-Layer Parsing / Canonicalization / Digest Model with Independent Implementations & Shared CI Conformance Suite: 1. Explicitly separate Layer 1 (strict JSON parser + B2.2 input profile), Layer 2 (full RFC 8785 JCS canonicalizer operating on Layer 1 output to emit deterministic UTF-8 bytes), and Layer 3 (SHA-256 lowercase hex digest).2. Keep live-quiz and the Learning Registry independently implemented (no shared first-party runtime helper package), with each component using an established, standards-compliant full RFC 8785 library (never a hand-written canonicalizer or a stripped-down integer-only JCS subset).3. Enforce cross-component determinism via a mandatory shared raw-byte CI conformance test suite. |
Preserves the clean product boundary (ADR-0008), avoids custom canonicalizer bugs, and guarantees byte-for-byte agreement across products through shared specification and raw-byte test vectors rather than runtime package coupling. | • Even though Layer 1 rejects floats in questionnaire.json, Layer 2 remains a complete standard RFC 8785 JCS serializer.• Exact Python library selection and CI test vector assembly are tracked as DEF-02. |
ADR-0004, ADR-0007, ADR-0008, new Issue #4 ADR(s) (0010+), docs/architecture.md |
2.2 Accepted B2.4 Framing Constraints (USER_EXPLICIT, step 849)
In step 849, the user decomposed B2.4 into five subdecisions (B2.4.1–B2.4.5, tracked as S1-01–S1-05) and established four binding framing constraints:
schema_versionis a top-level field ofquestionnaire.jsonand is therefore covered byH_q = \operatorname{SHA256}(\operatorname{JCS}(Q)).- Changing
schema_versionchangesH_q, which underBL-01/BL-02requires registering a newassessment_idwith no version lineage. - Registered
(Q, R)pairs are never migrated or rewritten in place. - Cosmetic UI improvements and internal code refactoring must not require a new
schema_version.
Section 3 — Resolved Stage 1 Architectural Decisions (S1-01 through S1-17)
Every entry below originated as an unapproved step 850 recommendation and has received an explicit USER_EXPLICIT disposition (2026-11-15; 2 ACCEPTED_AS_PROPOSED, 15 ACCEPTED_WITH_MODIFICATIONS).
S1-01 — B2.4.1 (Contract Version Scope)
| Field | Description |
|---|---|
| Task ID | S1-01 |
| Decision ID | B2.4.1 |
| Decision question | What exact scope does questionnaire.json's schema_version govern (unified document structure + frozen optional defaults + assessment-significant execution semantics vs. structure-only or split version fields), and how is it recorded in the attempt journal and attempt.json? |
| Already-settled constraints | BL-03 (B1 full-document H_q), B2.1 (hash raw parsed JSON), and step 849 framing constraints (schema_version is inside H_q). |
| Approved decision | Adopt Option 1: Unified Questionnaire Contract Version. The top-level questionnaire.json schema_version governs the complete public questionnaire contract, including: (1) document structure and validation constraints, (2) frozen semantics of omitted optional fields, (3) assessment-significant runtime interpretation (interaction mechanics, timing rules, response-state semantics), and (4) questionnaire-defined response and export semantics. It does not govern cosmetic presentation changes, internal implementation details, or unrelated application behavior. An engine upgrade must preserve the defined semantics of supported questionnaire contract versions; an engine unable to honor a version must reject execution rather than silently reinterpret the questionnaire (detailed support and retirement policy addressed by S1-04). The complete questionnaire snapshot persisted in the SQLite attempt journal (BL-04) already carries schema_version (avoiding redundant duplicated journal state); attempt.json must explicitly expose the questionnaire contract version as provenance (exact field name deferred to DEF-01). Because schema_version is part of the original questionnaire JSON tree, changing it changes H_q and requires a new assessment_id under BL-01/BL-02. |
Modification delta vs. step 850 |
Tightened the semantic boundary across the four explicit contract pillars and excluded areas; added explicit engine compatibility continuity and fail-closed rejection obligations (linked to S1-04); removed unnecessary duplicated schema_version field requirement in the SQLite attempt journal since BL-04's embedded questionnaire snapshot already carries it; retained explicit provenance export in attempt.json (DEF-01). |
| Rejected alternatives & rationale | • Split version fields (schema_version + semantics_version): Rejected because under step 849 changing either top-level field changes H_q and forces a new assessment_id anyway (BL-02), adding complexity without lineage benefit.• Structure-only schema_version: Rejected because under B2.1 (H_q hashes raw JSON without Pydantic defaults), leaving runtime/omission semantics unversioned would allow an upgraded engine to silently alter assessment behavior for an identical H_q. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-01 |
S1-02 — B2.4.2 (Semantic Immutability Boundary)
| Field | Description |
|---|---|
| Task ID | S1-02 |
| Decision ID | B2.4.2 |
| Decision question | Which changes to questionnaire interpretation or rendering require a new schema_version versus qualifying as contract-preserving implementation improvements? |
| Already-settled constraints | S1-01 (B2.4.1) four-pillar unified contract scope, BL-01/BL-02 pair immutability, B2.1/BL-03 raw-JSON H_q, and step 849 framing constraint (cosmetic changes and internal refactoring do not require a new contract version). |
| Approved decision | Adopt Option 1: Pillar-Based Outcome & Specification Criterion. A new schema_version is required whenever the normative questionnaire contract changes in any of the four S1-01 pillars: (1) document structure and validation constraints, (2) semantics of omitted optional fields, (3) assessment-significant runtime interpretation, and (4) questionnaire-defined response and export semantics. The classification criterion is a change to the normative contract, not merely a change in observed implementation behavior. Implementation changes that restore conformance to an existing, sufficiently specified contract do not require a new schema_version—including corrections to structural validation, defaults, runtime behavior, and export behavior when the existing specification already defines intended behavior. Conversely, resolving genuine specification ambiguity by selecting a different interpretation changes the normative contract and requires a new schema_version. Contract-preserving implementation improvements may retain the existing version, including: cosmetic presentation and styling changes; accessibility improvements preserving equivalent information and task constraints; internal refactoring and equivalent dependency or renderer upgrades; and spec-compliance bug fixes. Two attempts sharing a schema_version are governed by the same normative questionnaire contract, which does not by itself establish that their actual execution environments or implementation builds were identical; engine implementation provenance, if required for historical execution reproducibility, is separate from questionnaire contract versioning. |
Modification delta vs. step 850 |
Anchored the immutability boundary directly to changes in the normative questionnaire contract across the four S1-01 pillars rather than observed implementation behavior alone; clarified that spec-compliance bug fixes encompass structural validation, defaults, runtime behavior, and export behavior when sufficiently specified, whereas resolving genuine specification ambiguity requires a new schema_version; explicitly decoupled contract equivalence (schema_version) from engine build/execution-environment provenance. |
| Rejected alternatives & rationale | • Strict presentation- & renderer-locked boundary: Rejected under step 849 because treating cosmetic UI, accessibility, or equivalent renderer updates as contract-breaking causes unnecessary version churn and retirement pressure (S1-04).• Structural-validation-only boundary: Rejected because omitting default, runtime, and export semantics contradicts S1-01 and allows silent behavioral drift for an identical H_q under B2.1. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-02 |
S1-03 — B2.4.3 (Defaults and Explicit Configuration)
| Field | Description |
|---|---|
| Task ID | S1-03 |
| Decision ID | B2.4.3 |
| Decision question | Which behavioral settings in questionnaire.json must be explicitly authored, and which optional fields may be omitted with frozen semantics under a contract version? |
| Already-settled constraints | BL-03 (standalone questionnaire.json may omit assessment_id), BL-04 (self-contained journal snapshot), B2.1 (Pydantic defaults are never injected into H_q), S1-01 (B2.4.1), and S1-02 (B2.4.2). |
| Approved decision | Adopt Option 1: Explicit Behavioral Authoring & Strictly Bounded "Absent / Not Applicable" Optionality. All assessment-significant configuration must be explicitly represented in questionnaire.json, including: (1) contract identifier (schema_version), (2) timing policy (including explicit timed or untimed behavior), (3) question interaction primitive and applicable behavioral constraints, (4) author-declared learning objective references, and (5) other questionnaire-level or question-level rules affecting administration, interaction, or response capture. Omission is permitted only when the normative contract defines a stable, unambiguous absence or not-applicable meaning that introduces no hidden behavioral policy—for example, assessment_id omitted for standalone execution and required for registered assessments (BL-03), optional stimulus and presentation attachments omitted to indicate their absence (even if present they affect behavior), and optional grouping metadata omitted to indicate no additional grouping or scenario context. Wherever applicable, the questionnaire schema must explicitly define the distinction between absent properties, explicit null values, and empty collections ([]) so they do not acquire interchangeable meanings implicitly (preserving distinct raw-JSON representations under B2.1). Pydantic validation and model construction must never introduce assessment-significant behavior that was neither explicitly authored nor defined by the frozen omission semantics of the applicable schema_version (Optional[T] = None is permissible as an absence marker only if no undocumented fallback policy triggers on None). The original parsed JSON tree remains authoritative for H_q; internal model defaults must not alter the authored representation used for hashing. Exact field names, schema definitions, and whether empty objective-reference arrays ([], e.g., min_length=1) are permitted or rejected remain deferred to DEF-01 and Stage 2. |
Modification delta vs. step 850 |
Framed optionality by omission consequences rather than assuming optional content cannot affect behavior when present; added explicit requirement to disambiguate absent keys vs. explicit null vs. empty collections ([]) under B2.1; tightened the Pydantic invariant to distinguish safe None absence markers from forbidden undocumented behavioral fallbacks; explicitly deferred exact field schemas and empty objective-reference array policy ([] / min_length=1) to DEF-01 and Stage 2. |
| Rejected alternatives & rationale | • Convenience behavioral defaults in schema / engine: Rejected because omitted behavioral policies would become invisible in H_q (B2.1) and BL-04 snapshots while freezing arbitrary constants into schema_version (S1-01/S1-02).• Zero optional fields ( null required everywhere): Rejected because requiring boilerplate null keys for absent optional attachments adds authoring friction without improving semantic clarity. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-03 |
S1-04 — B2.4.4 (Contract Version Support and Retirement)
| Field | Description |
|---|---|
| Task ID | S1-04 |
| Decision ID | B2.4.4 |
| Decision question | How long must live-quiz support historical schema_versions, and how do live-quiz, the Learning Registry, and the Tutor behave when a contract version is eventually retired? |
| Already-settled constraints | BL-01 (Tutor performs AVAILABLE pre-flight check before offering reassessment; registered pairs are immutable), BL-04 (self-contained journal snapshot for recovery), ADR-0004 / ADR-0008 / ADR-0009 (product decoupling & historical evaluation independence), S1-01 (B2.4.1), and S1-02 (B2.4.2). |
| Approved decision | Adopt Option 1: Permanent Specification Freeze + Controlled Runtime Retirement + Registry Retention. 1. Normative specification: The normative specification of every released schema_version remains permanently frozen.2. Runtime support: live-quiz supports active schema_versions across minor and patch releases. Runtime support for historical versions may be retired only at a major-release boundary, following an explicit deprecation announcement identifying the affected versions and intended retirement release (the minimum deprecation notice period remains unspecified unless separately established).3. Fail-closed execution: live-quiz validate, start, and recover must reject unsupported schema_versions with UNSUPPORTED_SCHEMA_VERSION. The engine must never silently coerce, migrate, or reinterpret an unsupported questionnaire or journal.4. In-flight attempts: Retiring a schema_version does not invalidate or authorize deletion of existing attempt journals. An unfinished attempt requiring a retired version must be recovered using an engine release that supports that version. A new attempt requires an explicit learner decision; the old journal must not be silently discarded or reinterpreted. (Carried-forward constraint for S1-13 / DEF-01: status inspection must account for paused journals using retired contract versions by surfacing them as recoverable—via a supporting engine release—but not executable by the currently installed engine, rather than hiding them or failing altogether.)5. Registry preservation: The Learning Registry retains historical AVAILABLE assessment pairs intact regardless of current live-quiz runtime support. Retirement does not delete, rewrite, or invalidate registered questionnaire/rubric definitions or their historical provenance. Registry availability and current runtime executability are distinct properties (\text{Runnable}(A) = \text{RegistryAvailable}(A) \land \text{EngineSupports}(A.\text{schema\_version})). New registration using retired schema_versions must be prevented; the enforcement authority and mechanism are addressed by S1-06 and DEF-01.6. Tutor pre-flight: Tutor checks Registry AVAILABLE status and current live-quiz compatibility before offering an existing assessment for reassessment. This check is read-only and advisory; live-quiz independently enforces compatibility during validate, start, and recover.7. Historical processing: Runtime retirement does not invalidate historical attempts, evaluations, or consolidated learning records. Historical evaluation and audit processing must not depend on the current engine being able to execute the original questionnaire. Exact CLI interfaces, compatibility-query mechanisms, and error/exit-code mappings are deferred to DEF-01. |
Modification delta vs. step 850 |
Explicitly decoupled historical Registry AVAILABLE status from current runtime executability; defined major-release-only retirement with explicit deprecation announcement and in-flight journal protection (BL-04); prevented new registration of retired schema_versions (delegating authority/mechanism to S1-06 and DEF-01); clarified that Tutor pre-flight is read-only/advisory while live-quiz enforcement (validate/start/recover) is authoritative; explicitly protected historical attempt.json, evaluation.json, and consolidated records across retirement; deferred CLI/exit-code mechanics to DEF-01 and left minimum notice period unspecified; carried forward retired-version paused-journal surfacing requirement to S1-13 / DEF-01. |
| Rejected alternatives & rationale | • Eternal runtime compatibility (never retire any schema_version): Rejected because preserving legacy UI widgets and execution adapters forever across major releases creates unbounded maintenance and security burden.• Destructive Registry purge/deactivation on engine retirement: Rejected because mutating or deleting historical AVAILABLE pairs breaks audit provenance (BL-01–BL-03) and couples persistent DB history to transient binary upgrades (ADR-0008). |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-04 |
S1-05 — B2.4.5 (Migration and New Definitions Boundary)
| Field | Description |
|---|---|
| Task ID | S1-05 |
| Decision ID | B2.4.5 |
| Decision question | Should learningctl / learning-registryd prohibit mechanical schema up-converters (clone-upgrade commands) in addition to prohibiting in-place pair rewrites? |
| Already-settled constraints | BL-01, BL-02, BL-06, ADR-0008, ADR-0009, step 849 framing constraints (no in-place pair migration; changing schema_version yields a new assessment_id with no version lineage; longitudinal continuity uses shared learning_objective_ids), and S1-01–S1-04 (B2.4.1–B2.4.4). |
| Approved decision | Adopt Option 1: Prohibit In-Place Pair Rewrites and Registry-Side Mechanical Pair Up-Converters. 1. Immutable registered definitions: learningctl and learning-registryd must not modify registered questionnaire/rubric pairs in place.2. Registry-side transformation prohibition: learningctl and learning-registryd must not provide clone-upgrade commands or equivalent mechanisms that mechanically transform registered questionnaire/rubric pairs into derived replacement pairs (Registry-side pair transformation and derived assessment registration are prohibited).3. Fresh authored replacements: Transitioning to a different schema_version requires authoring a fresh coordinated (Q', R') pair conforming to a supported questionnaire contract and registering it under a new, independent assessment_id. The new pair has no parent/child assessment lineage; longitudinal continuity remains exclusively through shared learning_objective_id references.4. Authoring assistance: Human authors and quiz-designer may use historical questionnaire content, objective mappings, and other accessible material as authoring context. External authoring-side tools may assist with extraction, structural transformation, or draft preparation, provided their output remains an unregistered draft and is not treated as an automatically valid replacement assessment.5. Mandatory review and registration: Every replacement pair must undergo pedagogical review, explicit resolution of assessment-significant configuration ( S1-03), Q'/R' semantic alignment, and complete pair validation. Tutor must obtain explicit learner consent before registering the new assessment or initiating reassessment.6. Scope qualification: This prohibition concerns semantic questionnaire/rubric pair migration and derived assessment registration. Ordinary Registry database schema migrations, serialization, validation, integrity verification, and versioned export-projection mechanisms (ADR-0007) are outside this prohibition. Exact authoring workflow and tool interfaces are deferred to DEF-01 and Stage 2. |
Modification delta vs. step 850 |
Corrected the rationale overstatement that every schema_version transition is behavioral; distinguished prohibited Registry-side clone-upgrade / derived registration from permitted authoring-side draft assistance producing unregistered drafts subject to pedagogical review, S1-03 resolution, Q'/R' co-validation, and Tutor consent; explicitly scoped out ordinary Registry DB migrations, serialization, validation, and versioned export projections. |
| Rejected alternatives & rationale | • Restricted Registry-side clone-upgrade: Rejected because learningctl/learning-registryd must stay decoupled from semantic (Q, R) transformation (ADR-0008), cannot guarantee rubric co-alignment (BL-01) or hidden-default safety (S1-03), and risks bypassing consent-gated authoring.• Blanket ban on external authoring-side draft helpers: Rejected as overly restrictive when structural field changes occur across contract versions, provided draft outputs remain unregistered until reviewed, co-validated, and explicitly consented. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-05 |
S1-06 — B2.5.1 (Boundary Hash Calculation and Verification Authority)
| Field | Description |
|---|---|
| Task ID | S1-06 |
| Decision ID | B2.5.1 |
| Decision question | Which components calculate H_q and which components independently recompute and verify H_q at authoring, registration, startup, recovery, evaluation, and consolidation boundaries? |
| Already-settled constraints | BL-03 (B1), BL-04 (C1), BL-07 (two-phase REGISTERING \to AVAILABLE/ABORTED), ADR-0004 / ADR-0008 / ADR-0009, B2.1–B2.3 (3-layer strict parser \to JCS \to SHA-256), and S1-04 (B2.4.4 Clause 5). |
| Approved decision | Adopt Option 1: Independent H_q Computation at Definition/Ingestion Boundaries and Correspondence Verification at Consumer/Consolidation Boundaries.1. Authoring: live-quiz validate independently validates questionnaire.json under B2.1–B2.3 and the active contract-version policy, calculating H_q from the original validated JSON tree. For registered assessments, assessment_id must first be allocated by learning-registryd (REGISTERING) and embedded in Q and R before the final H_q is calculated.2. Registration: learning-registryd independently validates the complete questionnaire/rubric pair, including strict questionnaire parsing, rubric contract validity, assessment_id correspondence, and R.expected_questionnaire_hash. It independently recomputes H_q and never trusts a caller-supplied hash as authoritative. It independently enforces its configured active registration schema_version policy, rejecting unknown or retired versions without invoking the live-quiz executable. Registration transitions to AVAILABLE only after all checks succeed.3. Execution: live-quiz start independently validates Q, enforces supported schema_version compatibility, calculates H_q, and durably stores the questionnaire snapshot and hash in the SQLite journal before serving routes. Every attempt.json export embeds questionnaire_hash = H_q, calculated over the complete questionnaire JSON tree; the questionnaire includes assessment_id in the hash when present, and standalone questionnaires may omit it.4. Recovery: live-quiz recover reconstructs Q from the journal, independently validates and recomputes H_q, and verifies correspondence with the persisted journal hash before serving routes.5. Evaluation: quiz-evaluator receives rubric.json and attempt.json, not questionnaire.json. It verifies assessment_id and expected_questionnaire_hash correspondence where registered-pair identity applies, and propagates matching provenance into evaluation.json. It does not independently recompute H_q because it does not possess Q.6. Consolidation: learning-registryd verifies full correspondence across its authoritative stored (Q, R) pair, attempt.json, evaluation.json, and the relevant assessment identity before atomically committing CONSOLIDATED.7. Tutor: Tutor does not calculate H_q or perform cryptographic verification; it coordinates the workflow and relies on the responsible components' validation results.8. Independent implementation: live-quiz and learning-registryd maintain independent B2.1–B2.3 implementations, with equivalence demonstrated through the mandatory shared raw-byte CI conformance suite (DEF-02).9. Registration-version policy: The Registry's active registration-version policy and live-quiz runtime support policy must remain consistent. Configuration ownership, distribution, and verification are deferred to DEF-01 / DEF-05.Exact CLI interfaces, error contracts, and implementation details remain deferred to DEF-01 and Stage 2. |
Modification delta vs. step 850 |
Enforced mandatory assessment_id allocation (REGISTERING) prior to final H_q calculation; explicitly required full (Q, R) contract validation alongside independent H_q recomputation at learning-registryd; added independent Registry active-registration schema_version allowlist enforcement without invoking live-quiz (S1-04 Clause 5, DEF-01/DEF-05); scoped quiz-evaluator strictly to (R, attempt.json) correspondence checks rather than recomputing H_q from Q; and required questionnaire_hash = H_q provenance on both managed and standalone attempt.json exports. |
| Rejected alternatives & rationale | • learning-registryd shelling out to live-quiz validate: Rejected because it violates B2.3 (independent implementations verified via shared CI vectors) and couples a privileged daemon to an external learner-path binary (ADR-0008).• Trusting caller-supplied H_q without recomputation: Rejected because it defeats fail-closed tamper/corruption verification at registration and journal recovery (BL-04). |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-06 |
S1-07 — B2.5.2 (Canonical Questionnaire Persistence Representation)
| Field | Description |
|---|---|
| Task ID | S1-07 |
| Decision ID | B2.5.2 |
| Decision question | Should the Learning Registry (AVAILABLE questionnaire payload) and the live-quiz attempt journal (C1 snapshot) persist canonical RFC 8785 JCS UTF-8 bytes alongside H_q, or store raw authored JSON text? |
| Already-settled constraints | BL-04 (C1 self-contained journal snapshot), BL-07 (temporary questionnaire materialization), B2.1–B2.3 (strict non-normalizing B2.2 parsing \to JCS \to SHA-256), and S1-06 (B2.5.1). |
| Approved decision | Adopt Option 1: Persist Layer 2 RFC 8785 JCS Canonical UTF-8 Bytes Alongside $H_q$. 1. Both the Learning Registry ( AVAILABLE questionnaire payload) and the live-quiz SQLite attempt journal (BL-04 snapshot) persist the exact Layer 2 RFC 8785 JCS canonical UTF-8 bytes alongside H_q, and learningctl writes those stored canonical bytes directly during temporary questionnaire materialization (BL-07) without model re-serialization.2. Original authoring whitespace, indentation, and JSON object-key ordering are intentionally not preserved, as they have zero assessment-semantic value under B2.1–B2.3.3. Unicode code points and questionnaire data remain unchanged under the non-normalizing B2.2 input profile (canonically equivalent Unicode sequences with distinct code points remain distinct).4. live-quiz recover still performs full S1-06 reconstruction, contract/version validation, canonicalization, and H_q recomputation; canonical byte storage is not a validation shortcut.5. Concrete SQLite column representation ( BLOB vs. TEXT) remains deferred to DEF-01 / DEF-05.Archival boundary: Canonical persistence preserves the questionnaire's canonical data representation, not the original authoring file as an archival artifact; if exact source-file provenance ever becomes a requirement, it must be handled separately rather than weakening the canonical persistence contract. |
Modification delta vs. step 850 |
Explicitly documented intentional non-preservation of formatting/key ordering vs. preservation of exact B2.2 Unicode code points and questionnaire data; clarified that live-quiz recover never treats canonical storage as a validation shortcut (S1-06); deferred SQLite BLOB vs. TEXT typing to DEF-01 / DEF-05; and added the explicit boundary distinguishing canonical data persistence from original authoring-file archival. |
| Rejected alternatives & rationale | • Persist raw authored JSON bytes: Rejected because preserving insignificant whitespace/key order adds size and prevents direct \operatorname{SHA256}(\text{stored\_bytes}) = H_q identity without re-running JCS, for zero assessment-semantic benefit.• Asymmetric Registry vs. journal storage: Rejected because both components implement identical B2.1–B2.3 pipelines (B2.3) over the same canonical handoff (BL-07). |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-07 |
S1-08 — C2 (Legacy attempt.json assessment_version Policy)
| Field | Description |
|---|---|
| Task ID | S1-08 |
| Decision ID | C2 |
| Decision question | How should live-quiz, quiz-evaluator, and learningctl treat any attempt.json containing the removed assessment_version field? |
| Already-settled constraints | BL-02 (assessment_version eliminated), BL-05 (no historical journal migration needed; greenfield repository with zero prior deployments), and ADR-0007. |
| Approved decision | Adopt Option 1: Omit assessment_version from Day One + Fail-Closed Rejection + Zero Legacy Shims.1. live-quiz produces attempt.json without assessment_version from the initial schema onward; quiz-evaluator and learningctl (including validation and consolidation) enforce fail-closed rejection via extra="forbid" whenever any attempt.json contract input contains assessment_version.2. Contract-boundary strictness: extra="forbid" applies specifically when parsing attempt.json as a contract artifact, not indiscriminately to unrelated JSON inputs.3. No mutation of static files: Static files on disk containing assessment_version remain untouched unless supplied to a validator or consumer.4. No compatibility aliases or shims: Do not introduce deprecated fields, stripping logic, import adapters, or conditional parsing paths. 5. Conforming test fixtures: Any fixture containing assessment_version is invalid under the new contract; its rejection is intended contract feedback rather than a compatibility issue.DEF-01 parity requirement: Ensure the JSON Schema representation (attempt.schema.json) and runtime Pydantic validation enforce the same closed-object policy so consumers never disagree on acceptance/rejection. |
| Rejected alternatives & rationale | • Silent ignore / strip assessment_version on read: Rejected because it weakens extra="forbid" contract strictness, introduces dead compatibility shims into a greenfield repository (BL-05), and masks BL-02 violations. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_AS_PROPOSED |
| Tracker reference | issue-4-follow-through.md — S1-08 |
S1-09 — D1a (Registry Repository and Package Ownership)
| Field | Description |
|---|---|
| Task ID | S1-09 |
| Decision ID | D1a |
| Decision question | Should learningctl, learning-registryd, and host provisioning live in a separate dedicated repository (learning-registry) or inside the live-quiz repository as a multi-component monorepo? |
| Already-settled constraints | BL-06 (learningctl + learning-registryd service boundary, dedicated OS identity/IPC/permissions), B2.3 (independent implementations without a shared runtime package), S1-04/S1-06 (contract-version parity), and ADR-0008. |
| Approved decision | Adopt Option 1: Single Multi-Component Monorepo inside live-quiz (three independently implemented and independently deployable components, not a shared application):1. Independent build and packaging boundaries: House three top-level components ( live-quiz engine/SPA, learning-registry package/daemon/CLI/host provisioning, and skills/ portable workflows), each with its own dependency declaration, build target, and installation artifact. live-quiz must not depend on the Registry's Python package; learning-registryd must not depend on private live-quiz implementation modules; shared first-party runtime helper packages remain prohibited (B2.3).2. Mechanically enforced import isolation in CI: CI must inspect import relationships (and use isolated package builds/virtual environments as appropriate) and fail when prohibited cross-package Python runtime imports appear, while permitting shared normative schemas ( DEF-01), raw-byte conformance fixtures (B2.3 / DEF-02), and atomic cross-contract CI verification.3. Independent release and deployment lifecycles: Repository co-location does not imply synchronized releases; independent versioning, deployment lifecycles, OS identities, IPC boundaries, and permissions remain preserved. 4. Stage 2 ADR update: Stage 2 must amend or supersede ADR-0008 to reflect the three-component monorepo architecture. |
Modification delta vs. step 850 |
Explicitly separated repository layout from runtime/OS/deployment boundaries; required independent dependency, build, and packaging boundaries; elevated cross-package import isolation from convention to mechanical CI enforcement (permitting shared schemas and conformance fixtures); preserved independent release and deployment lifecycles; and required Stage 2 to amend or supersede ADR-0008. |
| Rejected alternatives & rationale | • Separate dedicated learning-registry repository: Viable via versioned contract artifacts and cross-repo CI workflows, but introduces additional versioning, publication, and cross-repo coordination overhead not justified for this greenfield project—especially while atomically co-verifying S1-04/S1-06/B2.3 schemas and raw-byte conformance vectors.Note: Physical repo separation alone would not guarantee runtime isolation without packaging, permission, and deployment boundaries. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-09 |
S1-10 — D1b (Workspace Marker Edge Cases, Fail-Closed Error Taxonomy & Migration Trigger)
| Field | Description |
|---|---|
| Task ID | S1-10 |
| Decision ID | D1b |
| Decision question | How should learningctl handle duplicate init or unregistered .learning-workspace markers, classify fail-closed global DB states, and gate registry schema migrations? |
| Already-settled constraints | BL-06 (nearest-ancestor .learning-workspace resolution, Git root rejected, host provisioning separate from learningctl init, init never recreates a missing global DB, pre-disruptive encrypted backup invariant), and S1-05 Clause 6 (ordinary DB schema migrations permitted). |
| Approved decision | Adopt Option 1: Idempotent Same-Dir init + Fail-Closed Unregistered Marker + 5-Class Error Taxonomy + Explicit Backup-Gated Out-of-Band Migration.1. Same-directory learningctl init: Idempotent when .learning-workspace already exists and its workspace_id is already validly registered for that workspace in the global DB.2. Unregistered / malformed marker: Fail closed ( UNREGISTERED_WORKSPACE_MARKER) when a .learning-workspace marker file's workspace_id is unknown to the global DB (never overwriting, auto-registering, or bypassing to a parent marker).3. Fail-closed DB/daemon error taxonomy: Classify daemon and global DB failures into five deterministic categories: NOT_PROVISIONED, MISSING_OR_LOCKED, CORRUPT, MIGRATION_REQUIRED, and UNSUPPORTED_SCHEMA (exact exit codes and JSON error schema deferred to DEF-04).4. Explicit backup-gated migration: Reject DB access fail-closed with MIGRATION_REQUIRED on schema mismatch and require an explicit out-of-band admin migration command gated on a verified encrypted backup snapshot (S1-15). |
| Rejected alternatives & rationale | • Silent auto-migration on daemon startup: Rejected because it blurs runtime availability under systemd socket activation with disruptive schema mutation and risks unverified/unrecoverable upgrades. • Auto-re-registering unregistered .learning-workspace markers: Rejected because it risks silently aliasing or dissociating workspace_id provenance (BL-06). |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_AS_PROPOSED |
| Tracker reference | issue-4-follow-through.md — S1-10 |
S1-11 — D2a (REGISTERING Status Visibility and ABORTED Tombstone Retention)
| Field | Description |
|---|---|
| Task ID | S1-11 |
| Decision ID | D2a |
| Decision question | How are incomplete REGISTERING records surfaced in learningctl status, and how are ABORTED registration records and their unverified draft payloads retained? |
| Already-settled constraints | BL-07 (REGISTERING \to AVAILABLE / ABORTED; only AVAILABLE is executable; assessment_id is never reused; registration failure \neq attempt crash recovery), BL-08 (learningctl status single read-only startup snapshot), and S1-06 (assessment_id allocated in REGISTERING prior to (Q, R) completion). |
| Approved decision | Adopt Option 1: Dedicated incomplete_registrations in status (No TTL) + Lightweight Permanent ABORTED Tombstones.1. Incomplete REGISTERING visibility: REGISTERING is persistent state, not a temporary error. Surface incomplete REGISTERING records in a dedicated incomplete_registrations section of learningctl status (workspace-scoped by default, cross-workspace with --all, with zero automatic TTL expiry).2. Explicit Tutor authority: Tutor may surface and explain incomplete registrations and offer the learner the opportunity to resume or abort them, but Tutor must not automatically finalize or abort stale registrations; both transitions require explicit authorization.3. ABORTED tombstones & auditability: Transition aborted/failed registrations to lightweight permanent ABORTED metadata tombstones hidden from learner-facing status and --all. Hiding a tombstone is distinct from deleting its audit information: each tombstone retains administrative audit metadata (assessment_id, aborted state, transition timestamp, and reason where available).4. Payload purge without ID loss: Purge any unverified draft $Q$/ R payloads upon transition to ABORTED, without removing the permanent assessment_id reservation or its audit metadata.Exact metadata columns, CLI representation, and administrative inspection interfaces remain deferred to DEF-04 and DEF-05. |
Modification delta vs. step 850 |
Explicitly scoped default incomplete_registrations to the current workspace (--all for cross-workspace); forbade Tutor from automatically finalizing or aborting stale REGISTERING entries without explicit authorization; distinguished learner-facing hiding of ABORTED from administrative auditability (retaining assessment_id, aborted state, timestamp, and reason); clarified that draft $Q$/R payload purging must preserve the assessment_id reservation and audit metadata; and deferred exact schema/CLI/admin inspection interfaces to DEF-04 / DEF-05. |
| Rejected alternatives & rationale | • Omit REGISTERING from learningctl status (separate query only): Rejected because it breaks BL-08's single-call Tutor initialization snapshot.• Automatic TTL expiry on REGISTERING: Rejected because time-based background mutations inside learning-registryd risk invalidating legitimate interrupted authoring sessions. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-11 |
S1-12 — D2b (Startup-Commit Acknowledgment and Temporary Questionnaire Cleanup Protocol)
| Field | Description |
|---|---|
| Task ID | S1-12 |
| Decision ID | D2b |
| Decision question | By what mechanism does live-quiz start acknowledge that the C1 journal snapshot is durably committed and the local HTTP server is bound, so learningctl can delete the temporary materialized questionnaire.json immediately without waiting for the learner to finish the quiz? |
| Already-settled constraints | BL-04 (C1 durable snapshot before learner access), BL-07 (idempotent temp questionnaire cleanup via learningctl), ADR-0002, and ADR-0007. Soft/informational dependency: S1-07 (B2.5.2). |
| Approved decision | Adopt Option 1: Strict Startup Ordering + Explicitly Flushed SESSION_READY NDJSON on stdout.1. Strict startup ordering: live-quiz start executes strictly in order: questionnaire/schema-version validation \to durable BL-04 SQLite journal snapshot commit \to localhost TCP listener bind and HTTP server readiness \to emit and explicitly flush SESSION_READY.2. SESSION_READY guarantees: SESSION_READY is emitted only once per successful startup after the server is actually ready to accept requests, guaranteeing both (a) durable journal snapshot persistence independent of the temporary questionnaire file, and (b) a usable listener at the advertised URL.3. Exclusive machine-readable NDJSON stdout protocol: stdout carries exclusively one complete JSON document per line (one SESSION_READY event on startup, one terminal outcome event at process termination); all diagnostic messages/logging go to stderr. Callers must continuously drain stdout line-by-line (never waiting for EOF before reading) and cannot assume the full stdout stream is a single JSON document (reconciling ADR-0002 / ADR-0007 in Stage 2).4. Temporary-file cleanup ownership: The temporary-file owner/coordinator deletes the materialized questionnaire immediately and idempotently upon observing SESSION_READY without waiting for assessment completion; cleanup failure is reported independently and must not invalidate an already-committed journal snapshot.5. Mid-startup failure boundary: Failure between durable journal commit and HTTP server readiness must not leave temporary-file cleanup exclusively dependent on receiving SESSION_READY; callers/coordinators must have a recovery or cleanup path for the materialized file.6. Portability qualification & deferrals: If a future harness cannot reliably expose and drain stdout, the protocol's portability assumption should be revisited. Exact event schema, coordinator ownership details, and cleanup recovery mechanics remain deferred to DEF-03 / I9-01. |
Modification delta vs. step 850 |
Distinguished TCP socket bind from full HTTP server readiness; elevated stdout to an exclusive line-oriented NDJSON protocol (explicit flush, diagnostics on stderr, continuous draining, Stage 2 reconciliation with ADR-0002/ADR-0007); clarified temporary-file owner cleanup semantics and non-invalidation on cleanup failure; added explicit mid-startup failure cleanup boundary between journal commit and SESSION_READY; noted portability revisit qualification; and deferred exact event schema, coordinator ownership, and cleanup recovery mechanics to DEF-03 / I9-01. |
| Rejected alternatives & rationale | • Out-of-band --ready-fd or --ready-file: Rejected to avoid extra communication channels, shell/harness FD-inheritance incompatibilities, and secondary temp-file lifecycles when stdout already carries structured lifecycle events.• Post-exit cleanup only: Rejected because leaving temporary questionnaire.json on disk throughout multi-hour or suspended sessions violates BL-07 and leaks files on crashes. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-12 |
S1-13 — D3a (Read-Only Active-vs.-Recoverable Attempt Inspection Contract)
| Field | Description |
|---|---|
| Task ID | S1-13 |
| Decision ID | D3a |
| Decision question | How does live-quiz track active process liveness and expose a read-only (mode=ro) inspection interface so learningctl status can distinguish ACTIVE_LIVE_ATTEMPT from RECOVERABLE_INTERRUPTED_ATTEMPT without mutating journals or reading private SQLite tables? |
| Already-settled constraints | BL-04 (C1), BL-08 (learningctl status is read-only; live-quiz is sole authority for active vs. recoverable state without exposing private SQLite tables), ADR-0006, and S1-04 (B2.4.4 carried-forward requirement: status inspection must surface paused journals using retired contract versions as recoverable—under a supporting engine—but not executable by the currently installed engine, rather than hiding them or failing altogether). |
| Approved decision | Adopt Option 1: Continuous flock + Read-Only Batch Inspection.1. Continuous exclusive flock: live-quiz holds an exclusive OS flock on sibling attempt-<attempt-id>.lock for the full duration of every active session (start and recover), established consistently before an attempt becomes inspectable.2. Read-only batch inspection: live-quiz exposes a read-only batch CLI inspection command invoked by learningctl status, keeping private SQLite tables encapsulated from learningctl (BL-08).3. Lock-probe concurrency & safety: Inspection probes locks without creating missing lock files and without unlinking lock files, accounting for check-then-inspect concurrency (e.g., temporary non-blocking exclusive lock during inspection) and treating a missing lock file alongside an existing journal as an anomaly rather than automatic proof of inactivity. 4. Strict filesystem non-mutation: Inspection must not create, modify, checkpoint, or delete journal files or -wal/-shm sidecars. SQLite mode=ro alone is not accepted as proof of zero filesystem side effects, and immutable=1 must not be used as a generic substitute for safely inspecting a potentially active WAL database; if a journal cannot be inspected under these constraints, report an inspection anomaly rather than attempting automatic repair.5. Explicit anomaly & cleanup states: Surface CLEANUP_PENDING, orphan -wal/-shm sidecars, and other inspection anomalies explicitly without automatic repair.6. Retired-version visibility: Separate metadata inspection from execution-level validation so paused journals using retired schema_versions remain visible in status with recoverability (via a supporting engine) and current-engine executability represented separately.7. Deferrals: Exact CLI schema, SQLite opening/inspection mechanics, lock-file lifecycle details, and safe stale lock-file pruning policy are deferred to DEF-03. |
Modification delta vs. step 850 |
Replaced the over-strong claim that mode=ro alone guarantees zero sidecar mutation with an explicit filesystem non-mutation invariant (and warned against immutable=1); added lock-probe concurrency requirements, missing-lock anomaly treatment, and non-creating/non-unlinking rules; separated metadata inspection from execution-level validation for retired-version paused journals (S1-04); required explicit CLEANUP_PENDING and orphan-sidecar anomaly reporting; and deferred CLI schema, SQLite mechanics, and .lock pruning to DEF-03. |
| Rejected alternatives & rationale | • PID-file liveness check: Rejected due to stale-PID false positives after SIGKILL and PID-reuse collisions.• Direct SQLite reads by learningctl: Rejected because it violates BL-08 encapsulation of private engine SQLite tables and ADR-0008 decoupling. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-13 |
S1-14 — D3b (Service-Boundary Delegation Cutoff and schema_version Format)
| Field | Description |
|---|---|
| Task ID | S1-14 |
| Decision ID | D3b |
| Decision question | Should per-command learningctl --json schema_version standardize on "<major>.<minor>" string syntax, and where is the exact boundary between architectural service invariants and deferred host packaging details? |
| Already-settled constraints | BL-06 (learningctl \to UDS IPC \to learning-registryd under learning-registry user, Accept=no, serialized mutations, per-command schema_version compatibility principles; exact "<major>.<minor>" format flagged open at step 827), S1-09 (D1a repo boundary), and S1-10 (D1b out-of-band admin migration). |
| Approved decision | Adopt Option 1: "<major>.<minor>" String Format + Strict Agent/Admin Cutoff + DEF-04/DEF-05 Delegation.1. learningctl --json schema_version format: Standardize every learningctl --json per-command response schema_version on "<major>.<minor>" string syntax (e.g., "1.0", "1.1", "2.0"), encoding additive minor updates vs. breaking major changes.2. Contract independence: Explicitly clarify that this learningctl --json CLI output schema_version is completely independent of questionnaire.json's schema_version (S1-01–S1-04).3. Strict agent/admin privilege cutoff: Keep privileged host provisioning, encryption key escrow/import, DB schema migration ( S1-10), and backup restore strictly out of agent-facing learningctl (confined to privileged admin tooling / host provisioning).4. Operational delegation: Delegate exact systemd .socket/.service directives, UDS paths/OS group names/file modes, IPC wire framing, XDG runtime/state paths, and exact learningctl subcommand/flag spellings to DEF-04 and DEF-05. |
Modification delta vs. step 850 |
Explicitly recorded that learningctl --json's "<major>.<minor>" CLI output schema_version is completely independent of questionnaire.json's schema_version (S1-01–S1-04). |
| Rejected alternatives & rationale | • Integer-only schema_version (1, 2, ...): Rejected because a bare integer cannot distinguish backward-compatible additive minor changes from breaking major changes under BL-06.• Locking systemd/UDS/CLI spellings in Stage 1/2: Rejected because host-packaging details ( DEF-05) and ergonomic CLI syntax (DEF-04) belong in implementation specifications rather than durable ADRs. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-14 |
S1-15 — D4 (Out-of-Band Key Escrow, Backup Verification Gate & Operational Delegation)
| Field | Description |
|---|---|
| Task ID | S1-15 |
| Decision ID | D4 |
| Decision question | How is non-TPM cross-host portability reconciled with keeping encryption keys out of learningctl and DB backups, and how are backup snapshots verified before rotation or destructive maintenance? |
| Already-settled constraints | BL-06 (mandatory encryption, SQLCipher candidate only, non-TPM default host key protection separate from workspaces and DB backups, learning-registryd Online Backup API snapshots on schedule and pre-disruptive operations), S1-10 (D1b fail-closed & pre-migration backup gate), and S1-14 (D3b admin/agent privilege cutoff). |
| Approved decision | Adopt Option 1: Out-of-Band Admin Key Escrow + Stage-Then-Verify Backup Gate (DEF-05-Conditional Primitive).1. Privileged out-of-band key escrow/import: Key material is never stored in workspace directories or DB backup directories and is never accessible via learningctl (admin-only functionality). Loss or unavailability of the required key must be reported as a recoverability failure, not mistaken for database corruption; backup retention and key-retention policies must remain consistent.2. Stage-then-verify backup pipeline: For encrypted Online Backup API snapshots: produce a staged encrypted snapshot \to independently reopen/verify that snapshot using the selected DB engine and appropriate key \to perform engine-specific integrity checks and verify expected schema/version and essential metadata \to promote atomically into the verified catalog only after verification succeeds (discard staging on failure). Full end-to-end restore drills are not required before every backup promotion.3. Protect the last verified recovery point: A failed backup or verification operation must never discard the last verified recovery point. 4. Key availability for recoverability: A snapshot counts as cryptographically recoverable only if its required key material remains available alongside passing DB integrity checks. 5. Pre-migration snapshot gate: S1-10 destructive schema migrations require a freshly verified pre-migration encrypted snapshot and remain explicit administrative operations.6. Three distinct backup/recovery guarantees: Explicitly preserve the separation between: (a) artifact integrity (staged encrypted snapshot is internally valid and passes verification—backup pipeline), (b) cryptographic recoverability (snapshot can be decrypted using separately protected key material—key management/escrow), and (c) operational recoverability (system can actually be restored and brought back into service—admin recovery procedures and restore drills). 7. Candidate discipline: SQLCipher remains a candidate, not a selected implementation.8. Deferrals: Concrete engine-specific verification primitives, key management, escrow, rotation, retention, scheduling, credential mechanisms, and external synchronization are deferred to DEF-05. |
Modification delta vs. step 850 |
Replaced generic "independent keyed integrity verification" with a 5-step stage-reopen-verify-metadata-promote pipeline; distinguished key unavailability from DB corruption and aligned backup/key retention; required key availability alongside integrity to count as cryptographically recoverable; required a freshly verified snapshot before S1-10 migrations; codified the three distinct recovery guarantees (artifact integrity vs. cryptographic recoverability vs. operational recoverability) without requiring full restore drills on every promotion; and kept SQLCipher strictly a candidate with primitives/escrow/rotation/retention/sync deferred to DEF-05. |
| Rejected alternatives & rationale | • Bundling wrapped key material inside DB backup bundles: Rejected because it violates BL-06 key separation and collapses backup compromise into full rubric/history compromise.• Unverified Online Backup promotion: Rejected because disk/cipher corruption in a staged snapshot could rotate away the last valid recovery point undetected. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-15 |
S1-16 — E1 (Per-Execution Staging Slot Allocation and --output Destination Discipline)
| Field | Description |
|---|---|
| Task ID | S1-16 |
| Decision ID | E1 |
| Decision question | How are managed attempt.json export paths allocated before live-quiz generates attempt_id so reassessments and multiple attempts never collide on --output (CONFLICT_DIFFERENT_ATTEMPT)? |
| Already-settled constraints | BL-04 (C1), BL-09 (persistent non-workspace staging area for managed attempt.json until consolidation; standalone exports remain user-controlled files), and ADR-0007 (single-file --output <path> idempotency and CONFLICT_DIFFERENT_ATTEMPT conflict rule). |
| Approved decision | Adopt Option 1: Registry-Allocated Per-Execution Staging Slots via Existing --output <path> Contract.1. interaction_id vs. attempt_id separation: interaction_id identifies the managed execution and its staging lifecycle (allocated by the Registry before launching live-quiz), whereas attempt_id identifies the actual assessment attempt (generated by live-quiz per BL-04). live-quiz remains unaware of Registry interactions and staging directory management.2. Immutable per-execution slot: Every managed execution receives a unique interaction_id and staging slot (<staging_root>/<interaction_id>/attempt.json) allocated before live-quiz start and never reused for another execution.3. Same path on recovery: live-quiz start and live-quiz recover for the same execution must pass the exact same --output <path>.4. Unused/abandoned slots: Slots allocated during execution preparation that fail before live-quiz creates its journal must never be silently reassigned to a different execution; unused/abandoned slot cleanup lifecycle is deferred to DEF-04 / DEF-05.5. Identity allocation vs. filesystem ownership: Registry allocates interaction_id and staging association, learningctl coordinates execution preparation, live-quiz atomically exports to the supplied path, and consolidation consumes the staged artifact. Output paths must be constructed from a validated identifier under a controlled staging root—never accepted as an arbitrary agent-supplied path—with exact filesystem permissions/ownership deferred to DEF-04 / DEF-05.6. Unchanged ADR-0007 & standalone rules: Standalone exports remain completely outside this slot allocation mechanism, and ADR-0007's CONFLICT_DIFFERENT_ATTEMPT and same-attempt_id idempotency rules remain unchanged (zero --output-dir mode added to live-quiz). |
Modification delta vs. step 850 |
Explicitly separated interaction_id (Registry staging identity) from attempt_id (engine attempt identity); barred silent reassignment of unused pre-journal slots (DEF-04/DEF-05 cleanup); separated Registry identity allocation from filesystem artifact ownership (DEF-04/DEF-05 permissions); required staging paths to be constructed from validated IDs under a controlled root rather than arbitrary agent paths; and reaffirmed unchanged ADR-0007 and standalone export semantics. |
| Rejected alternatives & rationale | • Adding --output-dir mode to live-quiz: Rejected because it complicates ADR-0007's single-file --output <path> idempotency/conflict contract and decouples interaction_id slot ownership from the exported file.• Per- assessment_id staging path: Rejected because reassessments (BL-01) and post-abandonment retries (BL-09) collide on CONFLICT_DIFFERENT_ATTEMPT. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-16 |
S1-17 — E2 (Pre-Consolidation Storage Split, Pre-Debrief Status Reconciliation & ABANDONED Payload Retention)
| Field | Description |
|---|---|
| Task ID | S1-17 |
| Decision ID | E2 |
| Decision question | Where do pre-consolidation interaction metadata, append-only events, payloads, and structured debrief checkpoints live before CONSOLIDATED, how does learningctl status surface un-evaluated staged attempt.json exports without altering the BL-09 states, and how does transactional consolidation verify artifact correspondence? |
| Already-settled constraints | BL-09 (settled lifecycle states: PENDING_DEBRIEF, DEFERRED, PENDING_CONSOLIDATION, CONSOLIDATED, ABANDONED; managed attempt.json staged until atomic consolidation of (attempt, evaluation, Tutor observations) into CONSOLIDATED with idempotent receipt; append-only history vs. reversible ABANDONED disposition hidden from status and --all; bounded ~1–3 turn debrief facilitation guideline; structured debrief progress without chat transcripts), S1-06 (B2.5.1 4-way correspondence), and S1-16 (E1 per-execution staging slot). |
| Approved decision | Adopt Option 1: Registry Envelopes/Events + E1 Slot Payloads (Retained on ABANDONED) + Derived awaiting_evaluation + Bundle-Bound Idempotent Consolidation.1. Storage separation & ABANDONED retention: The encrypted Registry DB stores lightweight interaction envelopes and append-only lifecycle events. E1 staging slots hold unconsolidated payloads (attempt.json, evaluation.json, and structured debrief checkpoints—never full conversation transcripts) until CONSOLIDATED. Payloads remain retained across ABANDONED without changing BL-09 states or visibility rules (status/--all hidden); retention does not authorize automatic revival (reconsideration requires an explicit learner request and a supported transition or execution path). E1's encryption-at-rest, ownership, permissions, and backup requirements must be explicitly resolved before implementation (DEF-04/DEF-05).2. Read-only reconciliation: awaiting_evaluation remains a strictly derived, read-only status classification—never persisted, never a BL-09 lifecycle state, and never a transition target (leaving all five BL-09 states unchanged). It applies only when the corresponding attempt.json export exists and evaluation.json is absent. Missing, inaccessible, malformed, or inconsistent staging data must be surfaced as an inspection anomaly. Reconciliation must not mutate either persistence domain or initiate evaluation.3. Bundle-bound consolidation: Consolidation verifies complete $Q$/$R$/ attempt.json/evaluation.json correspondence and relevant identity under S1-06. The idempotency receipt binds to the complete normalized (attempt, evaluation, Tutor observations) bundle correspondence: identical retries return the existing receipt, and mismatched retries fail closed. The receipt and CONSOLIDATED transition are atomic, and E1 cleanup follows only after durable consolidation. Exact normalization, digest, schema, and storage mechanics remain deferred to DEF-04 / DEF-05. |
Modification delta vs. step 850 |
Explicitly barred automatic revival of retained ABANDONED payloads; flagged E1 encryption-at-rest, ownership, permissions, and backup requirements as mandatory pre-implementation resolutions (DEF-04/DEF-05); restricted awaiting_evaluation strictly to existing attempt.json + absent evaluation.json with zero mutation/evaluation side effects and required anomaly reporting for missing/inaccessible/malformed/inconsistent staging data; and required atomic receipt + CONSOLIDATED commit bound to complete normalized (attempt, evaluation, Tutor observations) bundle correspondence (failing closed on mismatch) before E1 cleanup. |
| Rejected alternatives & rationale | • Storing unconsolidated payloads in Registry DB pre-consolidation: Rejected because it contradicts BL-09 staging and bloats encrypted Registry backups with unconsolidated/abandoned payloads.• Persisting a 6th AWAITING_EVALUATION state & purging ABANDONED payloads: Rejected because it mutates the settled BL-09 state model and breaks reversible abandonment. |
| Provenance | USER_EXPLICIT (approved 2026-11-15; originating proposal step 850) |
| Status | ACCEPTED_WITH_MODIFICATIONS |
| Tracker reference | issue-4-follow-through.md — S1-17 |
Section 4 — Deferred Implementation Responsibilities (DEF-01 through DEF-05)
The following engineering tasks are intentionally postponed to post-Stage-3 implementation:
DEF-01— JSON Schemas & Strict Pydantic Models: Exact field names and.schema.jsonspecifications forquestionnaire.json,rubric.json,attempt.json, andevaluation.json, including recursiveextra="forbid",strict=True, and negative nesting tests.DEF-02— RFC 8785 Library Selection & Shared Conformance Suite: Selection of the concrete Python RFC 8785 package (rfc8785/jcscandidates) and assembly of the shared raw-byte CI conformance test suite (official RFC 8785 vectors +B2.2negative parser vectors +attempt.jsonfloat vectors).DEF-03—live-quizCLI Interface & Output Schemas: Exact subcommand spellings, flags, and output/JSON schemas forlive-quiz validate, startup readiness acknowledgment (D2b), and read-only attempt inspection (D3a), plus authoringlive-quiz.md.DEF-04—learningctlDomain CLI Grammar & JSON Schemas: Exact.learning-workspaceoptional metadata fields, command/flag spellings, and CLIschema_version/ JSON output schemas (status, consolidation receipt, structured debrief checkpoint), plus authoringlearningctl.md.DEF-05— Host Daemon Packaging, Security & Backup Operations: Exactlearning-registrydsystemd.socket/.serviceunits, UDS path/group/modes, private IPC wire framing, XDG runtime/state paths, encrypted DB driver (SQLCiphercandidate), concrete backup integrity-check primitive, credential mechanism (LoadCredentialEncrypted=vs. keyfile), admin key-escrow/migrate/restore tooling, backup timer schedule, retention thresholds, and external sync target.
Important
Boundary Rules for Deferred Items:
- Deferred
\neqDecided: Postponing an implementation mechanism does not select a default candidate (e.g.,SQLCipherandrfc8785remain candidates untilDEF-02/DEF-05).- Invariants vs. Mechanisms: An architectural invariant (such as mandatory at-rest encryption, backup integrity verification before promotion, or 3-layer JCS hashing) is binding once approved, while its concrete implementation remains open under
DEF-01–DEF-05.- No Premature ADR Encoding: Stage 2 ADRs (
S2-01–S2-05) must record the actual user-approved architectural contracts and invariants (including any approved modifications or alternatives), never locking in unapprovedDEF-01–DEF-05implementation specifics as if they were settled architecture.
See issue-4-follow-through.md — Section 5 for detailed triggers and completion conditions for DEF-01–DEF-05.
Section 5 — Decision-Record Maintenance Protocol
All subsequent sessions working on Issue #4 must follow these eight rules:
- Explicit User Approval Required: Never transition a decision from
PENDING_USER_REVIEWwithout an explicitUSER_INPUTturn authorizing one of the five valid dispositions:ACCEPTED_AS_PROPOSEDACCEPTED_WITH_MODIFICATIONSREJECTED_IN_FAVOR_OF_ALTERNATIVEDEFERRED_WITH_JUSTIFICATIONNOT_APPLICABLE_WITH_JUSTIFICATION
- Record Modifications Faithfully: When a decision is
ACCEPTED_WITH_MODIFICATIONSorREJECTED_IN_FAVOR_OF_ALTERNATIVE, replace the summary with the exact user-approved commitment and record the modification delta rather than preserving the originalstep 850recommendation as if unchanged. - Preserve Rejected Alternatives & Rationale: When alternatives are rejected during review, concisely record the rejected option and why it was rejected so Stage 2 MADR drafting (
S2-01–S2-04) has complete context. - Incremental Dual-Artifact Updates: Update both issue-4-decision-ledger.md and issue-4-follow-through.md immediately after each atomic decision is resolved, recording the transcript step or date of approval.
- Stable Identifiers: Keep task IDs (
S1-01–S1-18,CW-01,S2-01–S2-06,S3-01,DEF-01–DEF-05,I9-01) and decision IDs (BL-01–BL-09,B2.1–B2.3,B2.4.1–E2) stable across sessions. - Immutability of Prior Meaning: Never silently broaden, narrow, or reinterpret an earlier settled decision (
BL-01–BL-09,B2.1–B2.3, or any newly resolvedS1-*item). Any revision to a settled commitment requires an explicit user decision recorded with updated provenance. - New Architectural Questions: If a new architectural question surfaces during review, assign it a distinct identifier, evaluate whether it is a genuine prerequisite for any existing task, and record it explicitly rather than folding it silently into an existing item.
- Separation of Authority: issue-4-decision-ledger.md is authoritative for decision state, provenance, and rationale; issue-4-follow-through.md is authoritative for work status, dependencies, and execution sequencing.