Skip to content

fix(core): plan-feature offers booking and credits recipes only on their own terms (#957) - #981

Merged
jimhoyd merged 1 commit into
mainfrom
claude/plan-feature-approval-957
Sep 29, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/plan-feature-approval-957

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

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 services name 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

  • Extension fallback: surface words are not distinctive, so they select only the general recipe of the extension whose surfaces the goal named most (the recipe on that extension needing the fewest services: store-crud for the store). Specialised recipes (store-booking, store-credits) are offered only on their own planner terms (booking/slot/interval; credit/wallet/transfer/balance).
  • Tag fallback: besides two shared tags, one must be distinctive (IDF-style: carried by at most two recipes in the catalog), so generic tags (json, store, auth, extension) never select a recipe.
  • docs/TOOLING.md describes both rules.

Evidence

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

…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]>
@jimhoyd
jimhoyd enabled auto-merge (squash) September 29, 2026 22:00
@jimhoyd
jimhoyd merged commit 54270df into main Sep 29, 2026
22 checks passed
@jimhoyd
jimhoyd deleted the claude/plan-feature-approval-957 branch September 29, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant