Failed re-plans don't record the remaining violations #180

Open
opened 2026-11-08 18:18:24 +00:00 by chris-kreidl · 1 comment
chris-kreidl commented 2026-11-08 18:18:24 +00:00 (Migrated from github.com)

(ramp fix) A re-plan that fails after the clamps records nothing about what was still broken: clampPatched returns null and the remaining violations are dropped, and a ReplanRun isn't linked to its AiCalls (match by time). Store them on the run. (parked 2026-10-23: the owner reads AiCall.violations in the database when a re-plan fails)

Moved from docs/history.md → Parked follow-ups on 2026-11-08.

(ramp fix) A re-plan that fails after the clamps records nothing about what was still broken: `clampPatched` returns null and the remaining violations are dropped, and a ReplanRun isn't linked to its AiCalls (match by time). Store them on the run. (parked 2026-10-23: the owner reads `AiCall.violations` in the database when a re-plan fails) _Moved from docs/history.md → Parked follow-ups on 2026-11-08._
chris-kreidl commented 2026-11-08 20:19:41 +00:00 (Migrated from github.com)

What this is about. When a re-plan's answer breaks rules, the app repairs it, then "clamps" it (mechanical fixes). If it still breaks rules after that, the re-plan fails, and what was still broken is thrown away: clampPatched returns null. The failed run (ReplanRun) also isn't linked to its AI calls, so you match them by time.

Status (checked 2026-11-08): unchanged; parked by you on 2026-10-23.

Fix: store the remaining violations on the run, and link the run to its AI calls. Same moment as #179: worth doing when sessions 53 and 54 change the rules.

**What this is about.** When a re-plan's answer breaks rules, the app repairs it, then "clamps" it (mechanical fixes). If it still breaks rules after that, the re-plan fails, and what was *still* broken is thrown away: `clampPatched` returns null. The failed run (`ReplanRun`) also isn't linked to its AI calls, so you match them by time. **Status (checked 2026-11-08):** unchanged; parked by you on 2026-10-23. **Fix:** store the remaining violations on the run, and link the run to its AI calls. Same moment as #179: worth doing when sessions 53 and 54 change the rules.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#180
No description provided.