Files
skills/docs/requirements/024-match-card-content.md
T
Kevin Veen-BirkenbachandClaude Opus 5.5 2722cda1b5 feat(hub): requirements 023 to 031 and line comments on grant-time code
023 box heads: one head band per box under its top border; in widget mode
its controls join the widget title band.
024 Match card content: merge cards show their diff (the runner previews a
review's tree against its worktree HEAD), every card carries legal and
architecture scores, the null under command cards is gone.
025 Radio speak card: no hint text, a rounder flowing card, a MAYDAY toggle
beside push to talk.
026 widget zoom: zoom a widget's content by keyboard and the context menu.
027 slash skill suggestions: every field that messages agents suggests
skills after a slash, from a skills index the tree timer writes.
028 Resources accounts: an Accounts panel (provider, renewal, resets, usage
and remaining, host-local, emails never in git) and panel checkboxes.
029 Controls layout: Rules and Groups pages laid out.
030 Yes/No answers as buttons, and nothing hides: rows the runner cannot
run stay greyed with the reason.
031 mic in fields.
Line comments (operator 2026-11-24): wherever code waits for a grant
(Waits on Operator, the stream, the review overlay) selected lines or a
right-clicked row take a comment that marks its lines and collects on the
card; Deny opens with them as the reason and Call preselected, Grant sends
them after the signed grant as one post. Requirement 003 decision 4 and
its contract follow.

Tests are written for every requirement and run once on this head.

🎯 Fix: 80 %
💥 Break: 20 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: ~95 %
🏆 Score: 61
🚦 Gate: ⛔ fix 80 % < 90, break 20 % > 5; security ~95 % < 100: ask the operator before the commit

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 01:22:03 +00:00

3.8 KiB

024 - Match Card Content

User Story

As the operator, I want every Match card to show what it changes and no stray text, so that I can decide a merge from its card.

Decisions (operator-confirmed 2026-11-23; do not re-litigate)

  1. Merge diff: a commit card whose stage shipped no diff gets the diff of its staged tree against its worktree's HEAD (for a merge: the change onto the first parent), computed by the hub the way the command card's merge preview is, bound to the card's tree; "No diff shipped with this stage." stays only when the tree cannot be read, with the reason. Rejected: making agents ship merge diffs (old cards stay empty).
  2. No stray text: the "null" under the Match buttons goes; no text of the Match view or its Home tile reads "null" or "undefined"; a reason that is empty or - shows no reason line.
  3. Legal and architecture chips: the score labels gain ⚖️ Legal and 🏛️ Architecture (022 decision 8); a card shows them when its score text carries them, in the order 🎯 💥 💸 ⏱️ 🛡️ ⚖️ 🏛️ 🏆. The values come from 022 with Quality 004 to 006. Rejected: the hub computing them (operator: 022 owns them).
  4. One count: the Tasks tab badge and the page title count exactly the open cards Match shows, from the same server list, and follow every state poll; today the badge counts unsettled inbox items (operator rows included) and showed 3 while Match said "0 cards wait" (operator 2026-11-23).
  5. Timing: 023 decision 5.

Approach

flowchart TD
    subgraph P["🧭 0 · Preparation"]
        P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
        P2 -- "✏️ corrections" --> P1
    end
    P2 -- "🤖 yes, after 023" --> A1
    subgraph A["🔀 A · Merge diff"]
        A1["🧩 Diff of the staged tree for diffless commit cards"] --> A2["✍️ Unit and integration tests written"]
    end
    A2 --> B1
    subgraph B["🧹 B · Text and chips"]
        B1["🧩 Stray null gone"] --> B2["⚖️ 🏛️ chips in the label file"]
        B2 --> B3["✍️ Tests written"]
    end
    B3 --> C1
    subgraph C["🧪 C · After 030"]
        C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
        C2 -- "🔴 no: fix" --> C1
        C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
        CF -- "✏️ changes" --> A1
    end
    CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]

Acceptance Criteria

Merge diff

  • A review of a fixture merge commit with a tree and no diff yields a card whose files hold the merge's changed files with their hunks.
  • The card turns stale when HEAD moves after it was added.
  • A review whose tree is missing shows "No diff shipped with this stage." plus the read error.

Stray text

  • A DOM scan of the Match view and its Home tile over fixture cards of every kind finds no text node equal to "null" or "undefined".
  • A command card with reason - or empty has no .match-reason.

Chips

  • A score text with ⚖️ and 🏛️ values yields eight chips in decision 3's order; one without them yields no empty ⚖️ or 🏛️ chip.

Count

  • With fixture state holding three operator rows that are no Match card and one ask, the badge reads 1 and Match "1 card waits".
  • Answering that ask drops the badge to hidden and the title count away within one state poll, without a reload.

Tests

  • Unit: merge diff on a fixture repo (merge, plain commit, missing tree), chip order, the badge equals the open card count.
  • Integration: /api/match serves the merge card with its files and marks it stale after a HEAD move.
  • E2E: a merge card shows its diff; the text scan; screenshots.