Verify and optimize planning to meet the benchmarks from #75 #78

Closed
opened 2026-10-10 12:44:06 +02:00 by nessar · 10 comments
nessar commented 2026-10-10 12:44:06 +02:00 (Migrated from 172.24.0.1:8928)

Blocked by: #75, #77

Parent

#75 — Performance acceptance separated from the functional migration ticket at the user's request.

What to build

Verify the integrated planner against the benchmark requirements originally attached to #75 and apply performance optimizations when needed until those requirements pass. Start from the functionally verified implementation after original-decision-trace removal. #75 can finish on its functional requirements; performance acceptance belongs to this ticket.

If the measured baseline already passes, keep the engine unchanged and record the evidence. Otherwise profile the real failing path, apply the smallest complete improvement and verify both performance and retained planning behavior.

Acceptance criteria

  • Keep the existing seven benchmark scenarios and inputs, including the loaded year, typed joint obligations, chained earned entitlements and two- and three-year horizons. Keep explicit optimization configurations, quotas, expected outcomes, placement counts, completed-stage and determinism assertions.
  • Run the real existing benchmark protocol: one warm-up and two measured repetitions per scenario, outside coverage instrumentation, with a 2 GB Node heap limit and the 300-second timeout for the full protocol. All scenarios and repetitions must finish and pass; a timeout, skipped scenario or partial report does not satisfy this ticket.
  • Restore the benchmark as a required CI check after the unchanged protocol passes. While this ticket is open, the user approved a separate automatic benchmark job with allow_failure: true so its failure does not block functional delivery. Passing CI during this exception does not satisfy benchmark acceptance or justify closing this ticket.
  • After #76 removes tracing and #77 verifies the retained behavior, benchmark outcome and explanation delivery without obsolete trace counters, trace transfer or trace-acknowledgement waits. Do not reintroduce tracing as profiling infrastructure.
  • When the baseline fails, profile CPU, allocation and repeated planning work; apply optimizations and rerun the unchanged protocol until it passes. Preserve planning semantics, rule ordering, joint obligations, earned-entitlement chronology, final-plan quality and deterministic tie-breaking. Use behavior-level or differential tests to demonstrate that caching, deduplication or pruning is valid across the relevant configurations.
  • Preserve responsive browser interaction, explicit cancellation, heartbeat monitoring and best-valid-partial-plan recovery during representative and long-horizon calculations. Keep the existing duration-estimation contract and recalibrate estimates only when measured results require it.
  • Do not increase the benchmark timeout or heap allowance, reduce scenarios or repetitions, weaken correctness assertions, add an automatic elapsed-time engine cutoff, or reduce search breadth or planning quality to make the protocol pass.
  • Record reproducible before/after preparation, planning, total-duration, responsiveness and available peak-heap measurements, including environment and protocol. Clearly distinguish actual completed benchmark runs from diagnostics or interrupted measurements and document any reference-hardware checks that could not be performed.
  • Run required correctness, coverage, static and build checks after any optimization. Preserve the captured configuration, stable explanations, displayed-placement alternative-date analysis and saved-user-data behavior.
  • Update benchmark documentation with the final measured limits and evidence. Close this ticket only after the unchanged benchmark gates pass; a failed measurement remains an open performance requirement here rather than reopening #75 for performance alone.

Existing evidence and scope

The previous real protocol timed out at 300 seconds without an out-of-memory failure. The loaded-year warm-up took about 184 seconds and its first measured repetition started about 252 seconds into the protocol. Original trace recording and repeated allocation previews were observed costs; the benefit of trace removal has not yet been measured. These are starting points for profiling, not permission to change optimization quality.

This ticket authorizes verification and implementation of performance improvements when needed. Functional migration remains in #75, trace removal in #76 and trace-removal functional verification in #77. Existing benchmark limits remain unchanged; only the benchmark job's blocking status is temporarily waived at the user's request until this ticket restores it.

Blocked by

  • #75 — Finish the functional saved-rule migration and integrated planning validation.
  • #77 — Verify integrated planning after trace removal (itself blocked by #76).
Blocked by: #75, #77 ## Parent #75 — Performance acceptance separated from the functional migration ticket at the user's request. ## What to build Verify the integrated planner against the benchmark requirements originally attached to #75 and apply performance optimizations when needed until those requirements pass. Start from the functionally verified implementation after original-decision-trace removal. #75 can finish on its functional requirements; performance acceptance belongs to this ticket. If the measured baseline already passes, keep the engine unchanged and record the evidence. Otherwise profile the real failing path, apply the smallest complete improvement and verify both performance and retained planning behavior. ## Acceptance criteria - [ ] Keep the existing seven benchmark scenarios and inputs, including the loaded year, typed joint obligations, chained earned entitlements and two- and three-year horizons. Keep explicit optimization configurations, quotas, expected outcomes, placement counts, completed-stage and determinism assertions. - [ ] Run the real existing benchmark protocol: one warm-up and two measured repetitions per scenario, outside coverage instrumentation, with a 2 GB Node heap limit and the 300-second timeout for the full protocol. All scenarios and repetitions must finish and pass; a timeout, skipped scenario or partial report does not satisfy this ticket. - [ ] Restore the benchmark as a required CI check after the unchanged protocol passes. While this ticket is open, the user approved a separate automatic benchmark job with `allow_failure: true` so its failure does not block functional delivery. Passing CI during this exception does not satisfy benchmark acceptance or justify closing this ticket. - [ ] After #76 removes tracing and #77 verifies the retained behavior, benchmark outcome and explanation delivery without obsolete trace counters, trace transfer or trace-acknowledgement waits. Do not reintroduce tracing as profiling infrastructure. - [ ] When the baseline fails, profile CPU, allocation and repeated planning work; apply optimizations and rerun the unchanged protocol until it passes. Preserve planning semantics, rule ordering, joint obligations, earned-entitlement chronology, final-plan quality and deterministic tie-breaking. Use behavior-level or differential tests to demonstrate that caching, deduplication or pruning is valid across the relevant configurations. - [ ] Preserve responsive browser interaction, explicit cancellation, heartbeat monitoring and best-valid-partial-plan recovery during representative and long-horizon calculations. Keep the existing duration-estimation contract and recalibrate estimates only when measured results require it. - [ ] Do not increase the benchmark timeout or heap allowance, reduce scenarios or repetitions, weaken correctness assertions, add an automatic elapsed-time engine cutoff, or reduce search breadth or planning quality to make the protocol pass. - [ ] Record reproducible before/after preparation, planning, total-duration, responsiveness and available peak-heap measurements, including environment and protocol. Clearly distinguish actual completed benchmark runs from diagnostics or interrupted measurements and document any reference-hardware checks that could not be performed. - [ ] Run required correctness, coverage, static and build checks after any optimization. Preserve the captured configuration, stable explanations, displayed-placement alternative-date analysis and saved-user-data behavior. - [ ] Update benchmark documentation with the final measured limits and evidence. Close this ticket only after the unchanged benchmark gates pass; a failed measurement remains an open performance requirement here rather than reopening #75 for performance alone. ## Existing evidence and scope The previous real protocol timed out at 300 seconds without an out-of-memory failure. The loaded-year warm-up took about 184 seconds and its first measured repetition started about 252 seconds into the protocol. Original trace recording and repeated allocation previews were observed costs; the benefit of trace removal has not yet been measured. These are starting points for profiling, not permission to change optimization quality. This ticket authorizes verification and implementation of performance improvements when needed. Functional migration remains in #75, trace removal in #76 and trace-removal functional verification in #77. Existing benchmark limits remain unchanged; only the benchmark job's blocking status is temporarily waived at the user's request until this ticket restores it. ## Blocked by - #75 — Finish the functional saved-rule migration and integrated planning validation. - #77 — Verify integrated planning after trace removal (itself blocked by #76).
nessar commented 2026-10-10 12:45:10 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #75

mentioned in issue #75
nessar commented 2026-10-10 12:45:14 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #76

mentioned in issue #76
nessar commented 2026-10-10 12:45:18 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #77

mentioned in issue #77
nessar commented 2026-10-10 16:08:37 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in commit 6811142299

mentioned in commit 6811142299b21124af146ac7f8cf02a96c4d91c7
nessar commented 2026-10-10 16:08:59 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in merge request !189

mentioned in merge request [!189](https://gitea.nessar.fr/nessar/vac-optimizer/pulls/267)
nessar commented 2026-10-10 16:37:28 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in commit 98e87fecee

mentioned in commit 98e87feceea9ba6f212ce162f61b4605fa6bde98
nessar commented 2026-10-10 16:38:18 +02:00 (Migrated from 172.24.0.1:8928)

changed the description

changed the description

Preserved GitLab #78 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 0; visible source notes: 7.

gitlab-35-issue-78.md (SHA-256 da419be47e4d88d080ee8a7c24888c4ee3377a59f9eda18e711b93b7b89e0315)

gitlab-35-issue-78.json (SHA-256 4cecddaa0fd441e884f3f48af24f2f8c75adb9d00941db1df612d137d68734a0)

Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.

<!-- gitlab-to-gitea-history:35:Issue:78 --> Preserved GitLab #78 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 0; visible source notes: 7. [gitlab-35-issue-78.md](https://gitea.nessar.fr/attachments/65f1b54b-d719-40b2-9c2b-eb7e515c61a9) (SHA-256 `da419be47e4d88d080ee8a7c24888c4ee3377a59f9eda18e711b93b7b89e0315`) [gitlab-35-issue-78.json](https://gitea.nessar.fr/attachments/fcf5006c-1e3f-4094-ad75-dee344e0578a) (SHA-256 `4cecddaa0fd441e884f3f48af24f2f8c75adb9d00941db1df612d137d68734a0`) Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.
gitea-emergency added this to the Development project 2026-10-11 22:14:31 +02:00
Owner

Further exact optimization beyond the 300-second gate, the frozen-engine fuzz gate and the relative CI benchmark gate are planned in #279.

Further exact optimization beyond the 300-second gate, the frozen-engine fuzz gate and the relative CI benchmark gate are planned in #279.
Owner

The benchmark requirements are met, and the follow-up performance work is complete (#279, #286, #288, #302).

  • Gates: the benchmark is a required CI job again, with the runner-relative gate from #285 and a 240 s hang guard. It passes on srvhome and nessar-desktop.
  • Protocol: it runs on Bun since ADR 0009, under a 3 GiB container limit. The seven scenarios, their inputs and their assertions are unchanged. The whole local protocol takes 41 s.
  • Duration estimate: recalibrated after measuring (PR #303), as this ticket allows.
  • Evidence: docs/benchmark/README.md, issue-78.md, issue-279.md and issue-302.md.

No reference-phone run is claimed.

The benchmark requirements are met, and the follow-up performance work is complete (#279, #286, #288, #302). - **Gates:** the benchmark is a required CI job again, with the runner-relative gate from #285 and a 240 s hang guard. It passes on srvhome and nessar-desktop. - **Protocol:** it runs on Bun since ADR 0009, under a 3 GiB container limit. The seven scenarios, their inputs and their assertions are unchanged. The whole local protocol takes 41 s. - **Duration estimate:** recalibrated after measuring (PR #303), as this ticket allows. - **Evidence:** docs/benchmark/README.md, issue-78.md, issue-279.md and issue-302.md. No reference-phone run is claimed.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nessar/vac-optimizer#78