SemText

Reference · Agent Kit

<agent-kit-acceptance-criteria>

Agent Kit element

You author the criteria; the card renders them as a structured list. Point it at fixtures or an endpoint and it shows the cached snapshot with a last-refreshed stamp.

A given/when/then criteria list for a ticket or story. You author the criteria; the card renders them as a structured list. Point it at fixtures or an endpoint and it shows the cached snapshot with a last-refreshed stamp. optional same-origin JSON path naming a cached snapshot for enrichment (cached-embed preset; a fixture source vetoes any `endpoint`). optional same-origin API path; NEVER fetched by this element (Live-fetch policy below) — declared for the authoring pipeline only. authored ISO-8601 stamp of the most recent sync (cached-embed preset). one of `fresh`, `stale`, `error` (cached-embed preset). `project`, `key`: `string` — the reference quartet (schema `reference` preset) — see Reference attributes below. per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2)

Children

  • <agent-kit-criterion>`<agent-kit-criterion>` — one acceptance criterion; author at least one (the count is displayed by the chrome chip, never enforced by a childRule). - `<agent-kit-given>` — the precondition; exactly one per criterion. - `<agent-kit-when>` — the action; exactly one per criterion. - `<agent-kit-then>` — the observable outcome; exactly one per criterion.
  • <agent-kit-given>`<agent-kit-criterion>` — one acceptance criterion; author at least one (the count is displayed by the chrome chip, never enforced by a childRule). - `<agent-kit-given>` — the precondition; exactly one per criterion. - `<agent-kit-when>` — the action; exactly one per criterion. - `<agent-kit-then>` — the observable outcome; exactly one per criterion.
  • <agent-kit-when>`<agent-kit-criterion>` — one acceptance criterion; author at least one (the count is displayed by the chrome chip, never enforced by a childRule). - `<agent-kit-given>` — the precondition; exactly one per criterion. - `<agent-kit-when>` — the action; exactly one per criterion. - `<agent-kit-then>` — the observable outcome; exactly one per criterion.
  • <agent-kit-then>`<agent-kit-criterion>` — one acceptance criterion; author at least one (the count is displayed by the chrome chip, never enforced by a childRule). - `<agent-kit-given>` — the precondition; exactly one per criterion. - `<agent-kit-when>` — the action; exactly one per criterion. - `<agent-kit-then>` — the observable outcome; exactly one per criterion.

Example

agent-kit-acceptance-criteria.html
source
1 <agent-kit-acceptance-criteria org="acme" project="semtext" key="crit-extract">
2 <agent-kit-criterion>
3 <agent-kit-given>a hand-authored XHTML document</agent-kit-given>
4 <agent-kit-when>the extractor runs with JavaScript on or off</agent-kit-when>
5 <agent-kit-then>the two record sets deep-equal</agent-kit-then>
6 </agent-kit-criterion>
7 </agent-kit-acceptance-criteria>
render
No shipped runtime for this element — the authored example renders as plain HTML.

Source: spec/schema/agent-kit/acceptance-criteria.md