Draft Refinement Loop
Instead of:
“Should this utterance produce a saveable draft, ask a question, show a warning, or route elsewhere?”
Model it as:
The system maintains a structured action draft and iteratively enriches, validates, repairs, and confirms it until it becomes executable – or determines that it cannot/should not be executed.
This is a stronger model because it supports multi-step behavior: asking the user, using app APIs, applying defaults, checking duplicates, resolving categories, and validating before execution.
New mental model
Old model: one-shot parse
User utterance
→ Parse
→ Decide outcomeExample:
"Coffee yesterday"
→ missing amount
→ ask questionThis works, but it is too limited.
Better model: draft refinement loop
User utterance
→ Create initial draft
→ Enrich draft
→ Validate draft
→ Identify gaps / risks
→ Ask user or use tools
→ Update draft
→ Repeat until ready
→ Confirm
→ Execute typed actionSo the central object is no longer the raw utterance. The central object is the draft action.
Suggested terminology
Proposed names:
Draft-centric action pipelineor more formally:
Execution-gated typed action pipelineIn NLP / AI terms, it combines the following. (Jurafsky & Martin 2026)
The most important terms for the product specification are probably:
structured draft
draft state
draft refinement
readiness criteria
execution gate
action policyThe refinement loop
The pipeline becomes:
1. Interpret utterance
2. Initialize or update draft
3. Extract candidate fields
4. Normalize fields
5. Ground fields against user data
6. Enrich missing/low-confidence fields using tools
7. Validate draft
8. Score readiness
9. Choose next action
10. Repeat or execute after confirmationIn compact form:
Utterance
→ Draft update
→ Draft enrichment
→ Draft validation
→ Readiness check
→ Next actionThe system keeps cycling through this loop until one of these outcomes happens:
ready_for_confirmation
needs_user_clarification
blocked
unsupported
cancelled
executedBetter product framing
Proposed product/architecture description:
Quick Add creates a structured transaction draft from natural language. The system incrementally fills and validates the draft using NLU, user defaults, account/category data, merchant memory, and duplicate checks. If the draft is incomplete or risky, the system asks for clarification or shows warnings. A transaction is executable only after the draft satisfies readiness criteria and the user confirms it.This is more robust than:
AI parses text into transaction.Recommended architecture diagram
User utterance
↓
Input normalizer
↓
NLU parser
↓
Draft manager ←→ Dialogue state
↓
Enrichment tools
├─ category resolver
├─ account resolver
├─ user defaults
├─ merchant memory
├─ recent transaction lookup
└─ duplicate detector
↓
Validation service
↓
Readiness scorer / action policy
├─ ask clarification
├─ show warning
├─ show confirmation
├─ route elsewhere
└─ block
↓
User confirmation
↓
Typed action executor
↓
create_transactionThe key architectural move is putting Draft Manager in the center.
Draft manager responsibilities
The draft manager owns:
current draft state
field provenance
missing fields
confidence scores
warnings
dialogue context
patch history
readiness status
next actionIt receives inputs from:
NLU parser
user corrections
tool results
backend validator
duplicate detector
manual editsIt produces:
confirmation card data
clarification questions
validation errors
executable typed actionThis forms the orchestration layer.
Proposed terminology for the specification
Use this vocabulary:
Transaction Draft
Draft Manager
Draft Patch
Field Provenance
Draft Readiness
Execution Gate
Action Policy
Clarification Loop
Grounding Service
Validation Service
Typed Action ExecutorThe main line:
Quick Add is a draft-centric NLU system. It transforms user utterances into structured transaction drafts, incrementally enriches and validates them, and only executes a typed action after readiness criteria and user confirmation are satisfied.Related: Draft state and lifecycle · Action policy, readiness, and execution gates · Transaction example: from utterance to execution.
Original text: 02-pipeline.md.
References
- Jurafsky, D., & Martin, J. H. (2026). Frame-Based Dialogue Systems. Appendix K of Speech and Language Processing, 3rd edition draft. PDF. ^jurafsky-2026