Skip to content

work in progress: investigate mismatch errors#16983

Draft
eckter wants to merge 2 commits into
devfrom
ech/mismatch-investigations
Draft

work in progress: investigate mismatch errors#16983
eckter wants to merge 2 commits into
devfrom
ech/mismatch-investigations

Conversation

@eckter
Copy link
Copy Markdown
Contributor

@eckter eckter commented May 29, 2026

Just logging some stuff, I don't expect to have the time to finish and it might be interesting for someone else to take over.

(it doesn't have to be considering how much of a rough draft that is, this is more "could be useful to read" than "should be taken over")


The main issue is that we sometimes have "mismatch" errors (the ones described here. They can be reproduced by running several very long searches on dense timetables. They're rare on smaller path, but when going from Germany to Spain they happen in maybe 1/10 requests.

I logged a few of them and tried to see if an llm could figure it out. That's the first commit: it did identify some issues around the way we distribute overlapping engineering allowance when adding timed points. I did not proofread it, and it doesn't fix every case. There may be several different issues.

As I did spend a lot of time going through the generated space-time diagrams and the logs, I also tried to modify the logs to make them closer and more relevant. This proved a little harder than expected, Unavailable.causes doesn't really seem to match the chart. There's likely a bug either in these changes or in the way these causes are generated.

eckter added 2 commits May 29, 2026 16:53
This does fix several mismatch cases, but it's not always enough.

The main issue it's trying to fix is some (likely) bug
in the way we estimate the timed points when it's covered
by several engineering allowance ranges.
Signed-off-by: Eloi Charpentier <eloi.charpentier.42@gmail.com>
@eckter eckter moved this to In Progress in Board PI 20 May 29, 2026
@eckter eckter self-assigned this May 29, 2026
@github-actions github-actions Bot added the area:core Work on Core Service label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Work on Core Service

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant