From ca01509f1b2b37ae9c250dca07216b3e570b65d4 Mon Sep 17 00:00:00 2001 From: Rongsong Shen Date: Sat, 22 Aug 2026 13:11:34 +0000 Subject: [PATCH] chore(scheduler-sim-decision-parity): mark feature complete All 10 tasks (13 checkboxes including container headers) complete. spec.json phase -> implementation-complete. Co-Authored-By: Claude Sonnet 5 --- .kiro/specs/scheduler-sim-decision-parity/spec.json | 4 ++-- .kiro/specs/scheduler-sim-decision-parity/tasks.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.kiro/specs/scheduler-sim-decision-parity/spec.json b/.kiro/specs/scheduler-sim-decision-parity/spec.json index f174175f..1ffc7eb4 100644 --- a/.kiro/specs/scheduler-sim-decision-parity/spec.json +++ b/.kiro/specs/scheduler-sim-decision-parity/spec.json @@ -1,9 +1,9 @@ { "feature_name": "scheduler-sim-decision-parity", "created_at": "2026-08-21T08:30:00Z", - "updated_at": "2026-08-22T04:41:00Z", + "updated_at": "2026-08-22T13:10:00Z", "language": "en", - "phase": "tasks-generated", + "phase": "implementation-complete", "approvals": { "requirements": { "generated": true, diff --git a/.kiro/specs/scheduler-sim-decision-parity/tasks.md b/.kiro/specs/scheduler-sim-decision-parity/tasks.md index 84072517..8bbc5084 100644 --- a/.kiro/specs/scheduler-sim-decision-parity/tasks.md +++ b/.kiro/specs/scheduler-sim-decision-parity/tasks.md @@ -1,6 +1,6 @@ # Implementation Plan -- [ ] 1. Foundation: shared accounting surface and contention test data +- [x] 1. Foundation: shared accounting surface and contention test data - [x] 1.1 Make resource-in-use accounting callable from either driver - Relocate the resource re-accounting service (currently tied to the normal-mode-only driver struct) so it operates on the mode-agnostic core state shared by both drivers, mirroring the same relocation already done for the job-picker resolution service - Update all three existing call sites to the new signature: the normal-mode round handler's accounting call, the scheduler's own session-begin path's accounting call, and the scheduler's decision-commit path's call into the job-allocation-commit function that is part of this same relocated group @@ -16,7 +16,7 @@ - _Requirements: 2.1, 2.2_ - _Boundary: Scheduler test suite (contention fixture)_ -- [ ] 2. Core: round-boundary accounting and decision reconciliation +- [x] 2. Core: round-boundary accounting and decision reconciliation - [x] 2.1 Give simulation mode the same round-boundary accounting sequence normal mode uses - Replace simulation mode's single combined session-start call with the same two-step sequence (reset accounting, then unblock the picker) the normal-mode driver already uses, opening an interleaving point between them - Call the relocated resource re-accounting service (task 1.1) in that interleaving point, in the same relative position the normal-mode driver already calls it @@ -61,7 +61,7 @@ - _Depends: 2.1, 2.4_ - _Boundary: Sim Driver Round-Boundary Accounting, Recorded-Decision Reconciliation_ -- [ ] 4. Validation +- [x] 4. Validation - [x] 4.1 (P) Prove capacity-aware parity under contention - Using the resource-contention fixture (task 1.2), replay it in simulation mode and compare worker and shared resource-in-use totals against the equivalent normal-mode recording at every round - Assert simulation mode never makes a scheduling decision (dispatch where normal mode pended, or vice versa) that the normal-mode recording of the same state did not also make