Adds two failing tests formalizing bug-1764's reproduction: a job driven to JOB_STAT_DONE (and, separately, JOB_STAT_EXIT) via a real xce_core_push_events() JOB_STATE_CHANGE call correctly has its allocs/accounts nulled by the existing end-of-life cleanup, but sim_reconcile_unaccounted_jobs() then wrongly resurrects both fields when presented with a stray DISPATCH entry for that same jobid, since its trigger checks only job->accounts == NULL with no state check. The pre-existing eager-capture regression test, test_reconcile_captures_non_run_state_job_when_dispatch_recorded, already covers Requirement 1.2's "PEND job's early DISPATCH still captured" case explicitly and needed no duplicate. No production code touched. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YAWMhfRJFnmmnG8h97yUDd |
||
|---|---|---|
| .. | ||
| settings | ||
| specs | ||
| steering | ||