edawise

deccy GUI Last updated

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:

BadgeColorMeaning
stale <n>Amber warningConnector has n pins whose target digest no longer matches the pinned at digest.
drift <n>Amber warningNode has n claimed files whose on-disk contents differ from the recorded claim digest.
unpinned <n>Amber warningConnector has n pins with no recorded at digest.
dangling <n>Red dangerConnector has n pins pointing to a target ID that does not exist in .deccy/nodes.
missing <n>Red dangerNode has n claimed files that cannot be read from disk.
missing rationaleRed dangerNode’s record points to a rationale file under .deccy/ that is missing or unreadable.
no rationaleMuted greyNode 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 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 ItemAction
copy idCopy the card’s full 32-character node ID to the clipboard.
open claims in editorOpen the node’s first claimed file in the built-in code editor (disabled if the node has no claims).
open rationale in editorOpen the node’s rationale file in the built-in code editor (disabled if the node has no rationale pointer).
validate storeRun deccy validate on the store.
centre on cardPan the graph viewport so this card is centered in the pane.

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

Menu ItemAction
open in editorOpen the claimed file in the built-in code editor.
copy claim pathCopy 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 LabelWhen Shown in Details → ActionsKeyboard ShortcutExact deccy CLI Arguments
validateAlwaysv (in graph view)deccy validate
validate --mergeAlways—deccy validate --merge
repinSelected node is a connector with stale > 0—deccy link <id> --repin
refresh claimsSelected 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 for details.

Written by Edawise