Skip to content

fix(world): compact messages and idempotency on SQLITE_TOOBIG - #439

Merged
scrimshawlife-ctrl merged 1 commit into
mainfrom
fix/successor-enter-internal
Aug 21, 2026
Merged

scrimshawlife-ctrl merged 1 commit into
mainfrom
fix/successor-enter-internal

Conversation

@scrimshawlife-ctrl

Copy link
Copy Markdown
Contributor

Summary

Production ENTER still failed persist after fuel-actor compact (SQLITE_TOOBIG on the 2MB SQLite storage.put value cap). seen_idempotency stores full CommandResults (including LOOK affordances), so the world blob stayed over the limit.

On TOOBIG, also trim messages to the last 20 and clear seen_idempotency / trades. Mutating PLAY still fails closed if the compacted blob cannot persist. No reseed. Frozen genesis unchanged.

Test plan

  • vitest enter-command-do.test.ts (5/5) including size-based TOOBIG that remains over limit after fuel drop
  • production ENTER/LOOK/LEAVE with reach-maint3 after deploy

Fuel-only drop still left ENTER unable to persist. On TOOBIG, also
trim messages and clear seen_idempotency/trades so the world blob
fits the 2MB SQLite value cap. No reseed.
@scrimshawlife-ctrl
scrimshawlife-ctrl requested a review from a team as a code owner August 21, 2026 02:59
@scrimshawlife-ctrl
scrimshawlife-ctrl merged commit b94a389 into main Aug 21, 2026
4 of 6 checks passed
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