Skip to content

Trust: /trust opens on the ledger, grouped by kind — edits by folder, seen-once folded - #42

Merged
Codestz merged 2 commits into
mainfrom
trust/ledger-first
Oct 5, 2026
Merged

Codestz merged 2 commits into
mainfrom
trust/ledger-first

Conversation

@Codestz

@Codestz Codestz commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Trust: /trust opens on the ledger, and the ledger reads in order

Feedback was that Trust's ledger and activity screens read as disorder in a busy project. This rebuilds both around what you open Trust to do.

What changes

  • The ledger first. /trust opens on the ledger. Today's answers are one row above it: select it and the card lists them; a (or enter on it) opens the full activity; esc comes back, and closes from the ledger.
  • Grouped by kind, then family. Commands, Edits, Tools & fetches, OpenCode's own — each with a heading, the current one kept at the top as you scroll. Every edit sits under its folder: one row per folder, with its file count.
  • Seen once, folded. Families approved once and never again fold into one seen once row per kind; → opens it, / still finds them.
  • One column, one shape. ✓ trusted, ▰ learning, ○ seen once, aligned on every row. A family's card lists one command a line with its standing; its buttons sit on the card's last row.
  • Paths cut in the middle. tail -10 ~/…/events.ndjson keeps the file name (rows.squeeze).
  • Activity lines up. Mark, time, command on one left edge; with one agent, the header names it once.

Checked

  • 2208 tests pass (new: kinds in order, edits by folder, the seen-once fold, the Today strip, the card's aligned column, middle-cut paths); lint and types clean.
  • Previews: 19 of 51 changed, all Trust, reviewed. A new fictional sample, storefront, as crowded as the ledger in the feedback.
  • Tried live in a seeded fictional project (~/trust-lab/acme-store).
  • tui-smoke (Trust alone and the bundle, OpenCode 1 and 2): running; results in a comment.

Not in this PR

  • Clicking an answer in the sidebar to open its rule (the sidebar block has no clickable rows yet). From the activity, enter on an answer already opens its rule.

🤖 Generated with Claude Code

Codestz and others added 2 commits October 5, 2026 11:38
… what was seen once folded away

From feedback that the ledger and the activity read as disorder.

- /trust opens on the ledger. Today's answers are one row above it; selected, its card lists them,
  and `a` (or enter on the strip) opens the full activity. esc steps back, then closes.
- The tree is grouped by kind first — Commands, Edits, Tools & fetches, OpenCode's own — each with a
  heading, the current one kept at the top as the list scrolls. An edit's family is its folder, and
  every folder is a row of its own under Edits, with its file count: three edits in three folders
  were three unrelated rows between `git status` and `jq`.
- Families seen only once fold into one `seen once` row per kind, which opens like a family.
- Every row ends in the same column and shape: `✓` trusted, `▰` learning, `○` seen once.
- Paths are cut in the middle (`rows.squeeze`), so the file name stays: five `tail` commands on one
  long path read alike when cut at the end.
- A family's card lists one command a line with its standing in one column, and the card's buttons
  sit on its last row.
- The activity has one left edge — the mark, the time, the command — and names the agent once in
  the header when there is only one.
- A new sample, `storefront` (a fictional project), as crowded as the ledger the feedback showed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t changed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Codestz

Codestz commented Oct 5, 2026

Copy link
Copy Markdown
Owner Author

tui-smoke on the PR branch: Trust alone and the bundle, OpenCode 2.0.18 and 1.18.32 — 4/4 pass (the Trust probe now expects the ledger first).

@Codestz
Codestz merged commit 05be53e into main Oct 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant