From 21289b9948d738b43c7951817b38fce3b41d4b97 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 03:32:51 +0000 Subject: [PATCH 1/2] =?UTF-8?q?docs(qa):=20Studio=20task=20benchmark=20?= =?UTF-8?q?=E2=80=94=20scenario,=20scoring=20rules,=20score=20sheet,=20use?= =?UTF-8?q?r-session=20protocol=20(WIP)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01VenZErfhzG51sJBHRM1pWJ --- docs/qa/studio-benchmark/SCENARIO.md | 66 ++++++++++++++ docs/qa/studio-benchmark/SCORESHEET.md | 65 ++++++++++++++ docs/qa/studio-benchmark/SCORING.md | 54 ++++++++++++ docs/qa/studio-benchmark/USER-SESSIONS.md | 102 ++++++++++++++++++++++ 4 files changed, 287 insertions(+) create mode 100644 docs/qa/studio-benchmark/SCENARIO.md create mode 100644 docs/qa/studio-benchmark/SCORESHEET.md create mode 100644 docs/qa/studio-benchmark/SCORING.md create mode 100644 docs/qa/studio-benchmark/USER-SESSIONS.md diff --git a/docs/qa/studio-benchmark/SCENARIO.md b/docs/qa/studio-benchmark/SCENARIO.md new file mode 100644 index 00000000000..e0595b136ce --- /dev/null +++ b/docs/qa/studio-benchmark/SCENARIO.md @@ -0,0 +1,66 @@ +# Studio task benchmark — the fixed scenario + +**Build a repair-ticket app with no code.** One script, run unchanged every release, so the +numbers compare. ⛔ Do not reword, reorder or extend a step between runs: a changed script is a +new benchmark and its first run is a new baseline, recorded as such in [`baselines/`](./baselines/). + +Scoring rules live in [SCORING.md](./SCORING.md); the sheet a run fills in is +[SCORESHEET.md](./SCORESHEET.md); the human-author protocol is [USER-SESSIONS.md](./USER-SESSIONS.md). + +## Environment (every run) + +| what | value | +|---|---| +| app | `examples/app-showcase`, a **fresh** boot — empty database, nothing left from an earlier run | +| boot | `OS_PORT=PORT pnpm -C ABS/examples/app-showcase exec objectstack dev --ui --seed-admin -p PORT -d file:/tmp/RUN/data.db` (the dogfood-verification §0 line; `OS_PORT` exported, not only `-p`) | +| console | the vendored build at the `.objectui-sha` pin (`pnpm objectui:build`), served at `/_console/` — **never** an objectui HEAD dev server: the benchmark measures what users get | +| author | the seeded platform admin `admin@objectos.ai` / `admin123`, signed in through the form | +| end user | a second identity minted by admin create (`POST /api/v1/auth/admin/create-user`, then `change-password`), or by invite + sign-up — a stock showcase refuses self-registration | +| browser | Chromium at 1440×900 | + +Record both SHAs before step 1: `git rev-parse HEAD` of the objectstack tree you booted, and the +contents of `.objectui-sha` (cross-check `packages/console/dist/.objectui-sha` — `os dev` refuses +to mount a console whose stamp differs). + +## The rules of the run + +- **No code.** The author works only in the console. A step that can be finished only by + writing a file, calling an API by hand, or running a CLI command is a **dead end** for that + step (SCORING.md). Typing JSON, CEL or a machine name into a console field is allowed but + **counted** — it is the thing the benchmark exists to drive to zero. +- **The clock.** A step starts when the author begins it (first click towards it) and stops when + its result is **verified server-side** with the oracle in the table below — a REST read of the + draft, the published metadata or the record, never the UI alone. A step the author abandons + stops the clock at abandonment and is scored as a dead end. +- **Errors.** Every red banner, red toast or red inline error box the author sees is logged with + its verbatim text, the step, and whether the author caused it (a wrong input) or the product + showed it on a valid intermediate state. Every 4xx/5xx answer to a draft write or a publish + write is logged with method, path, status and error code (read from the browser's network log). +- **No retries off the clock.** Re-doing a step after an error is part of that step's time. + +## The steps + +Machine names below are what a run *expects the console to derive*; the author never has to type +them. If the console makes the author type one, that is a counted machine-name entry. + +| # | step | what "done" means | server-side oracle | +|---|---|---|---| +| 1 | Create package **Repair Center** | a writable package exists, owned by the author's org | `GET /api/v1/packages` lists it (read the id the console derived) | +| 2 | Object **Repair Ticket** with fields **Name** (text), **Status** (picklist: New / In Progress / Done), **Due Date** (date), **Problem Description** (long text), **Technician** (lookup → user) | the object draft carries all five fields with those types and the three picklist options | the object's draft read back through the drafts API, or (after step 7) `GET /api/v1/meta/object/OBJECT` | +| 3 | **Group the form** — at least two sections (e.g. *Ticket* with Name / Status / Due Date / Technician, *Details* with Problem Description) | the object's form layout declares the sections | the form view/layout draft read back | +| 4 | Validation **"Due date required when Done"** | a validation rule that refuses `status = Done` with an empty due date, with a readable message | the rule in the object draft; after step 7, a forged create with `status=done` and no due date answers 4xx with the rule's message | +| 5 | Automation **"Notify the technician when Done"** | a record-triggered flow on Repair Ticket, firing when Status becomes Done, whose notify step addresses the Technician field | the flow draft read back: trigger object, condition, notify recipients | +| 6 | An **app with navigation** — an app *Repair Center* whose nav reaches the Repair Ticket list | an app definition with a nav item for the object | the app draft read back; after step 7 `GET /api/v1/meta/app` lists it | +| 7 | **Publish** | every draft from steps 2–6 is live | `GET /api/v1/meta/object/OBJECT`, the flow, the app — all answer with the published shape | +| 8 | **As the end user**: open the app, create a ticket (assign the Technician), move it to **Done**, see the notification arrive | the record exists in status Done; the technician has an inbox message for it | `GET /api/v1/data/OBJECT/ID`; a `sys_inbox_message` row whose recipient is the technician (read as the technician) | + +Step 8's notification is the end-to-end proof that steps 4–7 composed: the validation must let a +ticket with a due date through, the flow must fire on the status change, and the recipient must +resolve from the lookup. + +## What a run hands back + +One filled [SCORESHEET.md](./SCORESHEET.md) copy, committed under [`baselines/`](./baselines/) +when it is a baseline (the first run of a release), named +`YYYY-MM-DD-OBJECTSTACKSHA8-OBJECTUISHA8.md`. Every red banner and dead end in it carries a card +reference — an existing card, or one filed by the seat that reviews the run. diff --git a/docs/qa/studio-benchmark/SCORESHEET.md b/docs/qa/studio-benchmark/SCORESHEET.md new file mode 100644 index 00000000000..e3017c69dde --- /dev/null +++ b/docs/qa/studio-benchmark/SCORESHEET.md @@ -0,0 +1,65 @@ +# Studio task benchmark — score sheet (template) + +Copy this file to `baselines/YYYY-MM-DD-OBJECTSTACKSHA8-OBJECTUISHA8.md` (a baseline) or to the +session folder (a human session), then fill it in. Rules: [SCORING.md](./SCORING.md). + +## Run + +| field | value | +|---|---| +| date (UTC) | | +| run type | agent / human session (participant code only — no names) | +| objectstack commit booted | | +| objectui commit (`.objectui-sha`, and the console stamp) | | +| boot line | | +| browser / viewport | | +| author identity | | +| end-user identity | | +| setup time (boot → signed in) | | + +## Headline + +```text +completed _/8 · total _ s · _ red errors · _ failed writes · _ code-shaped entries · _ dead ends +``` + +## Per step + +| # | step | result (`completed` / `dead-end` / `not-reached`) | time (s) | red errors | failed writes | code-shaped | oracle evidence | +|---|---|---|---|---|---|---|---| +| 1 | package Repair Center | | | | | | | +| 2 | object Repair Ticket + 5 fields | | | | | | | +| 3 | group the form | | | | | | | +| 4 | validation: due date required when Done | | | | | | | +| 5 | automation: notify technician when Done | | | | | | | +| 6 | app with navigation | | | | | | | +| 7 | publish | | | | | | | +| 8 | end user: create, move to Done, notification arrives | | | | | | | + +## Red errors (verbatim) + +| n | step | verbatim text | where shown | class | card | +|---|---|---|---|---|---| +| | | | | | | + +## Failed writes + +| n | step | method · path | status · code | card | +|---|---|---|---|---| +| | | | | | + +## Code-shaped entries + +| n | step | field | kind (`json` / `cel` / `machine-name`) | card | +|---|---|---|---|---| +| | | | | | + +## Dead ends + +| n | step | what could not be done in the console | the code path that would finish it | card | +|---|---|---|---|---| +| | | | | | + +## Warnings and notes + +Non-red observations worth keeping (amber warnings, confusing copy, slow screens). Not scored. diff --git a/docs/qa/studio-benchmark/SCORING.md b/docs/qa/studio-benchmark/SCORING.md new file mode 100644 index 00000000000..a6e0158ee87 --- /dev/null +++ b/docs/qa/studio-benchmark/SCORING.md @@ -0,0 +1,54 @@ +# Studio task benchmark — scoring + +How a run of [the scenario](./SCENARIO.md) turns into numbers. The sheet a run fills in is +[SCORESHEET.md](./SCORESHEET.md). The same rules score an agent run and a human session +([USER-SESSIONS.md](./USER-SESSIONS.md)); only the time column means something different (below). + +## The four metrics + +| metric | unit | counted when | not counted | +|---|---|---|---| +| **Wall time** | seconds, per step and total | from the author's first gesture towards the step to the server-side oracle confirming it (SCENARIO.md, *The clock*) | the oracle read itself; boot and sign-in (recorded separately as *setup*) | +| **Red errors** | count + verbatim text | every red banner, red toast, red inline error box or red field message **shown** to the author, once per distinct appearance. Two appearances of the same text after two separate gestures count twice | a red-outlined required field before the author has touched it *is* counted (it is shown red); a yellow/amber warning is logged under *warnings*, not counted here | +| **Failed writes** | count + `METHOD path → status CODE` | every 4xx/5xx answer to a draft write (`PUT`/`POST`/`PATCH`/`DELETE` on a metadata, draft or package route) and to the publish call, read from the browser network log | reads (`GET`), auth refreshes, and telemetry | +| **Code-shaped entries** | count, each with step and field | each console field where the author had to type **JSON**, a **CEL / formula expression**, or a **machine name** (snake_case identifier, object or field API name, user id) because no picker or derived default existed | a label the console turned into a machine name by itself; choosing a value from a picker that displays machine names | +| **Dead ends** | count, each named with its step | a step, or a required part of one, that cannot be finished in the console at all — the only way through is a file, a hand-written API call or a CLI command | a step that is slow or error-prone but completable | + +## Classifying each red error + +Each red error gets exactly one class — the class says who has to move: + +| class | meaning | +|---|---| +| `intermediate-state` | the product flagged a valid, unfinished state as an error (e.g. a half-built flow, a field not yet filled) | +| `author-input` | the author entered something wrong and the message said so | +| `product-defect` | a valid, finished input was refused, or the message is wrong or unreadable | +| `environment` | the boot or fixture, not the product (record it, do not count it in the headline) | + +## Headline numbers + +The headline row of every run, in this order, is what the next release compares against: + +```text +completed STEPS/8 · total TIME · RED red errors · FAILED failed writes · CODE code-shaped entries · DEAD dead ends +``` + +- *completed* counts steps whose oracle confirmed the result; a dead-ended step is not completed, + and a step that depends on a dead-ended step is recorded `not-reached`, never `fail`. +- A **regression** is any headline number moving the wrong way between two runs on the same + script, or a step changing from completed to not. Report it per step, never only as a total. + +## Agent runs vs human sessions + +An agent run measures **the product**: which steps are possible without code, what errors a +correct author meets, which fields demand code-shaped input. Its wall time includes the agent's +own driving and is not a human completion time — record it, compare it only against other agent +runs, and never quote it as "an author takes N minutes". Human completion time comes from the +[user sessions](./USER-SESSIONS.md), scored on the same sheet. + +## Evidence + +Each counted item carries text evidence in the sheet: the verbatim banner text, the network line, +the field name. Screenshots are live judgment aids and are not committed (the platform +checklist's `RUNNER.md` rule). A red error or dead end is cross-referenced to a card — an +existing one, or the card the reviewing seat files for it. diff --git a/docs/qa/studio-benchmark/USER-SESSIONS.md b/docs/qa/studio-benchmark/USER-SESSIONS.md new file mode 100644 index 00000000000..3face006dee --- /dev/null +++ b/docs/qa/studio-benchmark/USER-SESSIONS.md @@ -0,0 +1,102 @@ +# Studio task benchmark — sessions with real low-code authors + +A protocol for **3–5 moderated sessions** in which a real low-code author runs +[the same scenario](./SCENARIO.md), thinking aloud, scored on [the same sheet](./SCORESHEET.md) +by [the same rules](./SCORING.md). The agent baseline says what the product allows; these +sessions say how long it takes a person and where a person gets lost. The maintainer recruits +the participants; everything they need is on this page. + +## Participants + +- **Who:** people who build business apps in a low-code tool today (Salesforce admin, Airtable, + Power Apps, a similar product). Not ObjectStack developers, not anyone who has used Studio + before — a second session with the same person measures memory, not the product. +- **How many:** 3 minimum, 5 maximum. Five sessions find most of the problems a task like this + has; past five, the same problems repeat. +- **Recorded as** a participant code (`P1`…`P5`) only. No names, employers or faces go into the + repository. + +## Before the session (moderator, ~20 min) + +1. Boot a **fresh** environment exactly as in SCENARIO.md → *Environment*, one per participant — + never reuse a database another participant has touched. Record both SHAs on the sheet. +2. Mint the end-user identity (SCENARIO.md → *Environment*) and keep its password ready for step 8. +3. Sign the participant's browser in as the admin, open `/_console/`, and stop there. Start + screen and audio recording only with the participant's consent. +4. Have the **task card** below printed or on a second screen. The participant may re-read it at + any time. +5. Open the browser's network log (or a HAR recorder) on the moderator side, to count failed + writes afterwards. + +## Task card (read to the participant, and leave it with them) + +> You run the repair desk of a building-maintenance company. Using this tool and **without +> writing any code**, build a small app for repair tickets: +> +> 1. Create a package called **Repair Center**. +> 2. Add a **Repair Ticket** with: a name; a status that can be *New*, *In Progress* or *Done*; +> a due date; a problem description (longer text); and the technician responsible (one of the +> system's users). +> 3. Arrange the ticket form into sections. +> 4. Make sure nobody can mark a ticket *Done* without a due date. +> 5. When a ticket becomes *Done*, the technician should get a notification. +> 6. Give people an app where they can find the tickets. +> 7. Make it live. +> 8. Then sign in as the end user we give you, create a ticket, mark it *Done*, and check that +> the notification arrived. +> +> Please think aloud the whole time — say what you are looking for, what you expect to happen, +> and what surprises you. There are no wrong answers: we are testing the tool, not you. + +The card deliberately uses **no product vocabulary** — not "object", "picklist", "lookup", +"flow", "validation rule" or "publish". Whether the author finds those concepts from task words +is part of what is measured. ⛔ Do not translate the card into product terms when a participant +is stuck. + +## During the session (45 min cap) + +- **Moderator speech is limited to:** reading the card; "please keep talking"; "what are you + looking for?"; "what did you expect?". Never point at the screen, name a menu, or confirm that + something worked. +- **Assist only to unblock**, and only after 3 minutes without progress on a step, or when the + participant asks to give up on it. An assist is a **dead end for that step** in this session's + sheet, with what the participant tried and what the assist was. Then let them continue — later + steps are still worth measuring. +- **Time-box:** 45 minutes for steps 1–8. Steps not reached are `not-reached`, not failures. +- **Observer notes** (a second person if available), timestamped, per step: hesitations over + ~20 s, wrong turns, words the participant used for things the product names differently, every + red message read aloud or ignored. + +## Scoring after the session + +Fill in one [SCORESHEET.md](./SCORESHEET.md) per participant from the recording, the observer +notes and the network log: + +- **Time** per step, from the recording — first gesture towards the step to the moment the + result is in place; confirm completion server-side afterwards with each step's oracle + (SCENARIO.md), never only from what the screen showed. +- **Red errors**, **failed writes**, **code-shaped entries**, **dead ends** — exactly as + SCORING.md defines them. An assist counts as a dead end. +- Add two session-only columns under *Warnings and notes*: **vocabulary misses** (the + participant's word → the product's word) and **SEQ**, a one-question ease rating the + participant gives after each step (1 = very difficult … 7 = very easy). + +## After all sessions + +- One summary next to the agent baseline in [`baselines/`](./baselines/): median and range of + total time, completion rate per step, the red errors and dead ends that hit **two or more** + participants, and the five most frequent vocabulary misses. +- Each problem two or more participants hit, that has no card yet, goes to the reviewing seat to + file — the same cross-reference rule as an agent run. +- Delete the recordings when the summary is written, unless the participant agreed to longer + retention. + +## Kit checklist + +- [ ] fresh environment per participant, both SHAs recorded +- [ ] end-user identity minted, password at hand +- [ ] task card printed / on a second screen +- [ ] recording consent obtained +- [ ] network log or HAR recorder running +- [ ] one blank SCORESHEET.md per participant +- [ ] observer briefed on the "assist only to unblock" rule From 686dc6218812ff0d495204b719288af709dc1c5f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 04:14:48 +0000 Subject: [PATCH 2/2] docs(qa): Studio task benchmark baseline run on objectstack 8fc50b76 / objectui a58626c8 Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01VenZErfhzG51sJBHRM1pWJ --- docs/qa/studio-benchmark/README.md | 61 ++++++++++ docs/qa/studio-benchmark/SCENARIO.md | 8 +- docs/qa/studio-benchmark/SCORING.md | 17 ++- .../baselines/2026-10-08-8fc50b76-a58626c8.md | 109 ++++++++++++++++++ 4 files changed, 190 insertions(+), 5 deletions(-) create mode 100644 docs/qa/studio-benchmark/README.md create mode 100644 docs/qa/studio-benchmark/baselines/2026-10-08-8fc50b76-a58626c8.md diff --git a/docs/qa/studio-benchmark/README.md b/docs/qa/studio-benchmark/README.md new file mode 100644 index 00000000000..1bc47bd0983 --- /dev/null +++ b/docs/qa/studio-benchmark/README.md @@ -0,0 +1,61 @@ +# Studio task benchmark + +One fixed task — **build a repair-ticket app with no code** — run against a fresh showcase boot, +timed, counting every red error, failed write, code-shaped entry and dead end the author meets. +Its numbers are the Studio UX baseline, re-measured every release. + +| file | what it is | +|---|---| +| [SCENARIO.md](./SCENARIO.md) | the fixed script: environment, the eight steps, the server-side oracle for each | +| [SCORING.md](./SCORING.md) | what is counted, how each red error is classified, the headline row | +| [SCORESHEET.md](./SCORESHEET.md) | the blank sheet a run fills in | +| [USER-SESSIONS.md](./USER-SESSIONS.md) | the protocol for 3–5 think-aloud sessions with real low-code authors | +| [`baselines/`](./baselines/) | one filled sheet per release, named `YYYY-MM-DD-OBJECTSTACKSHA8-OBJECTUISHA8.md` | + +## Current baseline + +[`baselines/2026-10-08-8fc50b76-a58626c8.md`](./baselines/2026-10-08-8fc50b76-a58626c8.md): + +```text +completed 8/8 · total 1511 s · 16 red errors · 13 failed writes · 10 code-shaped entries · 0 dead ends +``` + +(agent run — the time is agent time, not a human completion time; see SCORING.md.) + +## Each release + +1. Boot fresh, exactly as SCENARIO.md → *Environment* says, with the console built at the release's + `.objectui-sha` pin. +2. Run the eight steps unchanged; fill a copy of SCORESHEET.md. +3. Commit it under `baselines/` with both SHAs in the name, and compare its headline and per-step + rows with the previous file. A number moving the wrong way, or a step that stops completing, is a + regression — report it per step. +4. Every red error, failed write, code-shaped entry and dead end carries a card reference. One with + no card goes to the reviewing seat to file; the runner does not file cards from a benchmark run. + +## Why the baseline is a committed file, not a `qa-run` issue + +The next run has to **read** the previous one, field by field, to compare. A markdown file keyed to +both SHAs sits next to the script it scores, survives in history alongside script changes, and is +diffable. The platform checklist's `qa-run` issue contract belongs to checklist runs (its title +grammar is parsed by `scripts/qa/qa-rollup.mjs` and counts checklist verdicts), and its `runs/` +directory is git-ignored — neither fits a recurring comparison point. + +## Running it as an agent + +Follow `.claude/skills/dogfood-verification` and `docs/qa/platform-checklist/RUNNER.md` for the +boot, the oracle hierarchy and the trap vocabulary. What this benchmark adds: + +- **Record everything as it happens.** Attach a listener to the browser (Playwright over CDP works) + that logs every non-GET `/api` answer and every 4xx/5xx with its body, and polls the page for + visible red elements (`role=alert`, error toasts, `destructive` / `red-` classes), logging each + new text with a timestamp. Write a `MARK stepN-start` / `MARK stepN-end` line into the same log at + each clock edge. The sheet is then filled from one timeline. Make the listener survive page + dialogs (`beforeunload` on sign-out) — a crashed recorder silently stops counting. +- **Drive like an author.** Real clicks and keyboard input; never set a value through the DOM. Read + each screen before acting — the benchmark is about what the console offers, not about a script + that already knows the answer. +- **Verify each step server-side** with SCENARIO.md's oracle (the draft read is + `GET /api/v1/meta/TYPE/NAME?state=draft&package=PACKAGE`), and prove step 4's rule after publish + with a forged create that should be refused with the rule's own message. +- **Tear down** the server, the browser and the recorder by the PIDs you recorded. diff --git a/docs/qa/studio-benchmark/SCENARIO.md b/docs/qa/studio-benchmark/SCENARIO.md index e0595b136ce..6699611bb88 100644 --- a/docs/qa/studio-benchmark/SCENARIO.md +++ b/docs/qa/studio-benchmark/SCENARIO.md @@ -56,7 +56,13 @@ them. If the console makes the author type one, that is a counted machine-name e Step 8's notification is the end-to-end proof that steps 4–7 composed: the validation must let a ticket with a due date through, the flow must fire on the status change, and the recipient must -resolve from the lookup. +resolve from the lookup. The end user assigns **themselves** as the Technician, so the notification +lands in the inbox of the person driving step 8. + +The script deliberately names **no access step**. A low-code author expects a published app to +work for its users; if the end user is refused, the author grants access where they find it, and +the run scores it as rework (SCORING.md, *Rework the script does not name*) with the refusal +classed `missing-step`. ⛔ Do not add the grant to the script to make step 8 pass. ## What a run hands back diff --git a/docs/qa/studio-benchmark/SCORING.md b/docs/qa/studio-benchmark/SCORING.md index a6e0158ee87..d49c30f2c99 100644 --- a/docs/qa/studio-benchmark/SCORING.md +++ b/docs/qa/studio-benchmark/SCORING.md @@ -4,14 +4,14 @@ How a run of [the scenario](./SCENARIO.md) turns into numbers. The sheet a run f [SCORESHEET.md](./SCORESHEET.md). The same rules score an agent run and a human session ([USER-SESSIONS.md](./USER-SESSIONS.md)); only the time column means something different (below). -## The four metrics +## The metrics | metric | unit | counted when | not counted | |---|---|---|---| | **Wall time** | seconds, per step and total | from the author's first gesture towards the step to the server-side oracle confirming it (SCENARIO.md, *The clock*) | the oracle read itself; boot and sign-in (recorded separately as *setup*) | -| **Red errors** | count + verbatim text | every red banner, red toast, red inline error box or red field message **shown** to the author, once per distinct appearance. Two appearances of the same text after two separate gestures count twice | a red-outlined required field before the author has touched it *is* counted (it is shown red); a yellow/amber warning is logged under *warnings*, not counted here | -| **Failed writes** | count + `METHOD path → status CODE` | every 4xx/5xx answer to a draft write (`PUT`/`POST`/`PATCH`/`DELETE` on a metadata, draft or package route) and to the publish call, read from the browser network log | reads (`GET`), auth refreshes, and telemetry | -| **Code-shaped entries** | count, each with step and field | each console field where the author had to type **JSON**, a **CEL / formula expression**, or a **machine name** (snake_case identifier, object or field API name, user id) because no picker or derived default existed | a label the console turned into a machine name by itself; choosing a value from a picker that displays machine names | +| **Red errors** | count + verbatim text | every red banner, red toast, red inline error box, red canvas chip, red field message or red error panel **shown** to the author — one per red element per author gesture. Two appearances of the same text after two separate gestures count twice; a banner that gains a new bullet after a new gesture counts again | a red required-field asterisk; a red count badge (notifications, *Problems N*); a red *Delete* / *Remove* button; a yellow/amber warning or publish advisory (logged under *warnings*) | +| **Failed writes** | count + `METHOD path → status CODE` | every 4xx/5xx answer to a draft write (`PUT`/`POST`/`PATCH`/`DELETE` on a metadata, draft or package route), to the publish call, and to a record write the end user makes through the console in step 8, read from the browser network log | reads (`GET`) — including background reads the console makes for the end user —, auth refreshes, telemetry, and the runner's own forged oracle requests | +| **Code-shaped entries** | count, each with step and field | each console field where the author had to type **JSON**, a **CEL / formula expression**, or a **machine name** (snake_case identifier, object or field API name, user id) because no picker or derived default existed | a label the console turned into a machine name by itself; choosing from a closed picker (a select or combobox that accepts nothing else), even one that displays machine names. A free-text field with a browser suggestion list *is* counted: it accepts any text, and a label typed into it is stored as a wrong machine name | | **Dead ends** | count, each named with its step | a step, or a required part of one, that cannot be finished in the console at all — the only way through is a file, a hand-written API call or a CLI command | a step that is slow or error-prone but completable | ## Classifying each red error @@ -23,8 +23,17 @@ Each red error gets exactly one class — the class says who has to move: | `intermediate-state` | the product flagged a valid, unfinished state as an error (e.g. a half-built flow, a field not yet filled) | | `author-input` | the author entered something wrong and the message said so | | `product-defect` | a valid, finished input was refused, or the message is wrong or unreadable | +| `missing-step` | the refusal is correct, but it needs a step the script does not name and the authoring flow never surfaced (e.g. granting end users access to a new object) | | `environment` | the boot or fixture, not the product (record it, do not count it in the headline) | +## Rework the script does not name + +When a later step reveals that an earlier one needs more work (a missing grant, a rule that does +not evaluate), the author does that work where they found it. Time it as a lettered sub-step of +the step that revealed it (`8a`, `8b`, …), count its errors and entries in that step, and say in +one line what it repaired. ⛔ Do not move the time back into the earlier step: when the author +discovers a problem is part of what the benchmark measures. + ## Headline numbers The headline row of every run, in this order, is what the next release compares against: diff --git a/docs/qa/studio-benchmark/baselines/2026-10-08-8fc50b76-a58626c8.md b/docs/qa/studio-benchmark/baselines/2026-10-08-8fc50b76-a58626c8.md new file mode 100644 index 00000000000..befabbb2bf7 --- /dev/null +++ b/docs/qa/studio-benchmark/baselines/2026-10-08-8fc50b76-a58626c8.md @@ -0,0 +1,109 @@ +# Baseline — 2026-10-08 · objectstack `8fc50b76` · objectui `a58626c8` + +The first run of [the scenario](../SCENARIO.md), scored by [the rules](../SCORING.md). It is the +comparison point for the next release's run: same script, fresh boot, same sheet. + +## Run + +| field | value | +|---|---| +| date (UTC) | 2026-10-08, 03:45–04:11 | +| run type | **agent** (a Claude Code cloud session driving Chromium through Playwright over CDP; ref-targeted clicks and real keyboard input, no DOM value injection). Wall times are agent times — see SCORING.md, *Agent runs vs human sessions* | +| objectstack commit booted | `8fc50b7647d30db2a0837877cf251c1163a3239e` (`main`) | +| objectui commit | `a58626c88dc85954bd0af24f16ebb69454c03eee` — `.objectui-sha` and the console stamp `packages/console/dist/.objectui-sha` agree (built with `pnpm objectui:build`) | +| boot line | `OS_PORT=41873 pnpm -C …/examples/app-showcase exec objectstack dev --ui --seed-admin -p 41873 -d file:/tmp/…/run1/data.db` (fresh database) | +| browser / viewport | Chromium 141.0.7390.37, headless, 1440×900 | +| author identity | seeded platform admin `admin@objectos.ai`, form sign-in | +| end-user identity | `tech1@example.com`, minted with `POST /api/v1/auth/admin/create-user` (role `user`), password changed through the console's forced change-password screen | +| setup time (boot → signed in) | not scored (sign-in 8 s) | + +## Headline + +```text +completed 8/8 · total 1511 s · 16 red errors · 13 failed writes · 10 code-shaped entries · 0 dead ends +``` + +Every step finished in the console, so the dead-end count is 0 — but only because typing JSON and CEL +into console fields is counted as *code-shaped*, not as a dead end (SCORING.md). Two steps needed +rework the script does not name: granting the end user access to the new object (8a), and +rewriting the validation rule the condition builder produced (8b). Both are timed inside step 8, +where they were discovered. + +## Per step + +| # | step | result | time (s) | red errors | failed writes | code-shaped | oracle evidence | +|---|---|---|---|---|---|---|---| +| 1 | package Repair Center | completed | 39 | 0 | 0 | 1 | `GET /api/v1/packages/com.acme.repair` → `writable: true`, namespace `repair` derived from the id | +| 2 | object Repair Ticket + 5 fields | completed | 222 | 3 | 0 | 4 | `GET /api/v1/meta/object/repair_ticket?state=draft&package=com.acme.repair`: `name` text, `status` select with `new` / `in_progress` / `done`, `due_date` date, `problem_description` textarea, `technician` lookup → `sys_user` | +| 3 | group the form | completed | 157 | 0 | 0 | 0 | same draft read: `fieldGroups` *Ticket* / *Details*; name, status, due date, technician in the first, problem description in the second | +| 4 | validation: due date required when Done | completed in draft — **its runtime half failed, repaired in 8b** | 106 | 0 | 0 | 1 | draft `validations[0]` = `record.status == 'done' && !record.due_date`, events insert + update. After publish a forged create answered `400` *could not be evaluated (runtime: no such overload: !null)* instead of the rule's message | +| 5 | automation: notify technician when Done | completed | 494 | 11 | 12 | 3 | flow draft: start `record-after-update` on `repair_ticket`, condition as typed, notify node with `recipients: ["{record.technician}"]`, edges start → notify → end, `_diagnostics.valid: true` | +| 6 | app with navigation | completed | 22 | 0 | 0 | 0 | `GET /api/v1/meta/app/repair_center?state=draft…` → `navigation: [{type: object, objectName: repair_ticket}]` | +| 7 | publish | completed | 48 | 0 | 0 | 0 | `POST /api/v1/packages/com.acme.repair/publish-drafts` → 200; object, flow and app read back published | +| 8 | end user: create, move to Done, notification arrives | completed after 8a + 8b | 423 | 2 | 1 | 1 | record `status: done`, `due_date: 2026-10-20`; `GET /api/v1/data/sys_inbox_message` as the technician → one row, title *Ticket Leaking tap in room 204 is Done*; the console also toasted it live | +| 8a | ↳ grant end-user access (unscripted) | completed | 114 | (1, counted in 8) | 0 | 0 | Studio → Access: permission set *Repair Technicians* with CRUD on Repair Ticket, published; Setup → Users → Grant permission set → `POST /api/v1/data/sys_user_permission_set` 201 | +| 8b | ↳ repair the validation rule (unscripted) | completed | 95 | (1, counted in 8) | 0 | (1, counted in 8) | rule rewritten in Expression mode to `record.status == 'done' && record.due_date == null`, republished; forged create → `400` *Set a due date before marking the ticket Done.* | + +Elapsed from step 1's first gesture to step 8's oracle: 1559 s (the 48 s difference to the total is +the gap between steps). Step times include the agent's own reading of each screen. + +## Red errors (verbatim) + +Each row is one red element shown after one author gesture. Long texts are cut after their first +sentence; the full text is the banner's own. + +| n | step | verbatim text | where shown | class | card | +|---|---|---|---|---|---| +| 1 | 2 | MetadataClient.save refused this object metadata write: the field `status` is a `select` with no options: it carries no `options` key and no `picklist`, so it offers nothing to choose and nothing to check a stored value against. … | object designer banner, right after choosing *Selection · Picklist* | intermediate-state | objectstack-ai/objectui#11786 | +| 2 | 2 | MetadataClient.save refused this object metadata write: the field `status` is a `select` with no options: it carries an empty `options` list and no `picklist`, … | same banner, after typing the first option's label before its value | intermediate-state | objectstack-ai/objectui#11786 | +| 3 | 2 | MetadataClient.save refused this object metadata write: the field `technician` is a `lookup` and carries no `reference` key at all, so it names no object to link to. … | same banner, right after choosing *Relation · Lookup* | intermediate-state | objectstack-ai/objectui#11786 | +| 4 | 5 | • nodes.2.config.objectName — This `create_record` node's config leaves out `objectName`, which the create_record contract requires. … | flow designer banner, after clicking the **+** on the start → end edge (it inserts a `create_record` node without asking) | intermediate-state | objectstack-ai/objectui#11786; the unasked node type is a new finding (report) | +| 5 | 5 | • nodes.3.config.title — A notify node needs one content source: inline `title` (+ optional `message`), or a `template` reference … Neither was given, so there is nothing to deliver. | same banner, after adding *Notify* from the palette | intermediate-state | objectstack-ai/objectui#11786 | +| 6 | 5 | • edges.0.target — Edge `e1` (`edges[0]`) has `target: 'node_1'`, which is not a node of the flow's top-level graph. … (three such bullets) | flow designer banner, after *Remove node* on the inserted `create_record` | product-defect | objectstack-ai/objectui#11772 | +| 7 | 5 | Edge target "node_1" does not exist. | red chip on the canvas | product-defect | objectstack-ai/objectui#11772 | +| 8 | 5 | Edge source "node_1" does not exist. | red chip on the canvas | product-defect | objectstack-ai/objectui#11772 | +| 9 | 5 | Edge source "node_1" does not exist. | red chip on the canvas (second edge) | product-defect | objectstack-ai/objectui#11772 | +| 10 | 5 | • nodes.3.config.objectName — This `create_record` node's config leaves out `objectName`, which the create_record contract requires. … | flow designer banner, after *Add connected node* on Start (again a `create_record` without asking) | intermediate-state | objectstack-ai/objectui#11786 | +| 11 | 5 | Edge target "node_1" does not exist. | red chip, after removing the second auto-inserted `create_record` (from *Add connected node*) — the same defect, reproduced | product-defect | objectstack-ai/objectui#11772 | +| 12 | 5 | • edges.0.target — … `target: 'node_1'`, which is not a node of the flow's top-level graph. … | flow designer banner, same gesture as 10 | product-defect | objectstack-ai/objectui#11772 | +| 13 | 5 | • nodes.2.config.title — A notify node needs one content source: … | flow designer banner, after re-adding *Notify* connected from Start | intermediate-state | objectstack-ai/objectui#11786 | +| 14 | 5 | • nodes.1.config.title — A notify node needs one content source: … | same banner, after removing the orphaned End (node indices shift) | intermediate-state | objectstack-ai/objectui#11786 | +| 15 | 8 | You don’t have access — You don’t have permission to view these records. Contact your administrator if you think you should have access. | end user, Repair Center app, Repair Ticket list (red shield) | missing-step | new finding (report) | +| 16 | 8 | Validation rule 'validation_1' could not be evaluated (runtime: no such overload: !string) — write rejected. | end user, red toast on *Update* (status → Done, due date set) | product-defect | new finding (report); server half objectstack-ai/objectstack#22032 | + +## Failed writes + +| n | step | method · path | status · code | card | +|---|---|---|---|---| +| 1–12 | 5 | `PUT /api/v1/meta/flow/notify_technician_when_done?mode=draft&package=com.acme.repair` (12 times, 03:57:38–04:01:42) | 422 · `INVALID_METADATA` — the same intermediate states as red errors 4–14 (node without `objectName`, notify without `title`, edges naming a removed node) | objectstack-ai/objectui#11786, objectstack-ai/objectui#11772 | +| 13 | 8 | `PATCH /api/v1/data/repair_ticket/ID` (`status: done`, `due_date` set) | 400 · `VALIDATION_FAILED`, `reason: unevaluable`, `fault: runtime: no such overload: !string` | new finding (report) | + +No publish call failed: all three `POST /api/v1/packages/com.acme.repair/publish-drafts` answered 200. + +## Code-shaped entries + +| n | step | field | kind | card | +|---|---|---|---|---| +| 1 | 1 | New Package → **Package ID** `com.acme.repair` — not derived from the display name, reverse-domain required | machine-name | new finding (report) | +| 2–4 | 2 | Status → **Picklist values** `new`, `in_progress`, `done` — the value is not derived from the label; a label alone leaves the field option-less (red error 2) | machine-name | new finding (report) | +| 5 | 2 | Technician → **Related object** `sys_user` — free text with a browser suggestion list of `Label (machine_name)`; the stored value must be the machine name | machine-name | new finding (report) | +| 6 | 4 | Condition builder → **value** `done` for *record.status equals* — free text; typing the label `Done` yields `record.status == 'Done'`, a rule that never fires | machine-name | new finding (report) | +| 7 | 5 | Start node → **Object** `repair_ticket` — free text with a suggestion list of machine names only | machine-name | new finding (report) | +| 8 | 5 | Start node → **Entry condition**, Expression mode: `record.status == 'done' && previous.status != 'done'` — the builder offered only `previous` as a subject while the object was an unpublished draft | cel | new finding (report) | +| 9 | 5 | Notify node → **Advanced (JSON)** `{"recipients": ["{record.technician}"]}` — the form has no recipients field | json | objectstack-ai/objectui#11788 | +| 10 | 8b | Validation → **Expression** `record.status == 'done' && record.due_date == null` — the builder has no *is null* operator, and its *is empty / false* is the defect in red error 16 | cel | new finding (report) | + +## Dead ends + +None. Every step finished in the console. + +## Warnings and notes + +- **Form groups (step 3):** renaming a group in *Group properties* saved the label (`fieldGroups[].label` read back *Ticket* / *Details*) but the canvas header kept showing *New group*; the stored keys are `new_group` / `new_group_2`. Observed in-session, not re-checked after a reload. +- **Flow designer (step 5):** the edge **+** and the node's *Add connected node* both insert a `create_record` node without offering a type; the node inspector's *Node Type* list does not contain `notify`, so the inserted node cannot be turned into the one needed; and there is no gesture to connect two existing nodes. The way through was: select Start → palette → Notify (connected from the selection), delete the orphaned End, select Notify → palette → End. +- **Flow designer (step 5):** the toolbar kept reading *Trigger: autolaunched* after the Start node was set to *Record updated*; the stored flow `type` stays `autolaunched`. The flow still fired on the update (step 8). +- **Condition pickers (steps 4, 5):** subjects are shown as machine paths (`record.status`), not field labels. +- **Publish advisories (amber, not counted):** `flow-draft-status-ambiguous` on the flow (step 7); `security-private-no-readscope` on the permission set (8a). +- **End user (step 8):** the console's background reads answer 403 for the end user (`/api/v1/meta/_drafts`, `sys_activity`, `sys_comment`), and the record panel shows *You don't have permission to view activity / comments on this record* on the user's own ticket. Not red; not counted. +- **Vocabulary:** the task's *long text* is *Text · Text Area*; *picklist* is *Selection · Picklist* in the type list but `SELECT` on the canvas. +- **Driver note:** typing digits into the native date input on the create form did not set the value (an automation-input artefact — the edit form's date input took `fill`); not scored.