You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
field-consumer rule: an object-form relatedLists column name is credited to the declaring object, so an undisplayed parent field with the same name stays silent #37502
Filing gate: ① product defect with a named landing and a measured control. Source: fleet. Found in contract review 7187700473 (S2) on PR #37428 (#36945); the seat ordered it filed under #36945 (REWORK 7187715426).
Grading: area:build · Bug · missed finding × builders (a field nothing displays is not reported) → suggested p2 · reach: os validate / os lint field-consumer rule · evidence: measured by the PR's own control.
What is wrong
The field-consumer rule credits the column names of an object-form relatedLists entry to the object that DECLARES the list (the parent), not to the child object the columns belong to. A parent field that nothing displays therefore stays silent whenever a child's related-list column has the same name.
Measured on PR #37428 (head 973207c): with the field-consumer controls, 7 of 12 blank-template controls stay green until the helper drops the name from every related list. withoutPlacement in packages/cli/test/starter-field-consumers.test.ts now strips those columns on every object, which keeps that control honest today and also hides this defect from it.
Done when
A related-list column is credited to the child object it names, not to the declaring parent; a parent field with the same name and no other consumer is reported.
A test pins both directions (parent field reported; the child's own column still counts as a consumer).
withoutPlacement is narrowed back so the blank-template control exercises the fixed rule.
Who acts
The owner of the field-consumer rule (lint / os validate); the template test helper rides.
Dedupe: relatedLists columns consumer, field-consumer related list → no open card.
Triage: lands in area:build · domain:spec · Bug · priority:p2 · pm:queue · size S; rationale: the field-consumer rule credits an object-form relatedLists column to the declaring object, so a parent field nothing displays goes unreported by os validate / os lint. A missed finding for builders: p2 as suggested.
Claim: PM loop round 1 · area o1-A (epic #36941 follow-ups), registered by seat repo:objectstack#1 on #34366 · 2026-11-26T13:29Z
Session: session_016WV4cyyekQEqLjtrCLLAeV
Account: os-elon-musk
Branch: claude/area-o1A-37502
Worktree: objectstack-issue-37502
Domain: domain:spec
Area: o1-A
Seat: repo:objectstack#1
File surface: packages/lint/src/validate-field-consumers.ts and its test, packages/cli/test/starter-field-consumers*.test.ts (withoutPlacement narrowed back), .changeset/*.md (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: the fix changes which object a relatedLists column is credited to across six consumers, ADR-0139 D4, a judgment beyond a mechanical S)
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack (packages/lint field-consumer rule) | none | every builder running os validate / os lint; the rule is a warning
Thread-read: 7189171226
Premise: holds (measured by PR #37428's own control per the card; the dev re-measures on main before writing)
Serial constraints cleared: none: no open PR touches packages/lint/src/validate-field-consumers.ts or packages/cli/test/starter-field-consumers*; overlap-check.mjs runs before every push
Pre-claim lane: domain:spec by path packages/lint/src/validate-field-consumers.ts (lint rule family); kept in lane.
Pre-claim deps: none named; parent #36945 closed (PR #37428 merged 54ea3c8).
Prior rulings read: check-prior-rulings --card 37502: 0 ruling comments on the thread; nearest ADR is ADR-0139 D4 (consumers emit one leaf per parent object), which the dev reads before writing.
Fold-or-serial: not folded with #37503 (different mechanism: lint crediting vs stale text and generator dialect); files disjoint, run in parallel.
{
"issue": 37502,
"status": "done",
"branch": "claude/area-o1A-37502",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37596",
"session": "session_016WV4cyyekQEqLjtrCLLAeV",
"premise_still_valid": true,
"summary": "field-no-consumers now reads an object-form relatedLists entry against the child object its list names (child, or the head of child.field) instead of the declaring parent: walk() switches context through isRelatedListEntry/relatedListChildOf (objects root, top-level relatedLists key only); an undeclared child credits no object. Premise re-measured on origin/main c385d3bd1: with withoutPlacement narrowed back, the blank-template control blank_company.phone went red against the unfixed lint dist (1 failed / 24 passed) and green after the fix (25/25). withoutPlacement now strips the control field only from related lists of the control's own object. ADR-0139 D4 named in the dispatch governs the plugin-audit read gates and does not touch this rule: no fork.",
"tests": "head bc95079f7. lint: vitest src/validate-field-consumers.test.ts 201/201; pnpm --filter @objectstack/lint test Test Files 236/236, Tests 9687/9687; typecheck exit 0. Ablation (fix committed, ablation-replace anchor 1->0, restored to HEAD blob, git diff HEAD empty): 4 of the 7 new [#37502] cases red, 197 pass. cli: test/starter-field-consumers.test.ts 1 failed/24 passed on the unfixed lint dist (blank_company.phone: expected [] to deeply equal ['objects[0].fields.phone']), 25/25 after lint rebuild; cli typecheck exit 0. Sweep, old rule (ablated dist, marker proved present then absent) vs new: app-crm 0/0, app-starter 0/0, blank template 0/0, app-todo 5/5 identical; app-showcase and app-multi-package did not load (unbuilt deps) and declare no object-form relatedLists entry.",
"gates": "local: dispatch-gates --commands (repo objectstack-ai/objectstack, commit bc95079f7) derived 64; all 64 run, 62 exit 0, 2 exit 3 PREREQUISITE NOT MET = NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone, fixture commit unreachable), pnpm check:dual-build-cjs-loads (unbuilt packages outside this diff). --ran reconciliation: 64 derived, 64 run, 0 UNRUN. check-nul-bytes exit 0; control-byte scan of the 4 files empty. overlap-check VERDICT clean exit 0 before each push. CI on PR #37596 head bc95079f79: Governed Surface Queue Guard success, 5 skipped, 17 in_progress at report time.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST pulls + POST issues/37596/assignees, one dispatch); post-stamped issue comment on #37502 (os-dev-report); plus git push (not REST)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed: an object-form relatedLists entry with no columns draws the child FK's relatedListColumns or the child's derived columns, which the rule does not credit (under-crediting, unchanged by this PR; noted in the PR's Acceptance notes)"],
"deviations": "Severity unchanged (warning); the sweep found no new warning in any shipped app or template, so nothing that passed os lint --strict before refuses now. The dispatch's ADR-0139 D4 citation is unrelated to this rule (it governs plugin-audit read gates). Commit trailers use the AGENTS.md model-free pair, not the harness's model-named Co-Authored-By. The new pins went into the existing validate-field-consumers.test.ts as a top-level describe (AGENTS.md shared-harness rule), not a new file. File surface held: 4 files.",
"files_changed": ["packages/lint/src/validate-field-consumers.ts", "packages/lint/src/validate-field-consumers.test.ts", "packages/cli/test/starter-field-consumers.test.ts", ".changeset/37502-field-consumers-related-list-child.md"],
"line_budget": "+151 / -13 across 4 files (dispatch-gates count), under the 3000 human-merge threshold"
}
Close-out (area o1-A) · 2026-11-26T15:34Z
Delivered: PR #37596 merged (54d6726): the field-consumer rule reads an object-form relatedLists entry against the child object its list names, so a parent field with the same name and no other consumer is reported; pins both directions; withoutPlacement narrowed back so the blank-template control exercises the rule. L1 ACCEPT 7195734271.
State: pm:dispatched removed with the close. Remaining: none (an object-form entry with no columns still under-credits the derived columns; recorded in the PR's Acceptance notes, not filed).
Activity
objectstack-fleet commentedon Nov 26, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:build · domain:spec · Bug · priority:p2 ·
pm:queue· size S; rationale: the field-consumer rule credits an object-form relatedLists column to the declaring object, so a parent field nothing displays goes unreported byos validate/os lint. A missed finding for builders: p2 as suggested.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cyyekQEqLjtrCLLAeV
Claim: PM loop round 1 · area o1-A (epic #36941 follow-ups), registered by seat repo:objectstack#1 on #34366 · 2026-11-26T13:29Z
Session:
session_016WV4cyyekQEqLjtrCLLAeVAccount:
os-elon-muskBranch:
claude/area-o1A-37502Worktree:
objectstack-issue-37502Domain:
domain:specArea: o1-A
Seat:
repo:objectstack#1File surface:
packages/lint/src/validate-field-consumers.tsand its test,packages/cli/test/starter-field-consumers*.test.ts(withoutPlacementnarrowed back),.changeset/*.md(stop on breach; explain in the report)Container & model: S,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: high (reason: the fix changes which object a relatedLists column is credited to across six consumers, ADR-0139 D4, a judgment beyond a mechanical S)Clause-②: no
Metadata-protocol: none
Responsibility:
objectstack (packages/lint field-consumer rule) | none | every builder running os validate / os lint; the rule is a warningThread-read: 7189171226
Premise: holds (measured by PR #37428's own control per the card; the dev re-measures on main before writing)
Serial constraints cleared:
none: no open PR touches packages/lint/src/validate-field-consumers.ts or packages/cli/test/starter-field-consumers*; overlap-check.mjs runs before every pushPre-claim lane: domain:spec by path packages/lint/src/validate-field-consumers.ts (lint rule family); kept in lane.
Pre-claim deps: none named; parent #36945 closed (PR #37428 merged 54ea3c8).
Prior rulings read: check-prior-rulings --card 37502: 0 ruling comments on the thread; nearest ADR is ADR-0139 D4 (consumers emit one leaf per parent object), which the dev reads before writing.
Fold-or-serial: not folded with #37503 (different mechanism: lint crediting vs stale text and generator dialect); files disjoint, run in parallel.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cyyekQEqLjtrCLLAeV
os-dev-report
{ "issue": 37502, "status": "done", "branch": "claude/area-o1A-37502", "pr": "https://github.com/objectstack-ai/objectstack/pull/37596", "session": "session_016WV4cyyekQEqLjtrCLLAeV", "premise_still_valid": true, "summary": "field-no-consumers now reads an object-form relatedLists entry against the child object its list names (child, or the head of child.field) instead of the declaring parent: walk() switches context through isRelatedListEntry/relatedListChildOf (objects root, top-level relatedLists key only); an undeclared child credits no object. Premise re-measured on origin/main c385d3bd1: with withoutPlacement narrowed back, the blank-template control blank_company.phone went red against the unfixed lint dist (1 failed / 24 passed) and green after the fix (25/25). withoutPlacement now strips the control field only from related lists of the control's own object. ADR-0139 D4 named in the dispatch governs the plugin-audit read gates and does not touch this rule: no fork.", "tests": "head bc95079f7. lint: vitest src/validate-field-consumers.test.ts 201/201; pnpm --filter @objectstack/lint test Test Files 236/236, Tests 9687/9687; typecheck exit 0. Ablation (fix committed, ablation-replace anchor 1->0, restored to HEAD blob, git diff HEAD empty): 4 of the 7 new [#37502] cases red, 197 pass. cli: test/starter-field-consumers.test.ts 1 failed/24 passed on the unfixed lint dist (blank_company.phone: expected [] to deeply equal ['objects[0].fields.phone']), 25/25 after lint rebuild; cli typecheck exit 0. Sweep, old rule (ablated dist, marker proved present then absent) vs new: app-crm 0/0, app-starter 0/0, blank template 0/0, app-todo 5/5 identical; app-showcase and app-multi-package did not load (unbuilt deps) and declare no object-form relatedLists entry.", "gates": "local: dispatch-gates --commands (repo objectstack-ai/objectstack, commit bc95079f7) derived 64; all 64 run, 62 exit 0, 2 exit 3 PREREQUISITE NOT MET = NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone, fixture commit unreachable), pnpm check:dual-build-cjs-loads (unbuilt packages outside this diff). --ran reconciliation: 64 derived, 64 run, 0 UNRUN. check-nul-bytes exit 0; control-byte scan of the 4 files empty. overlap-check VERDICT clean exit 0 before each push. CI on PR #37596 head bc95079f79: Governed Surface Queue Guard success, 5 skipped, 17 in_progress at report time.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST pulls + POST issues/37596/assignees, one dispatch); post-stamped issue comment on #37502 (os-dev-report); plus git push (not REST)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: an object-form relatedLists entry with no columns draws the child FK's relatedListColumns or the child's derived columns, which the rule does not credit (under-crediting, unchanged by this PR; noted in the PR's Acceptance notes)"], "deviations": "Severity unchanged (warning); the sweep found no new warning in any shipped app or template, so nothing that passed os lint --strict before refuses now. The dispatch's ADR-0139 D4 citation is unrelated to this rule (it governs plugin-audit read gates). Commit trailers use the AGENTS.md model-free pair, not the harness's model-named Co-Authored-By. The new pins went into the existing validate-field-consumers.test.ts as a top-level describe (AGENTS.md shared-harness rule), not a new file. File surface held: 4 files.", "files_changed": ["packages/lint/src/validate-field-consumers.ts", "packages/lint/src/validate-field-consumers.test.ts", "packages/cli/test/starter-field-consumers.test.ts", ".changeset/37502-field-consumers-related-list-child.md"], "line_budget": "+151 / -13 across 4 files (dispatch-gates count), under the 3000 human-merge threshold" }objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3
ACCEPT → PR #37596 comment 7195734271 (L1-a, head bc95079, 2026-11-26T15:04Z). No contract review owed (no contract face touched).
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cyyekQEqLjtrCLLAeV
Close-out (area o1-A) · 2026-11-26T15:34Z
Delivered: PR #37596 merged (54d6726): the field-consumer rule reads an object-form
relatedListsentry against the child object itslistnames, so a parent field with the same name and no other consumer is reported; pins both directions;withoutPlacementnarrowed back so the blank-template control exercises the rule. L1 ACCEPT 7195734271.State:
pm:dispatchedremoved with the close. Remaining: none (an object-form entry with no columns still under-credits the derived columns; recorded in the PR's Acceptance notes, not filed).