Public: anyone can read this; the crew can change it.
Estimates are recorded against an issue, start from the forge's own history,… #11955
Landed in pull #11983 · 8 runs · run
2 earlier comments · 2 events
Parked by the crew: the check stayed red through 2 automatic tries (pull #11960 closed; its branch torque/11955-estimates-are-recorded-against-an-issue at 911ef0d96c3e keeps the work so far). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
try 1: docs/FLOW.md, docs/MCP.md, src/actions/estimates.ts, src/actions/next.ts, src/core/estimates.ts, src/core/issues.ts, src/core/migration-pins/20261113200… try 2: src/actions/estimates.ts, src/core/estimates.ts, src/crew/brief.ts, src/flow/estimate_base.ts, src/flow/estimate_score.ts, src/flow/estimate_words.ts, s… try 3: src/actions/estimates.ts, src/contract/openapi/routes/getApiV1ReposOwnerNameIssuesNumberEstimates.ts, src/contract/openapi/routes/index.ts, src/contract…
Steward's first real use on production (0.7.560, 2026-11-13 07:20Z), three things to fix before this is trustworthy:
livecannot resolve today. Asked for #11975, the answer said"live": nulland "no release has gone live since". Since 2026-11-12 23:43Z the forge runs as a container on the vxrail and the steward releases by hand (tag vX.Y.Z pushed, image built on the host, container restarted with FORGE_VERSION/FORGE_COMMIT set): eight releases went live that way, 0.7.552 to 0.7.560, and none is a release the keeper recorded. At boot, a forge whose FORGE_VERSION/FORGE_COMMIT is newer than its newest recorded live release records it (version, commit, went-live = boot time, how = "by hand"), so merged→live history and every openliveestimate resolve whichever way a release ships. The changelog already knows the version; make that the same record.- An issue that takes several pulls: recording
mergedon #11975 after its first pull landed was refused with "That event has already happened". Add an eventdone(the issue is closed and stays closed 24 h, or its last linked pull is live) so an estimate can mean "finished", and say in the refusal which events can still be estimated. - The basis line is good ("7 large issues by scout, last 30 days: now→merged p50 1 h 13 m, p90 1 h 18 m"). Add the one number that makes it honest: how often such issues were reopened after being closed (tonight: #11975, #11687, #11153, #11278 were closed with work remaining). An estimate of "merged" is not an estimate of "works". Data points from tonight for the scorecard's first rows, recorded by hand on #11953: estimated merged p50 07:20Z / p90 10:10Z, actual 05:1xZ (pull #11954); estimated live p50 07:45Z, actual 05:22Z (0.7.554). The steward was two hours pessimistic on a small, well-specified issue.
Estimates are recorded against an issue, start from the forge's own history, and are scored when the work goes live
Owner (2026-11-13): "your projections on things are very off. this would actually be a very interesting tool… tie it to an issue then we can have data for making more informed decisions later… i want very real estimations." Today anyone (the steward, a builder, the planner, the owner) says "by morning" and nothing records it or checks it. /next already computes a per-size estimate from past issues (
estimateon next_up rows); this makes estimating a first-class, scored act.estimate(MCP + POST/GET /api/v1/repos/:owner/:name/issues/:n/estimates + the issue page + the terminal), two uses:estimate(repo, issue)with no times returns the base rate for THIS issue from the forge's own history: time from now to each event for past issues like it (same repo, same size/kind label, same builder if assigned, last 30 days), as p50 and p90 instants and durations, with the sample size and one line of basis ("31 small bugs in trevato/forge: assigned→merged p50 3 h 10 m, p90 9 h; merged→live p50 25 m"). It adds what is true now that history does not know: queue position on /next, builders busy, weekly budget left, releases held or by hand. Fewer than 5 samples: say so and widen.estimate(repo, issue, event, p50, p90, basis)where event is one ofpull_opened,merged,live(live = the release containing the merge commit is serving production; for an app, its production deploy). p50 ≤ p90, both in the future. Stored with who made it (person or agent), when, and the base rate shown at that moment. Estimates are never edited: a new one supersedes, and the revisions are kept as data.estimatetool's answer ("your last 20: median 2.4× late, p90 held 55%"), so the next estimate starts corrected. The base rate itself is scored the same way as an estimator namedhistory.Done when: tests cover ask (base rate from seeded history, small-sample widening), record (validation, supersede keeps history), automatic resolution on merge and on release-live, voiding on split, and the scorecard maths (bias and p90 hit rate); the issue page and /next show the line; the tool's first real use is recorded on this issue by the builder who takes it.