You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config phase-set + full --json error chain (rc.13, TASK-390) (#324)
* feat(workflow-config): full anyhow chain in --json errors + `config phase-set`
Fix A: emit_cli_error now builds the --json error.message via anyhow's
alternate Display (`{:#}`) instead of `err.to_string()`, so the message
carries the full context chain (outer .context() + every underlying source)
matching the human path. Previously only the top-level context surfaced,
dropping the real cause (e.g. the "references unknown phase" detail behind
"the config to write is invalid...").
Fix B: add `animus workflow config phase-set --id <id> --input-json <json>`,
mirroring agent-set/workflow-set. It read-modify-writes the RAW config_source
base's `WorkflowConfig.phase_definitions` (NOT the agent-runtime overlay that
`workflow phases upsert` writes), so a subsequently-set workflow that
references the phase resolves at post-pack-merge validation instead of failing
"references unknown phase". Case-insensitive upsert to match phase-id
resolution elsewhere.
Tests: json_error_message chain assertion; phase-set JSON-error handler;
phase-authored-on-base lets a referencing workflow validate (+ control).
Docs: docs/reference/cli/index.md.
* release: bump orchestrator-cli to v0.7.0-rc.13 (config phase-set + full --json error chain, TASK-390)
Copy file name to clipboardExpand all lines: docs/reference/cli/index.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,6 +186,7 @@ animus
186
186
│ │ ├── set Replace the full config via the writable config_source plugin (validates first; rejected on read-only sources)
187
187
│ │ ├── agent-set Create or replace one agent definition (read-modify-write the full config)
188
188
│ │ ├── agent-remove Remove one agent definition (read-modify-write the full config)
189
+
│ │ ├── phase-set Create or replace one phase definition on the config_source base (read-modify-write; writes phase_definitions, not the agent-runtime overlay)
189
190
│ │ ├── workflow-set Create or replace one workflow definition (read-modify-write)
190
191
│ │ └── workflow-remove Remove one workflow definition (read-modify-write)
191
192
│ ├── state-machine
@@ -1925,6 +1926,15 @@ the plugin — nothing is partially written.
1925
1926
model back. This is the **definition**-management verb; it does not collide
1926
1927
with the runtime `animus agent {list,get,run,...}` surface.
1927
1928
-`animus workflow config agent-remove --id <id>` — remove one agent.
0 commit comments