Skip to content

Configure task output contracts in the workflow editor - #17

Merged
DrDrewCain merged 1 commit into
mainfrom
feature/task-output-contracts
Sep 13, 2026
Merged

DrDrewCain merged 1 commit into
mainfrom
feature/task-output-contracts

Conversation

@DrDrewCain

Copy link
Copy Markdown
Contributor

Model tasks can now declare an answer format, byte and line limits, answer instructions, and an optional JSON schema in the workflow editor. Saved plans retain these fields and their authored local definitions/references, so editing a workflow created by the SDK preserves its contract. Controls and saves follow the server’s advertised capabilities.

Malformed schema drafts block saving while remaining visible. Drafts stay attached to the same task through renaming and removal of another task; unsaved drafts also block starting a saved plan and trigger the existing discard check. The browser refuses duplicate keys, unsafe integers, and draft numbers that round or underflow. The native server remains responsible for schema semantics and final answer validation.

Validation: 476 tests; strict TypeScript, production build and packaged asset checks pass. Two actual packaged-console→native HTTP/encrypted journal journeys pass at desktop and390px mobile widths, covering invalid drafts, selected models, save/read fidelity, valid and invalid answers, process restart without extra inference, task renaming/removal and discard cancellation. Screenshots visually checked. Requires native PR78 for server execution; older hosts retain their current editor.

@DrDrewCain
DrDrewCain merged commit cc9e691 into main Sep 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant