Skip to content

[Gap]: Evaluate a composable form-flow extension from repeated agent-built HTML forms #425

Closed

Description

@jimhoyd

What I was trying to do

Benchmark run test1 asked independent fresh agents to build two browser-form applications with URLCode at revision cb48354ed414bef7a4dcf810ecd1a19057745a82:

  • contact-form: render a contact page, validate name/email/message, return field errors, then render an escaped confirmation without leaking the prior submission to a new visitor.
  • form-lab: render an onboarding form, validate required/email/phone/date and a conditional company field, persist a submission, render confirmation/edit views, and update it.

Both URLCode arms passed their acceptance suite where the control passed it, but their inventories classify the form rendering and validation as function code. The contact-form agent used one custom function; the form-lab agent used a custom function for all six requirements. Earlier A/B evidence also found plain projects could not use a data-bound list/form pattern (#262, closed).

Where it broke down

The current core request contract intentionally covers JSON/text bodies, not a generic browser form pipeline. The agents had to hand-write HTML rendering, application/x-www-form-urlencoded parsing, validation, field-error shaping, output escaping, and—in the onboarding flow—persistence/edit handling. This is recurring plumbing across two differently scoped applications, not a request to put a general template engine or application data in core.

Candidate direction

Evaluate an optional, operator-installed forms extension or a narrow composition of the existing UI and store extensions. It should keep the project boundary declarative and compose rather than coupling core to UI, auth, or storage implementation. A first slice could provide:

  • declared form fields and bounded validation (required, email, enum, length/range, pattern);
  • controlled mapping of validation failures to 422 field errors;
  • safe server-rendered input/textarea/select/checkbox primitives through the UI boundary;
  • explicit submit/confirmation routes and CSRF/auth composition;
  • an optional store-backed record/edit recipe, with operator-owned durable storage rather than function-global state.

Conditional cross-field validation and arbitrary templates should stay explicit design questions; do not invent YAML until the contract, safety constraints, target support, and review surface are chosen. A cookbook recipe may be a useful first proof before a public extension surface.

Acceptance evidence

  • Rebuild both benchmark tasks using the selected composition and rerun their frozen acceptance fixtures.
  • Show materially less hand-written plumbing and report the application-specific-code ratio, token/turn counts, and correction cycles against the stored baseline.
  • Include escaping, CSRF/auth composition, malformed body, method-gating, and cross-user/no-leak tests appropriate to the chosen feature.
  • Document unsupported features and target limits plainly; no provider infrastructure configuration belongs in route YAML.

What I did not verify

This benchmark has one run per arm, so it does not establish a quantitative benefit. I did not verify whether current unreleased extension/UI changes already supply part of this composition, nor select a final YAML shape.

Activity

  1. added
    ai-first
    extension
    important
    on Sep 22, 2026
  2. jimhoyd commented on Sep 22, 2026

    @jimhoyd
    CollaboratorAuthor

    Implemented and merged in #429.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions