Skip to content

fix(mcp, lint): create_record and update_record over stdio answer droppedFields and no longer echo a dropped value; a flow write to a roll-up summary field draws a warning - #35807

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-35114-rollup-readonly-followups
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-35114-rollup-readonly-followups

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #35114

Clause-②: yes
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:通过本机命令行方式接入 MCP 的 AI 调用方,新建或修改记录时若送了只读字段或汇总字段的值,回答里现在会列出被丢掉的字段,不再把没存下的值当成已存的值回给它;流程作者在流程里写汇总字段时,校验和构建会给出一条提醒(不会让构建失败);文档补上了公开表单提交和克隆这两个同样会丢值的入口。
  • 为什么做:这是汇总字段只读收口卡的三个后续小问题,替通过本机命令行接入 MCP 的调用方和写流程的作者补上「值被丢了却看不出来」的缺口。
  • 出错会怎样:本机命令行方式的 MCP 回答多一个字段、少回显被丢的值,流程校验多一条提醒,存储与构建结果都不变;可直接撤回本 PR。
  • 要你做什么:无。

What changes

N1 — the stdio MCP bridge reports the drop. packages/mcp/src/stdio-data-bridge.ts:

  • create and update now pass an onFieldsDropped listener to engine.insert / engine.update and answer droppedFields exactly as the protocol's createData / updateData answer it behind the HTTP bridge: the engine's events as emitted, present only when at least one key was dropped (droppedFieldsMember).
  • The answer's record no longer echoes a dropped caller value (withoutDroppedKeys): on create the payload fills only keys the write result omits and the engine did not drop; on update the read-path row stands for every dropped key.
  • The update path had the same gap with the same shape, so it is fixed here too. It was the half where the echo was measured: update_record answered biggest: 99 and locked: 'forged' over the stored 5 and 'kept'.
  • The stdio answer is not a published spec schema: McpDataBridge.create / update return unknown, and the tool answers the object as JSON. The member added is the one CreateDataResponseSchema / UpdateDataResponseSchema already declare for the HTTP answer. Output addition only; no tool input changes.

N2 — the two missing doors are named in content/docs/data-modeling/fields.mdx (the summary paragraph's door list). Measured on origin/main ef39b2c191 by reading:

The paragraph also says the MCP door covers create and update over HTTP and stdio. Triage 6969043738 ruled that N2 must not edit the consumed .changeset/34672-*; this PR does not touch it, and the new changeset does not restate the 18.6.0 entry (see Acceptance notes).

N3, docs half — content/docs/protocol/objectql/security.mdx. The static readonly section now names the implicit roll-up lock: every summary field is read as readonly: true on create and update, dropped and reported under readonly, refused under strictReadonlyWrites, and that includes a flow's create_record / update_record without runAs: 'system'. Rule 1 (system context) still lets seed data, package installs and the recompute write it.

N3, lint half — a warning, by the area ruling (claim amendment 7035408057, option B). In packages/lint/src/validate-readonly-flow-writes.ts, a create_record / update_record node that does not run as runAs: 'system' and writes a summary roll-up that does not declare readonly: true now draws flow-update-summary-field (FLOW_UPDATE_SUMMARY_FIELD) at warning. Its message says the engine drops the value on create and update alike, and its hint names the node to remove the field from.

  • The branch is flow-local: a private summaryFieldIndex(stack) over the objects as served. The shared buildReadonlyIndex and the hook and action readonly rules are unchanged.
  • A roll-up that declares readonly: true still takes the static branch, so it is still flow-update-readonly-field at error. The same two gates as that branch hold: runAs: 'system' is not reported, and a create on an insert-strip-exempt object (sys_, platform-internal managedBy) is not judged.
  • No build that passes today fails: this is a new warning, and no lint rule judged a summary write before (this is why the ruling chose B).
  • Wiring: the constant is exported from the @objectstack/lint barrel (index.ts), and os explain flow-update-summary-field has an entry in rule-explanations.ts. Both files are outside the claim's file surface; the rule-explanations test requires every entry to be a barrel-exported id. security.mdx names the warning.

.changeset/35114-stdio-mcp-dropped-fields.md: @objectstack/mcp patch and @objectstack/lint patch. Under Clause-②: yes, per claim amendment 2 (7036853719): the new warning code and the new @objectstack/lint export widen the public surface, following the precedent of the field/missing-value-domain changeset. No build fails. Like every warning, it makes os validate --strict and os lint --strict exit 1, with no per-rule switch. The metadata save and publish answers carry it under advisories and never refuse on it: on a flow save whose user-run node writes such a roll-up, and on an object save that makes a field such a roll-up while a live user-run flow of the same package writes it. Read in the tree: validate.ts (--strict treats warnings as errors; strictFailing counts every non-info finding), authoring-rules.ts (validateReferenceIntegrity, commands: ALL), and reference-integrity-suite.ts (validateReadonlyFlowWrites, runtimeTypes: ['flow', 'object'], subjects: ['flows']). In runtime-gate.ts, a non-error finding goes to advisories, on the subject pass too. security.mdx names both --strict runs beside "never blocks a build".

Tests

packages/mcp/src/stdio-data-bridge.dropped-fields.test.ts (new): a real ObjectQL over a row-keeping driver, the real stdio bridge, driven through the create_record / update_record tools:

  • create: a readonly: true column and a max roll-up, both sent, are named in droppedFields (reason readonly), and neither value is in record or stored; control: a create sending neither answers no droppedFields;
  • update: the same two are named, record carries the stored 'kept' / 5, and the store is unchanged; control: an update sending neither answers no droppedFields.

packages/lint/src/validate-readonly-flow-writes.test.ts, a new top-level describe for the roll-up:

  • for create_record and update_record, a user-run write of the roll-up draws exactly one finding: warning, flow-update-summary-field, the exact path and where; the message says both verbs, on one line of at most 200 characters;
  • controls: a declared readonly: true field (a roll-up and a text field) is still flow-update-readonly-field at error; a non-summary field draws nothing; a runAs: 'system' write of the roll-up on either verb draws nothing;
  • the os explain entry names both verbs and says it never blocks a build.
Reverse verification and ablations (one-off, not kept)
  • Whole-file revert of stdio-data-bridge.ts to ef39b2c191 (blob 5cf5d500c8, hash-checked before the run; restored with git checkout HEAD --, blob bd2c6d16c6 equal to HEAD, git diff HEAD empty): Tests 2 failed | 2 passed (4). The two pins were red (expected [] to deeply equal [ 'dfx_acct.biggest:readonly', … ]) and the two controls green.
  • Update echo, through scripts/ablation-replace.mjs (anchor 1 to 0, blob bd2c6d16c6 to 3d2bfef8e1, restored equal to HEAD): update_record went red with biggest: 99 / locked: "forged" received; Tests 1 failed | 3 passed (4).
  • Create echo, same tool (blob bd2c6d16c6 to c70446bc08, restored equal to HEAD): stayed green, 4 passed. The real engine's write result names every declared field (null where nothing was stored; a probe printed the result's keys), so on create the result already overwrites the echo. The create-side guard covers a write result that leaves such a key out; the test header says so.
  • Lint, roll-up branch disabled (anchor } else if (summaryFields?.has(fieldName) && !isSystemRun) { prefixed with false &&; blob 848807de9c to 546efd3591, restored equal to HEAD): both verb pins red, Tests 2 failed | 61 passed (63), every control green.
  • Lint, system gate removed from that branch (blob 848807de9c to 92cb50ff77, restored equal to HEAD): both runAs: 'system' controls red, Tests 2 failed | 61 passed (63).

Acceptance notes

  • The new changeset does not restate the 18.6.0 door list. AGENTS.md's Documentation Guardrails forbid an erratum to a released entry in a later one: a factual error in a released CHANGELOG.md entry is amended in that entry, in a dedicated docs-only PR. So the 18.6.0 door list is not restated here; amending the released @objectstack/objectql entry is a separate docs-only PR if the seat wants it.
  • The new warning carries no userTextParams and no .user-text.ts catalog entry. A finding without them has no user sentence, so a save door shows its developer message (finding-user-text.ts: "a finding without userTextParams simply has no user sentence"). Translating it into the eleven platform locales is not in this card.
  • The stdio answer still lacks the HTTP answer's warnings, withheldMentions and notice members. That is part of the divergence the bridge's header already lists ("spec-shaped receipts"). Not widened here.
  • Accepted deviations from the contract review (record 7037237162), left as they are:
    • its N1: the withoutDroppedKeys comment says a stored_expression key's value comes from the write result. That holds on create; on update the bridge answers the value read before the write. That is no worse than before, when the caller's own value was echoed.
    • its N2: the new warning has no localised user sentence (see the note above). A Studio user sees the English developer message.

Verification

  • Two-minute check: pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/stdio-data-bridge.dropped-fields.test.ts. Expect Tests 4 passed (4). Then pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-readonly-flow-writes.test.ts. Expect Tests 63 passed (63).
  • Read first: packages/mcp/src/stdio-data-bridge.ts (create / update and the two helpers above createStdioDataBridge), then the roll-up branch in packages/lint/src/validate-readonly-flow-writes.ts (summaryFieldIndex and the else if before the readonlyWhen branch), then the two new test blocks.
Local gate readings

Gates at head d416d0fd72, in worktree objectstack-issue-35114 of objectstack-ai/objectstack; branch base ef39b2c191.

  • Build pnpm --filter '@objectstack/lint...' --filter '@objectstack/mcp...', then pnpm --filter @objectstack/lint test: Test Files 222 passed (222), Tests 9343 passed (9343). Then pnpm --filter @objectstack/lint typecheck: tsc clean, check:test-typecheck: OK. One lock run, VERDICT command-exit 0.
  • @objectstack/mcp (source unchanged since a2176dc97d): pnpm --filter @objectstack/mcp test gave Test Files 81 passed (81), Tests 1447 passed (1447), and typecheck was clean, at a2176dc97d.
  • Derived gates (dispatch-gates --commands, 100 families for these 9 paths), exit code captured before any pipe:
    • 98 exit 0. Four of them first exited 3 because packages/lint/dist was not built; they were rerun after the build and exited 0. check:type-check-debt first missed its lock turn; it was rerun under the lock and exited 0.
    • 2 exit 3, PREREQUISITE NOT MET (they read dist of packages outside this closure), NOT MEASURED locally and left to CI: pnpm --filter @objectstack/spec run check:skill-examples and pnpm check:dual-build-cjs-loads.
  • dispatch-gates --ran: 100 derived famil(ies) accounted for — 98 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3).
  • node scripts/pm/overlap-check.mjs before each push: VERDICT clean exit 0.
  • Round 4 (prose only), at 6946a72060: dispatch-gates --commands for the changeset and security.mdx gave 56 families. 55 exit 0. One exit 3, NOT MEASURED: check:skill-examples, with no packages/client*/dist. --ran accounted for all 56. overlap-check gave VERDICT clean exit 0.
  • test:repo and the repo-wide scans belong to CI and were not run locally.

Generated by Claude Code

…nd echo no dropped value

Claude-Session: https://claude.ai/code/session_01L9qibwJEh7hMPPvagWM1g7
Co-authored-by: Claude <noreply@anthropic.com>
…ors; changeset for the stdio droppedFields answer

Claude-Session: https://claude.ai/code/session_01L9qibwJEh7hMPPvagWM1g7
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

8 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/lint/src/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/lint/src/index.ts) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 15 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 1d7015aeeaa942c37af86c3c93d000fab7024880 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f7bad6e656a20564f1dff73dedeff7f01e255856 — the merge of head 6946a720608e3b13ff69b5ca967d536cf5ca24df into base 1d7015aeeaa942c37af86c3c93d000fab7024880, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f7bad6e656a20564f1dff73dedeff7f01e255856 && git checkout f7bad6e656a20564f1dff73dedeff7f01e255856
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1d7015aeeaa942c37af86c3c93d000fab7024880 6946a720608e3b13ff69b5ca967d536cf5ca24df && git checkout -B drift-repro 1d7015aeeaa942c37af86c3c93d000fab7024880 && git merge --no-ff 6946a720608e3b13ff69b5ca967d536cf5ca24df

node scripts/docs-audit/affected-docs.mjs --json 1d7015aeeaa942c37af86c3c93d000fab7024880

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

…true draws the flow-update-summary-field warning

Claude-Session: https://claude.ai/code/session_01L9qibwJEh7hMPPvagWM1g7
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 20, 2026
@objectstack-fleet objectstack-fleet Bot changed the title fix(mcp): the stdio create_record and update_record answer droppedFields and echo no dropped value; docs name the roll-up lock and two more doors fix(mcp, lint): create_record and update_record over stdio answer droppedFields and no longer echo a dropped value; a flow write to a roll-up summary field draws a warning Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH

Seat check

L1: ACCEPT (L1-a, for area d7-B) at head e9c4f916b8682d1a5fd9809dc0bc0426e101a06b, read 2026-11-20T10:21Z. This is the first seat record on this PR.

  • Condition: CI at this head finishes green. When I read, 13 runs were success, 11 skipped and 17 in progress. CI at d416d0fd, the last code head, was green.
  • One L2 is owed: TIER_DEFAULT. That answers d7-B's "no L2 unless you ask". contract-review.md decides L2 by face, and a Clause-②: yes declaration is one of the four faces ("仅凭 Clause-②: yes 申报而欠 ⇒ TIER_DEFAULT"), whatever the governed status of the paths. Neither packages/lint/** nor packages/mcp/** is a governed path or a spec face, so the tier is TIER_DEFAULT, not CONTRACT_REVIEW_TIER. The scope is the new rule id, its export, the warning and the droppedFields member the stdio answers gain. Run it as an isolated reviewer before landing.

Declarations

  • Clause-②: yes is right after claim amendment 2 (7036853719), on the feat(lint): warn when a text field named like a currency, country or time zone code declares no valueDomain #35378 precedent: a new lint finding id and a new @objectstack/lint export, FLOW_UPDATE_SUMMARY_FIELD.
  • It is not (narrowing). The finding is a warning, so os build / os validate pass where they passed (build.ts has no --strict). The one run that now fails, os lint --strict, is stated in the changeset, as the warning class always does.
  • The stdio answers gain an optional droppedFields member, the shape CreateDataResponseSchema / UpdateDataResponseSchema already give the HTTP transport. No input or export changes.
  • Metadata-protocol: none holds.
  • Bumps. Two patch bumps are right.

Code

  • The stdio bridge (stdio-data-bridge.ts).
    • create and update pass onFieldsDropped, the listener the protocol's createData / updateData wire behind HTTP, so both transports answer from one engine verdict.
    • withoutDroppedKeys removes each dropped key from the caller's payload before it fills the answer:
      • a create answers what the write stored (written wins);
      • an update answers the read-path row with the payload minus the dropped keys, so a dropped field shows its stored value.
    • droppedFieldsMember adds the key only when something was dropped, so a clean write answers byte-for-byte as before.
  • The lint rule (validate-readonly-flow-writes.ts).
    • summaryFieldIndex covers the objects as served, with tied fields left out. It is flow-local by the area ruling (option B, 7035408057): the shared buildReadonlyIndex and the hook and action rules are untouched.
    • The branch sits after the declared-readonly branch, so a roll-up declaring readonly: true stays the flow-update-readonly-field error.
    • It applies the same gates as the static branch: runAs: 'system' is not judged, and neither is a create on an insert-strip-exempt object.
    • The id is exported from the barrel and has an os explain entry.

Tests and controls

  • Bridge pins: droppedFields on create and on update, no echoed dropped value, and a clean write without the key. A revert ablation reds them (7036824115).
  • Lint pins: the warning for a non-readonly roll-up on both verbs. CONTROLS: a system run, a declared-readonly roll-up still giving the error, and a plain field. Two ablations red them.
  • Runs: lint 9343 tests passed and mcp 1447 passed, both at d416d0fd. e9c4f916 changes only the changeset, and the 21 changeset gates exit 0.

Prose, sentence by sentence

  • Changeset.
    • Each sentence of the stdio paragraph matches the two hunks, including "A write that drops nothing answers as before, with no droppedFields key".
    • The lint paragraph matches the branch, including "Like every warning, it makes os lint --strict exit 1; there is no per-rule switch".
    • The os explain sentence and the fix line are accurate.
  • fields.mdx.
  • security.mdx.
    • The implicit roll-up lock, strictReadonlyWrites refusing it, the empty-child start on a drop, the flow warning and the error for a declared one are each true.
    • "which never blocks a build" holds for os build / os validate.

Nit (not owed)

security.mdx could add the changeset's os lint --strict caveat beside "never blocks a build". A pipeline that runs os lint --strict will fail on such a flow, and the page is where an author looks.

Gates and routing

After CI is green at e9c4f916 and the TIER_DEFAULT L2 PASSes on this head, check-governed-merges.mjs --pr 35807 decides the landing route. It reads not governed, per d7-B.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

Contract-review-claim: session_01L9qibwJEh7hMPPvagWM1g7 · head e9c4f91 · 2026-11-20T10:22Z

The L2 is owed at TIER_DEFAULT on the Clause-②: yes face (L1 7037086085). It runs as an isolated reviewer on this head.

@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

Contract review

Served-tier: TIER_DEFAULT
Head-sha: e9c4f916b8682d1a5fd9809dc0bc0426e101a06b
Local-runs: none
Scope: packages/lint/src/validate-readonly-flow-writes.ts, packages/lint/src/index.ts, packages/lint/src/rule-explanations.ts, packages/mcp/src/stdio-data-bridge.ts, .changeset/35114-stdio-mcp-dropped-fields.md
Security-touching: yes

This is the L2 owed by the Clause-②: yes line alone. Neither packages/lint nor packages/mcp is a governed path or a spec face, so it carries ①②③ and no ④. I read the net diff ef39b2c191..e9c4f916b8 and judged the tree; the PR body's account was not taken as evidence. Code I read to judge the scope but did not review: protocol-data-writes.ts (createData / updateData), protocol.zod.ts (CreateDataResponseSchema / UpdateDataResponseSchema), objectql engine-top-level.ts (summaryFieldsLockedOnWrite, withSummaryRollUpsReadonly), engine-insert.ts / engine-update.ts (the drop listener), lint authoring-rules.ts / runtime-gate.ts / finding-user-text.ts, cli validate.ts / lint.ts, mcp mcp-http-tools.ts.

Security-touching is yes for three reasons. The diff teaches the readonly and roll-up write lock: security.mdx and the explain entry say who may write a roll-up and that runAs: 'system' lifts the lock. It also changes what a write answer reveals about a dropped value. That change is judged under ①, and it reveals nothing new.

Check-runs on the head, read at 10:27Z: 29 success, 16 skipped, 31 in progress (Build Core, Test Core 1-10, Test UI 1-16, Type Check workspace, consumer and UI, Lint lanes, Check Changeset, Build Docs, E2E UI). None is red. This verdict assumes the in-progress runs finish green; a red one voids it.

① Derived judgments

  • stdio droppedFields shape: right. The member is DroppedFieldsEvent[] from @objectstack/spec/data, the element type of CreateDataResponseSchema.droppedFields and UpdateDataResponseSchema.droppedFields. It is collected the way createData / updateData collect it:
    • the listener pushes each onFieldsDropped event as the engine emits it;
    • the member is present only when at least one event arrived (droppedFieldsMember, the same dropped.length > 0 ? { droppedFields } : {} spread).
    • The engine emits only non-empty fields: emitDrop / notifyDrop return on fields.length === 0, and insert gates on insertDrops.length > 0. So no droppedFields: [{ fields: [] }] can appear.
    • Registering the listener changes no engine verdict. On update, engineDroppedKeys is recorded with or without a listener. On insert, the listener is called after the strict refusal.
    • So both transports now answer one engine verdict in one shape. The stdio answer is unknown on McpDataBridge, and mcp-http-tools.ts relays it whole through textResult; the stale-roll-up path (withEarnedAnswer) carries the member too, as HTTP's does.
  • A clean write answers byte for byte as before: right.
    • withoutDroppedKeys(data, []) returns data itself.
    • droppedFieldsMember([]) spreads {}.
    • The key order stays object, id, record on both verbs.
  • The record change: right, and inside the changeset's sentence.
    • Create: { ...payload minus dropped, ...written }, so the write result still wins and a dropped key the result leaves out is no longer echoed.
    • Update: { ...existing, ...patch minus dropped }, so a dropped key shows the read-path value. That is the stored value for readonly, readonly_when, primary_key and the roll-up lock.
  • What the answer reveals: nothing new. existing is read with the caller's own context (findById(engine, object, id, context)), and before this PR it already filled every key the patch did not cover. The answer now shows a value the caller's read already showed, never a new one. droppedFields names only keys the caller itself sent. A readonly_when drop tells the caller the predicate held, which the HTTP door already answers the same way.
  • New lint finding flow-update-summary-field: right against the engine.
    • The engine's lock is type === 'summary' && readonly !== true, read as readonly: true by both static views (insertStaticReadonlySubject, updateStaticReadonlySubject), with isSystem exempt.
    • The branch has the same three properties:
      • it is gated on !isSystemRun;
      • it is skipped on a create on an insert-strip-exempt object (the insert subject's own exclusions);
      • it sits after meta.readonly, so a declared-readonly roll-up stays the flow-update-readonly-field error.
    • On a non-system update of a roll-up that also declares readonlyWhen, the roll-up warning is reported instead of the readonlyWhen one. That matches the engine, where the static strip takes the key first.
    • summaryFieldIndex reads objectsWithoutTiedFields(objectsAsServed(stack)) through recordsOf, which takes both fields shapes. Every declared field is in roIndex (the {false, false} entry), so the if (!meta) continue guard does not hide a roll-up.
    • The branch is flow-local, as ruling 7035408057 option B requires: buildReadonlyIndex and the hook and action rules are untouched.
  • Barrel export and os explain entry: right. FLOW_UPDATE_SUMMARY_FIELD is added to the existing validate-readonly-flow-writes.js export block. The explain entry is keyed by its own rule string, and its text matches the branch: warning, both verbs, system exempt, platform-object create not judged.
  • Doors the new warning reaches:
    • The rule runs inside validateReferenceIntegrity (commands: ALL), so os build, os validate and os lint report it.
    • os build has no strict mode, so it passes where it passed. os validate and os lint pass too, because a warning is never in errors.
    • The metadata save and publish doors (runtime-gate.ts) put a non-error finding under advisories, never in the refusal. That holds on a flow write and on the subject pass of an object write, the one that carries the written package's live flows.
    • os lint --strict exits 1, as the changeset says. os validate --strict exits 1 too ("Treat warnings as errors (exit 1)"; strictFailing counts every registry finding that is not info). The changeset does not name it, and it does not say that a save or publish answer can now carry the advisory. That is S1.
  • No accept-set narrowing. No door refuses a stack, payload or metadata item it accepted before. The --strict runs fail on a new advisory, which is the warning class's standing contract (the feat(lint): warn when a text field named like a currency, country or time zone code declares no valueDomain #35378 precedent).

② Semver level

  • Bumps: right. The changeset bumps @objectstack/mcp: patch and @objectstack/lint: patch, the two packages the diff publishes from. @objectstack/lint gains one export and one finding id. @objectstack/mcp gains one optional answer member, with no tool input, export or published schema changed. A none metadata kind takes patch (AGENTS.md Post-Task Checklist §3), and feat(lint): warn when a text field named like a currency, country or time zone code declares no valueDomain #35378 is the precedent for a new lint warning plus a barrel export shipping as a patch.
  • Clause-②: yes, with no arm: right, on both the changeset body and the PR body. The surface widens by a new id, an export and an answer member. It is not (narrowing): no build, validate or save that passes today fails, and the strict runs are covered above. Claim amendment 2 (7036853719) corrected the claim's no to yes, and the tree now carries yes.
  • Metadata-protocol: none: right. No key, accepted value, metadata type, meaning or default changes for a metadata author. A warning refuses nothing.
  • Changeset prose: each sentence of the stdio paragraph matches the two bridge hunks. The lint paragraph matches the branch, except that it omits os validate --strict and the save-door advisory (S1).

③ Boundary flags

Dev report 7035378530:

  • open_question N3 severity: answered by ruling 7035408057, option B. The tree implements B as ruled: warning, its own id, a flow-local index.
  • Deviation: Part of instead of Fixes. Resolved by the same amendment; the body says Fixes #35114.
  • Deviation: the changeset carries no restatement of the 18.6.0 door list. Answered as right: triage ruling 6969043738 and the AGENTS.md released-entry guardrail require it. N2 is carried in fields.mdx prose, and the consumed .changeset/34672-* is untouched.
  • Deviation: a throwaway vitest probe ran outside os-verify-lock. Process only; nothing of it is in the tree.
  • Deviation: the PR footer and commit trailers. Process only; no contract effect.
  • Out of scope, the released 18.6.0 CHANGELOG door list: routed by the amendment to a docs-only amendment by the release owner. Answered.
  • Out of scope, the stdio answers lacking warnings, withheldMentions and notice: answered. The bridge header already lists this as the "spec-shaped receipts" divergence, filed there as the transport-unification follow-up, and this PR does not widen it.

Dev report 7036824115:

  • Deviation: the file surface widened by two lint files (index.ts and rule-explanations.ts). Answered by claim amendment 2.
  • Deviation: the new warning has no .user-text.ts entry. Answered as acceptable, graded N2 below. finding-user-text.ts makes userTextParams optional ("a finding without userTextParams simply has no user sentence, and its consumer renders message"), and the rule's error sibling carries none either.
  • Deviation: the PR title was stale. Fixed in round 3; the title now names both halves.

Dev report 7037040186:

  • Deviation: the round-3 gate list was derived for the changeset path only. Answered as right: git diff d416d0fd72 e9c4f916b8 touches only .changeset/35114-stdio-mcp-dropped-fields.md, and the head's own check-runs carry the full derivation.
  • Its other deviations repeat those of 7036824115, answered above.

SQL push-down: no finding. The bridge adds no id materialisation, no extra read and no in-app join; findById before the update is pre-existing and unchanged. The lint rule is a static walk over metadata.

Findings:

  • S1 (should-fix): the changeset (and the PR body's lint paragraph) name os lint --strict as the run the new warning fails. os validate --strict also exits 1 on it. The metadata save and publish answers (advisories) also gain the finding:
    • on a flow save that writes a roll-up from a user-run node;
    • on an object save that makes a field a roll-up while a live user-run flow of that package writes it.
    • Fix: one clause in the changeset naming os validate --strict beside os lint --strict, and one naming the save and publish advisory. Prose only; no code change.
  • N1 (nit): the withoutDroppedKeys jsdoc says that for a stored_expression key "the write result carries the value the engine stored in its place". That is true on create. On update, the bridge discards the write result, so a dropped stored_expression key answers the value read before the update, not the newly computed one. This was never right on this arm: before the PR it answered the caller's own value, and the arm has never read back. The answer is no worse, but the comment overstates it.
  • N2 (nit): with no userTextParams or catalog entry, a Studio user sees the English developer message and its runAs:'user' wording. The sibling advisory, flow-update-readonly-when-field, is localised in every platform locale. This is optional by the module's contract, so it is a nit.
  • N3 (nit, L1's): security.mdx says the warning "never blocks a build". That is true for os build, but the page omits the --strict caveat (S1's two runs).

S1 (should-fix) — the changeset's account of where the new warning bites omits os validate --strict and the metadata save/publish advisories; it earns a delta review of the prose fix.

Implemented-by: claude/issue-35114-rollup-readonly-followups
Reviewed-by: session_01L9qibwJEh7hMPPvagWM1g7

VERDICT: PASS

…dvisories for the roll-up warning

Claude-Session: https://claude.ai/code/session_01L9qibwJEh7hMPPvagWM1g7
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH

Seat check (delta)

L1: ACCEPT (L1-a, for area d7-B) at head 6946a720608e3b13ff69b5ca967d536cf5ca24df, read 2026-11-20T10:43Z. This carries ACCEPT 7037086085 forward over the prose round that answers TIER_DEFAULT L2 7037237162 (PASS, S1).

Two conditions remain:

  • CI green at this head (the reds on e9c4f916 were aggregators cancelled by the push);
  • the same reviewer's delta L2 PASS on 6946a720.

Correction to my ACCEPT 7037086085

I wrote that the finding left "os build / os validate pass where they passed (build.ts has no --strict)". The os validate half was wrong. validate.ts:126 declares a --strict flag, and a warning in its warnings list fails it, exactly as os lint --strict does. The L2's S1 is right. The Clause-②: yes, not (narrowing), reading still holds: a warning failing a --strict run is that class's documented behaviour, on the #35378 precedent. But the changeset now has to name both strict runs, and it does.

The delta (2 files, +5 / −3, prose only)

  • Changeset.
    • "it makes os validate --strict and os lint --strict exit 1" is true of both commands.
    • The metadata save and publish answers carry the finding under advisories, never as a refusal: on a flow save, and on an object save that turns a field into such a roll-up while a live user-run flow of the same package writes it. That is the authoring-rule path the dev cites. I take its detail from the L2's reading.
  • security.mdx gains the same --strict caveat beside "never blocks a build" (my nit, the L2's N3).
  • The PR body lists the L2's N1 and N2 as accepted deviations.

Gates and routing

The prose and changeset families exit 0 (55 of 56; check:skill-examples was not measured, CI runs it). After CI is green and the delta L2 PASSes on 6946a720, check-governed-merges.mjs --pr 35807 decides the route.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 6946a720608e3b13ff69b5ca967d536cf5ca24df
Local-runs: none
Scope: packages/lint/src/validate-readonly-flow-writes.ts, packages/lint/src/index.ts, packages/lint/src/rule-explanations.ts, packages/mcp/src/stdio-data-bridge.ts, .changeset/35114-stdio-mcp-dropped-fields.md
Security-touching: yes

This is the delta review of record 7037237162, which reviewed head e9c4f916b8 and found S1 (should-fix). I judged the tree at 6946a72060 against that record.

  • Only two files moved, both prose. git diff e9c4f916b8 6946a72060 is one commit, 6946a72060. It touches .changeset/35114-stdio-mcp-dropped-fields.md (one line) and content/docs/protocol/objectql/security.mdx (one sentence re-wrapped and extended). No code, test or other file changed, so ① for the code carries over from 7037237162 unchanged.
  • Check-runs on 6946a72060, read at 10:44Z: 29 success, 12 skipped, 30 in progress, and none red. This verdict assumes the in-progress runs finish green; a red one voids it.
  • Security-touching: still yes, for the reasons in 7037237162. security.mdx teaches the roll-up write lock.

① Derived judgments

Each new sentence, checked against the code:

  • Changeset: "it makes os validate --strict and os lint --strict exit 1". Right.
    • The rule validateReadonlyFlowWrites runs inside validateReferenceIntegrity, which has commands: ALL (authoring-rules.ts).
    • For os validate, runAuthoringRules('validate', …) feeds ruleAdvisories. strictFailing counts every finding that is not info, and --strict exits 1 on it (validate.ts).
    • The os lint --strict flag description says it fails on warning-severity findings (lint.ts).
  • Changeset: "the metadata save and publish answers carry it under advisories, never as a refusal". Right.
    • judgeRuntimeWrite puts every non-error finding in advisories (runtime-gate.ts).
    • assertRuntimeAuthoringRules throws only on verdict.error and returns the advisories.
    • Both doors read that return: the save door (protocol-save.ts, runtimeAdvisories) and the publish door (protocol-history-and-publish.ts).
  • Changeset: the two cases. Right.
    • "On a flow save whose user-run node writes such a roll-up": the suite member declares runtimeTypes: ['flow', 'object'] (reference-integrity-suite.ts).
    • "On an object save that makes a field such a roll-up while a live user-run flow of the same package writes it": the member also declares subjects: ['flows']. On an object write, the gate carries only the written package's live flows, and the subject pass charges only the findings this write adds (runtime-gate.ts, RuntimeStackContext.flows).
    • The flow case also comes from that differential: a stored flow that already holds the finding is not charged again. "Carry it" is therefore true of the save that adds the finding. That is the reading the sentence gives, so it is not a finding.
  • security.mdx (N3): right. The page now says "never blocks a build, though like every warning it makes os validate --strict and os lint --strict exit 1". This is the same fact as the changeset sentence, and the rest of the paragraph is only re-wrapped.
  • PR body: matches the changeset. Its .changeset paragraph now names both --strict runs and the save and publish advisories, in the changeset's words, and cites the same four files. Its Acceptance notes list record 7037237162's N1 and N2 as accepted deviations. The text of each matches the finding.

② Semver level

Unchanged and right:

  • @objectstack/mcp: patch and @objectstack/lint: patch.
  • Clause-②: yes, not narrowing, on both the changeset and the PR body.
  • Metadata-protocol: none.
  • Fixes #35114 stands.

The round adds prose only, so nothing it changes is published as code.

③ Boundary flags

  • S1: closed. The changeset and the PR body now name os validate --strict beside os lint --strict, and name the save and publish advisories with both cases. Each sentence holds against the code cited above.
  • N3 (nit): closed by the security.mdx caveat.
  • N1 and N2 (nits): accepted by the dev and listed in the PR body's Acceptance notes. Nits need no fix, so nothing is owed on them.
  • SQL push-down: no change, because the round changes no code.

No must-fix, no should-fix.

S1: closed

Implemented-by: claude/issue-35114-rollup-readonly-followups
Reviewed-by: session_01L9qibwJEh7hMPPvagWM1g7

VERDICT: PASS

@objectstack-fleet objectstack-fleet Bot removed the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibwJEh7hMPPvagWM1g7

Landing · 2026-11-20T11:06Z · head 6946a720608e3b13ff69b5ca967d536cf5ca24df

Probe Reading
L1 ACCEPT 7037086085 at e9c4f916b8 (code, declarations, prose; its os validate sentence corrected in 7037532746); delta ACCEPT 7037532746 at this head
L2 Owed at TIER_DEFAULT on the Clause-②: yes face alone: PASS with S1 7037237162 at e9c4f916b8; same reviewer's delta PASS 7037541550 at this head (S1: closed, no must-fix, no should-fix); needs:contract-review removed
check-governed-merges.mjs --pr 35807 NOT governed; +512 / −11 ≤ 3000
CI at this head 63 success, 14 skipped, 0 red / pending
K (Affected-set diff base 1d7015a → origin/main) 2 (< 15) · no merge=os-regen path · overlap-check clean

State: pr_ready + automerge_enable under the maintainer's standing landing go-ahead (2026-10-30: 「按 pm-dispatch 审过的pr你可以自主落地」). On MERGED, #35114 closes by Fixes.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 11:07
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit ba304e0 Nov 20, 2026
78 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35114-rollup-readonly-followups branch November 20, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Roll-up readonly drop follow-ups from #35089: stdio MCP bridge droppedFields, changeset door list, readonly-flow lint and security.mdx

2 participants