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
Studio knowledge-source form shows "Searchable by AI agents" and "Sync on record changes" OFF when unset, though both default ON #38420
Found by the release-candidate priority:P0 round #38417 at main ff69bcab; the full per-clause evidence is on that record.
On a source that stores neither aiExposed nor refresh.onRecordChange, both switches render aria-checked="false" in read-only and edit mode, while the schema default is true, the help text says "On by default", and the source is in fact searched. Reproduced on two fresh loads at ff69bca (148c6eb#38329). Likely the generic form's rendering of an unset boolean whose default is true; other types not checked. Done when an unset default-true switch renders ON.
QA-source: #38417 · off-checklist knowledge-retrieval · leg C (Studio knowledge-source form)
Triage: lands in the generic form's boolean rendering in ui/ (an unset switch whose schema default is true renders OFF), first seen on the Studio knowledge-source form (aiExposed, refresh.onRecordChange) · area:studio → area:ux (area:studio is not one of the North Star areas) · domain:ui · Bug · p2 · pm:queue · size S. Rationale: the source is searched and the help says "On by default", yet both switches show OFF in read-only and edit mode, so an admin reads the opposite of what runs. That is "looks wrong / cannot be understood", so area:ux, and the UX rule gives p2. Reproduced twice in RC round #38417. At claim, check whether other default-true booleans share the renderer; the done-when covers every unset default-true switch, not only these two.
Claim: PM loop round 1
Session: session_016WV4d13AraSmVmgVtCvkWk
Account: os-elon-musk
Branch: claude/issue-38420-default-true-switch
Worktree: objectstack-issue-38420
Domain: domain:ui
Seat: repo:objectstack#1
File surface: the generic metadata-form boolean/switch renderer under ui/packages/** (the dev names the file at first push), its new test file, ui/.changeset/*.md; packages/spec/src/ai/knowledge-source.metadata-form.ts only if the form declares no default the renderer can read (stop and report before touching spec)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no MANDATORY line), effort: high (reason: S but not mechanical — locating the shared renderer and its other default-true callers, M treatment)
Clause-②: no
Metadata-protocol: none
Responsibility: @object-ui/* metadata-form renderer (objectstack, ui/**) — an unset boolean whose schema default is true renders OFF | none | every admin reading a knowledge source (and any other default-true switch) in Studio
Thread-read: 7248437742
Premise: holds — reproduced on two fresh loads in #38417 at ff69bca (148c6eb#38329)
Serial constraints cleared: none read — the renderer file is not yet named; check-handover.mjs --inflight is re-run on it before the first push, and the dev runs overlap-check.mjs before each push
Maintainer's word for this wave, verbatim: 「有问题都修,暂时也只是发 next 版」 (2026-11-29T00:44Z, os-elon-musk fleet project). Card from QA round #38417.
{
"issue": 38420,
"status": "done",
"branch": "claude/issue-38420-default-true-switch",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38459",
"session": "session_016WV4d13AraSmVmgVtCvkWk",
"premise_still_valid": true,
"summary": "Premise held at base 0c1b2ffe: the FieldControl boolean branch of ui/packages/app-shell/src/views/metadata-admin/SchemaForm.tsx drew checked={!!value}, so every unset boolean read OFF, while the served schema already carries default: true for aiExposed and refresh.onRecordChange (z.boolean().default(true).optional(), emitted by z.toJSONSchema). The form declares no defaultValue and needs none, so packages/spec is untouched. The Switch now draws the declared schema default for an unset key (isUnsetFieldValue) and the stored boolean otherwise. This is the flow inspector's existing 'show, do not write' rule: nothing is written until the author toggles, per the display-only ruling. Every default-true boolean row of a registered form shares this one Switch. At 03896ddf the test's walker finds 17 rows on 9 forms: knowledge_source aiExposed and refresh.onRecordChange; skill, agent, app and email_template active; object enable.searchable/apiEnabled/feeds/activities/clone; field sortable; report drilldown and dateRange.allowCustomRange; dashboard header.showTitle/showDescription and dateRange.allowCustomRange.",
"tests": "New SchemaForm.declaredBooleanDefault-38420.test.tsx, run against the real served form (METADATA_FORM_REGISTRY) and z.toJSONSchema(getMetadataTypeSchema(type)). Cases: knowledge-source edit and read-only, both unset switches aria-checked=true; explicit false reads false and explicit true reads true; an untouched form calls onChange 0 times, and the first click writes aiExposed:false with no refresh key; every enumerated default-true row renders ON, with a floor of aiExposed, refresh.onRecordChange and skill.active; CONTROL: a boolean with no declared default, unset, reads false. At 03896ddf, under the lock, the new file plus SchemaForm.optionalEnumUnset-29733, SchemaForm.requiredMarker-10367, SchemaForm.widgetLabelling and ResourceEditPage.formBoundObject-37309: 'Test Files 5 passed (5) / Tests 104 passed (104)', VERDICT command-exit 0. Ablation with scripts/ablation-replace.mjs (checked={!!value}; app-shell is a vitest src alias, so no build or dist leg): 'Tests 4 failed | 2 passed (6)'. The four unset cases went red; the explicit-value and control cases stayed green. Restore read 'ok restored: blob == HEAD (3095ad68c426) and git diff HEAD is empty'.",
"gates": "Local: the 38 families from dispatch-gates --commands --repo objectstack-ai/objectstack, run at 862c74b2, each exit captured before any pipe: 37 exit 0. The 38th, pnpm --dir ui exec vitest run scripts/, exit 1: 'Tests 1 failed | 5158 passed | 2 skipped', a 15000ms timeout in js-comment-mask-returns-interpolation-9424.test.ts on a contended box, which passed alone ('Tests 8 passed (8)'). check:test-source-alias was red on the new test (dynamic-import reach of @objectstack/lint and @object-ui/plugin-detail); 03896ddf added the module-top imports, and it is exit 0 there. Rerun at 03896ddf, all exit 0: check:test-source-alias, check:undeclared-dep-imports, check:cross-package-test-inputs, check:nul-bytes, check:gitlink-declared, ui check:new-line-citations ('0 new citation(s)'). --ran: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero)'. NOT MEASURED: @object-ui/app-shell type-check, because the @object-ui/* dists were not built ('Cannot find module @object-ui/components' etc.); CI Type Check UI carries it. CI check-runs on 03896ddf at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (7 jobs), PR-body guards and Type Check (4 jobs) all in_progress; Borrowed queue verdict, Queue verdict, Schedule gate, 18.x upgrade harness and Packed-tarball smoke skipped. CI convergence is the seat's.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 relay legs, all as objectstack-fleet[bot]: one pr_create stroke (POST /repos/objectstack-ai/objectstack/pulls draft, then POST /repos/objectstack-ai/objectstack/issues/38459/assignees os-elon-musk; read back 7102 bytes sent, 7102 stored, identical) and one post-stamped report comment (POST /repos/objectstack-ai/objectstack/issues/38420/comments). git push is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · DynamicConfigWidget (widgets.tsx, the dynamic-config widget) draws a schema-driven boolean as Boolean(cur), the same shape. Nothing in the tree populates WidgetContext.dynamicSchemas, so no default-true input reaches it (zero pull). Noted in the PR's Acceptance notes, not filed."
],
"files_changed": [
"ui/packages/app-shell/src/views/metadata-admin/SchemaForm.tsx",
"ui/packages/app-shell/src/views/metadata-admin/SchemaForm.declaredBooleanDefault-38420.test.tsx",
".changeset/38420-unset-switch-shows-default.md"
],
"line_budget": "+205 / -1 over 3 files (dispatch-gates reading at 03896ddf), under the 3000 human-merge threshold; no skills/** touched",
"deviations": [
"Changeset written to the root .changeset/, not ui/.changeset/ as the dispatch file surface named: ui/AGENTS.md says the root config does not read ui/.changeset/ and new entries go to the root. The conflict is named here.",
"Commit trailers use AGENTS.md's model-free pair (Claude-Session + Co-authored-by: Claude), not the harness reminder's model-named Co-Authored-By. The PR footer uses AGENTS.md's session-URL footer form.",
"Local type-check declared NOT MEASURED and left to CI Type Check UI (the narrowing is declared in gates).",
"My first background closure build passed --concurrency=2 after build (a forwarded flag); I killed that call, my own recorded PID, while it was still queued and before it acquired. It was re-sent with --workspace-concurrency=2."
]
}
Delivered by PR #38459, merged as 2052c89. An unset switch on a Studio metadata form now shows its schema default (17 default-true rows on 9 forms, among them both knowledge-source switches); nothing is written until the author toggles. Nothing left on this card; pm:dispatched removed.
Activity
objectstack-fleet commentedon Nov 29, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Triage: lands in the generic form's boolean rendering in
ui/(an unset switch whose schema default istruerenders OFF), first seen on the Studio knowledge-source form (aiExposed,refresh.onRecordChange) · area:studio → area:ux (area:studiois not one of the North Star areas) · domain:ui · Bug · p2 · pm:queue · size S. Rationale: the source is searched and the help says "On by default", yet both switches show OFF in read-only and edit mode, so an admin reads the opposite of what runs. That is "looks wrong / cannot be understood", so area:ux, and the UX rule gives p2. Reproduced twice in RC round #38417. At claim, check whether other default-true booleans share the renderer; the done-when covers every unset default-true switch, not only these two.Recorded 2026-11-29T00:54Z.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4d13AraSmVmgVtCvkWk
Claim: PM loop round 1
Session:
session_016WV4d13AraSmVmgVtCvkWkAccount:
os-elon-muskBranch:
claude/issue-38420-default-true-switchWorktree:
objectstack-issue-38420Domain:
domain:uiSeat:
repo:objectstack#1File surface: the generic metadata-form boolean/switch renderer under
ui/packages/**(the dev names the file at first push), its new test file,ui/.changeset/*.md;packages/spec/src/ai/knowledge-source.metadata-form.tsonly if the form declares no default the renderer can read (stop and report before touching spec)Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no MANDATORY line), effort: high (reason: S but not mechanical — locating the shared renderer and its other default-true callers, M treatment)
Clause-②: no
Metadata-protocol: none
Responsibility:
@object-ui/*metadata-form renderer (objectstack,ui/**) — an unset boolean whose schema default is true renders OFF | none | every admin reading a knowledge source (and any other default-true switch) in StudioThread-read: 7248437742
Premise: holds — reproduced on two fresh loads in #38417 at ff69bca (148c6eb #38329)
Serial constraints cleared: none read — the renderer file is not yet named;
check-handover.mjs --inflightis re-run on it before the first push, and the dev runsoverlap-check.mjsbefore each pushMaintainer's word for this wave, verbatim: 「有问题都修,暂时也只是发 next 版」 (2026-11-29T00:44Z, os-elon-musk fleet project). Card from QA round #38417.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4d13AraSmVmgVtCvkWk
os-dev-report
{ "issue": 38420, "status": "done", "branch": "claude/issue-38420-default-true-switch", "pr": "https://github.com/objectstack-ai/objectstack/pull/38459", "session": "session_016WV4d13AraSmVmgVtCvkWk", "premise_still_valid": true, "summary": "Premise held at base 0c1b2ffe: the FieldControl boolean branch of ui/packages/app-shell/src/views/metadata-admin/SchemaForm.tsx drew checked={!!value}, so every unset boolean read OFF, while the served schema already carries default: true for aiExposed and refresh.onRecordChange (z.boolean().default(true).optional(), emitted by z.toJSONSchema). The form declares no defaultValue and needs none, so packages/spec is untouched. The Switch now draws the declared schema default for an unset key (isUnsetFieldValue) and the stored boolean otherwise. This is the flow inspector's existing 'show, do not write' rule: nothing is written until the author toggles, per the display-only ruling. Every default-true boolean row of a registered form shares this one Switch. At 03896ddf the test's walker finds 17 rows on 9 forms: knowledge_source aiExposed and refresh.onRecordChange; skill, agent, app and email_template active; object enable.searchable/apiEnabled/feeds/activities/clone; field sortable; report drilldown and dateRange.allowCustomRange; dashboard header.showTitle/showDescription and dateRange.allowCustomRange.", "tests": "New SchemaForm.declaredBooleanDefault-38420.test.tsx, run against the real served form (METADATA_FORM_REGISTRY) and z.toJSONSchema(getMetadataTypeSchema(type)). Cases: knowledge-source edit and read-only, both unset switches aria-checked=true; explicit false reads false and explicit true reads true; an untouched form calls onChange 0 times, and the first click writes aiExposed:false with no refresh key; every enumerated default-true row renders ON, with a floor of aiExposed, refresh.onRecordChange and skill.active; CONTROL: a boolean with no declared default, unset, reads false. At 03896ddf, under the lock, the new file plus SchemaForm.optionalEnumUnset-29733, SchemaForm.requiredMarker-10367, SchemaForm.widgetLabelling and ResourceEditPage.formBoundObject-37309: 'Test Files 5 passed (5) / Tests 104 passed (104)', VERDICT command-exit 0. Ablation with scripts/ablation-replace.mjs (checked={!!value}; app-shell is a vitest src alias, so no build or dist leg): 'Tests 4 failed | 2 passed (6)'. The four unset cases went red; the explicit-value and control cases stayed green. Restore read 'ok restored: blob == HEAD (3095ad68c426) and git diff HEAD is empty'.", "gates": "Local: the 38 families from dispatch-gates --commands --repo objectstack-ai/objectstack, run at 862c74b2, each exit captured before any pipe: 37 exit 0. The 38th, pnpm --dir ui exec vitest run scripts/, exit 1: 'Tests 1 failed | 5158 passed | 2 skipped', a 15000ms timeout in js-comment-mask-returns-interpolation-9424.test.ts on a contended box, which passed alone ('Tests 8 passed (8)'). check:test-source-alias was red on the new test (dynamic-import reach of @objectstack/lint and @object-ui/plugin-detail); 03896ddf added the module-top imports, and it is exit 0 there. Rerun at 03896ddf, all exit 0: check:test-source-alias, check:undeclared-dep-imports, check:cross-package-test-inputs, check:nul-bytes, check:gitlink-declared, ui check:new-line-citations ('0 new citation(s)'). --ran: '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero)'. NOT MEASURED: @object-ui/app-shell type-check, because the @object-ui/* dists were not built ('Cannot find module @object-ui/components' etc.); CI Type Check UI carries it. CI check-runs on 03896ddf at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (7 jobs), PR-body guards and Type Check (4 jobs) all in_progress; Borrowed queue verdict, Queue verdict, Schedule gate, 18.x upgrade harness and Packed-tarball smoke skipped. CI convergence is the seat's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 relay legs, all as objectstack-fleet[bot]: one pr_create stroke (POST /repos/objectstack-ai/objectstack/pulls draft, then POST /repos/objectstack-ai/objectstack/issues/38459/assignees os-elon-musk; read back 7102 bytes sent, 7102 stored, identical) and one post-stamped report comment (POST /repos/objectstack-ai/objectstack/issues/38420/comments). git push is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · DynamicConfigWidget (widgets.tsx, the dynamic-config widget) draws a schema-driven boolean as Boolean(cur), the same shape. Nothing in the tree populates WidgetContext.dynamicSchemas, so no default-true input reaches it (zero pull). Noted in the PR's Acceptance notes, not filed." ], "files_changed": [ "ui/packages/app-shell/src/views/metadata-admin/SchemaForm.tsx", "ui/packages/app-shell/src/views/metadata-admin/SchemaForm.declaredBooleanDefault-38420.test.tsx", ".changeset/38420-unset-switch-shows-default.md" ], "line_budget": "+205 / -1 over 3 files (dispatch-gates reading at 03896ddf), under the 3000 human-merge threshold; no skills/** touched", "deviations": [ "Changeset written to the root .changeset/, not ui/.changeset/ as the dispatch file surface named: ui/AGENTS.md says the root config does not read ui/.changeset/ and new entries go to the root. The conflict is named here.", "Commit trailers use AGENTS.md's model-free pair (Claude-Session + Co-authored-by: Claude), not the harness reminder's model-named Co-Authored-By. The PR footer uses AGENTS.md's session-URL footer form.", "Local type-check declared NOT MEASURED and left to CI Type Check UI (the narrowing is declared in gates).", "My first background closure build passed --concurrency=2 after build (a forwarded flag); I killed that call, my own recorded PID, while it was still queued and before it acquired. It was re-sent with --workspace-concurrency=2." ] }objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4d13AraSmVmgVtCvkWk
ACCEPT → PR #38459 comment 7249953581 · armed for the queue (landing comment 7249957592).
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4d13AraSmVmgVtCvkWk
Delivered by PR #38459, merged as 2052c89. An unset switch on a Studio metadata form now shows its schema default (17 default-true rows on 9 forms, among them both knowledge-source switches); nothing is written until the author toggles. Nothing left on this card;
pm:dispatchedremoved.