Reference in New Issue
Block a user
No description provided.
Delete Branch "p2/calibration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
⚠️ Also fixes a stacked-merge gap
#38 (Monte Carlo) and #39 (lifecycle) showed
merged, but they merged into their stacked base branches, notmain— only #37 (scheduler) actually reachedmain. This branch is cut frommainand cherry-picks both back on, plus the new calibration work, somainbecomes whole in one merge. Base ismain(no stacking this time).#1 — Calibration closes the D3 loop
The forecast now learns from the team's own estimate-vs-actual history (the working time #5 infers from git events) instead of guessing forever.
Core (
calibration-v0)fitCalibration(samples)— lognormal fit on log(actual/estimate): global + per-bucket (once a bucket clears the floor) + per-person bias.coldStartuntil n ≥ 20 closed-with-estimate issues.calibrationSamples()— pull samples from the closed backlog via lifecycle inference.forecast()gainsoptions.model: past cold-start, the fitted params drive the sim (per bucket, global fallback); otherwise the code priors do.Forecast.coldStartreflects the model.App — AppShell fits calibration once from the reconciled backlog, feeds the model into the cone, and drives the Calibration screen + Runway header. Focus footer / Runway note / Calibration screen now show cold-start (N/20) vs calibrated (on N closed) from real data; scatter, bucket bias, and per-person all fitted, degrading honestly on a thin dataset.
Live result
The repo is honestly cold-start · 0/20: the dogfood issues were opened and closed the same day, so day-granular actuals are 0 and excluded. The flip-to-calibrated is proven by unit tests, not fabricated data.
Known refinements
Re-landed in this PR
actualWorkingDays(which this PR now consumes).Verified
74 core tests green (9 calibration + 2 forecast-switch new) · desktop typecheck clean · 14 fixture e2e green · live spec asserts the real cold-start calibration surface.
🤖 Generated with Claude Code