Skip to content

Extract todo and visor models behind shared Rust history access - #198

Merged
lannbot merged 1 commit into
mainfrom
refactor/model-history-crates
Sep 11, 2026
Merged

Extract todo and visor models behind shared Rust history access#198
lannbot merged 1 commit into
mainfrom
refactor/model-history-crates

Conversation

@lannbot

@lannbot lannbot commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Extract todo-model and visor-model Rust crates for domain schema and operations.
  • Share the document-history Automerge adapter and engine's schema-neutral Rust document access/publication interface between both consumers.
  • Keep one authoritative live document per partition in engine; kernel composes model operations and schedules browser checkpoints.
  • Remove engine's task/visor schema methods and production model dependencies. Plaintext membership/bootstrap remains in engine.
  • Publish every transaction authored by a model callback, including committed transactions preceding a domain error; document this partial-commit behavior and the distinction between engine acceptance and browser durability.
  • No new WIT, component isolation, migration, or compatibility layer. This is a trusted in-process refactor.

Verification

  • Astra review complete.
  • Formatting, Clippy, Deno checks, WIT validation, native tests and all 31 Chromium scenarios passed.
  • Model tests cover task CRUD/order and visor field patches/clearing/get-or-create.
  • Engine regression covers multiple transactions, peer sync, reload, and a committed transaction followed by a domain error.
  • Rustdoc for all three extracted crates passed without warnings.
  • Engine normal dependency tree includes document-history and neither model crate; models appear only as engine dev dependencies.

Automerge will be armed.

@lannbot
lannbot enabled auto-merge September 11, 2026 03:21
@lannbot
lannbot merged commit 31dcd33 into main Sep 11, 2026
2 checks passed
@lannbot
lannbot deleted the refactor/model-history-crates branch September 11, 2026 03:28
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.

2 participants