clone

a browser grid puzzle game where you push words around to rewrite the rules of each level

main
miau-is-true / openspec / changes / archive / 2026-09-24-fix-same-entity-win / proposal.md
proposal.md 1.1K source

Why

Proof 03 can form MIAU IS YOU AND WIN, but the engine currently checks victory only when two different entities overlap, so a same entity carrying both properties never wins. This fix restores the intended first-release meaning of WIN while making contact-effect precedence explicit and testable.

What Changes

  • Treat a settled entity with both YOU and WIN as a victory when the turn resolves.
  • Preserve the existing precedence for SINK and DEFEAT: destruction prevents that entity from winning in the same contact resolution.
  • Add engine fixtures for same-entity win, separate-entity win, sink/defeat precedence, undo/reset, and proof 03 regression coverage.
  • Add browser acceptance for the proof 03 win card and settled move result.

Capabilities

New Capabilities

None.

Modified Capabilities

  • rule-engine: define same-entity YOU + WIN victory and its contact-effect precedence.

Impact

The change affects src/engine.js, engine fixtures, proof 03 browser coverage, and the settled event's won result consumed by the existing stage. It does not add vocabulary, change pack formats, or alter the stage scene contract.