feat(spec): POST /api/v1/intents/{name}/run and form on patterns (0.67.0) #21
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/spec-intent-run"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of ritual-engine#906 (toilville-design#177). This documents
POST /api/v1/intents/{name}/run, which ritual-engine#907 serves over spel#1100's contract.Scope
openapi.yaml0.67.0:POST /api/v1/intents/{name}/run(runIntent, tagpatterns), with{inputs?, run_id?, dry_run?}.run_id.dry_runvalidates and writes nothing.applied,duplicate,validrejectedreasonanderrorsfailedreason; the run is recordedformonPatternSchema: a nullableCommandFormnaming the intent's generatedcommand_formview. Its button'saction_idisintent:run.validatePatternis marked deprecated for intents, in favour ofrunIntentwithdry_run: true. It is still served.New schemas:
IntentRunRequestandIntentRunResult.CHANGELOG.md: Added and Deprecated entries under Unreleased.Testing
openapi-spec-validator: the document is valid.IntentRunResult(Draft 2020-12, with format checks):applied,rejected(with the citation form'sx-messageserror),duplicateand avaliddry run all validate;running, which is internal to the contract and never returned by the route, is rejected.PatternSchemavalidates withformboth null and set.tools/check_schema_registry.pyreports the registry is consistent.pytest: 18 passed, 1 xfailed, as on main.Impact Statement
validatePatternis still documented and served, now marked deprecated.formfield ongetPattern's response.PatternSchemagainsform. No file underschemas/changes.runIntent. The Swift client'ssubmitRitualmoves to it in #906's step 4.action_ids areIntentRunRequest.inputskeys, andintent:runmaps torunIntent.