apply_plan
Apply an ExperimentPlan to your project by specifying inline changes or a plan file, updating only cq.yaml.configs with full provenance tracking.
Instructions
Apply ExperimentPlan to project (modifies cq.yaml.configs only — never train.py). Provenance recorded under .pcq/plans/<plan_id>.json. Returns rejected envelope with reason='schema_invalid'|'validation_failed' on bad input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| plan | No | Inline ExperimentPlan dict. Minimal example: { "schema_version": 1, "id": "exp-001", "intent": "try larger lr", "base": {"baseline": "gen0"}, "parent_run_id": "run_...", "parent_run_path": "/abs/path/output_gen0", "changes": [ {"op": "set_config", "key": "lr", "value": 0.01} ] } Required: id (non-empty string), changes (non-empty list of {op: 'set_config', key: <str>, value: <any>}). Optional: intent, base, target, parent_run_id, parent_run_path, validation_policy. | |
| plan_file | No | Path to ExperimentPlan JSON file |