Skip to content

Comments: the comment threads read is served on a hosted kernel too, through the dispatcher /comments domain #39134

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzfHCzQWh6PeQnvToFz

立卡门类别:③ 专题子卡的后续(#39084 交回时座位裁定「先只做自托管,托管另立卡」,座位消息 2026-12-02 12:59Z,认领修订 7346184382)。Source: #39084
Part of #39077 · follow-up of #39084 (S3)
定级:area:data · Feature · priority:p1 (the epic's priority; seat ruling on hand-back) · reach: a hosted deployment's list-page comment panel gets no answer from the threads read

维护者速读

Scope and acceptance

  • Layer: server (plugin-audit + runtime) · area:data · Feature · size S/M · p1
  • Today: POST /api/v1/comments/threads/query is mounted by registerCommentDoorsRoutes where http.server exists (self-hosted). The hosted dispatcher's /comments domain claims only the PUT / DELETE shapes of the two older comment doors, so on a kernel without http.server the read is not served (the boot log says so, Comments: one read returns the threads on the records a list filter selects, as the caller #39084).
  • Scope: serve the same handler (comment-threads-query.ts, unchanged behaviour: caller context, strict body, refusals) through the dispatcher's comments domain, and advertise it there.
  • Files it needs (read against the tree when building):
  • Acceptance:
    • On a hosted kernel (dispatcher, no http.server), the read answers exactly what the self-hosted mount answers for the same caller and body, including every refusal (400 / 401 / 403 / PERMISSION_DENIED).
    • The route ledgers and the live-mount parity test agree: the route is advertised where, and only where, it is mounted.
    • The boot-log line Comments: one read returns the threads on the records a list filter selects, as the caller #39084 added for the unmounted case is removed or no longer fires on the hosted kernel.
  • Clause-②: yes (widening) — the same public route reaches one more deployment shape.
  • Metadata-protocol: none

Dedupe: comments/threads/query (open issues) → only #39084 and #39077; comment doors dispatcher, comments domain hosted → none open.

Activity

  1. added
    priority:p1
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T13:04Z

    定级(作者按专题 p1 定级保留):area:data · Feature · p1 · 托管部署的列表页评论栏取不到评论串(读取口只挂在自托管)· 读码(座位交回 #39084 时的裁定)

  3. added
    domain:server
    pm:queue
    on Dec 2, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

    Claim: card thread of seat repo:objectstack@os-support-ai, epic #39077 (list-page comments), follow-up of S3 (#39135)
    Session: session_01WGufzhPdWmTd47Fi2bKYZS
    Thread session: session_01WGufzeqywuHW6vj4DU7Rgp
    Account: os-support-ai
    Branch: claude/project-thread-g3jayi
    Domain: domain:server
    Seat: repo:objectstack@os-support-ai
    File surface: packages/plugins/plugin-audit/src/comment-doors-member.ts; packages/plugins/plugin-audit/src/audit-plugin.ts (boot-log line and docblocks only); packages/runtime/src/domains/comments.ts; packages/runtime/src/forwarded-door-fallback.ts (docblock only); packages/runtime/src/route-ledger.ts; packages/spec/src/contracts/comment-doors-service.ts (docblock naming the doors; no schema change); packages/qa/http-conformance/src/hono-comment-doors.conformance.test.ts; packages/qa/dogfood/test/route-ledger-live-mount-parity.dogfood.test.ts (one exception row, as for the three existing doors); content/docs/api/data-api.mdx (removes the "not served on hosted" paragraph); the same-named tests of these files; a changeset. The handler comment-threads-query.ts is not touched. Stop on breach; explain in the report.
    Container & model: M, mode:card-thread (built in the thread), model: TIER_DEFAULT (dispatch-gates --tier prints no MANDATORY line), effort: high; contract-tier L2 at CONTRACT_REVIEW_TIER, in-house; L1 by osa-L1-a.
    Clause-②: yes (widening): the hosted dispatcher's /comments domain admits a fourth door
    Metadata-protocol: none
    Responsibility: n/a — follow-up card
    Premise: on main 0c6f679 the member's private table already registers the threads read. matchCommentDoor in comment-doors-member.ts, and matchCommentDoorPath and COMMENTS_DOMAIN_METHODS in runtime domains/comments.ts, admit only the three existing doors. The hono catch-all reads POST bodies from a clone, so forwarding works as it is. Acceptance: on a hosted kernel the read answers byte-for-byte what self-hosted answers, including 400, 401, 403 and PERMISSION_DENIED, pinned by the http-conformance file, and it is advertised wherever it is mounted.
    Serial constraints: check-handover.mjs --inflight meets #39142 (this seat, PR #39169) and #38924 (seat repo:objectstack@os-justin, wide content/docs/**), both at content/docs/api/data-api.mdx only, in other hunks. Whichever lands later merges main. The live-mount parity file is named by no in-flight claim. osa-comments read both #38894 PRs (#39076, #39141) and found neither touches it. #39126's bare packages/ claim names no file.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeqywuHW6vj4DU7Rgp
    os-dev-report

    {
      "issue": 39134,
      "status": "done",
      "branch": "claude/project-thread-g3jayi",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39174",
      "session": "session_01WGufzeqywuHW6vj4DU7Rgp",
      "premise_still_valid": true,
      "summary": "The dispatcher's /comments domain (runtime domains/comments.ts) and the comments member (plugin-audit comment-doors-member.ts) admit POST /comments/threads/query as a fourth shape, so a hosted tenant kernel and the objectstack serve-shaped host answer the comment threads read with the self-hosted mount's bytes; the handler is untouched. Runtime route ledger row (sdk, comments.queryThreads) plus census, live-mount parity exception row, contract docblock, boot-log line and data-api.mdx follow. Built in the card thread at TIER_DEFAULT, effort high.",
      "tests": "head 498dd24d: runtime comments.test.ts + route-ledger.conformance + comment-doors-multi-tenant 41/41 (own-door-bridge too earlier: 118/118); http-conformance hono-comment-doors 14/14 (5 new: hosted 200 parity, 11 refusals byte-identical incl. 400 INVALID_REQUEST/VALIDATION_ERROR/INVALID_FILTER, 401 UNAUTHENTICATED, 403 FEEDS_DISABLED, 403 PERMISSION_DENIED, 404 OBJECT_NOT_FOUND; 501 without plugin-audit; serve-shaped host 200 + same refusals); plugin-audit 118 files / 1946; spec contract tests 12/12; dogfood route-ledger-live-mount-parity 8/8. Ablation: COMMENTS_DOMAIN_METHODS without POST (ablation-replace, runtime rebuilt, dist-preflight marker present) -> the 5 new conformance tests red, 9 others green; restore leg blob == HEAD, rebuilt, --absent clean. Full runtime suite NOT MEASURED locally (over the 10-minute foreground limit; Test Core runs it).",
      "gates": "dispatch-gates --ran: 124 derived, 122 run exit 0, 2 NOT MEASURED (check:skill-examples, check:dual-build-cjs-loads exit 3 for missing builds). check:route-ledger-census and check:doc-authoring were red on the first pass and are green on 498dd24d after the fixes. Typecheck runtime/plugin-audit/http-conformance/dogfood pass; eslint --max-warnings=0 on changed sources pass. CI check-runs on 498dd24d: pending at report time.",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST pulls + POST issues/39174/assignees), this report comment",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat — stale prose outside the claim: packages/runtime/src/http-dispatcher.ts (comment above createCommentsDomain registration, 'three method and path shapes') and packages/qa/dogfood/test/authz-conformance.matrix.ts comment-doors-session row ('claims exactly the three method and path shapes'); prose only, no assertion; a two-line fix in this PR if the claim is amended, else a follow-up"
      ]
    }
  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    2026-12-02T21:57Z · Takeover · seat repo:objectstack@os-support-ai (os-support-ai) is out of tokens; seat repo:objectstack@os-bill continues its claim. The seat does not change hands (席不过户); only the card does.

    Release: claim 7357087993 (session session_01WGufzhPdWmTd47Fi2bKYZS (card thread session_01WGufzeqywuHW6vj4DU7Rgp), account os-support-ai, seat repo:objectstack@os-support-ai) — taken over, not abandoned. Provenance: who = the maintainer (Bill, os-bill); words, verbatim: 「os-support-ai 没有 token了,他的任务你都接手,包括他处理中的专题你也接手 https://github.com/objectstack-ai/objectstack/pull/38766」; where = the fleet project of seat repo:objectstack@os-bill, 2026-12-02T21:45Z, relayed into the seat thread by the project coordinator with his message attached.
    Handover: PR #39174 (draft) at 498dd24da446c7c2c17757d47370ae23b8ddc6dd, os-dev report 7359008239 done; owed: L1, then landing. Picked-up work is UNVERIFIED until this seat re-reads it at that head.
    Assignee: os-support-ai → os-bill in this stroke.

    Claim: PM loop round 8 (takeover of 7357087993)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Account: os-bill
    Branch: claude/project-thread-g3jayi
    Seat: repo:objectstack@os-bill
    File surface: unchanged from 7357087993.
    Container & model: M, mode:thread (built; no further build owed unless L1 reworks), model: TIER_DEFAULT, effort: high
    Clause-②: yes (widening), as 7357087993: the hosted dispatcher's /comments domain admits a fourth door
    Metadata-protocol: none
    Thread-read: 7359008239
    Premise: holds (report 7359008239, premise_still_valid: true).
    Serial constraints cleared: none new.

  8. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK

    2026-12-02T22:07Z · Claim amendment to 7360042192 (zone comments-39077 of seat repo:objectstack@os-bill)
    Area: comments-39077
    Reason: L1 REWORK (zone L1 at TIER_DEFAULT) and the contract review 7360247446 (S1 should-fix) on PR #39174 head 498dd24d find prose and published JSDoc this PR makes false. One patch round on claude/project-thread-g3jayi, mode:subagent (os-dev), model: TIER_DEFAULT, effort: high.
    File surface added (docblock, comment or row text only unless the matrix re-decision below needs more; stop on breach):

    • packages/client/src/index.ts (the comments.queryThreads JSDoc, published in dist/index.d.ts) and a '@objectstack/client': patch line in the existing changeset.
    • packages/qa/dogfood/test/authz-conformance.matrix.ts (the comment-doors-session row and its Not-HIGH_RISK comment).
    • packages/runtime/src/http-dispatcher.ts (the comment above the /comments domain registration).
    • packages/plugins/plugin-audit/src/comment-threads-query.ts (the "What is not served here" docblock section only; handler code untouched).
      Already-claimed files also edited: .changeset/39134-hosted-comment-threads-read.md, content/docs/api/data-api.mdx (the hosted-only 403 refusals).
      Overlap: check-handover.mjs --inflight --paths= the four files --card=39134 → NO OVERLAP READ (exit 5: only this seat's own takeover claims name no path; none of them is in these packages).
  9. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
    os-dev-report

    {
      "issue": 39134,
      "status": "needs_decision",
      "branch": "claude/project-thread-g3jayi",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39174",
      "session": "session_01Utp6Ca2yTZZiHWkyVgD2oK",
      "premise_still_valid": true,
      "summary": "Patch round on PR #39174, resumed from 498dd24d. origin/main merged (cfb766b1, no os-regen paths moved), then two commits, head 51929dc7, still draft. Done: (1) the client `comments` JSDoc names both shapes (the self-hosted mount and the hosted dispatcher `/comments` domain, plus the 501 without plugin-audit), and `'@objectstack/client': patch` is in the changeset. (2) Changeset L15: 'same bytes' now covers only the read's own refusals (400, 401 UNAUTHENTICATED, 403 FEEDS_DISABLED, 403 PERMISSION_DENIED, 404 OBJECT_NOT_FOUND). A new bullet says the hosted preamble gates refuse a non-member with 403 PROJECT_MEMBERSHIP_REQUIRED (the mount never answers this) and that the dispatcher's gate, not the read, answers a held sign-in. L19 now says 'that clause is gone'. (3) data-api.mdx: the intro is scoped the same way. The Refusals list gains the held sign-in (403 with the policy's own code on both shapes; on hosted the dispatcher's gate answers it first) and a hosted-only bullet (403 PROJECT_MEMBERSHIP_REQUIRED, 501 without plugin-audit). Correction to the review's wording: the held sign-in is not hosted-only. comment-threads-query.ts step 1 refuses it itself (evaluateAuthGate, then a 403 with the gate's code), so only who answers it differs. (5) http-dispatcher.ts now says 'four method and path shapes'. The comment-threads-query.ts docblock section 'What is not served here' is rewritten as 'Where it is served' (both shapes, the registration chain, the hosted gates); handler code is untouched. (4) S1: the matrix row comment-doors-session now names the threads read in summary, enforcement (comment-threads-query.ts: caller resolution, strict body, then ObjectQL planReadScope as the caller, an ordinary sys_comment read under the comment read gate, the display-name read; the domain claims 'four' shapes) and note (which proofs exist). The comment no longer gives the doors' write-only reason for the read. It says the read meets the HIGH_RISK definition and that the classification is open. HIGH_RISK itself is NOT decided. See open_questions: every option that adds the read to HIGH_RISK edits two files outside amendment 7360285715, so I stopped there as the dispatch said to. The PR body was NOT edited: os-dev.md lets a sub-agent write the PR body only at pr_create and says the seat writes it after that, and os-dev.md wins over the dispatch. The text the seat should add is in open_questions[1].",
      "tests": "At head 51929dc7: packages/qa/dogfood authz-conformance.test.ts run through os-verify-lock (`pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 --config SCRATCH/authz.vitest.config.mjs --root packages/qa/dogfood`) gave 'Test Files 1 passed (1) · Tests 60 passed (60)' and 'VERDICT command-exit 0'. Deviation: the scratch config aliases @objectstack/verify to packages/verify/src/conformance.ts because verify has no dist in this worktree (building its roughly 40-package closure was out of budget); the test body and matrix are the real files. The CI run of the same file is the 'Dogfood Regression Gate=success' check-run. No ablation: no tested behaviour changed (prose, JSDoc, comments and ledger strings only). The runtime/plugin-audit/client unit suites were not re-run locally: their sources changed in comments only. CI Test Core 1-12/12 = success on 51929dc7.",
      "gates": "Local, at 51929dc7, run from my worktree. Exit 0: check:doc-authoring, check:nul-bytes, check:issue-citations + check-issue-citations.mjs, check-empty-changeset --base origin/main, check-changeset-no-major --base origin/main, check:changeset-fixed, check:changeset-gate-self-tests, changeset status, check:doc-anchors, check:doc-frontmatter, check:docs-single-h1, check-affected-docs, check-drift-comment, check-doc-route-spelling --advisory, check:closed-ceremony-text, check:role-word, check:dispatcher-error-vocabulary, check:route-ledger-census, check:cross-package-test-inputs, check-closing-keyword-parity, check:docs-spec-enumerations, check-comment-mask-corpus, check:engine-double-contract, check:slot-lookup, check:registry-log-declared, check:wildcard-fallthrough, and every other derived family not named below. eslint --no-inline-config on the 4 changed .ts files: exit 0. Exit 3 PREREQUISITE NOT MET (no dist in this worktree), so NOT MEASURED locally: check:docs-transcript-drift, check-plugin-teardown-shape --self-test, lint check:doc-formula-expressions / check:doc-security-posture, spec check:api-surface / browser-reachable-entries / dual-source-exports / entry-nameability / exported-any / skill-examples, check:dts-closure, check:dual-build-cjs-loads, check:i18n, check:lean-entry-closure, check:sourcemap-no-sources-content. Hit my 60s/280s per-command cap, so NOT MEASURED locally: check-adr-0087-registration --self-test, check:query-options-erasure, check:type-check-debt. Package typecheck for client/runtime/plugin-audit/dogfood: NOT MEASURED locally (diff is comments and strings only; no dist built). `dispatch-gates --ran`: '126 derived families accounted for' (the record holds no exit codes; the exits are listed above). CI check-runs at 51929dc7 (read, not re-run): 62 success, 12 skipped, 0 failed. Among them: Lint & Repo Gates, Lint · ESLint, Lint · docs & code guards, Lint · PM dispatch-gates, Lint · scoped · query-options erasure, TypeScript Type Check, Type Check · workspace / source gates / debt ledger / consumer gates, Check Changeset, Build Core, Build Docs, Test Core 1-12/12, Dogfood Regression Gate (all success). Temporal Conformance, the Dogfood shards and the opt-in battery were skipped by design on pull_request.",
      "mcp_calls": "0",
      "api_writes": "3 — git push x3 to claude/project-thread-g3jayi (merge cfb766b1, c88729f4, 51929dc7; git, not REST) + 1 REST: this os-dev-report comment on #39134 via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/39134/comments). No PR body PATCH, no labels.",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "HIGH_RISK for the comment threads read (POST /comments/threads/query). It answers object data (the comments on, and the ids and display names of, the records of any object a list filter selects) through a sibling HTTP entry point. That is the definition the matrix comments give for HIGH_RISK, and the approval and webhook rows stay out of the list only because they 'serve no record read or query'. Against it: every read in it runs as the caller through the engine's own gates and adds no gate of its own. The same is true of mcp-http-identity, which the list does carry. Is the read HIGH_RISK?",
          "options": [
            "A: HIGH_RISK, its own row with a cited proof that exists. Add a new row (say comment-threads-read-session, no covers key; comment-doors-session keeps the /comments domain key) to HIGH_RISK in authz-conformance.test.ts. Its proof is comment-threads-query.dogfood.test.ts, which drives the real SecurityPlugin on the self-hosted mount (row-scoped member, no-read 403, anonymous 401), plus one line `// authz-row: comment-threads-read-session` in that file. The hosted face stays wire-proven by the byte-parity conformance suite. Cost: about 15 lines over 2 files outside the amended surface (authz-conformance.test.ts, the dogfood proof header) and one claim amendment. No new test; one more authz-conformance run.",
            "B: as A, plus a `[hosted]` case in the dogfood proof that drives the read through a dispatcher alone over the real stack, as personal-view-row-scope / member-attachment-baseline do for the own-row doors. The proof then covers the face the row classifies. Cost: A plus about 60-100 test lines in the dogfood file and a local dogfood run that needs the verify/plugin-audit dist closure built (minutes, under the verify lock).",
            "C: not HIGH_RISK, with the reason written down. The read is no path around a data gate: it is the engine's own caller-context read (planReadScope) plus an ordinary sys_comment read. The row comment says that and cites the dogfood file as a reference that claims nothing. Cost: comment text only, inside the surface. Risk: it contradicts the 'serves no record read or query' line that the neighbouring rows use as their test."
          ],
          "recommendation": "A, because the honest reading of the list's own definition puts a record read through a sibling door on it, and a real end-to-end proof already exists for that read on the real SecurityPlugin. A adds the classification at its cheapest honest cost; B is the stronger upgrade and can be a later card. Until this is decided, the row as pushed names the read and says the decision is open. That is honest but a half-state, so the PR should not land before it is resolved or carried by a named card."
        },
        {
          "question": "Dispatch conflict: the dispatch asked this round to update the PR body; os-dev.md says a sub-agent writes the PR body only at pr_create and the seat writes it after that. I followed os-dev.md. Will the seat add this section to the PR body (keeping its first two lines)?",
          "options": [
            "A: the seat appends: '### Patch round (L1 REWORK 7360301182, contract review S1/N1-N3 7360247446) — head 51929dc7. origin/main merged (cfb766b1). client `comments` JSDoc names both shapes; changeset gains `@objectstack/client: patch`. Changeset and data-api.mdx: same bytes only for the read's own refusals. Hosted preamble gates: a non-member gets 403 PROJECT_MEMBERSHIP_REQUIRED (hosted only); a held sign-in gets 403 with the policy's code on both shapes, answered first by the dispatcher gate on hosted. The Refusals list gains both. http-dispatcher comment says four shapes; the comment-threads-query.ts docblock says where the read is served. The authz matrix row comment-doors-session names the threads read, its enforcement site (comment-threads-query.ts, planReadScope as the caller) and its existing proofs. HIGH_RISK decision: open, raised as needs_decision (recommendation: add the read as its own HIGH_RISK row citing comment-threads-query.dogfood.test.ts).'",
            "B: leave the body as is and record the round in the seat's delta L1"
          ],
          "recommendation": "A, because the body is what lands as the squash message, and the HIGH_RISK state should be visible there."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the harness attribution reminder asks for a model-named Co-Authored-By trailer, but the repo hook check:commit-card-trailers refused it (model-free pair required). The first commit was amended before it was pushed, so no history was rewritten; the pushed commits carry `Co-Authored-By: Claude`.",
        "carrier: none · noted, not filed — packages/client/src/index.ts has a stray JSDoc block ('Per-record sharing grants') directly above the `comments` group's JSDoc, so two doc comments are stacked and the first documents nothing. It is cosmetic, untouched by me, and outside the three filing classes."
      ]
    }
  10. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK

    维护者速读

    • 问题:列表页评论面板用的“按当前视图读评论串”这次要在云端托管环境开放,它会返回记录名称和评论内容;权限账本还没写明这类读取要不要按“高风险”管(即必须挂一份真实登录、真实权限下跑通的端到端验证),客户今天看不到症状,一旦出错就是悄悄看到无权记录的评论。
    • 选项:列为高风险并引用已有的自托管端到端验证,本 PR 内约十几行;同上再补一组托管入口的端到端用例,本 PR 内再加约三四十行测试;不列为高风险,只把理由写下来,不动测试。
    • 推荐第二种:托管入口正是这次新开、云端客户实际走的那扇门,权限验证应当打在这扇门上,同类先例只花了二十到四十行。
    • 不定会怎样:这个 PR 停在草稿,云端的列表页评论面板继续读不到评论串(读取仍返回“找不到”)。

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: session_01Utp6Ca2yTZZiHWkyVgD2oK

    决策分析: is the comment threads read a HIGH_RISK row of the authorization ledger?

    Anchor: card 39134 (hosted comment threads read), PR 39174 at head 51929dc7b815c7ac1b2dfcbae192df8a25ef2ae0, still draft. Inputs read in full: os-dev-report 7361262275, contract review 7360247446 (S1), L1 REWORK 7360301182. Every claim below was re-read against the tree at that head; nothing was built or run (read-only pass), and the clone is shallow (50 commits), so precedent sizes come from the REST API, not git log.

    Background

    The list page's comment panel asks one read: "the comment threads on the records this view's filter selects". It answers comment text plus each record's id and display name, for any object. It has been served on self-hosted kernels since the merged PR 39135; PR 39174 makes the hosted dispatcher answer it too (today a hosted tenant gets a route miss). The authorization ledger classifies the hosted /comments domain with one row, comment-doors-session, whose reason for staying off the HIGH_RISK list was that its three doors only write one row each. The contract review (S1) found that reason false for a read; the dev rewrote the row's prose and left the classification open. That open sentence is now in the ledger, which is a half-state: the PR should not land with it.

    Governing text

    • ADR-0056 D10 (docs/adr/0056-permission-model-landing-verification.md:142): "CI asserts every authz primitive is in exactly one ADR-0049 state and (if high-risk + enforced) carries a proof."
    • ADR-0056 D9 (same file, L138): proofs for enforced-but-unit-tested invariants land "with its PR (ratchet, not retrofit)".
    • The list's stated reason, authz-conformance.test.ts L881-882: "every anonymous-deny HTTP surface is high-risk: it guards the same object data as REST /data through a sibling entry point." Restated in authz-conformance.matrix.ts L395-396 and L415-416: "HIGH_RISK marks a primitive guarding object DATA through a sibling HTTP entry point", and the two neighbours are off it because each "serves no record read or query".
    • The ledger's citation doctrine, matrix requireAuth-removed note: a citation "WAS DROPPED under mutual attribution" because the file "cannot prove the distinguishing half of THIS row"; permission-set-active note: "The honest upgrade path is a real proof ..., not re-citing a neighbouring file."
    • No ADR defines "high-risk" for an HTTP surface. grep: grep -n "high-risk\|highRisk" docs/adr/0054*.md docs/adr/0056*.md docs/adr/0060*.md returns the proof requirement only; the definition lives in the two test files' comments. So no option conflicts with a ruling; the options differ on how the ledger's own sentence is applied.

    Protocol statement: none of the options changes a spec key, a wire shape, an error code or a published package. @objectstack/dogfood is private. Not a protocol change.

    Premises, each with its re-check

    Run from the repo root after git fetch origin claude/project-thread-g3jayi; H=51929dc7.

    1. HIGH_RISK enforces exactly one thing: the row exists and carries a proof. With attribution on, a cited proof file must exist and must claim the row by a header line, and every claim must be cited back. It does not read the proof's content or check that it runs. Re-check: git show $H:packages/verify/src/conformance.ts | sed -n 147,190p.
    2. The list holds 11 literal ids plus the six ADR-0138 door classes. Re-check: git show $H:packages/qa/dogfood/test/authz-conformance.test.ts | sed -n 879,910p.
    3. mcp-http-identity is on the list for the reason the dev gives (same object data through a sibling execution surface, the caller's context threaded, no gate of its own), and it was put there together with a new proof that drives that surface. Re-check: gh api repos/objectstack-ai/objectstack/pulls/3225 --jq '.title,.additions,.deletions' (+121/-1, of which +111 is the new proof file).
    4. The approval and webhook rows give "serves no record read or query" as their reason. Re-check: git show $H:packages/qa/dogfood/test/authz-conformance.matrix.ts | sed -n 395,420p.
    5. The list is NOT applied by that sentence alone. The hosted dispatcher's own record-read domains are off it: anonymous-deny-data (the whole hosted CRUD surface) and anonymous-deny-ui carry no dogfood proof at all; anonymous-deny-analytics, -user-work, -recycle-bin carry a proof but are not on the list. Their stated reason is that the booted showcase never reaches the dispatcher handler. Re-check: git show $H:packages/qa/dogfood/test/authz-conformance.matrix.ts | grep -n "id: 'anonymous-deny-data'\|id: 'anonymous-deny-analytics'" then compare with premise 2.
    6. mcp-stdio-authority is a precedent the other way: a second transport over an enforcement path already proven end to end is recorded "NOT high-risk". Its stated reason is that driving that transport in-process "is impractical". Re-check: git show $H:packages/qa/dogfood/test/authz-conformance.matrix.ts | grep -n "NOT high-risk: driving a real stdio".
    7. comment-threads-query.dogfood.test.ts exists (735 lines, landed by PR 39135 at +663, touched by 39169), boots a real org-bound stack with the real SecurityPlugin and AuditPlugin, and asserts over HTTP: a row-scoped member is not answered the hidden record's thread, a member with no read gets 403, a filter on an unreadable field gets 403, anonymous gets 401. It drives the self-hosted mount only and claims no ledger row. Re-check: git show $H:packages/qa/dogfood/test/comment-threads-query.dogfood.test.ts | grep -n "SecurityPlugin\|authz-row\|hosted\| it(".
    8. On the hosted face the real SecurityPlugin is never driven for this read: the byte-parity suite stands in a beforeFind hook for the permission refusal (disclosed, accepted by L1). Re-check: git grep -n "beforeFind\|SecurityPlugin" $H -- packages/qa/http-conformance/src/hono-comment-doors.conformance.test.ts.
    9. A hosted proof needs no new harness. hosted-dispatcher.testkit.ts (landed by PR 36690) drives the runtime dispatcher alone over a booted stack and accepts a method, path and JSON body; the comments slot is registered in AuditPlugin.init() whether or not the kernel has an HTTP server, so the existing boot in the proof file can be reused. Re-check: git show $H:packages/qa/dogfood/test/hosted-dispatcher.testkit.ts | sed -n 20,45p and git show $H:packages/plugins/plugin-audit/src/audit-plugin.ts | sed -n 543,553p.
    10. A new row without a covers key moves no population baseline and no row-count pin (the baseline lists unclassified ledger keys only; one key can be covered by one row, so the new row cannot share /comments). Re-check: git show $H:packages/verify/src/conformance.ts | sed -n 192,201p.
    11. The read plans the object read under the caller's context and reads nothing as the system. Re-check: git grep -n "planReadScope\|isSystem" $H -- packages/plugins/plugin-audit/src/comment-threads-query.ts (the call at L407, no isSystem hit).

    The question

    A read that answers record names and comments across any object now has a second door, the one hosted customers use. Does the authorization ledger require an end-to-end proof for it, and if so, must that proof go through the new door?

    Options × real cost × effort

    Option What is done What a customer could feel Effort
    A Own row for the read, on the HIGH_RISK list, citing the existing self-hosted proof; one claim line in the proof file Nothing today. A later change that breaks row scope in the shared body is caught by the cited proof; one that breaks only the hosted path is caught by wire tests that use a stand-in for permissions Server lane, same PR, one patch round. 3 files, about 15 lines plus the row. Measured precedent for "upgrade a row to high-risk": PR 3225, +121/-1 over 5 files, but that one wrote a new proof; no measured precedent for a re-cite alone
    B (recommended) A, plus a [hosted] group in the same proof file that drives the read through the dispatcher alone on the real stack Same as A, and the door hosted tenants use is itself proven against real permissions: row-scoped member, no-read member, anonymous Server lane, same PR, same patch round. A plus about 25-45 test lines. Measured precedent: PR 36690 added the [hosted] groups to two proof files at +42 and +23 lines, with matrix +20/-4 and test +4; the testkit it added (+44) is reused as is
    C Read stays off the list; the row comment records why; proof file referenced in prose, claiming nothing Nothing today. If the existing proof is later deleted, skipped or re-pointed, the ledger does not notice, and nothing ties this read to a proof Comment text only, inside the claimed surface. No precedent needed

    The dev's B estimate (+60-100 lines) is about twice the measured precedent. A to B is roughly a 3x difference in lines, but both are one patch round on a PR that is already open; the absolute difference is a few dozen test lines.

    Business meaning

    • A: "We keep the lab certificate we already have on file for this product and staple it to the new sales channel's paperwork."
    • B: "We also run the test once at the new channel's own counter before opening it." This is what a bank does when an existing service is offered at a new branch type: the control is re-walked at that branch.
    • C: "We note that the product is made the same way as everything else and file no certificate for it."

    Four axes

    • Long-term soundness (leads). In two years the hosted product is the main way customers reach the platform, and "who can see which record" is the promise an enterprise buyer audits first. The end state that matches Salesforce and ServiceNow practice is that every API surface answering record data is shown to respect sharing on the surface customers actually call, not by reference to a sibling. B is that end state for this read. A records the classification but leaves the proof on the door that is not the one being added, which is the "re-citing a neighbour" pattern the ledger's own notes reject twice; it is B at half measure. C keeps the read outside the proof requirement and has to either contradict the sentence two neighbouring rows rest on or rewrite it, which grows the list of special cases. The ledger is already uneven here (premise 5): the hosted CRUD domain itself is off the list. That is an argument that the list needs a ruling on its scope, not an argument that this read is safe to leave out: those rows record the anonymous floor in front of the standard data pipeline, which the row-scope rows prove elsewhere, while this read is a bespoke cross-object composition with one enforcement site of its own.
    • Business pull. Real and current: the list-page comment panel (the open comments epic) calls this read, the UI data adapter already carries the client method, and the card is p1. Hosted tenants are the ones blocked. This is not a speculative surface.
    • Guarding against AI mistakes. The failure this guards is silent: a later edit that plans the read as the system, or drops the caller's context on the dispatcher path, returns other people's comment threads and record names with a 200. Nobody sees a refusal. A proof on the hosted door turns that into a red merge-queue run (B). With A the same edit on the shared body is caught, an edit confined to the hosted forwarding is not caught against real permissions. With C nothing in the ledger notices if the proof itself is removed. Note what the list does and does not buy (premise 1): it keeps a citation from being dropped quietly; it does not check the proof's content.
    • No sprawl at start-up stage. No option adds a product surface, a key or a dependency. B adds test lines only, with an existing harness. Adding one id to an existing list is a parameter of a gate that already exists, read here as strengthening, not as a new gate; the list's own comment names the class ("every anonymous-deny HTTP surface ... through a sibling entry point"). The dev's "B can be a later card" is the staged form this stage's rules advise against, and ADR-0056 D9 says proofs land with their PR.

    os-decision-facets

    • ① 项目长远合理性: B shrinks special cases: the read gets its own row and a proof on the door being added. A is B at half measure (proof on the other door). C keeps an exception that contradicts the neighbouring rows' stated test.
    • ② 实际业务拉动: real today: the list-page comment panel calls this read and hosted tenants get a route miss until the PR lands; p1 card in an open epic.
    • ③ 防 AI 犯错: the failure is a silent leak (200 with other people's threads). B makes it a red run on the hosted door; A only on the shared body; C leaves the proof unbound.
    • ④ 创业阶段不扩散: no new surface, key or gate; B adds about 25-45 test lines on an existing harness. Deferring the hosted proof to a later card is the staged path, not recommended.
      Prior rulings read: high_risk,high-risk,authz-conformance → 4 hits; ADR-0054 Decision §2, ADR-0056 D10, ADR-0056 D9, ADR-0060 D2; thread: none

    Recommendation

    B. The end state is that a door answering record data is proven against real permissions on the door customers use; this PR is the one that opens that door, the harness exists, and the measured cost is a few dozen lines.

    • A is not taken: it is the first half of B, and it cites a proof for a classification whose reason for existing in this PR is a door the proof does not go through. It is acceptable only as what B contains.
    • C is not taken: it leaves a cross-object record read with no bound proof and needs a new exception sentence. It is, however, consistent with how the hosted CRUD domain is treated today (premise 5), so it is not an unreasonable ruling; if the maintainer rules C, the scope of the list should be written down once so the next reviewer does not reopen it.
    • Effort note: A and B read close on the first axis and differ about 3x in lines. Named as required; the absolute size (same PR, same round) does not move the letter.

    Confidence gaps, stated and not acted on:

    • Nothing was run. That the hosted group will pass on the existing boot is inferred from premise 9 and the two precedents in PR 36690, which drive DELETE and PATCH, not a POST read with a body. The unit suite pins the body and query string forwarding; the dogfood run is the dev's to make.
    • Dogfood shards are skipped on pull requests and run in the merge queue, so the new cases first run in CI there.
    • Whether adding an id to HIGH_RISK counts as a "new gate" under the default-no rule is a reading. It is read here as a parameter of an existing gate. If the maintainer reads it as a new gate, that is the maintainer's call to make on the card.
    • This analysis does not settle the wider unevenness of the list (premise 5). It is noted as an out-of-scope finding for the seat, not folded into this decision.

    Where the dev's account does not hold: (1) B's cost is overstated about 2x against the measured precedent, and no new harness or boot is needed; (2) "the honest reading of the list's own definition" is presented as if the list were applied by that sentence, and premise 5 shows it is not, so the classification is a real judgment and not a mechanical consequence; (3) the MCP comparison supports B's shape (a proof on the classified surface, landed in the same PR) more than A's, and the stdio row is a counter-precedent the report does not mention.

    Self-check: 只看①选 B;②③④ 是否翻转:否.

    After the ruling

    Security and permission boundaries sit on the human floor, so this goes to the maintainer; the seat records the ruling on the card and dispatches one patch round to the same dev on PR 39174. No new card, no new PR.

    If B:

    1. Claim amendment naming authz-conformance.test.ts and comment-threads-query.dogfood.test.ts.
    2. Matrix: a new enforced row for the read (id the dev's choice; private package, no contract), carrying the read's enforcement text moved out of comment-doors-session, proof set to the dogfood file, no covers. comment-doors-session goes back to classifying the domain and points at the new row; the "open decision" paragraph is deleted.
    3. Test: the new id on the HIGH_RISK list with a one-line reason.
    4. Proof file: the authz-row claim line in the header, and a [hosted] group on the existing boot through hostedDispatcherDoor(stack): a full reader is answered the threads; the row-scoped member is not answered the hidden record's thread; the no-read member gets 403 PERMISSION_DENIED; anonymous gets 401.
    5. Evidence: the authz-conformance file and the dogfood file run under the verify lock, with an ablation (removing POST from the domain's method set turns the hosted cases into route misses).
    6. Premise the ruling hangs on: the dispatcher reaches the comments slot on the proof file's existing boot (premise 9). If it does not, the dev reports a fork and stops; it does not fall back to A on its own.
    7. Delta L1 and a delta contract review of S1 on the new head; the seat updates the PR body.

    If A: steps 1-3, the claim line of step 4, and the row's note says in words that the hosted face is wire-proven with a permission stand-in and names the hosted dogfood case as owed. If C: step 2's prose only, with the scope sentence for the list written once in the test file's comment; that edit needs the same claim amendment.

    Related: card 39134, PR 39174, PR 39135 (the read and its proof), PR 36690 (hosted own-row doors and the testkit), PR 3225 (MCP row upgraded with its proof), comments 7361262275, 7360247446, 7360301182, claim amendment 7360285715.

  11. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK

    2026-12-03T00:07Z · Waiting: the maintainer's ruling on the HIGH_RISK question (analysis 7361405247, options A/B/C, recommendation B), asked in the seat's fleet project since 2026-12-02T23:00Z. PR #39174 stays draft at 51929dc7; nothing else on it is open (L1 items closed in that head, contract review S1 half-closed pending this ruling). The claim (7360042192, amendment 7360285715) is held, not released: the work is in flight and only this ruling blocks it. On the ruling: record Ruled: here, amend the claim for the two files the chosen option touches, one os-dev round, delta L1 + delta contract review on the new head, then landing.

  12. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK

    2026-12-03T00:56Z · Ruling recorded · analysis 7361405247
    维护者 2026-12-03T00:55Z 在席位项目的决策卡上选「列高风险,补托管端到端用例」,即分析的选项 B:评论串读取在权限账本里单列一行并列入 HIGH_RISK,证明文件同时覆盖托管入口。

    Ruled: B — the comment threads read is its own HIGH_RISK row, proved on the hosted door too (maintainer, decision card in the seat's fleet project, 2026-12-03 00:55Z, option 「列高风险,补托管端到端用例」).

    Claim amendment to 7360042192 / 7360285715 (zone comments-39077):

  13. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
    os-dev-report

    {
      "issue": 39134,
      "status": "done",
      "branch": "claude/project-thread-g3jayi",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39174",
      "session": "session_01Utp6Ca2yTZZiHWkyVgD2oK",
      "premise_still_valid": true,
      "summary": "Ruling B (card comment 7363771779) implemented on PR #39174, still draft, head df819c4e (resumed from 51929dc7; origin/main merged as c8f6acd7, no conflicts, none of the PR's files moved). (1) authz-conformance.matrix.ts: new enforced row comment-threads-read-session (summary, enforcement = comment-threads-query.ts caller resolution, strict body, planReadScope as the caller, the sys_comment read under the comment read gate, both faces and the preamble gates; proof = comment-threads-query.dogfood.test.ts; note = what each face proves). comment-doors-session goes back to the three doors, keeps the /comments domain key, and points at the new row. The 'classification is open' paragraph is replaced by the ruling (card comment id in the comment only, none in row strings). covers: none, decided against discovery: the ratchet mints keys per REST family, per dispatcher domain and per named probe; the threads read is inside the /comments domain, a key is classified by exactly one row, and the classified-keys pin lists /comments under comment-doors-session. So the row is bound by HIGH_RISK plus mutual attribution, not covers, and the comment says so. (2) authz-conformance.test.ts: the id is on HIGH_RISK with a reason. (3) comment-threads-query.dogfood.test.ts: the authz-row claim line, a header paragraph, and a [hosted] group on the existing boot via hostedDispatcherDoor(stack). It asserts status and code: full reader and row-scoped member answered exactly their readable threads (Bob not d3's), no-read 403 PERMISSION_DENIED, anonymous 401 UNAUTHENTICATED, and non-member 403 PROJECT_MEMBERSHIP_REQUIRED with zero planReadScope/find calls, plus a member control answered 200. The non-member case needed two things the open boot lacks, and I built both inside the claimed file: a host kernel whose kernel-resolver places the request in an environment (the testkit's own dispatcher then reads it, so the testkit was not edited), and sys_environment_member, which is cloud-provided (CLOUD_PROVIDED_OBJECT_NAMES), registered by a fixture plugin with the two columns the judgment reads. The gate and its verdict are the real dispatcher's. Without a fixture, an open-source boot has no such object and the gate does not apply, so no real-stack case could reach that refusal. Diff this round: 3 files, +164/-19. PR body not edited (seat writes it); paragraph for it is below in open_questions[0].",
      "tests": "Closure built under os-verify-lock: turbo build of verify/plugin-audit/plugin-security/driver-sql/runtime/platform-objects closures (58 tasks, OS_SKIP_DTS=1, 'Tasks: 58 successful', VERDICT command-exit 0), later with declarations (58 successful, VERDICT command-exit 0, 5m21s). At df819c4e, under the lock: `pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 --reporter=verbose test/authz-conformance.test.ts test/comment-threads-query.dogfood.test.ts`: 'Test Files 2 passed (2) · Tests 78 passed | 6 skipped (84)', VERDICT command-exit 0 (authz-conformance 60/60; proof file 18 passed, the 6 skips are the PostgreSQL cell with no OS_TEST_POSTGRES_URL). The three [hosted] cases are listed as passed by name. Ablation (hosted door removed): scripts/ablation-replace.mjs on packages/runtime/src/domains/comments.ts, anchor `['PUT', 'DELETE', 'POST']` replaced by `['PUT', 'DELETE', 'ABLATION_NO_POST']` (anchor x1 to x0, blob 323bf300 to 28f2c689). Runtime rebuilt, then ablation-dist-preflight '@objectstack/runtime ABLATION_NO_POST' found the marker in dist/index.js and dist/index.cjs. `-t hosted` run: 'Tests 3 failed | 21 skipped', each with body code ROUTE_NOT_FOUND: 'expected 404 to be 200' (full/row-scoped reader), 'expected 404 to be 403' (no-read), and 'expected 404 to be 200' on the environment case's member control (the non-member 403 assertion before it passed, since the preamble answers ahead of route matching). Restore: the tool reported 'blob == HEAD (323bf300c0ef) and git diff HEAD is empty'. Runtime rebuilt; preflight --absent reported 'marker absent from all 8 built files' and 'working tree clean against HEAD'. `-t hosted` run: 'Tests 3 passed | 21 skipped', VERDICT command-exit 0. Typecheck: `tsc --noEmit -p packages/qa/dogfood/tsconfig.json` exited 2 with 77 errors, all TS2307 for packages this closure did not build (cloud-connection, connector-mcp/rest/openapi, setup, example-app imports); zero errors in the three changed files. The package-wide typecheck verdict belongs to CI 'Type Check · workspace' (in_progress at report time).",
      "gates": "dispatch-gates (repo objectstack-ai/objectstack @ df819c4e) derives 127 families from the whole PR (16 files vs merge base 440331f1). This round's diff is 3 files under packages/qa/dogfood/test. I narrowed the local run to the 43 families the derivation maps to those 3 files (declared narrowing; the other 84 read only files untouched since 51929dc7, which last round measured and CI re-runs). Exit 0: ci-filter-parity, closed-ceremony-text, cross-package-test-inputs, doc-authoring, dts-closure, spec empty-state, issue-citations, keyed-text-bounds, lean-entry-closure, spec liveness, logger-receiver-detach, objectql-double-limit, org-identifier, page-declaration-shape, platform-object-tenancy-census, published-files, registry-log-declared, rest-log-spy-declared, sourcemap-no-sources-content, spec strictness-ledger, system-context-census, test-source-alias, tier-file-adoption, undeclared-dep-imports, spec variant-docs, vouch-for-reference-callers, where-matcher, check-comment-mask-adoption (+ --self-test), check-dts-emitted --self-test, check-issue-citations.mjs, check-plugin-teardown-shape.mjs, check-temporal-live-filter (+ --self-test), ci assert-turbo-remote-cache / plan-test-core-shards / prune-turbo-cache --self-test, check-affected-docs, check-drift-comment. Also check-nul-bytes 'OK (... no raw ASCII control bytes)', the control-byte grep on the 3 files (no hit), and eslint --no-inline-config on the 3 files (exit 0). NOT MEASURED locally: check:dual-build-cjs-loads (exit 3, PREREQUISITE NOT MET: no full build; 'This is NOT a pass'); check:slot-lookup (exit 124 at my 150s per-command cap after its self-test passed); check-plugin-teardown-shape --self-test (exit 3: shallow clone, needs --unshallow); check-issue-citations --census (exit 124 at the cap; value-bearing, CI-recorded). --ran reconciliation: '85 of 127 derived famil(ies) UNRUN' (exit 1). That is the declared narrowing above: the 84 families of earlier rounds plus check:nul-bytes, which I ran as the script and the tool recorded outside the derivation. CI at df819c4e (read at report time, not re-run): 51 success, 12 skipped, 7 in_progress, 1 failure. Success includes Lint & Repo Gates, Lint · ESLint / docs & code guards / PM dispatch-gates / repo & tooling gates / scoped ×3, Type Check · source gates / debt ledger / consumer gates, Check Changeset, Build Core, Governed Surface Queue Guard, Dogfood Regression Gate, Build & E2E UI, Live E2E UI, Test Core 3,4,6,7,9-12/12. Failure: Test Core (8/12), a timeout in @objectstack/knowledge-turso acceptance.test.ts:1585 ('a search under the threshold, or at Infinity, reads no catalog for an index; another process reads it once': 'Test timed out in 5000ms', ran 15540ms). That package is not in this PR and not in the merged main delta; see out_of_scope_findings. In progress: Test Core 1,2,5/12, Test UI 5/16, Type Check · workspace. The dogfood shards are skipped on pull_request, so the [hosted] cases first run in CI in the merge queue.",
      "mcp_calls": "0",
      "api_writes": "1 REST: this os-dev-report comment on #39134 via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/39134/comments). git pushes (not REST): 2 to claude/project-thread-g3jayi (c8f6acd7 merge, df819c4e). No PR body edit, no labels, no draft flip. Reads: gh api GETs of the card comments, the PR, check-runs and one job log.",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "Will the seat append this paragraph to the PR body (keeping its first two lines)? A sub-agent writes the PR body only at pr_create, so I did not.",
          "options": [
            "A: append: ### Patch round 2 (ruling B, card comment 7363771779): head df819c4e. origin/main merged (c8f6acd7). The comment threads read (`POST /comments/threads/query`) is split out of `comment-doors-session` into its own authorization-ledger row, `comment-threads-read-session` (enforcement: plugin-audit comment-threads-query.ts, every read as the caller; proof: comment-threads-query.dogfood.test.ts). The row is on the HIGH_RISK list. It carries no `covers`: the ratchet mints keys per route family and dispatcher domain, and the `/comments` domain key stays on `comment-doors-session` (one key, one row). The proof file claims the row and adds a `[hosted]` group. That group drives the read through a runtime HttpDispatcher alone over the same real org-bound stack, with the real SecurityPlugin and AuditPlugin. A full reader and a row-scoped member each get exactly the threads on records they can read. A member with no read gets 403 PERMISSION_DENIED; anonymous gets 401 UNAUTHENTICATED. Behind a host whose kernel resolver places the request in an environment, a signed-in non-member gets 403 PROJECT_MEMBERSHIP_REQUIRED and the read is never planned, while a member is answered. That case uses a fixture `sys_environment_member`, standing in for the cloud-provided store; the judgment is the dispatcher's own. Ablation: dropping POST from COMMENTS_DOMAIN_METHODS (runtime rebuilt, marker proven in dist) turns all three hosted cases red with 404 ROUTE_NOT_FOUND; the non-member refusal itself still answers 403 because the preamble runs before route matching, so the member control is what reds that case. Green on restore.",
            "B: leave the body and record the round in the delta L1"
          ],
          "recommendation": "A, because the body becomes the squash message and the HIGH_RISK row should be visible there."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · noted, not filed: Test Core (8/12) red on df819c4e. @objectstack/knowledge-turso src/__tests__/acceptance.test.ts:1585 timed out (5000ms limit, 15540ms run), with 337/338 green. The package is outside this PR and the merged main delta. It reads as a timing flake under CI load. Not re-run by me; it needs a re-run or a fresh head before L1 reads Test Core green. Not a filing class without a repro.",
        "carrier: none · noted, not filed: hosted-dispatcher.testkit.ts builds its HttpDispatcher with no options, so a membership-judged hosted case must give it a host kernel whose kernel-resolver places the request. I did that inside the proof file. If more proof files want a hosted environment case, an optional environment argument on the testkit is the natural home (outside this claim's file surface, so untouched).",
        "carrier: none · noted, not filed: no open-source real-stack test drives 403 PROJECT_MEMBERSHIP_REQUIRED except this one, because sys_environment_member is cloud-provided and the judgment does not apply without it. Every other pin is a unit pin with a fake objectql. This file stands the store in as a fixture; the end-to-end proof of the real store stays on the cloud side."
      ]
    }
  14. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK

    2026-12-03T02:49Z · Close-out · PR #39174 merged (2026-12-03T02:35Z, merge commit 93a189f531), closing this card as Fixes #39134 intended.

    • Delivered: a hosted kernel serves the comment threads read through the dispatcher /comments domain with the mount's bytes for the read's own refusals; the hosted gates add 403 PROJECT_MEMBERSHIP_REQUIRED. Per ruling B (7363771779) the read is its own authorization-ledger row on HIGH_RISK, proved on the hosted door by comment-threads-query.dogfood.test.ts.
    • Reviews: L1 REWORK 7360301182 → delta ACCEPT 7365031070; contract review 7360247446 → delta PASS 7364470514 (CONTRACT_REVIEW_TIER).
    • pm:dispatched removed in this stroke; domain:* and area:* stay.
  15. removed
    pm:dispatched
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:serverpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions