Skip to content

chore(scripts): rerecord-all-aimock.sh driver#498

Merged
blove merged 1 commit into
mainfrom
claude/rerecord-all
May 20, 2026
Merged

chore(scripts): rerecord-all-aimock.sh driver#498
blove merged 1 commit into
mainfrom
claude/rerecord-all

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 20, 2026

Summary

Adds `scripts/rerecord-all-aimock.sh` — driver that loops the generic recorder over every cap with a recorded fixture. Use when a backend system prompt or tool definition changes and you need to refresh every cap's fixture.

Behavior

  • Walks `cockpit/*/angular/e2e/fixtures/.json` to discover aimock-eligible caps.
  • For each cap, looks up per-cap prompts (defaulting to "Hello"); multi-prompt caps use `|`-separator.
  • `c-interrupts` delegates to its special-case interrupt-resume script.
  • All others use the generic `scripts/record-aimock-cap.sh`.
  • Reports any failed caps at the end with non-zero exit.

Per-cap prompts hardcoded

Cap Prompts
c-tool-calls "What's the status of UA123?"
c-subagents "Plan a trip from LAX to JFK"
c-generative-ui "Show me a dashboard…" + "Filter to only the cancelled…"
c-a2ui "I want to fly LAX to JFK" + "I want to fly SFO to SEA"
streaming "Tell me one quick fact about Angular signals…"
(default) "Hello"

Identified during

Post-Task-#4 e2e audit (item #9).

Test plan

  • CI passes (no source code changes).
  • Reviewer: optional — run locally with `OPENAI_API_KEY=sk-... bash scripts/rerecord-all-aimock.sh` to verify it walks all caps.

🤖 Generated with Claude Code

Loops scripts/record-aimock-cap.sh (and the special-case
record-c-interrupts.sh) over every cap with a recorded fixture under
cockpit/*/angular/e2e/fixtures/. Per-cap prompts hardcoded for caps
needing specific inputs (c-tool-calls, c-subagents, c-generative-ui,
c-a2ui, streaming); everything else defaults to "Hello".

Use when a backend system prompt or tool definition changes and the
team needs to refresh every cap's fixture to match. Without this,
fixture drift accumulates silently — a backend change can leave the
recorded fixture stale (still passing CI by virtue of the prompt
matching, but not exercising the new backend behavior).

Identified during the post-Task-#4 e2e audit (item #9).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 20, 2026 10:47pm

Request Review

@blove blove merged commit 3df6226 into main May 20, 2026
19 checks passed
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