Skip to content

cdp_record_test_save_as_action

Promote the in-memory recording (started via cdp_record_test_start) into a first-class L3 reusable action. Writes Maestro YAML with full M7 metadata header (id, intent, tags, mutates, status, produces) to <project>/.rn-agent/actions/<id>.yaml and initialises the sidecar runtime state. Status defaults to “experimental” — first clean /run-action replay auto-promotes to “active”. Refuses if the id already exists unless overwrite=true. Distinct from cdp_record_test_save (which writes JSON to .rn-agent/recordings/) — that is for raw event archival; this is for shipping the recording as a replayable action. The optional produces field (D1209) records state postconditions — what state the action establishes when it runs cleanly — so downstream tasks can use it as a deterministic prologue.

NameTypeRequiredDefaultConstraintsDescription
idunknownYes
intentunknownYesOne-line goal — surfaced verbatim by /list-learned-actions. Required.
tagsunknownNo
mutatesunknownNo
statusunknownNo
bundleIdunknownNo
projectRootstringNoOverride project root (default: process.cwd()).
overwriteunknownNo
testNameunknownNo
producesunknownNo
cdp_record_test_save_as_action(id: <unknown>, intent: <unknown>)