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.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
id | unknown | Yes | |||
intent | unknown | Yes | One-line goal — surfaced verbatim by /list-learned-actions. Required. | ||
tags | unknown | No | |||
mutates | unknown | No | |||
status | unknown | No | |||
bundleId | unknown | No | |||
projectRoot | string | No | Override project root (default: process.cwd()). | ||
overwrite | unknown | No | |||
testName | unknown | No | |||
produces | unknown | No |
cdp_record_test_save_as_action(id: <unknown>, intent: <unknown>)