Repository navigation
Labels
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Description
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
维护者速读
- 列表页评论栏用的「按当前视图取评论串」读取口(Comments: one read returns the threads on the records a list filter selects, as the caller #39084)目前只在自托管部署上挂载;托管部署(走调度器的
/comments域)上这个读取口不存在,启动日志会说明。 - 本卡把它也挂到托管调度器上,和另外两个评论接口(解决/重开、删自己的评论)一样。
Scope and acceptance
- Layer: server (plugin-audit + runtime) ·
area:data· Feature · size S/M · p1 - Today:
POST /api/v1/comments/threads/queryis mounted byregisterCommentDoorsRouteswherehttp.serverexists (self-hosted). The hosted dispatcher's/commentsdomain claims only thePUT/DELETEshapes of the two older comment doors, so on a kernel withouthttp.serverthe 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):
packages/plugins/plugin-audit/src/comment-doors-member.ts(COMMENT_DOOR_ROUTES)packages/runtime/src/domains/comments.tsandpackages/runtime/src/domains/comments.test.tspackages/runtime/src/route-ledger.tsandpackages/runtime/src/route-ledger.conformance.test.tspackages/spec/src/contracts/comment-doors-service.ts(its doc names the doors)packages/qa/dogfood/test/route-ledger-live-mount-parity.dogfood.test.ts—⚠️ held by Print: the PDF a print attaches carries no print-origin marker, so an app that reacts to a print must key on the file name, which #36801 changed #38894 (claim 7336726260, os-justin) at the directory level; queue behind it or coordinate.
- 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.
- On a hosted kernel (dispatcher, no
- 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.
Metadata
Metadata
Assignees
Labels
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
First touch · 2026-12-02T13:04Z
定级(作者按专题 p1 定级保留):
area:data · Feature · p1 · 托管部署的列表页评论栏取不到评论串(读取口只挂在自托管)· 读码(座位交回 #39084 时的裁定)domain:server、类型 Feature,进pm:queue。专题 专题:列表页右上角的评论入口——看当前视图里各条记录的评论串,可回复、可解决,不能写新评论 #39077 子卡,归 osa-comments 专区。objectstack-fleet commentedon Dec 2, 2026
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_01WGufzhPdWmTd47Fi2bKYZSThread session:
session_01WGufzeqywuHW6vj4DU7RgpAccount:
os-support-aiBranch:
claude/project-thread-g3jayiDomain:
domain:serverSeat:
repo:objectstack@os-support-aiFile 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 handlercomment-threads-query.tsis 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
/commentsdomain admits a fourth doorMetadata-protocol: none
Responsibility:
n/a — follow-up cardPremise: on
main0c6f679 the member's private table already registers the threads read.matchCommentDoorincomment-doors-member.ts, andmatchCommentDoorPathandCOMMENTS_DOMAIN_METHODSin runtimedomains/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 --inflightmeets #39142 (this seat, PR #39169) and #38924 (seat repo:objectstack@os-justin, widecontent/docs/**), both atcontent/docs/api/data-api.mdxonly, 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 barepackages/claim names no file.objectstack-fleet commentedon Dec 2, 2026
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" ] }objectstack-fleet commentedon Dec 2, 2026
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; seatrepo:objectstack@os-billcontinues its claim. The seat does not change hands (席不过户); only the card does.Release: claim 7357087993 (session
session_01WGufzhPdWmTd47Fi2bKYZS(card threadsession_01WGufzeqywuHW6vj4DU7Rgp), accountos-support-ai, seatrepo: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 seatrepo: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 7359008239done; owed: L1, then landing. Picked-up work is UNVERIFIED until this seat re-reads it at that head.Assignee:
os-support-ai→os-billin this stroke.Claim: PM loop round 8 (takeover of 7357087993)
Session:
session_01Utp6CaQsbKBMQtm6TpsamdAccount:
os-billBranch:
claude/project-thread-g3jayiSeat:
repo:objectstack@os-billFile surface: unchanged from 7357087993.
Container & model:
M,mode:thread(built; no further build owed unless L1 reworks),model: TIER_DEFAULT,effort: highClause-②: yes (widening), as 7357087993: the hosted dispatcher's
/commentsdomain admits a fourth doorMetadata-protocol: none
Thread-read: 7359008239
Premise: holds (report 7359008239,
premise_still_valid: true).Serial constraints cleared: none new.
objectstack-fleet commentedon Dec 2, 2026
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 head498dd24dfind prose and published JSDoc this PR makes false. One patch round onclaude/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(thecomments.queryThreadsJSDoc, published indist/index.d.ts) and a'@objectstack/client': patchline in the existing changeset.packages/qa/dogfood/test/authz-conformance.matrix.ts(thecomment-doors-sessionrow and its Not-HIGH_RISK comment).packages/runtime/src/http-dispatcher.ts(the comment above the/commentsdomain 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).objectstack-fleet commentedon Dec 2, 2026
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." ] }objectstack-fleet commentedon Dec 2, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
维护者速读
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, notgit 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
/commentsdomain 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
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."authz-conformance.test.tsL881-882: "every anonymous-deny HTTP surface is high-risk: it guards the same object data as REST/datathrough a sibling entry point." Restated inauthz-conformance.matrix.tsL395-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".requireAuth-removednote: a citation "WAS DROPPED under mutual attribution" because the file "cannot prove the distinguishing half of THIS row";permission-set-activenote: "The honest upgrade path is a real proof ..., not re-citing a neighbouring file."grep -n "high-risk\|highRisk" docs/adr/0054*.md docs/adr/0056*.md docs/adr/0060*.mdreturns 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/dogfoodis 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.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.git show $H:packages/qa/dogfood/test/authz-conformance.test.ts | sed -n 879,910p.mcp-http-identityis 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).git show $H:packages/qa/dogfood/test/authz-conformance.matrix.ts | sed -n 395,420p.anonymous-deny-data(the whole hosted CRUD surface) andanonymous-deny-uicarry no dogfood proof at all;anonymous-deny-analytics,-user-work,-recycle-bincarry 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.mcp-stdio-authorityis 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".comment-threads-query.dogfood.test.tsexists (735 lines, landed by PR 39135 at +663, touched by 39169), boots a real org-bound stack with the realSecurityPluginandAuditPlugin, 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(".SecurityPluginis never driven for this read: the byte-parity suite stands in abeforeFindhook 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.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; thecommentsslot is registered inAuditPlugin.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,45pandgit show $H:packages/plugins/plugin-audit/src/audit-plugin.ts | sed -n 543,553p.coverskey 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.git grep -n "planReadScope\|isSystem" $H -- packages/plugins/plugin-audit/src/comment-threads-query.ts(the call at L407, noisSystemhit).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
[hosted]group in the same proof file that drives the read through the dispatcher alone on the real stack[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 isThe 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
Four axes
os-decision-facets
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.
Confidence gaps, stated and not acted on:
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:
authz-conformance.test.tsandcomment-threads-query.dogfood.test.ts.comment-doors-session,proofset to the dogfood file, nocovers.comment-doors-sessiongoes back to classifying the domain and points at the new row; the "open decision" paragraph is deleted.authz-rowclaim line in the header, and a[hosted]group on the existing boot throughhostedDispatcherDoor(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 403PERMISSION_DENIED; anonymous gets 401.POSTfrom the domain's method set turns the hosted cases into route misses).commentsslot 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.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.
objectstack-fleet commentedon Dec 3, 2026
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: recordRuled: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.objectstack-fleet commentedon Dec 3, 2026
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):
packages/qa/dogfood/test/authz-conformance.test.ts(one HIGH_RISK entry);packages/qa/dogfood/test/comment-threads-query.dogfood.test.ts(anauthz-rowclaim line and a[hosted]group driving the read through a dispatcher alone over the real stack, after the PR fix(hosted): personal-view delete and attachment remove/rename answer on a hosted tenant kernel instead of 404 #36690 precedent andhosted-dispatcher.testkit.ts);packages/qa/dogfood/test/authz-conformance.matrix.ts(already claimed: the new row, split fromcomment-doors-session).check-handover.mjs --inflighton the two new paths: NO OVERLAP READ (only path-less claims unread, none in these packages). PR perf(plugin-audit): count comment thread replies by a stored thread root, and page threads at PostgreSQL microsecond precision #39169, which held the dogfood proof file, merged 2026-12-02 20:43Z.claude/project-thread-g3jayi(mode:subagent,model: TIER_DEFAULT,effort: high), then delta L1 and delta contract review (CONTRACT_REVIEW_TIER) on the new head, then landing.objectstack-fleet commentedon Dec 3, 2026
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." ] }objectstack-fleet commentedon Dec 3, 2026
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 asFixes #39134intended./commentsdomain with the mount's bytes for the read's own refusals; the hosted gates add403 PROJECT_MEMBERSHIP_REQUIRED. Per ruling B (7363771779) the read is its own authorization-ledger row on HIGH_RISK, proved on the hosted door bycomment-threads-query.dogfood.test.ts.CONTRACT_REVIEW_TIER).pm:dispatchedremoved in this stroke;domain:*andarea:*stay.