docs(planning): record verified Stage 1 decisions S1-01 through S1-17
- Apply R-01b BL-03 wording clarification distinguishing questionnaire_hash (Hq) from ADR-0007 publication_intent expected_sha256 - Record USER_EXPLICIT dispositions for B2.4 contract versioning and boundaries (S1-01–S1-05) and B2.5 hash/canonical persistence (S1-06–S1-07) - Record USER_EXPLICIT disposition for C2 legacy attempt.json rejection (S1-08) - Record USER_EXPLICIT dispositions for Cluster D repository, workspace/error taxonomy, registration lifecycle, startup readiness, liveness inspection, CLI schema_version, and key/backup gates (S1-09–S1-15) - Record USER_EXPLICIT dispositions for Cluster E staging slots, derived pre-debrief reconciliation, and bundle-bound consolidation (S1-16–S1-17) - Update S1-01–S1-17 statuses in planning/issue-4-follow-through.md while leaving S1-18 closure and CW-01 pending explicit authorization
This commit is contained in:
1 parent
49a76ef70d
commit
50edeae282
2 files changed
+117
-85
No files matched your search
@@ -39,7 +39,7 @@ The following nine foundational commitments (`BL-01`–`BL-09`) are verified in
|
|||||||
| :--- | :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- | :--- |
|
||||||
| **`BL-01`**<br>*(Cluster A)* | **Immutable Coordinated Assessment Pair & Flat `assessment_id`:**<br>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](../docs/decisions/0004-questionnaire-rubric-separation.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md), [ADR-0009](../docs/decisions/0009-modular-portable-reference-skills.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
| **`BL-01`**<br>*(Cluster A)* | **Immutable Coordinated Assessment Pair & Flat `assessment_id`:**<br>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](../docs/decisions/0004-questionnaire-rubric-separation.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md), [ADR-0009](../docs/decisions/0009-modular-portable-reference-skills.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
||||||
| **`BL-02`**<br>*(Cluster A)* | **No `assessment_version` or Version Lineage:**<br>`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](../docs/decisions/0007-atomic-json-export-contract.md), [ADR-0009](../docs/decisions/0009-modular-portable-reference-skills.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
| **`BL-02`**<br>*(Cluster A)* | **No `assessment_version` or Version Lineage:**<br>`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](../docs/decisions/0007-atomic-json-export-contract.md), [ADR-0009](../docs/decisions/0009-modular-portable-reference-skills.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
||||||
| **`BL-03`**<br>*(Cluster B1)* | **`B1` Identity Binding & Hash Domain:**<br>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 definition identity and retains `expected_sha256` ([ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md)) as a distinct per-file transport checksum. 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](../docs/decisions/0004-questionnaire-rubric-separation.md)), while preserving standalone CLI usability ([ADR-0001](../docs/decisions/0001-standalone-web-application.md)). | Component-level hash calculation/verification authority (`S1-06` / `B2.5.1`) and canonical byte storage (`S1-07` / `B2.5.2`) remain open. | [ADR-0004](../docs/decisions/0004-questionnaire-rubric-separation.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
| **`BL-03`**<br>*(Cluster B1)* | **`B1` Identity Binding & Hash Domain:**<br>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](../docs/decisions/0007-atomic-json-export-contract.md) 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](../docs/decisions/0004-questionnaire-rubric-separation.md)), while preserving standalone CLI usability ([ADR-0001](../docs/decisions/0001-standalone-web-application.md)). | Component-level hash calculation/verification authority (`S1-06` / `B2.5.1`) and canonical byte storage (`S1-07` / `B2.5.2`) remain open. | [ADR-0004](../docs/decisions/0004-questionnaire-rubric-separation.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
||||||
| **`BL-04`**<br>*(Cluster C1)* | **`C1` Self-Contained Journal Snapshot & Recovery Independence:**<br>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](../docs/decisions/0006-ephemeral-sqlite-session-journal.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md), [docs/architecture.md](../docs/architecture.md) |
|
| **`BL-04`**<br>*(Cluster C1)* | **`C1` Self-Contained Journal Snapshot & Recovery Independence:**<br>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](../docs/decisions/0006-ephemeral-sqlite-session-journal.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md), [docs/architecture.md](../docs/architecture.md) |
|
||||||
| **`BL-05`**<br>*(Cluster C2 partial)* | **Explicitly Accepted Portion of `C2` — No Historical Journal Migration:**<br>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](../docs/decisions/0006-ephemeral-sqlite-session-journal.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md) |
|
| **`BL-05`**<br>*(Cluster C2 partial)* | **Explicitly Accepted Portion of `C2` — No Historical Journal Migration:**<br>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](../docs/decisions/0006-ephemeral-sqlite-session-journal.md), [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md) |
|
||||||
| **`BL-06`**<br>*(Cluster D baseline)* | **Foundational Learning Registry, Workspace, Encryption, Provisioning & Service-Boundary Invariants:**<br>• One OS-wide persistent encrypted Learning Registry serves all workspaces on the host.<br>• Workspaces are logical provenance resolved via nearest-ancestor `.learning-workspace` marker (`workspace_id`), explicitly rejecting Git root as workspace boundary.<br>• Host provisioning is separate from `learningctl init` (`init` registers a workspace and never silently recreates a missing global DB).<br>• 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).<br>• 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.<br>• `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:**<br>• `SQLCipher` remains a **candidate**, not a selected implementation.<br>• Exact `"<major>.<minor>"` CLI `schema_version` string syntax remains unverified (`S1-14` / `D3b`, flagged open at `step 827`).<br>• 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](../docs/decisions/0008-two-product-repository-architecture.md), [ADR-0009](../docs/decisions/0009-modular-portable-reference-skills.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
| **`BL-06`**<br>*(Cluster D baseline)* | **Foundational Learning Registry, Workspace, Encryption, Provisioning & Service-Boundary Invariants:**<br>• One OS-wide persistent encrypted Learning Registry serves all workspaces on the host.<br>• Workspaces are logical provenance resolved via nearest-ancestor `.learning-workspace` marker (`workspace_id`), explicitly rejecting Git root as workspace boundary.<br>• Host provisioning is separate from `learningctl init` (`init` registers a workspace and never silently recreates a missing global DB).<br>• 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).<br>• 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.<br>• `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:**<br>• `SQLCipher` remains a **candidate**, not a selected implementation.<br>• Exact `"<major>.<minor>"` CLI `schema_version` string syntax remains unverified (`S1-14` / `D3b`, flagged open at `step 827`).<br>• 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](../docs/decisions/0008-two-product-repository-architecture.md), [ADR-0009](../docs/decisions/0009-modular-portable-reference-skills.md), new Issue #4 ADR(s) (`0010`+), [docs/architecture.md](../docs/architecture.md) |
|
||||||
@@ -80,9 +80,11 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Decision ID** | `B2.4.1` |
|
| **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`? |
|
| **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$). |
|
| **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$). |
|
||||||
| **Current proposal** | Define `schema_version` as a unified **Questionnaire Contract Version** governing structure, frozen optional-field defaults, and assessment-significant execution semantics, and propagate it into the attempt journal snapshot and `attempt.json` provenance (e.g., `questionnaire_schema_version`). |
|
| **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`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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`). |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-01`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-02` — `B2.4.2` (Semantic Immutability Boundary)
|
### `S1-02` — `B2.4.2` (Semantic Immutability Boundary)
|
||||||
@@ -91,10 +93,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-02` |
|
| **Task ID** | `S1-02` |
|
||||||
| **Decision ID** | `B2.4.2` |
|
| **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? |
|
| **Decision question** | Which changes to questionnaire interpretation or rendering require a new `schema_version` versus qualifying as contract-preserving implementation improvements? |
|
||||||
| **Already-settled constraints** | `step 849` framing constraint (cosmetic changes and internal refactoring do not require a new contract version). Prerequisite: `S1-01` (`B2.4.1`). |
|
| **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). |
|
||||||
| **Current proposal** | Require a new `schema_version` for any change altering valid inputs, optional-field meaning, learner interaction mechanics, timing enforcement, or exported response semantics; permit visual/CSS polish, accessibility fixes, internal refactoring, backward-compatible renderer upgrades, and spec-compliance bug fixes within the same 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. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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`).<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-02`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-03` — `B2.4.3` (Defaults and Explicit Configuration)
|
### `S1-03` — `B2.4.3` (Defaults and Explicit Configuration)
|
||||||
@@ -103,10 +107,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-03` |
|
| **Task ID** | `S1-03` |
|
||||||
| **Decision ID** | `B2.4.3` |
|
| **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? |
|
| **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`), `B2.1` (Pydantic defaults are never injected into $H_q$). Prerequisite: `S1-01` (`B2.4.1`). |
|
| **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`). |
|
||||||
| **Current proposal** | Require all assessment-significant behavioral settings (timing policy, question interaction types, selection bounds, objective mappings) to be explicitly authored, allowing omission only where omission permanently means *"absent / not applicable"* (such as omitted `assessment_id` in standalone mode or optional media/stimulus blocks). |
|
| **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. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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`).<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-03`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-04` — `B2.4.4` (Contract Version Support and Retirement)
|
### `S1-04` — `B2.4.4` (Contract Version Support and Retirement)
|
||||||
@@ -115,10 +121,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-04` |
|
| **Task ID** | `S1-04` |
|
||||||
| **Decision ID** | `B2.4.4` |
|
| **Decision ID** | `B2.4.4` |
|
||||||
| **Decision question** | How long must `live-quiz` support historical `schema_version`s, and how do `live-quiz`, the Learning Registry, and the Tutor behave when a contract version is eventually retired? |
|
| **Decision question** | How long must `live-quiz` support historical `schema_version`s, 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). Prerequisites: `S1-01` (`B2.4.1`), `S1-02` (`B2.4.2`). |
|
| **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`). |
|
||||||
| **Current proposal** | Freeze contract version semantics permanently in specifications, allow `live-quiz` to retire execution support only across major releases with fail-closed `UNSUPPORTED_SCHEMA_VERSION` errors on `validate`/`start`/`recover`, keep retired `AVAILABLE` definitions intact in the Registry for historical audit, and include engine `schema_version` support in the Tutor's reassessment pre-flight check. |
|
| **Approved decision** | Adopt **Option 1: Permanent Specification Freeze + Controlled Runtime Retirement + Registry Retention**.<br>1. **Normative specification:** The normative specification of every released `schema_version` remains permanently frozen.<br>2. **Runtime support:** `live-quiz` supports active `schema_version`s 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).<br>3. **Fail-closed execution:** `live-quiz validate`, `start`, and `recover` must reject unsupported `schema_version`s with `UNSUPPORTED_SCHEMA_VERSION`. The engine must never silently coerce, migrate, or reinterpret an unsupported questionnaire or journal.<br>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.)*<br>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_version`s must be prevented; the enforcement authority and mechanism are addressed by `S1-06` and `DEF-01`.<br>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`.<br>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.<br><br>Exact CLI interfaces, compatibility-query mechanisms, and error/exit-code mappings are deferred to `DEF-01`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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_version`s (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`. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-04`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-05` — `B2.4.5` (Migration and New Definitions Boundary)
|
### `S1-05` — `B2.4.5` (Migration and New Definitions Boundary)
|
||||||
@@ -127,10 +135,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-05` |
|
| **Task ID** | `S1-05` |
|
||||||
| **Decision ID** | `B2.4.5` |
|
| **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? |
|
| **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`, and `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_id`s). Prerequisite: `S1-01` (`B2.4.1`). |
|
| **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_id`s), and `S1-01`–`S1-04` (`B2.4.1`–`B2.4.4`). |
|
||||||
| **Current proposal** | Prohibit both in-place rewrites and mechanical CLI up-converters (`clone-upgrade`); when an older assessment uses a retired `schema_version`, require consent-gated authoring and registration of a new $(Q', R')$ pair under a fresh `assessment_id` linked strictly via shared learning objectives. |
|
| **Approved decision** | Adopt **Option 1: Prohibit In-Place Pair Rewrites and Registry-Side Mechanical Pair Up-Converters**.<br>1. **Immutable registered definitions:** `learningctl` and `learning-registryd` must not modify registered questionnaire/rubric pairs in place.<br>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).<br>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.<br>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.<br>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.<br>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](../docs/decisions/0007-atomic-json-export-contract.md)) are outside this prohibition.<br><br>Exact authoring workflow and tool interfaces are deferred to `DEF-01` and Stage 2. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-05`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-06` — `B2.5.1` (Boundary Hash Calculation and Verification Authority)
|
### `S1-06` — `B2.5.1` (Boundary Hash Calculation and Verification Authority)
|
||||||
@@ -139,10 +149,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-06` |
|
| **Task ID** | `S1-06` |
|
||||||
| **Decision ID** | `B2.5.1` |
|
| **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? |
|
| **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`), `B2.1`–`B2.3` (3-layer strict parser $\to$ JCS $\to$ SHA-256). |
|
| **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). |
|
||||||
| **Current proposal** | Have `live-quiz validate` output $H_q$ during authoring so `quiz-designer` embeds `expected_questionnaire_hash` in $R$; require `learning-registryd` to independently recompute and verify $H_q$ at registration; require `live-quiz start` to compute and store $H_q$ in the journal snapshot and `live-quiz recover` to re-validate and verify the snapshot digest before serving; and require `quiz-evaluator` and `learning-registryd` consolidation to verify $H_q$ correspondence across $Q$, $R$, `attempt.json`, and `evaluation.json` (while the Tutor never computes $H_q$). |
|
| **Approved decision** | Adopt **Option 1: Independent $H_q$ Computation at Definition/Ingestion Boundaries and Correspondence Verification at Consumer/Consolidation Boundaries**.<br>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.<br>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.<br>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.<br>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.<br>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$.<br>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`.<br>7. **Tutor:** `Tutor` does not calculate $H_q$ or perform cryptographic verification; it coordinates the workflow and relies on the responsible components' validation results.<br>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`).<br>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`.<br><br>Exact CLI interfaces, error contracts, and implementation details remain deferred to `DEF-01` and Stage 2. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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`).<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-06`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-07` — `B2.5.2` (Canonical Questionnaire Persistence Representation)
|
### `S1-07` — `B2.5.2` (Canonical Questionnaire Persistence Representation)
|
||||||
@@ -151,10 +163,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-07` |
|
| **Task ID** | `S1-07` |
|
||||||
| **Decision ID** | `B2.5.2` |
|
| **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? |
|
| **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`. Prerequisite: `S1-06` (`B2.5.1`). |
|
| **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`). |
|
||||||
| **Current proposal** | Persist exact Layer 2 RFC 8785 JCS canonical UTF-8 bytes alongside $H_q$ in both the Learning Registry and the `live-quiz` attempt journal, and write those stored canonical bytes directly during temporary questionnaire materialization without model re-serialization. |
|
| **Approved decision** | Adopt **Option 1: Persist Layer 2 RFC 8785 JCS Canonical UTF-8 Bytes Alongside $H_q$**.<br>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.<br>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`.<br>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).<br>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.<br>5. Concrete SQLite column representation (`BLOB` vs. `TEXT`) remains deferred to `DEF-01` / `DEF-05`.<br><br>**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. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-07`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-08` — `C2` (Legacy `attempt.json` `assessment_version` Policy)
|
### `S1-08` — `C2` (Legacy `attempt.json` `assessment_version` Policy)
|
||||||
@@ -163,10 +177,11 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-08` |
|
| **Task ID** | `S1-08` |
|
||||||
| **Decision ID** | `C2` |
|
| **Decision ID** | `C2` |
|
||||||
| **Decision question** | How should `live-quiz`, `quiz-evaluator`, and `learningctl` treat any `attempt.json` containing the removed `assessment_version` field? |
|
| **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). |
|
| **Already-settled constraints** | `BL-02` (`assessment_version` eliminated), `BL-05` (no historical journal migration needed; greenfield repository with zero prior deployments), and [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md). |
|
||||||
| **Current proposal** | Omit `assessment_version` from the initial `attempt.json` schema from day one and enforce fail-closed rejection via `extra="forbid"` whenever an input payload contains `assessment_version`, with zero legacy stripping or import shims (leaving static files on disk untouched unless passed to a validator). |
|
| **Approved decision** | Adopt **Option 1: Omit `assessment_version` from Day One + Fail-Closed Rejection + Zero Legacy Shims**.<br>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`.<br>2. **Contract-boundary strictness:** `extra="forbid"` applies specifically when parsing `attempt.json` as a contract artifact, not indiscriminately to unrelated JSON inputs.<br>3. **No mutation of static files:** Static files on disk containing `assessment_version` remain untouched unless supplied to a validator or consumer.<br>4. **No compatibility aliases or shims:** Do not introduce deprecated fields, stripping logic, import adapters, or conditional parsing paths.<br>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.<br><br>**`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. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **Provenance** | `USER_EXPLICIT` (approved `2026-11-15`; originating proposal `step 850`) |
|
||||||
|
| **Status** | `ACCEPTED_AS_PROPOSED` |
|
||||||
| **Tracker reference** | [issue-4-follow-through.md — `S1-08`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-08`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-09` — `D1a` (Registry Repository and Package Ownership)
|
### `S1-09` — `D1a` (Registry Repository and Package Ownership)
|
||||||
@@ -175,10 +190,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-09` |
|
| **Task ID** | `S1-09` |
|
||||||
| **Decision ID** | `D1a` |
|
| **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? |
|
| **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), `B2.3` (independent implementations without a shared runtime package), and [ADR-0008](../docs/decisions/0008-two-product-repository-architecture.md). |
|
| **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](../docs/decisions/0008-two-product-repository-architecture.md). |
|
||||||
| **Current proposal** | Keep the `live-quiz` repository as a single monorepo housing three strictly isolated top-level components (`live-quiz` engine, `learning-registry` package/daemon/CLI, and portable reference skills) sharing the CI conformance suite (`B2.3`) while enforcing zero cross-package Python imports in CI. |
|
| **Approved decision** | Adopt **Option 1: Single Multi-Component Monorepo inside `live-quiz`** (three independently implemented and independently deployable components, not a shared application):<br>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`).<br>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.<br>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.<br>4. **Stage 2 ADR update:** Stage 2 must amend or supersede [ADR-0008](../docs/decisions/0008-two-product-repository-architecture.md) to reflect the three-component monorepo architecture. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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`. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>*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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-09`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-10` — `D1b` (Workspace Marker Edge Cases, Fail-Closed Error Taxonomy & Migration Trigger)
|
### `S1-10` — `D1b` (Workspace Marker Edge Cases, Fail-Closed Error Taxonomy & Migration Trigger)
|
||||||
@@ -187,10 +204,11 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-10` |
|
| **Task ID** | `S1-10` |
|
||||||
| **Decision ID** | `D1b` |
|
| **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? |
|
| **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). |
|
| **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). |
|
||||||
| **Current proposal** | Make same-directory `learningctl init` idempotent when already registered, fail closed (`UNREGISTERED_WORKSPACE_MARKER`) when a marker file's `workspace_id` is unknown to the global DB, classify daemon/DB failures into deterministic categories (`NOT_PROVISIONED`, `MISSING_OR_LOCKED`, `CORRUPT`, `MIGRATION_REQUIRED`, `UNSUPPORTED_SCHEMA`), and require explicit out-of-band admin migration gated on a verified encrypted backup snapshot. |
|
| **Approved decision** | Adopt **Option 1: Idempotent Same-Dir `init` + Fail-Closed Unregistered Marker + 5-Class Error Taxonomy + Explicit Backup-Gated Out-of-Band Migration**.<br>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.<br>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).<br>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`).<br>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`). |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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.<br>• **Auto-re-registering unregistered `.learning-workspace` markers:** Rejected because it risks silently aliasing or dissociating `workspace_id` provenance (`BL-06`). |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **Provenance** | `USER_EXPLICIT` (approved `2026-11-15`; originating proposal `step 850`) |
|
||||||
|
| **Status** | `ACCEPTED_AS_PROPOSED` |
|
||||||
| **Tracker reference** | [issue-4-follow-through.md — `S1-10`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-10`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-11` — `D2a` (`REGISTERING` Status Visibility and `ABORTED` Tombstone Retention)
|
### `S1-11` — `D2a` (`REGISTERING` Status Visibility and `ABORTED` Tombstone Retention)
|
||||||
@@ -199,10 +217,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-11` |
|
| **Task ID** | `S1-11` |
|
||||||
| **Decision ID** | `D2a` |
|
| **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? |
|
| **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). |
|
| **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). |
|
||||||
| **Current proposal** | Surface incomplete `REGISTERING` definitions in a dedicated `incomplete_registrations` section of `learningctl status` (with no automatic TTL expiry, so the Tutor can prompt to finalize or abort), and transition aborted registrations to lightweight permanent `ABORTED` metadata tombstones (purging unverified draft $Q$/$R$ blobs while reserving `assessment_id`) hidden from both default `status` and `--all`. |
|
| **Approved decision** | Adopt **Option 1: Dedicated `incomplete_registrations` in `status` (No TTL) + Lightweight Permanent `ABORTED` Tombstones**.<br>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).<br>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.<br>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).<br>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.<br><br>Exact metadata columns, CLI representation, and administrative inspection interfaces remain deferred to `DEF-04` and `DEF-05`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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`. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **Rejected alternatives & rationale** | • **Omit `REGISTERING` from `learningctl status` (separate query only):** Rejected because it breaks `BL-08`'s single-call `Tutor` initialization snapshot.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-11`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-12` — `D2b` (Startup-Commit Acknowledgment and Temporary Questionnaire Cleanup Protocol)
|
### `S1-12` — `D2b` (Startup-Commit Acknowledgment and Temporary Questionnaire Cleanup Protocol)
|
||||||
@@ -211,10 +231,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-12` |
|
| **Task ID** | `S1-12` |
|
||||||
| **Decision ID** | `D2b` |
|
| **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? |
|
| **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) and `BL-07` (idempotent temp questionnaire cleanup via `learningctl`). Soft/informational implementation dependency: `S1-07` (`B2.5.2`). |
|
| **Already-settled constraints** | `BL-04` (`C1` durable snapshot before learner access), `BL-07` (idempotent temp questionnaire cleanup via `learningctl`), [ADR-0002](../docs/decisions/0002-harness-agnostic-process-lifecycle.md), and [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md). Soft/informational dependency: `S1-07` (`B2.5.2`). |
|
||||||
| **Current proposal** | Order `live-quiz start` startup as validate $\to$ durable SQLite journal snapshot commit (`C1`) $\to$ localhost TCP port bind $\to$ emit a single flushed `SESSION_READY` NDJSON line on `stdout` (`attempt_id`, `assessment_id`, `questionnaire_hash`, `url`), enabling immediate temp file cleanup upon receiving `SESSION_READY`. |
|
| **Approved decision** | Adopt **Option 1: Strict Startup Ordering + Explicitly Flushed `SESSION_READY` NDJSON on `stdout`**.<br>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`.<br>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.<br>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](../docs/decisions/0002-harness-agnostic-process-lifecycle.md) / [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md) in Stage 2).<br>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.<br>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.<br>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`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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`. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-12`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-13` — `D3a` (Read-Only Active-vs.-Recoverable Attempt Inspection Contract)
|
### `S1-13` — `D3a` (Read-Only Active-vs.-Recoverable Attempt Inspection Contract)
|
||||||
@@ -223,10 +245,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-13` |
|
| **Task ID** | `S1-13` |
|
||||||
| **Decision ID** | `D3a` |
|
| **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? |
|
| **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), and [ADR-0006](../docs/decisions/0006-ephemeral-sqlite-session-journal.md). |
|
| **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](../docs/decisions/0006-ephemeral-sqlite-session-journal.md), 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). |
|
||||||
| **Current proposal** | Have `live-quiz` hold an exclusive OS file lock (`flock`) on a sibling `attempt-<attempt-id>.lock` file for the full duration of a running session (`start` or `recover`) and expose a read-only batch CLI inspection command (`mode=ro` SQLite URI + non-unlinking lock probe) invoked by `learningctl status`. |
|
| **Approved decision** | Adopt **Option 1: Continuous `flock` + Read-Only Batch Inspection**.<br>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.<br>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`).<br>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.<br>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.<br>5. **Explicit anomaly & cleanup states:** Surface `CLEANUP_PENDING`, orphan `-wal`/`-shm` sidecars, and other inspection anomalies explicitly without automatic repair.<br>6. **Retired-version visibility:** Separate metadata inspection from execution-level validation so paused journals using retired `schema_version`s remain visible in `status` with recoverability (via a supporting engine) and current-engine executability represented separately.<br>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`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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`. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **Rejected alternatives & rationale** | • **PID-file liveness check:** Rejected due to stale-PID false positives after `SIGKILL` and PID-reuse collisions.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-13`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-14` — `D3b` (Service-Boundary Delegation Cutoff and `schema_version` Format)
|
### `S1-14` — `D3b` (Service-Boundary Delegation Cutoff and `schema_version` Format)
|
||||||
@@ -235,10 +259,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-14` |
|
| **Task ID** | `S1-14` |
|
||||||
| **Decision ID** | `D3b` |
|
| **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? |
|
| **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`). Prerequisite: `S1-09` (`D1a`). |
|
| **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). |
|
||||||
| **Current proposal** | Adopt `"<major>.<minor>"` (e.g., `"1.0"`) string format for every `learningctl --json` response, keep privileged host provisioning/key-escrow/migration/restore out of agent-facing `learningctl`, and delegate exact systemd unit directives, UDS paths/group names/modes, wire framing, and subcommand spellings to `DEF-04`/`DEF-05`. |
|
| **Approved decision** | Adopt **Option 1: `"<major>.<minor>"` String Format + Strict Agent/Admin Cutoff + `DEF-04`/`DEF-05` Delegation**.<br>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.<br>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`).<br>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).<br>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`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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`). |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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`.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-14`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-15` — `D4` (Out-of-Band Key Escrow, Backup Verification Gate & Operational Delegation)
|
### `S1-15` — `D4` (Out-of-Band Key Escrow, Backup Verification Gate & Operational Delegation)
|
||||||
@@ -247,10 +273,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-15` |
|
| **Task ID** | `S1-15` |
|
||||||
| **Decision ID** | `D4` |
|
| **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? |
|
| **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). Prerequisite: `S1-10` (`D1b`). |
|
| **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). |
|
||||||
| **Current proposal** | Require privileged admin out-of-band key escrow/import (never accessible via `learningctl` or stored in backup directories), enforce a stage-then-verify backup pipeline (stage an encrypted-to-encrypted backup $\to$ perform independent keyed integrity verification of the staged snapshot before atomic promotion into the verified catalog, never pruning the last verified recovery point), make the concrete integrity-check primitive conditional on the database/encryption implementation later selected in `DEF-05` (`SQLCipher` remains a candidate, not a decision), and delegate driver/schedule/retention tunables to `DEF-05`. |
|
| **Approved decision** | Adopt **Option 1: Out-of-Band Admin Key Escrow + Stage-Then-Verify Backup Gate (`DEF-05`-Conditional Primitive)**.<br>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.<br>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.<br>3. **Protect the last verified recovery point:** A failed backup or verification operation must never discard the last verified recovery point.<br>4. **Key availability for recoverability:** A snapshot counts as cryptographically recoverable only if its required key material remains available alongside passing DB integrity checks.<br>5. **Pre-migration snapshot gate:** `S1-10` destructive schema migrations require a freshly verified pre-migration encrypted snapshot and remain explicit administrative operations.<br>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).<br>7. **Candidate discipline:** `SQLCipher` remains a **candidate**, not a selected implementation.<br>8. **Deferrals:** Concrete engine-specific verification primitives, key management, escrow, rotation, retention, scheduling, credential mechanisms, and external synchronization are deferred to `DEF-05`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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`. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-15`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-16` — `E1` (Per-Execution Staging Slot Allocation and `--output` Destination Discipline)
|
### `S1-16` — `E1` (Per-Execution Staging Slot Allocation and `--output` Destination Discipline)
|
||||||
@@ -259,10 +287,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-16` |
|
| **Task ID** | `S1-16` |
|
||||||
| **Decision ID** | `E1` |
|
| **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`)? |
|
| **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](../docs/decisions/0007-atomic-json-export-contract.md). |
|
| **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](../docs/decisions/0007-atomic-json-export-contract.md) (single-file `--output <path>` idempotency and `CONFLICT_DIFFERENT_ATTEMPT` conflict rule). |
|
||||||
| **Current proposal** | Have `learningctl` allocate a unique per-execution staging directory slot (`<staging_root>/<interaction_id>/attempt.json`) during execution preparation and pass that explicit file path to `live-quiz start --output <path>` and `live-quiz recover --output <path>`, preserving [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md)'s single-attempt idempotent export contract without adding a separate `--output-dir` mode to `live-quiz`. |
|
| **Approved decision** | Adopt **Option 1: Registry-Allocated Per-Execution Staging Slots via Existing `--output <path>` Contract**.<br>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.<br>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.<br>3. **Same path on recovery:** `live-quiz start` and `live-quiz recover` for the same execution must pass the exact same `--output <path>`.<br>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`.<br>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`.<br>6. **Unchanged `ADR-0007` & standalone rules:** Standalone exports remain completely outside this slot allocation mechanism, and [ADR-0007](../docs/decisions/0007-atomic-json-export-contract.md)'s `CONFLICT_DIFFERENT_ATTEMPT` and same-`attempt_id` idempotency rules remain unchanged (zero `--output-dir` mode added to `live-quiz`). |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-16`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
### `S1-17` — `E2` (Pre-Consolidation Storage Split, Pre-Debrief Status Reconciliation & `ABANDONED` Payload Retention)
|
### `S1-17` — `E2` (Pre-Consolidation Storage Split, Pre-Debrief Status Reconciliation & `ABANDONED` Payload Retention)
|
||||||
@@ -271,10 +301,12 @@ Every entry below originated in `step 850` and requires an explicit user turn as
|
|||||||
| **Task ID** | `S1-17` |
|
| **Task ID** | `S1-17` |
|
||||||
| **Decision ID** | `E2` |
|
| **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? |
|
| **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). Any proposed modification replacing or altering a settled `BL-09` state requires explicit user authorization. Prerequisites: `S1-06` (`B2.5.1`), `S1-16` (`E1`). |
|
| **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). |
|
||||||
| **Current proposal** | Keep all five settled `BL-09` interaction lifecycle states unchanged while adding read-only `learningctl status` reconciliation of `E1` staging slots to identify un-evaluated staged `attempt.json` files (where `attempt.json` exists before `evaluation.json`) using `awaiting_evaluation`, where `awaiting_evaluation` is a derived, read-only status classification used to identify an incomplete staged interaction (it is not a persisted lifecycle state, does not modify the `BL-09` state set, and does not replace `PENDING_DEBRIEF`); store lightweight interaction envelopes and append-only lifecycle events in the encrypted registry while keeping unconsolidated payloads (`attempt.json`, `evaluation.json`, structured debrief checkpoints) in the `E1` staging slot (retained across `ABANDONED` so learner-requested reconsideration remains executable); and verify `B2.5.1` cryptographic/identifier correspondence and idempotent bundle digests before atomic `CONSOLIDATED` commit and staging slot cleanup. |
|
| **Approved decision** | Adopt **Option 1: Registry Envelopes/Events + `E1` Slot Payloads (Retained on `ABANDONED`) + Derived `awaiting_evaluation` + Bundle-Bound Idempotent Consolidation**.<br>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`).<br>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.<br>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`. |
|
||||||
| **Provenance** | `UNAPPROVED_RECOMMENDATION — step 850` |
|
| **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. |
|
||||||
| **Status** | `PENDING_USER_REVIEW` |
|
| **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.<br>• **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`](issue-4-follow-through.md) |
|
| **Tracker reference** | [issue-4-follow-through.md — `S1-17`](issue-4-follow-through.md) |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -53,23 +53,23 @@ In `step 850`, a runaway assistant response simulated synthetic `<USER_REQUEST>`
|
|||||||
|
|
||||||
| Task ID | Decision ID | Unresolved Architectural Commitment to Decide (Excluding Already-Settled Baseline) | Genuine Prerequisites | Explicit Completion Condition | Status | Resulting Artifact |
|
| Task ID | Decision ID | Unresolved Architectural Commitment to Decide (Excluding Already-Settled Baseline) | Genuine Prerequisites | Explicit Completion Condition | Status | Resulting Artifact |
|
||||||
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
||||||
| **`S1-01`** | **`B2.4.1`** | **Contract Version Scope:** Whether `questionnaire.json`'s `schema_version` governs unified structure + frozen optional defaults + assessment-significant execution semantics (vs. structure-only or split version fields), and how it propagates into attempt journal & `attempt.json` provenance. | None *(Settled `BL-03`, `B2.1`, step `849`)* | Explicit `USER_INPUT` recording a justified disposition for `B2.4.1`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-01`](issue-4-decision-ledger.md#s1-01--b241-contract-version-scope) |
|
| **`S1-01`** | **`B2.4.1`** | **Contract Version Scope:** Unified Questionnaire Contract Version governing (1) document structure/validation, (2) omitted optional-field defaults, (3) assessment-significant runtime execution semantics, and (4) questionnaire-defined response/export semantics (excluding cosmetic UI/refactoring); engine rejects unsupported versions (`S1-04`), journal inherits via `BL-04` snapshot without duplication, and `attempt.json` carries provenance (`DEF-01`). | None *(Settled `BL-03`, `B2.1`, step `849`)* | Explicit `USER_INPUT` recording a justified disposition for `B2.4.1`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-01`](issue-4-decision-ledger.md#s1-01--b241-contract-version-scope) |
|
||||||
| **`S1-02`** | **`B2.4.2`** | **Semantic Immutability Boundary:** Exact criterion separating contract-significant changes (requiring a new `schema_version`) from contract-preserving improvements (UI/CSS, accessibility, refactoring, compatible renderer patches, spec-compliance bug fixes). | `S1-01` (`B2.4.1`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.2`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-02`](issue-4-decision-ledger.md#s1-02--b242-semantic-immutability-boundary) |
|
| **`S1-02`** | **`B2.4.2`** | **Semantic Immutability Boundary:** Pillar-based normative-contract criterion requiring a new `schema_version` only when the normative questionnaire contract changes across `S1-01`'s 4 pillars (including resolving genuine spec ambiguity), while permitting cosmetic, accessibility, refactoring, equivalent renderer, and spec-compliance fixes within the same version; engine provenance kept separate from contract versioning. | `S1-01` (`B2.4.1`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.2`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-02`](issue-4-decision-ledger.md#s1-02--b242-semantic-immutability-boundary) |
|
||||||
| **`S1-03`** | **`B2.4.3`** | **Defaults & Explicit Configuration:** Which questionnaire settings must be explicitly authored (timing, interaction mode, objectives list, behavioral rules) vs. permitted as optional omissions with frozen *"absent/none"* meaning (standalone `assessment_id`, optional stimulus blocks). | `S1-01` (`B2.4.1`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.3`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-03`](issue-4-decision-ledger.md#s1-03--b243-defaults-and-explicit-configuration) |
|
| **`S1-03`** | **`B2.4.3`** | **Defaults & Explicit Configuration:** Explicit authoring required for all assessment-significant configuration (`schema_version`, timing policy, primitives/constraints, objective references, behavioral rules); omission allowed only with frozen *"absent / not applicable"* meaning (`assessment_id` in standalone mode, optional stimulus/grouping); schema must distinguish absent vs. `null` vs. `[]`, Pydantic must add no hidden behavior, $H_q$ stays raw parsed JSON, and exact fields + empty `objectives` (`[]`) policy defer to `DEF-01`/Stage 2. | `S1-01` (`B2.4.1`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.3`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-03`](issue-4-decision-ledger.md#s1-03--b243-defaults-and-explicit-configuration) |
|
||||||
| **`S1-04`** | **`B2.4.4`** | **Contract Version Support & Retirement:** Reconciling permanent semantic freeze with eventual engine retirement of legacy `schema_version`s (`UNSUPPORTED_SCHEMA_VERSION` fail-closed behavior, registry preservation of retired `AVAILABLE` records, and Tutor pre-flight compatibility check). | `S1-01`, `S1-02` (`B2.4.1`–`B2.4.2`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.4`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-04`](issue-4-decision-ledger.md#s1-04--b244-contract-version-support-and-retirement) |
|
| **`S1-04`** | **`B2.4.4`** | **Contract Version Support & Retirement:** Permanent spec freeze; major-release-only engine retirement after explicit deprecation notice; fail-closed `UNSUPPORTED_SCHEMA_VERSION` enforcement on `validate`/`start`/`recover`; in-flight journal preservation (recoverable via supporting engine, no silent discard/reinterpretation); historical Registry `AVAILABLE` retention separated from runtime executability (new retired registrations prevented via `S1-06`/`DEF-01`); advisory Tutor pre-flight; historical evaluation/audit independence; paused retired-version journal surfacing carried forward to `S1-13`/`DEF-01`. | `S1-01`, `S1-02` (`B2.4.1`–`B2.4.2`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.4`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-04`](issue-4-decision-ledger.md#s1-04--b244-contract-version-support-and-retirement) |
|
||||||
| **`S1-05`** | **`B2.4.5`** | **Migration & New Definitions Boundary:** Confirming whether `learningctl`/`learning-registryd` prohibits mechanical schema up-converters (`clone-upgrade`) in addition to prohibiting in-place pair rewrites, requiring consent-gated authoring of a new `assessment_id` linked only via shared objectives. | `S1-01` (`B2.4.1`, settled `BL-01`, `BL-02` & step `849`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.5`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-05`](issue-4-decision-ledger.md#s1-05--b245-migration-and-new-definitions-boundary) |
|
| **`S1-05`** | **`B2.4.5`** | **Migration & New Definitions Boundary:** Prohibit in-place pair rewrites and Registry-side `clone-upgrade` / derived-pair registration; cross-version replacements require fresh $(Q', R')$ authoring, pedagogical review, $Q'/R'$ alignment, full validation, `Tutor` consent, and a new lineage-free `assessment_id` linked via shared objectives. Authoring-side draft helpers remain allowed (unregistered drafts only); ordinary Registry DB migrations, serialization, validation, and export projections are excluded. | `S1-01` (`B2.4.1`, settled `BL-01`, `BL-02` & step `849`) | Explicit `USER_INPUT` recording a justified disposition for `B2.4.5`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-05`](issue-4-decision-ledger.md#s1-05--b245-migration-and-new-definitions-boundary) |
|
||||||
| **`S1-06`** | **`B2.5.1`** | **Boundary Hash Calculation & Verification Authority:** Assigning authoritative $H_q$ calculation vs. verification across authoring (`live-quiz validate` hash output), registration (`learning-registryd` independent recomputation), `live-quiz recover` (digest + structural re-validation), and `learning-registryd` consolidation. | None *(Settled `BL-03`, `BL-04`, `B2.1`–`B2.3`)* | Explicit `USER_INPUT` recording a justified disposition for `B2.5.1`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-06`](issue-4-decision-ledger.md#s1-06--b251-boundary-hash-calculation-and-verification-authority) |
|
| **`S1-06`** | **`B2.5.1`** | **Boundary Hash Calculation & Verification Authority:** Independent $H_q$ calculation/recomputation at authoring (`live-quiz validate` after `REGISTERING` `assessment_id` allocation), registration (`learning-registryd` full pair validation + `H_q` + independent active `schema_version` policy), `live-quiz start` (persisted journal + `questionnaire_hash = H_q` on all managed/standalone `attempt.json` exports), and `live-quiz recover`; `(R, attempt.json)` correspondence in `quiz-evaluator`; full 4-way bundle correspondence at `learning-registryd` consolidation; zero crypto in `Tutor`; independent `B2.1`–`B2.3` implementations (`DEF-02`). | `BL-03`, `BL-04`, `B2.1`–`B2.3`, `S1-04` (`B2.4.4`) | Explicit `USER_INPUT` recording a justified disposition for `B2.5.1`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-06`](issue-4-decision-ledger.md#s1-06--b251-boundary-hash-calculation-and-verification-authority) |
|
||||||
| **`S1-07`** | **`B2.5.2`** | **Canonical Questionnaire Persistence Representation:** Whether the Learning Registry (`AVAILABLE` payload) and `live-quiz` attempt journal (`C1` snapshot) store **canonical RFC 8785 JCS UTF-8 bytes** (direct `prepare-execution` write without model re-serialization) vs. raw authored JSON bytes. | `S1-06` (`B2.5.1`, settled `BL-04`, `BL-07`) | Explicit `USER_INPUT` recording a justified disposition for `B2.5.2`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-07`](issue-4-decision-ledger.md#s1-07--b252-canonical-questionnaire-persistence-representation) |
|
| **`S1-07`** | **`B2.5.2`** | **Canonical Questionnaire Persistence Representation:** Persist Layer 2 RFC 8785 JCS canonical UTF-8 bytes alongside $H_q$ in both the Learning Registry (`AVAILABLE`) and `live-quiz` journal (`BL-04`), with direct byte copy at `BL-07` materialization; formatting/key order discarded while `B2.2` Unicode code points remain intact; `recover` still runs full `S1-06` validation/rehashing; SQLite `BLOB`/`TEXT` deferred to `DEF-01`/`DEF-05`; archival source-file provenance excluded from this contract. | `S1-06` (`B2.5.1`, settled `BL-04`, `BL-07`) | Explicit `USER_INPUT` recording a justified disposition for `B2.5.2`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-07`](issue-4-decision-ledger.md#s1-07--b252-canonical-questionnaire-persistence-representation) |
|
||||||
| **`S1-08`** | **`C2`** | **Legacy `attempt.json` (`assessment_version`) Policy:** Confirming whether the initial `attempt.json` schema omits `assessment_version` from day one with fail-closed rejection and zero legacy import/stripping machinery (leaving static files on disk untouched). | None *(Settled `BL-02`, `BL-05`)* | Explicit `USER_INPUT` recording a justified disposition for `C2`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-08`](issue-4-decision-ledger.md#s1-08--c2-legacy-attemptjson-assessment_version-policy) |
|
| **`S1-08`** | **`C2`** | **Legacy `attempt.json` (`assessment_version`) Policy:** Omit `assessment_version` from day one with fail-closed `extra="forbid"` rejection at `attempt.json` contract boundaries across `live-quiz`, `quiz-evaluator`, and `learningctl`, zero compatibility aliases/stripping shims, static files untouched, conforming fixtures required, and JSON Schema/Pydantic closed-object parity (`DEF-01`). | None *(Settled `BL-02`, `BL-05`)* | Explicit `USER_INPUT` recording a justified disposition for `C2`. | `ACCEPTED_AS_PROPOSED` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-08`](issue-4-decision-ledger.md#s1-08--c2-legacy-attemptjson-assessment_version-policy) |
|
||||||
| **`S1-09`** | **`D1a`** | **Registry Repository & Package Ownership:** Whether `learningctl`, `learning-registryd`, and host provisioning live in a separate dedicated repository vs. a three-component monorepo inside the `live-quiz` repository. | None *(Settled `BL-06`, `B2.3`, `ADR-0008`)* | Explicit `USER_INPUT` recording a justified disposition for `D1a`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-09`](issue-4-decision-ledger.md#s1-09--d1a-registry-repository-and-package-ownership) |
|
| **`S1-09`** | **`D1a`** | **Registry Repository & Package Ownership:** Three-component monorepo inside `live-quiz` (`live-quiz`, `learning-registry`, `skills/`) with independent dependency/build/packaging boundaries, mechanically CI-enforced zero cross-package Python runtime imports (shared schemas & conformance vectors permitted), independent release/deployment lifecycles, and Stage 2 amendment/supersession of `ADR-0008`. | None *(Settled `BL-06`, `B2.3`, `ADR-0008`)* | Explicit `USER_INPUT` recording a justified disposition for `D1a`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-09`](issue-4-decision-ledger.md#s1-09--d1a-registry-repository-and-package-ownership) |
|
||||||
| **`S1-10`** | **`D1b`** | **Workspace Marker Edge Cases, Fail-Closed Taxonomy & Migration Trigger:** Handling duplicate same-dir `init` and unregistered `.learning-workspace` markers, classifying fail-closed DB states (`NOT_PROVISIONED`, `MISSING_OR_LOCKED`, `CORRUPT`, `MIGRATION_REQUIRED`, `UNSUPPORTED_SCHEMA`), and requiring explicit out-of-band backup-gated migrations. | None *(Settled `BL-06`)* | Explicit `USER_INPUT` recording a justified disposition for `D1b`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-10`](issue-4-decision-ledger.md#s1-10--d1b-workspace-marker-edge-cases-fail-closed-error-taxonomy--migration-trigger) |
|
| **`S1-10`** | **`D1b`** | **Workspace Marker Edge Cases, Fail-Closed Taxonomy & Migration Trigger:** Idempotent same-dir `learningctl init` when validly registered; fail-closed `UNREGISTERED_WORKSPACE_MARKER` for unknown markers; 5-class DB/daemon failure taxonomy (`NOT_PROVISIONED`, `MISSING_OR_LOCKED`, `CORRUPT`, `MIGRATION_REQUIRED`, `UNSUPPORTED_SCHEMA`, CLI shape deferred to `DEF-04`); explicit out-of-band admin migration gated on verified encrypted backup (`S1-15`). | None *(Settled `BL-06`)* | Explicit `USER_INPUT` recording a justified disposition for `D1b`. | `ACCEPTED_AS_PROPOSED` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-10`](issue-4-decision-ledger.md#s1-10--d1b-workspace-marker-edge-cases-fail-closed-error-taxonomy--migration-trigger) |
|
||||||
| **`S1-11`** | **`D2a`** | **`REGISTERING` Status Visibility & `ABORTED` Tombstone Retention:** Whether incomplete `REGISTERING` definitions appear in a dedicated `learningctl status` category (vs. separate query only) without TTL expiry, and how `ABORTED` tombstones/draft blobs are retained and hidden from ordinary status. | None *(Settled `BL-07`)* | Explicit `USER_INPUT` recording a justified disposition for `D2a`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-11`](issue-4-decision-ledger.md#s1-11--d2a-registering-status-visibility-and-aborted-tombstone-retention) |
|
| **`S1-11`** | **`D2a`** | **`REGISTERING` Status Visibility & `ABORTED` Tombstone Retention:** Surface `REGISTERING` in dedicated `incomplete_registrations` section of `learningctl status` (workspace-scoped default, `--all` cross-workspace, no TTL expiry); `Tutor` cannot auto-finalize or auto-abort; `ABORTED` hidden from learner `status`/`--all` while retaining permanent `assessment_id` reservation + admin audit metadata and purging unverified $Q$/$R$ drafts (`DEF-04`/`DEF-05`). | None *(Settled `BL-07`)* | Explicit `USER_INPUT` recording a justified disposition for `D2a`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-11`](issue-4-decision-ledger.md#s1-11--d2a-registering-status-visibility-and-aborted-tombstone-retention) |
|
||||||
| **`S1-12`** | **`D2b`** | **Startup-Commit Acknowledgment & Temp Questionnaire Cleanup Protocol:** How `live-quiz start` signals durable initial journal snapshot commitment (e.g., port-bind-first + `SESSION_READY` NDJSON line on `stdout` vs. split `init`/`serve`) so `learningctl` cleans up the temp questionnaire before the quiz ends. | None *(Hard prerequisite: settled `BL-04` / `C1` & `BL-07`; Soft / informational dependency: `S1-07` / `B2.5.2`)* | Explicit `USER_INPUT` recording a justified disposition for `D2b`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-12`](issue-4-decision-ledger.md#s1-12--d2b-startup-commit-acknowledgment-and-temporary-questionnaire-cleanup-protocol) |
|
| **`S1-12`** | **`D2b`** | **Startup-Commit Acknowledgment & Temp Questionnaire Cleanup Protocol:** Strict startup order (validate $\to$ durable `BL-04` journal commit $\to$ HTTP server readiness $\to$ flushed `SESSION_READY` NDJSON); exclusive NDJSON `stdout` (`stderr` diagnostics, continuous line draining, `ADR-0002`/`ADR-0007` reconciliation); temp-file owner idempotent cleanup independent of quiz completion & resilient to mid-startup commit-before-ready failure (`DEF-03`/`I9-01`). | None *(Hard prerequisite: settled `BL-04` / `C1` & `BL-07`; Soft / informational dependency: `S1-07` / `B2.5.2`)* | Explicit `USER_INPUT` recording a justified disposition for `D2b`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-12`](issue-4-decision-ledger.md#s1-12--d2b-startup-commit-acknowledgment-and-temporary-questionnaire-cleanup-protocol) |
|
||||||
| **`S1-13`** | **`D3a`** | **Read-Only Active-vs.-Recoverable Attempt Inspection Contract:** How `live-quiz` tracks active process liveness (continuous `attempt-<attempt-id>.lock` `flock`) and exposes a read-only (`mode=ro`, non-unlinking lock probe) batch inspection interface for `learningctl status`. | None *(Settled `BL-04`, `BL-08`, `ADR-0006`)* | Explicit `USER_INPUT` recording a justified disposition for `D3a`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-13`](issue-4-decision-ledger.md#s1-13--d3a-read-only-active-vs-recoverable-attempt-inspection-contract) |
|
| **`S1-13`** | **`D3a`** | **Read-Only Active-vs.-Recoverable Attempt Inspection Contract:** Continuous exclusive `flock` on `attempt-<attempt-id>.lock` (`start`/`recover`); read-only batch `live-quiz` CLI inspection (`BL-08`); non-creating, non-unlinking concurrency-safe lock probes (missing lock = anomaly); strict journal/sidecar filesystem non-mutation (`mode=ro` alone insufficient, no generic `immutable=1`); explicit `CLEANUP_PENDING`/orphan-sidecar anomaly reporting; retired-version recoverability vs. executability surfaced without execution-level validation (`S1-04`); CLI/SQLite/pruning details deferred to `DEF-03`. | None *(Settled `BL-04`, `BL-08`, `ADR-0006`)* | Explicit `USER_INPUT` recording a justified disposition for `D3a`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-13`](issue-4-decision-ledger.md#s1-13--d3a-read-only-active-vs-recoverable-attempt-inspection-contract) |
|
||||||
| **`S1-14`** | **`D3b`** | **Service-Boundary Delegation Cutoff & `schema_version` Format:** Confirming exact `"<major>.<minor>"` string format for per-command `learningctl --json` `schema_version` (flagged open at step `827`), agent-vs.-admin operation separation, and delegation of systemd/UDS/group/mode/CLI-spelling specifics. | `S1-09` (`D1a` repo boundary) | Explicit `USER_INPUT` recording a justified disposition for `D3b`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-14`](issue-4-decision-ledger.md#s1-14--d3b-service-boundary-delegation-cutoff-and-schema_version-format) |
|
| **`S1-14`** | **`D3b`** | **Service-Boundary Delegation Cutoff & `schema_version` Format:** Standardize `learningctl --json` per-command `schema_version` on `"<major>.<minor>"` strings (explicitly independent of `questionnaire.json`'s `schema_version` in `S1-01`–`S1-04`); keep host provisioning, key escrow, DB migration, and restore out of agent-facing `learningctl`; delegate systemd/UDS/group/mode/wire/subcommand details to `DEF-04`/`DEF-05`. | `S1-09` (`D1a` repo boundary) | Explicit `USER_INPUT` recording a justified disposition for `D3b`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-14`](issue-4-decision-ledger.md#s1-14--d3b-service-boundary-delegation-cutoff-and-schema_version-format) |
|
||||||
| **`S1-15`** | **`D4`** | **Out-of-Band Key Escrow, Backup Integrity Verification Gate & Operational Delegation:** Reconciling non-TPM cross-host portability with `learningctl` key exclusion via privileged admin out-of-band key escrow (separate from DB backups), enforcing independent keyed integrity verification before backup promotion (mechanism conditional on the DB/encryption implementation chosen in `DEF-05`; `SQLCipher` remains a candidate only, never pruning last verified point), and delegating driver/schedule/retention tunables. | `S1-10` (`D1b` fail-closed & pre-migration backup gate) | Explicit `USER_INPUT` recording a justified disposition for `D4`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-15`](issue-4-decision-ledger.md#s1-15--d4-out-of-band-key-escrow-backup-verification-gate--operational-delegation) |
|
| **`S1-15`** | **`D4`** | **Out-of-Band Key Escrow, Backup Verification Gate & Operational Delegation:** Privileged out-of-band key escrow/import separate from backups & `learningctl` (key loss $\neq$ DB corruption); stage $\to$ reopen & keyed engine/schema/metadata verification $\to$ atomic promotion (no full restore drill per promotion, never prune last verified point); key availability required for cryptographic recoverability; freshly verified snapshot before `S1-10` migrations; separate artifact integrity vs. cryptographic vs. operational recoverability; `SQLCipher` candidate only; primitives/escrow/rotation/retention/schedule/sync deferred to `DEF-05`. | `S1-10` (`D1b` fail-closed & pre-migration backup gate) | Explicit `USER_INPUT` recording a justified disposition for `D4`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-15`](issue-4-decision-ledger.md#s1-15--d4-out-of-band-key-escrow-backup-verification-gate--operational-delegation) |
|
||||||
| **`S1-16`** | **`E1`** | **Per-Execution Staging Slot Allocation & `--output` Destination Discipline:** Preventing reassessment/concurrent `CONFLICT_DIFFERENT_ATTEMPT` collisions before `live-quiz` generates `attempt_id` (e.g., `learningctl`-allocated per-execution staging slot passed via standard `--output <slot>/attempt.json` vs. engine `--output-dir` mode). | None *(Settled `BL-04`, `BL-09`, `ADR-0007`)* | Explicit `USER_INPUT` recording a justified disposition for `E1`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-16`](issue-4-decision-ledger.md#s1-16--e1-per-execution-staging-slot-allocation-and---output-destination-discipline) |
|
| **`S1-16`** | **`E1`** | **Per-Execution Staging Slot Allocation & `--output` Destination Discipline:** Separate `interaction_id` (Registry staging identity) from `attempt_id` (engine identity); allocate one immutable `<staging_root>/<interaction_id>/attempt.json` slot per managed run (validated ID under controlled root, never arbitrary agent path, never reused/reassigned if unused); pass identical `--output` path on `start`/`recover`; keep Registry allocation separate from filesystem ownership (`DEF-04`/`DEF-05`); preserve `ADR-0007` & standalone rules unchanged. | None *(Settled `BL-04`, `BL-09`, `ADR-0007`)* | Explicit `USER_INPUT` recording a justified disposition for `E1`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-16`](issue-4-decision-ledger.md#s1-16--e1-per-execution-staging-slot-allocation-and---output-destination-discipline) |
|
||||||
| **`S1-17`** | **`E2`** | **Pre-Consolidation Storage Split, Pre-Debrief Status Reconciliation & `ABANDONED` Payload Retention:** Preserving the settled `BL-09` lifecycle states (`PENDING_DEBRIEF`, `DEFERRED`, `PENDING_CONSOLIDATION`, `CONSOLIDATED`, `ABANDONED`) unchanged while deciding: (1) splitting pre-consolidation registry envelopes/append-only lifecycle events from staged payloads and structured debrief checkpoints (retained in `E1` slot across `ABANDONED`), (2) read-only `status` reconciliation surfacing un-evaluated staged `attempt.json` exports via `awaiting_evaluation` — where `awaiting_evaluation` is a derived, read-only status classification used to identify an incomplete staged interaction (it is not a persisted lifecycle state, does not modify the `BL-09` state set, and does not replace `PENDING_DEBRIEF`), and (3) `B2.5.1` transactional consolidation verification. Any modification to a settled `BL-09` state requires explicit user authorization. | `S1-06` (`B2.5.1`), `S1-16` (`E1`) *(plus settled `BL-09`; no hard prerequisite on `S1-07`/`B2.5.2`)* | Explicit `USER_INPUT` recording a justified disposition for `E2`. | `PENDING_USER_REVIEW` (`UNAPPROVED_RECOMMENDATION — step 850`) | [Ledger §3 — `S1-17`](issue-4-decision-ledger.md#s1-17--e2-pre-consolidation-storage-split-pre-debrief-status-reconciliation--abandoned-payload-retention) |
|
| **`S1-17`** | **`E2`** | **Pre-Consolidation Storage Split, Pre-Debrief Status Reconciliation & `ABANDONED` Payload Retention:** Registry DB stores envelopes + append-only events; `E1` stores unconsolidated `attempt.json`, `evaluation.json`, and structured checkpoints (no transcripts) retained across `ABANDONED` (no auto-revival; `E1` encryption/ownership/permissions/backup resolved pre-implementation in `DEF-04`/`DEF-05`); read-only `status` reconciliation surfaces `attempt.json`-without-`evaluation.json` via non-persistent `awaiting_evaluation` (leaving `BL-09` 5 states intact, anomalies surfaced, zero mutation/evaluation); atomic `CONSOLIDATED` + receipt bound to normalized `(attempt, evaluation, Tutor observations)` correspondence (`S1-06`, fail closed on mismatch) before `E1` cleanup; normalization/digest/schemas deferred to `DEF-04`/`DEF-05`. | `S1-06` (`B2.5.1`), `S1-16` (`E1`) *(plus settled `BL-09`; no hard prerequisite on `S1-07`/`B2.5.2`)* | Explicit `USER_INPUT` recording a justified disposition for `E2`. | `ACCEPTED_WITH_MODIFICATIONS` (`USER_EXPLICIT`, `2026-11-15`) | [Ledger §3 — `S1-17`](issue-4-decision-ledger.md#s1-17--e2-pre-consolidation-storage-split-pre-debrief-status-reconciliation--abandoned-payload-retention) |
|
||||||
| **`S1-18`** | **Closure** | **Verified Stage 1 Decision Closure Report:** Reconciled ledger of `A`–`E2` with verified `USER_EXPLICIT` provenance, explicit dispositions, dependency map, and deferred-items boundary. | `S1-01`–`S1-17` | Every atomic decision (`S1-01`–`S1-17`) has received one explicit disposition (`ACCEPTED_AS_PROPOSED`, `ACCEPTED_WITH_MODIFICATIONS`, `REJECTED_IN_FAVOR_OF_ALTERNATIVE`, `DEFERRED_WITH_JUSTIFICATION`, or `NOT_APPLICABLE_WITH_JUSTIFICATION`) backed by explicit user approval or user-authorized deferral, with provenance verified in [issue-4-decision-ledger.md](issue-4-decision-ledger.md). | **Blocked** (on `S1-01`–`S1-17`) | [issue-4-decision-ledger.md](issue-4-decision-ledger.md) |
|
| **`S1-18`** | **Closure** | **Verified Stage 1 Decision Closure Report:** Reconciled ledger of `A`–`E2` with verified `USER_EXPLICIT` provenance, explicit dispositions, dependency map, and deferred-items boundary. | `S1-01`–`S1-17` | Every atomic decision (`S1-01`–`S1-17`) has received one explicit disposition (`ACCEPTED_AS_PROPOSED`, `ACCEPTED_WITH_MODIFICATIONS`, `REJECTED_IN_FAVOR_OF_ALTERNATIVE`, `DEFERRED_WITH_JUSTIFICATION`, or `NOT_APPLICABLE_WITH_JUSTIFICATION`) backed by explicit user approval or user-authorized deferral, with provenance verified in [issue-4-decision-ledger.md](issue-4-decision-ledger.md). | **Blocked** (on `S1-01`–`S1-17`) | [issue-4-decision-ledger.md](issue-4-decision-ledger.md) |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in new issue
Block a user