Skip to content

R06: complete Constructor V2 persisted history and safe versions - #159

Merged
Oleksii-debug merged 25 commits into
r06-compose-packaged-app-update-verify-0911from
r06-converge-constructor-v2-current-0912-sol
Sep 13, 2026
Merged

Oleksii-debug merged 25 commits into
r06-compose-packaged-app-update-verify-0911from
r06-converge-constructor-v2-current-0912-sol

Conversation

@Oleksii-debug

@Oleksii-debug Oleksii-debug commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

Completes Constructor V2 lifecycle/recovery on the canonical packaged lineage without creating a second constructor.

CURRENT EXACT BIND (post-#165 reconvergence, 2026-09-13):

  • candidate head: a4c00475cf1d499f2b4af4b8a546ab4f77722846
  • live canonical packaged ref: r06-compose-packaged-app-update-verify-0911@e247443432aad0f53c2820dabcd0d7afcdf3adeb
  • direct package→candidate compare: AHEAD / behind 0; merge-base exact e247443...; exactly 12 changed Constructor/qualification paths
  • reconvergence commit parents: first=e247443... package truth, second=7e704509... prior qualified Constructor head
  • R06: provider-agnostic speech / TTS foundation #165's four speech/TTS foundation paths have zero overlap with the Constructor delta and are preserved unchanged
  • PR remains DRAFT; changed head requires fresh terminal hosted qualification and DIFFERENT-worker exact-head QA before any READY/integration transition

Constructor V2 scope stays on the existing packaged AuthoringService seam:

  • persisted bounded undo/redo history across restart;
  • explicit snapshots + current/snapshot diff + safety snapshot before restore;
  • versioned publish artifacts and rollback-to-draft;
  • fail-closed compatibility pinned to canonical content-pack/content schema;
  • allowlisted application/transport commands and capability advertisement;
  • supplemental semantic keyboard UI mounted through the packaged shell;
  • recoverably atomic mutations through a durable per-draft write-ahead intent replayed idempotently on startup;
  • fault-injection restart coverage for save, undo, redo, snapshot restore, and version rollback across every durable component-write boundary.

The exact 12 lasting paths are the Constructor direct-qualification workflow plus lanes/dev1/repair_overlay/... Constructor frontend, application/authoring/transport and focused tests. The reconvergence reused the exact previously qualified blobs byte-for-byte; no source/corpus/content bytes were re-authored.

Fresh Actions on a4c00475... were triggered after reconvergence. The bounded Constructor qualification does not waive shared #146 whole-release DEV1 fidelity; any DEV1 pre-candidate reconstruction failure remains release-blocking outside this candidate-local scope.

Safety boundary remains fail-closed: publish/version operations set canonical_mutation_performed=false, require explicit integration review, and never write the canonical source-audited corpus. Rollback restores a DRAFT revision only. Cross-draft ownership, transaction identity/schema validation, and pack compatibility remain fail-closed.

No physical Windows 11/WebView2, human-NVDA, source-audit, visual, or final-release acceptance is claimed. Keep Draft until a DIFFERENT worker audits the exact current package/head pair.

Copy link
Copy Markdown
Owner Author

DIFFERENT-WORKER EXACT-HEAD QA — BLOCKED ON CRASH CONSISTENCY — 4b12806364f12d96cee9a8bfce6c834d47ae6212

The ordinary restart/happy-path lifecycle is well covered and the source boundary remains draft/version-only. However this exact head does not yet satisfy the project’s atomic-persistence / safe-recovery requirement for Constructor V2 mutations.

Concrete failure path from the candidate code: undo() pops the target from persisted undo history, appends current state to redo, and calls _write_history() before _restore_draft() persists the restored draft. A process/power failure between those two writes restarts with the old draft still current but the undo target already consumed. redo() has the symmetric window. restore_snapshot() and rollback_version() first persist a safety snapshot, then persist history via _remember_for_undo(), then finally persist the draft; interruption before the final draft write leaves metadata/history claiming a mutation boundary that never committed. save_draft() likewise persists its history mutation before the new draft. The new tests verify clean restart, not interruption between these writes.

Required bounded repair: make each Constructor V2 state-changing operation recoverably atomic across draft/history/(when applicable) safety-snapshot state — either one atomic persisted aggregate/transaction or a durable operation journal/intention+commit protocol with deterministic startup reconciliation. Add fault-injection/restart regressions at every inter-write boundary for at least undo, redo, snapshot restore, version rollback, and save-after-history. Do not weaken the existing cross-draft identity or canonical-write gates.

Separate bookkeeping finding: live changed-file enumeration is 8 paths, not the PR body’s stale 7-path count; update the candidate description after repair. Exact-head Actions are still qualification evidence, but green CI cannot override this recovery blocker. Fresh different-worker QA is required after any repair head. No physical Windows/WebView2/human-NVDA claim.

Reconverge PR #159 onto exact canonical packaged parent dba039b. Preserve current Research Export and Accessibility-era packaged changes while retaining the Constructor V2 lifecycle, recoverable write-ahead mutation journal, transport allowlist, semantic UI and fault-injection recovery tests. No canonical content/source mutation.
Use exact current packaged head 2651472 as first parent and prior qualified Constructor lineage 9fbda93 as second parent. Preserve the ten Constructor V2 paths while retaining all current package/pedagogy bytes.

Repair the packaged current-shell regression invariant to include the capability-gated Constructor V2 loader in the exact allowlist and Node syntax gate. This keeps loader composition fail-closed rather than weakening validation.

No canonical corpus/source-audit mutation; shared DEV1 reconstruction remains owned separately under #146. Candidate remains Draft pending fresh exact-head hosted qualification and DIFFERENT-worker QA.
First parent is exact canonical packaged 3104430. Second parent is repaired Constructor V2 aa092b2. Preserve current package as tree base and apply exactly the 12 Constructor/qualification paths; overlapping application/service.py and transport/contracts.py are semantic unions that retain Review Training start/finish/session behavior while adding recoverable Constructor V2 lifecycle/capabilities. No canonical source/corpus mutation.
First parent is exact canonical packaged 9c6ccaa after #161. Second parent is repaired Constructor V2 e896eee. #161 changes only runtime_gateway/source relation paths and has zero overlap with the 12 Constructor/qualification paths, so this tree preserves current package bytes and reapplies the exact repaired Constructor scope. No source/corpus mutation.
Use exact canonical package e247443 as first-parent/tree truth and prior qualified Constructor V2 head 7e70450 as second parent. Preserve the exact 12 Constructor/qualification blobs while retaining all new #165 speech/TTS foundation bytes. No source/corpus mutation.

Copy link
Copy Markdown
Owner Author

DIFFERENT-worker exact-head QA PASS on current package/head pair e247443432aad0f53c2820dabcd0d7afcdf3adeb → a4c00475cf1d499f2b4af4b8a546ab4f77722846.

No candidate-owned blocker found. Direct delta is exactly 12 Constructor/qualification paths; prior qualified Constructor head→current head changes only #165's four speech/TTS paths, so Constructor blobs are preserved. WAL/restart recovery, persisted undo/redo, snapshots/diff/history, fail-closed pack compatibility, version publish/rollback isolation from canonical source truth, allowlisted/data-only transport and semantic keyboard frontend were reviewed. Constructor Direct is SUCCESS on Ubuntu+Windows; QA67, Packaged Current Shell, DEV05/06/10 and Library/Search are SUCCESS. DEV1 remains external #146 reconstruction failure before candidate execution and is not waived as final-release evidence.

READY_FOR_INTEGRATION=YES, contingent on final live package/head/check late-bind. No physical Windows/WebView2/human-NVDA/final-release claim.

@Oleksii-debug
Oleksii-debug marked this pull request as ready for review September 13, 2026 02:19
@Oleksii-debug
Oleksii-debug merged commit 5628e6f into r06-compose-packaged-app-update-verify-0911 Sep 13, 2026
12 of 14 checks passed
Oleksii-debug added a commit that referenced this pull request Sep 13, 2026
Re-anchor exact previously-qualified #158 four-path Library bookmarks/notes delta onto current canonical package 5628e6f after integrated #159 Constructor V2. Package movement is disjoint from all four #158 paths; preserve exact #158 blobs byte-for-byte. FIRST parent is current package; SECOND parent is prior #158 head 9736729. Changed head requires fresh hosted qualification + DIFFERENT-worker QA before integration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant