Files
Agent-System/internal/app/intentflow/doc.go
T
weichenandCursor 9364da4974 feat(intentflow): freeze plan lifecycle contracts and batch policy
Add the app/intentflow skeleton so HITL state, error codes, REST shapes, and BatchActionPolicy live outside intent and default to the legacy tier.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 16:22:52 +00:00

14 lines
678 B
Go

// Package intentflow owns the multi-intent plan lifecycle.
//
// It is the only application entry for proposing, confirming, recovering, and
// advancing persistent plans. Callers (chat/server) must depend on the Service
// interface and PlanView projection, not on the store, pool, or action-owner
// engines.
//
// Hard rules:
// - Confirmation is not authorization; each step re-checks the current principal.
// - PostgreSQL plan/step/decision rows are authoritative; cards and SSE are projections.
// - internal/intent stays a pure rule module (intent -> maturity).
// - This package must not import docgov, taskrun, coordinator, server, or pgx.
package intentflow