From 21d1d2e8bf5adfb3da7484f19f7dabf35a7c1acd Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 24 Nov 2026 04:52:58 +1100 Subject: [PATCH] docs: add design system and product specs - Add DESIGN.md and .impeccable tokens/config for the Archie design system - Add PRODUCT.md capturing platform, users and positioning --- .impeccable/config.json | 10 + .impeccable/design.json | 141 ++++++++++++++ DESIGN.md | 407 ++++++++++++++++++++++++++++++++++++++++ PRODUCT.md | 119 ++++++++++++ 4 files changed, 677 insertions(+) create mode 100644 .impeccable/config.json create mode 100644 .impeccable/design.json create mode 100644 DESIGN.md create mode 100644 PRODUCT.md diff --git a/.impeccable/config.json b/.impeccable/config.json new file mode 100644 index 000000000..27a1840ee --- /dev/null +++ b/.impeccable/config.json @@ -0,0 +1,10 @@ +{ + "buildPath": "code", + "hook": { + "enabled": true, + "limits": { + "maxFindings": 5, + "maxChars": 8000 + } + } +} diff --git a/.impeccable/design.json b/.impeccable/design.json new file mode 100644 index 000000000..0be6d1821 --- /dev/null +++ b/.impeccable/design.json @@ -0,0 +1,141 @@ +{ + "schemaVersion": 2, + "generatedAt": "2026-11-24T00:00:00+11:00", + "title": "Design System: Archie", + "extensions": { + "colorMeta": { + "signal-sage": { "role": "primary", "displayName": "Signal Sage", "canonical": "#51a580", "tonalRamp": ["#0f2a1e", "#17402e", "#1f5740", "#2e795a", "#51a580", "#7dbf9f", "#acd8c2", "#dcefe5"] }, + "signal-sage-deep": { "role": "primary", "displayName": "Signal Sage Deep", "canonical": "#2e795a" }, + "signal-sage-ink": { "role": "primary", "displayName": "Signal Sage Ink", "canonical": "#0c6f4d" }, + "graphite-card": { "role": "neutral", "displayName": "Graphite Card", "canonical": "#1c1d21", "tonalRamp": ["#0e0f10", "#16171a", "#1c1d21", "#26282c", "#3c3f45", "#70727a", "#a6a39b", "#e8e6e1"] }, + "paper-canvas": { "role": "neutral", "displayName": "Paper Canvas", "canonical": "#e9e7e2", "tonalRamp": ["#1f1f1d", "#5c5a55", "#8a877f", "#c7c4bd", "#dcdad4", "#e9e7e2", "#f5f4f1", "#ffffff"] }, + "amber-warn": { "role": "tertiary", "displayName": "Amber Warn", "canonical": "#d9a45b", "tonalRamp": ["#3a2a10", "#5c4116", "#8a5a12", "#b5833a", "#d9a45b", "#e5bf87", "#efd7b3", "#f8eddc"] }, + "clay-danger": { "role": "tertiary", "displayName": "Clay Danger", "canonical": "#d9776b", "tonalRamp": ["#3d1714", "#5e2420", "#b3413a", "#c75d53", "#d9776b", "#e49d94", "#eec3bd", "#f8e6e3"] }, + "slate-info": { "role": "tertiary", "displayName": "Slate Info", "canonical": "#8aa4c2", "tonalRamp": ["#17222f", "#24364b", "#3d5f86", "#6283a8", "#8aa4c2", "#adc0d5", "#cfdae6", "#ecf1f6"] }, + "stone-idle": { "role": "neutral", "displayName": "Stone Idle", "canonical": "#9a978f" } + }, + "typographyMeta": { + "page-title": { "displayName": "Page title", "purpose": "One per page, in PageHeader beside the page's actions." }, + "title": { "displayName": "Title", "purpose": "Card and panel titles." }, + "label": { "displayName": "Label", "purpose": "Body copy, rows, navigation, buttons and fields." }, + "caption": { "displayName": "Caption", "purpose": "Metadata, column labels, step-type labels and badges." }, + "section-label": { "displayName": "Section label", "purpose": "Uppercase group headings in sidebars and settings navigation." }, + "micro": { "displayName": "Micro", "purpose": "The smallest annotations, used sparingly." }, + "mono": { "displayName": "Mono", "purpose": "IDs, short hashes, durations, log fields and code." } + }, + "shadows": [ + { "name": "rest", "value": "0 1px 2px rgba(0, 0, 0, 0.4)", "purpose": "Top bar and canvas nodes at rest (dark). Light: 0 1px 2px rgba(31, 31, 29, 0.06)." }, + { "name": "float", "value": "0 8px 28px rgba(0, 0, 0, 0.4)", "purpose": "Popovers, menus, dialogs and the expanded step node (dark). Light: 0 8px 28px rgba(31, 31, 29, 0.1)." } + ], + "motion": [ + { "name": "transition", "value": "140ms cubic-bezier(0.4, 0, 0.2, 1)", "purpose": "Default colour and state transitions." }, + { "name": "node-expand", "value": "200ms", "purpose": "Step node width and shadow when it expands in place." }, + { "name": "reduced-motion", "value": "0.01ms", "purpose": "All animation and transition durations under prefers-reduced-motion or the reduced-motion setting." } + ], + "breakpoints": [ + { "name": "sm", "value": "640px" }, + { "name": "md", "value": "768px" }, + { "name": "lg", "value": "1024px" } + ] + }, + "components": [ + { + "name": "Primary Button", + "kind": "button", + "refersTo": "button-primary", + "description": "The one filled action per view.", + "html": "", + "css": ".ds-btn-primary { height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: var(--primary, #2e795a); color: var(--primary-foreground, #fff); font: 500 0.8125rem 'IBM Plex Sans Variable', system-ui, sans-serif; cursor: pointer; transition: all 140ms cubic-bezier(0.4, 0, 0.2, 1); } .ds-btn-primary:hover { background: color-mix(in srgb, var(--primary, #2e795a) 80%, transparent); } .ds-btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring, #51a580); } .ds-btn-primary:active { transform: translateY(1px); }" + }, + { + "name": "Ghost Button", + "kind": "button", + "refersTo": "button-ghost", + "description": "Default for secondary and contextual actions.", + "html": "", + "css": ".ds-btn-ghost { height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--foreground, #e8e6e1); font: 500 0.8125rem 'IBM Plex Sans Variable', system-ui, sans-serif; cursor: pointer; transition: all 140ms cubic-bezier(0.4, 0, 0.2, 1); } .ds-btn-ghost:hover { background: var(--muted, #26282c); } .ds-btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring, #51a580); } .ds-btn-ghost:active { transform: translateY(1px); }" + }, + { + "name": "Attention Button", + "kind": "button", + "refersTo": "button-attention", + "description": "An action that exists because something is waiting.", + "html": "", + "css": ".ds-btn-attention { height: 36px; padding: 0 10px; border: 1px solid var(--warn, #d9a45b); border-radius: 8px; background: var(--warn-soft, rgba(217,164,91,0.08)); color: var(--warn, #d9a45b); font: 500 0.8125rem 'IBM Plex Sans Variable', system-ui, sans-serif; cursor: pointer; transition: all 140ms cubic-bezier(0.4, 0, 0.2, 1); } .ds-btn-attention:hover { background: rgba(217,164,91,0.16); } .ds-btn-attention:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring, #51a580); }" + }, + { + "name": "Text Input", + "kind": "input", + "refersTo": "input", + "description": "Single-line field on the card surface.", + "html": "", + "css": ".ds-input { height: 36px; width: 240px; padding: 4px 10px; border: 1px solid var(--input, #70727a); border-radius: 8px; background: var(--card, #1c1d21); color: var(--foreground, #e8e6e1); font: 400 0.8125rem 'IBM Plex Sans Variable', system-ui, sans-serif; outline: none; transition: border-color 140ms, box-shadow 140ms; } .ds-input::placeholder { color: var(--fg-muted, #a6a39b); } .ds-input:focus-visible { border-color: var(--ring, #51a580); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring, #51a580) 50%, transparent); }" + }, + { + "name": "Status Badges", + "kind": "chip", + "refersTo": "badge-ok", + "description": "Solid tone on its soft background; the only place status colour is decided.", + "html": "Succeeded Waiting Failed Working Idle", + "css": ".ds-badge { display: inline-flex; align-items: center; height: 20px; padding: 2px 8px; border-radius: 4px; font: 500 0.6875rem 'IBM Plex Sans Variable', system-ui, sans-serif; white-space: nowrap; } .ds-ok { background: var(--ok-soft, rgba(81,165,128,0.12)); color: var(--ok, #51a580); } .ds-warn { background: var(--warn-soft, rgba(217,164,91,0.08)); color: var(--warn, #d9a45b); } .ds-danger { background: var(--danger-soft, rgba(217,119,107,0.08)); color: var(--danger, #d9776b); } .ds-info { background: var(--info-soft, rgba(138,164,194,0.1)); color: var(--info, #8aa4c2); } .ds-idle { background: var(--idle-soft, rgba(143,140,133,0.1)); color: var(--idle, #9a978f); }" + }, + { + "name": "Section Card", + "kind": "card", + "refersTo": "card", + "description": "Titled card on the workspace; ring, no shadow.", + "html": "

Event sources

prometheus a41f9c2e

", + "css": ".ds-card { width: 320px; padding: 16px; border-radius: 12px; background: var(--card, #1c1d21); color: var(--card-foreground, #e8e6e1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground, #e8e6e1) 10%, transparent); font-family: 'IBM Plex Sans Variable', system-ui, sans-serif; } .ds-card-title { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 500; line-height: 1.375; } .ds-card-body { margin: 0; font-size: 0.8125rem; color: var(--fg-muted, #a6a39b); } .ds-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.6875rem; color: var(--fg-subtle, #99968f); }" + }, + { + "name": "Top Bar", + "kind": "nav", + "refersTo": "top-bar", + "description": "Sticky 56px bar with breadcrumb and account controls.", + "html": "
Connected
", + "css": ".ds-topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; background: var(--card, #1c1d21); border-bottom: 1px solid var(--border-strong, #3c3f45); box-shadow: 0 1px 2px rgba(0,0,0,0.4); font: 400 0.8125rem 'IBM Plex Sans Variable', system-ui, sans-serif; } .ds-crumbs { display: flex; gap: 6px; color: var(--fg-muted, #a6a39b); } .ds-crumbs a { color: inherit; text-decoration: none; } .ds-crumbs a:hover { color: var(--foreground, #e8e6e1); } .ds-crumbs a:focus-visible { outline: 2px solid var(--ring, #51a580); outline-offset: 2px; } .ds-current { color: var(--foreground, #e8e6e1); } .ds-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.6875rem; color: var(--fg-muted, #a6a39b); } .ds-pill i { width: 6px; height: 6px; border-radius: 9999px; background: var(--ok, #51a580); }" + }, + { + "name": "Step Node", + "kind": "custom", + "refersTo": "step-node", + "description": "The workflow canvas card; the same card shows edit state and live run state.", + "html": "
Agent4.2s
2 Investigate disk usage
", + "css": ".ds-node { width: 240px; padding: 10px 12px; border: 1px solid var(--border, #313338); border-radius: 8px; background: var(--card, #1c1d21); box-shadow: 0 1px 2px rgba(0,0,0,0.4); font-family: 'IBM Plex Sans Variable', system-ui, sans-serif; color: var(--foreground, #e8e6e1); cursor: pointer; transition: width 200ms, box-shadow 200ms, border-color 140ms; } .ds-node:hover { border-color: var(--muted-foreground, #a6a39b); } .ds-node:focus-visible { outline: none; width: 416px; box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 0 2px var(--ring, #51a580); } .ds-node-meta { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; color: var(--fg-muted, #a6a39b); } .ds-node-meta svg { color: var(--link, #51a580); } .ds-node-dur { margin-left: auto; font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--fg-subtle, #99968f); } .ds-node-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--info, #8aa4c2); } .ds-node-title { margin-top: 6px; font-size: 0.8125rem; font-weight: 500; }" + } + ], + "narrative": { + "northStar": "The Operations Console", + "overview": "Archie's dashboard is a calm instrument panel for someone responsible for a live estate. It is dense and legible, and it stays quiet until something needs the operator. The mood is calm, precise and trustworthy: restraint is how the interface shows it is in control, and nothing raises its voice unless state demands it.\n\nThe palette is Graphite: warm neutral greys with no hue cast and a single accent, Signal Sage. Hierarchy comes from surface steps, hairlines and type weight, never from tinted backgrounds. Colour is a signal, not decoration. Sage marks what is live, healthy or actionable, and the four status hues (amber, clay, slate, stone) each keep one meaning everywhere they appear. Dark and light themes carry the same variable set and the same rules; the operator's OS chooses unless they pick one.\n\nDensity is a first-class setting. The default is already compact, and compact mode tightens the whole spacing scale without shrinking text or hit targets. Controls are compact and contextual: they appear where the work is, on hover or focus, rather than as permanent chrome. The interface never looks like a toy and never borrows generic SaaS gloss.", + "keyCharacteristics": [ + "Warm graphite neutrals, one sage accent, four fixed status hues.", + "IBM Plex Sans with Plex Mono for IDs, durations and payloads, on a compact type scale (11 to 15px).", + "Flat tonal layers; shadows only for things that float.", + "Compact density by default, with a tighter compact mode.", + "Both themes, reduced motion and keyboard focus are invariants, not options." + ], + "rules": [ + { "name": "The Semantic Names Rule", "body": "Components reference `--primary`, `--ok`, `--warn` and the rest, never a raw hex or a hue name such as `--violet`. A palette change is one file.", "section": "colors" }, + { "name": "The One Meaning Rule", "body": "A status colour means the same thing wherever it appears: a task state, a gate result, a log level and a trend all draw from the same five tones.", "section": "colors" }, + { "name": "The Measured Contrast Rule", "body": "Every foreground is checked against every surface it lands on, hover states included, at 4.5:1. Nothing dimmer than Text Subtle is allowed as text.", "section": "colors" }, + { "name": "The Type Scale Rule", "body": "Use the named steps (`text-micro`, `text-caption`, `text-label`, `text-title`), never pixel sizes. Headings are separated by weight and placement, not by size jumps.", "section": "typography" }, + { "name": "The Data Is Mono Rule", "body": "Anything the operator might copy or compare (an ID, a version, a duration, a payload) is set in Plex Mono.", "section": "typography" }, + { "name": "The Flat By Default Rule", "body": "Cards sit on the page with a 1px ring, not a shadow. A larger shadow means the element floats above the page.", "section": "elevation" } + ], + "dos": [ + "Do use semantic tokens (`bg-card`, `text-fg-muted`, `bg-ok-soft`) and the named type steps, so both themes and compact density work without extra code.", + "Do keep one filled primary button per view; everything else is ghost, outline or secondary.", + "Do set IDs, versions, durations and payloads in Plex Mono.", + "Do show actions on hover or focus where the work is, and make every hover action reachable by keyboard.", + "Do honour reduced motion: nothing animates when the operator asks it not to." + ], + "donts": [ + "Don't use generic SaaS gloss: no purple or multicolour gradients, no glow shadows, no glassmorphism cards, no gradient text.", + "Don't make it toy-like on phones: no blanket 44px minimum sizes on buttons, links and fields. Widen the tap area invisibly with `touch-hit` instead.", + "Don't tint backgrounds for hierarchy; use surface steps and borders.", + "Don't introduce a new hue or reuse a status colour for decoration.", + "Don't put white text on a status fill; use the soft background and the solid tone.", + "Don't add a shadow to a resting card." + ] + } +} diff --git a/DESIGN.md b/DESIGN.md new file mode 100644 index 000000000..3ed664bf3 --- /dev/null +++ b/DESIGN.md @@ -0,0 +1,407 @@ +--- +name: Archie +description: Event-driven Agentic Automation +colors: + signal-sage: "#51a580" + signal-sage-deep: "#2e795a" + signal-sage-ink: "#0c6f4d" + graphite-canvas: "#0e0f10" + graphite-workspace: "#16171a" + graphite-card: "#1c1d21" + graphite-popover: "#202226" + graphite-hover: "#26282c" + graphite-hairline: "#2a2c30" + graphite-border: "#313338" + graphite-border-strong: "#3c3f45" + graphite-input: "#70727a" + graphite-text: "#e8e6e1" + graphite-text-muted: "#a6a39b" + graphite-text-subtle: "#99968f" + paper-canvas: "#e9e7e2" + paper-workspace: "#f5f4f1" + paper-card: "#ffffff" + paper-hover: "#ecebe7" + paper-hairline: "#d6d3cc" + paper-border: "#dcdad4" + paper-border-strong: "#c7c4bd" + paper-input: "#8a877f" + paper-text: "#1f1f1d" + paper-text-muted: "#5c5a55" + paper-text-subtle: "#66635d" + amber-warn: "#d9a45b" + amber-warn-ink: "#8a5a12" + clay-danger: "#d9776b" + clay-danger-ink: "#b3413a" + slate-info: "#8aa4c2" + slate-info-ink: "#3d5f86" + stone-idle: "#9a978f" + stone-idle-ink: "#5f5d58" +typography: + title: + fontFamily: "IBM Plex Sans Variable, system-ui, sans-serif" + fontSize: "0.9375rem" + fontWeight: 500 + lineHeight: 1.375 + page-title: + fontFamily: "IBM Plex Sans Variable, system-ui, sans-serif" + fontSize: "0.9375rem" + fontWeight: 600 + lineHeight: 1.25 + letterSpacing: "-0.025em" + label: + fontFamily: "IBM Plex Sans Variable, system-ui, sans-serif" + fontSize: "0.8125rem" + fontWeight: 400 + caption: + fontFamily: "IBM Plex Sans Variable, system-ui, sans-serif" + fontSize: "0.6875rem" + fontWeight: 500 + section-label: + fontFamily: "IBM Plex Sans Variable, system-ui, sans-serif" + fontSize: "0.6875rem" + fontWeight: 500 + letterSpacing: "0.06em" + micro: + fontFamily: "IBM Plex Sans Variable, system-ui, sans-serif" + fontSize: "0.625rem" + mono: + fontFamily: "IBM Plex Mono, ui-monospace, monospace" + fontSize: "0.6875rem" + fontWeight: 400 +rounded: + sm: "4px" + md: "6px" + lg: "8px" + xl: "12px" + full: "9999px" +spacing: + unit: "0.25rem" + unit-compact: "0.225rem" + control-gap: "0.375rem" + card-x: "1rem" + card-y: "1rem" + page-x: "1.5rem" + page-y: "1.25rem" +components: + button-primary: + backgroundColor: "{colors.signal-sage-deep}" + textColor: "#ffffff" + typography: "{typography.label}" + rounded: "{rounded.lg}" + padding: "0 10px" + height: "36px" + button-ghost: + backgroundColor: "transparent" + textColor: "{colors.graphite-text}" + typography: "{typography.label}" + rounded: "{rounded.lg}" + padding: "0 10px" + height: "36px" + button-ghost-hover: + backgroundColor: "{colors.graphite-hover}" + button-attention: + backgroundColor: "rgba(217, 164, 91, 0.08)" + textColor: "{colors.amber-warn}" + typography: "{typography.label}" + rounded: "{rounded.lg}" + padding: "0 10px" + height: "36px" + button-destructive: + backgroundColor: "rgba(217, 119, 107, 0.2)" + textColor: "{colors.clay-danger}" + typography: "{typography.label}" + rounded: "{rounded.lg}" + padding: "0 10px" + height: "36px" + input: + backgroundColor: "{colors.graphite-card}" + textColor: "{colors.graphite-text}" + typography: "{typography.label}" + rounded: "{rounded.lg}" + padding: "4px 10px" + height: "36px" + card: + backgroundColor: "{colors.graphite-card}" + textColor: "{colors.graphite-text}" + rounded: "{rounded.xl}" + padding: "16px" + badge-ok: + backgroundColor: "rgba(81, 165, 128, 0.12)" + textColor: "{colors.signal-sage}" + typography: "{typography.caption}" + rounded: "{rounded.sm}" + padding: "2px 8px" + height: "20px" + badge-warn: + backgroundColor: "rgba(217, 164, 91, 0.08)" + textColor: "{colors.amber-warn}" + typography: "{typography.caption}" + rounded: "{rounded.sm}" + padding: "2px 8px" + height: "20px" + badge-danger: + backgroundColor: "rgba(217, 119, 107, 0.08)" + textColor: "{colors.clay-danger}" + typography: "{typography.caption}" + rounded: "{rounded.sm}" + padding: "2px 8px" + height: "20px" + status-dot: + rounded: "{rounded.full}" + size: "6px" + top-bar: + backgroundColor: "{colors.graphite-card}" + height: "56px" + padding: "0 16px" + step-node: + backgroundColor: "{colors.graphite-card}" + rounded: "{rounded.lg}" + padding: "10px 12px" + width: "240px" + step-node-expanded: + width: "416px" +--- + +# Design System: Archie + +## Overview + +**Creative North Star: "The Operations Console"** + +Archie's dashboard is a calm instrument panel for someone responsible for a live +estate. It is dense and legible, and it stays quiet until something needs the +operator. The mood is calm, precise and trustworthy: restraint is how the +interface shows it is in control, and nothing raises its voice unless state +demands it. + +The palette is Graphite: warm neutral greys with no hue cast and a single accent, +Signal Sage. Hierarchy comes from surface steps, hairlines and type weight, never +from tinted backgrounds. Colour is a signal, not decoration. Sage marks what is +live, healthy or actionable, and the four status hues (amber, clay, slate, stone) +each keep one meaning everywhere they appear. Dark and light themes carry the same +variable set and the same rules; the operator's OS chooses unless they pick one. + +Density is a first-class setting. The default is already compact, and compact mode +tightens the whole spacing scale without shrinking text or hit targets. Controls +are compact and contextual: they appear where the work is, on hover or focus, +rather than as permanent chrome. The interface never looks like a toy and never +borrows generic SaaS gloss. + +**Key Characteristics:** +- Warm graphite neutrals, one sage accent, four fixed status hues. +- IBM Plex Sans with Plex Mono for IDs, durations and payloads, on a compact type + scale (11 to 15px). +- Flat tonal layers; shadows only for things that float. +- Compact density by default, with a tighter compact mode. +- Both themes, reduced motion and keyboard focus are invariants, not options. + +## Colors + +Warm graphite greys carry the structure; Signal Sage and four status hues carry +meaning, and each one means the same thing everywhere. + +### Primary +- **Signal Sage** (#51a580): the mark, accents, focus rings and links in dark mode, + and the `ok` state there. On a dark card it is 5.7:1 as text. +- **Signal Sage Deep** (#2e795a): the primary button fill in both themes (white on + it is 5.3:1) and the focus ring on paper, where bright sage falls under 3:1. +- **Signal Sage Ink** (#0c6f4d): links and `ok` text in the light theme, 5.0:1 on + the paper canvas. + +### Neutral +- **Graphite Canvas** (#0e0f10) / **Paper Canvas** (#e9e7e2): the page behind + everything. +- **Graphite Workspace** (#16171a) / **Paper Workspace** (#f5f4f1): the main + content area inside the sidebar shell. +- **Graphite Card** (#1c1d21) / **Paper Card** (#ffffff): cards, the top bar, + inputs and canvas nodes. **Graphite Popover** (#202226) lifts menus one step + above cards in dark mode. +- **Graphite Hover** (#26282c) / **Paper Hover** (#ecebe7): hover, secondary and + muted surfaces (shadcn's `accent`, `muted` and `secondary` all share it). +- **Hairline, Border, Border Strong** (#2a2c30, #313338, #3c3f45 dark; #d6d3cc, + #dcdad4, #c7c4bd light): dividers, card edges and the top bar's bottom edge. +- **Input stroke** (#70727a dark, #8a877f light): field borders, 3.5:1 or better + against the card. +- **Text, Text Muted, Text Subtle** (#e8e6e1, #a6a39b, #99968f dark; #1f1f1d, + #5c5a55, #66635d light): primary copy, secondary copy, and the dimmest text + allowed, for hints and captions only. + +### Status +- **Amber Warn** (#d9a45b dark, #8a5a12 light): waiting, needs attention, the + `attention` button. +- **Clay Danger** (#d9776b dark, #b3413a light): failures and destructive + actions. +- **Slate Info** (#8aa4c2 dark, #3d5f86 light): an agent that is working. +- **Stone Idle** (#9a978f dark, #5f5d58 light): idle, inactive or unknown. + +Each status hue has a soft background at 8 to 12% alpha of its own tone. Status +badges put the solid tone on the soft background, never white text on a fill. + +### Named Rules +**The Semantic Names Rule.** Components reference `--primary`, `--ok`, `--warn` +and the rest, never a raw hex or a hue name such as `--violet`. A palette change is +one file. + +**The One Meaning Rule.** A status colour means the same thing wherever it +appears: a task state, a gate result, a log level and a trend all draw from the +same five tones. + +**The Measured Contrast Rule.** Every foreground is checked against every surface +it lands on, hover states included, at 4.5:1. Nothing dimmer than Text Subtle is +allowed as text. + +## Typography + +**Body Font:** IBM Plex Sans Variable (with system-ui, sans-serif) +**Label/Mono Font:** IBM Plex Mono (with ui-monospace, monospace) + +**Character:** A sober, engineered grotesque paired with its own monospace, so +identifiers, durations and payloads read as data without changing voice. + +### Hierarchy +- **Page title** (600, 0.9375rem, 1.25, -0.025em): one per page, in PageHeader + beside the page's actions. +- **Title** (500, 0.9375rem, 1.375): card and panel titles. +- **Label** (400 to 500, 0.8125rem): body copy, rows, navigation, buttons and + fields. The default text size of the dashboard. +- **Caption** (500, 0.6875rem): metadata, column labels, step-type labels and + badges. +- **Section label** (500, 0.6875rem, 0.06em, uppercase): group headings in + sidebars and settings navigation only. +- **Micro** (0.625rem): the smallest annotations, used sparingly. +- **Mono** (400, caption size): IDs, short hashes, durations, log fields and code. + +### Named Rules +**The Type Scale Rule.** Use the named steps (`text-micro`, `text-caption`, +`text-label`, `text-title`), never pixel sizes. Headings are separated by weight +and placement, not by size jumps. + +**The Data Is Mono Rule.** Anything the operator might copy or compare (an ID, a +version, a duration, a payload) is set in Plex Mono. + +## Layout + +The app shell is a collapsible sidebar plus a sticky 56px top bar holding the +breadcrumb and account controls. Page content sits in the workspace surface with +1.5rem by 1.25rem padding, dropping to 1rem below the large breakpoint, and a +bottom clearance for the docked chat composer. The chat can pin to either side, +and the workspace shifts to make room for it. + +Spacing is Tailwind's 0.25rem scale; compact density sets the unit to 0.225rem, +so every gap and padding tightens together and components keep their relative +rhythm. Pages use container queries (`@container`) so panels respond to the space +they actually have, not the viewport. + +Phone width is a real target. Desktop layouts collapse to dropdowns instead of +side lists and to stacked panes, and nothing overlaps the canvas. Controls keep +their desktop size on touch screens; a `touch-hit` utility widens the tap area to +44px invisibly, and only rows in floating menus grow to 2.75rem. + +The workflow canvas is the one full-bleed surface: on phones it takes the full +viewport height, and steps expand in place rather than opening side panels. + +## Elevation & Depth + +The system is flat, with tonal layers. Depth comes from surface steps (canvas, +workspace, card, popover) and from hairlines and 1px rings. Shadows are reserved +for things that float above the page: menus, popovers, dialogs and an expanded +canvas node. + +### Shadow Vocabulary +- **Rest** (`box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4)` dark, `0 1px 2px + rgba(31, 31, 29, 0.06)` light): the top bar and canvas nodes at rest; barely + there. +- **Float** (`box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4)` dark, `0 8px 28px + rgba(31, 31, 29, 0.1)` light): popovers, menus, dialogs and the expanded step + node. + +### Named Rules +**The Flat By Default Rule.** Cards sit on the page with a 1px ring, not a +shadow. A larger shadow means the element floats above the page. + +## Shapes + +Gently rounded and consistent. Controls, inputs and canvas nodes use 8px corners +(`rounded.lg`); cards use 12px (`rounded.xl`); badges use 4px (`rounded.sm`), and +small buttons step down to 6px. Status dots and avatars are the only full circles. +Borders are 1px and quiet; a strong border marks structural edges such as the top +bar. Focus is always a visible 2px ring offset by 2px, in sage. + +## Components + +Compact and contextual: small controls that appear where the work is. + +### Buttons +- **Shape:** gently rounded (8px), 36px tall by default, with 32px and 24px sizes + and square icon variants. +- **Primary:** Signal Sage Deep fill with white label text. At most one per view. +- **Ghost / Outline / Secondary:** transparent or hover-surface fills that pick + up the hover surface on hover; the default for everything that is not the main + action. +- **Attention:** amber stroke and soft amber fill, for an action that exists + because something is waiting. Not destructive. +- **Destructive:** soft clay fill with clay text, never a solid red block. +- **Hover / Focus:** 140ms colour transitions, a 3px sage focus ring, and a 1px + downward press on active. + +### Chips (Badges) +- **Style:** 20px tall, 4px corners, caption type. Status badges (`ok`, `warn`, + `danger`, `info`, `idle`) set the solid tone on its soft background. +- **State:** the badge and the StatusDot are the only places status colour is + decided. + +### Cards / Containers +- **Corner Style:** 12px. +- **Background:** the card surface on the workspace. +- **Shadow Strategy:** none; a 1px foreground ring at 10% (see Elevation). +- **Internal Padding:** 16px, or 12px for the small size. Section wraps a card + with a title; an edited section shows a sage ring. + +### Inputs / Fields +- **Style:** card background, 1px input stroke, 8px corners, 36px tall, label + size (title size on touch screens so phones do not zoom). +- **Focus:** the border turns sage with a 3px sage ring. +- **Error / Disabled:** a clay border and ring; disabled fields drop to 50% + opacity. + +### Navigation +- **Sidebar:** card surface, label-size rows, uppercase section labels in Text + Subtle, the hover surface on hover and active. Collapses on phones. +- **Top bar:** card surface, 56px, strong bottom border with the rest shadow, + breadcrumb on the left and a connection pill and account menu on the right. + +### Status Dot +A 6px circle in one of the five status tones. It pulses (motion-safe only) while +the thing it marks is live. + +### Step Node (Signature Component) +The workflow canvas card. 240px wide at rest, with an 8px corner, the rest shadow +and a caption row naming the step type with a sage icon. The run duration sits on +the right in mono, beside a status icon. The title below is label size and medium +weight. Selecting it expands it in place to 416px with the float shadow and a 2px +sage ring, main field first. The same card shows the step's live run state: +editor and observer are one surface. Added, removed and changed steps are marked +in the sage, clay and amber tones. + +## Do's and Don'ts + +### Do: +- **Do** use semantic tokens (`bg-card`, `text-fg-muted`, `bg-ok-soft`) and the + named type steps, so both themes and compact density work without extra code. +- **Do** keep one filled primary button per view; everything else is ghost, + outline or secondary. +- **Do** set IDs, versions, durations and payloads in Plex Mono. +- **Do** show actions on hover or focus where the work is, and make every hover + action reachable by keyboard. +- **Do** honour reduced motion: nothing animates when the operator asks it not to. + +### Don't: +- **Don't** use generic SaaS gloss: no purple or multicolour gradients, no glow + shadows, no glassmorphism cards, no gradient text. +- **Don't** make it toy-like on phones: no blanket 44px minimum sizes on buttons, + links and fields. Widen the tap area invisibly with `touch-hit` instead. +- **Don't** tint backgrounds for hierarchy; use surface steps and borders. +- **Don't** introduce a new hue or reuse a status colour for decoration. +- **Don't** put white text on a status fill; use the soft background and the + solid tone. +- **Don't** add a shadow to a resting card. diff --git a/PRODUCT.md b/PRODUCT.md new file mode 100644 index 000000000..d4dc96167 --- /dev/null +++ b/PRODUCT.md @@ -0,0 +1,119 @@ +# Product + + + +## Platform + +web + +## Users + +Archie's audience comes in two stages. + +1. **Now: the solo operator.** An infrastructure or IT operations engineer who + runs their own estate of VMs, containers and on-prem hosts, self-hosts + Archie, and wants day-2 operations handled without babysitting: disks filling + up, alerts firing, routine maintenance. They use the dashboard on desktop and + phone, and talk to Archie through chat channels. +2. **Next: the IT operations team.** A team inside an organisation where an + application owner (recorded in the CMDB) approves production changes on the + servers that belong to their application. Governance, audit and risk + controls decide whether the team adopts it. + +## Product Purpose + +Archie is event-driven agentic automation. It hears an event (an alert, a +webhook, a schedule, a chat message, an issue), works out what it means, decides +what to do, and does the work through an agent. It judges every action before +the action runs, and delivers the result wherever it needs review or action. + +Success: an operator connects a source and Archie notices events, acts without +being asked when it is allowed to, and calls the operator in only when policy or +risk requires it, with an explanation of what it found and did. + +The loop is Hears, Understands, Decides, Defines, Does, Delivers. The platform +around it Governs, Reports, Assesses, Manages Risk and Invokes Policy. + +## Positioning + +In order of importance: + +1. **Earned, explained autonomy.** Guards (policy, risk and others, each an + extension) score every action before it runs, and those scores set how much + the agent may do alone. Autonomy is graded per action, earned from approval + history, and always explained. Loosening a ceiling always needs approval from + someone with authority; it never happens automatically. +2. **Proposals from unhandled events.** The operator states intent rather than + wiring steps. Events that nothing handles become proposals, and workflows + learn from outcomes. Archie writes, runs and changes its own workflows; the + operator can view or edit them but should not need to. +3. **Self-hosted operations on VM and on-prem estates.** Archie runs in the + operator's own environment and acts directly, or through the automation a + team already has (AAP, Semaphore, ServiceNow). + +Archie executes agentic work itself. It is not only a judgement layer, and not +another visual workflow builder in the n8n, Zapier or Make mould. + +## Operating Context + +- Events arrive from monitoring (for example Alertmanager on Prometheus), + webhooks, schedules, chat channels and forges. A forge is one source among + many; a repository is an optional input to a workflow, never the point. +- Results and approval requests go out as events to any channel (Telegram, + Slack, Discord, email, webhooks, the dashboard chat composer) and come back in. +- An approver can be an operator, a rule, a classifier or an automatic decision. + Never assume a human approver. +- Channels, forges, connectors, secret engines and guards ship as extensions, + not in-tree. +- The leading demonstration is proactive day-2 operations: a disk-filling alert + from Prometheus, investigated and remediated, with the operator told on both a + chat channel and the dashboard. + +## Capabilities and Constraints + +- One self-contained binary, `archie`, backed by PostgreSQL. Docker is never + the only mechanism for isolation or enforcement. +- The dashboard is a Vue single-page app embedded in the binary, used on + desktop and phone. +- The dashboard is the complete control plane: every configuration and mutable + setting is editable there. A setting reachable only through a file, flag or + API is a defect. Secrets are write-only. +- Every request and response of every judge, guard, action, model call, + delivery and evaluation is recorded for audit, never including credentials. +- Terminology: source, event, workflow, run, step, guard, approval, proposal, + connector, delivery. "Bindings" is a known-obscure name awaiting a + replacement. +- Undecided: the replacement for bindings and issue routing in the Decide step; + how guard scores combine into an autonomy mode; how Deliver works without + hard-coded outputs. + +## Brand Commitments + +- Name: Archie. Tagline: "Event-driven Agentic Automation". +- Assets in `assets/brand/`: wordmark (light, dark, mono), mark, app icon, + social card. +- Interface copy states the problem and the action only. It never explains the + interface, restates a title, or describes the mechanism behind it. +- Never frame the product around coding or a repository. + +## Evidence on Hand + +- Live staging deployment of the single binary, with real Prometheus alerts, + Telegram, Semaphore and host connectors. +- No customers, testimonials, benchmarks, pricing or press exist. Do not + fabricate any. + +## Product Principles + +1. **Governance is the product.** Judgement before every action, a full audit + record, and autonomy that is earned and explained are what make Archie worth + adopting. Keep them visible, not buried. +2. **Intent, not wiring.** The operator says what they want; Archie defines the + workflow. Editing is available, never required. +3. **Editor and observer are one live surface.** Workflows are defined, + connected and watched on the same interactive canvas, updating live as + events and runs flow through it. Nodes show what they do. +4. **Interrupt only when it matters.** Archie calls the operator in when policy + or risk requires it, with what it found and what it did, not to report + routine success. +5. **Everything operable from the dashboard.** No setting needs a server login.