Repository navigation
fix(hosted): personal-view delete and attachment remove/rename answer on a hosted tenant kernel instead of 404 - #36690
Conversation
…a kernel with no http.server (WIP) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbXs1Hrj1qNTkGdJbK1
…ments (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
📓 Docs Drift CheckThis PR changes 6 package(s): 18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 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
|
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: 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
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读云端(托管)环境里,「删除自己保存的个人视图」以及附件的「删除、改名」点了以后会报找不到接口。这次修好了,和自建环境的行为、权限完全一致:本人能操作;别人删不了;没登录的人会被拒绝。 席位核对 — ACCEPT (L1) · repo:objectstack#1 · head
|
…ent seed issued (objectstack-ai#36699) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8Nxmrq3P2eHj4WzMaPKLjA1)_ Fixes objectstack-ai#35184 Supersedes objectstack-ai#36311: this branch carries that PR's commits (head `c1e7347cc1`, merged onto current `main`) and adds one hardening commit. The card thread can push only its own branch, so the takeover lands here. Clause-②: no (narrowing) Metadata-protocol: none Skills-docs: none — no skill states what a boot outside development mode does to a seeded account's credentials. `skills/**` names the development seed only as `os dev --seed-admin` (`skills/objectstack-platform/references/operations.md`); checked at `origin/main`. ## 维护者速读 - 用户能看到什么变化:不在开发模式的服务器每次启动、开始接请求之前,会结束开发种子建的管理员和演示账号在开发期拿到的会话、API key 和令牌,包括这些账号以别人身份开的会话;只针对仍是种子密码的这些账号,运维改过密码的账号和管理员自建的账号不受影响,开发模式下什么都不变。 - 为什么做:开发种子凭据加固的第三项(objectstack-ai#34717 裁决里留作跟进的那一项):离开开发模式后,开发种子签发的东西不再继续起作用。 - 出错会怎样:拿开发库直接上生产的部署,这些账号的旧会话和 key 会失效,需要运维改密后重新登录、重新发 key;结束不干净时服务器拒绝启动并说明是哪些账号。 - 要你做什么:收窄类改动,L1/L2 之后由你合并。 ## What changes **The rule (ruling item 3 on objectstack-ai#34717, the card's text): when a deployment leaves development mode, nothing the development seed issued keeps acting for an account that carries the development seed stamp.** Development mode is `NODE_ENV=development` (`isDevelopmentMode`, the predicate the objectstack-ai#34717 refusals use). No switch. From objectstack-ai#36311 (unchanged, see that PR for the full account): - `dev-seed-credential-retirement.ts` (new), `retireDevSeedCredentials`: outside development mode, one indexed read for stamped accounts, the in-force filter (`isDevSeedCredentialInForce`), then per account the revocation `os user set-password` uses (`revokeSessionsAndApiKeys`: sessions tombstoned, keys revoked, authorized apps, device sign-ins, linked sign-in accounts, registered OAuth apps, SCIM credentials), outstanding reset tokens (`endOutstandingResetTokens`), and sessions in a host `secondaryStorage` (read back). - Wiring: one `kernel:ready` hook in `auth-plugin.ts`, independent of `registerRoutes`; it settles before `kernel:listening` opens the socket. - Fail closed: anything that does not land fails the boot with one sentence naming the accounts and the remedy. - Docs (`content/docs/deployment/self-hosting.mdx`), changeset (`patch`, `!`, BREAKING section, ADR-0087 `not-required`), census shard regenerated. New in this PR: - **The sessions a seed account opened acting as another account are retired too** (`retireSessionsOpenedAs`), tombstoned exactly as the account's own (same reason, counted in `sessions`, same fail-closed rule). A further security item is with the owner seat. - `forced-reset-revocation.ts`: `isLiveSession` is exported for reuse (no behaviour change). - Docs and changeset name the new item; the self-hosting sentence about `os user set-password` now says what that command ends (the account's own sessions, keys and grants) instead of "the same credentials". - Census shard regenerated on current `main` (`node scripts/tenant-audit-census.mjs --write`). **Read first (by risk):** 1. `packages/plugins/plugin-auth/src/dev-seed-credential-retirement.ts`: `retireDevSeedCredentials` and `retireSessionsOpenedAs`. 2. `packages/plugins/plugin-auth/src/auth-plugin.ts`, the `kernel:ready` hook: it runs on every boot outside development. 3. `packages/plugins/plugin-auth/src/dev-seed-credential-retirement.test.ts`, cases 1–3. **Two-minute check:** `pnpm --filter @objectstack/plugin-auth exec vitest run src/dev-seed-credential-retirement.test.ts` shows 6 cases green. ## Why objectstack-ai#35184 (p1): credentials the development seed issued kept acting after the deployment left development mode. ## Verification Branch `claude/project-thread-grxa1f`, head `fb3c2cc478`, on `origin/main` `115d38788e`. - **Red first.** The new assertion was added to case 1 before the fix and run at the merged head (`035b1fdfe`): case 1 red, 5 others green. After the fix: 6/6 green. Removing the new call is that same red. - **Suites** (under `scripts/pm/os-verify-lock.sh`): `dev-seed-credential-retirement`, `dev-seed-credential-production`, `dev-seed-credential` (3 files, 26 passed) on the port before the fix; then `dev-seed-credential-retirement`, `api-key-restore-guard`, `forced-reset-revoke-reason-vocabulary`, `scim-deactivation-reconcile-user`, `session-tombstone`, `admin-impersonate-endpoint` (6 files, 128 passed) after it. `pnpm --filter @objectstack/plugin-auth build && … typecheck`: exit 0, `check:test-typecheck` OK. - **Derived gates:** `node scripts/pm/dispatch-gates.mjs --commands` derived 110, all run: 104 exit 0; `check-empty-changeset` exit 1 by design (the DELIBERATE CORRECTION below); `check-tenant-audit-census` and its self-test exit 1 on the first pass (shard drift from the new write site), regenerated, both re-run exit 0; NOT MEASURED (exit 3, prerequisite): `check-plugin-teardown-shape --self-test` (needs an unshallow clone), `check:skill-examples`, `check:dual-build-cjs-loads` (need packages built). CI carries those three. - **Overlap:** see Acceptance notes. - **Dogfood battery:** not run locally for this round; CI's Dogfood Regression Gate reads it. objectstack-ai#36311's battery (484 files passed, 0 failed) was on the code before the new commit. ## Acceptance notes - **Which accounts.** The in-force reading from objectstack-ai#36311 stands: an account whose password was set since the seed holds a credential the seed did not issue and is untouched; retiring on the bare column would end operator-era credentials at every restart. - **Revoke reason.** `admin_password_reset`, as in objectstack-ai#36311; a dedicated reason is follow-up objectstack-ai#36313. - **`.changeset/dev-seed-credential-production-refusal.md`** (unreleased, from objectstack-ai#34717) is corrected: see `## DELIBERATE CORRECTION`. - **Test file weight.** The six two-boot cases read about 11.4 s of test time locally (case 1 gained one sign-in and one request); objectstack-ai#36311 read 9.98 s. Over the 10 s file line; splitting the file would duplicate its two-boot harness, so it is kept as one and declared here. - **Overlap** (`overlap-check.mjs` at this head, objectstack-ai#36311 excluded): `.changeset/dev-seed-credential-production-refusal.md` conflicts with objectstack-ai#35129; the generated census shard conflicts with objectstack-ai#34738 (whoever lands second regenerates it). `auth-plugin.ts` with objectstack-ai#36690 merges cleanly. - The production-readiness page is not edited; the card names the self-hosting checklist. ## DELIBERATE CORRECTION This PR rewrites two lines in a pending release note it did not add: `.changeset/dev-seed-credential-production-refusal.md`, in the note's last paragraph. That paragraph's label and its last sentence named the boot-time retirement as a follow-up. This PR ships it, so left unchanged the note would publish two false lines. `check-empty-changeset` stays red by design; the dispatching seat confirms by its own record. 1. The paragraph's bold label - Before: "**Not ended at boot:**" - After: "**Ended by `os user set-password`, and at boot:**" 2. The paragraph's last sentence - Before: "Ending them at boot is follow-up objectstack-ai#35184." - After: "In the same release, a boot outside development mode also retires them: see the note "a boot outside development mode retires what the development seed issued" (objectstack-ai#36699)." ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No spec change.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` is read from CI's Lint job, not run locally. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JQwxbX8ecPYZVemPRBFSrY --------- Co-authored-by: Claude <noreply@anthropic.com>
…tstack dev` multi-tenant host instead of 404 ENDPOINT_NOT_FOUND (objectstack-ai#36712) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8RVgGNY8UtzQKECmEjFw5Pi)_ Part of objectstack-ai#36469 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户看到的变化:在本机托管环境(`objectstack dev` 启动的云端运行时)里,取消表情回应、标记已解决、删除自己的评论不再报「接口不存在」。 - 原因:上一个修复(objectstack-ai#36539)只接通了生产那种启动方式;本机开发启动方式少一层兜底路由,请求到不了那条修复。 - 坏了会怎样:只影响这三个评论操作在多租户主机上的转发;单机自部署不受影响,其他找不到的路径照旧返回原来的 404。 - 需要你做什么:无;合并后云端下次升级平台版本即生效。 ## What changes **Measured finding.** Cloud's local rig runs `apps/objectos` under `objectstack dev`, the framework CLI's composition, which mounts no `createHonoApp` catch-all. On that host the three comment doors answer `404 {"success":false,"error":{"code":"ENDPOINT_NOT_FOUND","message":"Not found"}}` whatever the framework pin, because objectstack-ai#36539's `/comments` domain is reachable only through `dispatch()`. The gap is in this repo's `DispatcherPlugin`, so it reaches any multi-tenant host composed by `objectstack serve` / `objectstack dev`, not only cloud's rig. The card's hosted reading was a literal `404 {"success":false,"error":{"code":"ENDPOINT_NOT_FOUND","message":"Not found"}}` on `DELETE /api/v1/comments/reactions/:id`. objectstack-ai#36539 left that spelling unexplained. This PR explains it and closes the gap it came from. **Two host shapes serve a hosted environment.** - Production and staging run cloud's `apps/objectos/server/serve-node.ts`. It mounts `createHonoApp({ prefix: '/api/v1' })` under the `HonoServerPlugin` raw app, so an unclaimed `/api/v1/comments/**` request reaches `dispatch()` and objectstack-ai#36539's `/comments` domain. Cloud's `main` pin moved to objectstack `ed0edb1b5` on 2026-11-23 04:35Z (cloud#4929), which contains objectstack-ai#36539 (`d463c46f64`). Whether that pin is deployed is cloud's fact and is not read here. - Cloud's local rig (`scripts/dev-local/run-stack.sh`, default `START_CMD=dev`) runs `apps/objectos` under `objectstack dev`: the framework CLI's composition, which is `HonoServerPlugin` + `DispatcherPlugin` with a `kernel-resolver` and **no** `createHonoApp` catch-all. `AuditPlugin` runs on the per-environment kernel (cloud's `hosted-slate.ts` forces `audit`), which owns no `http.server`, so nothing mounts the doors on the host's route table. `DispatcherPlugin`'s fallback seam hands on only domain-decided paths (`/actions`, `/keys`, `/notifications`, `/mcp`) and app-endpoint paths, so it declined, and the transport's `unmatchedResponse` answered. That is the card's exact body. The card was measured on this rig. **The fix**, in `@objectstack/runtime` only: - `forwarded-door-fallback.ts` (new, internal): `matchForwardedDoorPath` says whether an unrouted request is exactly one of the three comment door shapes, bare or `/environments/:id`-scoped (it reuses `matchCommentDoorPath` from `domains/comments.ts`). `toWebRequest` rebuilds the fallback's `IHttpRequest` as a Web `Request` (headers, query, original body bytes via `rawBody()`). `sendWebResponse` writes the member's `Response` back unchanged, `Set-Cookie` lines kept separate. - `DispatcherPlugin`'s fallback gains one arm, before the app-endpoint step: on a multi-tenant host, an exact door shape goes to `dispatch()` with the rebuilt request, and a `Response` result is written through. Everything after `dispatch()` is objectstack-ai#36539's `/comments` domain, unchanged, including its authentication and membership gates. What does not change: - Any other shape still writes nothing in the fallback, so the transport's own 404/405 stands (objectstack-ai#5090). - A single-kernel host (no `kernel-resolver`) keeps today's answers byte for byte. - The fallback runs only after every mounted route missed, so a kernel that mounts the doors itself (the self-hosted shape) is never reached here (ADR-0076 D11). - No spec, contract or plugin change; no export added. Clause-② is `no`: the arm routes only the three door shapes objectstack-ai#36539 already declared (route ledger rows, `/comments` domain, `ICommentDoorsService`), with no new route, export or contract. ## Why Card objectstack-ai#36469 acceptance asks for the reaction removal, resolve/reopen and own-comment delete to work on a hosted environment, "本机 cloud rig 或 staging". After objectstack-ai#36539 the staging shape works by construction, but the local rig, where the card was measured, still answered `ENDPOINT_NOT_FOUND`. ## Verification - `packages/runtime/src/dispatcher-plugin.comment-doors-multi-tenant.test.ts` (new, 9): a real `HonoServerPlugin` + `DispatcherPlugin` over a socket with a `kernel-resolver` and a stub tenant member. Each door reaches the placed tenant's member, with the PUT body intact and the member's own headers on the answer. The environment-scoped spelling forwards at the wire path. Three non-door shapes (an extra segment, the wrong verb, GET) keep `404 ENDPOINT_NOT_FOUND` and reach no member. An unplaced request is never served out of a tenant. A host with no resolver keeps `404 ENDPOINT_NOT_FOUND`. - `packages/qa/http-conformance/src/hono-comment-doors.conformance.test.ts` (+3, 9 total): the `objectstack serve` shape over the REAL `AuditPlugin` on a real store. A member removes their own reaction (200, row gone on the tenant). A member resolves, reopens, then removes their own comment (200 each, store follows). The anonymous refusal and the two refused bodies are byte-identical to the self-hosted mount. - Red before the fix (the `dispatcher-plugin.ts` hunk removed, restore proved by `sha1 c3ac20dc…` before and after): - runtime file: 4 of 9 red (the 3 doors + the scoped spelling). The 5 that stay green are the miss and guard cases, which hold without the arm. - conformance file, runtime `dist` rebuilt without the arm: the 3 new cases red. Each answered `404 {"success":false,"error":{"code":"ENDPOINT_NOT_FOUND","message":"Not found"}}`, the card's body byte for byte. Rebuilt with the arm: green. - Suites: runtime `dispatcher-plugin*`, `*fallback*` and `route-ledger*`: 25 files, 205 tests green. `domains/comments.test.ts` + `dispatcher-plugin.multi-tenant-endpoint.integration.test.ts` green. http-conformance `hono-comment-doors` 9/9. - Typecheck: http-conformance `typecheck` exit 0. Runtime `tsc --noEmit` exit 0 and the new test file clean under `tsconfig.test.json`. Runtime `check:test-typecheck` names 3 untouched files (TS2307 on the unbuilt `@objectstack/driver-turso`, not built in this worktree). The previous round on this card recorded the same 3. - eslint `--no-inline-config` on the 4 changed source files: exit 0. - overlap-check: `origin/main` merges cleanly, 0 open PR heads share a file. - `dispatch-gates --commands` at the base `4034a6d2f8` plus this diff: 68 derived, all run. 66 exited 0. `check:dual-build-cjs-loads` exited 3 (PREREQUISITE NOT MET: it needs every package's `dist/`), so it is NOT MEASURED here and left to CI. `check:test-source-alias` caught the new runtime test reaching `@objectstack/metadata` lazily inside a clocked case; fixed with a module-top import, now green. ## Not done here - **Same class, same host shape, unmeasured:** every other dispatcher domain that only forwards to a tenant member has the same gap on an `objectstack dev` host: `/webhooks/redeliver`, `/approvals/act`, and the `/personal-views` and `/attachments` doors open in objectstack-ai#36690. Each would be one matcher row in `FORWARDED_DOOR_MATCHERS`. This PR does not add them; the seat decides whether to file them or let objectstack-ai#36690 add its own rows. - **Live probe:** no hosted account here. The card's live acceptance (a reaction removed on the local rig or staging, and the `comment doors mounted` boot line) stays with the seat and the cloud lane. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. https://claude.ai/code/session_01JQwxbZu8LTZdVjqiEi4pci --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
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) andDELETE/PATCH /api/v1/attachments/:id(service-storage) were mounted only on the kernel'shttp.server. A hosted tenant kernel owns no socket, registers nohttp.server, and runsAuthPluginwithregisterRoutes: false. The host'screateHonoAppcatch-all hands every unclaimed/api/v1/*request toHttpDispatcher.dispatch(), which had no domain for either prefix and answered404 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:
IPersonalViewDoorsService.handlePersonalViewDoor(request): Promise<Response>types a newpersonal-viewsslot.IAttachmentDoorsService.handleAttachmentDooris implemented by the existingfile-attachmentsservice besideIFileAttachmentService. Both members are optional.createDoorTableMember(routes, mount)(new export of@objectstack/plugin-hono-server) runs the plugin's own registrar on a privateHonoHttpServerthat 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()registerspersonal-viewswhateverregisterRoutessays;mountPersonalViewDoorand the member share onepersonalViewDoorDeps().StorageServicePluginhandsFileAttachmentServiceanattachmentDoorsmember overmountAttachmentRemovalDoor.domains/own-door-bridge.ts) and two domains,/personal-viewsand/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 keeps404 ROUTE_NOT_FOUND. No slot, or no member: a typed501 NOT_IMPLEMENTEDnaming the package that registers it. A member throw or a consumed body: a sanitised500, logged. No auth-gate or membership exemption is added, so on the dispatcher the doors are stricter than the self-hosted mount, never looser.server-onlyrows inroute-ledger.ts(census 153 → 156); a newown-row-doors-sessionrow in the authz conformance matrix;check-route-envelope.mjsaudits the three new domain files.@objectstack/plugin-authand@objectstack/service-storagenow depend on@objectstack/plugin-hono-serverat runtime (no manifest cycle;check:workspace-manifest-cyclesgreen).Clause-②: yes): two new contract interfaces, a new typed slot name (personal-viewsis now taken, so a composition registering its own service under that name besideAuthPluginfails 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.eachover 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 aHonoHttpServermount; unmatched 404 without building the table; built once; the matcher.packages/plugins/plugin-auth/src/personal-view-door-member.test.ts(3):AuthPlugin.initwithregisterRoutes: falseregisters the slot once; an anonymous request is byte-equal to the self-hosted mount's 401; a non-door request is 404ENDPOINT_NOT_FOUND.packages/services/service-storage/src/attachment-removal-routes.integration.test.ts: a new describe with nohttp.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:createHonoAppover a kernel with nohttp.server, the realAuthPlugincomposed withregisterRoutes: false, the realStorageServicePlugin, 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 404RECORD_NOT_FOUNDand 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.tsaliases).HttpDispatcheralone (hosted-dispatcher.testkit.ts):personal-view-row-scopegains a[hosted]describe (owner removal 200, another user 404RECORD_NOT_FOUND, anonymous 401);member-attachment-baselinegains a[hosted]case (other member 403, anonymous 401, rename 200 trimmed, removal 200 and the row is gone).Acceptance notes
scripts/ablation-replace.mjswith the restore proved (blob == HEAD,git diff HEADempty):http-dispatcher.ts:own-door-bridge.test.ts21 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;attachmentDoors:dep renamed away: the storage integration file 3 red, 17 green (the new describe's door cases).distrebuilt: 7 of 7 red, each answering the pre-fix404 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).#36311conflicts inauth-plugin.ts, butorigin/main × #36311already has that one hunk (an import line).HEAD × #36311has the same single hunk, so it is not added by this branch.#35129and#34223merge cleanly.Verification
personal-view-row-scope+member-attachment-baseline37 / 37.dispatch-gates --ran: 137 derived, 136 run green, 1 NOT MEASURED (check:dual-build-cjs-loads, exit 3, needs every package'sdist/; left to CI).check:undeclared-dep-importscaught plugin-auth listing plugin-hono-server as a dev dependency only; fixed and green.--no-inline-configaspnpm lintruns it, green (the whole-treepnpm lintis left to CI);check-nul-bytesOK.Gate reconciliation
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.https://claude.ai/code/session_01JQwxbXs1Hrj1qNTkGdJbK1
Generated by Claude Code