feat(planning): make optimization rules composable #267

Merged
nessar merged 3 commits from feature/optimization-rules-70-75 into develop 2026-10-10 16:56:49 +02:00
nessar commented 2026-10-10 16:08:46 +02:00 (Migrated from 172.24.0.1:8928)

Replaces fixed optimization stages with explicit, composable rules evaluated in the displayed priority order. The six supplied presets use the same configuration, editor and planner as personal rules. With no active rules, calculations preserve declared days and add no leave.

Migrates legacy saved rules once into a versioned list, preserving identities, parameters, dates, force, disabled states and relative order. Deleted presets and deliberately empty lists remain deleted or empty after reload. Completed and cancelled plans retain consistent rule provenance, stable explanations and captured settings.

Closes #70, #71, #72, #73 and #74. Completes the functional scope of #75, which is already closed.

Validation of the committed source:

  • 652 functional tests in 34 files pass under a 2 GB Node heap; coverage: 92.66% statements, 84.31% branches, 94.84% functions and 94.63% lines.
  • TypeScript, Angular compilation, ESLint, formatting, CI policy self-check and production build pass.
  • 22 Chromium production-browser checks with real Web Workers pass, including migration, first calculation, persisted edits, keyboard ordering and narrow viewports; no page or console errors.
  • Independent Standards and functional Spec reviews report 0 findings. The committed production source exactly matches the tested and reviewed integrated result.

Performance acceptance remains in #78, after original decision trace removal in #76 and functional verification in #77. These follow-up specifications are included; their implementation is pending. The seven-scenario benchmark has not passed: MR pipeline 320 timed out at the unchanged 300-second limit after all 652 functional tests passed.

At the user's request, commit 98e87fe separates the benchmark into its own automatic CI job with allow_failure: true while #78 is open. Functional coverage and all unrelated jobs keep their previous gating behavior. The benchmark's 2 GB heap limit, 300-second timeout, scenarios, repetitions, assertions and search-quality requirements remain unchanged. #78 must restore the required benchmark gate after the protocol passes; a green pipeline during this exception does not satisfy performance acceptance.

GitLab static lint and pipeline simulation pass without warnings, and a comparison of the resolved jobs confirms every unrelated job is unchanged. Independent Standards and Spec reviews of the five-file CI/documentation change report 0 findings. Application source is unchanged from the verified implementation.

Existing production build warning budgets remain exceeded (2.63 MB initial bundle and 14.11 KB calendar stylesheet); hard budgets pass. Reference-phone performance has not been measured.

Targets develop; project merge commits and disabled squashing are retained.

Replaces fixed optimization stages with explicit, composable rules evaluated in the displayed priority order. The six supplied presets use the same configuration, editor and planner as personal rules. With no active rules, calculations preserve declared days and add no leave. Migrates legacy saved rules once into a versioned list, preserving identities, parameters, dates, force, disabled states and relative order. Deleted presets and deliberately empty lists remain deleted or empty after reload. Completed and cancelled plans retain consistent rule provenance, stable explanations and captured settings. Closes #70, #71, #72, #73 and #74. Completes the functional scope of #75, which is already closed. Validation of the committed source: - 652 functional tests in 34 files pass under a 2 GB Node heap; coverage: 92.66% statements, 84.31% branches, 94.84% functions and 94.63% lines. - TypeScript, Angular compilation, ESLint, formatting, CI policy self-check and production build pass. - 22 Chromium production-browser checks with real Web Workers pass, including migration, first calculation, persisted edits, keyboard ordering and narrow viewports; no page or console errors. - Independent Standards and functional Spec reviews report 0 findings. The committed production source exactly matches the tested and reviewed integrated result. Performance acceptance remains in #78, after original decision trace removal in #76 and functional verification in #77. These follow-up specifications are included; their implementation is pending. The seven-scenario benchmark has not passed: MR pipeline 320 timed out at the unchanged 300-second limit after all 652 functional tests passed. At the user's request, commit `98e87fe` separates the benchmark into its own automatic CI job with `allow_failure: true` while #78 is open. Functional coverage and all unrelated jobs keep their previous gating behavior. The benchmark's 2 GB heap limit, 300-second timeout, scenarios, repetitions, assertions and search-quality requirements remain unchanged. #78 must restore the required benchmark gate after the protocol passes; a green pipeline during this exception does not satisfy performance acceptance. GitLab static lint and pipeline simulation pass without warnings, and a comparison of the resolved jobs confirms every unrelated job is unchanged. Independent Standards and Spec reviews of the five-file CI/documentation change report 0 findings. Application source is unchanged from the verified implementation. Existing production build warning budgets remain exceeded (2.63 MB initial bundle and 14.11 KB calendar stylesheet); hard budgets pass. Reference-phone performance has not been measured. Targets `develop`; project merge commits and disabled squashing are retained.
nessar commented 2026-10-10 16:23:05 +02:00 (Migrated from 172.24.0.1:8928)

changed the description

changed the description
nessar commented 2026-10-10 16:37:29 +02:00 (Migrated from 172.24.0.1:8928)

added 1 commit

  • 98e87fec - ci: make the deferred planning benchmark non-blocking

Compare with previous version

added 1 commit <ul><li>98e87fec - ci: make the deferred planning benchmark non-blocking</li></ul> [Compare with previous version](/nessar/vac-optimizer/-/merge_requests/189/diffs?diff_id=467&start_sha=6811142299b21124af146ac7f8cf02a96c4d91c7)
nessar commented 2026-10-10 16:38:19 +02:00 (Migrated from 172.24.0.1:8928)

changed the description

changed the description
nessar commented 2026-10-10 16:42:05 +02:00 (Migrated from 172.24.0.1:8928)

added 1 commit

  • ae68e315 - docs: describe the advisory planning benchmark

Compare with previous version

added 1 commit <ul><li>ae68e315 - docs: describe the advisory planning benchmark</li></ul> [Compare with previous version](/nessar/vac-optimizer/-/merge_requests/189/diffs?diff_id=469&start_sha=98e87feceea9ba6f212ce162f61b4605fa6bde98)
nessar (Migrated from 172.24.0.1:8928) merged commit 0d900fd72d into develop 2026-10-10 16:56:49 +02:00
nessar commented 2026-10-10 16:56:51 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in commit 0d900fd72d

mentioned in commit 0d900fd72d1a405d257f5a566c55cc0cb3d2bc61

Preserved GitLab !189 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 4; visible source notes: 5.

gitlab-35-mergerequest-189.md (SHA-256 8e7a60db86d483758f468fc9315ec2e112311ad5e354a5da247cd763f38512f9)

gitlab-35-mergerequest-189.json (SHA-256 a9a2f7c79cf1e35e03761448129aa9dfa08dc2a68443a44449cc0f89684199df)

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

<!-- gitlab-to-gitea-history:35:MergeRequest:189 --> Preserved GitLab !189 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 4; visible source notes: 5. [gitlab-35-mergerequest-189.md](https://gitea.nessar.fr/attachments/149f9c30-d61a-45f6-8522-6be2c1b885b5) (SHA-256 `8e7a60db86d483758f468fc9315ec2e112311ad5e354a5da247cd763f38512f9`) [gitlab-35-mergerequest-189.json](https://gitea.nessar.fr/attachments/be3e01ab-bce5-4c47-b90d-6076d578ae42) (SHA-256 `a9a2f7c79cf1e35e03761448129aa9dfa08dc2a68443a44449cc0f89684199df`) Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.
Sign in to join this conversation.