fix: point caching at setup-kapi's parse cache and update the kapi up examples - #9
Merged
Merged
Conversation
… examples The README's caching recipe restored .kapi/cache, a path kapi 1.2 never writes, so it cached nothing. setup-kapi v1.5.0 already carries kapi's parse cache (.kapi/work/cache/docs) with its cache-tm input, on by default, and the rest of .kapi/work changes what status, check --ship and up report when restored. The Caching section now says to rely on setup-kapi and to cache nothing else. The kapi up example passes the credential a run needs: the server token for a recipe with a bowrain: block, or a provider key for a local run. The README names the recipe's bowrain: block, the current gates, and the unit state kapi commit writes under .kapi/state/. The tests move to kapi 1.2.0-rc32 and the fixture recipe to kapi.yaml, and a save and restore job pair checks the parse cache setup-kapi carries for the action. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRid8i4qnuNfE7Lio73Uu4
Contributor
Author
|
Evidence from real runs. This branch: Test run 34952598537 passed all nine jobs with kapi Must fail,
The recipe on |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Merge after kapi 1.2.0 is published. The
kapi upexample relies onneokapi/setup-kapi@v1installing a release withkapi up, which itslatestdefault does only once 1.2.0 is stable.Summary
.kapi/cache, a path kapi 1.2 never writes, so it cached nothing. The section now sends callers to setup-kapi'scache-tm(on by default for a project with akapi.yaml, since setup-kapi v1.5.0), which carries kapi's parse cache at.kapi/work/cache/docs. It also says to leave the rest of.kapi/work/out of any cache.store.db, the unit state) changes whatkapi status,kapi check --shipandkapi upreport when restored, as fix: cache the parse cache kapi 1.2 writes, not retired paths setup-kapi#8 showed.kapi upexample. It passes the credential a run needs:auth-tokento setup-kapi for a recipe with abowrain:block, orANTHROPIC_API_KEYfor a local run. Without either,kapi upon 1.2.0-rc32 exits 1 withno saved credentials found. The README also names the recipe'sbowrain:block (notserver:), the current gates (voice, terminology, rule-based checks), and the unit statekapi commitwrites under.kapi/state/(not.kapi-state.json).KAPI_VERSIONmoves from1.2.0-rc29to1.2.0-rc32, and the fixture recipe fromfixture.kapitokapi.yaml.test-parse-cache-saveandtest-parse-cache-restorejobs run the action through setup-kapi withproject-dir: test/fixture. They check that the parse cache is where setup-kapi saves it, that nothing is at.kapi/cache, and that a later job finds the restored cache before the action runs.Evidence
Local, kapi 1.2.0-rc32 on the action's own fixture:
status,check --ship,up --planandup --jsonnever create.kapi/cache.kapi.yamlrecipe they write.kapi/work/cache/docs/{index.db,parts-*.log}and.kapi/work/store.db.kapi up --plan --jsonstill reportsmissingTarget,tmExact,aiRemainingandtokenEstimate, so the plan outputs keep working.The must-fail run of main's README recipe and the green run of this branch are linked in a comment below.
Proposed tag
v1.5.1. No input, output or step of the action changes; this is a documentation and test fix.Notes
action.ymlstill names "a brand, terminology, QA, or coverage gate" in its gate-unmet summary. It is left as is here, because changing the action's output text belongs in its own release.🤖 Generated with Claude Code
https://claude.ai/code/session_01VRid8i4qnuNfE7Lio73Uu4