Skip to content

perf: give the continuity stage 2.5 s, bounded by the deadline - #178

Merged
andig merged 2 commits into
mainfrom
perf/continuity-cap
Oct 4, 2026
Merged

andig merged 2 commits into
mainfrom
perf/continuity-cap

Conversation

@andig

@andig andig commented Oct 4, 2026

Copy link
Copy Markdown
Member

Follow-up to #177 from the first hour of revision 48 in production. The cost-clock gate lets the continuity stage run on the split requests whose cost stage finished under a second, 45 % of the ones it used to skip, and every one of those ended as MILP … unused at the 1 s cap. The stored #170 request needs 1.1 s to return its merged schedule, production models are larger.

CONTINUITY_TIME_LIMIT goes from 1 s to 2.5 s. It is both the cap on the candidate and the solve time above which the stage is not tried, and _continuity_clock already bounds it by the request deadline. Split requests end around 5 to 6 s of the 10 s limit, so the extra 1.5 s sits inside the clock that is left. Joint-path solves that took up to 2.5 s now also get the stage; on revision 47 those were the ones producing the improved lines, so the cost there is bounded by what the stage finds.

To judge: continuity outcomes on path == 'split' by revision, improved against unused, and split elapsed p99 against the 10 s limit.

🤖 Generated with Claude Code

With the gate on the cost stage clock, 45 % of the split requests that
used to be skipped now run the stage, and every one of them ended at the
1 s cap with nothing kept. The split ends around 5 to 6 s of the 10 s
limit, so 2.5 s fits inside what is left; _continuity_clock already
bounds it by the deadline.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@andig andig added the enhancement New feature or request label Oct 4, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@andig
andig merged commit 87be5dc into main Oct 4, 2026
1 check passed
@andig
andig deleted the perf/continuity-cap branch October 4, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant