File size: 72,060 Bytes
152e0c1 af1bee9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 | > **Historical record.** This page describes the product as it was when it was written, under an earlier name, and is not kept up to date. For the current system (Astra) read [DESIGN_SYSTEM.md](../DESIGN_SYSTEM.md) for the UI, and [ARCHITECTURE.md](../ARCHITECTURE.md), [DEPLOYMENT.md](../DEPLOYMENT.md), [RUNBOOK.md](../RUNBOOK.md), [REMOTE_RUNNER.md](../REMOTE_RUNNER.md) and [SECURITY.md](../SECURITY.md).
> Note (24 Oct 2026, graphite pass): the accent is now GRAPHITE, not blue. Wherever the text below says blue or `#0071e3`, read the graphite tokens in section 3.1: near-black `#1d1d1f` fills in light, near-white `#f5f5f7` fills in dark, links are the label colour with an underline, and colour is reserved for status (green, orange, red). The "Oracle Fusion pod" cue is a graphite outlined chip with a cloud icon.
>
> Note (24 Oct 2026): this is the design the app was built to on branch `trio-apple-ui`. The product is now named "Trio Co-Worker"; older documents in this folder keep the earlier name. Where the build differs from this text: Ask is a sidebar item that opens the Ask dock (the `Ctrl K` palette also opens it); there is no separate Ask page. See the build notes in the commit history.
# UI-APPLE: Trio Co-Worker, Apple-style desktop web UI
Status: design proposal for the lead's approval. Desktop web only (1280 px and wider; no phone or tablet work).
Supersedes the visual layer of `UI-MINIMAL.md` and the Fluent pass. Keeps every rule of `UI-REDESIGN.md` sections 9 (58 features) and 10 (test hooks).
- Clickable mockup: `mockup/index.html` (one file, no network requests, Inter embedded as base64, system font stack first). Open it, use the sidebar,
`Ctrl K`, the sign-in links, the "Approve all" button, and the small "Mockup controls" pill at the bottom (run stage and live-browser state).
`?theme=dark|light` forces a theme; otherwise it follows the system. Hash routes: `#signin`, `#signin/register`, `#home`, `#start`, `#runs`,
`#run/approve|testing|decide|result[/starting|live|reconnecting|masked|unavailable]`, `#report`, `#scenarios`, `#defects`, `#envs`, `#pod`,
`#reports`, `#ask`, `#settings/ai|users|auto|sched|stop`, `#palette`, `#kit`.
- Screenshots (1440x900, light and dark, Chromium): `shots/*.png`.
- Brand: `brand/BRAND.md` and the SVG/PNG assets. Build plan: `BUILD-PLAN.md`.
## 0. The decisions in one page
1. **Apple's layout grammar, not a skin.** Translucent sidebar, translucent toolbar that content scrolls under, inset grouped lists on a quiet grey page,
capsule controls, sheets for short tasks, a right inspector for details. Honest to the HIG: sidebars up to two levels (we use one), no critical actions at
the bottom, segmented controls for view switching in an inspector, a single prominent action per toolbar.
2. **One accent, graphite** (`#1d1d1f` in light, `#f5f5f7` in dark; white text on it 16.8:1, dark text on the dark-mode fill 15.5:1), like Apple's own apps and Linear. Green, orange and red are status only; there is no decorative hue. Orange also means "waiting for you" and "practice pod",
so the two things a consultant must never miss share one warm colour.
3. **Type:** system stack first (`-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display"`), then **Inter Variable** (self-hosted, OFL) so Windows and Linux
look intentional. Never bundle SF. 14 px body, 28 px large title, tracking tightens as size grows.
4. **Materials with a fallback.** `backdrop-filter` only on three surfaces (sidebar, toolbar, floating layers). Solid colours under `prefers-reduced-transparency`,
`forced-colors`, and when `backdrop-filter` is unsupported. Nothing nests blur on blur.
5. **Four-stage run, one live browser.** The Run workspace is a vertical stage list (Prepare, Approve, Testing/Decision, Result) beside a 456 px inspector
(Live, Steps, Screens, Report, Excel). The live browser has seven explicit states, each with its own words and controls.
6. **Honesty is a design element.** The environment switcher at the top of the sidebar always says "Mock app, not Oracle Fusion" (orange, shield) or
"Oracle Fusion pod" (graphite outline, cloud). Every report line, sheet and run header repeats it. Hermes attribution appears only on answers Hermes gave.
7. **Calm motion.** 120/200/320 ms, three curves, one small overshoot (segmented thumb, switch). No motion on frequent actions beyond a 0.975 press scale.
8. **Brand:** product is now "Trio Co-Worker" with an original mark, concept A "Visor" (a bot head with a person in its face plate and one green status dot on the antenna; graphite, no blue). See `brand/BRAND.md`.
---
## 1. Research and what we adopt
### 1.1 Apple Human Interface Guidelines (read from developer.apple.com, via the site's JSON documentation endpoint)
The HIG pages are client-rendered, so a normal fetch returns only the title. Each page below was read through `developer.apple.com/tutorials/data/design/human-interface-guidelines/<page>.json`.
Quotes are paraphrased; numbers are exact.
| Page | What it says (relevant part) | What we do |
|---|---|---|
| [Sidebars](https://developer.apple.com/design/human-interface-guidelines/sidebars) | Sidebars float above content in the Liquid Glass layer; show at most two hierarchy levels; use succinct group labels; don't hide the sidebar by default but offer a show/hide control; "avoid putting critical information or actions at the bottom of the sidebar" because windows get moved; icons use the accent colour and should have a purpose | 264 px translucent sidebar, one level with two small group labels, a visible hide button in the toolbar, **only the user row at the bottom** (the environment switcher, the honesty cue, is at the top), accent-coloured icons, selected row = neutral fill (not a second colour) |
| [Toolbars](https://developer.apple.com/design/human-interface-guidelines/toolbars) | Three zones: leading (sidebar toggle, title), centre, trailing (search, More, one prominent action); no bezels on items; aim for at most three groups; keep titles short; no custom tinted backgrounds that fight the system effect; don't make a toolbar item the only way to reach a command; "avoid segmented controls in toolbars" appears in the search summary but the Segmented controls page prefers them for toolbar/inspector view switching | 56 px translucent toolbar: sidebar toggle, back link, title + one-line subtitle, then actions, then the search field. One primary action per page, kept in the page head (Home, Test runs) so the toolbar stays calm. Every toolbar command is also in the palette (`Ctrl K`) |
| [Materials](https://developer.apple.com/design/human-interface-guidelines/materials) | Liquid Glass is for the **controls/navigation layer**, not content; "use Liquid Glass sparingly"; content-layer elements use standard materials; choose materials by meaning not colour; thicker = more legible; vibrant foreground colours on materials; avoid quaternary labels on thin materials | Glass only for sidebar, toolbar, menus, palette, toasts, composer. Cards and lists are **opaque** (content layer). Label colours on materials are `label` / `label-2` only. No clear glass over rich media |
| [Color](https://developer.apple.com/design/human-interface-guidelines/color) | Don't rely on colour alone; don't hard-code system colours; use dynamic colours for their purpose; supply light, dark and increased-contrast variants; for primary actions put colour on the **background**, not on text/symbol; don't add colour to several controls at once; system blue sample RGB 0,136,255 (light) / 0,145,255 (dark) | Status is always dot + word. Primary action = blue **fill** with white text, one per screen. The accent is graphite (`#1d1d1f` light, `#f5f5f7` dark), so the fill carries white (or near-black) text at 15:1 or better. An `Increase contrast` variant is specified in 6.9 |
| [Typography](https://developer.apple.com/design/human-interface-guidelines/typography) | macOS built-in styles: Large Title 26/32, Title 1 22/26, Title 2 17/22, Title 3 15/20, Headline 13/16 bold, Body 13/16, Callout 12/15, Subheadline 11/14, Footnote 10/13; default size 13, minimum 10; avoid ultralight/thin/light; system font uses dynamic optical sizes (Text and Display merged) | Our scale (section 4) follows the same ladder shifted up for web and Windows density: 28/34, 22/28, 17/22, 15/20, 14/20, 13/18, 12/16, 11.5/14. Weights 400/500/550/600/650 only. Inter has an `opsz` axis, so `font-optical-sizing: auto` mimics SF's text/display switch |
| [Segmented controls](https://developer.apple.com/design/human-interface-guidelines/segmented-controls) | For closely related choices; about 5-7 segments in a wide interface; equal widths; don't mix text and images; nouns or noun phrases; **on macOS prefer a tab view in the main window and use a segmented control for view switching in a toolbar or inspector** | Segmented control for the inspector tabs (Live/Steps/Screens/Report/Excel), run filters, Approve/Skip, environment type. Page-level sections use the sidebar, not tabs. 5 or fewer segments everywhere |
| [Sheets](https://developer.apple.com/design/human-interface-guidelines/sheets) | Use sparingly; one at a time; pair Done with Cancel; macOS sheets are modal cards with rounded corners floating on the parent; reasonable default size, resizable only if useful; use a panel for repeated input | Sheets for: Start a test run (3 steps), Register a Fusion pod, sign-in details. Cancel always present. Never two sheets at once. The palette and the Ask dock are not sheets |
| [Motion](https://developer.apple.com/design/human-interface-guidelines/motion) | Purposeful motion; feedback brief and precise; "generally avoid adding motion to frequent UI interactions"; let people cancel motion; make motion optional | Motion table in 5.5. Frequent actions (row hover, button press, nav) get 120 ms colour/scale only. Larger motion (sheet, page enter, toast) is 200-320 ms and never blocks input |
| [Lists and tables](https://developer.apple.com/design/human-interface-guidelines/lists-and-tables) | Prefer lists for text; keep item text succinct; middle ellipsis when clipped; descriptive column headings, noun phrases, title-style capitalisation; macOS: click header to sort, resizable columns, striping only for wide multi-column tables | Inset grouped lists for browse-and-act, tables for compare. Sortable headers on Test runs, Defects, Scenarios. No striping (hairlines only); middle ellipsis for run refs and URLs |
| [Layout](https://developer.apple.com/design/human-interface-guidelines/layout) | Order by importance; align to aid scanning; group with space or separators; progressive disclosure; "avoid placing controls or critical information at the bottom of a window" on macOS; separate controls from content | Waiting-for-you first on Home; "Approve all" is **inside** the stage card, not pinned at the window bottom; the Ask composer is the one exception (a conversational input is expected at the bottom) |
| [Accessibility](https://developer.apple.com/design/human-interface-guidelines/accessibility) | WCAG AA: 4.5:1 up to 17 pt, 3:1 for 18 pt and up or bold; macOS control hit target default 28x28, minimum 20x20; macOS text 13 default / 10 minimum; Reduce Motion: tighten springs, replace x/y transitions with fades, avoid animating blurs; support full keyboard access | Section 7. Our targets: 32 default, 28 minimum, 40 for stage actions. All text 4.5:1 or better (checked, section 3.4); focus ring 3:1 |
| [SF Symbols](https://developer.apple.com/design/human-interface-guidelines/sf-symbols) | Nine weights match the system font weights; three scales relative to cap height; **prohibits using symbols, or images confusingly similar, in app icons, logos or trademarked use** | We cannot use SF Symbols on the web (Apple restricts them to Apple platforms; this is from Apple's licence terms as I know them and was not re-verified in this session). We draw/choose an open icon set whose stroke matches Inter at 14 px (1.7 px at 18 px), and the logo is original |
Not verified in this session: Apple's SF Pro font licence text (my understanding: SF is licensed for design mockups and Apple-platform apps, not for web
embedding, which is why we use the system stack and Inter); the Liquid Glass (macOS 26) pages beyond Materials, Sidebars and Toolbars; Apple's own
HIG numbers for corner radii (the Layout page says concentricity is covered on the Liquid Glass page, which I did not read).
### 1.2 Open-source references (licences checked on GitHub, 24 Oct 2026)
| Reference | Licence | Use | Verdict |
|---|---|---|---|
| [Mantine](https://github.com/mantinedev/mantine) 7 (in the app) | MIT | theming through `createTheme`, CSS variables, `styles`/`classNames` | **Keep.** All restyling goes through theme tokens + one CSS layer |
| [Tabler Icons](https://github.com/tabler/tabler-icons) (in the app, `@tabler/icons-react`) | MIT | 6,000+ outline icons, stroke adjustable | **Keep** as the icon set. Set `stroke={1.7}` at 18 px; the mockup's icons are hand-drawn in the same style (24 grid, round caps) to avoid a build step |
| [Lucide](https://github.com/lucide-icons/lucide) | ISC (checked in `LICENSE`) | closest to SF Symbols' proportions | Fallback if Tabler lacks a glyph. Not needed now |
| [Inter](https://github.com/rsms/inter) / `@fontsource-variable/inter` (in the app) | OFL-1.1 | UI fallback font; `opsz` + `wght` axes | **Keep**; the mockup embeds the Latin `opsz` subset (73 KB) |
| [Geist](https://github.com/vercel/geist-font) | OFL-1.1 | alternative sans | Not adopted: Inter is closer to SF's proportions and already shipped |
| [shadcn/ui](https://github.com/shadcn-ui/ui) | MIT | pattern library built on Radix + CSS variables; its "tokens as CSS variables, components own their styles" approach | **Pattern only.** We do not add Tailwind or Radix: Mantine already provides the primitives. We copy the idea of semantic tokens (`--background`, `--muted`, `--ring`) |
| [Radix Primitives](https://github.com/radix-ui/primitives) | MIT | accessible behaviour reference for menus, dialogs, tabs, switch, radio group | **Reference for ARIA behaviour** when checking Mantine components (roving tabindex, `aria-checked`, focus return) |
| [Sonner](https://github.com/emilkowalski/sonner) | MIT | toast stacking and motion | Reference for the toast spec (2 visible, bottom centre). Implementation stays Mantine Notifications |
| [cmdk](https://github.com/pacocoursey/cmdk) | no licence file reported by the GitHub API in this session (the repo is widely reported as MIT; treat as unverified) | command palette | **Pattern only**; build on Mantine `Modal` + `Combobox` logic, no dependency |
| [Linear](https://github.com/linear/linear) (SDK only, UI is closed) / Raycast / Things / Craft / Arc | UI not open | patterns: `g`-then-letter navigation, single-key shortcuts, command palette as front door, sidebar with few items, quiet colour | **Patterns adopted:** palette, `N` new, `[` toggles sidebar, `g h/r/s/d/e` go-to |
| [awesome-liquid-glass](https://github.com/carolhsiaoo/awesome-liquid-glass) (list), `liquid-glass-effect-macos`, `shuding/liquid-glass` | n/a (list) | SVG-filter "refraction" glass | **Rejected.** SVG `backdrop-filter` refraction works only in Chromium, fails in Safari/Firefox, and costs GPU. We use plain `backdrop-filter: blur() saturate()` |
| An open-source Apple-style CSS component kit | none found | | The search found only SwiftUI/Liquid Glass effect demos, no maintained macOS-style component CSS. So we write ours (about 400 lines of CSS in the mockup) |
### 1.3 Agent-run and test-run UIs (what to borrow)
| Product | Observed pattern | Borrow |
|---|---|---|
| OpenAI Operator ([launch post](https://openai.com/index/introducing-operator/), [TechCrunch](https://techcrunch.com/2025/01/23/openai-launches-operator-an-ai-Agent-that-performs-tasks-autonomously)) | A small window shows the agent's dedicated browser with explanations of each action; the user can take over at any time; the agent hands control back for login, payment, CAPTCHA; takeover is not screenshotted. (Wikipedia says Operator was retired in Aug 2025 and the later ChatGPT agent was removed in Aug 2026; single source, unconfirmed, so treat the product as history, not a dependency.) | Plain-language "Now: ..." line under the frame; **sign-in is hidden** ("Sign-in screen hidden. Passwords are never shown here.", already in `LiveView`); a person decides at the hand-off points. We deliberately do **not** offer takeover: the live view is view-only (existing rule) |
| [Browserbase live view](https://docs.browserbase.com/features/session-live-view) | Embed a read-only iframe from a per-session debug URL; one URL per tab; fetch the URL server-side when the user asks to watch; separate replay (HLS) for recordings | Confirms our model: live = view-only stream, recording = separate "Watch the recording". If a tab opens, show a tab switcher inside the frame chrome (future) |
| [Playwright trace viewer](https://playwright.dev/docs/trace-viewer) | Actions list with locator and duration; film strip of screenshots; before/action/after snapshots; console and network filtered by selected action; source line highlighted; Errors tab | Steps tab = actions list with duration and state; Screens tab = film strip of evidence per scenario; failure card shows expected vs actual and "See the failed screen". The engineering view (Technical report, admin) can link to the real trace |
---
## 2. Principles
1. **Every screen answers three questions in order:** what is this, what is its state, what do I do next. One primary action per screen.
2. **Content is opaque, controls are glass.** Lists and cards are solid; chrome (sidebar, toolbar, menus, palette, toasts) is translucent.
3. **A person decides.** Waiting-for-you is the loudest thing in the app: orange count in the sidebar, orange stage marker with a ring and a 1.5 px orange card outline.
4. **Say where it ran.** Practice versus Oracle Fusion on every page, every report line, every notification.
5. **Calm by default:** neutral grey surfaces, one graphite accent, status as a dot plus a word, no coloured tiles except the status tint on the "waiting" icon tile.
6. **Plain language.** Sentence case, no jargon in headings, no arrows on buttons, names for actions that say what happens ("Approve all 79 and start testing").
7. **Keyboard-first and pointer-friendly:** everything reachable by Tab, palette for navigation, arrows in segmented controls and radio lists.
---
## 3. Tokens
All tokens are CSS custom properties on `:root`, redefined under `@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { ... } }` and
`:root[data-theme="dark"]`. Mantine's `data-mantine-color-scheme` is mapped onto the same variables (BUILD-PLAN section 2). Values below are exactly those in the mockup.
### 3.1 Colour
| Token | Light | Dark | Use |
|---|---|---|---|
| `--bg` | `#f5f5f7` | `#1c1c1e` | page / window |
| `--bg-base` | `#ececf0` | `#141416` | layer behind the sidebar material |
| `--bg-elev` | `#ffffff` | `#2a2a2d` | grouped lists, cards, sheets, inspector |
| `--bg-elev-2` | `#fbfbfd` | `#313134` | table header, review bar |
| `--mat-sidebar` | `rgba(240,240,244,.72)` | `rgba(46,46,50,.64)` | sidebar (with blur 28 px, saturate 180%) |
| `--mat-bar` | `rgba(245,245,247,.74)` | `rgba(28,28,30,.74)` | toolbar (blur 24 px) |
| `--mat-pop` | `rgba(255,255,255,.78)` | `rgba(48,48,52,.8)` | menus, palette, toasts, composer (blur 30-40 px) |
| `--mat-*-solid` | `#ececf0` / `#f5f5f7` / `#ffffff` | `#232326` / `#1c1c1e` / `#2c2c2e` | fallbacks (reduced transparency, `forced-colors`, no `backdrop-filter`) |
| `--fill` / `-2` / `-3` | `rgba(60,60,67,.08/.12/.18)` | `rgba(235,235,245,.10/.16/.24)` | secondary buttons, track of segmented control, hover, skeleton |
| `--sep` | `rgba(60,60,67,.13)` | `rgba(235,235,245,.13)` | hairlines between rows (0.5 px) |
| `--sep-strong` | `rgba(60,60,67,.22)` | `rgba(235,235,245,.26)` | input borders, unselected radio ring |
| `--label` | `#1d1d1f` | `#f5f5f7` | primary text |
| `--label-2` | `#636366` | `#a1a1a6` | secondary text, captions, table headers |
| `--label-3` | `#8e8e93` | `#6e6e73` | disabled and decoration only, never required text |
| `--ph` (placeholder) | `#70707a` | `#98989f` | input placeholder (4.5:1 or better) |
| `--accent` | `#1d1d1f` | `#f5f5f7` | primary fill, checkbox/radio/switch on, progress, current stage marker |
| `--on-accent` | `#ffffff` | `#1d1d1f` | text and icons on an accent fill |
| `--accent-hover` / `-press` | `#3a3a3c` / `#000000` | `#ffffff` / `#d1d1d6` | |
| `--accent-text` | `#1d1d1f` | `#f5f5f7` | links (always underlined, thin; solid underline on hover), plain buttons, "Watch live" |
| `--accent-soft` / `-soft-2` | `rgba(60,60,67,.08/.14)` | `rgba(235,235,245,.10/.18)` | selected table row, selected choice (with a 2 px accent outline), info banner, "ink" chips |
| `--green` (text) / `--green-dot` / `--green-soft` | `#1d7a35` / `#34c759` / `rgba(52,199,89,.16)` | `#30d158` / `#30d158` / `rgba(48,209,88,.18)` | Ready, passed |
| `--orange` (text) / `--orange-dot` / `--orange-soft` | `#a85a00` / `#f59300` / `rgba(255,159,10,.17)` | `#ff9f0a` / `#ff9f0a` / `rgba(255,159,10,.18)` | Waiting for you, practice pod |
| `--red` (text) / `--red-dot` / `--red-soft` | `#d70015` / `#ff3b30` / `rgba(255,59,48,.12)` | `#ff7a72` / `#ff453a` / `rgba(255,69,58,.2)` | Not ready, failed, emergency stop |
| `--focus` / `--focus-gap` | `#1d1d1f` / `#ffffff` | `#f5f5f7` / `#1c1c1e` | focus ring: 2 px ring, 2 px gap in the page colour |
| `--hero-a` / `--hero-b` | `#2c2c2e` / `#1d1d1f` | `#4a4a4e` / `#38383b` | Home summary card (dark graphite in light, raised graphite in dark; white text) |
| `--pulse` | `rgba(60,60,67,.4)` | `rgba(235,235,245,.4)` | the running dot's pulse |
| `--scrim` | `rgba(0,0,0,.28)` | `rgba(0,0,0,.5)` | behind sheets and palette |
Dark-mode elevation: page `#1c1c1e` < cards and inspector `#2a2a2d` < table header `#313134` < thumb of segmented control `#5e5e63`. Higher means lighter; the sidebar
material sits slightly lighter than the page and darker than cards. There is no pure black.
### 3.2 Why not the exact Apple system colours
The earlier blue accent (`#0071e3`) was dropped: graphite is calmer, matches Apple's own apps and Linear, and gives every control 15:1 or better contrast. Green, orange and red text use the
darker "accessible" variants for text on light (`#1d7a35`, `#a85a00`, `#d70015`) and the system dots (`#34c759`, `#f59300`, `#ff3b30`) for the 8 px status dot,
where 3:1 is enough.
### 3.3 Increase contrast (`prefers-contrast: more`)
`--sep` becomes `--sep-strong`; `--label-2` becomes `#48484a` (light) / `#c7c7cc` (dark); `--fill` +50% alpha; focus ring 3 px; borders 1 px on cards. Materials fall back to solid.
### 3.4 Contrast checks (computed with `tools/contrast.py`, WCAG relative luminance)
| Pair | Ratio | | Pair | Ratio |
|---|---|---|---|---|
| light label on page | 15.5 | | dark label on `#1c1c1e` | 15.6 |
| light label-2 `#636366` on white / page / sidebar (~`#e9e9ee`) | 6.0 / 5.5 / 4.95 | | dark label-2 on `#2a2a2d` / `#1c1c1e` | 5.6 / 6.6 |
| placeholder `#70707a` on white | 4.9 | | dark placeholder on `#2a2a2d` | 5.0 |
| white on accent `#1d1d1f` / hover `#3a3a3c` | 16.8 / 11.4 | | dark accent-text `#f5f5f7` on `#2a2a2d` / `#1c1c1e` | 13.1 / 15.6 |
| accent-text `#1d1d1f` on white / page | 16.8 / 15.5 | | dark text `#1d1d1f` on accent `#f5f5f7` / hover `#fff` | 15.5 / 16.8 |
| green `#1d7a35` on white | 5.4 | | orange `#ff9f0a` on `#2a2a2d` | 7.0 |
| orange `#a85a00` on white / on its soft tint | 5.1 / 4.5 | | red `#ff7a72` on `#2a2a2d` / on its tint | 5.5 / 4.7 |
| red `#d70015` on white / on its tint | 5.4 / 4.7 | | focus ring `#f5f5f7` on `#1c1c1e` / `#2a2a2d` | 15.6 / 13.1 |
| focus ring `#1d1d1f` on page `#f5f5f7` | 15.5 | | dark `label-3` `#6e6e73` | decoration only |
| hero: white on `#2c2c2e` / `#1d1d1f` (light) | 13.9 / 16.8 | | hero: white on `#4a4a4e` / `#38383b` (dark) | 8.8 / 11.7 |
| label on selected sidebar row (light `#d7d7db` / dark `#434347`) | 11.7 / 9.0 | | Oracle Fusion outline `#636366` on white (3:1 needed) | 6.0 |
Translucent materials were checked against the worst plausible backdrop (the page colour plus the radial wash). Not measured on a real display in other themes.
### 3.5 CSS variable block (copy into `apple.css`)
```css
:root {
--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter Variable", system-ui, "Segoe UI", sans-serif;
--mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
--bg:#f5f5f7; --bg-base:#ececf0; --bg-elev:#fff; --bg-elev-2:#fbfbfd;
--mat-sidebar:rgba(240,240,244,.72); --mat-bar:rgba(245,245,247,.74); --mat-pop:rgba(255,255,255,.78);
--fill:rgba(60,60,67,.08); --fill-2:rgba(60,60,67,.12); --fill-3:rgba(60,60,67,.18);
--sep:rgba(60,60,67,.13); --sep-strong:rgba(60,60,67,.22);
--label:#1d1d1f; --label-2:#636366; --label-3:#8e8e93; --ph:#70707a;
--accent:#1d1d1f; --accent-hover:#3a3a3c; --accent-press:#000; --accent-text:#1d1d1f; --on-accent:#fff; /* dark: #f5f5f7 / #fff / #d1d1d6 / #f5f5f7 / #1d1d1f */
--accent-soft:rgba(60,60,67,.08); --accent-soft-2:rgba(60,60,67,.14);
--green:#1d7a35; --green-dot:#34c759; --green-soft:rgba(52,199,89,.16);
--orange:#a85a00; --orange-dot:#f59300; --orange-soft:rgba(255,159,10,.17);
--red:#d70015; --red-dot:#ff3b30; --red-soft:rgba(255,59,48,.12);
--r-xs:6px; --r-sm:8px; --r-md:10px; --r-lg:14px; --r-xl:18px; --r-2xl:22px; --r-pill:999px;
--sh-card:0 0 0 .5px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04),0 2px 8px rgba(0,0,0,.03);
--sh-pop:0 0 0 .5px rgba(0,0,0,.1),0 2px 6px rgba(0,0,0,.08),0 16px 48px rgba(0,0,0,.18);
--ease:cubic-bezier(.22,1,.36,1); --ease-sheet:cubic-bezier(.32,.72,0,1); --ease-spring:cubic-bezier(.34,1.4,.64,1);
--d1:120ms; --d2:200ms; --d3:320ms; --focus:#1d1d1f; --focus-gap:#fff;
}
```
Dark values: see `tools/build_mockup.py` (`DARK`) for the full list; they are the right-hand column of 3.1.
---
## 4. Type scale
| Style | Size / line | Weight | Tracking | Use |
|---|---|---|---|---|
| Large title | 28 / 34 | 650 | -0.024em | page title (`h1`) |
| Title | 22 / 28 | 650 | -0.020em | settings pane title |
| Headline | 17 / 22 | 600 | -0.016em | card and sheet titles, section heads |
| Subhead | 15 / 20 | 600 | -0.012em | toolbar title, stage titles (16), row titles (14.5/550) |
| Body | 14 / 20 | 400 | -0.006em | default |
| Callout | 13 / 18 | 400-500 | -0.004em | row subtitles, captions under controls, buttons (13.5) |
| Caption | 12 / 16 | 400 | 0 | hints, footers, table headers, honesty lines |
| Micro | 11.5 / 14 | 600 | 0 | sidebar group labels, badges (never uppercase except LIVE badge) |
| Stat number | 34 / 40 | 700 | -0.030em | Home stats, verdict word |
Tabular numerals (`font-variant-numeric: tabular-nums`) on counts, times, tables. Monospace only for run refs, URLs and code. Minimum text size 11.5 px (HIG minimum 10 pt on macOS).
Body is 14 px, not Apple's 13 pt, because web text at 100% zoom on Windows renders lighter and smaller than on macOS; the HIG says default size guidance is for system fonts, and Inter at 14 matches SF at 13 optically.
## 5. Space, shape, depth, motion
### 5.1 Spacing (8-pt grid)
4 / 8 / 12 / 16 / 24 / 32 / 40 / 48 / 56. Page gutter 40; section gap 32; card padding 20; list row 12x16 with 56 min height; toolbar 56; sidebar 264 (min 232, collapsible to 0);
inspector 456 (400 under 1180 px); content max width 960 (wide pages 1120); readable lede 62 ch.
### 5.2 Radii (continuous-corner feel)
6 (kbd, minor), 8 (menu items), 10 (fields, nav items, icon tiles, tap rows), 14 (banners, inner boxes), 18 (cards, grouped lists), 22 (sheets, palette), 999 (buttons, chips, segmented, search).
Rule of concentricity: inner radius = outer radius minus the padding between them, never less than 6. Browsers do not offer true squircles; the 18/22 radii plus a 0.5 px ring approximate it. The app icon uses a real superellipse path (n = 5).
### 5.3 Elevation
- Content layer: **no shadows on lists**; cards get a 0.5 px ring plus 1-2 px soft shadow (`--sh-card`).
- Floating layer (menus, palette, sheets, toasts): `--sh-pop` (ring + 2/6 + 16/48).
- Stage card waiting for you: 1.5 px orange outline + 24 px orange glow at 12%.
- Hero card (Home): the only gradient surface: a dark graphite card in light, a raised graphite card in dark, white text, a neutral shadow. One per app.
### 5.4 Materials
Sidebar: blur 28, saturate 180%, alpha .72; toolbar: blur 24; popovers 30-40. A neutral radial wash behind the sidebar (white highlight in light, faint white in dark) gives the material something to show.
Fallbacks per 3.1. Do not use `backdrop-filter` on scrolling lists or tables (performance), and never stack blurred layers except toast over page.
### 5.5 Motion
| Token | Value | Use |
|---|---|---|
| `--d1` 120 ms, `--ease` | hover, press (scale .975), colour | buttons, rows, nav |
| `--d2` 200 ms, `--ease` | fades, switch colour, menu in (scale .96 to 1, translateY -4) | menus, overlays fade-in, banners |
| `--d3` 320 ms, `--ease-sheet` | sheets (translateY 22 + scale .975 to 1), palette (-10), sidebar slide, page enter (translateY 6) | |
| `--ease-spring` 320 ms | segmented thumb, switch knob (one 4% overshoot) | |
| shimmer 1.4 s linear, pulse 1.8 s, LIVE blink 1.4 s | skeleton, "Testing" dot, LIVE badge | only while the state lasts |
**Reduced motion** (`prefers-reduced-motion: reduce`): all durations 1 ms, no transforms on enter, no shimmer or pulse (static dots), springs become fades. Page enter and sheet become instant opacity.
Never animate `backdrop-filter` or blur radii.
## 6. Components
| Component | Spec |
|---|---|
| **Sidebar** | 264 px, `--mat-sidebar`, inner hairline right edge. Brand row (30 px `favicon-graphite.svg` / `favicon-paper.svg`, name 14.5/650, org name 11.5 caption). **Environment switcher** (radius-10 fill, tile 26 px: orange shield "Local mock pod / Mock app, not Oracle Fusion" or an outlined graphite cloud "Acme UAT 26C / Oracle Fusion pod"; chevrons; opens a menu). Nav: Home, Test runs (orange count capsule), Ask; group "Library": Scenarios, Defects, Reports; group "Setup": Test environments, Settings (admin). Row 32 px, radius 10, icon 18 px `--label-2` (`--label` when selected), selected = `--fill-2` + 600 weight. Kill indicator (red, only when engaged) above the user row. Bottom: user row (avatar 28, name, role) opens account menu (appearance, Settings, Sign out). Hide with the toolbar button or `[`. |
| **Toolbar** | 56 px, `--mat-bar`, 0.5 px bottom hairline. Left: sidebar toggle (icon button 32), back link (accent, only on detail pages), title 15/650 + one-line caption. Right: page actions, then search field (pill, 300 px, "Search or ask" + `Ctrl K` / `⌘K` hint by platform). Content scrolls under it. |
| **Buttons** | pill. Regular 32 (13.5/500), small 28, large 40 (14.5). Primary = accent fill (near-black; near-white in dark), `--on-accent` text 600; secondary = `--fill`; plain = accent-text on transparent (hover `--accent-soft`); destructive = `--red-soft` with red text, and solid red only for irreversible, confirmed actions (Engage kill switch). Disabled .42 opacity. Press = scale .975. Loading = spinner replaces icon, label stays. **One primary per screen.** |
| **Icon buttons** | 32 (28 small), circular hover fill, `aria-label` required, tooltip after 600 ms. |
| **Segmented control** | pill track `--fill`, 2 px inset, thumb `--bg-elev` (dark `#5e5e63`) with `--sh-seg`, 28 px segments, 13/500, sliding thumb 320 ms spring. 2 to 5 segments (counts allowed: orange for waiting). Roving tabindex, arrows move and select. |
| **Inset grouped list** | `--bg-elev`, radius 18, `--sh-card`. Rows min 56, padding 12x16, leading tile 36 (radius 10; neutral, or orange/green/red soft or graphite with a glyph), title 14.5/550, subtitle 13 `--label-2`, trailing status or button, chevron for navigation. Hairline between rows inset 66 px when a leading tile exists. Hover `--fill`; whole row is the hit target. A group has an optional 13/600 `--label-2` header above and a 12 caption footer below. |
| **Table** | in a grouped card. Header 12 `--label-2`, 52 px rows, hairlines, sortable headers (aria-sort), selected row `--accent-soft`, row actions (ellipsis) appear on hover and focus-within, numbers tabular. No zebra. |
| **Text field** | 38 px, radius 10, 1 px `--sep-strong` inset border; hover darker; focus = 2 px graphite (`--focus`) + 4 px `--accent-soft-2` halo; error = red border + message below (12 px red). Label above (13/500), hint below (12 caption). Stacked fields in one group for sign-in (Apple-ID style), outline on the group when any field has focus. |
| **Switch** | 44x26, knob 22 with shadow, on = system green `#34c759` (green here means "on", the single exception to "green = status"; it is the platform's switch colour). |
| **Radio list / choice cards** | radio rows in a bordered group (decision), choice cards with 2 px accent border and `--accent-soft` when selected (sheet steps). `role="radio"`/`checkbox` with `aria-checked`. |
| **Chips and status** | status = 8 px dot + word (13/550, never colour alone). Chips: 22 px pill, 12/550, for environment (Practice orange with shield, Oracle Fusion a graphite outline with a cloud), severity, signed-off state. |
| **Banner** | radius 14, soft tint, 18 px glyph, body 13.5. orange = reminder/practice, red = error with "Try again", graphite grey = information. |
| **Sheet** | modal, 600 px (max 100vw-48), radius 22, `--bg-elev`, `--sh-pop`, scrim; header (20/650 title, 1-line sub), body scroll, footer: Cancel left, secondary and primary right. Focus lands on the dialog; Esc and scrim click cancel; focus returns to the opener. One at a time. 3-step progress as three 4 px bars. |
| **Menu / popover** | `--mat-pop`, radius 14, padding 6, items 32 px radius 8; hover/keyboard highlight = a neutral `--fill-2` row; group labels 11.5/600; hairline dividers; opens from its trigger with a 200 ms scale-in; Esc closes; arrow keys move. |
| **Command palette** | `Ctrl/⌘ K` or the search field. 640 px, radius 22, `--mat-pop`, input 18 px; groups: Waiting for you (when empty), Go to, Test runs, Actions, then "Ask: ..." as the fallback. Selected row = `--fill-2`. Footer: key hints and "Nothing changes until you confirm." Actions that change data (Approve) only navigate to the confirm UI. Implemented so that **Ask** still opens the existing `aside aria-label="Ask the co-worker"` dock (see BUILD-PLAN risks). |
| **Toast** | bottom centre, `--mat-pop`, radius 18, green check disc, one action ("Watch live", "View run"), 4.2 s, max 2 visible, `role="status"`. Used after: approve, decision, sign-off, pod saved, kill switch. Errors are never toasts; they are banners next to the cause. |
| **Empty state** | 56 px grey tile with a glyph, headline 17/600, one sentence (42 ch), one action. Copy always says what to do next. |
| **Skeleton** | rounded bars `--fill` with a 1.4 s shimmer; same row heights as real rows; `aria-busy="true"` on the region; replaced by the real content with a 200 ms fade. Never a bare spinner for more than 300 ms. |
| **Error state** | red banner at the top of the region: what failed, the likely reason, "Try again" (calls `refetch`). Technical detail behind "Show details". |
| **Progress** | 6 px capsule `--accent` on `--fill-2`, with `role="progressbar"`; text under it states done / total and time left. |
| **Live badge** | 22 px pill: LIVE (red, blinking dot), STARTING / PAUSED / ENDED (grey), RECONNECTING (orange). The word is always present (colour is not the signal). |
| **Browser frame** | 30 px chrome (three neutral dots, centred URL pill with a lock), 16:10.2 viewport, radius 14, hairline ring; state overlays use `--bg-elev` at 84% plus a 10 px blur. The frame is always light-chrome content (the test environment's page) even in dark mode. |
## 7. Accessibility
- **Contrast:** AA (4.5:1 text, 3:1 UI and large text) everywhere, checked in 3.4. Status never by colour alone. `prefers-contrast: more` variant in 3.3.
- **Focus ring:** 2 px solid `--focus` with 2 px offset on buttons, rows, nav, segmented segments, switches (3:1 against both themes). Text fields: graphite border + 4 px halo. Menus/palette: the highlighted item is the focus. Never `outline: none` without a replacement. Mantine's `focusRing: 'auto'` is kept.
- **Targets:** 32 px default (HIG macOS default 28, minimum 20), 28 px small, 40 px stage actions; table rows are fully clickable.
- **Keyboard map** (single keys only when focus is not in a field; shown in the `?` sheet and the Glossary popover footer):
| Keys | Action |
|---|---|
| `Ctrl/⌘ K` | command palette (search, go to, actions, ask) |
| `/` | focus search (opens palette) |
| `N` | new test run (opens the Start sheet) |
| `[` | hide / show the sidebar |
| `G` then `H` / `R` / `S` / `D` / `E` / `P` | go to Home / Test runs / Scenarios / Defects / Test environments / rePorts |
| `Alt+1` / `Alt+2` / `Alt+3` | focus the stage list / the inspector tabs / the inspector content (run page) |
| `←` `→` | move inside a segmented control; `↑` `↓` inside menus, radio lists, palette |
| `Enter` / `Space` | activate; `Enter` on a table row opens it |
| `Esc` | close menu, palette, sheet; clear search |
| `?` | shortcuts sheet |
| `Ctrl/⌘ Enter` | submit the focused sheet or confirm card (never approves anything without a visible button) |
Approving, deciding, signing off and the kill switch have **no single-key shortcut** by design.
- **Screen readers:** landmarks `nav "Pages"`, `main`, `aside "Run details"`, `aside "Ask the co-worker"`; sidebar count has a visually hidden ", 2 waiting for you"; stage changes announced through a polite `role="status"` line ("Waiting for your approval: 79 scenarios"); the live view's overlay text is `role="status"`, the live "Now:" line is `aria-live="off"` (existing) so it does not chatter; toasts `role="status"`; tables have captions/`aria-label` and `aria-sort`; icon-only buttons have labels; progress has `aria-valuenow`.
- **Motion:** section 5.5. **Transparency:** `prefers-reduced-transparency`, `forced-colors` (Windows High Contrast: borders replace fills, `CanvasText` for text, `Highlight` for selection and focus), and missing `backdrop-filter` all fall back to solid.
- **Zoom:** layout tested conceptually to 200% (sidebar collapses via `[`; the inspector becomes a section below the stages under 1180 px logical width, already how REDESIGN planned it). Not tested on a real browser at 200%.
- **Language and tone:** reading level plain; no abbreviations without a gloss on first use (P2P is written "Procure-to-Pay" in UI; module codes appear only in test ids).
## 8. Shell and screens
### 8.0 Shell
Sidebar + toolbar as in section 6. Route to nav mapping: Home `/`; Test runs `/runs`, `/runs/new`, `/runs/:id`, `/runs/:id/:tab`, `/schedules`; Ask `/assistant`, `/assistant/:id`; Scenarios `/scenarios`;
Defects `/tickets`; Reports `/reports`; Test environments `/pods`; Settings `/admin` (and `/agents`, `/heal`, `/scripts`, `/learner`, `/audit`, `/admin/*`). The page `<title>` is "Page · Trio Co-Worker (practice pod, mock app)" while a practice pod is selected.
Global states: loading = skeleton rows inside the page (the shell never blanks); error = red banner; offline/"test environment down" = amber banner under the toolbar with "The test environment is not answering" (replaces the sidebar warning); emergency stop on = red row in the sidebar and a red banner at the top of Home and the run page.
### 8.1 Sign in, register, forgot, reset (`/login`, `/register`, `/forgot`, `/reset`)
- **Layout:** one centred 400 px column on a soft neutral radial wash (white and grey, no hue), vertical centre. `app-icon.svg` / `app-icon-paper.svg` 116 px, `h1` 28/650, one sentence, stacked fields group (Username, Password; Apple-ID style, 48 px rows), full-width primary 40 px, two text links, the orange honesty line with shield (`data-testid="mock-banner"` kept), version caption.
- **Content:** "Sign in to Trio Co-Worker" / "Your team's patch testing partner. It plans and runs the tests. You decide." Links: "Forgot your password?", "Create account". Honesty: "Practice environment. Mock app, not Oracle Fusion." (hidden on production deployments that have only Fusion pods; the line then reads "Connected to Oracle Fusion test pods.")
- **Register:** "Create your account" / "An administrator approves new accounts before you can sign in." Fields Username, Email, Password ("At least 12 characters"). Success: "Account requested" (`register-sent`). **Forgot:** "Reset your password"; success "Check your email" (`forgot-sent`). **Reset:** "Choose a new password"; success `reset-done` then back to sign in with a toast.
- **States:** submitting = button spinner, fields disabled; wrong password = red inline message under the group ("That username or password is not right. Try again.") and focus returns to Password; locked/disabled account = banner with "Ask an administrator"; network down = banner "Can't reach Trio Co-Worker. Check your connection." Labels "Username", "Password", button "Sign in" unchanged (tests).
- Keyboard: Enter submits; autocomplete attributes set; password reveal not offered.
### 8.2 Home: Patch readiness (`/`)
- **Head:** `h1` "Patch readiness" (e2e), lede "Oracle update 26C on the practice pod. Pod release checked 21 Oct at 13:12." Right: patch select (pill, `aria-label` "Patch"), environment select if needed (`aria-label` "Test environment"), primary **New test run** (exact name; opens the Start sheet, `?new=1` too). When something waits, the first waiting row's button is the stronger action visually but "New test run" stays the only `filled` button on the page.
- **Summary row (3 cards):** hero "1 of 4 areas ready" with a segmented bar and a plain sentence; "Waiting for you 2"; "Open defects 3, 1 critical". Numbers come from existing endpoints (`useRuns`, readiness, tickets).
- **Waiting for you** (hidden when empty): grouped list, each row names the action ("Approve 79 scenarios for Procure-to-Pay", "Decide 1 failure in Order-to-Cash"), orange icon tile, one supporting line, button ("Review scenarios", "Decide"). Row opens the run at the right stage.
- **Business areas:** one row per area: name, last finished verdict as dot + word (Ready / Not ready / Not tested yet), one sentence, trailing "Start a test run" for untested. `readiness-<MOD>`, `verdict-<MOD>`, `summary-<MOD>` kept.
- **What this patch changes:** one row with a graphite info tile; opens the existing accordion/sheet content (button name "What this patch changes"), glossary link in the footer.
- **States:** loading = hero and rows skeleton; empty (no runs yet) = Business areas shows all "Not tested yet" and the hero reads "No areas tested yet" with the primary highlighted; error = banner "Couldn't load readiness. Try again." Practice versus Fusion: lede names the pod.
### 8.3 Start a test run (guided sheet; `?new=1`, `N`, palette, empty states)
**Four steps, same as today's `StartRunWizard` (Where, What, How, Review)**, in one sheet with a 4-bar progress and Back / Next / Cancel; the last button is **Start run** (the e2e clicks exactly that name). The mockup's sheet passes the repo's e2e locators for this flow (`New test run` in `main`, button `/Local mock pod/` with `aria-pressed`, checkbox `/Procure-to-Pay/` checked by default, radio "Quick simulation (no browser)", button `/Demo options/`, label "Scenarios that fail with a real defect", `Next`, `Start run`), tested with Playwright in light and dark.
1. **Where should I test?** "Step 1 of 4. Pick the test environment." Two kinds of choice (toggle buttons with `aria-pressed`): "**Local mock pod**: Practice environment. Mock app, not Oracle Fusion. Good for learning and rehearsal." (orange tile) and each enabled Fusion pod ("Acme UAT 26C: Oracle Fusion pod. Your test environment. Results count towards sign-off.", outlined graphite cloud tile). Preselected from the sidebar switcher; pods that are not runnable show greyed with the server's reason. (The mock pod's name stays "Local mock pod"; "Practice environment" is its kind label.)
2. **What should I test?** Checkbox cards per business area, label "Procure-to-Pay (P2P)" (`area-<MOD>` kept), the area of the selected patch pre-ticked. Next disabled until one is ticked.
3. **How should I run it?** Radio cards "Quick simulation (no browser)" (`mode-quick`) and "Full browser run" (`mode-live`; disabled when browser runs are off, with the reason). On the mock pod a "Demo options" disclosure reveals "Scenarios that fail with a real defect", "Also run High-priority scenarios", and patch name; on Fusion pods "Watch the test live" replaces it.
4. **Ready to start?** A grouped summary (Where with its environment chip, What, How), then the honesty banner (orange on the mock pod, an outlined graphite banner on Fusion): "This runs on ... What happens next: the agents scan the pod and the release notes, then pause and ask a consultant to approve the test cases. You will see each step on the run page."
Starting navigates to `/runs/:id` (no extra segment) and shows a toast "Test run started. The agents are preparing the scenarios." Errors (pod not runnable, kill switch on, no permission) show as a banner in the sheet and keep it open. While any sheet or the palette is open, the page behind is `inert` and `aria-hidden` (so role queries and screen readers see only the dialog; this is also what makes the e2e's single `/Local mock pod/` button unambiguous).
### 8.4 Run workspace (`/runs/:id`, `/runs/:id/:tab`): the heart
**Toolbar:** back "Test runs", title "Procure-to-Pay", caption "Update 26C · Local mock pod · started 13:12", **All details** menu (`data-testid="all-details"`, items in 8.4.6), **Cancel test run** (destructive, asks to confirm; `run.control`), search.
**Layout:** two columns. Left: scrolling stage column (max 680, centred). Right: inspector 456 px (solid `--bg-elev`, hairline left edge) with the segmented tabs and a scrolling pane. Under 1180 px the inspector narrows to 400; under 1100 it becomes a section after the stages.
#### 8.4.1 Run header (inside the stage column)
`h1` "Procure-to-Pay test run" (`run-title`), then a meta row: status dot + words (`run-status`: "Waiting for your approval" orange, "Testing, scenario 23 of 79" graphite pulsing, "Waiting for your decision" orange, "Finished: Ready/Not ready/On hold" green/red/orange, "Stopped" grey/red), environment chip (`mock-banner`, "Practice environment" orange or "Oracle Fusion pod" graphite outline with a cloud), run type chip ("Full browser run" / "Quick simulation"), reference chip with copy icon (`run-id`, aria-label "Run reference r-7f3a2c, copy"; admin `temporal-link` appears here). `attention` reminder banner sits above the stages when set. Resume (secondary) shows when paused.
#### 8.4.2 Stages (numbered, vertical rail)
Marker 32 px: grey number (todo), accent number with a 5 px soft ring (current), orange number with orange ring (current and waits for a person), green check (done); the rail between markers turns green for done stages. Titles 16/600; a one-line summary for every stage; only the current stage has a card (`data-testid="run-guide"` + `data-stage` = prepare | approve | testing | judge | result | stopped on the card).
1. **Prepare** (done): "Chose 79 scenarios. See what each agent did" (opens the Team board `/runs/:id/workflow`). While running: three ticks (scouting, researching, designing) with a skeleton line.
2. **Approve the scenarios** (waiting): orange card. Headline "79 scenarios are ready to test", lede "A scenario is one business check. 75 of them cover something this update changes. 2 are new, written by the AI model, and passed a dry run on the practice pod." Actions: primary large **Approve all 79 and start testing** (`guide-approve-all`), secondary **Let me look at them first** (exact; expands the review inline, `scenario review`), plain **Download as Excel** (`excel-script`). Done summary: "Approved by Sai Anirudh at 13:13."
3. **Testing** (running): card "Running scenario 23 of 79", lede "You are asked only if one fails. Watch it on the right, or keep working. We will tell you when something needs you.", progress bar with "22 passed, 0 failed" and "About 14 minutes left" (`guide-progress`). Quick simulation shows `no-live-note`: "This is a quick simulation, so there is no browser to watch. Choose “Full browser run” next time to see the test live."
**Your decision** (waiting, renamed stage 3): see 8.4.5.
4. **Result:** see 8.4.6. Stopped runs replace stages 3-4 with the Stopped card (reason, "Carry on from where it stopped" for `run.control`).
Stage changes announce via a polite status line; focus moves to the new card's primary button only if focus was in the stage column or on `body`.
#### 8.4.3 Approvals (inline review and `/runs/:id/scenarios`)
- Inline review (from "Let me look at them first") shows grouped rows: group header (step name, "4 of 7 shown", plain link "Approve all 7 Requisition scenarios"), rows with title, caption ("Critical. Changed by the update." / "High. Written by the AI model, dry run passed at 11:23."), and an **Approve | Skip** segmented control (accessible names unchanged: "Skip Rejected requisition for this patch"), a sticky review bar ("4 of 79 approved" `review-count`, secondary "Approve the remaining 75", primary **Submit review**; `review-bar`, `approve_cases` payload unchanged). Filter tabs All / Changed by the update / Written by the AI model / Critical (segmented, with counts). "Approve all 1 unchanged" and "Unchanged (1)" keep their names. AI drafts show "Dry run passed" or "Not runnable: reason" (`dry-run`, `ai-not-runnable`).
- Full page `/runs/:id/scenarios` uses the same list at full width with the inspector showing the selected scenario's steps.
- After submit: toast "Approved 79 scenarios. Testing has started." with **Watch live**.
#### 8.4.4 Live browser panel (inspector tab Live; `/runs/:id/live`)
Header: scenario title (15/600) + one line "Procure-to-Pay › Requisition · Signed in as Buyer · scenario 23 of 79", state badge at right. "Now:" line (`live-action`, 13 px, play glyph) when active. Browser frame (`live-frame`), then controls row: **Pause view** (freezes the last frame client-side; the test keeps running), **Fullscreen**, right-aligned freshness caption ("Updated just now", "Last picture 8 s ago"). Honesty line (always): "Test data only. This is the test environment's browser, not your own session." Below: **Results so far** (last three, newest first, failed first with a red X, durations) and **Up next**. `live-view`, `live-title`, `live-frame`, `live-action`, `live-failure-banner`, `live-unavailable` kept.
| State | Trigger (existing data in `LiveView.tsx`) | Badge | Overlay (title / sentence) | Controls |
|---|---|---|---|---|
| **Starting** | `l.active` and no `frame_ts` yet | STARTING grey | "Starting the browser" / "This takes a few seconds. The first screen appears here." + indeterminate bar | all disabled |
| **Live** | `l.active`, frame arriving | LIVE red blinking | none; an orange ring shows the element being acted on | Pause view, Fullscreen |
| **Sign-in hidden** | `l.masked` | LIVE | lock tile, "Sign-in screen hidden" / "Passwords are never shown here."; Now line "Signing in (the sign-in screen is not shown)" | Fullscreen |
| **Reconnecting** | `l.active && l.stale`, or stream `onError` (retry after 2 s, existing) | RECONNECTING orange | spinner, "Reconnecting to the test browser" / "The test keeps running. We show the last picture we received." Caption "Last picture N s ago" | Fullscreen only. After 30 s: add a plain button "Reload the picture" (new, bumps `conn`) |
| **Paused for your review** | status waiting; `gate` approve or human_review | PAUSED grey | pause tile (orange), "Paused for your review" / "Testing starts after you approve the scenarios." or "Testing continues after you decide the failure." | disabled |
| **Preparing next batch** | not active, running, `everActive` | STARTING | "Preparing the next batch of scenarios" / "The browser opens when the scenarios start." | disabled |
| **Ended** | not active and not running | ENDED grey | check tile, "Testing has finished" / "Open the report for the results." plus **Watch the recording** link when saved | disabled |
| **Unavailable** | `l.available === false` | none | replaces the frame with an empty state (`live-unavailable`): "Live view is not available" + the server's `reason`; for quick simulations the fixed text (`no-live-note` wording); secondary action "New test run" | none |
| **No permission** | `!canWatch` | none | "Watching the test needs the consultant, QA approver or admin role." | none |
| **Failure seen** | `l.failed` or failed results | banner above frame | red banner `live-failure-banner`: "This step failed. Testing continues with the next scenario." + **See the failed screen** (modal) + **Open in failure review** | |
The frame never shows a spinner without words. View-only is stated, there is no click-through, no "take over".
#### 8.4.5 Failures and decisions (stage "Your decision"; `/runs/:id/failures`)
Orange card: "1 scenario failed. What should we do?", lede names the scenario and what went wrong in one sentence. **We expected | What happened** pair (red tint on the actual). Evidence strip: 112 px thumbnail of the failed screen, "Screen at the moment it failed", "Step 6 of 9 · 11:48:02", **See the failed screen**. Radio list (`guide-failure-<id>`): "Yes, this is a real defect" (preselected with a "Suggested" chip, caption "We raise a defect with the screen and steps attached. This scenario counts as failed."), "No, the test needs fixing" (self-heal proposes a corrected step), "It is flaky, run it again" (retries up to 3, owner select). Primary **Submit decision** (`guide-submit-decisions`; multiple failures use Back/Next and a final submit). Waiver for P2 priority and a note field live behind "Add a note or waive" (`gate.human_review`). After submit: toast naming the defect raised; stage 3 returns to Testing or moves to Result.
#### 8.4.6 Result and sign-off; All details menu
- **Result card:** verdict word 34/700 in status colour (Ready green, Not ready red, On hold orange; `decision-badge`, `data-rule`), one sentence why, five numbers (tested, failing, not run, defect raised, steps not covered; `process-summary`), primary **Open the report and sign off**, plain **Download the results (Excel)**, honesty caption "Tested on the practice pod. Mock app, not Oracle Fusion. Sign-off is yours to give." (`guide-result`).
- **Report page** (`/runs/:id/report`): back link "Test run", title "Procure-to-Pay report", lede names the environment; toolbar-row actions Share, Download PDF (`pdf-link`), More downloads menu (Markdown, HTML, run-summary.json, Excel); verdict card with five numbers (`exec-summary`); "Results by business process" table (`criteria`, steps with Matched / Waived with a note); open defects; HTML report iframe titled "<MOD> go/no-go report" (contains NOT ORACLE FUSION on practice); **Sign off** card (`signoff`: "Sign-off is yours to give. It records your name, the time and your comment in the audit log.", comment field, primary **Sign off this report**, plain **Audit details**). After sign-off the card becomes "Signed off by Sai Anirudh, 21 Oct 2026, 13:41" with a green shield tile, and the toolbar shows a "Signed off" chip.
- **All details menu:** Watch the test live · Screens · Scenarios · Failures · Team board · Report and sign-off · By business process · What the patch changes · Activity log · Add a note for the team · Excel test script · group "Engineering views (admin)": Coverage map, Data plan, Scripts, Technical report. Names "Activity log", "Scenarios", "Failures", "Report and sign-off" verbatim (e2e).
#### 8.4.7 Inspector tabs
- **Live:** 8.4.4. **Steps:** the selected scenario's steps as a numbered grouped list with state (done check, running spinner, next), plain-language text, duration; a caption "Steps are written in plain business language. The code behind them is in All details." **Screens:** film-strip cards per scenario with pass/fail word, step, "Watch the recording"; `proof-card`s, search field, pager, permission fallback text. **Report:** state of the report, primary "Open the report and sign off", PDF / Copy link. **Excel:** two rows: Test script, Results (`excel-script`). `?scenario=<id>` selects the scenario for Steps/Screens.
- Resizable by dragging the left edge (400 to 560); collapsible; remembered per user.
### 8.5 Test runs (`/runs`)
Head: title, lede, plain link "Scheduled runs", primary **New test run**. Segmented filter: All · Waiting for you (orange count) · Running (count) · Finished · Stopped (+ "Started by me" switch). Table in a grouped card: Test run (name + run type caption), State (dot + word), Where (environment chip), Started; row opens the run; ellipsis menu (Open, Report, Resume, Cancel) on hover/focus; `run-row-<id>` kept; sortable headers. Empty: "No test runs yet. Start one and the co-worker plans the scenarios for you." + primary. Footer "Showing 6 of 6 test runs." with pager when more. `?waiting=1` preselects the filter.
### 8.6 Scenarios (`/scenarios`)
Master-detail: table (Scenario with "Area › Step" caption, Priority, Origin, Last result) at left, inspector at right with the selected scenario's steps, Excel, "Show in a run". Filters (segmented): All, Changed by the update, Written by the AI model, Critical; search; Export Excel in the head. `aria-label="scenarios library"`. Empty and error states as 6. Edits are an admin/consultant action with audit entry (existing permissions).
### 8.7 Defects (`/tickets`)
Table (`aria-label="tickets"`): Defect (title + ID), Area, Severity chip, Status dot (Open orange, Fixed green, Waived grey), Raised, Test run link. Segmented: Open (count) · Fixed · Waived · All. Row opens a right inspector (evidence, steps, owner, link to run). Footer: "Defects stay in this list; they are not sent to another system unless an administrator turns that on." Empty: "No open defects. Nice."
### 8.8 Test environments (`/pods`)
Head with primary **Add a Fusion pod** (opens the sheet "Add an Oracle Fusion test pod": Pod name, Pod URL, Environment type segmented Test/UAT/SIT/Development, Modules chips, notes; banner "Sign-in details come next. Passwords go to the secrets vault and never reach an AI model."; "Production pods are refused" as lede). Cards in a 2-column grid, **clearly labelled by kind**:
- **Local mock pod:** orange chip with shield "Practice environment", name, URL, orange banner "Mock app, not Oracle Fusion. Use it to learn the co-worker and rehearse a run. Results never count as a Fusion sign-off.", connection dot + words, "Ready for test runs", **Test connection**.
- **Oracle Fusion pod:** graphite outlined chip with a cloud "Oracle Fusion pod", environment type chip (UAT), release and modules, connection dot ("Connected, checked 12:58" / red "Connection failed, checked ...: reason"), "Sign-in details: P2P (set by Sai)...", buttons **Test connection** (`pod-test-result` line under the grid), **Sign-in details** (sheet with module, test username, test password; password never shown again), Enabled switch, default marker.
- A dashed "Register a Fusion pod" row at the end. `pod-<id>`, `data-kind` kept. Capture-screen API (#38) stays API-only; if a UI is added it lives in a card "..." menu.
### 8.9 Reports (`/reports`)
Grouped list (`aria-label="reports"`): leading tile coloured by verdict, "Procure-to-Pay, update 26C", "19 Oct, practice pod. 78 of 79 passed.", trailing verdict word and "Not signed off" / "Signed off" chip. Row opens `/runs/:id/report`. Filters: verdict, signed off, environment. Empty: "Reports appear here when a test run finishes."
### 8.10 Ask (`/assistant`, `/assistant/:id`) and the Ask dock
- **Page:** centred 760 px thread; user bubbles accent with white text (radius 20, tail corner 6), assistant answers in white cards with the product avatar (`favicon-graphite.svg` / `favicon-paper.svg` 32), answer **cards** inside bubbles (readiness card `chat-card-readiness`, run progress `chat-run-progress`, mock strip `chat-mock-strip`), each answer ends with a caption "Source: your latest test runs and defects." (`chat-source`). Proposed actions are **confirm cards** (`chat-confirm`, "Nothing changes until you confirm.", primary `chat-confirm-button`, Cancel; after: "Done · test run started" `chat-action-done`, or `chat-action-closed`). Composer: glass pill at the bottom, placeholder "Ask about a run, a defect or an area" (`assistant-input`), send button, context chip when scoped (`chat-context`, removable).
- **Hermes notice (honesty rule):** when Hermes answered, that answer's caption reads "Source: ... Answered by the Hermes assistant." and the composer caption reads "The Hermes assistant uses NVIDIA's AI model. Don't paste client data." When Hermes is off or did not answer, neither line appears and answers are the built-in cards. Settings › AI models has "Use the Hermes assistant for Ask" (switch) with the same disclosure. If Hermes is configured but unreachable: banner "The Hermes assistant isn't answering. Using built-in answers." and answers carry no Hermes line.
- **Dock:** `Ctrl K` palette's "Ask: ..." opens the existing `aside aria-label="Ask the co-worker"` (right side, 380 px, same bubbles, `chat-dock`, `chat-toggle`, `chat-new`). States: thinking (three dots), error banner with Try again, empty (suggested questions as plain-pill buttons).
### 8.11 Settings (admin; `/admin?tab=...` and the engineering routes)
Left list inside the page (selected = `--fill-2`, macOS Settings style) and a 720 px pane: **AI models** (Local model: "Now: running on this machine. Nothing leaves your network." + Test; External model: key state + Save key / Remove; routing table "Which agent uses which model"; Ask assistant switch), **Users** (table with role select, status, create/approve), **Automatic approval** (switches with plain sentences; "Failures are always decided by a person."), **Schedules** (grouped rows with switch, Patch watch with "Check now"; create/delete), **Emergency stop** (red tinted group, "Stop all test runs now", destructive solid **Engage kill switch** then **Release**, `kill-state`; sidebar shows `kill-indicator`), and group "Under the hood": Audit log (filter + **Verify chain**, `audit-verify`), Agent team, Self-heal (approve/reject), Scripts and drafts (promote/discard), Learner. Each pane uses the grouped-list or table patterns above; destructive or irreversible changes confirm in a small sheet with the exact consequence in the first sentence. Non-admins do not see the Settings item.
### 8.12 Command palette and global search
Specified in section 6. Result groups and microcopy: "Waiting for you" (only when the query is empty), "Go to", "Test runs", "Actions", "Ask". Empty result: "Nothing matches." then the single row `Ask: "<query>"`. Footer: "Up Down to move · Enter to open · Nothing changes until you confirm."
### 8.13 Sidebar user menu and notifications
Menu: Appearance (cycles Match system / Light / Dark; the aria-labels "Switch to dark theme" / "Switch to light theme" stay), Settings, Sign out (aria-label "Sign out"). `whoami` is the user name. Desktop (Electron) adds "Desktop settings" and notifications through the existing `DesktopNotifier`.
---
## 9. Feature map: all 58 checklist items
Sidebar items: **Home, Test runs, Ask, Scenarios, Defects, Reports, Test environments, Settings**. "Run" = Run workspace (8.4), "Report" = `/runs/:id/report` (8.4.6), "Inspector" = right panel tab.
| # | Feature | Place in the Apple UI |
|---|---|---|
| 1 | Report and sign-off view | Report page `/runs/:id/report`; Result card primary; Inspector Report tab; All details menu |
| 2 | Sign-off form | Report page "Sign off" card (`signoff`, button "Sign off this report") |
| 3 | Download PDF | Report page toolbar row (`pdf-link`), Inspector Report tab, More downloads menu |
| 4 | Share (copy link) | Report page "Share"; Inspector Report "Copy link" |
| 5 | MD / HTML / run-summary.json downloads | Report page More downloads menu; Technical report (engineering views) |
| 6 | Criteria explanation (Audit details, C1-C6, exec summary, rule result) | Report page "Audit details" plain button, `criteria` table, `exec-summary`, `rule-result` |
| 7 | HTML report iframe | Report page lower section, iframe title "<MOD> go/no-go report" |
| 8 | Excel test script download | Approve card "Download as Excel" (`excel-script`), Inspector Excel tab, All details |
| 9 | Excel results download | Result card plain button, Inspector Excel tab |
| 10 | Screens / proof | Inspector Screens tab (`/runs/:id/proof` opens it) |
| 11 | Technical report + evidence list | All details > Engineering views > Technical report (`aria-label="evidence"`) |
| 12 | Delete this run's evidence (admin) | Technical report, destructive button with confirm sheet (`delete-evidence`) |
| 13 | Coverage map / Data plan / Scripts (admin) | All details > Engineering views |
| 14 | Live view (stream, pause, jump to live, fullscreen, failed-screen modal, results so far, up next, honesty line) | Inspector Live tab, states table 8.4.4; "Jump to live" appears in the controls when paused |
| 15 | Now testing line + Watch | the "Now:" line (`live-action`), status dot in the run header, Live tab badge |
| 16 | Workflow / agent states | Team board (`/runs/:id/workflow`, `/team` alias) from "See what each agent did"; All details > Team board |
| 17 | Agent team graph + stream mode | All details > Activity log (`stream-mode`) |
| 18 | Activity log + team notes | All details > Activity log; "Add a note for the team" menu item |
| 19 | Scenario review (approve/skip, approve all per step / unchanged / remaining, notes, submit, AI drafts, dry run, technical details) | Approve stage inline review and `/runs/:id/scenarios`, 8.4.3 |
| 20 | Approve all (one click) | Approve card primary (`guide-approve-all`) |
| 21 | Failure decision (three choices, suggestion, owner for flaky, back/next/submit) | "Your decision" stage card, 8.4.5 |
| 22 | Open all failure details (verdict, owner, waiver, note, submit) | `/runs/:id/failures` (All details > Failures), "Submit failure review" |
| 23 | What the patch changes (per run) | All details > What the patch changes (`change-*`) |
| 24 | By business process | All details > By business process (`business-progress`) |
| 25 | Next step banner | graphite grey banner at the top of detail views (`next-step`) |
| 26 | Attention reminder | orange banner above the stages (`attention`) |
| 27 | Resume / Cancel test run | toolbar (Cancel test run), run header (Resume) with `run.control` |
| 28 | Run reference id copy | run header reference chip (`run-id`) |
| 29 | Temporal link (admin) | run header chip (`temporal-link`) |
| 30 | Chat command input (status, approve, cancel, report, screens, new) | Ask dock and Ask page composer; palette covers navigate-type commands |
| 31 | Patch readiness (selects, module cards, what changes, glossary, New test run) | Home, 8.2 |
| 32 | Start run wizard | Start sheet, 8.3 (+ "Use the full form") |
| 33 | Test runs list (filters, row menu, getting started, pager) | Test runs, 8.5 |
| 34 | Defects / tickets | Defects, 8.7 |
| 35 | Scenarios library | Scenarios, 8.6 |
| 36 | Reports page | Reports, 8.9 |
| 37 | Test environments (add pod, sign-in details, test connection, enabled) | Test environments, 8.8 |
| 38 | Screen capture (API only) | unchanged; future home: pod card "..." menu |
| 39 | Settings > AI models | Settings, AI models pane |
| 40 | Settings > Users | Settings, Users pane |
| 41 | Settings > Automatic approval | Settings, Automatic approval pane |
| 42 | Settings > Schedules (scheduler, patch watch) | Settings, Schedules pane; `/schedules`; link on Test runs |
| 43 | Emergency stop / kill switch | Settings, Emergency stop pane; red sidebar indicator (`kill-indicator`, `kill-state`) |
| 44 | Audit log (filter, verify chain) | Settings > Under the hood > Audit log (`audit-verify`) |
| 45 | Learner | Settings > Under the hood > Learner |
| 46 | Self-heal review | Settings > Under the hood > Self-heal |
| 47 | Scripts and drafts | Settings > Under the hood > Scripts and drafts |
| 48 | Agent team | Settings > Under the hood > Agent team |
| 49 | Chat page | Ask (`/assistant`, `/assistant/:id`); intake chips live in the Start sheet (`area-<MOD>`, `mode-quick`, `mode-full`) |
| 50 | Ask-a-question dock (Ctrl K), cards, confirm actions, context chip | Palette "Ask: ..." opens the dock; Ask page uses the same components |
| 51 | Sign in / register / forgot / reset | 8.1 |
| 52 | Dark mode toggle | Account menu "Appearance", aria-labels unchanged; follows the system by default |
| 53 | Sign out | Account menu (aria-label "Sign out") |
| 54 | Desktop notifications and Desktop settings | unchanged (Electron); Desktop settings in the account menu |
| 55 | Practice vs Fusion honesty cues | sidebar switcher (`mock-banner`), run header chip, report lines, pod cards, Start sheet banner, sign-in line, page title |
| 56 | Glossary popover | Home "What this patch changes" footer link and a help button in the run toolbar; keyboard sheet `?` |
| 57 | Health badge "test environment down" | amber banner under the toolbar (and a dot on the environment switcher) |
| 58 | Brand | sidebar brand row, sign-in (`brand` testid), page title, favicon (see `brand/BRAND.md`) |
## 10. Brand integration
Name "Trio Co-Worker" everywhere (BRAND.md section 6). Mark: `favicon.svg` in the sidebar (30 px), `app-icon.svg` on sign-in (116 px), `wordmark-*` in reports and README. The mockup embeds the real SVGs.
## 11. What I could not verify (honest list)
- HIG: read through Apple's JSON endpoint, not in a rendered browser; I did not read the "Liquid Glass" page (corner radii/concentricity) or Apple's SF font licence text. Apple font/symbol licence statements marked above are from memory.
- Rendered only in **Chromium on Windows** (Playwright), 1440x900. Not seen in Safari, Firefox, or on macOS with real SF Pro and real vibrancy. `backdrop-filter` support is Baseline in current browsers, from my knowledge, not re-checked in this session. Inter stands in for SF in all screenshots.
- No screen reader (NVDA/JAWS/VoiceOver) pass; keyboard flow was exercised by script only (Tab, Enter, Esc, arrows in palette, Ctrl K).
- Contrast numbers are computed from the token values, with translucent materials approximated against the page colour. `prefers-contrast`, `forced-colors` and `prefers-reduced-transparency` rules are specified, not rendered.
- Layouts under 1280 px, and 200% zoom, were not rendered (the mockup has one breakpoint at 1180 px, untested).
- The live-view states mirror `LiveView.tsx` logic by reading the code; I did not run the backend, so real frame timing, `stale` thresholds and the "Last picture N s ago" caption (needs `frame_ts` age; `stale` exists today, the age may need a backend field) are unconfirmed.
- Telegram/email notifications do not exist in the repo today (no matches), so those brand placements are for when they are built.
|