Skip to content

feat(state/sqlite): runtime/trace tables and Store API (#10)#42

Merged
leo-aa88 merged 1 commit into
mainfrom
issue/10-runtime-trace-storage
Apr 11, 2026
Merged

feat(state/sqlite): runtime/trace tables and Store API (#10)#42
leo-aa88 merged 1 commit into
mainfrom
issue/10-runtime-trace-storage

Conversation

@leo-aa88
Copy link
Copy Markdown
Member

@leo-aa88 leo-aa88 commented Apr 11, 2026

Add migration 002 for runs, run_steps, trace_events per design §14.2 with indexes and FK to runs (CASCADE). Enable PRAGMA foreign_keys after open.

Expose StartRun, FinishRun, UpsertRunStep, AppendTraceEvent (monotonic seq), GetRun, ListTraceEventsByRunID. Document FK vs app-level checks in package doc.

Integration test: start run, append events, query by run_id; FK rejects orphan events.

Closes #10

Made-with: Cursor

Add migration 002 for runs, run_steps, trace_events per design §14.2 with
indexes and FK to runs (CASCADE). Enable PRAGMA foreign_keys after open.

Expose StartRun, FinishRun, UpsertRunStep, AppendTraceEvent (monotonic seq),
GetRun, ListTraceEventsByRunID. Document FK vs app-level checks in package doc.

Integration test: start run, append events, query by run_id; FK rejects orphan events.

Made-with: Cursor
@leo-aa88 leo-aa88 merged commit dfd75d4 into main Apr 11, 2026
4 checks passed
@leo-aa88 leo-aa88 deleted the issue/10-runtime-trace-storage branch April 11, 2026 08:46
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.

[MVP] SQLite runtime and trace storage (runs, run_steps, trace_events)

1 participant