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]: Keep risky scaffold acknowledgements generic across extensions #345
PR #343 correctly makes an unprotected writable store scaffold refuse by default. Its implementation adds the store-specific --allow-public-write flag to core CLI parsing and the store-specific allowPublicWrite/publicWrite fields to core's ScaffoldRequest/ScaffoldResult contracts.
The safety outcome is right, but this establishes a costly pattern: every future extension risk (email delivery, external writes, destructive import, public webhook, and so on) could add another core flag and result field. Agents would need to learn framework-specific exceptions instead of one discoverable acknowledgement flow, and core would gradually own extension policy vocabulary.
Proposed behavior and alternatives
Keep the refusal-before-write behavior, explicit command-history acknowledgement, prominent generated access note, and rejection of unused acknowledgements. Make the transport generic instead: a repeated, qualified acknowledgement channel (for example, an extension-declared store:public-write identifier) passes an opaque set to scaffolds; the extension declares/consumes the acknowledgement and core rejects any unconsumed value. The refusal must print the exact next command and a short risk explanation, so an agent discovers the acknowledgement only when it reaches that risk.
routeNotes or a similarly generic extension-authored notice may remain if core only renders it and does not interpret its policy meaning. Do not put acknowledgement state in project YAML, auto-add access control, or weaken hand-authored public routes.
The alternative—retaining --allow-public-write as a one-off—is acceptable only if core explicitly commits to not adding analogous extension-specific flags. The generic route is preferable before the first precedent lands.
Fixed in #354: --ack : (repeatable) replaces the store-specific --allow-public-write. Core passes an opaque acknowledgements set to scaffolds, scaffolds report what they consumed, and core rejects any acknowledgement no scaffold consumed, before writing anything. A refusing extension throws an error carrying its acknowledgement id and core prints the exact re-run command. --allow-public-write is removed, not aliased: no published core ever accepted it. Note: store 0.4.2 on npm still reads the old request field, so the store needs its next release (tracked in #346).
Activity
jimhoyd commentedon Sep 20, 2026
Progress: an agent has started on this; a PR will be linked here when it opens.
Make risky scaffold acknowledgements generic: repeatable --ack extens…
jimhoyd commentedon Sep 21, 2026
Progress: PR #354 opened: repeatable --ack : replaces --allow-public-write; scaffolds declare what they consume and core rejects unconsumed acknowledgements.
Make risky scaffold acknowledgements generic: repeatable --ack extens…
jimhoyd commentedon Sep 21, 2026
Fixed in #354: --ack : (repeatable) replaces the store-specific --allow-public-write. Core passes an opaque acknowledgements set to scaffolds, scaffolds report what they consumed, and core rejects any acknowledgement no scaffold consumed, before writing anything. A refusing extension throws an error carrying its acknowledgement id and core prints the exact re-run command. --allow-public-write is removed, not aliased: no published core ever accepted it. Note: store 0.4.2 on npm still reads the old request field, so the store needs its next release (tracked in #346).