Skip to content

Planning from an idea ​

Describe an idea in a planning session. Idea comparison is requested when creating a session with mode: "plan" and metadata.ideaPlannerVersion: 1. Ordinary planning sessions keep their existing format.

A validated idea proposal offers A, B and C with objectives, trade-offs, proposed work and success criteria. Resources, timing and recommendations may remain uncertain. Selecting an approach previews its proposed changes; it does not create work or complete tasks.

Inspect and review ​

These authenticated endpoints require the active workspace through X-Workspace-Id and an active, standard session owned by the caller. Paths are relative to /api/v1.

MethodPathPurpose
GET/ai/sessions/:sessionId/plan-proposalInspect the current completed planning response.
GET/ai/sessions/:sessionId/plan-proposal/:messageIdInspect a completed response, including a historical preview.
POST/ai/sessions/:sessionId/plan-proposal/implementAdmit review of the displayed revision and selected approach.

The preview's data contains the source message and run identifiers, revision, sessionId, executionMode and isCurrent. Idea proposals also contain ideaPlan and displayContent. ideaPlan contains the understood intent, context coverage, missing information, three alternatives and a recommendation that may be undecided. A null preview means no eligible completed proposal is available.

Use the revision the person inspected. A historical preview has isCurrent: false and cannot authorize a new action.

The POST body contains:

FieldRequirement
sourceMessageIdUUID of the inspected assistant response.
revisionThe server's 64-character lowercase hexadecimal revision.
alternativeKeyA, B or C; required for an idea proposal. Omit for an ordinary plan.
idempotencyKeyNonempty request identity, at most 200 characters. Reuse for an exact retry.

Missing or invalid idea selection returns 400. A changed revision or a request identity reused for a different selection returns 409. An exact admitted retry returns the same run instead of starting another.

Preparing work ​

Idea review uses approval mode. Preparation continues through the normal conversation and tool approval flow. Existing Project and Task references are checked again before admission. Access to read an entity does not grant permission to modify it.

Review admission is not transactional application of every proposed entity, executing tasks, or permission to run a Chain. Inspect requested material changes through the approval flow. Continue the conversation to revise, combine or reject approaches; a revised plan needs a fresh review.

Built with purpose. chainabit.com