Commit 729628c
chore(recorders): consolidate per-cap record scripts to the generic recorder (#496)
Five per-cap record scripts removed in favor of scripts/record-aimock-cap.sh
(shipped in PR #482). The generic recorder reads cap metadata from the
capability registry and drives any normal LLM-call → tool_call → continuation
flow:
Deleted (5):
- cockpit/chat/generative-ui/angular/e2e/scripts/record-c-generative-ui.sh
- cockpit/chat/a2ui/angular/e2e/scripts/record-c-a2ui.sh
- cockpit/chat/subagents/angular/e2e/scripts/record-c-subagents.sh
- cockpit/langgraph/streaming/angular/e2e/scripts/record-streaming.py
- cockpit/chat/tool-calls/angular/e2e/scripts/record-c-tool-calls.py
The 2 Python recorders predated the shell pattern entirely; they
hand-instantiated ChatOpenAI and saved responses directly, drifting from
real cap behavior over time. The generic recorder runs the actual cap
backend through aimock --record, giving authoritative captures.
Kept (1) as documented special case:
- cockpit/chat/interrupts/angular/e2e/scripts/record-c-interrupts.sh
c-interrupts requires interrupt-resume handshake (interrupt() inside
ToolNode pauses the run with status=interrupted; the client must POST
command.resume to continue). The generic recorder doesn't drive that
two-phase dance — it treats `interrupted` as terminal. Header block in
the kept script now explains why it's the special case.
Identified during the post-Task-#4 e2e audit (item #4).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7077ed0 commit 729628c
6 files changed
Lines changed: 14 additions & 683 deletions
File tree
- cockpit
- chat
- a2ui/angular/e2e/scripts
- generative-ui/angular/e2e/scripts
- interrupts/angular/e2e/scripts
- subagents/angular/e2e/scripts
- tool-calls/angular/e2e/scripts
- langgraph/streaming/angular/e2e/scripts
This file was deleted.
Lines changed: 0 additions & 170 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
9 | 23 | | |
10 | 24 | | |
11 | 25 | | |
| |||
0 commit comments