Repository navigation
Require --allow-public-write for an unprotected store scaffold (refs #338) - #343
Conversation
…ts (refs #338) Co-Authored-By: Claude Sonnet 5 <[email protected]>
jimhoyd
left a comment
There was a problem hiding this comment.
The safety behavior is right: a no-auth writable scaffold must refuse before it writes and print the exact safe/explicit choices.
One AI-first boundary concern before this sets a precedent: --allow-public-write, ScaffoldRequest.allowPublicWrite, and ScaffoldResult.publicWrite put store-specific policy vocabulary in core. Future extension acknowledgements would then add more one-off CLI flags and fields for agents to learn.
Please consider the generic acknowledgement transport proposed in #345: core passes and validates only qualified opaque acknowledgements; an extension declares and consumes its own store:public-write acknowledgement, supplies the refusal text, and can render a generic notice. This retains the current UX and safety properties without making core understand extension-specific risks.
Refs #338 (does not close it).
init --with store/--with ui,storewithoutauthnow refuses before writing anything, naming both ways forward (addauth, or pass--allow-public-write).ScaffoldRequest.allowPublicWrite; the store decides policy. Scaffolds reportpublicWriteand optionalrouteNotes; core rejects the flag when no scaffold used it (auth composed, no store, no --with). Core adds no auth/UI and infers no policy.--with ui,auth,store(any order) is unchanged and needs no flag; its README says signed-in only.Package audit: core 428 entries (cap 440, unchanged), ui 356904 unpacked (unchanged), store 12 files.
🤖 Generated with Claude Code