Skip to content

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

Closed

Description

@objectstack-fleet

domain:server#5 · os-elon-musk · session_016WV4cwJbS8sZAfru2iyvQq

Filing gate: ① product defect, class a. Found by the contract review of PR #32921 (record 6839282932, ④.2), read from the code on main. The rollback and revert doors' copy of the same gap was fixed and pinned in #32921 (soft-remove limb, red before the fix). ⛔ Not a claim; triage sets the lane and grade.
reach: DELETE /api/v1/meta/object_extension/:name (the deleteMetaItem door) for an own-package object_extension that re-declared a stored computed field's expression.

What happens

deleteMetaItem removes the extension, and the object's effective definition falls back to the base expression. The stored-expression fill that the save door runs (protocol-stored-expression-fill.ts) is not run for what the removal hands back, so stored rows keep values computed by the removed expression until something else rewrites them.

Expected

The same as the save door and, since #32921, rollback and revert: capture before the registry view is restored, then fill what the removal changed. The answer carries the fill's advisories.

Business reason

A tenant who removes a customization of a computed field sees the old formula's numbers on every existing record, with nothing saying they are stale.

Also noted (same review, prose only)

object-storage-sync-refused now also rides rollback and revert answers, but its text still speaks of "this save" and "publish the object again".

Dedupe words: deleteMetaItem stored expression fill, object_extension delete stale stored value, stored computed field removal backfill.
Related: #32700 (PR #32921), #32690.

Activity

  1. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p1 · pm:queue · 2026-11-13T01:46Z

    ⛔ Not a claim.


    Generated by Claude Code

  2. added
    domain:server
    pm:queue
    priority:p1
    on Nov 13, 2026
  3. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p1 → p2 under the adopted grading rules (#32997) · 2026-11-13T03:02Z

    ⛔ Not a claim; the card's claim and state are unchanged.


    Generated by Claude Code
    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p2 → Who: an admin deleting an own-package object_extension that re-declared a stored computed field (a rare act). Read from code. Data silently wrong is p1; one step down for admin-only reach gives p2. under the adopted grading rules (#32997) · 2026-11-13T03:02Z

    ⛔ Not a claim; the card's claim and state are unchanged.


    Generated by Claude Code

  4. added
    priority:p2
    pm:dispatched
    and removed
    priority:p1
    pm:queue
    on Nov 13, 2026
  5. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn

    Claim: area-lease pilot #33059, area E1 · 2026-11-14T15:50Z
    Branch: claude/area-E1-32958
    Account: os-elon-musk
    Clause-②: yes (widening)
    Metadata-protocol: added

    Premise measured on origin/main (e540baf), both orders (object saved then extension; extension saved then object): after deleteMetaItem of the own-package object_extension, the registry serves the owner's expression again while the rows still hold the removed expression's values ([8, 16, 24], expected [1, 2, 3]). The fix captures before the delete door's registry heal and runs the save door's fill after it; the answer gains an optional advisories key on DeleteMetaItemResponseSchema.

  6. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn
    os-dev-report

    {
      "issue": 32958,
      "status": "done",
      "branch": "claude/area-E1-32958",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33350",
      "session": "session_016WV4cy1y7UNVbT2QAdmgdn",
      "premise_still_valid": true,
      "summary": "Premise measured on origin/main e540baf8 in both orders (object saved then own-package extension; extension saved then object): after deleteMetaItem of the object_extension the registry serves the owner's expression again, but the rows stay at [8,16,24] instead of [1,2,3]. Fix: the delete door's repository row-deleted branch captures the object's stored computed fields (captureStoredExpressionChange) before restoreArtifactRegistryView and runs fillStoredExpressionChange after the audit row, projector and event, before the answer (the save door's order; no storage sync, like #32921's revert removal limb). The notices go on a new optional, omitted-when-empty `advisories` on DeleteMetaItemResponseSchema (spec minor, metadata-protocol patch; api.json and protocol.mdx regenerated). PR body says `Part of #32958`, not `Fixes`: the card's second item (object-storage-sync-refused prose in objectStorageSyncRefusedNotice) lives in protocol-registry-hydration.ts, an E1 hot file this order forbids editing, so it is left for whoever holds that file.",
      "tests": "head d7dd7d7b13 (merged origin/main 199e36244). Premise RED on main: `pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/stored-expression-backfill.test.ts -t 32958` -> `x object saved first, then the extension...` / `x extension saved first, then the object...` AssertionError expected [ 8, 16, 24 ] to deeply equal [ 1, 2, 3 ]; Tests 2 failed | 2 passed. After fix: Tests 4 passed. Ablation (one mutation for both negative pins): the spread of `advisories` replaced with an unconditional key via scripts/ablation-replace.mjs (anchor 1->0, blob 235e4429->948977e8); rebuilt metadata-protocol; ablation-dist-preflight marker present in dist/index.js+index.cjs; tests 3 and 4 RED (Tests 2 failed | 2 passed). Restore: git checkout HEAD, blob equal to HEAD 235e4429, rebuilt, --absent preflight clean, tree clean, Tests 4 passed. Full suites on merged head: metadata-protocol test 339 files passed/9 skipped, 22843 tests passed (lock VERDICT command-exit 0); objectql test 595 files/12946 tests passed (lock VERDICT command-exit 0). spec: narrowed run of the 36 test files importing the protocol schema/authorable surface, 2340 passed (this run caught and the PR fixes the spec pin `declares neither version nor advisories`, now split). Full spec suite NOT MEASURED locally: the verify lock was held by another session's workspace-wide turbo test for 30+ minutes (two 9-min queue-timeouts, exit 99); CI Test Core runs it. Typecheck spec/metadata-protocol/objectql exit 0. pnpm lint LINT_EXIT=0.",
      "gates": "dispatch-gates --commands (tree ae535a94c7, 8 paths): 119 families run locally, exit codes captured before any pipe; --ran reconciliation: 119 derived, 116 run, 3 NOT-MEASURED (exit 3 PREREQUISITE NOT MET: spec check:skill-examples, check:dual-build-cjs-loads, check:type-check-debt, all needing dist of packages outside the closure), 0 UNRUN. spec check:generated: all 14 artifacts up to date (after gen:docs). check-nul-bytes exit 0. PR #33350 check-runs on d7dd7d7b13 at report time: Check Changeset, Lint (ESLint, PM dispatch-gates, repo & tooling, docs & code guards, CI release & engine), PR-body guards, Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard, Spec property liveness all in_progress; Test Core not yet listed. Honest value: in_progress.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "3 — mcp__github__issue_read x2 (get, get_comments), mcp__github__pull_request_read x1 (get_files on #32921); no write tools",
      "api_writes": "3 — post-stamped claim comment on #32958 (relay run 43612379231); fleet-write pr_create #33350 with assignee os-elon-musk (relay run 43620111233); post-stamped os-dev-report comment on #32958",
      "open_questions": [
        {
          "question": "The card's second item (object-storage-sync-refused text says 'this save' / 'publish the object again' on rollback and revert answers) needs objectStorageSyncRefusedNotice in protocol-registry-hydration.ts, a forbidden E1 hot file. Who carries it?",
          "options": [
            "A: the E1 session folds it into the coupled-registry-set PR that holds protocol-registry-hydration.ts, then this PR's `Part of` becomes `Fixes` or the card closes with that PR",
            "B: a follow-up PR on that file after the hot-file work lands, keeping #32958 open until then"
          ],
          "recommendation": "A, because it is a prose change to one function in a file that work already holds, and it leaves no window where the card closes with the text unchanged"
        },
        {
          "question": "Frame said the body carries `Fixes #32958`; I wrote `Part of #32958` because the card's prose half is not done here. Flip it?",
          "options": [
            "A: keep Part of until the prose half lands",
            "B: flip to Fixes now and track the prose half as its own loose-ends card"
          ],
          "recommendation": "A, because a Fixes would close the card with half its text unaddressed"
        },
        {
          "question": "Coordinator's pre-push rule (tests for touched packages plus turbo-affected dependents) could not be met locally: spec is touched, so the affected set is ~122 packages, and the shared lock was held by another session's affected-set run for 30+ min. I ran the three touched packages (spec narrowed), their typechecks and pnpm lint. Is this narrowing acceptable when spec is touched?",
          "options": [
            "A: yes, dependents' tests are CI Test Core's when spec moves",
            "B: no, hold the push until a full affected run is possible"
          ],
          "recommendation": "A, because one affected run with spec touched takes the shared box for hours and CI runs the same selection"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: E1 session (protocol-registry-hydration.ts holder) · objectStorageSyncRefusedNotice prose is the card's own second item, not filed separately · noted, not filed",
        "carrier: none · the delete door's no-row self-heal branch (restoreArtifactRegistryView with no stored row) also restores the registry with no fill; reachable only through a stale registry shadow, which the code's own comment calls pollution from before an earlier fix; no repro built · noted in Acceptance notes, not filed"
      ]
    }
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cx3SeLyrkP7imq6G71

    Release: 2026-11-15T05:09Z · area E1 drain (pilot #33059, DRAIN since 2026-11-15T04:00Z: no new p2 work). Back to pm:queue, unassigned.

    Landed parts: #33350 (delete door stored-expression fill + advisories). Still open: item 2, the objectStorageSyncRefusedNotice prose (unblocked, not started).

    Resume-from: none (no branch holds unlanded work for this card; start from main)

  8. added
    pm:queue
    on Nov 15, 2026
  9. 7 remaining items

  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p2 (was p3) · area:package · Bug · data wrong × rare · deleting an object extension leaves stored values unchanged

  11. changed the title [-]metadata-protocol: deleting an own-package object_extension that re-declared a stored expression leaves stored values stale[/-] [+]metadata-protocol: the object-storage-sync-refused notice still speaks of "this save" and "publish the object again" on rollback, revert and delete answers[/+] on Nov 19, 2026
  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

    Claim: PM loop round 2 · area pkg-2 (the maintainer, verbatim, 2026-11-19T05:04Z project chat: 「再开一个 area:package」; standing 「暂时都只派 p1 p2 的卡」) · 2026-11-19T08:09Z
    Area: pkg-2
    Session: session_01Utp6CbP6iSEGkWb5fn8yqd
    Account: os-bill
    Branch: claude/issue-32958-storage-sync-notice-wording
    Worktree: objectstack-issue-32958 (os-dev worktree in the pkg-2 container)
    Domain: domain:server
    Seat: repo:objectstack#5
    Scope: what is left of this card after #33350: the wording of objectStorageSyncRefusedNotice (item 2 of the body, "Also noted"). Retitled to that item just before this claim. The stale lease:E1 label (released 6889581534) comes off with this stroke.
    File surface: packages/metadata-protocol/src/protocol-registry-hydration.ts (objectStorageSyncRefusedNotice message + hint only), tests that pin that text, a new test file named for this card, root .changeset/. ⛔ packages/spec/**. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: medium
    Clause-②: no (advisory wording only; when it is raised does not change)
    Metadata-protocol: none
    Responsibility: platform — protocol-registry-hydration.ts:2523 builds the notice "object '' was saved and is served … the columns this save added" with hint "publish the object again", and since #32921 / #33350 it also rides rollback, revert and delete answers, where no save happened; every caller reading those advisories.
    Thread-read: 6984458530
    Premise: holds — on origin/main 7ece0204: the message and hint at protocol-registry-hydration.ts:2531-2536 still say "was saved", "this save added" and "publish the object again".
    Serial constraints cleared: none — overlap-check.mjs on a probe branch touching protocol-registry-hydration.ts: 0 open PR heads share the file, base merges cleanly.
    Pre-claim lane: domain:server (packages/metadata-protocol/**)
    Pre-claim deps: none open; #33350 merged.
    Prior rulings read: metadata-protocol,deleting,own-package,object_extension,re-declared,stored,expression,leaves,values,stale → 83 hits; none on point (term noise: ADR-0027 §12, ADR-0053 §3, ADR-0055 §3, ADR-0061 D2, ADR-0076 D1, ADR-0131 D7, ADR-0150 D2); regrade 6984458530 (p2) and 6893645215 (remaining item is wording); thread: none

  13. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  14. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd
    os-dev-report

    {
      "issue": 32958,
      "status": "done",
      "branch": "claude/issue-32958-storage-sync-notice-wording",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35432",
      "head": "a171c69b",
      "session": "session_01Utp6CbP6iSEGkWb5fn8yqd",
      "premise_still_valid": true,
      "summary": "objectStorageSyncRefusedNotice now names no door: message 'object X is registered and served ... miss the columns this change added', hint 'run the storage sync again: restarting the server syncs the storage of every registered object, and so does the next live write of this object'. Rule id, severity, where, path and the reason-quoting rule are unchanged. One deviation from the ruling zone: the delete door does not raise this notice on origin/main 7ece0204, so nothing changes there (A2).",
      "readings": {
        "A1": "holds: the message said 'was saved and is served ... this save added'; the hint said 'publish the object again (which re-runs the sync), or restart the server'",
        "A2": "one builder. Answer-carrying callers: saveMetaItem publish mode (protocol-save.ts:2274), runPublishSideEffects (protocol-history-and-publish.ts:1437, which serves publishMetaItem and publishPackageDrafts), revertCommit (protocol-package-commits.ts:1791), rollbackMetaItemUnaudited (protocol-package-commits.ts:2288). Callers that discard it: applyRemoteMetadataMutation (protocol-class-head.ts:575) and batch-object-registration.ts:269. deleteMetaItem (protocol-diff-delete-load.ts) never calls ensureObjectStorage and calls fillStoredExpressionChange without storageRefused, so it does not raise the notice. The dispatch's claim that it rides the delete answer since #33350 is false on this tree.",
        "A3": "no server test pinned the notice text. protocol.publish-side-effects-canonical-type.test.ts:397 pins 'publish the object again' on the separate console.error line, which is outside the fence and unchanged. ui/packages/app-shell MetadataService.saveAdvisories.test.ts:193 and useMetadataClient.advisorySink.test.tsx:211 hold a hand-written copy of the old text as fixture input, not parsed from the server, and are unchanged.",
        "A4": "'publish the object again' re-runs the sync only through the save door in publish mode, which runs ensureObjectStorage on every live write (protocol-save.ts:2257-2276). Rollback and revert also run it. A restart syncs every registered object. The new hint names only the restart and 'the next live write of this object', and both work from every door that raises the notice."
      },
      "files_changed": [
        ".changeset/32958-storage-sync-notice-wording.md",
        "packages/metadata-protocol/src/protocol-registry-hydration.ts",
        "packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts",
        "packages/metadata-protocol/src/protocol.storage-sync-refused-notice-wording.test.ts"
      ],
      "line_budget": "4 files, +68/-4 (dispatch-gates count before the lint-import fix; +4 lines after it)",
      "tests": "At a171c69b, pnpm --filter @objectstack/metadata-protocol test: Test Files 359 passed, 9 skipped (368); Tests 23228 passed, 45 skipped (23273); lock VERDICT command-exit 0. Targeted run of 4 files: 60/60 passed. typecheck (tsc --noEmit, src includes the tests): exit 0. Ablation on the committed fix with scripts/ablation-replace.mjs (source import, no build needed): 'this change added' was changed back to 'this save added'; anchor went 1 to 0 and blob 445e3e1a to 2753623b; 2 failed / 31 passed (the new pin and the revert-door assertion). The restore returned blob 445e3e1a, and git diff HEAD was empty.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 68 commands, run locally. 66 exited 0. check:dual-build-cjs-loads exited 3: NOT MEASURED, because it needs the whole workspace built; left to CI. check:lean-entry-closure exited 3 before the dependency closure build and 0 after it. check:test-source-alias was exit 1 on the new file (lint load in a clocked window); a module-top lint import fixed it, then exit 0. check:nul-bytes exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0, run before each push. PR check-runs at a171c69b: 18 in_progress and 5 skipped when the report was written.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "deviations": "The suggested route wanted a door-level pin in a new file. The door-level pin is one added assertion in the existing revert test instead; the new file pins the builder directly, so its rig is not copied. The first push was refused because a 'Refs #32958' commit trailer is a card trailer. Before any push, the two commits were squashed onto 7ece0204 with no card trailer; the tree was unchanged. 'pnpm test -- --maxWorkers=2' passes the flag through a bare '--', so the flag may have been dropped. It was a full-package run either way.",
      "mcp_calls": "0",
      "api_writes": "2: pr_create via the fleet-write relay (POST pulls + assignees), and this os-dev-report comment via post-stamped.mjs (POST issues/32958/comments). git push is not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the console.error line in ensureObjectStorage still says 'was published' and 'publish the object again'. It is a server log line, not an answer, a test pins it, and it is outside this card's fence."
      ]
    }
  15. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

    Closed-out · area pkg-2 · 2026-11-19T10:03Z

    reading value
    PR #35432 MERGED through the merge queue as c6558d06a2 (Fixes #32958; this card closed completed)
    contract record none owed (Clause-②: no); L1-a ACCEPT 7005138126

    Delivered: the object-storage-sync-refused notice names no door ("is registered and served … the columns this change added"), and its hint names remedies that work from every door that raises it (a restart, or the next live write of the object). Rule, severity and reason quoting unchanged. The data part of the card landed earlier with #33350.
    Noted, not filed: the console.error log line in ensureObjectStorage still speaks of publishing (a server log, pinned by a test).
    State: pm:dispatched removed; card closed.

  16. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagedomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions