You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filing gate: ③ maintainer-directed (contract review of #37021, round 3, comment 7145286565: R16–R20 are should-fix or nit and follow up here).
定级:area:cloud · 非核心 · 跟进 #37013 · 读码与本地探针
R16: every read that serves a stored body applies the platform-mark rule (carriesPlatformStamp, top-level _provenance only). That includes MetadataManager.getPublished and GET /meta/:type/:name/published. A served answer never carries a mark that sits anywhere other than the stored item's own top level.
R17: a rollback addressed at the platform's own record either keeps the mark (when both the row and the version are the platform's) or is refused with a prescription. A process primed from rows then never answers a package read with the platform's old body.
R18: the texts that say "every rollback or restore" and "no other write" name the two internal undo writes, or those writes go through the same strip.
R19 and R20: update the PR body's ablation counts, and add one failing pin for the protocol save door's strip line and one for revertCommit's restore limb.
Acceptance
One failing pin for each of items 1–2 and 4, with an ablation red for each.
Claim: this card is being closed inside PR #37021 by the #37013 thread. The hand-off gate needs the same-head review's should-fix findings closed in that PR. Do not dispatch this card separately. It closes when #37021 merges (Closes #37130 in its body).
#37021 closes items 1, 3 and 4 of this card, and item 2 at the metadata service's rollback, which now refuses a rollback of the platform's own record. Its round 4 contract review (R21) found item 2 still open at the protocol's restore doors. This card therefore stays open after #37021 merges. #37021 references it as Part of, not Closes. What remains:
The metadata protocol's rollbackMetaItem and the restore limb of revertCommit refuse a restore whose target row is the platform's record, with the same prescription as the service's rollback. Alternatively, the protocol's readers stop reading that row as a customization (see 元数据读取:存储的元数据要能按行上记录的包读出绑定,不从正文推断 #37039).
The history package selector behaves as its description states: a package that neither holds nor ships the name is refused 409 not-held-by-qualifier, and never addresses the package-less row.
Released to pm:queue · 2026-11-25T04:43Z: no thread holds this card. The #37013 thread closed after #37021 merged (c0637341), and the remaining items were left here: R21, the protocol restore doors (rollbackMetaItem and the restore limb of revertCommit), the history selector refusal, and the R22–R24 nits. Per the maintainer's focus, this project works epic cloud#4961 and the record-scoped AI topic (#36996) first, so this card is parked in the queue until a seat picks it up. Nothing is in flight and no branch is open.
{
"issue": 37130,
"status": "done",
"branch": "claude/project-thread-fyj895",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37423",
"head_sha": "abc706ceaa1b48c56f7c63c04b428a8ce00e6bbc",
"session": "session_01JQwxba3jmfHtmkWfFXfVTc",
"premise_still_valid": true,
"summary": "Item 1: rollbackMetaItem and the restore limb of revertCommit now refuse a restore whose active row is the platform's own record with 409 RESOURCE_CONFLICT and the service rollback's prescription. The rule is one exported predicate, refusePlatformRecordRestore, asked by DatabaseLoader.registerRollback and by SysMetadataRepository.restoreVersion under refusePlatformRecord: true. A refused revertCommit item lands in failed[] and the other items are reverted (ADR-0067 D3). Item 2: historySlotOf refuses a package that neither holds nor ships the name with 409 not-held-by-qualifier, also when the package-less row is stored. Item 3: the PLATFORM_PROVENANCE doc and the storedRowBodyOf doc are fixed, and the ADR-0010 wording is given as a PR-body line. Folded from #37039's ACCEPT: H3 list-twice is fixed at the priming registration key (primedRowSlot). H4 N2 fails closed: listPackageBindings is degraded over a datasource: loader with no loadRowBindings. H5 N7: the column is recorded from the bindReadRowPackage re-read. H2 (R16) re-verified, no code. H1 was confirmed by red pins on base 5bf72422.",
"files_changed": [
".changeset/37130-platform-record-restore-doors.md",
"packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts",
"packages/metadata-protocol/src/protocol-history-slots.test.ts",
"packages/metadata-protocol/src/protocol-history-slots.ts",
"packages/metadata-protocol/src/protocol-package-commits.ts",
"packages/metadata-protocol/src/protocol.platform-mark-rollback.test.ts",
"packages/metadata-protocol/src/sys-metadata-repository.ts",
"packages/metadata/src/index.ts",
"packages/metadata/src/loaders/database-loader.test.ts",
"packages/metadata/src/loaders/database-loader.ts",
"packages/metadata/src/metadata-manager.ts",
"packages/metadata/src/package-slotted-store.ts",
"packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts"
],
"line_budget": "13 files, +353 -51 against merge-base (git diff --shortstat; the PR API answers additions 353, deletions 51, changed_files 13); size label size/m; no skills/** touched",
"tests": "At abc706ce: pnpm --filter @objectstack/metadata test: Test Files 83 passed (83), Tests 2808 passed (2808). pnpm --filter @objectstack/metadata-protocol test under the lock: VERDICT command-exit 0, Test Files 370 passed | 9 skipped (379), Tests 23440 passed | 45 skipped (23485). Typecheck of both packages: exit 0. Ablation, 8 runs, each fix line removed and then restored with git checkout: A1 rollbackMetaItem refusePlatformRecord 1 red; A2 revertCommit refusePlatformRecord 2 red; A3 restoreVersion check 3 red; A4 selector holdsSlot 3 red; A5 primedRowSlot 2 red; A6 N2 degraded 1 red; A7 N7 column record 1 red; A8 refusePlatformRecordRestore answering nothing 2 red (the service rollback pins of #37013). On base 5bf72422 the new door pins were red with: expected { success: true, ...(4) }; expected [] to have a length of 1; expected 'platform v1' to be 'package rules'.",
"gates": "Local, at abc706ce: node scripts/pm/dispatch-gates.mjs --commands derived 72; 70 exit 0 and 2 exit 3 (NOT MEASURED): node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone) and pnpm check:dual-build-cjs-loads (unbuilt packages outside this diff). pnpm check:type-check-debt exit 0: 'check-type-check-coverage --re-measure: OK — 0 ledger entr(ies) re-measured, 0 raw tsc error(s)'. dispatch-gates --repo objectstack-ai/objectstack --ran: exit 0, '72 derived famil(ies) accounted for — 70 run, 2 NOT-MEASURED'. overlap-check --pr=37387: merges cleanly. CI check-runs on abc706ce at report time: success for Auto Label, Build Core, Check Changeset, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Governed Surface Queue Guard, Lint & Repo Gates, Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Live E2E UI, PR-body guards, Plan Test Core shards, Spec property liveness, Test UI, Type Check · consumer gates, Type Check · debt ledger, Type Check · source gates, filter. in_progress: Test Core (1/10 to 10/10) and Type Check · workspace.",
"dogfood_battery": "abc706ce · os-verify-lock: VERDICT command-exit 0 (pnpm --filter @objectstack/dogfood test, held 36m37s on a shared box) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures",
"mcp_calls": "0",
"api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus its assignee write, os-warren; read-back answered 10348 bytes sent, 10348 stored, identical; draft true) and comment (POST /repos/objectstack-ai/objectstack/issues/37130/comments, this report, through post-stamped.mjs). Plus git push to origin/claude/project-thread-fyj895.",
"deviations": [
"Clause-② is declared 'yes (narrowing)' in the PR body and the changeset, where the claim read 'no (narrowing)': the diff adds a public export (refusePlatformRecordRestore from @objectstack/metadata) and the optional restoreVersion option refusePlatformRecord. Metadata-protocol: none, as claimed.",
"packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts is outside the claim's file surface. It pinned the branch that item 2's ruling removes (a non-shipping package addressing the package-less row), so it now expects the 409 at the history and diff doors. Its unit twin protocol-diff-history-slots.33308.test.ts was retargeted the same way.",
"The PR body is stale on three readings and was not PATCHed, because the dev writes the body only at pr_create. First, its metadata-protocol suite figure is from 955a3452 and says it was not re-run; it was re-run at abc706ce and is green with the same counts. Second, it lists check:type-check-debt as NOT MEASURED; it now exits 0. Third, it has no dogfood figure; the figure is in dogfood_battery. The seat may bring the body to these readings.",
"Two local gate families are NOT MEASURED (exit 3, prerequisite not met): check-plugin-teardown-shape --self-test on a shallow clone, and check:dual-build-cjs-loads over unbuilt packages outside the diff. CI runs both."
],
"open_questions": [
{
"question": "The stop rule lists a new published export as a contract change. This PR exports refusePlatformRecordRestore from @objectstack/metadata, following the dispatch's zone-3 route (reuse the predicate, no third copy), and adds an optional restoreVersion option. Is that acceptable without a needs_decision round?",
"options": [
"A keep the export: the protocol package asks the one refusal, as now",
"B make it internal: a third copy of the refusal in metadata-protocol, which the dispatch's route forbids"
],
"recommendation": "A, because the dispatch's route names one predicate for the three doors, and no new error code or reason value is added (RESOURCE_CONFLICT and not-held-by-qualifier both exist)"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: weekly ADR revisions card · the ADR-0010 note wording is given as one line in the PR body; docs/adr/** is out of surface and not touched",
"carrier: seat · the unreleased .changeset/37013-platform-skill-own-slot.md still carries round 4's R22 c and d texts and 'never inside a publish snapshot'; it is outside this claim's surface and goes in as a deliberate correction with the next text edit",
"carrier: seat · round 4's R21 reading: a version the platform registered is attributed to the environment in history, so after the platform withdraws its record under a one-holder name, a rollback naming the package can write it into the package's row; not changed here",
"carrier: #37187 · N3 and N6 were not folded into this card and are untouched"
]
}
ACCEPT → PR #37423 comment 7182545383 (2026-11-26T04:23Z). L2: comment 7182526807, PASS at CONTRACT_REVIEW_TIER on head 43a6758f. Landing waits on the dogfood battery re-run at that head.
{
"issue": 37130,
"status": "done",
"branch": "claude/project-thread-fyj895",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37423",
"head_sha": "43a6758fe8859a4e4b6a96a7ea49cceaae6fae63",
"session": "session_01JQwxba3jmfHtmkWfFXfVTc",
"premise_still_valid": true,
"summary": "Item 1: rollbackMetaItem and the restore limb of revertCommit now refuse a restore whose active row is the platform's own record with 409 RESOURCE_CONFLICT and the service rollback's prescription. The rule is one exported predicate, refusePlatformRecordRestore, asked by DatabaseLoader.registerRollback and by SysMetadataRepository.restoreVersion under refusePlatformRecord: true. A refused revertCommit item lands in failed[] and the other items are reverted (ADR-0067 D3). Item 2: historySlotOf refuses a package that neither holds nor ships the name with 409 not-held-by-qualifier, also when the package-less row is stored. Item 3: the PLATFORM_PROVENANCE doc and the storedRowBodyOf doc are fixed, and the ADR-0010 wording is given as a PR-body line. Folded from #37039's ACCEPT: H3 list-twice is fixed at the priming registration key (primedRowSlot). H4 N2 fails closed: listPackageBindings is degraded over a datasource: loader with no loadRowBindings. H5 N7: the column is recorded from the bindReadRowPackage re-read. H2 (R16) re-verified, no code. H1 was confirmed by red pins on base 5bf72422.",
"files_changed": [
".changeset/37013-platform-skill-own-slot.md",
".changeset/37130-platform-record-restore-doors.md",
"packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts",
"packages/metadata-protocol/src/protocol-history-slots.test.ts",
"packages/metadata-protocol/src/protocol-history-slots.ts",
"packages/metadata-protocol/src/protocol-package-commits.ts",
"packages/metadata-protocol/src/protocol.platform-mark-rollback.test.ts",
"packages/metadata-protocol/src/sys-metadata-repository.ts",
"packages/metadata/src/index.ts",
"packages/metadata/src/loaders/database-loader.test.ts",
"packages/metadata/src/loaders/database-loader.ts",
"packages/metadata/src/metadata-manager.ts",
"packages/metadata/src/package-slotted-store.ts",
"packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts"
],
"line_budget": "13 files, +353 -51 against merge-base (git diff --shortstat; the PR API answers additions 353, deletions 51, changed_files 13); size label size/m; no skills/** touched",
"tests": "At abc706ce: pnpm --filter @objectstack/metadata test: Test Files 83 passed (83), Tests 2808 passed (2808). pnpm --filter @objectstack/metadata-protocol test under the lock: VERDICT command-exit 0, Test Files 370 passed | 9 skipped (379), Tests 23440 passed | 45 skipped (23485). Typecheck of both packages: exit 0. Ablation, 8 runs, each fix line removed and then restored with git checkout: A1 rollbackMetaItem refusePlatformRecord 1 red; A2 revertCommit refusePlatformRecord 2 red; A3 restoreVersion check 3 red; A4 selector holdsSlot 3 red; A5 primedRowSlot 2 red; A6 N2 degraded 1 red; A7 N7 column record 1 red; A8 refusePlatformRecordRestore answering nothing 2 red (the service rollback pins of #37013). On base 5bf72422 the new door pins were red with: expected { success: true, ...(4) }; expected [] to have a length of 1; expected 'platform v1' to be 'package rules'.",
"gates": "Local, at abc706ce: node scripts/pm/dispatch-gates.mjs --commands derived 72; 70 exit 0 and 2 exit 3 (NOT MEASURED): node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone) and pnpm check:dual-build-cjs-loads (unbuilt packages outside this diff). pnpm check:type-check-debt exit 0: 'check-type-check-coverage --re-measure: OK — 0 ledger entr(ies) re-measured, 0 raw tsc error(s)'. dispatch-gates --repo objectstack-ai/objectstack --ran: exit 0, '72 derived famil(ies) accounted for — 70 run, 2 NOT-MEASURED'. overlap-check --pr=37387: merges cleanly. CI check-runs on abc706ce at report time: success for Auto Label, Build Core, Check Changeset, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Governed Surface Queue Guard, Lint & Repo Gates, Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Live E2E UI, PR-body guards, Plan Test Core shards, Spec property liveness, Test UI, Type Check · consumer gates, Type Check · debt ledger, Type Check · source gates, filter. in_progress: Test Core (1/10 to 10/10) and Type Check · workspace.",
"dogfood_battery": "43a6758fe8859a4e4b6a96a7ea49cceaae6fae63 · os-verify-lock: VERDICT command-exit 0 · held the lock 2126s (35m26s) · waited 0s (pnpm --filter @objectstack/dogfood test, no OS_TEST_SHARD, no path, after the closure rebuild pnpm --filter '@objectstack/dogfood^...' build: VERDICT command-exit 0) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures",
"mcp_calls": "0",
"api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus its assignee write, os-warren; read-back answered 10348 bytes sent, 10348 stored, identical; draft true) and comment (POST /repos/objectstack-ai/objectstack/issues/37130/comments, this report, through post-stamped.mjs). Plus git push to origin/claude/project-thread-fyj895.",
"deviations": [
"Clause-② is declared 'yes (narrowing)' in the PR body and the changeset, where the claim read 'no (narrowing)': the diff adds a public export (refusePlatformRecordRestore from @objectstack/metadata) and the optional restoreVersion option refusePlatformRecord. Metadata-protocol: none, as claimed.",
"packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts is outside the claim's file surface. It pinned the branch that item 2's ruling removes (a non-shipping package addressing the package-less row), so it now expects the 409 at the history and diff doors. Its unit twin protocol-diff-history-slots.33308.test.ts was retargeted the same way.",
"The PR body is stale on three readings and was not PATCHed, because the dev writes the body only at pr_create. First, its metadata-protocol suite figure is from 955a3452 and says it was not re-run; it was re-run at abc706ce and is green with the same counts. Second, it lists check:type-check-debt as NOT MEASURED; it now exits 0. Third, it has no dogfood figure; the figure is in dogfood_battery. The seat may bring the body to these readings.",
"Two local gate families are NOT MEASURED (exit 3, prerequisite not met): check-plugin-teardown-shape --self-test on a shallow clone, and check:dual-build-cjs-loads over unbuilt packages outside the diff. CI runs both."
],
"open_questions": [
{
"question": "The stop rule lists a new published export as a contract change. This PR exports refusePlatformRecordRestore from @objectstack/metadata, following the dispatch's zone-3 route (reuse the predicate, no third copy), and adds an optional restoreVersion option. Is that acceptable without a needs_decision round?",
"options": [
"A keep the export: the protocol package asks the one refusal, as now",
"B make it internal: a third copy of the refusal in metadata-protocol, which the dispatch's route forbids"
],
"recommendation": "A, because the dispatch's route names one predicate for the three doors, and no new error code or reason value is added (RESOURCE_CONFLICT and not-held-by-qualifier both exist)"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: weekly ADR revisions card · the ADR-0010 note wording is given as one line in the PR body; docs/adr/** is out of surface and not touched",
"carrier: seat · the unreleased .changeset/37013-platform-skill-own-slot.md still carries round 4's R22 c and d texts and 'never inside a publish snapshot'; it is outside this claim's surface and goes in as a deliberate correction with the next text edit",
"carrier: seat · round 4's R21 reading: a version the platform registered is attributed to the environment in history, so after the platform withdraws its record under a one-holder name, a rollback naming the package can write it into the package's row; not changed here",
"carrier: #37187 · N3 and N6 were not folded into this card and are untouched"
]
}
landing: 7183369211. Check Changeset is red by design: the PR deliberately corrects .changeset/37013-platform-skill-own-slot.md, and the L2 record confirms that correction.
Done in the PR: card items 1–3 (the ADR-0010 wording aside), R16 re-verified, and the three folded follow-ups from 7180250767, each fixed and pinned:
(a) list() double listing, fixed in primedRowSlot;
(b) N2: degraded over a datasource: loader without loadRowBindings;
(c) N7: the column is recorded from the bindReadRowPackage re-read.
After merge, add one line to the open weekly "ADR revisions" card. The ADR-0010 note's wording is in the PR body.
Hand the zone follow-ups that have no card yet to the area:cloud zone:
round 4's other R21 reading: after the platform withdraws its record, a rollback naming the package can write a platform-registered version into that package's row;
adoptOrphans may rebind the platform's own package-less row;
Handoff update 2026-11-26T05:37Z. This supersedes item 1 of handoff 7183559260. #37423 left the queue 2026-11-26T05:34Z: the Governed Surface Guard narrowed leg refused it because the PR declares Clause-②: yes (narrowing) (maintainer ruling 2026-11-19 on #35321: a narrowing lands by the maintainer). The PR is back in draft and carries pm:awaiting-merge. Review is requested from os-zhuang, and the hand-off brief is comment 7183644636.
Next for whoever holds this: after os-zhuang approves head 43a6758f, re-land with label-write --issue 37423 --land (ready + auto-merge). Every other item of 7183559260 stands.
Delivered 2026-11-26T06:08Z: PR #37423 merged as 8e1e15be, enqueued by the maintainer under os-zhuang, and Fixes #37130 closed this card. pm:dispatched comes off in this stroke. What remains belongs elsewhere, as handoff 7183559260 lists. The ADR-0010 wording in the PR body goes to the weekly ADR revisions card. The follow-ups with no card yet go to the area:cloud zone: the R21 platform-withdraw rollback edge, the adoptOrphans lead, L2 nits N1–N5, and #37187 N3/N6.
Handoff 7183559260 closed out 2026-11-26T14:52Z: item 1 done (PR #37423 merged, card closed); item 2 is a row on the weekly ADR revisions card #37245 (7195437501); item 3 is card #37604 (rollback-by-package edge, adoptOrphans on the platform row, L2 nits N1–N5, #37187's N3 and N6).
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T22:36Z
Bug.pm:queueadded.priority:p2,domain:serverandarea:cloudwere already present.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Claim: this card is being closed inside PR #37021 by the #37013 thread. The hand-off gate needs the same-head review's should-fix findings closed in that PR. Do not dispatch this card separately. It closes when #37021 merges (
Closes #37130in its body).objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Card amendment: what stays open after #37021
#37021 closes items 1, 3 and 4 of this card, and item 2 at the metadata service's
rollback, which now refuses a rollback of the platform's own record. Its round 4 contract review (R21) found item 2 still open at the protocol's restore doors. This card therefore stays open after #37021 merges. #37021 references it asPart of, notCloses. What remains:rollbackMetaItemand the restore limb ofrevertCommitrefuse a restore whose target row is the platform's record, with the same prescription as the service'srollback. Alternatively, the protocol's readers stop reading that row as a customization (see 元数据读取:存储的元数据要能按行上记录的包读出绑定,不从正文推断 #37039).409 not-held-by-qualifier, and never addresses the package-less row.storedRowBodyOfdoc comment indatabase-loader.ts.Acceptance:
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Released to
pm:queue· 2026-11-25T04:43Z: no thread holds this card. The #37013 thread closed after #37021 merged (c0637341), and the remaining items were left here: R21, the protocol restore doors (rollbackMetaItemand the restore limb ofrevertCommit), the history selector refusal, and the R22–R24 nits. Per the maintainer's focus, this project works epic cloud#4961 and the record-scoped AI topic (#36996) first, so this card is parked in the queue until a seat picks it up. Nothing is in flight and no branch is open.2 remaining items
objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxba3jmfHtmkWfFXfVTc
os-dev-report
{ "issue": 37130, "status": "done", "branch": "claude/project-thread-fyj895", "pr": "https://github.com/objectstack-ai/objectstack/pull/37423", "head_sha": "abc706ceaa1b48c56f7c63c04b428a8ce00e6bbc", "session": "session_01JQwxba3jmfHtmkWfFXfVTc", "premise_still_valid": true, "summary": "Item 1: rollbackMetaItem and the restore limb of revertCommit now refuse a restore whose active row is the platform's own record with 409 RESOURCE_CONFLICT and the service rollback's prescription. The rule is one exported predicate, refusePlatformRecordRestore, asked by DatabaseLoader.registerRollback and by SysMetadataRepository.restoreVersion under refusePlatformRecord: true. A refused revertCommit item lands in failed[] and the other items are reverted (ADR-0067 D3). Item 2: historySlotOf refuses a package that neither holds nor ships the name with 409 not-held-by-qualifier, also when the package-less row is stored. Item 3: the PLATFORM_PROVENANCE doc and the storedRowBodyOf doc are fixed, and the ADR-0010 wording is given as a PR-body line. Folded from #37039's ACCEPT: H3 list-twice is fixed at the priming registration key (primedRowSlot). H4 N2 fails closed: listPackageBindings is degraded over a datasource: loader with no loadRowBindings. H5 N7: the column is recorded from the bindReadRowPackage re-read. H2 (R16) re-verified, no code. H1 was confirmed by red pins on base 5bf72422.", "files_changed": [ ".changeset/37130-platform-record-restore-doors.md", "packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts", "packages/metadata-protocol/src/protocol-history-slots.test.ts", "packages/metadata-protocol/src/protocol-history-slots.ts", "packages/metadata-protocol/src/protocol-package-commits.ts", "packages/metadata-protocol/src/protocol.platform-mark-rollback.test.ts", "packages/metadata-protocol/src/sys-metadata-repository.ts", "packages/metadata/src/index.ts", "packages/metadata/src/loaders/database-loader.test.ts", "packages/metadata/src/loaders/database-loader.ts", "packages/metadata/src/metadata-manager.ts", "packages/metadata/src/package-slotted-store.ts", "packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts" ], "line_budget": "13 files, +353 -51 against merge-base (git diff --shortstat; the PR API answers additions 353, deletions 51, changed_files 13); size label size/m; no skills/** touched", "tests": "At abc706ce: pnpm --filter @objectstack/metadata test: Test Files 83 passed (83), Tests 2808 passed (2808). pnpm --filter @objectstack/metadata-protocol test under the lock: VERDICT command-exit 0, Test Files 370 passed | 9 skipped (379), Tests 23440 passed | 45 skipped (23485). Typecheck of both packages: exit 0. Ablation, 8 runs, each fix line removed and then restored with git checkout: A1 rollbackMetaItem refusePlatformRecord 1 red; A2 revertCommit refusePlatformRecord 2 red; A3 restoreVersion check 3 red; A4 selector holdsSlot 3 red; A5 primedRowSlot 2 red; A6 N2 degraded 1 red; A7 N7 column record 1 red; A8 refusePlatformRecordRestore answering nothing 2 red (the service rollback pins of #37013). On base 5bf72422 the new door pins were red with: expected { success: true, ...(4) }; expected [] to have a length of 1; expected 'platform v1' to be 'package rules'.", "gates": "Local, at abc706ce: node scripts/pm/dispatch-gates.mjs --commands derived 72; 70 exit 0 and 2 exit 3 (NOT MEASURED): node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone) and pnpm check:dual-build-cjs-loads (unbuilt packages outside this diff). pnpm check:type-check-debt exit 0: 'check-type-check-coverage --re-measure: OK — 0 ledger entr(ies) re-measured, 0 raw tsc error(s)'. dispatch-gates --repo objectstack-ai/objectstack --ran: exit 0, '72 derived famil(ies) accounted for — 70 run, 2 NOT-MEASURED'. overlap-check --pr=37387: merges cleanly. CI check-runs on abc706ce at report time: success for Auto Label, Build Core, Check Changeset, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Governed Surface Queue Guard, Lint & Repo Gates, Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Live E2E UI, PR-body guards, Plan Test Core shards, Spec property liveness, Test UI, Type Check · consumer gates, Type Check · debt ledger, Type Check · source gates, filter. in_progress: Test Core (1/10 to 10/10) and Type Check · workspace.", "dogfood_battery": "abc706ce · os-verify-lock: VERDICT command-exit 0 (pnpm --filter @objectstack/dogfood test, held 36m37s on a shared box) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures", "mcp_calls": "0", "api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus its assignee write, os-warren; read-back answered 10348 bytes sent, 10348 stored, identical; draft true) and comment (POST /repos/objectstack-ai/objectstack/issues/37130/comments, this report, through post-stamped.mjs). Plus git push to origin/claude/project-thread-fyj895.", "deviations": [ "Clause-② is declared 'yes (narrowing)' in the PR body and the changeset, where the claim read 'no (narrowing)': the diff adds a public export (refusePlatformRecordRestore from @objectstack/metadata) and the optional restoreVersion option refusePlatformRecord. Metadata-protocol: none, as claimed.", "packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts is outside the claim's file surface. It pinned the branch that item 2's ruling removes (a non-shipping package addressing the package-less row), so it now expects the 409 at the history and diff doors. Its unit twin protocol-diff-history-slots.33308.test.ts was retargeted the same way.", "The PR body is stale on three readings and was not PATCHed, because the dev writes the body only at pr_create. First, its metadata-protocol suite figure is from 955a3452 and says it was not re-run; it was re-run at abc706ce and is green with the same counts. Second, it lists check:type-check-debt as NOT MEASURED; it now exits 0. Third, it has no dogfood figure; the figure is in dogfood_battery. The seat may bring the body to these readings.", "Two local gate families are NOT MEASURED (exit 3, prerequisite not met): check-plugin-teardown-shape --self-test on a shallow clone, and check:dual-build-cjs-loads over unbuilt packages outside the diff. CI runs both." ], "open_questions": [ { "question": "The stop rule lists a new published export as a contract change. This PR exports refusePlatformRecordRestore from @objectstack/metadata, following the dispatch's zone-3 route (reuse the predicate, no third copy), and adds an optional restoreVersion option. Is that acceptable without a needs_decision round?", "options": [ "A keep the export: the protocol package asks the one refusal, as now", "B make it internal: a third copy of the refusal in metadata-protocol, which the dispatch's route forbids" ], "recommendation": "A, because the dispatch's route names one predicate for the three doors, and no new error code or reason value is added (RESOURCE_CONFLICT and not-held-by-qualifier both exist)" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: weekly ADR revisions card · the ADR-0010 note wording is given as one line in the PR body; docs/adr/** is out of surface and not touched", "carrier: seat · the unreleased .changeset/37013-platform-skill-own-slot.md still carries round 4's R22 c and d texts and 'never inside a publish snapshot'; it is outside this claim's surface and goes in as a deliberate correction with the next text edit", "carrier: seat · round 4's R21 reading: a version the platform registered is attributed to the environment in history, so after the platform withdraws its record under a one-holder name, a rollback naming the package can write it into the package's row; not changed here", "carrier: #37187 · N3 and N6 were not folded into this card and are untouched" ] }Generated by Claude Code
docs(changeset): the restore doors' refusal and the snapshot rule agr…
objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxba3jmfHtmkWfFXfVTc
ACCEPT → PR #37423 comment 7182545383 (2026-11-26T04:23Z). L2: comment 7182526807, PASS at
CONTRACT_REVIEW_TIERon head43a6758f. Landing waits on the dogfood battery re-run at that head.objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxba3jmfHtmkWfFXfVTc
os-dev-report
{ "issue": 37130, "status": "done", "branch": "claude/project-thread-fyj895", "pr": "https://github.com/objectstack-ai/objectstack/pull/37423", "head_sha": "43a6758fe8859a4e4b6a96a7ea49cceaae6fae63", "session": "session_01JQwxba3jmfHtmkWfFXfVTc", "premise_still_valid": true, "summary": "Item 1: rollbackMetaItem and the restore limb of revertCommit now refuse a restore whose active row is the platform's own record with 409 RESOURCE_CONFLICT and the service rollback's prescription. The rule is one exported predicate, refusePlatformRecordRestore, asked by DatabaseLoader.registerRollback and by SysMetadataRepository.restoreVersion under refusePlatformRecord: true. A refused revertCommit item lands in failed[] and the other items are reverted (ADR-0067 D3). Item 2: historySlotOf refuses a package that neither holds nor ships the name with 409 not-held-by-qualifier, also when the package-less row is stored. Item 3: the PLATFORM_PROVENANCE doc and the storedRowBodyOf doc are fixed, and the ADR-0010 wording is given as a PR-body line. Folded from #37039's ACCEPT: H3 list-twice is fixed at the priming registration key (primedRowSlot). H4 N2 fails closed: listPackageBindings is degraded over a datasource: loader with no loadRowBindings. H5 N7: the column is recorded from the bindReadRowPackage re-read. H2 (R16) re-verified, no code. H1 was confirmed by red pins on base 5bf72422.", "files_changed": [ ".changeset/37013-platform-skill-own-slot.md", ".changeset/37130-platform-record-restore-doors.md", "packages/metadata-protocol/src/protocol-diff-history-slots.33308.test.ts", "packages/metadata-protocol/src/protocol-history-slots.test.ts", "packages/metadata-protocol/src/protocol-history-slots.ts", "packages/metadata-protocol/src/protocol-package-commits.ts", "packages/metadata-protocol/src/protocol.platform-mark-rollback.test.ts", "packages/metadata-protocol/src/sys-metadata-repository.ts", "packages/metadata/src/index.ts", "packages/metadata/src/loaders/database-loader.test.ts", "packages/metadata/src/loaders/database-loader.ts", "packages/metadata/src/metadata-manager.ts", "packages/metadata/src/package-slotted-store.ts", "packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts" ], "line_budget": "13 files, +353 -51 against merge-base (git diff --shortstat; the PR API answers additions 353, deletions 51, changed_files 13); size label size/m; no skills/** touched", "tests": "At abc706ce: pnpm --filter @objectstack/metadata test: Test Files 83 passed (83), Tests 2808 passed (2808). pnpm --filter @objectstack/metadata-protocol test under the lock: VERDICT command-exit 0, Test Files 370 passed | 9 skipped (379), Tests 23440 passed | 45 skipped (23485). Typecheck of both packages: exit 0. Ablation, 8 runs, each fix line removed and then restored with git checkout: A1 rollbackMetaItem refusePlatformRecord 1 red; A2 revertCommit refusePlatformRecord 2 red; A3 restoreVersion check 3 red; A4 selector holdsSlot 3 red; A5 primedRowSlot 2 red; A6 N2 degraded 1 red; A7 N7 column record 1 red; A8 refusePlatformRecordRestore answering nothing 2 red (the service rollback pins of #37013). On base 5bf72422 the new door pins were red with: expected { success: true, ...(4) }; expected [] to have a length of 1; expected 'platform v1' to be 'package rules'.", "gates": "Local, at abc706ce: node scripts/pm/dispatch-gates.mjs --commands derived 72; 70 exit 0 and 2 exit 3 (NOT MEASURED): node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone) and pnpm check:dual-build-cjs-loads (unbuilt packages outside this diff). pnpm check:type-check-debt exit 0: 'check-type-check-coverage --re-measure: OK — 0 ledger entr(ies) re-measured, 0 raw tsc error(s)'. dispatch-gates --repo objectstack-ai/objectstack --ran: exit 0, '72 derived famil(ies) accounted for — 70 run, 2 NOT-MEASURED'. overlap-check --pr=37387: merges cleanly. CI check-runs on abc706ce at report time: success for Auto Label, Build Core, Check Changeset, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Governed Surface Queue Guard, Lint & Repo Gates, Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Live E2E UI, PR-body guards, Plan Test Core shards, Spec property liveness, Test UI, Type Check · consumer gates, Type Check · debt ledger, Type Check · source gates, filter. in_progress: Test Core (1/10 to 10/10) and Type Check · workspace.", "dogfood_battery": "43a6758fe8859a4e4b6a96a7ea49cceaae6fae63 · os-verify-lock: VERDICT command-exit 0 · held the lock 2126s (35m26s) · waited 0s (pnpm --filter @objectstack/dogfood test, no OS_TEST_SHARD, no path, after the closure rebuild pnpm --filter '@objectstack/dogfood^...' build: VERDICT command-exit 0) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures", "mcp_calls": "0", "api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus its assignee write, os-warren; read-back answered 10348 bytes sent, 10348 stored, identical; draft true) and comment (POST /repos/objectstack-ai/objectstack/issues/37130/comments, this report, through post-stamped.mjs). Plus git push to origin/claude/project-thread-fyj895.", "deviations": [ "Clause-② is declared 'yes (narrowing)' in the PR body and the changeset, where the claim read 'no (narrowing)': the diff adds a public export (refusePlatformRecordRestore from @objectstack/metadata) and the optional restoreVersion option refusePlatformRecord. Metadata-protocol: none, as claimed.", "packages/qa/dogfood/test/history-diff-two-holders-33308.dogfood.test.ts is outside the claim's file surface. It pinned the branch that item 2's ruling removes (a non-shipping package addressing the package-less row), so it now expects the 409 at the history and diff doors. Its unit twin protocol-diff-history-slots.33308.test.ts was retargeted the same way.", "The PR body is stale on three readings and was not PATCHed, because the dev writes the body only at pr_create. First, its metadata-protocol suite figure is from 955a3452 and says it was not re-run; it was re-run at abc706ce and is green with the same counts. Second, it lists check:type-check-debt as NOT MEASURED; it now exits 0. Third, it has no dogfood figure; the figure is in dogfood_battery. The seat may bring the body to these readings.", "Two local gate families are NOT MEASURED (exit 3, prerequisite not met): check-plugin-teardown-shape --self-test on a shallow clone, and check:dual-build-cjs-loads over unbuilt packages outside the diff. CI runs both." ], "open_questions": [ { "question": "The stop rule lists a new published export as a contract change. This PR exports refusePlatformRecordRestore from @objectstack/metadata, following the dispatch's zone-3 route (reuse the predicate, no third copy), and adds an optional restoreVersion option. Is that acceptable without a needs_decision round?", "options": [ "A keep the export: the protocol package asks the one refusal, as now", "B make it internal: a third copy of the refusal in metadata-protocol, which the dispatch's route forbids" ], "recommendation": "A, because the dispatch's route names one predicate for the three doors, and no new error code or reason value is added (RESOURCE_CONFLICT and not-held-by-qualifier both exist)" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: weekly ADR revisions card · the ADR-0010 note wording is given as one line in the PR body; docs/adr/** is out of surface and not touched", "carrier: seat · the unreleased .changeset/37013-platform-skill-own-slot.md still carries round 4's R22 c and d texts and 'never inside a publish snapshot'; it is outside this claim's surface and goes in as a deliberate correction with the next text edit", "carrier: seat · round 4's R21 reading: a version the platform registered is attributed to the environment in history, so after the platform withdraws its record under a one-holder name, a rollback naming the package can write it into the package's row; not changed here", "carrier: #37187 · N3 and N6 were not folded into this card and are untouched" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxba3jmfHtmkWfFXfVTc
Handoff 2026-11-26T05:30Z. The maintainer's order, project chat 2026-11-26T05:30Z: 「token 快用完了,要求开发尽快提交代码。进入交接模式」.
claude/project-thread-fyj895@43a6758fe8859a4e4b6a96a7ea49cceaae6fae63. Everything is pushed and the local tree is clean.CONTRACT_REVIEW_TIER: 7182526807;Check Changesetis red by design: the PR deliberately corrects.changeset/37013-platform-skill-own-slot.md, and the L2 record confirms that correction.list()double listing, fixed inprimedRowSlot;degradedover adatasource:loader withoutloadRowBindings;bindReadRowPackagere-read.landing-operations.mdB. On merge,Fixes #37130closes this card. Takepm:dispatchedoff in the same stroke.adoptOrphansmay rebind the platform's own package-less row;objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxba3jmfHtmkWfFXfVTc
Handoff update 2026-11-26T05:37Z. This supersedes item 1 of handoff 7183559260. #37423 left the queue 2026-11-26T05:34Z: the Governed Surface Guard narrowed leg refused it because the PR declares
Clause-②: yes (narrowing)(maintainer ruling 2026-11-19 on #35321: a narrowing lands by the maintainer). The PR is back in draft and carriespm:awaiting-merge. Review is requested fromos-zhuang, and the hand-off brief is comment 7183644636.Next for whoever holds this: after os-zhuang approves head
43a6758f, re-land withlabel-write --issue 37423 --land(ready + auto-merge). Every other item of 7183559260 stands.objectstack-fleet commentedon Nov 26, 2026
repo:cloud#1 · os-warren · session_01JQwxba3jmfHtmkWfFXfVTc
Delivered 2026-11-26T06:08Z: PR #37423 merged as
8e1e15be, enqueued by the maintainer under os-zhuang, andFixes #37130closed this card.pm:dispatchedcomes off in this stroke. What remains belongs elsewhere, as handoff 7183559260 lists. The ADR-0010 wording in the PR body goes to the weekly ADR revisions card. The follow-ups with no card yet go to the area:cloud zone: the R21 platform-withdraw rollback edge, theadoptOrphanslead, L2 nits N1–N5, and #37187 N3/N6.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
Handoff 7183559260 closed out 2026-11-26T14:52Z: item 1 done (PR #37423 merged, card closed); item 2 is a row on the weekly ADR revisions card #37245 (7195437501); item 3 is card #37604 (rollback-by-package edge,
adoptOrphanson the platform row, L2 nits N1–N5, #37187's N3 and N6).fix(metadata): a skill the platform registers keeps its own slot besi…
fix(metadata-protocol)!: the restore doors refuse the platform's own …