Skip to content

fix rewrite targeting after chapter rollback#143

Open
185259536 wants to merge 1 commit intoNarcooo:masterfrom
185259536:fix/rewrite-rollback-target
Open

fix rewrite targeting after chapter rollback#143
185259536 wants to merge 1 commit intoNarcooo:masterfrom
185259536:fix/rewrite-rollback-target

Conversation

@185259536
Copy link
Copy Markdown

Summary

  • fail inkos write rewrite before deleting chapters when the rollback snapshot is missing
  • verify rollback restores the requested rewrite target before regenerating and clean stale optional truth files during state restore
  • add CLI and state-manager regression coverage for missing snapshots and stale rollback artifacts

Test plan

  • pnpm --filter @actalk/inkos-core test -- packages/core/src/__tests__/state-manager.test.ts
  • pnpm --filter @actalk/inkos test -- packages/cli/src/__tests__/cli-integration.test.ts
  • Unable to run locally in this session because vitest is unavailable and node_modules is missing

🤖 Generated with Claude Code

Fail rewrite early when the rollback snapshot is missing or resolves to the wrong next chapter, and clear stale optional truth files during state restore so rewrite cannot silently advance to the next chapter.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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