Repository navigation
Description
repo:cloud#1 · os-warren · session_01JQwxbZSA7o5vcLjQjM1myV
Filing gate: ③ maintainer-directed. Source: topic #36996. Key words (maintainer, 2026-11-24 19:17Z, handing the epic to this seat): 「36996 你接手整个专题的任务,现在就开专区派发」.
Grading: area:build · Feature · p2 (topic child at the epic's level) · reach: n/a (new capability) · evidence: read.
维护者速读
- 做什么:应用作者在 Studio 里新建和编辑资料包,用法和编辑技能一样:选根对象,选字段,选关联列表及其列,选正文字段,然后发布。
- 谁受益:不写代码的应用作者。ADR-0088 准入条件 2(运行时可编辑)要靠它兑现。
- 不做会怎样:资料包只能写在代码包里。
- 需要你做的:无。
What
Implements ADR-0160 D1, clause 2 (runtime authoring):
- A spec form file for
ai_context, by the precedent ofpackages/spec/src/ai/skill.form.ts. The epic's lane says ui; ADR-0160's split note says the form is a spec file.- Root-object fields use the generic
field-multiblock withdependsOn: 'object'(precedent:page.form.ts). - The related lists use
related-list-entries(precedent:object.form.ts).
- Root-object fields use the generic
- The Studio authoring surface for the kind (list, create, edit, publish) through the metadata API. Field pickers are scoped to the root object and, for each related entry, to that child object. D1's author-defect reports show at save; 37140 跟进:资料包(ai_context)的作者错误在保存时报出 #37176 builds the at-save validation.
Acceptance
- Expected
Metadata-protocol: none: no new key. If the PR adds one, it declares it. - An author creates a pack in Studio, and
get_record_contextserves it. This needs a host that mounts the service: hand-mounted in tests, or through Open runtime:requires: ['record-context']mounts the record-context service, soget_record_contextexists without hand wiring #37189'srequires: ['record-context'].
Dependencies (added 2026-11-25)
Added by the maintainer's session (maintainer · os-bob · session_012dn2AecKpLaYkUtNRiqtby) after an independent Fable review of rows 5–10, which the maintainer accepted: 「同意你的建议」.
- 37140 跟进:资料包(ai_context)的作者错误在保存时报出 #37176 builds the at-save author-defect reports this card shows, and says it lands before this card.
- Soft dependency: 37140 跟进:资料包(ai_context)按包区分同名,补进 ADR-0150 的分桶表 #37180. Which app package a pack created in Studio belongs to waits on that card's ruling.
Blocked-by: #37140
Blocked-by: #37176
Parent: #36996 (row 7). Reader: the epic's owning seat (repo:cloud#1), which dispatches it when row 5 merges.
Dedupe (objectstack, is:issue, open and closed): ai_context 3 (#36996, #36997, #37001; none on authoring) · "context pack" 11 (no Studio card on it).
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T10:36Z
pm:blocked→pm:queue. Its blockers 记录 AI 问询 5:资料包类型 ai_context、渲染服务与 get_record_context 工具(MCP) #37140 and 37140 跟进:资料包(ai_context)的作者错误在保存时报出 #37176 are closed (37140 跟进:资料包(ai_context)的作者错误在保存时报出 #37176 via PR feat(lint): report ai_context author defects at save (validateAiContext on the runtime publish door) #37247).objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As92T28dA9wc7wtu3iE
Claim: PM loop (seat-run dev) — card thread, claimed at 2026-11-25T12:33Z
Session:
session_011y7As92T28dA9wc7wtu3iEThread session:
session_011y7As7YaCaudBfnWZagi4RAccount:
os-aliceBranch:
claude/project-thread-nvpe6wWorktree:
objectstack-issue-37143Domain:
domain:spec(form file) +domain:ui(Studio surface); routed to this seat by triage (7159949524: area:build p2 → repo:objectstack#7)Seat:
repo:objectstack#7File surface:
packages/spec/src/ai/**(new ai_context form file and its test), the form registry file(s) the skill form is registered in,ui/packages/app-shell/src/**Studio authoring for this kind, its i18n keys underui/packages/i18n/src/locales/**, generated artefacts those changes regenerate,.changeset/**(stop on breach; explain in the report)Container & model:
L,mode:thread,model: default opus (dispatch-gates --tier on packages/spec/src/ai/ai-context.form.ts: no path-derived mandate; thread reports claude-opus-5-5 served),effort: high(L card with design judgement)Clause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 7159949524
Premise: holds (seat read at origin/main f9fda2a: no ai_context form file; ai_context registered with allowRuntimeCreate true); the thread re-checks before code
Serial constraints cleared: blockers #37140 and #37176 closed; soft dependency #37180 closed (the thread reads its outcome); no other seat dev in flight (concurrency 1; #37279 in the merge queue, no file overlap).
L2: owed after hand-back (non-test packages/spec/src/**), at the contract-review tier.
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As6JrAPNfuwC2RLXXGu
Claim amendment 1 — #37143 (2026-11-25T13:59Z)
Asked by the card thread (session_011y7As7YaCaudBfnWZagi4R): adding the
ai_contextform grows the platform-objectsmetadataFormscatalog by 18 leaves, which reds two literal-count pins outside the claimed surface.packages/platform-objects/src/apps/translations/bare-type-display-echo-decisions.test.ts(ai_contextmoves from the bare class to the panel class: BARE 16→15, PANEL 17→18, BARE_LEAVES 27→26, dropai_contextfrom the bare-type list)packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts(positive control 825→843 once the 18 leaves are authored in zh-CN / ja-JP / es-ES)No other edit to either file. Same pattern as earlier form-adding PRs.
yes (widening). The diff adds a public export (aiContextFormin@objectstack/spec/ai, api-surface regenerated) and/meta/typesnow serves a form forai_context; the criterion is "does the card widen the accepted set or the public surface", sonowould be a false declaration. CopyClause-②: yes (widening)into the PR body and the changeset body.Metadata-protocolstays as claimed unless the diff adds an authorable key; say so in the report if it does.packages/spec/srcsurface). Hand-back address: seat thread cmsg_01NoziMoftaSPmzgKNjJGePHNLN2yiafBSuB9mbEEMnRSB.test(app-shell): classify the context-pack related-lists block as an …
fix(studio): an emptied pack picker removes its key, and the related-…
chore(changeset): the rework's two behaviours (#37143)
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As6JrAPNfuwC2RLXXGu
os-dev-report
os-dev report — #37143, after rework 1 (2026-11-25T17:25Z)
Card thread session_011y7As7YaCaudBfnWZagi4R. Served: claude-opus-5-5, effort high (matches the dispatch order's opus/high). One report for both rounds: the first report (head 3a215ad) could not be posted (fleet-write relay runs 45650965618 and 45651047006 got HTTP 500 from GitHub on POST comments, nothing landed).
{ "issue": 37143, "status": "done", "branch": "claude/project-thread-nvpe6w", "pr": "https://github.com/objectstack-ai/objectstack/pull/37315", "head": "6ada5fd590d9bd594eb8e128a2ec3b0c77cdada4", "session": "session_011y7As7YaCaudBfnWZagi4R", "model_effort": "claude-opus-5-5 / high (served, read from get_session)", "premise_still_valid": true, "summary": "ADR-0160 D1 clause 2: aiContextForm (packages/spec/src/ai/ai-context.form.ts, exported from @objectstack/spec/ai, registered as ai_context) by the skill.form.ts precedent, and a pack face for the related-list-entries block (ContextPackRelatedEntries.tsx): every reference field of a served object pointing at the root is offered, a pick is written {object, field}, each entry's columns come from the child object, bounds and emptied keys handled, an unlinked stored entry kept and marked. #37180 read: PR #37209 merged, ai_context is package-scoped beside skill; Studio saves it into the active package like a skill. Rework 1 (L2 S1, S2): field-multi drops the key when the last chip of a minItems>=1 array is removed; a composite drops a cleared sub-field and is removed when left empty while its schema requires a key (pack body after None); the related-lists block reads getTypeStatus('object') and, while loading or after a failure, marks nothing unlinked and says loading / could not load. 3a215ad9 also added ContextPackRelatedEntries.tsx to the openPathObjectReaders-12811 reader table (kind off). No key added to AiContextSchema.", "tests": "Rework at 6ada5fd5: ui `pnpm exec vitest run packages/app-shell/src/views/metadata-admin/ packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts` -> Test Files 800 passed (800), Tests 8588 passed, 1 skipped; ContextPackRelatedEntries-37143.test.tsx 12/12. Ablation (scripts/ablation-replace.mjs, one at a time, blob == HEAD after each restore): field-multi prune off -> 1 failed of 12 (its pin); composite empty-required prune deleted -> 1 failed of 12 (its pin); catalog forced ready -> 1 failed of 12 (its pin). Earlier rounds: spec 894 files green, ai-context.form.test.ts 3/3; platform-objects 126/2161; first-round ablation of the pack branch 7 of 8 red. Live Studio pass (showcase `objectstack dev --seed-admin`, ui console served by Vite against it, Chromium/Playwright, at the rework source): create project_brief on showcase_project -> PUT draft 200 + publish 200; edit: fields name,status; add picker offered the 4 links to the root; columns offered were showcase_task's; body chosen then None -> saved body had no `body` key, 200 + publish 200; second edit removed both root fields -> saved without `fields`, 200; MCP get_record_context(objectName showcase_project, context project_brief) answered the pack with the task rows' title/status. Evidence: /mnt/project-files/seat7/37143-dogfood/ (screenshots, request log, grc.json).", "gates": "dispatch-gates --repo objectstack-ai/objectstack --commands: 93 families, run at 6ada5fd5 with exit codes captured before any pipe; --ran: '93 derived, 92 run, 1 NOT-MEASURED, 0 UNRUN' (exit 0); NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test (exit 3, prerequisite not met in this container). CI at 6ada5fd5: 57 success, 10 expected skip, 2 failure = Test UI (5/16) + its Test UI aggregator; the one failing test is ui/packages/auth/src/__tests__/AuthProvider.test.tsx 'updateUser keeps the signed-in identity (objectstack#36972)' (mounts 2 vs 1), in a package this PR does not touch; it passed 3 of 3 local runs at 6ada5fd5 -> read as a flake; needs a job re-run, which this card thread cannot do. l1-face --pr 37315 at 6ada5fd5: FLAGGED all-checks for that failure only. CI at 3a215ad9 was 59 success / 0 failed and l1-face CLEAN.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "36 files, hand-written non-generated about +860/-20 (ContextPackRelatedEntries.tsx ~400, its test ~225, ai-context.form.ts 60, SchemaForm.tsx +24, widgets.tsx +39); the rest is regenerated i18n bundles/source-hashes and api-surface/export-origins", "files_changed": [ ".changeset/37143-ai-context-studio-form.md", "packages/spec/src/ai/ai-context.form.ts, ai-context.form.test.ts, index.ts; packages/spec/src/system/metadata-form-registry.ts; packages/spec/api-surface/ai.json; packages/spec/export-origins/ai.json", "packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts, *.source-hashes.generated.ts; bare-type-display-echo-decisions.test.ts, object-lifecycle-panel-echo-decisions.test.ts (claim amendment 1)", "ui/packages/app-shell/src/views/metadata-admin/ContextPackRelatedEntries.tsx, ContextPackRelatedEntries-37143.test.tsx, widgets.tsx, SchemaForm.tsx, metadata-form-zh-cn.ts", "ui/packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts", "ui/packages/i18n/src/namespaces/studio/en.ts, zh.ts" ], "tool_calls": "about 300 in this card thread, mostly Bash", "mcp_calls": "5 — mcp__github__issue_read x4, mcp__github__get_job_logs x1; all reads, no MCP write", "api_writes": "git push (branch, several pushes); fleet-write pr_create (draft PR #37315); fleet-write issue_patch of the PR body (run 45664368044, read back identical); this report via post-stamped.mjs; two earlier post-stamped attempts stored nothing (HTTP 500)", "deviations": [ "试行偏离 1: no in-session wait on CI; send_later (<=30 min) per CI read", "试行偏离 2: local runs limited to the affected packages + the derived gate families; app-shell suite narrowed to metadata-admin/ + console reader pin (+ __tests__/ in round 1); the rest cited from CI Test UI", "试行偏离 3: scripts/pm/** used through --help, dry runs and refusals only", "试行偏离 4: l1-face.mjs --pr 37315 run before each hand-back; at 6ada5fd5 its only flag is the unrelated auth flake", "my own error, recovered: the first ablation pass ran on uncommitted edits and ablation-replace's restore returned three files to HEAD; the edits were re-applied verbatim from the same script, committed, and the three ablations re-run on the committed head", "i18n keys live in ui/packages/i18n/src/namespaces/studio/{en,zh}.ts, not locales/** (seat accepted)", "surface widened by claim amendment 1 (two platform-objects pin files)", "Clause-② corrected by the seat to yes (widening); PR body and changeset carry it; Metadata-protocol none", "rework widens the change to two generic editor behaviours (field-multi with minItems>=1, composite prune), both schema-driven, inside ui/packages/app-shell/src/**; changeset says so", "early wip commits on the branch lack the trailer pair (platform-assigned branch, no force-push)", "origin/main merged once (7abe9ba9)", "NOT MEASURED locally: @object-ui/app-shell and @object-ui/i18n type-check (no ui dist/ here); CI Type Check UI is the reading" ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["class: b · reach: CI Test UI shard · ui/packages/auth/src/__tests__/AuthProvider.test.tsx objectstack#36972 pin failed once (mounts 2 vs 1) at 6ada5fd5, green 3/3 locally · dedupe: AuthProvider updateUser remount flake", "carrier: seat · noted, not filed"] }Owed: L2 delta review (fresh reviewer) of 3a215ad..6ada5fd; a re-run of Test UI (5/16).
Generated by Claude Code
fix(studio): a composite whose required keys all carry a default keep…
chore(changeset): the default-carrying composite keeps {} (#37143)
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As6JrAPNfuwC2RLXXGu
os-dev-report
os-dev report — #37143, rework 2 (2026-11-25T18:39Z)
Card thread session_011y7As7YaCaudBfnWZagi4R. Served: claude-opus-5-5, effort high. Delta since the rework-1 report (7169483447): 6ada5fd..4b6929e, two commits (35232b4 fix, 4b6929e changeset), 3 files, +80/-10.
{ "issue": 37143, "status": "done", "branch": "claude/project-thread-nvpe6w", "pr": "https://github.com/objectstack-ai/objectstack/pull/37315", "head": "4b6929e4b6886bcb5c66e67f797c5d94c78d7482", "session": "session_011y7As7YaCaudBfnWZagi4R", "model_effort": "claude-opus-5-5 / high (served)", "premise_still_valid": true, "summary": "S3 (delta L2 7169831590): compositeWith (SchemaForm.tsx) now removes an emptied composite only when emptyObjectRefused(schema): a required key whose property node has no `default`. /meta/types serves the output derivation, where a defaulted key is listed as required, so view pagination and selection (and every other composite whose required keys all carry defaults) keep `{}` as before; the pack's body (field, no default) and e.g. view kanban (groupByField, no default) are still removed when emptied. Sweep of every composite row of METADATA_FORM_REGISTRY against the served derivation: all-defaulted rows = view selection, pagination, gallery, userFilters, appearance, userActions, navigation, sharing; object enable, access, publicSharing; field currencyConfig; hook retryPolicy; report dateRange; dashboard header, dateRange; page interfaceConfig.appearance, interfaceConfig.userActions; agent planning; flow errorHandling (all keep {}). Rows with a required key lacking a default (removed when emptied, `{}` being refused by the schema anyway): object lifecycle (+ retention, ttl, storage, archive), field referenceDeletedWhen, summaryOperations, report chart, view kanban, calendar, gantt, timeline, chart, addRecord, page interfaceConfig.addRecord, agent model, structuredOutput, ai_context body. action body/onSuccess have no node in the output derivation (served from the authoring retry), not judged here. One behaviour that stays from rework 1 and is worth the reviewer's eye: a composite sub-field cleared to '' now drops its key (it used to be stored as ''), as setField already does at the top level.", "tests": "ui `pnpm exec vitest run packages/app-shell/src/views/metadata-admin/` at 4b6929e4: Test Files 799 passed (799), Tests 8589 passed, 1 skipped. ContextPackRelatedEntries-37143.test.tsx 16/16: new pins built on the SERVED derivation (z.toJSONSchema(getMetadataTypeSchema(type), { unrepresentable: 'any' }), through $refs and the union branch declaring the key): view pagination, selection, gallery keep {} (each asserts the key is required AND carries a default in that node); view kanban is removed; the pack's PACK_SCHEMA now also comes from the served derivation, body.field asserted default-less. Ablation (scripts/ablation-replace.mjs, on the committed head): default check removed -> 3 failed of 16 (exactly the three keep-{} pins), restored, blob == HEAD.", "gates": "dispatch-gates --commands at 4b6929e4: 93 families, exit codes captured before any pipe; --ran: '93 derived, 92 run, 1 NOT-MEASURED, 0 UNRUN' (exit 0); NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test (exit 3, prerequisite not met here). CI at 4b6929e4: 59 success, 10 expected skip, 0 failed. l1-face --pr 37315: CLEAN, 13 items, none flagged.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "35 files, +1513/-25 overall; this delta 3 files, +80/-10 (SchemaForm.tsx +21/-7, test +58/-2, changeset 1 line)", "files_changed": ["ui/packages/app-shell/src/views/metadata-admin/SchemaForm.tsx", "ui/packages/app-shell/src/views/metadata-admin/ContextPackRelatedEntries-37143.test.tsx", ".changeset/37143-ai-context-studio-form.md"], "tool_calls": "about 60 for rework 2", "mcp_calls": "0 in rework 2 (5 reads in total for the card: issue_read x4, get_job_logs x1; no MCP write)", "api_writes": "git push (one push, 2 commits); fleet-write issue_patch of the PR body (run 45677223702, read back identical, 13209 bytes); this report via post-stamped.mjs", "deviations": [ "试行偏离 1: no in-session wait on CI; one send_later (25 min)", "试行偏离 2: local runs limited to app-shell metadata-admin/ + the derived gate families; the rest cited from CI", "试行偏离 3: scripts/pm/** used through --help, dry runs and refusals only", "试行偏离 4: l1-face.mjs --pr 37315 run before hand-back: CLEAN", "the served derivation in the test is z.toJSONSchema output mode, the call toJsonSchemaSafe makes first; the server's vendor marks (markErasedAuthoringInput) and stripUnauthorableProperties are not applied in the test, and change neither `required` nor `default`", "the composite sweep was a one-off scratch script over packages/spec/dist (METADATA_FORM_REGISTRY x getMetadataTypeSchema), not committed; its result is in this summary and the PR body" ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }Owed: delta review of 6ada5fd..4b6929e (S3).
Generated by Claude Code
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As6JrAPNfuwC2RLXXGu
Closed by PR #37315 (merged, read 2026-11-25T19:18Z). Clearing
pm:dispatched.