opschain changes unlink
Included from Basic tier
opschain changes unlink <id|code> <run-id> --reason <text> [--owner /|/projects/<code>]
Detaches a mis-joined run from a record that is not closed. The ledger keeps
both rows — the link and audit:change_record:unlinked with the reason —
so a reader sees the run once belonged. The nested runs the run spawned
that sit under the same record leave with it, each audited on its own chain
with the reason and via_run_id; nested runs under another record or none
are untouched. Needs read on the run and update on the record's
change_records rule path.
Flags
| Flag | Meaning |
|---|---|
--reason <text> | Why the run does not belong to the change. Required, not blank. |
--owner <path> | The record's owner, / or /projects/<code> — narrows a code two owners hold; ignored for an id. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Unlinked. |
| 1 | Refused — the record is closed, the run is not under it, or either was not found. |
| 2 | Usage error — no reason. |