Repository navigation
fix(core): plan-feature offers booking and credits recipes only on their own terms (#957) - #981
Merged
Merged
Conversation
…eir own terms (#957) An approval goal matched no recipe's own planner terms, so the extension fallback offered every recipe built on the store or auth extension, with the store and auth surface words (own, submit, approve, reject, reviewers) as their matches. Those words are inherited by every recipe on the extension and are not distinctive. The fallback now offers only the general recipe (fewest services) of the extension whose surfaces the goal named most, so an approval goal plans store-crud alone. The tag fallback also needs one distinctive tag (carried by at most two recipes), so generic tags such as store, auth, json or extension never select a recipe. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Part of #957 (the plan-feature half; the approval recipe itself is left for a later change).
Cause
An approval goal matched no recipe's own planner terms, so the extension fallback offered every recipe whose
servicesname the store or auth extension (store-crud, protected-download, store-booking, store-credits), each "matching" the store and auth surface words (own, their, submit, approve, reject, reviewers). Those words were never in the booking or credits tags: they are inherited from the extension surfaces, so every recipe on the extension carries them.Change
store-crudfor the store). Specialised recipes (store-booking,store-credits) are offered only on their own planner terms (booking/slot/interval; credit/wallet/transfer/balance).json,store,auth,extension) never select a recipe.Evidence
applicable.recipes: [store-crud]with no "declarative booking/credits" outline; auth and store are still required and the transitions/membership/readers surfaces still listed.npm run verifyandnpm run test:packagepass locally (no budget change needed: 1048662 packed bytes).Limitations
The fallback no longer offers protected-download for an approval goal either (auth was the less-named extension). No approval recipe exists yet, so an approval plan still names store-crud plus the store surfaces.
🤖 Generated with Claude Code