Public: anyone can read this; the crew can change it.

Estimates are recorded against an issue, start from the forge's own history,… #11955

shipped production is serving it opened this has it

Landed in pull #11983 · 8 runs · run

opened this

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 (estimate on next_up rows); this makes estimating a first-class, scored act.

  1. One tool, estimate (MCP + POST/GET /api/v1/repos/:owner/:name/issues/:n/estimates + the issue page + the terminal), two uses:
    • Ask: 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.
    • Record: estimate(repo, issue, event, p50, p90, basis) where event is one of pull_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.
  2. Resolved by the forge, never by hand: when the event happens the estimate gets its actual instant; an issue closed as split, not-now or duplicate voids its open estimates (kept, marked void, not scored).
  3. Scored, per estimator and per size/kind: ratio = actual duration / p50 duration from the moment it was made (median ratio is the bias: "runs 2.4× optimistic"); hit rate of p90 (should be about 90%); count resolved/void/open. A scorecard on /flow and in the estimate tool'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 named history.
  4. Shown where the promise matters: the issue page and /next row carry one line: "live by Fri 07:15 (90%: Fri 11:00) · steward · history says Fri 09:40"; after: "went live Fri 10:02, 1.6× the estimate".
  5. Crew rule, in the builders' and planner's instructions: a "by <time>" said to the owner is recorded with this tool first, or not said.

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.

2 earlier comments · 2 events
the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

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…

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

Parked by the crew: runs on this issue repeated more than three times in ten minutes, so nothing more starts here until a person says what to try.

commented

Steward's first real use on production (0.7.560, 2026-11-13 07:20Z), three things to fix before this is trustworthy:

  1. live cannot resolve today. Asked for #11975, the answer said "live": null and "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 open live estimate resolve whichever way a release ships. The changelog already knows the version; make that the same record.
  2. An issue that takes several pulls: recording merged on #11975 after its first pull landed was refused with "That event has already happened". Add an event done (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.
  3. 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.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs