Skip to content

[Gap]: evaluate a composed durable form-record workflow for forms and store #529

Closed

Description

@jimhoyd

What you were trying to do

In test5/form-lab, an agent built an onboarding flow that creates a record, shows its confirmation and pre-filled edit page, and persists a later partial update. The task used synthetic data and a deterministic sub-1 example identifier.

Where it broke down

forms owns a bounded browser submission flow, while store owns typed durable records and CRUD routes. Neither currently declares the composition: submit validated form values into a store collection, route to a record confirmation/edit view, and perform constrained updates. The agent replaced both with trusted functions and an in-process Map.

Code or YAML you had to write by hand

Sanitized hand-written seam: const records = new Map(); let counter = 0; plus createRecord(values), getRecord(id), updateRecord(id, patch), HTML rendering, and route functions for collection, record, and edit. This state disappears on restart and is not a durable-store substitute.

What you could not verify

One benchmark is insufficient to commit to a new extension. Do not add an in-process collection primitive or make forms implicitly own persistence. Evaluate a separately versioned, operator-installed composition that explicitly requires forms and store, preserves store authorization/ownership/concurrency behavior, declares the record mapping and allowed updates, and refuses unsupported targets. Related: #425 and #426; this is a follow-on composition question, not a claim that either extension is missing CRUD or form handling individually.

Activity

  1. added
    ai-first
    needs-decision
    on Sep 23, 2026
  2. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    Triage decision: retain as evidence-gathering, not an implementation commitment. Do not add forms-to-store composition until repeated independent evidence establishes a separately versioned, operator-installed, portable contract; preserve the issue guardrails as future acceptance criteria. Removing needs-decision.

  3. added
    enhancement
    extension
    and removed
    needs-decision
    on Sep 24, 2026
  4. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision (owner, 2026-09-24): later, in steps. First ship #527 (browser-bound confirmation handoff). Then decide separately whether store gets per-record ownership tied to the auth identity — without it, record confirmation/edit routes would expose records to anyone who guesses an id. Revisit this issue after both.

  5. jimhoyd commented on Sep 25, 2026

    @jimhoyd
    CollaboratorAuthor

    Triage status: step 1 of the plan above, #527 (browser-bound confirmation handoff), has shipped in #700.

    Step 2, deciding whether store records have an owner tied to the auth identity, is already recorded in #331. That issue was closed as not planned on 2026-09-21, and its decision comment says to reopen it if someone needs a multi-user CRUD screen. This issue is that need, since record confirmation and edit routes would otherwise expose any record whose id can be guessed. The next step is to reopen #331 or confirm that it stays closed. Until then this issue stays blocked.


    Generated by Claude Code

  6. jimhoyd commented on Sep 25, 2026

    @jimhoyd
    CollaboratorAuthor

    Unblocked: #331 (per-record ownership for store) has been reopened (owner, 2026-09-25). This issue follows once #331 lands.


    Generated by Claude Code

  7. jimhoyd commented on Sep 25, 2026

    @jimhoyd
    CollaboratorAuthor

    Unblocked: #331 (per-record ownership for store) landed in #734. Owned collections scope every operation to the signed-in principal, and cross-user access returns 404. That removes the guessable-id exposure this issue was waiting on. The forms→store composition can now be designed on top of owned collections. Per-owner quotas (#731) are tracked separately.


    Generated by Claude Code

  8. jimhoyd commented on Sep 25, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision (owner, 2026-09-25): a separate, operator-installed add-on (working name form-records, package @jimhoyd/urlcode-form-records). It requires both forms and store, is separately versioned, and owns the composition. forms and store stay unchanged apart from the official exports this needs.

    Constraints, per the generic add-on authoring rules (docs/EXTENSIONS.md):

    • It reads neither forms' nor store's private configuration. It uses their typed, versioned exports via ctx.get, and adds those exports to forms/store if they are missing (e.g. a forms flow renderer/validator and a store records API that honours ownership).
    • Owned collections only ([Request]: Per-record ownership for the store extension and CRUD screen #331). It refuses to activate on a shared collection, so records are private to their creator, and cross-user access returns 404.
    • It declares the record mapping (form field → collection field) and which fields the edit page may change. Everything else is read-only after create.
    • It provides confirmation and pre-filled edit views, and preserves store's concurrency behaviour (If-Match/ETag) and forms' CSRF, admission and 422 handling.
    • It refuses unsupported targets. It needs a second-provider or consumer fixture, descriptor/build/add-on verification, a workspace entry, and add-on manifest and package-audit budgets.
    • --example gives an onboarding demo. The capability-only install adds no routes.

    Ready to implement.


    Generated by Claude Code

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