Extract runtime journal core into star-journal #31
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/star-lang!31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "extract/runtime-journal-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Continue the one-authority extraction after PR #30 by moving the existing base runtime journal port/event/replay implementation out of
prototype/runtime-journal-port-prototype.lispinto finalstar-journal.Final authority
star-journalnow owns:star-actor-protocolCompatibility
prototype/runtime-journal-port-prototype.lispis reduced to a standalone loader, the historicalruntime-journal-errorcompatibility condition, and thin delegates to finalstar-journal.Prototype domain-remoting recovery code still owns replay interpretation, restoring dispatcher/gateway state, redelivery, terminal reconstruction, and remote recovery policy.
Deliberately preserved
The existing file journal remains readable S-expression persistence in this extraction. This PR does not silently change the persisted journal format to JSON merely because
star-canonical-jsonis now final-owned. A persistence-format migration needs its own compatibility decision and fixtures.Out of scope
Extraction metrics
CI on final head
381eb07d19596d2d70bba2efd82c8fc5b6bbfd78reports:prototype/**/*.lisp: 19,664 → 19,550 LOC (-114)prototype/runtime-journal-port-prototype.lisp: +34 / -148, net -114 linesstar-journal/src/journal.lisp: 191 LOCValidation
GitHub Actions is green:
asdf:test-system :star-actor-protocol✅asdf:test-system :star-canonical-json✅asdf:test-system :star-journal✅ in a fresh process without the prototype packageasdf:test-system :star-mailbox✅asdf:test-system :star-sento-compat✅asdf:test-system :starlang-runtime✅asdf:test-system :starlang-prototype✅ — 34 standalone scriptsnix flake check --print-build-logs✅Remaining journal authority
Domain-remoting journal orchestration remains prototype-owned: event interpretation, gateway restoration, redelivery, terminal reconstruction, and dispatcher-state recovery. This PR does not duplicate those behaviors in
star-journal.Next slice
Proceed to the existing lease/fencing primitive boundary before runtime-directory/dispatcher extraction, unless repository evidence shows the lease code is inseparable from domain-remoting orchestration.