{
  "schema": "sim-proof/1",
  "pr": 2605,
  "issue": 2596,
  "commit": "ac25a1b1e80d1932a2029e2f189426bb8cc17cf3",
  "tier": "T3",
  "criteria": [
    {
      "id": "A1",
      "text": "Reproduce from N3's jam scene as a focused engine test that fails today: a mutual goal-occupied wait ends only at the one-minute bound.",
      "status": "met",
      "evidence": [
        "`node --test packages/engine-mars/src/goal-wait-cycle.test.ts` -> 2 pass; against main's walk.ts and waits.ts (only the read-only mutualWaits helper added) -> 2 fail: h_jam16, h_jam26 and h_jam18 route.blocked at ticks 1604, 1695 and 1809, longest two-body wait cycle 1193 ticks",
        "`node --test packages/engine-mars/src/goal-wait-cycle.test.ts` -> the cycle-recover/1-off test pins main's three bound refusals (1604, 1695, 1809) and its 1193-tick cycle"
      ]
    },
    {
      "id": "A2",
      "text": "The wait cycle is detected and resolved in a few seconds rather than a minute, by the existing deadlock recovery or the local steering of N5's design note (PR 2571). No new teleport, no movement path outside the walk. State hashes are unchanged on the walk-perf goldens and the walk gate wherever no such cycle occurs.",
      "status": "met",
      "evidence": [
        "`node --test packages/engine-mars/src/goal-wait-cycle.test.ts` -> pass: A1 scene's longest two-body wait cycle 61 ticks (1193 on main), at most 137 ticks over the 12 variants, no invariant violations",
        "`node --test` on 17 files in mars/viewer/engine/test (walk-perf, take-golden, captured-hash, walk, deadlock, deadlock-recovery, ...) -> 141 pass, no golden regenerated",
        "`node tools/test-harness/walk/walk.mjs` -> walk: no place worse than the baseline",
        "policy off: per-tick stateHash chains over 2200 ticks of the 12 jam variants identical to main 1655b393f"
      ]
    },
    {
      "id": "A3",
      "text": "Across the 12 variants, no walk ends by the one-minute bound.",
      "status": "met",
      "evidence": [
        "`node --test packages/engine-mars/src/goal-wait-cycle.test.ts` -> pass (A3 across the 12 variants)",
        "https://assets.eden.art/proofs/pr-2605/n6-jam-sweep.json"
      ]
    }
  ],
  "media": [],
  "checks": [
    {
      "cmd": "node --test packages/engine-mars/src/goal-wait-cycle.test.ts",
      "result": "pass",
      "note": "4 pass: policy off pinned to main, hash input, A1/A2 and A3 with cycle-recover/1 on"
    },
    {
      "cmd": "node --test apps/server/src/edge-runtime-rules.test.ts",
      "result": "pass",
      "note": "4 pass; cycle-recover/1 adopted at boot after cede-passage/1"
    },
    {
      "cmd": "per-tick stateHash chain, cycle-recover/1 off against main 1655b393f, 12 jam variants x 2200 ticks",
      "result": "pass",
      "note": "identical"
    },
    {
      "cmd": "node --test (mars/viewer/engine/test: captured-hash, deadlock-recovery, deadlock, make-way-claims, make-way-detour-snapshot, make-way-wait, open-jam, paired-walk, people-grid-patch, social-resume, social, take-golden, vehicle-deadlock, walk-perf, walk-point-at, walk-settle-wait, walk)",
      "result": "pass",
      "note": "141 pass, goldens unchanged"
    },
    {
      "cmd": "node --test (packages/engine-mars/src: cede-passage, concurrent-link-egress-policy, concurrent-link-egress, doorway-passing, item-approach-wait, make-way-detour-snapshot, shared-water-wait, stair-make-way, stall-release-support, wait-bound, goal-wait-cycle)",
      "result": "pass",
      "note": "68 pass (with runtime-policy-registry)"
    },
    {
      "cmd": "tsc --noEmit -p mars/viewer; -p packages/engine-mars; -p apps/server",
      "result": "pass",
      "note": "clean"
    },
    {
      "cmd": "node tools/test-harness/walk/walk.mjs",
      "result": "pass",
      "note": "walk: no place worse than the baseline (five worlds)"
    },
    {
      "cmd": "node .github/scripts/guards.mjs scrub --base origin/main",
      "result": "pass",
      "note": "0 problems"
    }
  ],
  "failedAttempts": [
    {
      "what": "step aside a body whose other walker stood on a stair leg",
      "why": "the clear-of-the-way test reads the other's walk leg; concurrent-link-egress.test.ts threw in pointAt",
      "evidence": "both of the pair must now be on walk legs, as resolveFaceoff requires under concurrentLinkEgressV1"
    },
    {
      "what": "require the stepping body to be still (v < 0.02)",
      "why": "a body settling at its goal reads 0.05, so the goal-occupied side never qualified",
      "evidence": "the check was dropped; the walk record must still be blocked"
    }
  ],
  "externalities": [
    {
      "what": "cycle-recover/1 off (history before its rules event)",
      "result": "tick-identical to main",
      "ok": true
    },
    {
      "what": "no cycle standing",
      "result": "no change, no extra work: goldens, walk gate and 6 of the 7 sweep variants that had no bound end on main end on the same tick",
      "ok": true
    },
    {
      "what": "a cycle standing 3 s",
      "result": "every recovery hook (walks, carries, rides via recoverRide) gets its one attempt at 3 s instead of 10 s for cycles, and the SequenceRunner's certified-blocked early stop comes 7 s sooner; accepted trade-off: in one sweep variant the last arrival is 176 ticks later (816 against 640)",
      "ok": true
    }
  ],
  "limits": [
    "Only two-body cycles step aside; a longer cycle keeps the existing re-plan only (none occurred in the 12 variants).",
    "If no face-off spot qualifies for either body, the wait falls back to today's behaviour.",
    "Native genesis only in the sweep; entity worlds' existing 1-s face-off usually acts first there.",
    "Clip waived by the coordinator: no kit stages a crowd at one spot."
  ],
  "playtest": {
    "scenario": "12-variant jam sweep (N3 PR 2595 scene: 30 bodies from 8 or 10 m to 1.9 or 2.4 m round one campfire, turned 0, 1/6 or 1/3 of a slot), fake minds, native genesis; deterministic, so repeats are byte-identical. Pass = no walk ends by the one-minute bound in any variant.",
    "arms": [
      {
        "name": "baseline",
        "repeats": 2,
        "passed": 0,
        "url": "https://assets.eden.art/proofs/pr-2605/n6-jam-sweep.json"
      },
      {
        "name": "candidate",
        "repeats": 2,
        "passed": 2,
        "url": "https://assets.eden.art/proofs/pr-2605/n6-jam-sweep.json"
      }
    ]
  },
  "files": [
    {
      "file": "n6-jam-sweep.json",
      "url": "https://assets.eden.art/proofs/pr-2605/n6-jam-sweep.json",
      "caption": ""
    }
  ]
}
