Repository navigation
fix(metadata-protocol): withdrawal reads in every package binding - #39113
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhBG7d5no8dcZDWpaR
…s once per call Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhBG7d5no8dcZDWpaR
… placements Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhBG7d5no8dcZDWpaR
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhBG7d5no8dcZDWpaR
📓 Docs Drift CheckThis PR changes 1 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 10 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 10 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 5d54f153ed01b37c4b4780b5eeff702b05746dfe && git checkout 5d54f153ed01b37c4b4780b5eeff702b05746dfe
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1f929816df3daed3a32a5dfd0b10e29058bc69d9 d6729becc6a3215df6fd36f68e61aae025987688 && git checkout -B drift-repro 1f929816df3daed3a32a5dfd0b10e29058bc69d9 && git merge --no-ff d6729becc6a3215df6fd36f68e61aae025987688
node scripts/docs-audit/affected-docs.mjs --json 1f929816df3daed3a32a5dfd0b10e29058bc69d9
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head d6729be · 2026-12-02T09:56Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Inputs read: card #39111 (body, claim 7340948798, report 7341661056, claim amendment 7341696991), PR #39113 (body, six files, net diff against ① Derived judgments
② Semver level
Changeset, sentence by sentence:
③ Boundary flags
④ Design judgment(1) One reader. (2) Only-close property. (3) Coverage. Traced through
(4) Hard stops, each checked in the tree. No lists-only filter is added on the doors' reads, the expansions, the census, the kept reader or the lint halves: the diff adds no filter anywhere, and (5) Dedupe key and read scope. Contract against code, sentence by sentence. The No must-fix, no should-fix. Nits (prose faces only; none moves a behaviour):
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review — ACCEPT on
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #39113 @
落地
State change: ready for review + auto-merge, by the owning seat; on merge it closes #39111. |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46871721865 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46871252761 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 落地Landing: 2026-12-02T13:01Z, re-armed once by the owning seat. The dequeue at 2026-12-02T11:48Z was Test Core 10/12 timing out on the 1,005-row semi-join case from #39100, a path this PR does not touch. That case now declares its timeout (#39127, PR #39130, merged). Head State: auto-merge re-armed by the owning seat; on merge #39120 (#39101) follows. |
Requested by Yibo Wang · project thread
Fixes #39111
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
@objectstack/metadata-protocol: the read the public form doors judge stored withdrawals against (getViewItemsWithStoredForms, a server-only extension with that one reader) covers every package binding of a stored body. It only adds to what that judgement reads.viewlist, theformread, the by-name reads and the authoring doors are unchanged.viewrows are still read once per call (public-form-reads-once-37709.test.tsstays green unchanged).Why
The maintainer-directed follow-up to #39101. The cases are held by the seat and handed to the card thread; this PR states them only as tests.
Tests
packages/rest/src/public-form-withdrawal-reads-package-bindings.test.ts: a realObjectKernel+ObjectQLPlugin+SqlDriver(better-sqlite3), the package registered through the engine'smanifestservice, both public form doors (GET /api/v1/forms/:slug,POST /api/v1/forms/:slug/submit) read for status,code, record count and stored-row bytes. Nine bindings, the restart order for the bindings that need no install, and controls for what stays open. 20 tests, all green at d6729be.scripts/ablation-replace.mjsandscripts/ablation-dist-preflight.mjs): the added read replaced by an empty list, marker proven indist/→ 3 of 20 red (the three cells this change is for); restored, marker proven absent → 20 of 20 green.pnpm --filter @objectstack/rest test: 449 of 450 files green at the first push; the one red file (public-form-reads-once-37709.test.ts, its no-reading control counting one extraviewrow read) is fixed by the call-local scope and re-run green.pnpm --filter @objectstack/metadata-protocol test: 380 of 381 files green; the red file (protocol.org-scoped-write-refused.test.ts, 4 cells pinning the exact names this read returns for a copy on another package's object) updated to the widened read and re-run green (318 of 318).data-write-summary-recompute-other-doors,public-form-option-subset,rest-write-route-hook-refusal-sentence.ledger,public-form-required,public-form-file-field(797 of 797).pnpm --filter @objectstack/metadata-protocol typecheck,pnpm --filter @objectstack/rest typecheck: exit 0.eslint --no-inline-configover the changed files: exit 0.node scripts/check-nul-bytes.mjs: OK.Acceptance notes
main. After 老软件包视图里的表单被新框架拒收:HotCRM 6.x/7.0 等已发布版本读不了(挡云端升级) #39101 merges, this branch mergesmainand adds those cells to the same test file, with the ablation re-read.protocol.org-scoped-write-refused.test.tsis edited beyond the claim's file list: it pins the exact names the widened read returns, so the pin moves with the read. Reported to the seat.isDefault, so no default is read from them.Verification
pnpm --filter @objectstack/rest exec vitest run src/public-form-withdrawal-reads-package-bindings.test.ts→ 20 passed (afterpnpm --filter '@objectstack/rest^...' build).