Skip to content

Make the managed model picker OpenWork-only with contextual upgrades - #4629

Closed
reachjalil wants to merge 4 commits into
feature/luna-weekly-allowancefrom
feature/managed-model-discovery
Closed

reachjalil wants to merge 4 commits into
feature/luna-weekly-allowancefrom
feature/managed-model-discovery

Conversation

@reachjalil

Copy link
Copy Markdown
Member

Stack

Parent: #4620 (feature/luna-weekly-allowance). This is the picker/discovery follow-up; allowance accounting, subscriptions and installation policy are unchanged.

Changes

  • Open the composer picker directly to searchable models, with useful, catalog-owned recommendations for Luna, GPT-6 Astra, Kimi K2.7 Code and GLM-5.2.
  • In the signed-in managed-model session flow, show only OpenWork-hosted models. OpenCode and other provider entries are excluded from current/favorite/recent rows, search and the full managed picker. Preserve stored provider configurations, selections and favorites; default/provider-settings and legacy flows remain available.
  • Show Free / Upgrade / Included before selection. Keep effort controls accessible without making them a mandatory step in choosing a model.
  • Paid selections open a model-specific offer with task guidance and plan allowance details. Unknown prices are not guessed. An access upgrade requires explicit model confirmation; it never submits the draft or runs a task.
  • Keep “Use my own provider…” as a quiet, direct setup link, not a documentation-only detour. Onboarding keeps “Complete and open the app” primary and moves BYOK below it.
  • Register the exact Astra alias confirmed by public OpenRouter model discovery. Discovery metadata is filtered against available models and is not execution authority. Free Luna captions reflect the free route's text/tool capabilities rather than advertising paid-only inputs.
  • Regenerate the SDK for the optional catalog/plan fields.

Verification — Incomplete

Current head: bb42760deda01683f702d4340b5231eda7b36c02.

Passed focused checks: 38 UI/model-picker tests and app typecheck. During implementation, Den Web checks (11), real-DB catalog/access checks (7), inference tests (94), catalog validation and SDK consistency/type checks also passed.

Runtime history: OPENWORK_EVAL_REF=c582cf62e1407939f182ad07e9cdfe5cc4773cc1 pnpm evals:e2e composer-model-picker-no-subscribe-promo passed one complete journey, zero failures/skips, placement: daytona (daytona CLI authenticated). It covered real free enrollment/catalog, selection labels, contextual offers, preserved drafts/favorites/effort, direct provider setup and fixture-reported paid/non-admin transitions without checkout or generation.

The subsequent OpenWork-only filtering change is covered by focused tests and an updated journey, but its exact-head end-to-end run was interrupted at the requester's direction. No passing runtime verdict is claimed for the current head. Further lengthy validation is deferred.

Reproduction when requested: OPENWORK_EVAL_REF=bb42760deda01683f702d4340b5231eda7b36c02 pnpm evals:e2e composer-model-picker-no-subscribe-promo.

Paid/non-admin transitions in the UI journey are explicit response fixtures, not real purchases. Live Astra generation, checkout, rollout and the changed final-onboarding screen's full regression journey remain unverified.

Boundaries

  • Ready for review, not merged or released.
  • No production flags, credentials, provider keys, billing or allowances changed.
  • Native Git deployments for feature/managed-model-discovery are disabled in all four Vercel project configs; the branch has zero deployment records. No Vercel deploy command was run.
  • Existing parent-stack work and the separate anonymous-Luna proposal are untouched. Reconcile and re-prove the stack after parent rebases before merge consideration.

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