---
title: "Troubleshooting & Refusals Guide"
source: "https://edawise.com/docs/cli/troubleshooting/"
---

# Troubleshooting & Refusals Guide

When `deccy` cannot complete a request safely, it **refuses** rather than guessing or leaving partial changes behind. In human mode, refusals are printed to `stderr` with the reason on the first line and supporting evidence indented by two spaces:

```text
deccy: <reason>
  <evidence line 1>
  <evidence line 2>
```

This guide explains how to resolve `status` work items, fix `validate` problems, and recover from common refusals.

---

## 1. Resolving `status` Work Items

`deccy status` reports ongoing work items that do **not** fail `deccy validate`.

### `drift <path> expected <old8> has <new8>`

- **Cause:** A claimed file was modified on disk since its owning node last snapshotted it.
- **Fix:**
  1. Find which node owns the file:
     ```sh
     deccy explain <path>
     ```
  2. Once you are happy with the file's changes, refresh the node's claims:
     ```sh
     deccy claim <node-id> --refresh
     ```

### `connector <id>` / `<tail|head> <target-id> expects <old8> has <new8>` (Stale)

- **Cause:** A node pinned by `<connector>` was updated (its title, type, rationale, claims, or pins changed), so its current digest no longer matches the digest recorded in the connector's pin.
- **Fix:** Review the connector and the updated target node(s), then re-pin the connector:
  ```sh
  deccy link <connector-id> --repin
  ```

### `orphan <id>`

- **Cause:**
  - For a **decision**: no connector's `tail` or `head` names this decision.
  - For a **connector**: both its `tail` and `head` arrays are empty (`[]`).
- **Fix:** Wire the decision into a connector with `deccy new -c` or `deccy link`, or populate the skeleton connector's ends with `deccy link <connector-id> --tail <id> --head <id>`. (Standalone decisions are allowed to remain orphans if no connector applies.)

### `no-rationale <id>`

- **Cause:** The node's `rationale` field is `null`.
- **Fix:** Attach prose when needed:
  ```sh
  deccy rationale <id> --file notes.md
  # or pipe from stdin:
  printf 'Reasoning...\n' | deccy rationale <id> --file -
  ```

---

## 2. Fixing `validate` Structural Problems

`deccy validate` exits `1` whenever any of the following problems exist in the working tree.

### `conflicted: node .deccy/nodes/<id>.json is conflicted; resolve it first`

- **Cause:** `jj` or `git` reports an unresolved merge/rebase conflict on that node file. `deccy` refuses to parse conflict markers as JSON.
- **Fix:** Resolve the conflict in your VCS (or restore a valid JSON record and mark the conflict resolved in `jj`/`git`), then re-run `deccy validate`.

### `broken: <name> ...`

- **Cause:** Either a `.json` file in `.deccy/nodes/` is malformed/invalid according to the record schema, or a stray non-`<id>.json` file was placed in `.deccy/nodes/`.
- **Fix:**
  - If it is a stray file (e.g. `.deccy/nodes/notes.txt`), move or delete it out of `.deccy/nodes/`.
  - If a record was corrupted by a hand edit, inspect the evidence lines in `deccy validate` (which name the offending field or JSON syntax error) or restore the file from VCS.

### `collision: path <path> is claimed by N nodes`

- **Cause:** Two or more nodes claim the same file path (often after merging two branches that independently claimed the same file).
- **Fix:** Decide which single node should own `<path>`, and release the claim from the other node(s):
  ```sh
  deccy claim <other-node-id> --release <path>
  ```

### `dangling: connector <id> has a <tail|head> pin to unknown node <target-id>`

- **Cause:** A connector pins a node ID whose `.deccy/nodes/<target-id>.json` file does not exist.
- **Fix:** Either restore the missing target node file from VCS, or update/clear the connector's end:
  ```sh
  # Replace the end with valid node IDs:
  deccy link <connector-id> --tail <valid-id>
  # Or clear the end if no pins remain on it:
  deccy link <connector-id> --clear tail
  ```

### `cycle: <id1> -> <id2> -> ... -> <id1>`

- **Cause:** Connector pins form a loop (likely introduced by hand-editing node files or merging branches that linked connectors in opposite directions).
- **Fix:** Break the cycle on one of the connectors in the loop using `deccy link`:
  ```sh
  deccy link <connector-id> --clear head
  # or replace the end with non-cyclic targets:
  deccy link <connector-id> --head <other-id>
  ```

### `missing_claim: node <id> claims missing path <path>`

- **Cause:** A file claimed by `<id>` was deleted on disk, or replaced by a directory or symlink.
- **Fix:**
  - If the file was deleted intentionally and the node should no longer own it:
    ```sh
    deccy claim <id> --release <path>
    ```
  - If the file was deleted or moved by mistake, restore it on disk.

### `missing_rationale: node <id> points to missing rationale <pointer>`

- **Cause:** The node's `rationale` field points to `.deccy/<pointer>`, but that file is missing or is not a regular file.
- **Fix:** Restore `.deccy/<pointer>` from VCS, or write new rationale prose with:
  ```sh
  deccy rationale <id> --file <source-file>
  ```

### `unpinned: connector <id> has an unpinned <tail|head> end to <target-id>`

- **Cause:** Someone hand-wrote `"at": "current"` in a connector's pin instead of a 64-character hex digest.
- **Fix:** Pin the connector to concrete digests:
  ```sh
  deccy link <connector-id> --repin
  ```

---

## 3. Fixing `validate --merge` and `validate --since` Findings

When running `deccy validate --merge` or `deccy validate --since <REV>`:

| Finding Code | Severity | Cause | How to Fix |
| :--- | :---: | :--- | :--- |
| `discards_p2: discards p₂` | **Error** (exit 1) | The merge kept parent 1's exact bytes for a node even though parent 2 modified that node relative to the merge base. | Combine parent 2's changes into the node (e.g., claims, title, pins, or rationale) instead of taking parent 1 wholesale. |
| `discards_p1: discards p₁` | **Error** (exit 1) | The merge kept parent 2's exact bytes for a node even though parent 1 modified that node relative to the merge base. | Combine parent 1's changes into the node instead of taking parent 2 wholesale. |
| `dropped: dropped` | **Error** (exit 1) | A node present in a parent revision is absent in the current revision (and was not deleted by both parents). | Restore the dropped node file under `.deccy/nodes/<id>.json` (and its rationale if any). |
| `merge_authored: merge-authored, review it` | **Warning** (exit 0) | The node's bytes in the merge differ from both parents and the base (e.g., a union merge or manual conflict resolution). | Review `deccy show <id>` and `deccy validate` to confirm the merged record is accurate; this warning does not fail validation. |

---

## 4. Common Command Refusals & Quick Fixes

### `node <id> is still named by N connector(s)` (on `deccy remove`)

`deccy remove` never leaves dangling pins behind. The refusal lists every connector and end that references the node, along with the exact `deccy link` command to run first:

```sh
# Unhook the node from the connector end named in the refusal:
deccy link <connector-id> --clear <tail|head>
# Or keep other nodes on that end:
deccy link <connector-id> --<tail|head> <other-node-id>

# Now remove the node:
deccy remove <id>
```

### `claim path "<path>" is already owned by <owner-id>` (on `deccy new` or `deccy claim`)

A file can only have one owner. Either claim a different path, or release the path from `<owner-id>` first:

```sh
deccy claim <owner-id> --release <path>
deccy claim <new-owner-id> <path>
```

### `prefix "<prefix>" is shorter than 8 characters` / `prefix "<prefix>" is ambiguous`

Node ID prefixes must be at least **8 characters** long and match a single node. Copy a longer prefix from the candidate list printed in the refusal (or from `deccy ls`).

### `override DECCY_ID_SEED is empty`

`DECCY_ID_SEED` was exported as an empty or whitespace-only string. Either provide a non-empty seed (`DECCY_ID_SEED=my-seed`) or unset the variable (`unset DECCY_ID_SEED`).
