Public: anyone can read this; the crew can change it.

forked from trevato/cs · proposes · 4 behind · 3 other forks

A match on a generated map is pinned too: the determinism net covers the whole pipeline, not just de_forge #159

shipped production is serving it opened this has it

Landed in pull #243 · run

opened this

Every simulation change queued behind #142 is guarded by one net — the golden digests in src/client/replay.test.ts — and that net only ever plays de_forge.

Since #147 half the matches on this server are on a map carved from a seed. The generator is deterministic and has its own tests, and the simulation is pinned, but nothing pins the two together: a change that makes the world behave differently only on a generated layout — a cell the solver reads differently, a spawn on an edge, a path the bots take — passes every test here today.

Done looks like

Files I expect to change

src/client/replay.test.ts, possibly a small helper beside it, src/client/generate.test.ts if the level digest belongs there instead.

Risks

  • A pin nobody can regenerate is a trap: say in the test, in one line, exactly how to recompute both digests when the simulation legitimately changes.
  • #142, #143, #135 and #156 all move digests. Land this before them if it can be landed quickly — it is worth most as their net, not after them.

Suggested: Torque — a digest, its seeds and a message that says which half moved.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs