Skip to content

[On hold]: StoreExports has no owner-scoped delete or replace, so adapters cannot delete through a contract path #829

Closed as not planned

Description

@jimhoyd

Implementation on hold under #841. Do not expand the legacy export API for historical parity. Exercise the underlying application need through #835 and the application proof #843. No backward compatibility is required. Re-scope or close this request after the replacement proves the need is covered.

Problem or use case

Found by the #828 compatibility audit; see the fixed-contract-adapter recipe README, "Compatibility audit".

StoreExports v1 (packages/store/src/records.ts) offers owner-scoped list, create, get and update, but no delete and no replace (PUT). An adapter that maps a fixed external contract, such as DELETE /api/items/:id, cannot delete through its contract path. The recipe therefore answers that path with the runtime's JSON 405 and points clients at the native DELETE /store/items/<id>.

Proposed behavior and alternatives

Add owner-scoped remove(id, principal) and, if wanted, replace(id, record, principal) to StoreExports, as an additive version bump. They must keep the same ownership rule (another owner's id gives the same not-found as a missing id), the same audit events and the same quota accounting as the native mount. Then update the recipe to use them and drop its 405 workaround.


Generated by Claude Code

Activity

  1. added
    enhancement
    ai-first
    extension
    on Sep 27, 2026
  2. changed the title [-][Request]: StoreExports has no owner-scoped delete or replace, so adapters cannot delete through a contract path[/-] [+][On hold]: StoreExports has no owner-scoped delete or replace, so adapters cannot delete through a contract path[/+] on Sep 28, 2026
  3. jimhoyd commented on Sep 29, 2026

    @jimhoyd
    CollaboratorAuthor

    Obsolete after #854 and #841. The contracts this issue describes are deleted: AuthExports, the fixed-contract adapter recipe and the admin package. Auth is now a thin Better Auth adapter that provides only a request principal and the identity capability. Store deletion and replace go through its HTTP API and StoreExports.transaction (#862), so no adapter-contract expansion is planned.

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-firstenhancementextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions