Skip to content

First-party sources author forms as form items: examples move to forms:, skills and docs teach forms: (ADR-0159, card ④a) #37088

Backlog

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Source: ADR-0159 (PR #36957), Execution plan row ④. Parent: #36868, card ④ of five (this repository's examples and docs; the published skill is its own domain:skills card, #37105, and HotCRM's sources are HotCRM's card).

Blocked-by: #37086
Blocked-by: #37087
Metadata-protocol: none
Clause-②: no

Grading: area:build · Enhancement · first-party examples and docs author forms as form items · app authors and AI authors · evidence: git grep -lE "formViews|viewKind: 'form'" -- examples content/docs at main 62692b7f8b (examples: app-crm lead view, three showcase views, the showcase contact object and translations; docs: the forms, public data collection, views, create-versus-edit, i18n-standard and CLI pages). p2.

Why this waits for card ③

Until card ③ lands, the shipped console reads forms from view (the form page reads GET /api/v1/meta/view/NAME; Setup's page lists type view), and ADR-0159 D5 freezes view reads to the old shapes. A form moved to forms: before card ③ would answer not found when its action opens it and would drop out of Setup's list, with its switch. ⛔ Do not start this card beside card ③.

What to do

  1. Move every named form in examples/ that has a consumer (a public link, or an action of type form targeting it) from its view container to forms:, under the name it is served as today (the projection's name: OBJECT.KEY for a formViews entry, the expansion's name for a container's default form), so no action target, link or stored override changes. Lists stay where they are.
    • Before the move: examples/app-crm/src/views/lead.view.ts and examples/app-showcase/src/ui/views/inquiry.view.ts both publish /forms/contact-us. As old shapes that is first-match; as form items ruled question 3 refuses the second at publish in any environment that installs both. Check whether any fixture, dogfood boot or CI job installs both example apps in one environment. If one does, stop and report: one of the two addresses must change, and that is a served address (name the checklist items that probe it).
  2. Delete internal record forms nothing opens; their layout belongs to the object's fieldGroups. List each deletion in the PR. The set is ADR-0159 D7's: a form in a record-form slot (the default form, formViews.default, formViews.create, an item with isDefault: true or named OBJECT.create) that declares no sharing.publicLink and that no action of type form targets (the third part of D7's set, "not standing over a linked base", is carried at source level by the overrides rule below). ⛔ A form that declares a sharing.publicLink is never deleted, switched on or off, in whatever slot: move it with its sharing block as written. form-view-internal-not-loaded tests sharing.enabled, so it also reports a switched-off public form; do not take its report as the deletion list. ⛔ An item that declares overrides is never deleted on its own body either: with no link of its own, over a base form that declares one, it is what keeps that address closed (ADR-0159 D7-b). Move it with its declaration.
  3. Move the translation tails of the moved forms to the forms family, and re-key by hand a label or description written under _views.KEY for a moved form (they are not form tails and no conversion moves them, ADR-0159 D8).
  4. Rewrite the docs pages under content/docs to teach forms: as the one way to declare a form, and views: as lists. ⛔ No file under skills/** is in this card: the published skill is Skills teach forms: as the one way to declare a form, and views: as lists only (ADR-0159, card ④s) #37105 (domain:skills, Tier H).
  5. Update the platform checklist anchors that name moved symbols.

Done when

  • On each example app, GET /api/v1/meta/form returns the same names before and after the move, and after it none is marked as projected (card ②'s read-envelope mark).
  • git grep -lE "formViews|viewKind: 'form'" -- examples content/docs ':!**/CHANGELOG.md' (the generated references tree and the releases tree excluded) returns nothing but pages that describe the migration, listed in the PR. No defineView container under examples/ keeps a form: member (the grep does not match that shape; read each container).
  • os validate on both example apps reports no form-view-internal-not-loaded and no consumer-less form warning.
  • Each example's public form answers at its address before and after (resolve and submit), and each moved action-opened form still opens.
  • The i18n bundles regenerate clean (node scripts/check-i18n-bundles.mjs --write, then pnpm check:i18n).
  • Skills-docs: line present in the PR body as the claim spells it, naming Skills teach forms: as the one way to declare a form, and views: as lists only (ADR-0159, card ④s) #37105 for the skill.
  • A changeset per AGENTS.md Post-Task Checklist step 3 for each example package that carries a CHANGELOG.md.

Not in this card

Dedupe words: examples forms collection move, docs forms page form type.

Domain: left to triage — the surface is examples/** and content/docs/**. skills/** is not in it.

Activity

  1. added
    priority:p2
    pm:blocked
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-24T19:32Z

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

    area:builddomain:docspm:blockedpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions