Skip to content

feat(ai-autopilot): production-grade checklist prompt + { blockers } verdict convention (#121)#126

Merged
suleimansh merged 2 commits into
mainfrom
feat/production-grade-checklist
Jul 2, 2026
Merged

feat(ai-autopilot): production-grade checklist prompt + { blockers } verdict convention (#121)#126
suleimansh merged 2 commits into
mainfrom
feat/production-grade-checklist

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Child of #116 (bootstrap). Extends the prompts library (#111) and the loop (#113).

Two pieces:

production-grade checklist prompt (prompts/production-grade.md) — judges an app as it stands against a production-grade checklist (auth, data layer, error handling, instrumentation, emailing, validation, tests, build/config) and ends with a machine-readable verdict:

{ "blockers": ["short, actionable description of each remaining gap"] }

An empty list means production-grade.

The { blockers } verdict conventionparseVerdict() / isPassing() read the verdict from a prompt's text (last fenced json block wins, bare-object fallback). The loop now gates on the outcome, not just execution: PromptOutcome carries verdict and a passing flag (executed and no blockers), and continueOnError: false stops on !passing. This answers the open note in #113.

Backward compatible: with no verdict reported passing === ok, so existing prompts/gates are unchanged. Pass verdict: null for an execution-only gate.

This is what bootstrap's full-fledged loop (#122) repeats against until blockers is empty.

Tests: verdict parser (fenced/bare/last-wins/empty), loop gating (blockers not-passing, gate-stop, backward-compat, verdict: null), and the bundle loading from builtinLibrary(). Full suite 140 green.

Closes #121.

@suleimansh suleimansh added the enhancement New feature or request label Jul 2, 2026
@suleimansh suleimansh self-assigned this Jul 2, 2026
@suleimansh suleimansh added the priority: high Should be addressed soon label Jul 2, 2026
@suleimansh suleimansh force-pushed the feat/production-grade-checklist branch from f47a533 to 62faf16 Compare July 2, 2026 17:20
@suleimansh suleimansh changed the base branch from main to feat/generic-surface-stream July 2, 2026 17:20
Base automatically changed from feat/generic-surface-stream to main July 2, 2026 17:24
@suleimansh suleimansh merged commit 55b3697 into main Jul 2, 2026
2 checks passed
@suleimansh suleimansh deleted the feat/production-grade-checklist branch July 2, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: high Should be addressed soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Production-grade checklist prompt + { blockers } verdict convention

1 participant