Skip to content

fix(hosted): personal-view delete and attachment remove/rename answer on a hosted tenant kernel instead of 404 - #36690

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-30y04n
Nov 23, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-30y04n

Conversation

@os-warren

@os-warren os-warren commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Warren · project thread

Fixes #36506

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 用户看到的变化:在托管云环境里,删除个人视图、删除或重命名记录附件,从“找不到”变为正常完成;自部署环境不变。
  • 为什么:这三个操作原先只挂在自部署才有的网络入口上,托管租户没有这个入口,请求落空。
  • 坏了会怎样:托管环境里这三个操作回到“找不到”或“未实现”;不会越权,身份和成员校验比自部署更严。
  • 需要你做什么:合并即可;云端无需改代码,下次把云端依赖的平台版本升到包含本修复的版本后生效。

What changes

Root cause: DELETE /api/v1/personal-views/:id (plugin-auth) and DELETE / PATCH /api/v1/attachments/:id (service-storage) were mounted only on the kernel's http.server. A hosted tenant kernel owns no socket, registers no http.server, and runs AuthPlugin with registerRoutes: false. The host's createHonoApp catch-all hands every unclaimed /api/v1/* request to HttpDispatcher.dispatch(), which had no domain for either prefix and answered 404 ROUTE_NOT_FOUND. The cloud host's storage bridge covers only /api/v1/storage, so it never reached them either.

The fix applies ruling A on #22438 to these two members of the class, the same shape #36539 gave the comment doors:

  • Spec. IPersonalViewDoorsService.handlePersonalViewDoor(request): Promise<Response> types a new personal-views slot. IAttachmentDoorsService.handleAttachmentDoor is implemented by the existing file-attachments service beside IFileAttachmentService. Both members are optional.
  • One body, two faces. createDoorTableMember(routes, mount) (new export of @objectstack/plugin-hono-server) runs the plugin's own registrar on a private HonoHttpServer that never listens, built on first request. So the caller resolution, every refusal and every answer are the self-hosted mount's own bytes. The self-hosted mounts are unchanged and no path is mounted twice.
    • AuthPlugin.init() registers personal-views whatever registerRoutes says; mountPersonalViewDoor and the member share one personalViewDoorDeps().
    • StorageServicePlugin hands FileAttachmentService an attachmentDoors member over mountAttachmentRemovalDoor.
  • Runtime. A shared bridge (domains/own-door-bridge.ts) and two domains, /personal-views and /attachments, claim exactly the door shapes and forward the transport's request, body unread and re-addressed to the wire path, to the member on the REQUEST kernel's slot (getRequestKernelService, never the host's scoped fallback). Any other shape under those prefixes keeps 404 ROUTE_NOT_FOUND. No slot, or no member: a typed 501 NOT_IMPLEMENTED naming the package that registers it. A member throw or a consumed body: a sanitised 500, logged. No auth-gate or membership exemption is added, so on the dispatcher the doors are stricter than the self-hosted mount, never looser.
  • Ledgers. Three server-only rows in route-ledger.ts (census 153 → 156); a new own-row-doors-session row in the authz conformance matrix; check-route-envelope.mjs audits the three new domain files.
  • Dependencies. @objectstack/plugin-auth and @objectstack/service-storage now depend on @objectstack/plugin-hono-server at runtime (no manifest cycle; check:workspace-manifest-cycles green).
  • Surface widening (hence Clause-②: yes): two new contract interfaces, a new typed slot name (personal-views is now taken, so a composition registering its own service under that name beside AuthPlugin fails to boot with a duplicate-service error), two new exports from plugin-hono-server, and two new dispatcher domains.

No cloud code change and no cloud deploy is needed. Hosted gets the fix when cloud's objectstack pin moves past this PR, as with #36469.

Tests

  • packages/runtime/src/domains/own-door-bridge.test.ts (27): describe.each over both families. Forwarding with the transport's own request and body unread; exact claim and misses; the environment-scoped spelling; 501 for an empty slot, a throwing lookup and a missing member; per-request reads; request kernel only (the host kernel's member is never used); member throw 500; consumed body 500; both preamble gates (membership 403, owed-step gate) with a member control.
  • packages/plugins/plugin-hono-server/src/door-table-member.test.ts (4): byte parity against a HonoHttpServer mount; unmatched 404 without building the table; built once; the matcher.
  • packages/plugins/plugin-auth/src/personal-view-door-member.test.ts (3): AuthPlugin.init with registerRoutes: false registers the slot once; an anonymous request is byte-equal to the self-hosted mount's 401; a non-door request is 404 ENDPOINT_NOT_FOUND.
  • packages/services/service-storage/src/attachment-removal-routes.integration.test.ts: a new describe with no http.server (no routes mounted; the uploader renames then removes, 200 each; another member 403; anonymous 401 on both doors; a GET 404).
  • packages/qa/http-conformance/src/hono-own-row-doors.conformance.test.ts (7), the wire half: createHonoApp over a kernel with no http.server, the real AuthPlugin composed with registerRoutes: false, the real StorageServicePlugin, platform objects, security and sharing, and real better-auth sessions signed in through the same transport. No door answers a route miss; the owner removes their own personal view (200, row gone); another member 404 RECORD_NOT_FOUND and anonymous 401 (row stays); the uploader renames then removes their own attachment (200 each, store follows); anonymous 401 on both attachment doors; the refusals are byte-identical to the self-hosted mount over a real socket; a kernel without service-storage answers 501 naming it. The subject packages resolve from source (vitest.config.ts aliases).
  • Dogfood, real composed stack, through HttpDispatcher alone (hosted-dispatcher.testkit.ts): personal-view-row-scope gains a [hosted] describe (owner removal 200, another user 404 RECORD_NOT_FOUND, anonymous 401); member-attachment-baseline gains a [hosted] case (other member 403, anonymous 401, rename 200 trimmed, removal 200 and the row is gone).

Acceptance notes

  • Red before the fix, each through scripts/ablation-replace.mjs with the restore proved (blob == HEAD, git diff HEAD empty):
    • the two domain registrations deleted from http-dispatcher.ts: own-door-bridge.test.ts 21 of 27 red (the 6 that stay green are the miss and gate cases, which hold without the domain);
    • ctx.registerService('personal-views', …) deleted: the plugin-auth member test 3 of 3 red;
    • the attachmentDoors: dep renamed away: the storage integration file 3 red, 17 green (the new describe's door cases).
    • The wire-half file, 7 tests: the two dispatcher domain registrations deleted and runtime dist rebuilt: 7 of 7 red, each answering the pre-fix 404 ROUTE_NOT_FOUND (restored, rebuilt, green again); registerService('personal-views', …) deleted: 4 red (every personal-view case and the parity case); attachmentDoors: renamed away: 4 red (every attachment case and the parity case).
  • Overlap: #36311 conflicts in auth-plugin.ts, but origin/main × #36311 already has that one hunk (an import line). HEAD × #36311 has the same single hunk, so it is not added by this branch. #35129 and #34223 merge cleanly.

Verification

  • Typecheck green: spec, runtime, plugin-auth, service-storage, plugin-hono-server, dogfood.
  • Full suites green: http-conformance 22 files / 305 tests; runtime 641 files / 11872 tests; plugin-auth 294 / 6268; service-storage 88 / 1729; plugin-hono-server 44 / 585.
  • Dogfood: personal-view-row-scope + member-attachment-baseline 37 / 37.
  • dispatch-gates --ran: 137 derived, 136 run green, 1 NOT MEASURED (check:dual-build-cjs-loads, exit 3, needs every package's dist/; left to CI). check:undeclared-dep-imports caught plugin-auth listing plugin-hono-server as a dev dependency only; fixed and green.
  • eslint on the 31 changed source files, with --no-inline-config as pnpm lint runs it, green (the whole-tree pnpm lint is left to CI); check-nul-bytes OK.
Gate reconciliation
Run reconciliation — 137 derived, 136 run, 1 NOT-MEASURED, 0 UNRUN.
  NOT-MEASURED · DERIVED (1):
    - pnpm check:dual-build-cjs-loads   [recorded exit 3 — PREREQUISITE NOT MET]
✓ dispatch-gates --ran: 137 derived famil(ies) accounted for — 136 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

https://claude.ai/code/session_01JQwxbXs1Hrj1qNTkGdJbK1


Generated by Claude Code

…a kernel with no http.server (WIP)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXs1Hrj1qNTkGdJbK1
…nal-view and attachment doors

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXs1Hrj1qNTkGdJbK1
…endency, and the unmatched-door pin typechecks

The personal-view member imports plugin-hono-server, so it moves from devDependencies to
dependencies. The storage hosted pin reads the 404 envelope through toMatchObject.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXs1Hrj1qNTkGdJbK1
@os-warren os-warren self-assigned this Nov 23, 2026
@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 Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 6 package(s): @objectstack/plugin-auth, @objectstack/plugin-hono-server, @objectstack/http-conformance, @objectstack/runtime, @objectstack/service-storage, @objectstack/spec, touching 43 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/plugins/plugin-auth/package.json, packages/plugins/plugin-hono-server/src/index.ts, packages/qa/http-conformance/vitest.config.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

18 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 c1e6cf75a757a7e9102bae608ddb020135619882.

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

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/plugins/plugin-auth/package.json, packages/plugins/plugin-hono-server/src/index.ts, packages/qa/http-conformance/vitest.config.ts, …) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: /api/v1 (route, 128 pages)
  • 14 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 68 of 251 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 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 — 185 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 c1e6cf75a757a7e9102bae608ddb020135619882 → packageMentionDocs.

Which tree this was computed on

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

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

⚠️ 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 c1e6cf75a757a7e9102bae608ddb020135619882 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

objectstack-fleet Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0e6be1a2506e4a57895cc6cbf0b94db2e5ce9b5d
Local-runs: none
Scope: all 37 paths of git diff 6a731859de..0e6be1a250 (merge base with origin/main) + card #36506 and its comments 7081412453, 7097905516, 7100098053; ruling 6079645593 on #22438; card #36469; PR #36539 file list; the PR body; packages/runtime/src/domains/comments.ts, approvals.ts, webhooks.ts; packages/runtime/src/http-dispatcher.ts (resolveService, requestKernel, getRequestKernelService); packages/runtime/src/domain-handler-registry.ts; packages/plugins/plugin-audit/src/comment-doors-member.ts and package.json; packages/plugins/plugin-hono-server/src/adapter.ts and package.json; packages/plugins/plugin-auth/src/personal-view-routes.ts; packages/core/src/security/own-row-delete-routes.ts; packages/services/service-storage/src/storage-service-plugin.ts (mountAttachmentRemovalDoor); packages/adapters/hono/src/index.ts (catch-all body read); packages/qa/dogfood/test/route-ledger-live-mount-parity.dogfood.test.ts; packages/qa/http-conformance/src/ listing; scripts/check-changeset-no-major.mjs; check-runs of the head
Security-touching: yes
Rule-change-verified: none

① Derived judgments

  • The published surface is what the PR declares. Spec gains IAttachmentDoorsService and IPersonalViewDoorsService, the personal-views key in ServiceSlotContracts, and two barrel lines. plugin-hono-server gains createDoorTableMember, matchDoorTableRoute and the type DoorTableRoute. Runtime gains two domains and three ledger rows. Nothing is removed or renamed.
  • Every addition is additive and optional. Each contract has one optional member, (request: Request) => Promise<Response>. The type pins assert optionality, the one-Request parameter list, the Promise<Response> return and the barrel identity.
  • The contract shape equals fix(comments): unreact, resolve and own-comment delete answer on a kernel with no http.server #36539's ICommentDoorsService.handleCommentDoor. The member body equals plugin-audit's createCommentDoorMember, generalised into plugin-hono-server. The bridge body equals comments.ts line for line, except the slot lookup (see the note below).
  • The baselines are right. api-surface/contracts.json and export-origins/contracts.json each gain exactly the two interfaces, in sorted position, with the correct origin files. fix(comments): unreact, resolve and own-comment delete answer on a kernel with no http.server #36539 moved the same two files and no other.
  • The route census (153 to 156) matches the three new rows. The matrix arithmetic holds: 44 keys, 20 classified, 24 in the baseline.
  • Clause-②: yes (widening) is true. Metadata-protocol: none is true: no authorable schema, no authorable-surface or authorable-defaults baseline moves.
  • should-fix (false in-tree statement, and the proof it names is missing). packages/runtime/src/domains/own-door-bridge.test.ts line 30 to 32 says the wire half "is packages/qa/http-conformance/src/hono-own-row-doors.conformance.test.ts". That file does not exist at this head. The matrix row own-row-doors-session also says "Unit-, wire- and dogfood-proven", and no wire test is in the diff. fix(comments): unreact, resolve and own-comment delete answer on a kernel with no http.server #36539 shipped its wire half (hono-comment-doors.conformance.test.ts: createHonoApp, the real plugin, a kernel with no http.server). Without it, no test drives the personal-view door to an authorised 200 on a kernel composed with registerRoutes: false and no http.server. The [hosted] dogfood cases run the dispatcher over a self-hosted stack, and the plugin-auth member test pins only the anonymous 401 and the 404. Fix: add the conformance file as the precedent did, or delete the citation and the word "wire-" and state the gap.
  • note: file-attachments is still absent from ServiceSlotContracts, so IAttachmentDoorsService is not tied to its slot in the type ledger. The bridge also names members as strings and imports no spec type, where comments.ts imports ICommentDoorsService. A renamed spec member would not fail the runtime typecheck. Tests on the real stack would catch it.
  • note: plugin-audit keeps its own copy of the table member. Folding it onto createDoorTableMember is a follow-up, not this PR.

② Semver level

  • The changeset grades @objectstack/spec, @objectstack/runtime, @objectstack/plugin-auth, @objectstack/service-storage and @objectstack/plugin-hono-server at patch. Those are all five published packages whose source moves. @objectstack/dogfood is private.
  • scripts/check-changeset-no-major.mjs requires every entry to be patch under Metadata-protocol: none, and forbids major. The changeset meets both. It carries both declaration lines, equal to the PR body. The Check Changeset run is green on this head.
  • patch for a Clause-② widening follows the fix(comments): unreact, resolve and own-comment delete answer on a kernel with no http.server #36539 precedent (same declaration, same level).

③ Boundary flags

  • Same authorization, no bypass. Each member runs the plugin's own registrar (registerPersonalViewRoutes, mountAttachmentRemovalDoor) over the same deps as the self-hosted mount. personalViewDoorDeps() is one function used by both faces. attachment-removal-routes.ts and own-row-delete-routes.ts are not in the diff. So the caller resolution, the read as the caller, the owner check, the attachment update gate and the order of refusals are unchanged code.
  • Principal and context. The bridge passes only the transport's Request. It builds no ExecutionContext and adds no credential. The member resolves the caller from the request headers through the request kernel's own registry (this.authManager, toGateRegistry(ctx)). The system write inside the door runs only after the own-row checks, as before. No system context can enter from the bridge.
  • Request kernel only. The bridge reads the slot with getRequestKernelService, which has no host fallback. A test pins that a tenant kernel without the member gets 501 and the host's member is never called.
  • 501 when absent. Correct and typed. The message names the slot and the registering package only. It carries no tenant data. It matches the precedent's wording class.
  • Preamble gates. No allow-list entry and no membership skip is added. Tests pin a non-member 403 and an owed-step stop before the member runs, with a positive control.
  • The private table cannot listen. new HonoHttpServer(0) only builds a Hono app; listening is a separate call that nothing here makes. The table is never registered as a service, so it cannot become http.server. This is the same construction plugin-audit already ships.
  • Route-envelope parity. check-route-envelope.mjs gains three handBuilt: 0 rows. That is true: every bridge answer goes through deps.routeNotFound or deps.error, and the member's Response is returned untouched.
  • Dogfood matrix. A strengthening. Two new domains arrive classified by a new enforced row. The baseline file changes one comment only (+3 -2); no key is added to the unclassified baseline. Not marking it HIGH_RISK follows the comment-doors-session precedent.
  • No test gets weaker. Test files are add-only except three changed lines in the storage integration fixture, which add an opt-out flag and return one more field. core-service-contracts.test.ts moves the exact slot list from 8 to 9.
  • Dependency. plugin-hono-server depends on core, observability, spec and types only, so no cycle forms. plugin-audit already has the same runtime dependency. The pull is hono and @hono/node-server at module load; the table itself is built on first request.
  • Pins red without the fix. The PR body records three ablations with counts and a proved restore. They were not re-run here.
  • note: a security item is with the owner seat.
  • note: the attachment member captures the objectql engine when the table is first built. A null read at that moment would be kept for the life of the process. The self-hosted mount captures at kernel:ready in the same way, so this is parity, and a first request comes after bootstrap.
  • note: mountAttachmentRemovalDoor logs "attachment removal door mounted" on the first hosted request, on a kernel that has no server.
  • note: at review time the PR is a draft, most CI jobs are still running, and the dogfood shards are skipped.

④ Design judgment

  • The design is ruling A applied per member, as the card asks: an optional transport-neutral member on the producer's contract, an exact dispatcher domain, a typed 501 on an absent slot, and the self-hosted mount unchanged.
  • A separate personal-views slot and reuse of file-attachments are both sound. The changeset states the new duplicate-name risk for personal-views.
  • One shared bridge and one shared table member reduce copies. That is better than a third hand-written domain.
  • The claim amendment explains the wider surface and the Clause-② change from no to yes. Cloud needs no change, as with 评论的表情回应取消不了:再点一次提示「表情回应未保存,请重试」,取消请求返回「接口不存在」(托管环境) #36469.
  • One should-fix is open: the missing wire-half test that the tree cites as existing.

Implemented-by: claude/project-thread-30y04n
Reviewed-by: session_01JQwxbZeHNsF3RWcWpj7rGj

VERDICT: FAIL

…s on the hosted shape

createHonoApp over a kernel with no http.server, the real AuthPlugin composed with
registerRoutes: false, the real StorageServicePlugin, security and sharing, and real
better-auth sessions: the owner removes their own personal view and renames then removes
their own attachment (200 each, store follows), another member and anonymous are refused,
the refusals are byte-identical to the self-hosted mount, and a kernel without
service-storage answers 501.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXs1Hrj1qNTkGdJbK1
…ts, security and sharing from source

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

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8163e388bfd40b203f04433aa8038a680d64b03b
Local-runs: none
Scope: the delta git diff 0e6be1a250..8163e388bf (4 paths: packages/qa/http-conformance/package.json, packages/qa/http-conformance/src/hono-own-row-doors.conformance.test.ts, packages/qa/http-conformance/vitest.config.ts, pnpm-lock.yaml) + the PR body at the new head; packages/qa/dogfood/test/authz-conformance.matrix.ts and packages/runtime/src/domains/own-door-bridge.test.ts at the new head; check-runs of the new head. The first-round record (head 0e6be1a250) stands for the other 37 paths, which the delta does not touch.
Security-touching: yes
Rule-change-verified: none

① Derived judgments

  • The delta is test-only. No published source, no spec file, no baseline and no changeset moves. The first round's judgments on surface, optionality, precedent shape and baselines stand unchanged.
  • The round-one should-fix is closed. hono-own-row-doors.conformance.test.ts now exists, so the citation in own-door-bridge.test.ts resolves, and the matrix row's "wire-proven" is true.
  • The wire test goes through the hosted dispatcher path. The hosted boot composes no HonoServerPlugin, runs AuthPlugin with registerRoutes: false, asserts http.server is undefined, and sends every request through createHonoApp with app.request. The sign-up and sign-in go through the same door.
  • It asserts store effects, read from the engine under a system context. The owner's personal-view delete: 200 and the row is gone. Another member: 404 RECORD_NOT_FOUND and the row stays with its owner. Anonymous: 401 and the row stays. Attachment rename: 200, trimmed name in the store. Attachment removal: 200 and the row is gone.
  • Byte parity is real: four refusals are compared between the hosted door and a self-hosted boot over a real socket, status, headers and body.
  • A hosted kernel without storage answers 501 NOT_IMPLEMENTED naming the package.
  • The PR body at the new head lists the file, its seven tests and three ablations for it. Both declaration lines are unchanged and still true.
  • note: the matrix row's note says "wire-" but does not name the new file. Naming it would make the row self-checking.
  • note: the wire file has no "another member 403" case for attachments. The dogfood [hosted] case and the storage integration file pin it.
  • note: the 501 case covers the attachment doors only. The personal-view 501 is pinned in own-door-bridge.test.ts.

② Semver level

  • Unchanged. The delta adds no changeset entry and needs none: @objectstack/http-conformance is private: true.
  • The four new workspace entries sit in that private package's devDependencies. The lockfile gains only those four links under that importer. Nothing leaks into a published package.

③ Boundary flags

  • The new vitest aliases are anchored (^...$) and live in the private package's config. They point service-storage, platform-objects/plugin, plugin-security and plugin-sharing at this checkout's source, so the verdict is about this tree.
  • note: @objectstack/runtime is not aliased to source in that config, so the wire file reads the dispatcher from the built dist. The PR body says so for its ablation. CI builds before it tests.
  • No test is weakened. The delta is add-only.
  • The credentials in the wire test are real sessions. No system context reaches a door; system context is used only to read the store for assertions and to seed one file row.
  • The red-before counts (7 of 7, 4, 4) are the PR body's record. They were not re-run here.
  • note: at review time the PR is a draft, and CI on the new head is still running (2 green, 19 in progress, none failed).
  • A security item is with the owner seat.

④ Design judgment

Implemented-by: claude/project-thread-30y04n
Reviewed-by: session_01JQwxbZeHNsF3RWcWpj7rGj

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

维护者速读

云端(托管)环境里,「删除自己保存的个人视图」以及附件的「删除、改名」点了以后会报找不到接口。这次修好了,和自建环境的行为、权限完全一致:本人能操作;别人删不了;没登录的人会被拒绝。
合同级复核两轮通过,CI 全绿,席位落地。云端要等 cloud 的平台版本前移到这次修改之后才会生效。
要你做的:无。

席位核对 — ACCEPT (L1) · repo:objectstack#1 · head 8163e388 · 2026-11-23T12:45Z

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 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.

Hosted tenant kernels: personal-view delete and attachment remove/rename doors answer 404 (same class as #36469)

2 participants