Skip to content

Prima: verdicts, status --purpose history, step-based video editing, help - #317

Merged
DavertMik merged 4 commits into
mainfrom
prima-verdict
Nov 23, 2026
Merged

DavertMik merged 4 commits into
mainfrom
prima-verdict

Conversation

@DavertMik

@DavertMik DavertMik commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Verdicts and status

  • check and do open ### Result with verdict: PASSED | FAILED | INCONCLUSIVE — <reason>. INCONCLUSIVE when the run settled nothing about the app (stopped before finishing, nothing verified, model call failed, prima crashed). Stored in the purpose log.
  • status <hash> replays the full recorded output; old records fall back to page + artifacts.
  • status --purpose <text>: current page, then numbered history with verdict, first failed step and hash. Works with no browser open.
  • Console errors raised during a step are listed under that step.
  • --json on every command that prints a result.
  • check without --expected splits the scenario into separate outcomes (one small extra model call).
  • State aria files keep their latest non-empty capture.

Video editing by step

  • Action publishes each execution's timed steps, console messages and requests on the data log; while recording, prima saves them to timeline.json beside video.webm (both do and check).
  • video --list numbers each command's steps with their time and errors.
  • video --steps 0002=1,3-5 / 0002=@4.0-9.5 keeps chosen steps or a span; without --only the named commands are joined.
  • --step-time 1s speeds up any longer step to fit.
  • --overlay console-errors|console-logs|network|network-errors (repeatable) shows a step's events over that step only.
  • Skill gains a "Record video" section: a video is evidence of a working feature or the path to a defect, without automation trouble.

Checked on a real recording: step times line up with the video, and cuts shorten it as expected.

Help

  • Bare prima and prima --help open with the typical run: do / check with --purpose and --video, then video and status --purpose; both point to <command> --help.
  • Help names the cli the way it was launched: prima, prima-cli, explorbot prima, npx prima-cli or bunx prima-cli, including the Usage: line. Under Bun a resolved prima symlink falls back to the shell's $_, which fish does not set.

Not covered

  • Events are attributed to the last step of an execution, not the exact moment.
  • Requests that never got a response, and requests between actions, are not captured.
  • Step-range parsing now exists in three places (test-command.ts, rerun-command.ts, video-timeline.ts); merging them is left for a separate change.

Tests

  • bun test boat/prima (201) and tests/unit pass, except apibot-config "enables Langfuse from LANGFUSE_* env vars", which reads ~/.explorbot/.env locally and is unrelated.
  • bun test tests/integration/: 183 pass.

🤖 Generated with Claude Code

DavertMik and others added 4 commits November 22, 2026 00:21
…ideo offsets, --json

- check and do open ### Result with verdict: PASSED / FAILED / INCONCLUSIVE
- status <hash> replays the full recorded output; status --purpose lists the page and the purpose history
- console errors are attached to the step that raised them
- check steps carry @ns offsets into video.webm when recorded
- --json on every result-printing command
- check without --expected splits the scenario into separate outcomes
- state aria files keep their latest non-empty capture

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Action publishes each execution's timed steps, console messages and requests on the data log
- recordings keep a timeline.json; video --list numbers each command's steps with their time
- video --steps keeps chosen steps or a span in seconds; --step-time caps a step's length
- --overlay console-errors|console-logs|network|network-errors shows a step's events over that step only
- skill: what a video should show, and how to edit it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…video), point to <command> --help

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…xplorbot prima, npx or bunx

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavertMik DavertMik changed the title Prima: verdicts, status --purpose history, step-based video editing Prima: verdicts, status --purpose history, step-based video editing, help Nov 22, 2026
@DavertMik
DavertMik merged commit d37033d into main Nov 23, 2026
2 checks passed
@DavertMik
DavertMik deleted the prima-verdict branch November 23, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant