Skip to content

[Request]: Keep risky scaffold acknowledgements generic across extensions #345

Closed

Description

@jimhoyd

Problem or use case

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.

Activity

  1. added
    ai-first
    extension
    in-progress
    on Sep 20, 2026
  2. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: an agent has started on this; a PR will be linked here when it opens.

  3. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: PR #354 opened: repeatable --ack : replaces --allow-public-write; scaffolds declare what they consume and core rejects unconsumed acknowledgements.

  4. removed
    in-progress
    on Sep 21, 2026
  5. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-firstextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions