---
title: "Inspector & CLI Actions"
source: "https://edawise.com/docs/gui/inspector-and-actions/"
---

# Inspector & CLI Actions

The right-hand inspector rail (`380px` wide by default) lets you examine the selected node's metadata, claims, pins, warnings, and rationale prose, as well as trigger `deccy` CLI maintenance actions.

## Tab Bar & Warning Status Strip

At the top of the right rail are two tabs:

- **`Details`** — Node ID, CLI actions, claimed files, connector pins, and kind/type metadata.
- **`Rationale`** — Rendered rationale prose and an `edit` button for opening the rationale file in the built-in editor.

Immediately below the tab bar — and visible on **both** the `Details` and `Rationale` tabs — is the **status strip** showing all warning and problem badges for the currently selected node:

| Badge | Color | Meaning |
| --- | --- | --- |
| `stale <n>` | Amber warning | Connector has `n` pins whose target digest no longer matches the pinned `at` digest. |
| `drift <n>` | Amber warning | Node has `n` claimed files whose on-disk contents differ from the recorded claim digest. |
| `unpinned <n>` | Amber warning | Connector has `n` pins with no recorded `at` digest. |
| `dangling <n>` | Red danger | Connector has `n` pins pointing to a target ID that does not exist in `.deccy/nodes`. |
| `missing <n>` | Red danger | Node has `n` claimed files that cannot be read from disk. |
| `missing rationale` | Red danger | Node's record points to a rationale file under `.deccy/` that is missing or unreadable. |
| `no rationale` | Muted grey | Node has no rationale pointer set. |

---

## `Details` Tab

### With No Node Selected

When no card is selected on the graph, the `Details` tab shows:
1. The **`Actions`** section containing store-wide commands (`validate`, `validate --merge`, and `repin all (n)` if `n` connectors in the store currently have stale pins).
2. A muted `select a node` prompt.

### With a Node Selected

Selecting a card populates the `Details` tab from top to bottom:

1. **Title**: The node's full title in accent blue.
2. **ID & Copy Button**: The full 32-character node ID in monospace alongside a `copy id` button (shortcut: `⌘c` on macOS, `Ctrl+C` on Linux/Windows). Copying places the full 32-character ID on the system clipboard and shows `copied <8-char-prefix>` in the bottom feedback bar for 2 seconds.
3. **`Actions`**: Store-wide actions plus context-sensitive actions for the selected node (see [Running CLI Actions](#running-cli-actions) below).
4. **`Claims <n>`**: Lists each file path claimed by the node:
   - Left-click any claim path to open that file in the built-in code editor.
   - Right-click a claim path to open a context menu with `open in editor` and `copy claim path`.
   - If a claimed file has changed on disk or cannot be read, a `drift` (amber) or `missing` (red) badge appears beneath its path.
5. **`Head <n>` and `Tail <n>` (Connectors Only)**: When a connector is selected, these sections list the abbreviated ID of every pinned target node along with per-pin `stale`, `unpinned`, or `dangling` badges. Decision nodes omit the `Head` and `Tail` sections.
6. **Kind & Type Footer**: Displayed at the bottom-right of the tab as `<kind> · <type>` (for example, `decision · text` or `connector · non-contradiction`). The second word (`<type>`) is the key used for custom card colors in `.deccy/settings.json`.

---

## `Rationale` Tab

The `Rationale` tab displays the prose file referenced by the selected node's rationale pointer (resolved relative to `.deccy/`):

- **`edit` Button**: When the selected node has a rationale pointer, a right-aligned `edit` button appears at the top of the tab. Clicking it opens the rationale file in the built-in code editor.
- **Markdown Rendering**: If the rationale path ends in `.md`, `.mdx`, or `.markdown` (case-insensitive), it renders as formatted dark-themed Markdown with selectable text, syntax-highlighted code blocks, and clickable links (which open in your system browser).
- **Plain-Text Rendering**: Any other file extension renders as wrapped monospace text, preserving exact characters and whitespace.
- **Missing or Unset Rationale**: Displays `no rationale` in muted text when the node has no rationale pointer, or displays the filesystem read error in red if the referenced file is missing.

---

## Context Menus

Right-clicking elements in the graph or inspector opens quick-action context menus:

### Graph Card Context Menu (Right-Click a Card)

| Menu Item | Action |
| --- | --- |
| `copy id` | Copy the card's full 32-character node ID to the clipboard. |
| `open claims in editor` | Open the node's first claimed file in the built-in code editor (disabled if the node has no claims). |
| `open rationale in editor` | Open the node's rationale file in the built-in code editor (disabled if the node has no rationale pointer). |
| `validate store` | Run `deccy validate` on the store. |
| `centre on card` | Pan the graph viewport so this card is centered in the pane. |

### Claim Row Context Menu (Right-Click a Claim Path in `Details`)

| Menu Item | Action |
| --- | --- |
| `open in editor` | Open the claimed file in the built-in code editor. |
| `copy claim path` | Copy the resolved filesystem path of the claimed file to the clipboard. |

---

## Running CLI Actions

All structural maintenance commands are executed by spawning the discovered `deccy` CLI binary as a subprocess with the store root as its working directory.

| Button Label | When Shown in `Details` → `Actions` | Keyboard Shortcut | Exact `deccy` CLI Arguments |
| --- | --- | --- | --- |
| `validate` | Always | `v` (in graph view) | `deccy validate` |
| `validate --merge` | Always | — | `deccy validate --merge` |
| `repin` | Selected node is a connector with `stale > 0` | — | `deccy link <id> --repin` |
| `refresh claims` | Selected node (decision or connector) has `drift > 0` | — | `deccy claim <id> --refresh` |
| `repin all (n)` | **No node is selected**, and `n > 0` connectors in the store have `stale > 0` | — | Runs `deccy link <id> --repin` sequentially for each stale connector in sorted ID order |

### Execution Model & Output Logging

- **Single Action Slot**: Only one CLI action (or `repin all` batch) can run at a time, preventing concurrent writes to `.deccy/`. While an action is running, all action buttons are disabled and the bottom feedback bar displays `running <label>`.
- **Automatic Reload**: As soon as the CLI command (or the final command in `repin all`) finishes, `deccy-gui` reloads the store in the background and updates all cards, edges, and badges.
- **Inspecting Command Output**: Every command run is recorded in the drawer's **`Outputs`** tab with its exact `$ <argv>`, exit code (`exit 0` in green or non-zero in red), and captured `stdout` / `stderr`. See [Built-in Editor & Terminal Drawer](https://edawise.com/docs/gui/editor-and-terminal/#outputs-tab) for details.
