Repository navigation
Commit eadb40a
committed
test(api): vary the conversation in the same-task cache-key stability test
The same-task stability test reused one messages array for both
sdk-task-one calls, so a prompt_cache_key derived from conversation
content would have passed: identical input cannot distinguish a
task-scoped key from a conversation-derived one.
The second turn now carries a follow-up exchange and the test asserts
its input differs while the key holds.
Mutation proof: a key that appends the input length once the
conversation exceeds one item is killed by this test (1 failed | 83
passed), while the pre-change body passes that same mutant 84/84.1 parent 8d1d1e4 commit eadb40a
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
1516 | | - | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
1517 | 1531 | | |
1518 | 1532 | | |
1519 | 1533 | | |
1520 | 1534 | | |
| 1535 | + | |
1521 | 1536 | | |
1522 | 1537 | | |
1523 | 1538 | | |
| |||
0 commit comments