Skip to content

Journal an initializing event during model load - #156

Open
johnsabath wants to merge 1 commit into
mainfrom
john/initializing-journal-event
Open

Journal an initializing event during model load#156
johnsabath wants to merge 1 commit into
mainfrom
john/initializing-journal-event

Conversation

@johnsabath

@johnsabath johnsabath commented Aug 27, 2026

Copy link
Copy Markdown

Between boot and initialization_success, the runner emits nothing on /events, so the model-load window reads as silence — a consumer replaying the journal cannot tell a loading runtime from a dead one.

Add a SessionEvent.INITIALIZING self-loop, legal only in CREATED, sent once at boot before the (blocking) load. It moves no state and touches no side effect — the bridge is not built yet — so it is a pure journal record. A consumer subscribed to /events now observes the loading phase directly, ahead of initialization_success.

Proved by a unit test that replays the boot journal over SSE — initializing, then initialization_success — plus the transition-table test covering legal-in-CREATED and rejected-elsewhere.

@johnsabath
johnsabath force-pushed the john/initializing-journal-event branch from 78b2f6b to c079dd2 Compare August 27, 2026 19:57
The runner emits nothing on /events between boot and initialization_success,
so the model-load window reads as silence — a consumer replaying the journal
cannot tell a loading runtime from a dead one.

Add a SessionEvent.INITIALIZING self-loop, legal only in CREATED, sent once at
boot before the (blocking) load. It changes no state and touches no side effect
(the bridge is not built yet), so a consumer replaying /events observes the
loading phase directly, ahead of initialization_success.

Signed-off-by: John Sabath <john@reactor.inc>
@johnsabath
johnsabath force-pushed the john/initializing-journal-event branch from c079dd2 to f13658e Compare August 27, 2026 20:10
@johnsabath
johnsabath marked this pull request as ready for review August 27, 2026 20:11
@johnsabath
johnsabath requested a review from a team as a code owner August 27, 2026 20:11
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