myxce/.kiro/specs/scheduler-sim-decision-parity
Rongsong Shen f11f0df3bd
test(scheduler-sim-decision-parity): add resource-contention replay fixture (task 1.2)
Adds a dual-use .replay fixture (3 jobs competing for insufficient worker
capacity) that later tasks need to prove capacity-aware parity under
contention: a real recorded normal-mode session (built by driving the
genuine sched_check_host_satisfy()/sched_commit_job_alloc() capacity/
accounting chain, not mocked) that is also directly replayable through the
real simulation driver. Two tests: fixture shape (job B genuinely denied
while A+C hold the full 10.0-unit capacity, verified against the decoded
recorded decision stream) and sim-driver replayability.

RED-phase proven: raising WORKER_CAPACITY to eliminate contention makes the
shape assertion fail as expected before reverting to the genuine-contention
value. 44/45 scheduler tests pass; the 1 failure is pre-existing bug-1560
(unrelated).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-22 06:37:04 +00:00
..
brief.md docs(scheduler-sim-decision-parity): finalize design and generate tasks 2026-08-22 05:30:49 +00:00
design.md docs(scheduler-sim-decision-parity): finalize design and generate tasks 2026-08-22 05:30:49 +00:00
requirements.md docs(scheduler): document driver-equivalence invariant, scope decision-parity fix spec 2026-08-22 02:52:00 +00:00
research.md docs(scheduler-sim-decision-parity): finalize design and generate tasks 2026-08-22 05:30:49 +00:00
spec.json docs(scheduler-sim-decision-parity): finalize design and generate tasks 2026-08-22 05:30:49 +00:00
tasks.md test(scheduler-sim-decision-parity): add resource-contention replay fixture (task 1.2) 2026-08-22 06:37:04 +00:00