Skip to content

Generic --ack extension:id for risky scaffold acknowledgements (refs #345) - #354

Merged
jimhoyd merged 1 commit into
mainfrom
feat/generic-scaffold-ack-345
Sep 21, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
feat/generic-scaffold-ack-345

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Refs #345 (does not close it).

What

  • Replaces --allow-public-write, ScaffoldRequest.allowPublicWrite and ScaffoldResult.publicWrite with a generic channel: repeatable --ack <extension>:<id> -> opaque ScaffoldRequest.acknowledgements; scaffolds list what they used in ScaffoldResult.acknowledged.
  • Core rejects any --ack no scaffold consumed (before writing), rejects malformed ids, and rejects a scaffold claiming an id it was not given or not qualified with its own name.
  • An extension refuses by throwing an Error carrying acknowledgement: '<name>:<id>'; core appends the exact re-run command (same --with/--pin/--no-manifest plus all --ack). Store uses store:public-write.
  • Kept: refusal-before-write, command-history acknowledgement, prominent README/route access note, no YAML state, no auto-added auth, routeNotes (core only renders).
  • Docs/help/README/llms-full updated; new generic core test with a fake extension.

Back-compat decision

--allow-public-write is removed, not aliased. Published core 0.4.2 never accepted it (only main did), so no released core user has it in history; an alias would need core to map it to a store id, which is the store-specific knowledge this issue removes. Note: published @jimhoyd/urlcode-store 0.4.2 already contains the old refusal reading request.allowPublicWrite; it cannot be satisfied by any core, and the new store needs a core that sends acknowledgements (peer floor is #346's area; store scaffold edits kept minimal).

Verification

npm ci, npm run docs:llms, npm run check:docs, npm run verify (incl. verify:workspaces, workspace-integration) pass locally. Core pack: 428 files (cap 440); ui untouched.

🤖 Generated with Claude Code

…ion:id (refs #345)

Replaces the store-specific --allow-public-write flag and the allowPublicWrite/publicWrite
contract fields with ScaffoldRequest.acknowledgements and ScaffoldResult.acknowledged.
Core rejects unconsumed acknowledgements and prints the exact retry command on refusal.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jimhoyd
jimhoyd force-pushed the feat/generic-scaffold-ack-345 branch from 84f221d to e390137 Compare September 21, 2026 00:23
@jimhoyd
jimhoyd merged commit 287fb05 into main Sep 21, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the feat/generic-scaffold-ack-345 branch September 21, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant