Event log schema versioning #4
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
Per-run files will contain both aggregated stats and a full event log (Option Z decision). Once a run file is written, its schema is frozen. Later schema changes need to remain readable.
Requirements
Initial schema (draft)
```json
{
"schema_version": 1,
"run_id": "uuid",
"started_at": "iso8601",
"ended_at": "iso8601",
"character": "KIN",
"ascension": 0,
"floor_reached": 12,
"outcome": "win|loss|in_progress",
"aggregates": { ... per-card aggregated stats ... },
"events": [ ... per-play event log ... ]
}
```
Blocking
MVP (M1) — we need schema_version from day one.
Closing this as resolved.
This is now implemented in commit
e48f29dcf6562c542f0765b4b2b633cedd720995(Implement schema-aware run loading and tests).What shipped:
v2shapev1pooled files are still readable as historical data, but are explicitly rejected as live resume statev1,v2, and unknown-schema file shapesVerification:
dotnet test Tests/CardUtilityStats.Core.Tests/CardUtilityStats.Core.Tests.csproj -c Debugpasses (6/6)F5between combats / between roomsDeliberate non-change:
_pendingCombatacross mid-combat reloads. That is a separate problem from schema versioning.