DESIGN DOCUMENT / NOT A DEPLOYED PRODUCT CONTRACT

Agent lifecycle

A bounded sequence from request intake to an inspected result.

Intake and planning

Validate identity, ownership of inputs, reporting scope, and size limits. Missing or conflicting instructions should trigger clarification. The model proposes steps with input references, expected output schemas, and tool identifiers; the application rejects unknown tools and circular dependencies.

Selecting and executing tools

Resolve each proposed tool identifier to an approved adapter. Check user authorization for the actual resource, not merely the tool name. Bind the execution to the validated argument revision. Keep credentials outside the model context and browser.

Errors are part of the lifecycle

Classify errors as retryable transient failures, invalid inputs, validation failures, authorization failures, or uncertain external outcomes. Retry only eligible operations within a budget. A write timeout is not proof that the write failed; reconcile the external outcome before trying again.

Review and completion

Validate output shape and inspect whether references exist. Mark unsupported claims, missing owners, and extraction warnings. Present the draft and sources to the user. Completion means the reviewed artifact is available; downstream publication is a separate authorized action.