Skip to content

lint: field/embedded-sub-fields fix hint still says a child object plus inlineEdit: 'grid' gives inline editing; the rule now needs a parent field group naming the child #36281

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

Filing gate ① · Source: fleet · out-of-scope finding of the dev on #36252 (PR #36280, seat 4 area a4-I). It is code, outside that text-only PR's paths.

What happens

packages/lint/src/data-model-rules.ts (around line 1117): the field/embedded-sub-fields rule's fix hint, which os lint prints to the author, still says to create a child object and set inlineEdit: 'grid' to get inline editing. The spec's EMBEDDED_JSON_TYPED_LIST text and the rule's own description now say a parent field group's relatedList must name the child (#35921, #36224). An author who follows the printed hint gets a child that is a tab, with no lines in the parent form.

Done when

The fix hint names the parent field group (fieldGroups[].relatedList) as what inlines the child, and says inlineEdit only picks how rows are edited, the same wording as the spec text. A pin asserts the hint, with an ablation. Check for other lint hints that still teach inlineEdit as the switch (grep -n "inlineEdit" packages/lint/src).

reach: every author whose object trips field/embedded-sub-fields; read from code.
Business reason: the tool's own advice leads authors to a form with no line items.
Reader: domain:devx / packages/lint.
Dedupe: embedded-sub-fields inlineEdit hint → none.
Grade: p3.

Activity

  1. added
    bug
    pm:queue
    domain:devx
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797

    Claim: PM loop · area a4-I · 2026-11-22T04:42Z
    Session: session_01FEkQ5kDGa1ViantgrfH797
    Account: os-project-manager
    Branch: claude/issue-36281-embedded-sub-fields-hint
    Worktree: objectstack-issue-36281
    Domain: domain:devx
    Seat: repo:objectstack#4
    Area: a4-I (path widened to packages/lint/src for this card only, seat order 04:38Z)
    File surface: packages/lint/src/data-model-rules.ts (the field/embedded-sub-fields fix string ~1117-1118, and any other hint or doc comment in packages/lint/src that still teaches inlineEdit as the switch), one new card-named pin test, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on packages/lint/src; seat order: Opus), effort: high (seat order a4-I)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the os lint fix hint in objectstack packages/lint | the rule's own explanation and spec EMBEDDED_JSON_TYPED_LIST already name the parent field group (#35921) — only the printed hint is stale | every author whose object trips field/embedded-sub-fields
    Thread-read: none
    Premise: holds (data-model-rules.ts:1117-1118 at 76cb366 still prints "(inlineEdit: 'grid' edits it inline)")
    Pre-claim lane: repo:objectstack whole-repo lane; packages/lint/src (not in GOVERNED_SURFACES).
    Pre-claim deps: none named.
    Prior rulings read: lint,field,embedded-sub-fields,hint,says,child,object,plus,inlineedit,grid,gives,inline (+5 more) → 380 hits; ADR-0035 Decision §2/§3/§4, ADR-0020 D1, ADR-0139 D4, ADR-0150 D9, ADR-0061 D2, ADR-0071 Decision §1 named; the governing rule is #35889's (a parent field group places the child; inlineEdit picks the form factor); thread: none.
    Fold-or-serial: not folded with PR #36280 (skills text, Tier H low-risk arm, fable; this is code, opus). Own PR.
    Serial constraints cleared: overlap-check at the dev's first push.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:devx (lint fix hint) · pm:dispatched as claimed; rationale: area:build (was ux) · Bug · the field/embedded-sub-fields fix hint still tells authors that a child object plus inlineEdit: 'grid' gives inline editing, which is no longer true after #35921. A wrong sentence in shipped tool text is p2 under the 2026-11-21 standard → p2 (was p3) · size XS.

  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797
    os-dev-report

    {
      "issue": 36281,
      "status": "done",
      "branch": "claude/issue-36281-embedded-sub-fields-hint",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36307",
      "session": "session_01FEkQ5kDGa1ViantgrfH797",
      "premise_still_valid": true,
      "summary": "Premise held at 76cb36661: data-model-rules.ts:1117-1118 printed \"(`inlineEdit: 'grid'` edits it inline)\". The field/embedded-sub-fields fix line now reads \"Make the typed list a child object whose `master_detail` field points back here, name it in a `fieldGroups[].relatedList` here (`inlineEdit` only picks how rows are edited), and remove the key.\" (193 chars, cap 200), following spec EMBEDDED_JSON_TYPED_LIST and the rule's os explain paragraph; id, severity, path and firing are unchanged. The exact-text pin in data-model-rules.fix-lines.test.ts was updated (it asserts only the hint text), and a new top-level describe in the rule's existing harness data-model-rules.embedded-sub-fields.test.ts asserts the fix names `master_detail`, `fieldGroups[].relatedList`, the inlineEdit-only-picks clause, and no longer carries `inlineEdit: 'grid'`. Zone 2 measured: every other non-test inlineEdit hit in packages/lint/src (data-model-rules.ts 292, 1013, 1204; validate-field-consumers.ts 947/969/1005/1016/1244/1277/1379; showcase-shape.fixtures.ts 212, a list-view key) already states the group rule or reads inlineEdit only as the form factor, so none changed; no other lint hint teaches inlineEdit as the switch.",
      "tests": "At head bc156e739: `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/data-model-rules.embedded-sub-fields.test.ts src/data-model-rules.fix-lines.test.ts` -> Test Files 2 passed (2), Tests 26 passed (26), lock VERDICT command-exit 0. `pnpm --filter @objectstack/lint typecheck` -> exit 0 (tsc --noEmit; check:test-typecheck OK). Whole package `pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2` -> Test Files 224 passed (224), Tests 9409 passed | 5 skipped (9414), VERDICT command-exit 0. Ablation (one-time, committed fix first, trap restore): node scripts/ablation-replace.mjs swapped the second half of the fix back to \"(`inlineEdit: 'grid'` edits it inline)\" -- anchor x1 -> x0, replacement x0 -> x1, blob f16e42de7f96 -> 1f785d0f961a; both pins red (2 failed | 24 passed): 'routes to `fieldGroups[].relatedList` and gives `inlineEdit` only the form factor' and 'field/embedded-sub-fields: one line, whatever the type, the keys or the names'; restored blob == HEAD f16e42de7f96, git diff HEAD empty, independent git hash-object check matched. Vitest resolves the subject through the relative src import, so no dist rebuild was in the path.",
      "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at bc156e739 -> 63 commands. Each run with exit captured before any pipe: 59 exit 0 on first pass; check:docs-transcript-drift and check:lean-entry-closure exit 3 (prerequisite: lint / objectql dist) then exit 0 after `pnpm turbo run build --filter=@objectstack/lint --filter=@objectstack/objectql` (dist verified to carry the new text); NOT MEASURED exit 3: pnpm check:dual-build-cjs-loads (needs full pnpm build; CI) and node scripts/check-plugin-teardown-shape.mjs --self-test (checker-health only; needs unshallow of the shared clone). `--ran` with `cmd :: exit N` record -> 'Run reconciliation - 63 derived, 61 run, 2 NOT-MEASURED, 0 UNRUN', exit 0. check-platform-checklist not owed (no export renamed or removed). overlap-check before push: VERDICT clean exit 0. CI at report time (head bc156e739), read once: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI release & engine gates, PM dispatch-gates, docs & code guards, repo & tooling gates, scoped x3), PR-body guards, Type Check (consumer gates, debt ledger, source gates, workspace), filter, Flag docs affected -> in_progress; opt-in/queue/schedule jobs skipped. Not waited on.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no GitHub MCP tool called",
      "api_writes": "2 — (1) fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches; run 44988539291: POST /repos/objectstack-ai/objectstack/pulls -> #36307 draft, POST /repos/objectstack-ai/objectstack/issues/36307/assignees os-project-manager; read-back 5747 bytes sent = stored); (2) post-stamped.mjs os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/36281/comments. git push (2) is not a REST write.",
      "files_changed": [
        ".changeset/36281-embedded-sub-fields-hint.md",
        "packages/lint/src/data-model-rules.ts",
        "packages/lint/src/data-model-rules.fix-lines.test.ts",
        "packages/lint/src/data-model-rules.embedded-sub-fields.test.ts"
      ],
      "line_budget": "net added lines at most 60",
      "net_added_lines": 24,
      "deviations": [
        "pr_create carried assignees [os-project-manager] (the claim's Account:) per os-dev.md rule 2, against the order's 'no assignees' line; os-dev.md says it wins over a dispatch on conflict, so the conflict is named here rather than chosen silently.",
        "Pin placed as a top-level describe in the rule's existing harness file data-model-rules.embedded-sub-fields.test.ts, not a new card-named file (Zone 3 suggestion), per AGENTS.md: a new pin for a component with a shared harness file goes into that file (ruling record 6583487846).",
        "Commit trailer is model-free (Co-authored-by: Claude) and the PR footer is AGENTS.md's session-URL form; the harness reminder asked for a model-named trailer and a different footer. AGENTS.md outranks it.",
        "Declared narrowing: 2 derived gates NOT MEASURED (exit 3 prerequisite), named in gates; CI runs both.",
        "origin/main not merged before opening the PR: 5 newer commits, none touching packages/lint or packages/spec/src/data; overlap-check clean.",
        "test:repo (vitest repo project) not run locally: the diff touches none of its tests; CI Test Core runs it."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — content/docs/data-modeling/field-types.mdx:852 still leads with \"`inlineEdit: 'grid'` edits the rows as an inline grid on the parent's form (where a field group of the parent names the child)\"; it states the group condition so it is not wrong, only ordered the old way; outside this card's file surface; in the PR's Acceptance notes."
      ]
    }
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797

    Delivered · area a4-I · 2026-11-22T06:46Z
    PR #36307 merged (a61b8ab28a) and closed this card through Fixes. Nothing is left for this card; pm:dispatched is removed.

  7. removed
    pm:dispatched
    on Nov 22, 2026
  8. added a commit that references this issue on Nov 22, 2026
    a61b8ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:buildbugdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions