Commit 3e5c8ce
* fix(llm-agents): delete the flows three agent specs left behind (#1346)
`agent-max-iterations`, `agent-empty-refusal-response` and
`agent-model-connection-isolation` load the Simple Agent template and never
delete the flow they run on. That costs twice: an orphan `Simple Agent` per test
on the shared instance, and — because token attribution lives on the delete path
(#1197) — the tokens those runs spend reach the QA platform with no spec to claim
them.
Measured on the 2026-08-06 daily (run 31093877484): the run's `unattributed`
bucket is 4,120 tokens over 4 `claude-haiku-4-5` calls, and all of it comes from
three traces owned by two of these specs — `1027dfd2` (936) and `6676e05d` (918)
from `agent-empty-refusal-response`, `e7c60610` (2,266, 2 calls) from
`agent-max-iterations`. None of the three flow ids appears in any
`token-attrib-*.jsonl`, so no delete ever ran for them. The `attrib_cost` records
these specs did produce came from `loadTemplateByName`'s cleanup of the surplus
flows it creates: those never ran, carried no traces, and the attribution read
came back empty.
Wire each spec to the shared tracker (#1108) — capture the creation POST, delete
id-scoped in `afterEach`, never a delete-all sweep (#553). `cleanup()` derives the
attribution from the running test on its own (#1197 §1.1) and stays inert unless
the lane sets `TOKENS_ATTRIB`, so local runs and the PR lane are unaffected.
Also correct the same stale claim in all three specs and their docs:
`SimpleAgentTemplatePage.load()` does not wipe existing flows — the cross-worker
delete-all was removed in #553 — which is why the missing cleanup read as
intentional.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test(llm-agents): quarantine the max-iterations stop assertion against #1264
The PR lane went red on `agent-max-iterations` › "agent stops when max iterations
is reached", 3 of 3 attempts, with the agent answering the task normally instead
of returning `Model call limits exceeded: run limit (1/1)`. The bubble renders and
the locator resolves 34 times, so it is a content failure, not a timeout — the
signature #1264 has been open on since the 2026-08-04 daily.
Not this branch's diff: the same test fails identically on `origin/main`. What
changed is the SELECTION — touching this file put a spec the daily never runs
(`@regression`, never `@stable`) into the impacted-specs lane.
The file is serial, so that failure also skipped the `@stable` causal control —
the half that works, and the half this branch's cleanup change needed to exercise.
So a red here bought no coverage and cost the lane its verification.
Quarantine with `test.fixme`, the same treatment mcp-server.spec.ts (#1266) and
openai-compatible-provider-setup.spec.ts already carry, and record the measurement
where a reader will hit it: reproduced on 1.12.0.dev18 LOCALLY, off CI load, on
claude-haiku-4-5, claude-opus-5 and claude-opus-4-5 — which rules out the mid-run
backend wedge #1264's triage left open as a possible cover.
The causal control is deliberately NOT quarantined: on its own it proves only that
a high limit finishes, and it is what will show the pair working again. Lifting the
quarantine is #1264's call.
Checklist bullets move from `[x]` to `[~]` with the reason, in both §6.2 and §7.7.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Rafael <rafael@oriontech.me>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent a3f61e5 commit 3e5c8ce
7 files changed
Lines changed: 160 additions & 14 deletions
File tree
- docs/core-functionality/llm-agents
- tests/tests-automations/regression/core-functionality/llm-agents
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
| 354 | + | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
184 | 195 | | |
185 | 196 | | |
186 | 197 | | |
| |||
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
32 | 47 | | |
33 | 48 | | |
34 | 49 | | |
| |||
38 | 53 | | |
39 | 54 | | |
40 | 55 | | |
41 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
42 | 59 | | |
43 | 60 | | |
44 | 61 | | |
| |||
52 | 69 | | |
53 | 70 | | |
54 | 71 | | |
55 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
56 | 75 | | |
57 | 76 | | |
58 | 77 | | |
| |||
166 | 185 | | |
167 | 186 | | |
168 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
169 | 196 | | |
170 | 197 | | |
171 | 198 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
38 | 39 | | |
39 | 40 | | |
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 | + | |
41 | 69 | | |
42 | 70 | | |
43 | 71 | | |
| |||
Lines changed: 58 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
51 | 52 | | |
52 | 53 | | |
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 | + | |
54 | 82 | | |
55 | 83 | | |
56 | 84 | | |
| |||
123 | 151 | | |
124 | 152 | | |
125 | 153 | | |
126 | | - | |
127 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
128 | 158 | | |
129 | 159 | | |
130 | 160 | | |
131 | 161 | | |
132 | 162 | | |
133 | 163 | | |
134 | | - | |
| 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 | + | |
135 | 190 | | |
136 | 191 | | |
137 | 192 | | |
| |||
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 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 | + | |
102 | 126 | | |
103 | 127 | | |
104 | 128 | | |
| |||
0 commit comments