Skip to content
GitHub (opens in a new tab)

AssumptionLog

The guesses an agent made without asking, so a person can confirm or correct them before they matter.

stableOrganismcontracts/assumptionlog.json

Preview

AssumptionLog

The guesses an agent made without asking. Not DecisionCard. Not MemoryPanel.

Master

Confirm a guess, or Correct it: Enter saves, Escape cancels.

4 openWeakest: Supplier prices are in EUR
Low 42%

Assumptions

4 open
  • Supplier prices are in EUR

    Low 42%
    default
  • Supplier prices exclude VAT

    Medium 64%
    earlier chat
  • Round shop prices to .99

    High 81%
    price-rules.md
  • The spring catalogue starts on 1 March

    High 90%
    catalogue.yaml

Usage

AssumptionLog lists what the agent decided on its own, weakest first, so a person can confirm or correct it before it matters. A question the agent waits on is a DecisionCard.

Do's

  • an agent filled a gap on its own (a currency, a date range, a default) and the person should check it
  • a correction should make the agent redo the steps that used the guess
  • a run header needs a one-line nudge about open guesses (compact)

Don'ts

  • the agent asks a question and waits — DecisionCard
  • facts the agent keeps across sessions — MemoryPanel
  • a recommendation the person may act on — InsightCard
<AssumptionLog
  items={[
    { id: "currency", text: "Supplier prices are in EUR", confidence: 0.42, source: "default", steps: ["Read the supplier sheet", "Convert to shop prices", "Write the EU list"], status: "open" },
    { id: "vat", text: "Supplier prices exclude VAT", confidence: 0.64, source: "earlier chat", steps: [...], status: "corrected", correction: "Supplier prices include 21% VAT" },
  ]}
  onConfirm={confirm}
  onCorrect={(id, correction) => correct(id, correction)}
/>

The guesses an agent made without asking, each with confidence, source and the steps that depend on it, so a person can confirm or correct them before they matter. Compact: open count plus the weakest guess.

When to use

  • an agent filled a gap on its own (a currency, a date range, a default) and the person should check it
  • a correction should make the agent redo the steps that used the guess
  • a run header needs a one-line nudge about open guesses (compact)

When not to use

  • the agent asks a question and waits — DecisionCard
  • facts the agent keeps across sessions — MemoryPanel
  • a recommendation the person may act on — InsightCard

What an agent reads

import { AssumptionLog } from "agentic-ds-kit";
must
  • the Card is aria-labelledby its title; compact is a section named by the title
  • confidence is a Meter with an accessible name plus the word Low, Medium or High, never colour alone
  • the filter is a kit SegmentedControl named "Show assumptions"
  • "n steps" is a Button that opens a kit Popover named "Steps that use this assumption"
  • "Show n more" moves focus to the first new row
  • Correct focuses a labelled Input; Enter saves, Escape cancels, and focus returns to the row
  • corrected text uses del and ins with hidden "Was" / "Now" words
  • motion is opacity and transform only, off under prefers-reduced-motion
defaults
  • title Assumptions
  • compact false
  • limit 5
stops if
  • Do not invent a local GuessList, AssumptionCard or ConfidenceBar
  • Do not show confidence as colour alone
  • Do not use it for questions the agent waits on (DecisionCard)
  • Do not use raw hex
  • AssumptionLog has no loading or error prop: while its data loads or fails, render kit Skeleton, LoadError or Empty in its place

From contracts/assumptionlog.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
itemsarrayYes—{ id, text, confidence: 0–1, source?, steps?: string[], status: "open" | "confirmed" | "corrected", correction? }[]. Confidence below 0.5 is Low, below 0.8 Medium, else High. Open rows sort weakest first. Confidence shows the word and the percent ("Low 46%").
titlestringNoAssumptions—
filteropen | confirmed | corrected | allNo—SegmentedControl value. Uncontrolled (starts on open) when omitted.
onFilterChangefunctionNo——
onConfirmfunctionNo—(id) => void. Confirm, outline, on open rows.
onCorrectfunctionNo—(id, correction) => void. Correct turns the row into a focused Input; Enter or Save sends, Escape or Cancel goes back. Corrected rows show the old text struck through, the new text and "agent will redo n steps".
compactbooleanNofalseOne line: open count Badge, the weakest open assumption and its confidence.
limitnumberNo5Rows shown before a "Show n more" ghost Button; 0 shows every row.
  • Component
    →

    DecisionCard

    An agent presents a choice mid-run and waits: options with a recommended one, or a free-text answer.

  • Component
    →

    MemoryPanel

    Facts an agent has stored: search, add, pin, edit or forget them (confirmed in an AlertDialog), and see which ones this thread used.

  • Component
    →

    InsightCard

    A recommended insight or opportunity as a compact card, with tone and optional actions.

  • Component
    →

    Card

    Framed tile with optional header, body, and footer actions.