[pull] main from cobusgreyling:main#52
Merged
Merged
Conversation
* Add prompt-caching cost estimate to loop-cost loop-cost currently assumes every token costs full price on every run, with no way to model the discount from prompt caching (STATE.md, skills, and system prompt content that's identical across scheduled invocations of the same pattern). This adds: - stable_fraction to each pattern's cost block in registry.yaml (portion of report/action tokens that's stable, cacheable content) - a --with-caching flag on loop-cost that applies Anthropic's published cache-read discount (~10% of base input cost) to the stable portion, reporting the token and percentage reduction alongside the existing scenarios Patterns without stable_fraction set are unaffected (fully backward compatible — the caching scenario is simply omitted). * Add stable_fraction to registry schema, remove stray file
loop-cost's --with-caching flag (added in a prior PR) reports a discounted 'caching' scenario alongside noop/report/action/realistic, but loop-context's --budget-from-pattern had no way to resolve a budget from it. This adds 'caching' as a valid --budget-scenario, passes --with-caching through to loop-cost when it's selected, and gives a clearer error pointing at registry.yaml's stable_fraction when a pattern doesn't support it yet. Depends on the stable_fraction/--with-caching work in loop-cost.
Daily triage failed after #321: tsc cannot resolve @cobusgreyling/readiness-core when only loop-audit is npm ci'd. Match audit.yml / release-loop-audit pattern. Co-authored-by: Cobus Greyling <cobusgreyling@Cobuss-MacBook-Pro-2.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )