Replaces sim_loop.c's monolithic xce_core_go() with the same xce_core_begin_session() -> sched_account_jobs() -> xce_core_signal_go() sequence driver.c already uses for normal-mode rounds, opening the same interleaving window and calling the now-core-level accounting service (task 1.1) at the same relative position. Error-handling for a failed session start is preserved byte-for-byte (same cleanup, same rc source). Both interactive and batch simulation runs go through this one call site. This is bug-1613's wiring half: sim_loop.c now calls sched_account_jobs() at all (it never did before). resInUse is still zero end-to-end after this task alone, because job->accounts is never populated by any live path in sim mode yet -- that's Recorded-Decision Reconciliation (tasks 2.2-2.4), not yet implemented; a comment marks where it slots in. Adds a call-count/session-window regression test proving the wiring itself (RED-phase reproduced live via git stash + rebuild, matching bug-1613's symptom exactly). 8 sibling white-box test files needed a link-satisfying sched_account_jobs() stub, discovered via actual linker errors. 45/46 scheduler tests pass; the 1 failure is pre-existing bug-1560 (unrelated). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| settings | ||
| specs | ||
| steering | ||