* test(#2631): failing-first planner estimate emission and over-budget surfacing * feat(#2631): emit plan estimate and surface the over-budget split recommendation * fix(#2631): extract sizing prose to references to fit planner and plan-phase caps * fix(#2631): move estimate check to plan-checker; fix template regex and caps * fix(#2631): restore ALWAYS split literal and keep gsd_run after the launcher preamble * fix(#2631): invoke estimate-check after the launcher preamble in plan-checker * fix(#2631): stop double-applying calibration; repair COMMANDS table and stale reference * chore(#2631): backfill changeset pr to 2670 * chore(#2631): backfill changeset pr to 2670
This commit is contained in:
@@ -252,6 +252,19 @@ issue:
|
||||
1. Count tasks per plan
|
||||
2. Estimate files modified per plan
|
||||
3. Check against thresholds
|
||||
4. **Smart-zone estimate check (#2631, ADR-2629).** For each plan carrying an `estimate` block, run the
|
||||
`estimate-check --calibrated` verb against its `estimate.tokens` (the `--calibrated` flag is required —
|
||||
the plan's figure already has the factor applied, and omitting it would square the correction) (invoked in Step 1 below, after the launcher
|
||||
preamble). The verb reads `workflow.smart_zone_tokens` and applies the project's calibration. Report
|
||||
one line per plan: plan id, estimated tokens, the budget, and — when `over_budget` is true — the
|
||||
returned `recommendation`, which names how many slices the phase should become.
|
||||
|
||||
**Over budget is a WARNING, never a blocker** (ADR-2629 Decision 5). Recommend re-slicing into a tracer
|
||||
plus expansion slices; never fail the check on it. Report `estimate.confidence` alongside: `low` means
|
||||
fewer than 3 completed phases carry actuals, so the figure is not yet calibrated for this project — say
|
||||
so rather than presenting it as precise, and weigh the task/file thresholds above more heavily.
|
||||
|
||||
A plan with no `estimate` block is not a defect; the field is optional and additive.
|
||||
|
||||
**Thresholds:**
|
||||
| Metric | Target | Warning | Blocker |
|
||||
@@ -706,6 +719,13 @@ gsd_run query phase.list-plans "$phase_number"
|
||||
gsd_run query phase.list-artifacts "$phase_number" --type research
|
||||
gsd_run query roadmap.get-phase "$phase_number"
|
||||
gsd_run query phase.list-artifacts "$phase_number" --type summary
|
||||
|
||||
# Smart-zone estimate check (#2631) — advisory, never fails the check.
|
||||
for plan in "${phase_dir:-$PHASE_DIR}"/*-PLAN.md; do
|
||||
[ -f "$plan" ] || continue # unmatched glob leaves the literal pattern — skip it
|
||||
EST=$(sed -n '/^estimate:/,/^[a-z_]*:/p' "$plan" | grep -o 'tokens: *[0-9]*' | head -1 | grep -o '[0-9]*')
|
||||
[ -n "$EST" ] && gsd_run query estimate-check --tokens "$EST" --calibrated 2>/dev/null || true
|
||||
done
|
||||
```
|
||||
|
||||
**Extract:** Phase goal, requirements (decompose goal), locked decisions, deferred ideas.
|
||||
|
||||
Reference in New Issue
Block a user