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 history switch cannot show or return to unset (follow the default) #36482
Follow-up from PR #36399 (card #36290 PR 1), contract review 7080007398. Filed by the seat.
What happens
The new fieldHistory switch on the object form, the object's field repeater and the field form is a plain on/off switch. Unset means ON for most field types, yet the switch shows OFF until someone toggles it. Once an admin sets it to off, the form cannot return it to unset (follow the default) either. The help text on each row says this today; the control itself cannot show it.
What should happen
The control shows three states: follow the default (shows what the default resolves to for this field type), on, off. Choosing "follow the default" removes the key.
Notes
The default is not ON for every type: media and JSON field types and credential fields default to off. The per-field help text currently says "Unset means ON" for every field; the three-state control should show the resolved default instead.
Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · the field history switch cannot show or return to unset (follow the default), so an author who touched it cannot go back to following the platform default → p2 as filed · size S.
Claim: PM loop round 1 (card thread of seat repo:objectstack#2, reporting to area s2-C)
Session: session_01ADHkmPedgY4mKE12ad7oAo
Thread session: session_01ADHkmPedgY4mKE12ad7oAo
Account: os-steve
Area: s2-C
Branch: claude/project-thread-91elwa
Worktree: objectstack-issue-36482
Domain: domain:ui
Seat: repo:objectstack#2
File surface: packages/spec/src/data/field.form.ts and packages/spec/src/data/object.form.ts (the three fieldHistory rows: widget + help text), ui/packages/app-shell/src/views/metadata-admin/{widgets.tsx,SchemaForm.tsx} or a new widget file beside them + tests, ui/packages/i18n/src/** (new option labels, sibling locales if the namespace requires key parity), the generated metadata-form translation bundles the help-text change regenerates (packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts), and, only if the dev's route shares the no-line type list instead of copying it, the module that list moves to (now NO_LINE_VALUE_TYPES in packages/plugins/plugin-audit/src/audit-writers.ts); root .changeset/. Never docs/adr/** or skills/** (ADR sentences ride carrier: #36086).
Container & model: S/M, mode:thread, model: default tier (dispatch-gates --tier at 3b589215: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: high
Clause-②: yes
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7080791436
Premise: holds
Serial constraints cleared: open PRs read at origin/main 3b58921 for the surface files: only #36525 (draft, #35315) touches field.form.ts / object.form.ts, in other hunks (transferBehavior rows near lines 246 / 380; this card's rows are 476 / 441 / 466); prerequisite #36543 merged at 3b58921. overlap-check runs on the committed branch before every push.
Pre-claim lane: spec + ui halves; packages/spec/src/data/field.form.ts (domain:spec form rows) and ui/packages/app-shell/src/views/metadata-admin/** (domain:ui renderer); both stay with this seat under area-lease 留道.
Pre-claim deps: the card names no Blocked-by:; the seat named #36543 as the prerequisite (same file) and it merged at 3b58921.
Prior rulings read: fieldHistory,three-state,unset → ADR hits ADR-0090 D1 and ADR-0098 §1 on "unset" only, neither about this switch; card thread 0 rulings; governing ruling is #36290 comment 7076513167 point 1 (values on by default, an object or a field can turn them off) and the field fieldHistory describe in packages/spec/src/data/field.zod.ts; the escalation this card carries is contract review 7080007398 (S1 → "a carrier for the three-state control").
Premise reading: at 3b58921 the three rows (field.form.ts:476, object.form.ts:441 and :466) render as a plain boolean; SchemaForm.tsx maps boolean to a switch (lines 465 / 524), so unset and false draw the same and no control removes the key. The resolved default is not one value: changeValuesShownFor in packages/plugins/plugin-audit/src/audit-writers.ts turns values off under an object enable.fieldHistory: false, for a credential field, and for the 14 NO_LINE_VALUE_TYPES unless fieldHistory: true or trackHistory: true.
Clause-② is yes on the expected new ui language-pack keys (and on any new public export if the dev's route shares the type list); the dev measures the published closure and reports it. Metadata-protocol: none: what an author can write does not change, only the form that writes it.
ACCEPT → PR #36580 comment 7089819969 (head e285ca09502985b49cddd2bb50a0387a5c4549f1, 2026-11-23T02:17Z). Contract review PASS on the same head: 7089359334. Landing goes to the seat.
Closed by PR #36580, merged at merge commit 7501d0cebd0e17ba7c60383504643c26b2062ad9 (2026-11-23T02:50Z). pm:dispatched removed on close; domain:ui, area:ux and the assignee stay.
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Bug · the field history switch cannot show or return to unset (follow the default), so an author who touched it cannot go back to following the platform default → p2 as filed · size S.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPedgY4mKE12ad7oAo
Claim: PM loop round 1 (card thread of seat repo:objectstack#2, reporting to area s2-C)
Session:
session_01ADHkmPedgY4mKE12ad7oAoThread session:
session_01ADHkmPedgY4mKE12ad7oAoAccount:
os-steveArea: s2-C
Branch:
claude/project-thread-91elwaWorktree:
objectstack-issue-36482Domain:
domain:uiSeat:
repo:objectstack#2File surface:
packages/spec/src/data/field.form.tsandpackages/spec/src/data/object.form.ts(the threefieldHistoryrows: widget + help text),ui/packages/app-shell/src/views/metadata-admin/{widgets.tsx,SchemaForm.tsx}or a new widget file beside them + tests,ui/packages/i18n/src/**(new option labels, sibling locales if the namespace requires key parity), the generated metadata-form translation bundles the help-text change regenerates (packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts), and, only if the dev's route shares the no-line type list instead of copying it, the module that list moves to (nowNO_LINE_VALUE_TYPESinpackages/plugins/plugin-audit/src/audit-writers.ts); root.changeset/. Neverdocs/adr/**orskills/**(ADR sentences ridecarrier: #36086).Container & model:
S/M,mode:thread,model: default tier (dispatch-gates --tier at 3b589215: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)"),effort: highClause-②: yes
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 7080791436
Premise: holds
Serial constraints cleared: open PRs read at origin/main 3b58921 for the surface files: only #36525 (draft, #35315) touches
field.form.ts/object.form.ts, in other hunks (transferBehaviorrows near lines 246 / 380; this card's rows are 476 / 441 / 466); prerequisite #36543 merged at 3b58921. overlap-check runs on the committed branch before every push.Pre-claim lane: spec + ui halves;
packages/spec/src/data/field.form.ts(domain:spec form rows) andui/packages/app-shell/src/views/metadata-admin/**(domain:ui renderer); both stay with this seat under area-lease 留道.Pre-claim deps: the card names no
Blocked-by:; the seat named #36543 as the prerequisite (same file) and it merged at 3b58921.Prior rulings read: fieldHistory,three-state,unset → ADR hits ADR-0090 D1 and ADR-0098 §1 on "unset" only, neither about this switch; card thread 0 rulings; governing ruling is #36290 comment 7076513167 point 1 (values on by default, an object or a field can turn them off) and the field
fieldHistorydescribe inpackages/spec/src/data/field.zod.ts; the escalation this card carries is contract review 7080007398 (S1 → "a carrier for the three-state control").Premise reading: at 3b58921 the three rows (
field.form.ts:476,object.form.ts:441and:466) render as a plain boolean;SchemaForm.tsxmapsbooleanto a switch (lines 465 / 524), so unset andfalsedraw the same and no control removes the key. The resolved default is not one value:changeValuesShownForinpackages/plugins/plugin-audit/src/audit-writers.tsturns values off under an objectenable.fieldHistory: false, for a credential field, and for the 14NO_LINE_VALUE_TYPESunlessfieldHistory: trueortrackHistory: true.Clause-② is
yeson the expected new ui language-pack keys (and on any new public export if the dev's route shares the type list); the dev measures the published closure and reports it.Metadata-protocol: none: what an author can write does not change, only the form that writes it.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPedgY4mKE12ad7oAo
os-dev-report
{ "issue": 36482, "status": "done", "branch": "claude/project-thread-91elwa", "pr": "https://github.com/objectstack-ai/objectstack/pull/36580", "head": "a0607f1e7701adc7467cc7f2446d769cc6824183", "session": "session_01ADHkmPedgY4mKE12ad7oAo", "premise_still_valid": true, "summary": "The three fieldHistory rows (field form, object form fields repeater, enable composite) now render a registered `field-history` widget: Default (On|Off) / On / Off; Default calls onChange(undefined), removing the key. The default is resolved by a new spec predicate `fieldChangeValuesShown` beside `NO_LINE_VALUE_FIELD_TYPES` (moved out of plugin-audit), which the audit writer now calls, so form and writer share one rule. Help text rewritten in all 11 metadata-form bundles.", "tests": "new: spec field-history-default.test.ts 12/12; ui FieldHistoryWidget-36482.test.tsx 10/10, ablation: resolver -> true reds 'names Default (Off)...', Default -> false reds 'a stored false goes back to unset'. suites: plugin-audit 109 files/1815 tests; spec src/data 190/6778; platform-objects translations 26/610; ui metadata-admin + i18n 878 files/10311 tests; registry tables 164/164.", "gates": "dispatch-gates --ran on /mnt/project-files/objectstack-seat2/36482-gates-ran.txt: 102 derived, 101 run exit 0, 1 NOT MEASURED (check:dual-build-cjs-loads, needs a full build; CI). First-run reds fixed or re-run: spec check:api-surface + check:export-origins (snapshots regenerated, 4 added 0 removed), check:i18n (CLI closure built), plugin-teardown --self-test (fixture commit fetched), ui vitest scripts/ (SIGKILL while sharing the box; idle re-run 172 files green). CI at a0607f1e: Check Changeset fixed (minor -> patch for Metadata-protocol none); rest pending at report time.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "files_changed": 27, "line_budget": "S/M card; +417/-64 incl. 11 translation bundles, 2 generated snapshots and 4 test files", "deviations": [ "changeset first graded minor for spec and app-shell; Check Changeset requires patch under Metadata-protocol: none, fixed in a0607f1e", "route: shared predicate in spec instead of a ui copy of the type list (same precedent as isMaskedOnReadFieldType, #20141); adds 4 public spec exports, declared Clause-②: yes (widening)" ], "mcp_calls": "3 — mcp__github__get_job_logs x3 (read only)", "api_writes": "3 — relay label-write (claim comment + labels + assign, one stroke), relay pr_create #36580, this os-dev-report comment", "open_questions": [ { "question": "New public names: widget key `field-history`, spec exports `fieldChangeValuesShown`, `NO_LINE_VALUE_FIELD_TYPES`, `FieldChangeValuesField`, `FieldChangeValuesObject`. Seat's call.", "options": [ "A keep as built", "B rename" ], "recommendation": "A: they follow isMaskedOnReadFieldType / MASKED_ON_READ_FIELD_TYPES naming" }, { "question": "Contract review owed (spec src/** non-test + Clause-② yes) at head a0607f1e.", "options": [ "route to L2 thread" ], "recommendation": "route" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: #36290 · Studio FieldDesigner / ObjectFieldInspector / ObjectSettingsPanel have no fieldHistory control; noted, not filed" ] }Stamped 2026-11-23T00:51Z.
Generated by Claude Code
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPedgY4mKE12ad7oAo
Thread session:
session_01ADHkmPedgY4mKE12ad7oAoACCEPT → PR #36580 comment 7089819969 (head
e285ca09502985b49cddd2bb50a0387a5c4549f1, 2026-11-23T02:17Z). Contract review PASS on the same head: 7089359334. Landing goes to the seat.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmPedgY4mKE12ad7oAo
Thread session:
session_01ADHkmPedgY4mKE12ad7oAoClosed by PR #36580, merged at merge commit
7501d0cebd0e17ba7c60383504643c26b2062ad9(2026-11-23T02:50Z).pm:dispatchedremoved on close;domain:ui,area:uxand the assignee stay.feat(studio): the Field History setting offers Default, On and Off, a…