Skip to content

fix(metadata-protocol): the storage-sync-refused notice names no door - #35432

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-32958-storage-sync-notice-wording
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-32958-storage-sync-notice-wording

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread
Fixes #32958

Clause-②: no
Metadata-protocol: none

维护者速读

  1. 用户能看到什么变化:管理员在回滚、撤销提交或发布对象后,若数据库没能跟上对象结构,看到的警告不再说"这次保存"、也不再叫人"重新发布",而是给出在任何入口都管用的补救办法(重启服务,或再次正式写入该对象)。
  2. 为什么做:删除对象扩展后存量数据未重算那张卡的剩余一项,提示文字在保存以外的入口上说错了话。
  3. 出错会怎样:只是警告文字变化,规则编号和严重级别不变,最坏情况是措辞不顺,直接回滚即可。
  4. 要你做什么:无,席位落地。

席位核对

What changes

  • objectStorageSyncRefusedNotice (packages/metadata-protocol/src/protocol-registry-hydration.ts), that function only: message says "is registered and served" and "the columns this change added"; hint says to run the storage sync again: a restart, or the next live write of the object. Rule id, severity, where, path and the driver-reason quoting rule are unchanged.
  • Read first: that function; then the new pin file; then the one added assertion in protocol.revert-commit-honest-outcome.test.ts.

Premise readings at origin/main 7ece020

  • A1 holds: the message said "was saved and is served ... this save added"; the hint said "publish the object again".
  • A2: one builder. Callers that put its value on an answer: saveMetaItem publish mode (protocol-save.ts), runPublishSideEffects (publishMetaItem, publishPackageDrafts), rollbackMetaItemUnaudited and revertCommit (protocol-package-commits.ts). Callers that discard it: remote mutation apply (protocol-class-head.ts), batch object registration. The delete door (deleteMetaItem, protocol-diff-delete-load.ts) does not run the sync and does not raise this notice (it calls fillStoredExpressionChange without storageRefused), so the dispatch's "it also rides the delete door's answer" did not hold on this tree.
  • A3: no server test pinned the notice's wording; protocol.publish-side-effects-canonical-type.test.ts pins "publish the object again" on the separate console.error line (left alone, outside the fence). Two ui/ tests carry a hand-written copy of the old text as fixture data; they parse nothing from the server.
  • A4: the save door in publish mode runs ensureObjectStorage on every live write, and rollback and revert run it too; a restart syncs every registered object. So both named remedies work from every door that raises it. "Publish again" was true only by way of the save door, so it is no longer named.

Tests

  • New protocol.storage-sync-refused-notice-wording.test.ts: the notice names no save and no publish; CONTROL: it still names the object, the failure and both remedies.
  • protocol.revert-commit-honest-outcome.test.ts: the revert door's advisory equals the builder's value, whole, and names no save or publish.
  • Ablation (committed fix, scripts/ablation-replace.mjs, source import so no build): "this change added" back to "this save added" landed (anchor 1 to 0, blob 445e3e1a to 2753623b), 2 failed / 31 passed; restored to blob 445e3e1a, git diff HEAD empty.
Verification at a171c69
  • pnpm --filter @objectstack/metadata-protocol test: Test Files 359 passed, 9 skipped (368); Tests 23228 passed, 45 skipped. Lock VERDICT command-exit 0.
  • pnpm --filter @objectstack/metadata-protocol typecheck (tsc --noEmit, includes src test files): exit 0.
  • dispatch-gates --commands (68 commands): 66 exit 0 locally. check:dual-build-cjs-loads exit 3, NOT MEASURED (needs the whole workspace built), left to CI. check:lean-entry-closure exit 3 before the closure build, exit 0 after it. check:test-source-alias was red on the new file and is green after the module-top lint import.
  • overlap-check --branch=HEAD: VERDICT clean exit 0.

Acceptance notes

  • The delete door does not raise this notice, so nothing changed there.
  • Not changed, outside the fence: the operator-facing console.error line in ensureObjectStorage still says "was published" and "publish the object again". It is a server log line, not an answer, and a test pins it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CbP6iSEGkWb5fn8yqd

The object-storage-sync-refused advisory rides the save, publish, rollback
and revert answers; its text no longer speaks of "this save" or tells every
caller to publish again. The hint names the remedies that work from each
door: a restart, or the next live write of the object.

Claude-Session: https://claude.ai/code/session_01Utp6CbP6iSEGkWb5fn8yqd
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s 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 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 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 — 10 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 a9b36efffa133ee7a0467320faa3b4fd05a0c030 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from b3957af58f26caffc7e29b501339d979285c7421 — the merge of head a171c69bee50976e165ee57d6ad16b622917312b into base a9b36efffa133ee7a0467320faa3b4fd05a0c030, 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 b3957af58f26caffc7e29b501339d979285c7421 && git checkout b3957af58f26caffc7e29b501339d979285c7421
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a9b36efffa133ee7a0467320faa3b4fd05a0c030 a171c69bee50976e165ee57d6ad16b622917312b && git checkout -B drift-repro a9b36efffa133ee7a0467320faa3b4fd05a0c030 && git merge --no-ff a171c69bee50976e165ee57d6ad16b622917312b

node scripts/docs-audit/affected-docs.mjs --json a9b36efffa133ee7a0467320faa3b4fd05a0c030

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

2026-11-19T09:27Z Final head for review: a171c69bee50976e165ee57d6ad16b622917312b. CI on this head: 37 success, 16 skipped, 0 failed. Clause-②: no · Metadata-protocol: none. L1 requested from L1-a.

Area notes for the reviewer:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:对象的数据库表没能建好或改好时,提示文字不再只说“这次保存”“请重新发布”。回滚和撤销也会出这条提示,现在的说法在哪种操作下都成立,并给出两种都有效的补救办法。
  • 为什么做:之前的复核发现,回滚和撤销的回复里这条提示说错了操作。
  • 出错会怎样:只是提示文字,规则、级别和行为都不变。撤回即可。
  • 要你做什么:无。

席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head a171c69bee · 2026-11-19T09:28Z

  • Shape: 4 files, +68/−4: the notice builder, one assertion added to an existing revert test, one new pin, and a changeset. Not governed. K = 11 since base 7ece0204, and it merges cleanly into current main.
  • Fixes vs card (metadata-protocol: the object-storage-sync-refused notice still speaks of "this save" and "publish the object again" on rollback, revert and delete answers #32958, retitled to its remaining item: the object-storage-sync-refused notice names no door): objectStorageSyncRefusedNotice is the one builder behind the save, publish (runPublishSideEffects), rollback and revert advisories.
    • Its message now says "is registered and served … the columns this change added", where it used to say "was saved … this save added".
    • Its hint now gives a restart or the next live write of the object as the way to run the sync again, where it used to say "publish the object again".
    • The rule id, the severity and the quoted reason (clientFacingFailureText) are unchanged. In this package "live write" is the term for the metadata-write doors (save, publish, rollback, revert), and each of them runs the sync, so the hint is true on every door.
    • The other "publish the object again" lines in the file belong to publish-only logs and notices, which is correct where they are.
  • Pins:
    • The new protocol.storage-sync-refused-notice-wording.test.ts checks there is no save or publish wording and has a CONTROL for what failed plus both remedies.
    • The door half sits beside its existing case in protocol.revert-commit-honest-outcome.test.ts: the revert advisory equals the builder's value, whole. This is the shared-file placement the harness rule wants.
  • Changeset (read sentence by sentence): metadata-protocol patch, Clause-②: no, Metadata-protocol: none. The four doors it names, the new wording and the unchanged rule, severity and reason all match the code.
  • Gates: CI on a171c69b is 37 success and 16 skipped, with 0 failed and 0 pending.
  • Nit (non-blocking): an administrator could read "the next live write of this object" as a record write. "the next save, publish, rollback or revert of this object" would name the doors without favouring one. That is the area's call.
  • Landing clause: not governed, so pkg-2 lands it. K < 15, so no main merge is required. A new push needs a fresh L1 only if it changes more than a main merge or the hint wording above.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

2026-11-19T09:28Z Landing PR #35432 (card #32958) at head a171c69bee50976e165ee57d6ad16b622917312b. L1-a ACCEPT 7005138126 at this head. The wording nit ("next live write") is left as is: "live write" is the package's term for the metadata-write doors, and a push would only move the head.

Probe Reading
Check-runs on a171c69b 37 success, 16 skipped, 0 failure
check-governed-merges.mjs --pr 35432 NOT governed; 72 changed lines ≤ 3000 · K = 11

State: ready + auto-merge armed by area pkg-2. On MERGED the area closes #32958 and clears its labels.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 09:29
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit c6558d0 Nov 19, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-32958-storage-sync-notice-wording branch November 19, 2026 10:03
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/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants