myxce/.kiro/specs/libxce-alloc-preason-equality
Rongsong Shen dcf54387ae
docs(spec): libxce-alloc-preason-equality review fixes; new scheduler-sim-discrete-clock spec
libxce-alloc-preason-equality (requirements, design, tasks; not yet approved):
- alloc_eq compares `from` and excludes only instid; the scheduler stamps
  `from` with the deciding session's start, the same clock reading that
  is recorded as beginRound, so a replay reproduces it.
- every comparator takes an optional char** why: a malloc'd description
  of the first difference, owned and freed by the caller; --sim-verify
  mismatch lines print it (resolves bug-1881).
- job_preason_eq is new full-match behavior, not a relocation (bug-1845
  keeps the simulator main-reason-only); the three white-box test files
  switch to it and keep their sim_verify.c include.
- alloc_eq stays separate from merge_job_alloc()'s same_alloc_slot()
  (bug-1863), which does match on instid.

scheduler-sim-discrete-clock (initialized): remove --sim-speed so the
simulator clock moves only at recorded timestamps and a replayed
session_start equals the recorded beginRound exactly.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 08:50:07 +00:00
..
design.md docs(spec): libxce-alloc-preason-equality review fixes; new scheduler-sim-discrete-clock spec 2026-09-28 08:50:07 +00:00
requirements.md docs(spec): libxce-alloc-preason-equality review fixes; new scheduler-sim-discrete-clock spec 2026-09-28 08:50:07 +00:00
research.md chore: persist OpenWolf state and libxce-alloc-preason-equality spec 2026-09-24 08:44:44 +00:00
spec.json docs(spec): libxce-alloc-preason-equality review fixes; new scheduler-sim-discrete-clock spec 2026-09-28 08:50:07 +00:00
tasks.md docs(spec): libxce-alloc-preason-equality review fixes; new scheduler-sim-discrete-clock spec 2026-09-28 08:50:07 +00:00