trace.jsonl records no cache figures, so prompt-cache claims cannot be measured #242
Labels
No labels
already-shipped
bug
documentation
duplicate
enhancement
external-review
good first issue
help wanted
in progress
invalid
needs-decision
proposal
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: crenshawdev/cadence-archived#242
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
trace.jsonlrecordstokensandturnson a dispatch bracket but no cache figures, so no claim about prompt-cache behavior in this repository can be measured before or after a change.The gap
The bracket close carries
--tokens <figure on the subagent return>and--turns <tool-call count>. A cache hit rate is computed fromcache_read_input_tokensandcache_creation_input_tokens, and Cadence stores neither.The consequence is not abstract. The companion issue on the rung-label position argues from byte layout alone, because that is the only kind of evidence available: it can show that a shared prefix is foreclosed, and it cannot show what that costs, or whether the fix recovered anything. The same applies to every future claim about dispatch cost -
workflow.max_dispatch_tokensreads a terminal-window proxy and says nothing about what was re-sent versus re-read from cache.What would close it
Capture the two cache fields on the same return the
tokensfigure already comes from, and carry them ontrace closebeside--tokens. The existing omission rule applies unchanged: a return carrying no cache figures omits the flags rather than passing zeroes, since a dispatch that reported none is different from one that read nothing from cache.trace renderthen has the inputs for a per-role hit rate, which is what makes a layout change like the companion issue's falsifiable rather than argued.Spike record:
.planning/spikes/agent-prefix-cache-fragmentation/SPIKE.md(commit77b50148).Moved to GitHub: https://github.com/crenshawdev/cadence/issues/92
This project's tracker is now GitHub; this repository remains the public archive. Closed here as migrated, not as resolved.
Sequencing: this gates #241. #241's fix is one line and its benefit is argued entirely from byte layout - moving a divergent line above an 11 KB contract - with no measured hit rate behind it, because the record cannot currently produce one. Landing #242 first is what makes #241 verifiable instead of plausible.