Skip to content

fix(plugin-security)!: a kernel serving private objects boots only with an enforcing sharing service - #39789

Merged
os-zhuang merged 10 commits into
mainfrom
claude/sec-boot-sharing-floor
Dec 5, 2026
Merged

os-zhuang merged 10 commits into
mainfrom
claude/sec-boot-sharing-floor

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Security-fix: seat-dispatched
Clause-②: no (narrowing — refuses a composition that was accepted)
Metadata-protocol: none
Skills-docs: skills/objectstack-platform/SKILL.md (the queues / assignmentRules note now names private objects on a boot with auth) and its config-plugins-ops eval (new case 24)

维护者速读

  • 用户能看到什么变化:默认方式启动的应用无感;用精简模式启动、或自己拼装内核的部署,如果服务着私有对象却没装记录共享服务,启动会直接失败并说明缺什么、怎么补。
  • 为什么做:安全席派发的加固:凡是服务私有对象的内核,都必须装着记录共享服务才能启动。
  • 出错会怎样:少数自定义部署升级后可能起不来,报错信息里写明要加上记录共享服务;改一行配置即可恢复,也可直接撤回本改动。
  • 要你做什么:无。

What changes

Two rules now hold on every kernel:

  • A kernel that composes the security plugin and registers an object whose effective sharing model is private boots only with an enforcing record-sharing service. It is judged per kernel at kernel:bootstrapped, before any socket opens, and bootstrap() is refused with PrivateObjectsWithoutSharingError naming every such object and the fix. There is no switch that turns it off. A kernel whose object registry cannot be read is refused too (SharingFloorRegistryUnreadableError) rather than read as serving no private object. A host kernel that serves no private object of its own is not refused because its environment kernels serve some.
  • SharingServicePlugin has no enforce option. Its enforcement middleware and sharing-rule hooks are always installed. Share links behave as before.

Also in this PR:

  • --preset minimal: a boot with auth that serves a private object needs sharing in requires. The built-in tasks and notes are private objects, so in practice minimal + auth always needs it. The skill note, a new eval case and content/docs/deployment/cli.mdx say so.
  • DevPlugin composes SharingServicePlugin beside SecurityPlugin, so record sharing is now enforced in that stack. Its tests alias the sharing plugin to source.
  • The rule's "is this object private" reading reuses the OWD mirror that explain() already carries (describeOwd, now exported), so there is no second copy.
  • Every comment that described the removed option was rewritten.
  • Changeset: patch bumps with a BREAKING upgrade note and the ADR-0087 not-required marker (the options interface is runtime-only).

Governed surface: the diff touches skills/**. The review tier is whatever the register assigns to that path.

Test fixtures: kernels whose subject is not row sharing declare their objects public_read. Fixtures that compose the platform's objects the way os serve does mount the real SharingServicePlugin. Mock kernels that stand in for a served one register an enforcing sharing stand-in.

Tests

New pins (red before the rule, green after)

packages/plugins/plugin-security/src/private-object-sharing-floor.test.ts runs a real kernel with a real SQLite driver, the real SecurityPlugin and, where mounted, the real SharingServicePlugin:

  • A private object with no sharing service is refused, naming it. Control: the same kernel with sharing mounted boots.
  • --preset minimal without sharing in requires is refused. Controls: listing it boots, and the default preset boots. The providers are resolved through resolveServedCapabilities + CAPABILITY_PROVIDERS, the same answers os serve reads. This is composition level, not a spawned os serve.
  • The rule is per kernel. A host kernel with no sharing and no private object boots beside two environment kernels that carry it. An environment kernel without sharing is refused while another kernel in the process has it.

packages/plugins/plugin-sharing/src/sharing-plugin-enforcement-always-on.pin.test.ts:

  • A type-level pin that SharingPluginOptions has no enforce key, plus a @ts-expect-error literal.
  • A runtime pin that an untyped caller's retired key still installs the middleware.

Patch round (review 7431474739), in the same pin file:

  • The refusal holds on a LiteKernel, with a sharing-mounted control.
  • A registry the floor cannot read refuses the boot. Cases: no registry; no getAllObjects; an answer that is not a list. A registry that throws propagates its own error. Control: an empty list boots.
  • Parity: the floor's private-object reading agrees with plugin-sharing's effectiveSharingModel over the owner column on 88 schemas (every model, declared top-level or under security, with and without the owner column, custom and platform-named, with and without isSystem).

Ablation:

  • With the boot hook removed, 3 cases go red: no sharing refused, minimal refused, env kernel without sharing refused.
  • With the registry guard swapped for the old fallback to an empty list, 3 cases go red: the no-registry, no-getAllObjects and not-a-list cases.
  • With each restored, all are green.
Suites run locally (head 4253f1c; the dogfood row on 80b53b2)
Package Scope Result
plugin-security full, on 4253f1c 295 files, 7482 passed
dogfood the comment-thread engine cell, on 80b53b2 with its account object declared public_read 18 passed, 6 skipped (the live-postgres cell); before the fix its sqlite cell was refused at boot
cli integration built closure: the env-kernel catalog, zero-row grant, migrate host-composition and unmanaged-tables files, plus the serve/verify parity contract 5 files, 45 passed
plugin-sharing full 87 files, 1872 passed
plugin-auth full 297/298 files; the 3 failing cases were in one fixture, fixed, and that file then passed 15/15
plugin-dev full 10 files, 91 passed
rest files that compose SecurityPlugin 19 files, 308 passed
service-automation files that compose SecurityPlugin 13 files, 107 passed
runtime files that compose SecurityPlugin 25 files; 3 failed, were fixed, then passed
organizations files that compose SecurityPlugin passed
cloud-connection files that compose SecurityPlugin passed
service-segmenter files that compose SecurityPlugin passed
http-conformance files that compose SecurityPlugin passed

Typecheck passed for plugin-security, plugin-sharing, plugin-dev and plugin-auth.

NOT MEASURED locally, so CI decides:

  • packages/verify: needs the built closure.
  • dogfood battery.

Acceptance notes

  • node scripts/ci/snapshot-next.mjs --self-test fails one case on this branch and on the merge base (checked in a detached base worktree). It is pre-existing and not touched here.
  • check:skill-examples (spec), check:dual-build-cjs-loads and check:i18n printed PREREQUISITE NOT MET locally, so they are NOT MEASURED. CI runs them.

Verification

Run one command and expect Tests 19 passed:

pnpm --filter @objectstack/plugin-security exec vitest run --maxWorkers=2 src/private-object-sharing-floor.test.ts

Read first:

  1. packages/plugins/plugin-security/src/private-object-sharing-floor.ts holds the rule: which objects count, and what "enforcing" means.
  2. packages/plugins/plugin-sharing/src/sharing-plugin.ts has the now-unconditional enforcement block.
  3. packages/plugins/plugin-dev/src/dev-plugin.ts has the new composition.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4

Kernel fixtures whose subject is permission-set grants declare their objects
public_read; the mocked kernels stand in for one carrying a sharing service.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4
… fixtures follow the floor

The floor's private-object test reuses the one OWD mirror plugin-security
already carries. Fixtures whose subject is not row sharing declare their
objects org-wide readable; plugin-dev's tests alias the sharing plugin to
source.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4
@github-actions github-actions Bot added size/xl dependencies Pull requests that update a dependency file 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 Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/plugin-dev, @objectstack/plugin-security, @objectstack/plugin-sharing, touching 14 documentable anchor(s). ⚠️ 6 changed file(s) yielded no anchor (packages/plugins/plugin-dev/package.json, packages/plugins/plugin-dev/vitest.config.ts, packages/plugins/plugin-security/src/index.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

21 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json ef4e8c5b5ab2246475185915aa9d5604d5824f04.

⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 6 changed file(s) yielded no anchor (packages/plugins/plugin-dev/package.json, packages/plugins/plugin-dev/vitest.config.ts, packages/plugins/plugin-security/src/index.ts, …) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: owner_id (literal, 46 pages)
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 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 — 25 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 ef4e8c5b5ab2246475185915aa9d5604d5824f04 → packageMentionDocs.

Which tree this was computed on

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

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

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs ef4e8c5b5ab2246475185915aa9d5604d5824f04 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4

Label · 2026-12-05T03:31Z. needs:dogfood-battery: a narrowing with a ! title, so the opt-in dogfood battery is owed on the head before the queue. The diff touches skills/**; L2 contract review is in progress at CONTRACT_REVIEW_TIER.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8575f34fa6418a1b6e64fdd0acc8e951fe0a8997
Local-runs: probe — the dispatch asked for the new pin files, the ablation and the edited fixtures to be run at this head
Scope: skills/objectstack-platform/SKILL.md, skills/objectstack-platform/evals/config-plugins-ops.json + packages/plugins/plugin-security/src/private-object-sharing-floor.ts, packages/plugins/plugin-security/src/private-object-sharing-floor.test.ts, packages/plugins/plugin-security/src/security-plugin.ts, packages/plugins/plugin-security/src/index.ts, packages/plugins/plugin-security/src/explain-engine.ts, packages/plugins/plugin-security/src/record-row-write-probe.ts, packages/plugins/plugin-sharing/src/sharing-plugin.ts, packages/plugins/plugin-sharing/src/sharing-service.ts, packages/plugins/plugin-sharing/src/shareable-objects.ts, packages/plugins/plugin-sharing/src/shareable-objects-routes.ts, packages/plugins/plugin-sharing/src/sharing-plugin-enforcement-always-on.pin.test.ts, packages/plugins/plugin-dev/src/dev-plugin.ts, packages/plugins/plugin-dev/package.json, packages/plugins/plugin-dev/vitest.config.ts, pnpm-lock.yaml, scripts/check-skills-token-ratchet.mjs, packages/cli/test/security-catalog-echo-env-kernel.integration.test.ts
Security-touching: yes

① Derived judgments

  • The rule as written holds at boot: a kernel that composes the security plugin and registers an object with an effective private model and an owner column is refused at kernel:bootstrapped unless its sharing service reports its engine middleware installed. Pin 11/11; ablation 3 red, restored green.
  • The sharing plugin has no enforce option: type-level pin and runtime pin pass; ablation 1 red, restored.
  • "Enforcing" is read off the flag the sharing plugin sets in the same step that registers its one middleware. Correct signal.
  • The judgement is per kernel, and a kernel that composes the security plugin for its declarations only is not judged. Both hold by reading and by pin.
  • must-fix: packages/cli/test/security-catalog-echo-env-kernel.integration.test.ts fails 6 of 9 at this head (check-run 145528480124, Test Core 1/12; reproduced locally). The fixture mounts the sharing service and leaves its object without a declared org-wide model, unlike the PR's other fixtures; declaring it passes 9/9.

② Semver level

  • patch on plugin-security, plugin-sharing and plugin-dev with a BREAKING banner, Clause-② no (narrowing), Metadata-protocol none and the ADR-0087 not-required marker. check:adr-0087-registration passes and reads the narrowing arm.

③ Boundary flags

  • Dev flag "cli integration layer not measured locally, CI decides": answered, red (the must-fix above).
  • Dev flag "packages/verify and the dogfood battery not measured": left to CI.
  • SQL push-down: no new id materialisation or in-app join in the diff.
  • should-fix: the floor's registry read treats an engine that exposes no registry view as one that holds no objects, and the boot passes. A boot check that cannot read the registry refuses (the discriminate-or-propagate rule of record for this read).
  • should-fix: two coverage observations on the judgement moment and on the predicate are with the owner seat; they need a contract decision.

④ Design judgment

  • skills/objectstack-platform/SKILL.md: holds against the code. Token ceiling 2250 to 2246 follows the file down; gate and self-test pass.
  • skills/objectstack-platform/evals/config-plugins-ops.json case 24: holds.
  • The narrowing refuses a composition the spec never promised would enforce; it takes no declared capability from a default-preset consumer. The removed option had no non-test caller in the repo.
  • Fixtures switched to an org-wide readable model keep their assertions' meaning; three sampled suites fail wholesale as private with the service mounted, so they always assumed org-wide reads.
  • nit: the ratchet row's narration has no line for this change.
  • nit: no parity pin between the floor's model reading and the sharing service's own.
  • nit: the refusal on the lite kernel is stated in the header and not pinned.
  • nit: the header's list of unjudged kernels omits one that withholds the boot-phase hooks.
  • nit: the changeset's DevPlugin line should say record sharing is now enforced in that stack.

Implemented-by: claude/sec-boot-sharing-floor
Reviewed-by: session_01ASNY8XNef4ywkQio6S9ju4

VERDICT: FAIL

…egistry it cannot read

A kernel whose engine exposes no readable registry is not read as serving no
private object. Pins: the unreadable-registry refusal, the refusal on a
LiteKernel, and the floor's private-object reading against plugin-sharing's.
The env-kernel catalog fixture declares its object org-wide readable.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4
…ject org-wide readable

Its subject is permission-set grants (full vs row-scoped reads), not row
sharing, and a kernel serving a private object boots only with a sharing service.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 80b53b236d4994aa07d832390681c93da227a08b
Local-runs: probe — the seat asked for the two pin files and one ablation of the registry guard to be rerun at this head
Scope: skills/objectstack-platform/SKILL.md, skills/objectstack-platform/evals/config-plugins-ops.json + packages/plugins/plugin-security/src/private-object-sharing-floor.ts, packages/plugins/plugin-security/src/private-object-sharing-floor.test.ts, packages/plugins/plugin-security/src/security-plugin.ts, packages/plugins/plugin-security/src/index.ts, packages/plugins/plugin-security/src/explain-engine.ts, packages/plugins/plugin-security/src/record-row-write-probe.ts, packages/plugins/plugin-security/src/catalog-reference-report.test.ts, packages/plugins/plugin-security/src/comment-doors.integration.test.ts, packages/plugins/plugin-security/src/comment-reaction-unreact-door.integration.test.ts, packages/plugins/plugin-security/src/comment-read-scope-semi-join.integration.test.ts, packages/plugins/plugin-security/src/default-permission-sets.unit-of-measure.integration.test.ts, packages/plugins/plugin-security/src/member-default-feed-grants.integration.test.ts, packages/plugins/plugin-security/src/platform-baseline-sets.integration.test.ts, packages/plugins/plugin-security/src/share-link-tenant-wall.test.ts, packages/plugins/plugin-security/src/upgrade-impact-report.wiring.test.ts, packages/plugins/plugin-sharing/src/sharing-plugin.ts, packages/plugins/plugin-sharing/src/sharing-service.ts, packages/plugins/plugin-sharing/src/shareable-objects.ts, packages/plugins/plugin-sharing/src/shareable-objects-routes.ts, packages/plugins/plugin-sharing/src/sharing-plugin-enforcement-always-on.pin.test.ts, packages/plugins/plugin-sharing/src/in-process-session-read.pin.test.ts, packages/plugins/plugin-sharing/src/share-arm-boot.test.ts, packages/plugins/plugin-sharing/src/share-link-enforcement-context.test.ts, packages/plugins/plugin-sharing/src/share-link-routes.api-key-account-posture.pin.test.ts, packages/plugins/plugin-sharing/src/share-link-routes.auth-gate.pin.test.ts, packages/plugins/plugin-sharing/src/share-link-tenancy-posture-admission.test.ts, packages/plugins/plugin-dev/src/dev-plugin.ts, packages/plugins/plugin-dev/package.json, packages/plugins/plugin-dev/vitest.config.ts, packages/plugins/plugin-auth/src/identity-objects-plugin.test.ts, packages/cli/test/permission-set-zero-row.integration.test.ts, packages/cli/test/security-catalog-echo-env-kernel.integration.test.ts, packages/qa/http-conformance/src/hono-print-door.conformance.test.ts, packages/qa/dogfood/test/comment-threads-query.dogfood.test.ts, packages/runtime/src/domains/share-links-enforcement-context.test.ts, packages/runtime/src/duplicate-record-user-message-doors-33790.test.ts, packages/runtime/src/identity-objects-default-organization.pin.test.ts, packages/runtime/src/in-process-session-renewal.pin.test.ts, pnpm-lock.yaml, scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

① Derived judgments

  • Delta read of 8575f34..80b53b2 against record 7431474739.
  • The must-fix is closed: the cli environment-kernel fixture declares its object org-wide readable and passes; every Test Core shard is green at this head.
  • The registry should-fix is closed: a boot whose object registry the floor cannot read is refused (no registry view, no list method, an answer that is not a list), and a registry that throws propagates its own error. Pinned by five cases; ablation of the guard 3 red, ablation of the propagation 1 red, restored green.
  • The rule as written still holds at boot: floor pin 19/19, sharing pin 2/2. The refusal is now pinned on both kernels, and the floor's reading of a private object is pinned equal to the sharing service's own over 88 schemas.
  • All check-runs at this head concluded: 70 success, 11 skipped.

② Semver level

  • Unchanged: patch with the BREAKING banner, Clause-② no (narrowing), Metadata-protocol none, ADR-0087 not-required marker; the gate passes. The delta adds one exported error class, which is additive.
  • nit: the changeset's upgrade note names the first refusal only; the second refusal and its export are in the PR body alone.

③ Boundary flags

  • Dev flag "packages/verify and the dogfood battery not measured locally": answered by CI, green at this head, battery shards included.
  • Dev flag "snapshot-next self-test fails on the merge base too": not re-derived by this review; the seat reads the base check-run.
  • SQL push-down: no new id materialisation or in-app join in the delta.
  • Two contract decisions on the judgement moment and on the predicate's coverage are parked with the maintainer through the owner seat. This head does not resolve either and forecloses neither.

④ Design judgment

  • skills/objectstack-platform/SKILL.md and its eval case 24: untouched by the delta; the prior judgment stands. The ratchet row now carries its narration line and the arithmetic holds.
  • The registry guard agrees with the rule of record it cites: discriminate the unreadable cases, propagate a thrown one, and keep an empty list as a truthful answer.
  • The dogfood cell declaring its account object org-wide readable is sound: the cell's subject is permission-set grants, its full-read member is expected to read every row, and the HTTP half of the same file already declares open models.
  • nit: the PR body's verification line expects 11 cases; the file has 19.
  • nit: the parity pin's owner-column half is a local copy, since the sharing package does not export that test.
  • nit, carried: the hand-composition snippets in the security plugin's README and the packages page show no sharing service; follow-up on the prose face.

Implemented-by: claude/sec-boot-sharing-floor
Reviewed-by: session_01ASNY8XNef4ywkQio6S9ju4

VERDICT: PASS

@objectstack-fleet

objectstack-fleet Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor Author

security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4

维护者速读

  • 用户能看到什么变化:装了安全插件、并且服务着私有对象的内核,必须同时装着记录共享服务才能启动;缺了就在启动时直接拒绝,并写明缺什么、怎么补。对象注册表读不到时同样拒绝。SharingServicePlugin 不再有 enforce 开关。默认方式启动的应用无感。
  • 为什么:安全席派发的加固,维护者已裁定「启动时拒绝」(原话「g23r 按方案派开发」)。
  • 若出错:少数用精简模式启动或自己拼装内核的部署,升级后会起不来;报错里写明要加上记录共享服务,加一行配置即可恢复,也可整体撤回本改动。
  • 要你做什么:请批准当前 head 80b53b23(签名契约审核 PASS:本 PR 评论 7432941802,Head-sha 80b53b236d4994aa07d832390681c93da227a08b;它关闭了上一轮记录 7431474739 的必修项与可落地的应修项)。你在会话里回复同意后,由席位翻 ready、挂 auto-merge 落地。

席位意见:ACCEPT。完整 L2 一轮与 delta L2(PASS)均在案。另有两个更宽的契约问题已单独交维护者裁定,它们不阻塞本 PR,本 head 也不妨碍其中任何一种裁定。

席位核对

ACCEPT · head 80b53b23 · read 2026-12-05T05:48Z

  1. 形态: draft PR,基于 main,无卡。Clause-②: no (narrowing)、Metadata-protocol: none,带 BREAKING 升级说明与 ADR-0087 不需迁移标记;触及 skills/**(技能说明一句与 eval 第 24 条),Skills-docs: 行在且属实。定档 Tier H。
  2. 前提实测: 新规则测试在修复前为红、修复后为绿;去掉启动检查、换回旧的注册表兜底、吞掉注册表抛出的错误,对应的钉子都会变红,恢复后全绿(计数见 PR 正文与 L2 记录)。
  3. 门禁: 本 head 的 check-runs:72 成功、13 跳过、0 失败,其中 Dogfood battery (opt-in) 与三个分片均为 success(本 PR 挂 needs:dogfood-battery)。上一 head 的 dogfood 红是一个手工组装内核的测试夹具,本 head 已按其测试主题声明 public_read 修复,L2 判此选择成立。
  4. 接受的偏差: 测试夹具中与行共享无关的对象改声明 public_read,需要按平台方式组装的夹具挂真实共享插件;snapshot-next --self-test 在合并基点同样失败,与本 diff 无关。L2 的余下 nit(changeset 只点名第一种拒绝、一致性钉子的所有者列半边是本地副本)不阻塞。
  5. 范围外去向,Skills-docs:: 安全插件 README 与 packages 页的手工组装示例未展示共享服务,由席位另行跟进文档。两个更宽的契约问题交维护者裁定。
  6. 落地条款: 维护者批准当前 head 后,席位执行 pr_ready + automerge_enable;head 若再移动,须重新取得同形 L2 PASS。合并后公告仍为草稿,台账记合并。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 80b53b236d4994aa07d832390681c93da227a08b
Local-runs: probe — the seat asked for the two pin files and one ablation of the registry guard to be rerun at this head
Scope: skills/objectstack-platform/SKILL.md, skills/objectstack-platform/evals/config-plugins-ops.json + packages/plugins/plugin-security/src/private-object-sharing-floor.ts, packages/plugins/plugin-security/src/private-object-sharing-floor.test.ts, packages/plugins/plugin-security/src/security-plugin.ts, packages/plugins/plugin-security/src/index.ts, packages/plugins/plugin-security/src/explain-engine.ts, packages/plugins/plugin-security/src/record-row-write-probe.ts, packages/plugins/plugin-security/src/catalog-reference-report.test.ts, packages/plugins/plugin-security/src/comment-doors.integration.test.ts, packages/plugins/plugin-security/src/comment-reaction-unreact-door.integration.test.ts, packages/plugins/plugin-security/src/comment-read-scope-semi-join.integration.test.ts, packages/plugins/plugin-security/src/default-permission-sets.unit-of-measure.integration.test.ts, packages/plugins/plugin-security/src/member-default-feed-grants.integration.test.ts, packages/plugins/plugin-security/src/platform-baseline-sets.integration.test.ts, packages/plugins/plugin-security/src/share-link-tenant-wall.test.ts, packages/plugins/plugin-security/src/upgrade-impact-report.wiring.test.ts, packages/plugins/plugin-sharing/src/sharing-plugin.ts, packages/plugins/plugin-sharing/src/sharing-service.ts, packages/plugins/plugin-sharing/src/shareable-objects.ts, packages/plugins/plugin-sharing/src/shareable-objects-routes.ts, packages/plugins/plugin-sharing/src/sharing-plugin-enforcement-always-on.pin.test.ts, packages/plugins/plugin-sharing/src/in-process-session-read.pin.test.ts, packages/plugins/plugin-sharing/src/share-arm-boot.test.ts, packages/plugins/plugin-sharing/src/share-link-enforcement-context.test.ts, packages/plugins/plugin-sharing/src/share-link-routes.api-key-account-posture.pin.test.ts, packages/plugins/plugin-sharing/src/share-link-routes.auth-gate.pin.test.ts, packages/plugins/plugin-sharing/src/share-link-tenancy-posture-admission.test.ts, packages/plugins/plugin-dev/src/dev-plugin.ts, packages/plugins/plugin-dev/package.json, packages/plugins/plugin-dev/vitest.config.ts, packages/plugins/plugin-auth/src/identity-objects-plugin.test.ts, packages/cli/test/permission-set-zero-row.integration.test.ts, packages/cli/test/security-catalog-echo-env-kernel.integration.test.ts, packages/qa/http-conformance/src/hono-print-door.conformance.test.ts, packages/qa/dogfood/test/comment-threads-query.dogfood.test.ts, packages/runtime/src/domains/share-links-enforcement-context.test.ts, packages/runtime/src/duplicate-record-user-message-doors-33790.test.ts, packages/runtime/src/identity-objects-default-organization.pin.test.ts, packages/runtime/src/in-process-session-renewal.pin.test.ts, pnpm-lock.yaml, scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

① Derived judgments

  • Delta read of 8575f34..80b53b2 against record 7431474739.
  • M1 (must-fix): closed — the cli environment-kernel fixture declares its object org-wide readable and passes; every Test Core shard is green at this head.
  • S1 (should-fix): closed — a boot whose object registry the floor cannot read is refused (no registry view, no list method, an answer that is not a list), and a registry that throws propagates its own error. Pinned by five cases; ablation of the guard 3 red, ablation of the propagation 1 red, restored green.
  • The rule as written still holds at boot: floor pin 19/19, sharing pin 2/2. The refusal is now pinned on both kernels, and the floor's reading of a private object is pinned equal to the sharing service's own over 88 schemas.
  • All check-runs at this head concluded: 70 success, 11 skipped.

② Semver level

  • Unchanged: patch with the BREAKING banner, Clause-② no (narrowing), Metadata-protocol none, ADR-0087 not-required marker; the gate passes. The delta adds one exported error class, which is additive.
  • nit: the changeset's upgrade note names the first refusal only; the second refusal and its export are in the PR body alone.

③ Boundary flags

  • Dev flag "packages/verify and the dogfood battery not measured locally": answered by CI, green at this head, battery shards included.
  • Dev flag "snapshot-next self-test fails on the merge base too": not re-derived by this review; the seat reads the base check-run.
  • SQL push-down: no new id materialisation or in-app join in the delta.
  • Two contract decisions on the judgement moment and on the predicate's coverage are parked with the maintainer through the owner seat. This head does not resolve either and forecloses neither.

④ Design judgment

  • skills/objectstack-platform/SKILL.md and its eval case 24: untouched by the delta; the prior judgment stands. The ratchet row now carries its narration line and the arithmetic holds.
  • The registry guard agrees with the rule of record it cites: discriminate the unreadable cases, propagate a thrown one, and keep an empty list as a truthful answer.
  • The dogfood cell declaring its account object org-wide readable is sound: the cell's subject is permission-set grants, its full-read member is expected to read every row, and the HTTP half of the same file already declares open models.
  • nit: the PR body's verification line expects 11 cases; the file has 19.
  • nit: the parity pin's owner-column half is a local copy, since the sharing package does not export that test.
  • nit, carried: the hand-composition snippets in the security plugin's README and the packages page show no sharing service; follow-up on the prose face.

Implemented-by: claude/sec-boot-sharing-floor
Reviewed-by: session_01ASNY8XNef4ywkQio6S9ju4

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 80b53b236d4994aa07d832390681c93da227a08b
Local-runs: probe — the seat asked for the two pin files and one ablation of the registry guard to be rerun at this head
Scope: skills/objectstack-platform/SKILL.md, skills/objectstack-platform/evals/config-plugins-ops.json + packages/plugins/plugin-security/src/private-object-sharing-floor.ts, packages/plugins/plugin-security/src/private-object-sharing-floor.test.ts, packages/plugins/plugin-security/src/security-plugin.ts, packages/plugins/plugin-security/src/index.ts, packages/plugins/plugin-security/src/explain-engine.ts, packages/plugins/plugin-security/src/record-row-write-probe.ts, packages/plugins/plugin-security/src/catalog-reference-report.test.ts, packages/plugins/plugin-security/src/comment-doors.integration.test.ts, packages/plugins/plugin-security/src/comment-reaction-unreact-door.integration.test.ts, packages/plugins/plugin-security/src/comment-read-scope-semi-join.integration.test.ts, packages/plugins/plugin-security/src/default-permission-sets.unit-of-measure.integration.test.ts, packages/plugins/plugin-security/src/member-default-feed-grants.integration.test.ts, packages/plugins/plugin-security/src/platform-baseline-sets.integration.test.ts, packages/plugins/plugin-security/src/share-link-tenant-wall.test.ts, packages/plugins/plugin-security/src/upgrade-impact-report.wiring.test.ts, packages/plugins/plugin-sharing/src/sharing-plugin.ts, packages/plugins/plugin-sharing/src/sharing-service.ts, packages/plugins/plugin-sharing/src/shareable-objects.ts, packages/plugins/plugin-sharing/src/shareable-objects-routes.ts, packages/plugins/plugin-sharing/src/sharing-plugin-enforcement-always-on.pin.test.ts, packages/plugins/plugin-sharing/src/in-process-session-read.pin.test.ts, packages/plugins/plugin-sharing/src/share-arm-boot.test.ts, packages/plugins/plugin-sharing/src/share-link-enforcement-context.test.ts, packages/plugins/plugin-sharing/src/share-link-routes.api-key-account-posture.pin.test.ts, packages/plugins/plugin-sharing/src/share-link-routes.auth-gate.pin.test.ts, packages/plugins/plugin-sharing/src/share-link-tenancy-posture-admission.test.ts, packages/plugins/plugin-dev/src/dev-plugin.ts, packages/plugins/plugin-dev/package.json, packages/plugins/plugin-dev/vitest.config.ts, packages/plugins/plugin-auth/src/identity-objects-plugin.test.ts, packages/cli/test/permission-set-zero-row.integration.test.ts, packages/cli/test/security-catalog-echo-env-kernel.integration.test.ts, packages/qa/http-conformance/src/hono-print-door.conformance.test.ts, packages/qa/dogfood/test/comment-threads-query.dogfood.test.ts, packages/runtime/src/domains/share-links-enforcement-context.test.ts, packages/runtime/src/duplicate-record-user-message-doors-33790.test.ts, packages/runtime/src/identity-objects-default-organization.pin.test.ts, packages/runtime/src/in-process-session-renewal.pin.test.ts, pnpm-lock.yaml, scripts/check-skills-token-ratchet.mjs
Security-touching: yes
Rule-change-verified: none

① Derived judgments

  • Delta read of 8575f34..80b53b2 against record 7431474739.
  • M1: closed — the cli environment-kernel fixture declares its object org-wide readable and passes; every Test Core shard is green at this head.
  • S1: closed — a boot whose object registry the floor cannot read is refused (no registry view, no list method, an answer that is not a list), and a registry that throws propagates its own error. Pinned by five cases; ablation of the guard 3 red, ablation of the propagation 1 red, restored green.
  • The rule as written still holds at boot: floor pin 19/19, sharing pin 2/2. The refusal is now pinned on both kernels, and the floor's reading of a private object is pinned equal to the sharing service's own over 88 schemas.
  • All check-runs at this head concluded: 70 success, 11 skipped.

② Semver level

  • Unchanged: patch with the BREAKING banner, Clause-② no (narrowing), Metadata-protocol none, ADR-0087 not-required marker; the gate passes. The delta adds one exported error class, which is additive.
  • nit: the changeset's upgrade note names the first refusal only; the second refusal and its export are in the PR body alone.

③ Boundary flags

  • Dev flag "packages/verify and the dogfood battery not measured locally": answered by CI, green at this head, battery shards included.
  • Dev flag "snapshot-next self-test fails on the merge base too": not re-derived by this review; the seat reads the base check-run.
  • SQL push-down: no new id materialisation or in-app join in the delta.
  • Two contract decisions on the judgement moment and on the predicate's coverage are parked with the maintainer through the owner seat. This head does not resolve either and forecloses neither.

④ Design judgment

  • skills/objectstack-platform/SKILL.md and its eval case 24: untouched by the delta; the prior judgment stands. The ratchet row now carries its narration line and the arithmetic holds.
  • The registry guard agrees with the rule of record it cites: discriminate the unreadable cases, propagate a thrown one, and keep an empty list as a truthful answer.
  • The dogfood cell declaring its account object org-wide readable is sound: the cell's subject is permission-set grants, its full-read member is expected to read every row, and the HTTP half of the same file already declares open models.
  • nit: the PR body's verification line expects 11 cases; the file has 19.
  • nit: the parity pin's owner-column half is a local copy, since the sharing package does not export that test.
  • nit, carried: the hand-composition snippets in the security plugin's README and the packages page show no sharing service; follow-up on the prose face.

Implemented-by: claude/sec-boot-sharing-floor
Reviewed-by: session_01ASNY8XNef4ywkQio6S9ju4

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4

请审 · head 80b53b236d4994aa07d832390681c93da227a08b

  • 席位记录:ACCEPT → PR #39789 comment 7432900297。
  • 签名契约审核 PASS:comment 7432941802,Head-sha 80b53b236d4994aa07d832390681c93da227a08b。
  • 本 PR 触及 skills/**,按登记册定档 Tier H,需维护者批准当前 head;批准后由席位翻 ready、挂 auto-merge。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 5, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 5, 2026 05:54
@os-zhuang
os-zhuang marked this pull request as ready for review December 5, 2026 05:54
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 5, 2026
Merged via the queue into main with commit c6ce49b Dec 5, 2026
93 checks passed
@os-zhuang
os-zhuang deleted the claude/sec-boot-sharing-floor branch December 5, 2026 06:34
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation needs:dogfood-battery size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants