Skip to content

Estimate: price a new job from past estimates - #4

Merged
jonathonbyrdziak merged 1 commit into
mainfrom
feat/estimate
Sep 27, 2026
Merged

jonathonbyrdziak merged 1 commit into
mainfrom
feat/estimate

Conversation

@jonathonbyrdziak

Copy link
Copy Markdown
Contributor

Adds the API's new POST /v1/estimate: send a domain file for the trade (.tu), past estimates in any format and one request, and get back the new job priced part by part with an 80% range. It supports stored files by id with a saved model, and reusing details.weights to price the next job without resending the history. A live test prices the barndo sample job from 10 past estimates, then prices another with the saved model.

It also makes the runs-paging test follow the next page only when there is one, so the suite passes on a new team.

Draft until trueup-cloud #33 is deployed. The endpoint is merged but not live yet (Cloudflare login on the deploy machine expired), so the live test fails until then. Tested against a local build: passes (Java will be checked against production, because its HTTP/2 upgrade header crashes the local dev server).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathonbyrdziak
jonathonbyrdziak marked this pull request as ready for review September 27, 2026 13:43
@jonathonbyrdziak
jonathonbyrdziak merged commit cd67f32 into main Sep 27, 2026
1 of 2 checks passed
@jonathonbyrdziak
jonathonbyrdziak deleted the feat/estimate branch September 27, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant