RFC: generic plugin proxy socket (two-tier registry); image gen = first consumer #3105
Reference in New Issue
Block a user
Delete Branch "rfc/image-gen-platform-metered"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Draft RFC (rev 2) for your review.
Re-scoped per your direction: image gen is uncapped, consumes platform credits via the existing platform proxy (which already does platform-managed billing); the plugin is a thin adaptor to the proxy. No per-plugin caps, key-injection, or attribution — the proxy/billing owns all of it.
Real work = extend the proxy with image routes + vendor handlers (OpenAI GPT Image 2, Gemini Nano Banana) + image SKUs in the price catalog + credit-debit. The plugin is trivial.
Cost-leak guard is now intrinsic: billed via finite credits, and any unpriced image model is rejected at the proxy (never the fail-open $0 that hid the opus leak).
5 open questions in §7 need your calls (proxy image extension point; Vertex vs Gemini-Developer-API; image pricing source; BYOK in v1 or defer; output form).
Won't build until approved. Repo name confirmed: molecule-ai-plugin-image-gen.
🤖 Generated with Claude Code
RFC: platform-metered image generation (entitlement, key injection, cap, attribution)to RFC: image generation via the platform proxy (credits-billed, no caps; plugin = thin adaptor)RFC: image generation via the platform proxy (credits-billed, no caps; plugin = thin adaptor)to RFC: generic plugin proxy socket (two-tier registry); image gen = first consumerDesign doc review. Generic two-tier socket is sound: capabilities=data, credential boundary stays server-side, anti-leak (fail-closed price gate + load-time fallback invariant) carried into the impl (CP #880, merged). LGTM.
Security review of the design. Two-tier split correctly keeps platform-metered curated (no key-exfil/billing-bypass/SSRF) and BYOK isolated. Trust model (org-scoped box cred, keys in CP) is correct. LGTM.