Skip to content

id: wire a shipped form presenter + presenting-device manifest for form.* (#2340 follow-on) #8932

Closed

Description

@dezren39

Problem

PR #8928 implements the #2340 form.* capability (closed FormSurface model, form.present / form.result / form.cancel, device-manifest gating, deferred result delivery through WorldHandle::submit_form_result). Two gaps remain outside that packet's scope, surfaced by Copilot review on PR #8928 (2026-11-12):

  1. No shipped presenter is wired to the submission API. The web renderer only accepts screens, SSH falls back to the raw form JSON, and the native shell only projects text. A user on a shipped client cannot complete or cancel a presented form: no trusted presenter calls WorldHandle::submit_form_result with the form id + presentation token.
  2. Gating uses the host's device manifest, not the presenting client's. Served worlds spawn with WorldHandle::host_device_manifest() (headless: text_entry: "none", no keys/encoder/pointer), so form.present refuses every form in the normal served path even when the connected browser/terminal could provide input. There is no plumbing that carries the presenting device's affordances to the actor.

Scope

  • Wire one trusted presenter end-to-end (web first, or the surface with the smallest path) : render WorldSurface::Form, collect submit/cancel, call submit_form_result with the presentation token.
  • Define how a presenting client's device affordances reach the actor (per-session manifest at presentation time, or equivalent), and gate form.present against the presenting device instead of only the headless host manifest.
  • Keep the id: form.* capability + Form surface — structured input without program-supplied HTML (#2027) #2340 invariants: no program-supplied HTML/CSS/executable validation; invalid values are one-shot bad_args / field_invalid with host re-presentation; no server-side retry loop.

Acceptance

  • A form presented in a served world can be completed and cancelled from the wired client, verified end-to-end.
  • A client whose affordances lack text entry is refused text fields with text_entry_unavailable; a capable client is not refused because the host is headless.
  • Tests cover the presenter submit/cancel path and the presenting-device gating.

Refs: #2340, PR #8928.

Activity

  1. added
    kind/featureNew feature or capability request
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 12, 2026
  2. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 18773 (lane code-e)

    • Work kind: task/small-fix · Priority: priority/normal · Effort: effort/l · Kind: kind/feature (already on the issue)
    • Fresh state (2026-11-17): issue id: wire a shipped form presenter + presenting-device manifest for form.* (#2340 follow-on) #8932 OPEN, labels kind/feature + app/id, no hard-stop labels. The base capability is landed: PR feat(id): add structured form capabilities (#2340) #8928 MERGED 2026-11-12T19:28:02Z, and submit_form_result is on origin/main (pkgs/id/crates/id-worlds/src/world/actor.rs:2435).
    • Both gaps verified live on main: (1) no shipped presenter calls the submission API (web renders screens only, SSH falls back to raw form JSON, native shell projects text); (2) pkgs/id/crates/id-cli/src/commands/serve.rs:982 still spawns served worlds with WorldHandle::host_device_manifest() — headless, text_entry: "none" — so form.present refuses every form in the normal served path regardless of the connected client's affordances.
    • First concrete step: pick the smallest-path presenter (web per the issue), render WorldSurface::Form, and thread a per-session presenting-device manifest to the actor so gating reads the presenting device; the actor-side submit path and its tests already exist to build against.
    • Follow-on: task 20243 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:8932; packet hidden_files/18773-fix-packet-8932.json). One presenter end-to-end only — wiring the remaining surfaces is follow-on, not this packet.
  5. added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 20243 · lane: code-j · worker: repo-worker-code
    issue: #8932

    Fresh revalidation: issue remains OPEN, assigned to dezren39 (Drewry Pope); no open PR was found for #8932. No implementation started. Parked for 30 minutes because the 120-minute cross-surface change is assigned to Drew and exceeds this scheduled lane's launch budget. Resume by rechecking assignment and PR state; if ownership is cleared, create a laptop worktree and implement one presenter end-to-end. Queue labels now reflect parked state; bookkeeping remains deferred to fleet reconciliation.

  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 20243 · lane: any-o · worker: repo-worker-code

    Fresh revalidation on 2026-11-17: #8932 remains OPEN and assigned to dezren39 (Drew); no open PR was found. I did not begin implementation. Re-parked 30 minutes: the 120-minute cross-surface change remains assigned to Drew. Resume only after explicit ownership clearance, and recheck issue/PR state first.

  8. 3 remaining items

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: code-j (openchamber-scheduled-lane, repo-worker-code)
    transition: blocked
    task: 20243
    reason_class: escalated-to-user
    summary: Picked up and verified, not started. This is a ~120 min cross-surface change assigned to dezren39, beyond the scheduled-lane budget. Four lanes have already parked it on 2026-11-17, so it is blocked for owner routing instead of being re-parked. No open PR exists for #8932. Needs an owner or a long-budget lane assignment.

  10. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  11. removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Progress · picked up by OpenChamber scheduled lane oc-code-07 · task 20243

    Freshly checked: #8932 remains OPEN, no PR is open, and lane_guard.py hold reports no hold label (it explicitly ignores work/assigned). The prior assignment-based park is not a blocker under current queue policy. The web form presenter is already present and wired on the current base; I am tracing the remaining actor/device-manifest gate before editing, to avoid duplicating landed work. Origin: openchamber-scheduled-lane.

  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress from the OpenChamber code lane: presenter input affordances now travel from the browser join through session input to actor-side form validation. They take precedence over the host manifest; legacy fallback remains for older clients and ignores headless manifests. Presenter-bearing inputs bypass group batching so metadata remains associated with the triggering actor turn.

    Validation: cargo test -p id-worlds --lib form_tests (14 passed). Web bun run typecheck is blocked by the installed TypeScript rejecting the existing baseUrl tsconfig option (TS5102).

    Reviewable slice: #12281, commit a0c4a58429. This completes the presenting-device gating slice; remaining full issue acceptance, if not covered by the existing presenter/test path, should be handled as follow-up rather than duplicated here.

  14. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress update for #8932 / PR #12281: added session-level served-world tests for capable vs no-text-entry presenter gating and authenticated form submit/cancel result frames. The focused Rust suite passes (4/4) via fleet-build-lock; commit 1c5f75e is pushed. The cancel fixture now declares a true cancel action, and the capable-presenter fixture grants form.result so the test exercises the intended path. PR review is running. The web Vitest suite could not run because vitest is not installed in this worktree, so I am leaving #8932 open and this as a reviewable slice rather than claiming the full end-to-end acceptance is closed.

  15. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Codex review for PR #12281 completed with no findings on commit 1c5f75ecac. The PR remains open, so queue task 20243 is blocked on that PR pending merge. We still have not verified the served-client end-to-end submit/cancel acceptance; the web Vitest suite could not run because vitest is not installed in this worktree. Keeping #8932 open and will resume acceptance verification after the PR dependency resolves.

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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions