You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: shared: blocks may carry env and secrets (reverses #576) #1133
This repository repeats the same MCP_ENABLED_SKILLSenv binding across three routes. #576 asked for shared binding defaults and was declined: bindings stayed route-local so reviewers could see each route's requested authority.
Decision (owner, 2026-10-01): reverse #576. shared: blocks may carry both env and secrets.
Proposed behavior and alternatives
A route selecting a shared block with use: inherits that block's env/secrets declarations.
Bounds that keep the per-route visibility #576 protected:
Resolution: declarations are resolved at load time into each route. The resolved route is what the route hash, urlcode permissions (the requested grants), the operator policy's per-route revision pin, audit and routes/explain output all show, so every route's effective bindings stay visible and pinned per route.
Merge rule: a route's own env/secrets merge with the shared ones key by key, and a route-level entry with the same name wins.
What can't change: grants are still per route, and nothing about the operator policy's least-privilege model changes.
Docs and the schema must say this clearly. A test must show that adding a route to a shared block changes that route's requested grants and revision.
Activity
jimhoyd commentedon Oct 1, 2026
Taking this: Issues [37f079]
upgrade repairs the installed-file record, legacy request.body migrat…