{
 "id": "agent-steps",
 "name": "Agent run steps",
 "purpose": "An AI agent's run as a timeline: what it has done, what it is doing now, the step waiting for your approval, what it skipped, with times, tool output and a way to stop it.",
 "use_when": [
  "when an AI agent works through several steps and may need a person's approval",
  "a person wants to see what an automated run did, with the raw tool output one click away"
 ],
 "avoid_when": [
  "a list of setup tasks the person does themselves: use setup-steps",
  "a past record of events with no live run: use audit-log or activity-feed",
  "one AI answer in a conversation: use chat-answer"
 ],
 "type": "ai",
 "style": "technical",
 "width": "medium",
 "tags": {
  "audience": "work",
  "industries": [
   "finance",
   "saas",
   "devtools",
   "productivity"
  ],
  "keywords": [
   "agent",
   "timeline",
   "steps",
   "approval",
   "run log"
  ]
 },
 "root": ".odl-agent-steps",
 "parts": [
  {
   "name": "title",
   "selector": ".odl-agent-steps h3",
   "what": "what the run is doing, the panel's heading",
   "slot": "text"
  },
  {
   "name": "stop",
   "selector": ".odl-stop",
   "what": "stops the whole run",
   "slot": "action"
  },
  {
   "name": "run_status",
   "selector": ".odl-run",
   "what": "live run state: Running or Stopped",
   "slot": "text"
  },
  {
   "name": "started",
   "selector": ".odl-sub > span:last-child",
   "what": "start time and time so far",
   "slot": "text"
  },
  {
   "name": "steps",
   "selector": "ol > li",
   "what": "one step: done, running, waiting for approval, skipped or stopped",
   "slot": "list"
  },
  {
   "name": "step_title",
   "selector": ".odl-title",
   "what": "what the step does",
   "slot": "text"
  },
  {
   "name": "step_time",
   "selector": ".odl-time",
   "what": "elapsed time when the step happened",
   "slot": "text"
  },
  {
   "name": "step_detail",
   "selector": ".odl-detail",
   "what": "one line of detail under the step",
   "slot": "text"
  },
  {
   "name": "tool_output",
   "selector": "details pre",
   "what": "raw tool output, folded away",
   "slot": "rich"
  },
  {
   "name": "waiting_tag",
   "selector": ".odl-tag",
   "what": "marks the step that waits for a person",
   "slot": "text"
  },
  {
   "name": "progress",
   "selector": ".odl-progress",
   "what": "progress of the running step",
   "slot": "number"
  },
  {
   "name": "approve",
   "selector": ".odl-yes",
   "what": "lets the waiting step go ahead",
   "slot": "action"
  },
  {
   "name": "deny",
   "selector": ".odl-no",
   "what": "refuses the waiting step",
   "slot": "action"
  }
 ],
 "data": {
  "type": "object",
  "required": [
   "title",
   "status",
   "steps"
  ],
  "properties": {
   "title": {
    "type": "string",
    "maxLength": 48,
    "part": "title"
   },
   "status": {
    "enum": [
     "running",
     "stopped"
    ],
    "part": "run_status"
   },
   "started": {
    "type": "string",
    "maxLength": 40,
    "part": "started"
   },
   "steps": {
    "type": "array",
    "minItems": 2,
    "maxItems": 8,
    "part": "steps",
    "items": {
     "type": "object",
     "required": [
      "title",
      "state"
     ],
     "properties": {
      "title": {
       "type": "string",
       "maxLength": 48,
       "part": "step_title"
      },
      "state": {
       "enum": [
        "done",
        "running",
        "waiting",
        "skipped",
        "stopped"
       ]
      },
      "time": {
       "type": "string",
       "maxLength": 8,
       "part": "step_time"
      },
      "detail": {
       "type": "string",
       "maxLength": 100,
       "part": "step_detail"
      },
      "tool_output": {
       "type": "string",
       "maxLength": 600,
       "part": "tool_output"
      },
      "progress": {
       "type": "object",
       "required": [
        "value",
        "max"
       ],
       "part": "progress",
       "properties": {
        "label": {
         "type": "string",
         "maxLength": 32
        },
        "value": {
         "type": "number"
        },
        "max": {
         "type": "number"
        }
       }
      },
      "progress_label": {
       "type": "string",
       "maxLength": 120
      }
     }
    }
   },
   "actions": {
    "type": "object",
    "properties": {
     "stop": {
      "type": "string",
      "maxLength": 14,
      "part": "stop"
     },
     "approve": {
      "type": "string",
      "maxLength": 14,
      "part": "approve"
     },
     "deny": {
      "type": "string",
      "maxLength": 14,
      "part": "deny"
     }
    }
   }
  }
 },
 "states": {
  "shown": [
   "done",
   "running",
   "waiting for approval",
   "approved",
   "denied",
   "skipped",
   "stopped",
   "expanded",
   "hover",
   "focus"
  ],
  "edge": {
   "empty": {
    "status": "handled",
    "evidence": "data-od-list",
    "how": "the Smart UI renderer puts one plain 'Nothing to show yet.' line in an empty list"
   },
   "loading": {
    "status": "shown",
    "how": "the running step has a progress bar with a moving sheen and the run badge pulses",
    "evidence": "animation: odl-agent-steps-sheen"
   },
   "error": {
    "status": "not_built",
    "how": "mark the failed step with the stopped style, put the reason in its detail line and set the run badge to Failed"
   },
   "disabled": {
    "status": "shown",
    "how": "after Stop run is pressed the button is disabled and greyed",
    "evidence": ".odl-stop:disabled"
   },
   "overflow": {
    "status": "handled",
    "how": "in a narrow box the time moves under the title and the approve buttons share the row",
    "evidence": "@container (max-width: 30rem)"
   },
   "long_text": {
    "status": "handled",
    "how": "step text wraps in its column; tool output wraps at any character; times never wrap",
    "evidence": "overflow-wrap: anywhere"
   },
   "missing_image": {
    "status": "none",
    "how": "the part has no photo"
   }
  }
 },
 "tokens": [
  "--ds-border-width-default",
  "--ds-border-width-emphasis",
  "--ds-color-bg-accent-bold",
  "--ds-color-bg-action-primary",
  "--ds-color-bg-action-primary-hover",
  "--ds-color-bg-danger-bold",
  "--ds-color-bg-danger-subtle",
  "--ds-color-bg-disabled",
  "--ds-color-bg-neutral-subtle",
  "--ds-color-bg-success-subtle",
  "--ds-color-bg-warning-subtle",
  "--ds-color-border-accent",
  "--ds-color-border-default",
  "--ds-color-border-focus",
  "--ds-color-border-subtle",
  "--ds-color-icon-subtle",
  "--ds-color-surface-raised",
  "--ds-color-surface-sunken",
  "--ds-color-text-danger",
  "--ds-color-text-disabled",
  "--ds-color-text-on-action",
  "--ds-color-text-primary",
  "--ds-color-text-secondary",
  "--ds-color-text-success",
  "--ds-color-text-tertiary",
  "--ds-color-text-warning",
  "--ds-elevation-raised",
  "--ds-focus-ring-offset",
  "--ds-focus-ring-width",
  "--ds-font-weight-body",
  "--ds-font-weight-label",
  "--ds-icon-stroke-md",
  "--ds-motion-duration-extra",
  "--ds-motion-duration-short",
  "--ds-motion-easing-linear",
  "--ds-motion-easing-standard",
  "--ds-radius-container",
  "--ds-radius-control",
  "--ds-radius-control-sm",
  "--ds-radius-full",
  "--ds-radius-nested",
  "--ds-size-control-md",
  "--ds-size-control-sm",
  "--ds-size-icon-sm",
  "--ds-size-target-min",
  "--ds-space-2",
  "--ds-space-4",
  "--ds-space-8",
  "--ds-space-inline-md",
  "--ds-space-inline-sm",
  "--ds-space-inline-xs",
  "--ds-space-inset-lg",
  "--ds-space-inset-md",
  "--ds-space-inset-xl",
  "--ds-space-inset-xs",
  "--ds-space-stack-lg",
  "--ds-space-stack-sm",
  "--ds-space-stack-xs",
  "--ds-text-body-md",
  "--ds-text-body-sm",
  "--ds-text-code-sm",
  "--ds-text-label-lg",
  "--ds-text-label-md",
  "--ds-text-title-md"
 ],
 "a11y": {
  "summary": "The steps are an ordered list with the running one marked aria-current and a labelled progressbar; tool output opens with a native details element, the run status is a live status line, and Approve, Deny and Stop run are real buttons.",
  "roles": [
   "list",
   "progressbar",
   "region",
   "status"
  ],
  "keyboard": [
   "Tab reaches Stop run, each Tool output summary, then Approve and Deny",
   "Enter or Space presses the focused button",
   "Enter or Space on a Tool output summary opens or closes it"
  ],
  "controls": {
   "button": 5,
   "input": 0,
   "link": 0,
   "select": 0,
   "textarea": 0,
   "summary": 2
  },
  "focus_visible": true,
  "reduced_motion": true,
  "min_target": true
 },
 "files": {
  "html": "components/agent-steps/component.html",
  "bytes": 20362,
  "script": true
 },
 "source": null,
 "photos": 0,
 "urls": {
  "html": "https://opendesigner.dev/library/agent-steps.html",
  "json": "https://opendesigner.dev/library/agent-steps.json",
  "page": "https://opendesigner.dev/library/agent-steps/"
 },
 "get": {
  "curl": "curl -fsSLo agent-steps.html https://opendesigner.dev/library/agent-steps.html",
  "opendesigner": "python3 path/to/skills/opendesigner/scripts/library.py add agent-steps --from https://opendesigner.dev",
  "prompt": "Add the OpenDesigner component agent-steps to this project: https://opendesigner.dev/library/agent-steps.html. Keep its markup and states; map its --ds-* variables to my tokens."
 }
}
