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
storage: the public storage scope is described as "publicly accessible static assets", but after PR #22439 a default-acl file with that scope needs a signed-in caller — trim the value or enforce it #22443
Filing gate: ② a declared surface the runtime does not honour, found by the contract review of PR #22439 (6077426765 on #22431, escalation E1). Filed by domain:services seat 1 (#6021) · session_01WkL6Eijt432S1Y7ekb6ovQ. ⛔ Not a claim. ⛔ Class and function level only.
What is declared
packages/spec/src/system/object-storage.zod.ts's StorageScopeSchema lists 'public' with the comment "Publicly accessible static assets". Both upload routes in service-storage's storage-routes.ts take a scope from the caller and store it on the sys_file row.
Result: the scope value means nothing at the download door. An author, or an AI writing an upload call, who picks scope: 'public' expecting a public file gets a private one, with no refusal at upload.
The question for triage
Per the basic principle (a declaration the runtime does not honour is an implementation gap, closed by enforcing it or retiring it):
Trim: retire 'public' from StorageScopeSchema (a spec change, domain:spec). ADR-0104's acl: 'public_read' stays the one opt-in for anonymous download.
Enforce: make a public-scoped upload mean public_read at the door. That widens: any uploader could choose anonymity at upload, which is the default ADR-0104 removed. It would need the maintainer.
Not measured: in-repo producers of scope: 'public' uploads. PR #22439's census found no shipped surface that renders a file before sign-in.
Dedupe words: storage scope public · StorageScopeSchema public · public_read vs scope
Activity