Skip to content

NRP n120w8: 1-second solves leave mandatory shifts unassigned since 0.20.0 #283

Description

@blackopsrepl

Two INRC-II n120w8 instances solved completely at the 1-second budget on SolverForge 0.19.13 and 0.19.14. They have failed at 1 second on every release from 0.20.0 through 0.31.4. The 10-second and 60-second solves on the same instances remain feasible.

Affected rows, with the input hash recorded by the benchmark harness:

  • n120w8_H0_WD0-9-9-4-5-1-0-3, ebbc770c121079cc82e88feccbcdb599dafe5a012772442b3bfda2deb8e5e17e: 0.19.13 returned 0hard/-227645soft; 0.20.4 onward fail with assignment group shift_nurse_assignment has 2844 unassigned required entity row(s).
  • n120w8_H1_WD7-2-6-4-5-2-0-2, 3c20e87950e15953d9efe5bcee1f53285351aa44f628c18b049f82184594e6dc: 0.19.13 returned 0hard/-228870soft; 0.20.4 onward fail with 2872 unassigned rows.

Failure text:

runtime execution failed at phase 0: configured solve stopped with mandatory planning work incomplete: assignment group shift_nurse_assignment has <N> unassigned required entity row(s)

The warehouse records the transition in the employee-scheduling nightlies: run 713d96b2-54ff-4150-b3b5-76b0de940211 (2026-10-11, 0.19.13) had 37/37 feasible at 1 second; run 84c0f9aa-81a9-4ca4-bdc1-55357d5682b3 (2026-10-13, 0.20.4) had 35/37. The two failures are byte-for-byte identical in every completed run since, including the 2026-11-29 run 90d031b4-1c1f-4c22-9199-ff2f19d284a4.

I rebuilt the same NRP adapter source against the published crates to check the version boundary. 0.19.13 and 0.19.14 solved both instances at 1 second; 0.20.0, 0.20.1, 0.20.2, 0.20.3 and 0.20.4 all reproduced the exact unassigned counts. The benchmark adapter source did not change between the passing and failing cohort: only its Cargo.toml pin moved from 0.19.13 to 0.20.4. The input hash stayed the same.

So the first bad release is 0.20.0. The commits between v0.19.14 and v0.20.0 are 2681c405, 5925dfe1, a901a2ba, 0fffd1f8, and release 2f55b83f; bfba0ad6 and 71ded953 also landed in that range in core/scoring. Reverting only the grouped-scalar forager policy from a901a2ba in a 0.20.0 build did not restore feasibility, so the cause is not established by that check.

Expected: a complete 0hard roster from these two instances at 1 second, as on 0.19.14. Actual: phase 0 ends with thousands of required shifts unassigned. This is a quality/throughput regression at short budgets, not a feasibility failure of the instances: both solve at 10 and 60 seconds.

Activity

  1. added
    bug
    on Nov 29, 2026
  2. self-assigned this
    on Nov 29, 2026
  3. blackopsrepl commented on Nov 30, 2026

    @blackopsrepl
    CollaboratorAuthor

    Reopened: #284 sped up the required batch but its gate failed (sim_d1_misses on assignment_neighborhood and construction_first_fit). #285 removes the batch and places required rows through the construction cursor instead.

  4. blackopsrepl commented on Dec 1, 2026

    @blackopsrepl
    CollaboratorAuthor

    Fixed on main (3a55af5) by #285, #286, #287, #288, #289 and #290.

    Required construction places rows through the incremental cursor (a direct pass with the value degrees it started with, then an augmenting pass), with no batch path.

    Bench's own NRP build (maturin, pinned Cargo.lock, solverforge patched to main 3a55af5), run through run_benchmark.py employee-scheduling at 1 s, three runs:

    instance hard cost (3 runs)
    n120w8_H0_WD0-9-9-4-5-1-0-3 feasible ×3 215410, 215505, 214890
    n120w8_H1_WD7-2-6-4-5-2-0-2 feasible ×3 214000, 214675, 213850

    v0.31.4 does not finish required construction on either at 1 s (2844 / 2872 unassigned rows).

    Zero-regression gate, main 3a55af5 against v0.31.4: all 18 cases pass every graded metric. assignment_required: wall −95.1%, instructions −95.0%, allocations −47.9%. List cases: wall −5% to −12.5%, allocated bytes −98% to −99.9%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions