Submit Activity
submit_activitySubmit an activity on a module entry with AI reasoning and confidence. If confidence falls below the activity's threshold, the transition is suppressed and the entry is flagged.
Instructions
Perform an activity on a module entry: standard (create [no entryId], edit, delete, changeStatus, comment, duplicate, manage) or any custom activity from get_module_schema. Call get_form before the first submission per (module, activity); reuse its schema for further entries. The ai object is REQUIRED (reasoning + model + confidence). If confidence < the activity's threshold, the transition is suppressed and the entry is flagged. Server-side guard rules (human/hybrid actor, state-change confirm, confidence-inflation) may block — see inistate://guardrails. Input shapes: ActivitySubmission in inistate://schema/runtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ai | Yes | REQUIRED — AI agent traceability | |
| due | No | ISO 8601 | |
| input | No | Field values keyed by display name. File/Image: {name,path}. Module: {id,value} (both required). User: {id,value,username} (all three required). Plural variants (Users/Modules/Files/Images): arrays of those objects. User/Module shapes are validated pre-flight — bare ids, bare strings, or objects missing any required key will be rejected. | |
| state | No | Target state name | |
| module | Yes | ||
| comment | No | Optional. Add only when it carries information not already in the field values or reasoning. Keep short and precise. | |
| entryId | No | Omit for create | |
| activity | No | create | |
| entryIds | No | For bulk ops | |
| assignees | No | Usernames | |
| confirmed | No | Set true only after explicit user authorization. Required for: changeStatus, state override, hybrid actor, retry after flag. Does not unlock human-actor activities. See inistate://guardrails. | |
| workspaceId | No | Workspace ID. Omit if set via env or set_workspace; required in stateless/remote mode. |