Skip to content

Give each run a session directory with structured events - #12

Merged
rodchristiansen merged 1 commit into
mainfrom
feat/session-layout
Sep 3, 2026
Merged

Give each run a session directory with structured events#12
rodchristiansen merged 1 commit into
mainfrom
feat/session-layout

Conversation

@rodchristiansen

Copy link
Copy Markdown
Contributor

A run now owns logs/YYYY-MM-DD/HHMMSS/, holding bootstrap.log beside events.jsonl and session.json, which is the layout the managed-software tools already use.

Every line written to the human log is also appended as a JSON record, with a leading [TAG] lifted into the event's type and status — [SUCCESS] becomes status: SUCCESS, [SKIPPED] becomes SKIPPED, [PROGRESS] and [SUB-PROGRESS] become PROGRESS, an unrecognised bracket is left in the message rather than invented into a type. session.json is written when the run starts, so a run that never finishes still leaves a running record, and rewritten at the end with the outcome, duration, tool version, environment and counts.

Retention now drops day directories past 30 days and session directories past a cap of 100, and still sweeps the flat per-run files the old layout left at the logs root. The app's log viewer lists session directories and those flat files together, newest first.

Closes #11

A run now owns logs/YYYY-MM-DD/HHMMSS/, holding bootstrap.log beside events.jsonl and session.json, matching the layout the managed-software tools already use. Every line written to the human log is also appended as a JSON record with its bracketed tag lifted into an event type and status, and session.json carries the run type, outcome, tool version, environment and counts. Retention drops day directories past 30 days and session directories past a cap of 100, and still sweeps the flat per-run files the old layout left.
@rodchristiansen
rodchristiansen merged commit 7b431f0 into main Sep 3, 2026
2 checks passed
@rodchristiansen
rodchristiansen deleted the feat/session-layout branch September 3, 2026 08:15
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.

Give each run a session directory with structured events

1 participant