myxce/src/scheduler/include
Rongsong Shen 3106c82ed0
feat(scheduler-sim-decision-parity): relocate resource accounting to core-level (task 1.1)
Relocates sched_account_jobs()/sched_charge_account()/sched_uncharge_account()/
sched_update_account()/sched_update_res_accounts()/sched_commit_job_alloc()
from xce_scheduler_t* to xce_sched_core_t*, mirroring the sched_resolve_job_picker()
precedent, so the simulation driver can call the same accounting service the
normal-mode driver already uses. Pure signature relocation -- every body
reference was already sched->core.*, no logic change. Updates the 3 real call
sites (driver.c's normal-mode round, scheduler.c's sched_begin_session and
sched_commit_decision) and 7 existing tests' link-satisfying stub signatures.

Adds test_resource_accounting.c proving Requirement 1.4: the relocated
accounting produces identical resInUse/sharedInUse output whether called
against a core embedded in xce_scheduler_t or xce_sched_sim_driver_t.

43/44 scheduler tests pass; the 1 failure is pre-existing bug-1560
(unrelated recording.c sandbox-permission ordering issue).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-22 06:04:03 +00:00
..
sched feat(scheduler-core): add picker configuration fields (task 1.3) 2026-08-03 05:45:53 +00:00
core.h feat(scheduler-sim-decision-parity): relocate resource accounting to core-level (task 1.1) 2026-08-22 06:04:03 +00:00
decision.h feat(scheduler-core): implement session-start signal + decision callback (task 4.4) 2026-08-04 03:08:18 +00:00
driver.h feat(scheduler-core): implement record start/stop lifecycle (task 9.2) 2026-08-05 09:07:51 +00:00
plugin.h feat(scheduler-core): implement simulation event loop and virtual clock advancement (task 11.2) 2026-08-06 10:27:40 +00:00
recording.h feat(scheduler-core): implement what-if branching and simulation output recording (task 11.5) 2026-08-07 02:42:50 +00:00
repl.h fix(scheduler): clock/resval/jobid-format fixes plus REPL live-operator gaps (task 12.5) 2026-08-19 09:48:46 +00:00
scheduler.h feat(scheduler-sim-decision-parity): relocate resource accounting to core-level (task 1.1) 2026-08-22 06:04:03 +00:00
sim.h feat(scheduler-core): implement REPL execution control (task 12.1) 2026-08-07 08:17:35 +00:00