Skip to content

test: add engine state immutability coverage#9

Merged
rlippmann merged 1 commit intomainfrom
codex/engine-state-immutability-tests
Apr 18, 2026
Merged

test: add engine state immutability coverage#9
rlippmann merged 1 commit intomainfrom
codex/engine-state-immutability-tests

Conversation

@rlippmann
Copy link
Copy Markdown
Owner

@rlippmann rlippmann commented Apr 18, 2026

Summary

  • add test-only coverage for engine state external immutability
  • verify mutating engine.state snapshots does not affect internal engine state
  • verify constructor input object is not aliased after createEngine({ state })
  • verify mutating decision.state does not affect internal engine state

Scope

  • tests only
  • no engine/runtime changes

Verification

  • npm test -- tests/engine_state_immutability.test.ts
  • npm test

@rlippmann rlippmann merged commit 2212923 into main Apr 18, 2026
1 check passed
@rlippmann rlippmann deleted the codex/engine-state-immutability-tests branch April 18, 2026 08:21
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