Repository navigation
fix(cloud-connection): a managed install or upgrade fills the stored computed fields it makes live - #35514
Conversation
…computed fields it makes live The install-local door captures every contributed object's stored computed fields before its register and, after the schema sync, fills the existing rows of each field the version added or changed, every organization, under preserveAudit, reporting each field on the answer's advisories. Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x Co-authored-by: Claude <noreply@anthropic.com>
…; docs and changeset Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x Co-authored-by: Claude <noreply@anthropic.com>
…ld filled at upgrade Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x Co-authored-by: Claude <noreply@anthropic.com>
…grade-fills-stored-expressions
📓 Docs Drift Check13 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
Coarse fallback — 7 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 21aa703abe43162ef10dc70061733edcc8dc303b && git checkout 21aa703abe43162ef10dc70061733edcc8dc303b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 895dd437f4b50402dddf6b147190c2b5d24e85ef b1c6a5bc1211f02b4f156b954792c44f43d7cf16 && git checkout -B drift-repro 895dd437f4b50402dddf6b147190c2b5d24e85ef && git merge --no-ff b1c6a5bc1211f02b4f156b954792c44f43d7cf16
node scripts/docs-audit/affected-docs.mjs --json 895dd437f4b50402dddf6b147190c2b5d24e85ef |
|
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x Final head for review · area pkg-1 · 2026-11-19T13:33Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT · head Readings: K=3; Code (
Pins.
The report shows red-first (7010586784). The judgment asked: Changeset and docs: sentences checked against the diff.
Routing. Not governed, no contract face: pkg-1 lands it. Follow-ups #35517 and #35518 (p3) are noted. A new push needs a fresh L1 only if it changes more than a main merge. |
|
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x Landing · head
L1-a docs nit (non-blocking): "the boot log names the field" holds only for rows holding NULL; the boot sample does not see rows holding an old expression's value. It rides with the docs half of #35518, not a push here. Status: |
Fixes #35390
Clause-②: no
Metadata-protocol: none
维护者速读
席位核对
packages/cloud-connection/src/marketplace-install-local-plugin.ts, andmarketplace-install-local-stored-expression-fill.test.ts.updated_atunchanged).advisoriesanswer key as a published-surface widening (see "Answer shape" below).What changes
The managed install-local door (
POST /api/v1/marketplace/install-local,os package install) now executes the #32527 ruling (6816429574, letter A) at the install/upgrade door:objectExtensionsextend, every unit of a composed artifact, through the door's existingcontributionsOf), the door asks the data engine forcaptureStoredExpressions(object)(an engine method; no metadata-protocol or objectql export changed).warn, as before).fillChanged()runs the engine's own walk (the oneos migrate stored-expressions --changed --applyruns): every row, every organization,preserveAudit. A failed sync fills nothing and reports each changed field incomplete; a fill that throws is reported, never fails the install.advisorieskey, omitted when empty, with the metadata doors' rule ids (stored-expression-filled/stored-expression-fill-incomplete) and element shape (rule,severity,where,path,message,hint).content/docs/deployment/publish-and-preview.mdxgains "What an install or upgrade does with existing rows".Answer shape: the install-local answer is the door's own JSON, not a Zod-declared response in
packages/spec(no schema nameshotLoaded,renamesCarriedor any of its keys);advisoriesis one more additive key, omitted when empty, the pattern the answer's other optional keys follow. A widening of an undeclared HTTP answer, not of a published contract shape.Tests
New file
packages/cloud-connection/src/marketplace-install-local-stored-expression-fill.test.ts, on a realObjectKernel+ObjectQLPlugin+SqlDriver(SQLite:memory:):formula→ v2 storedfull_name: rows inorg_aandorg_bare filled,updated_atunchanged, onestored-expression-filledadvisory ("3 rows of 3 written").advisorieskey.422 PLUGIN_REGISTER_FAILED) writes no row.advisorieskey.packages[]) whose unit turns the formula into a stored field: filled.Runs: the new file 7/7 on 43fbfe4; after merging origin/main, on b1c6a5b: closure rebuilt, typecheck exit 0, package suite 92 files / 1348 tests
Ablation: the plugin file restored to origin/main 5bd7257 (the A1 red reproduction)
The test imports the plugin from
src(relative import), so nodistis involved. The mutation was proved on disk (fill-step occurrences 3 then 0), the restore bygit checkout HEAD --with the HEAD blob hash compared (d1ff868) andgit diff HEADempty.The three CONTROL cases are green both ways, as controls are.
Acceptance notes
os migrate stored-expressions.saveMetaItemin publish mode, which fills; untouched here. Unmanaged installs copy into a new base and were not measured.fillStoredExpressionChangein metadata-protocol, which is not exported; exporting it was a stop-and-report per the dispatch. Carrier: none.os package installdoes not printadvisoriesyet (outside this card's file surface). Carrier: none.os migrate stored-expressionsrow incontent/docs/deployment/cli.mdxlists the metadata doors but not this one; still true, now incomplete. Carrier: none.Verification
Gate list derived with
node scripts/pm/dispatch-gates.mjs --commands; local results and the CI check-runs are in the report on the card.Generated by Claude Code