Calculer hors du thread UI avec une échéance ferme #43

Closed
opened 2026-08-28 16:50:48 +02:00 by nessar · 9 comments
nessar commented 2026-08-28 16:50:48 +02:00 (Migrated from 172.24.0.1:8928)

Parent

#11

What to build

Exécuter le planificateur hors du thread UI, conserver des checkpoints valides entre les étapes de qualité et garantir une réponse au plus tard après dix secondes. L’interface distingue les quatre catégories de résultat et reste utilisable pendant le calcul.

Acceptance criteria

  • planLeave(request) reste l’unique seam public et masque le transport vers l’exécution isolée.
  • Le calcul ne bloque pas le thread UI et la page reste interactive sur un scénario chargé.
  • Le planificateur vise une fin normale en moins de cinq secondes.
  • Une limite murale de dix secondes interrompt réellement le calcul, y compris pendant une étape longue.
  • Un checkpoint n’est publié qu’après un plan valide et une étape entièrement terminée.
  • Une interruption retourne PlanningIncomplete, le dernier checkpoint disponible et la dernière étape achevée.
  • Une interruption ne retourne jamais PlanningConflict sans preuve d’infaisabilité des obligations.
  • InvalidInput, PlanningConflict, PlanningIncomplete et Plan possèdent des états d’interface compréhensibles et traduits.
  • La sérialisation vers l’exécution isolée préserve les dates, identités, règles, provenance et raisons.
  • Des tests à temps contrôlé couvrent fin normale, interruption avec incumbent, interruption sans incumbent et absence de faux conflit.

Blocked by

## Parent #11 ## What to build Exécuter le planificateur hors du thread UI, conserver des checkpoints valides entre les étapes de qualité et garantir une réponse au plus tard après dix secondes. L’interface distingue les quatre catégories de résultat et reste utilisable pendant le calcul. ## Acceptance criteria - [ ] `planLeave(request)` reste l’unique seam public et masque le transport vers l’exécution isolée. - [ ] Le calcul ne bloque pas le thread UI et la page reste interactive sur un scénario chargé. - [ ] Le planificateur vise une fin normale en moins de cinq secondes. - [ ] Une limite murale de dix secondes interrompt réellement le calcul, y compris pendant une étape longue. - [ ] Un checkpoint n’est publié qu’après un plan valide et une étape entièrement terminée. - [ ] Une interruption retourne `PlanningIncomplete`, le dernier checkpoint disponible et la dernière étape achevée. - [ ] Une interruption ne retourne jamais `PlanningConflict` sans preuve d’infaisabilité des obligations. - [ ] `InvalidInput`, `PlanningConflict`, `PlanningIncomplete` et `Plan` possèdent des états d’interface compréhensibles et traduits. - [ ] La sérialisation vers l’exécution isolée préserve les dates, identités, règles, provenance et raisons. - [ ] Des tests à temps contrôlé couvrent fin normale, interruption avec incumbent, interruption sans incumbent et absence de faux conflit. ## Blocked by - #42
nessar commented 2026-08-28 16:50:49 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #44

mentioned in issue #44
nessar commented 2026-08-28 16:50:49 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #45

mentioned in issue #45
nessar commented 2026-09-25 10:59:25 +02:00 (Migrated from 172.24.0.1:8928)

Still open. In the emulated loaded scenario, planning returned a valid Plan in 5.74-6.17 seconds and stayed below the planning-only ten-second deadline defined by ADR 0004. However, a main-thread timer saw up to 5,950.9 ms extra delay after the result, around full trace artifact delivery. The loaded page therefore has not met the interactive-UI acceptance criterion. See docs/benchmark/README.md, Emulated browser run (2026-09-25).

Still open. In the emulated loaded scenario, planning returned a valid Plan in 5.74-6.17 seconds and stayed below the planning-only ten-second deadline defined by ADR 0004. However, a main-thread timer saw up to 5,950.9 ms extra delay after the result, around full trace artifact delivery. The loaded page therefore has not met the interactive-UI acceptance criterion. See docs/benchmark/README.md, Emulated browser run (2026-09-25).
nessar commented 2026-09-25 10:59:40 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #11

mentioned in issue #11
nessar commented 2026-09-25 11:20:02 +02:00 (Migrated from 172.24.0.1:8928)

Acceptance decision 2026-09-25: project owner said to call this done and accepted a six-to-seven-second loaded run. Worker planning returned a valid result below the ten-second planning deadline. The emulated run also observed a post-result main-thread pause up to 5,950.9 ms around trace delivery. Closing with that responsiveness limitation explicitly accepted for this release, not claiming the interactive-UI criterion was measured as passing on a physical phone. See docs/benchmark/README.md.

Acceptance decision 2026-09-25: project owner said to call this done and accepted a six-to-seven-second loaded run. Worker planning returned a valid result below the ten-second planning deadline. The emulated run also observed a post-result main-thread pause up to 5,950.9 ms around trace delivery. Closing with that responsiveness limitation explicitly accepted for this release, not claiming the interactive-UI criterion was measured as passing on a physical phone. See docs/benchmark/README.md.
nessar (Migrated from 172.24.0.1:8928) closed this issue 2026-09-25 11:20:08 +02:00
nessar commented 2026-10-02 14:54:25 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #55

mentioned in issue #55
nessar commented 2026-10-02 14:54:33 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #46

mentioned in issue #46
nessar commented 2026-10-02 14:54:50 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #10

mentioned in issue #10

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

gitlab-35-issue-43.md (SHA-256 545cc0cf8b3efb8a6c010c39bfcfca89c547deda7f40933932fcbb184a748b8b)

gitlab-35-issue-43.json (SHA-256 64c0fe92c8d6d326a02cd4b37562db3772eb6d1f80aad54542ed25b6c208da07)

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

<!-- gitlab-to-gitea-history:35:Issue:43 --> Preserved GitLab #43 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 0; visible source notes: 8. [gitlab-35-issue-43.md](https://gitea.nessar.fr/attachments/145899bc-40b2-4b7f-994b-3a9b65ac0173) (SHA-256 `545cc0cf8b3efb8a6c010c39bfcfca89c547deda7f40933932fcbb184a748b8b`) [gitlab-35-issue-43.json](https://gitea.nessar.fr/attachments/0488435c-8ba6-4672-add4-038fb7e8369f) (SHA-256 `64c0fe92c8d6d326a02cd4b37562db3772eb6d1f80aad54542ed25b6c208da07`) 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:32 +02:00
gitea-emergency moved this to Closed in Development on 2026-10-11 22:14:32 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nessar/vac-optimizer#43