Harden schema version workflow for parallel relic stats #156
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#156
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?
Problem
Relic stats often add persisted fields to
RunData. Under the current convention, each persisted field addition usually requires a schema bump, a new fixture, and updates to schema-loading tests.That is correct in principle, but it is easy for issue-agent implementations to make partial schema updates. The Happy Flower run was a concrete example: it bumped
CurrentSchemaVersionfrom v18 to v19 and correctly reclassified the v18 fixture as legacy in the test name, but left the oldAssert.False(loaded.IsLegacy)assertion in place. Verification caught the regression before PR creation.Why This Gets Painful
Current Recommendation
Keep schema versioning. It is still useful because it proves older run files remain loadable and resumable after additive changes.
Harden the workflow around it:
IsLegacyassertions with a generic assertion derived from fixture schema version:loaded.IsLegacy == (loaded.SourceSchemaVersion != RunData.CurrentSchemaVersion)RunData.CurrentSchemaVersion, compare against currentorigin/mainDesired Outcome
Agents should be able to add persisted relic stats without hand-maintaining fragile schema assertions, and parallel relic work should fail early and legibly when schema sequencing conflicts occur.