Skip to content

[Request]: plan-feature is silent when a goal implies multi-record store writes app code has no capability for #1086

Closed

Description

@jimhoyd

Problem or use case

Epic #837 asks for a full agent playback (CLI-only, packed-consumer install) as its remaining evidence item. I ran one: npm pack this repo, installed the tarball into a fresh scratch project, urlcode init . --with auth,store --example, migrated Better Auth, created two users, wrote request fixtures, and got validate/test/audit all passing. That part of the workflow is smooth — no friction to report there.

The one goal I asked plan-feature to help with was a common "act on several of my own records at once" request:

npx urlcode plan-feature "add a bulk action for the signed-in user to mark every one of their own todos as done in one request" --project app --host-file host.mjs --origin https://reading-list.example.test

Its outline correctly named auth: true (route protection) and ownership: owner (store scoping), and its commands pointed at the authenticated-json-api recipe. What it never surfaced: the bundled store extension exposes no context.capabilities entry for programmatic collection access from application code at all — only its own HTTP mount (extension: store) and per-record transitions (POST <mount>/<id>/<name>, one record per call). So a function route cannot loop over "my own records" and update them server-side through the store; the only two supported paths are (a) the client issuing one HTTP call per record against the store's own mount, or (b) the application owning its data with node:sqlite directly, as proofs/native-storage/README.md demonstrates, reading identity from context.capabilities.auth.identity.userId.

That distinction is accurately documented in docs/EXTENSIONS.md's "Request-bound capabilities" section ("naming the specific store operations an application can reach this way is a later, separate decision") and the native-storage proof — I only found it by reading that prose directly, not through the tool a fresh agent is told to consult first for exactly this kind of question.

Proposed behavior and alternatives

When plan-feature's goal text implies acting on more than one record at once within an owned/gated collection (e.g. bulk/each/every/all + an owned-collection keyword), surface a short, explicit note in the outline: the bundled store has no request-bound capability for multi-record application code today; either issue one call per record against the collection's own mount, or bring an independently owned database (link the native-storage proof) for true server-side multi-record atomicity. This keeps the "later, separate decision" about naming actual store capabilities exactly where it is — it only asks discovery to say the option doesn't exist yet, instead of staying silent and pointing at a recipe that doesn't address the multi-record part of the request.

This is one observed run, not a repeated pattern — flagging per epic #837's "fix observed integration friction" step, not proposing a new store capability.


Observed during epic #837's agent-playback exercise; filed per AGENTS.md "File what you find."

Activity

  1. added
    enhancement
    ai-first
    in-progress
    on Sep 30, 2026
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-firstenhancementin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions