You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filing gate: ③ maintainer-directed (topic #36996 handed to this project, 「36996 你接手整个专题的任务,现在就开专区派发」), from the #37173 contract review, R6 (comment 7149757761).
Grading: area:ai · Task · p2 (topic child's test gap, not a known defect) · evidence: read.
Add a real-kernel rig for get_record_context over the runtime HTTP data bridge (packages/runtime/src/domains/mcp.ts), modelled on domains/mcp-package-object-discovery.test.ts. Use the real @objectstack/service-record-context executor, not a mock.
Add one read over a context pack served from the metadata registry, rather than from the stack. read-set.ts drops a registry row that does not parse, so pin that a valid registry row is read.
Acceptance
For one fixture and one caller, the HTTP bridge and the stdio bridge give byte-identical answers, refusals included.
Amendment · 2026-11-25T03:11Z · from the #37173 contract review (7151631723), R19:
The door contract in packages/services/service-record-context/src/door.ts (query) should say that a door decides each expansion target's API exposure. Both doors in this repo do this: HTTP through servesExpansionTarget, stdio through stdioExpandMap. The executor asks only the read guard for lookup targets. Add the sentence, and have this card's HTTP rig pin it, so that a later door is held to it, including the product-registry door in row 9 (cloud#4978).
Claim: PM loop round 5 (area:ai zone ai-A, topic #36996 non-cloud rows) · 2026-11-25T06:10Z
Session: session_01WGufzi13yZRqVcp2mGonWK
Account: os-support-ai
Branch: claude/issue-37175-record-context-http-rig
Worktree: objectstack-issue-37175
Domain: domain:server
Seat: repo:objectstack#3
Area: ai-A
File surface: a new card-named test file under packages/runtime/src/domains/ (e.g. mcp-record-context-37175.test.ts), modelled on mcp-package-object-discovery.test.ts, plus shared fixture helpers only if AGENTS.md's shared-harness rule puts them there; packages/runtime/package.json devDependencies only if the real @objectstack/service-record-context executor is not yet reachable from the runtime's tests; a stdio-side parity read through packages/mcp/src/** test files only if the byte-identical comparison needs it. ⛔ No production source change; a real defect found is reported, not fixed here.
Container & model: M, mode:subagent, model: default, effort: high
Clause-②: no (tests only)
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7152206758
Premise: holds. Measured at ad604c1: the runtime HTTP bridge wires get_record_context (packages/runtime/src/domains/mcp.ts:272-278, seam at :1676-1705), and no runtime test exercises it with a real executor (no get_record_context hit under packages/runtime/src/**/*.test.ts); the stdio pins live in packages/mcp/src/mcp-record-context-tools.test.ts. read-set.ts:51 drops a registry row that does not parse (AiContextSchema.safeParse), the case card What 3 pins.
Serial constraints cleared: #37173 (#37140) merged 03:39Z. This zone's #37176 (in flight) touches packages/lint and packages/metadata-protocol, not this surface. The overlap check runs at the first push.
Pre-claim lane: domain:server (packages/runtime tests)
Pre-claim deps: #37140 merged (PR #37173)
Prior rulings read: ADR-0160 D3/D4 (as amended by #37196: a related child the caller is not served is left out and stated) and ADR-0149 D7 (HTTP/stdio parity); none conflicting. Where the merged service and the amended record differ on a pinned case, the test pins what main does today and the PR names the gap.
Done when: for one fixture and one caller, the HTTP bridge and the stdio bridge give byte-identical answers, refusals included, on the seven cases card What 2 lists; a pack served from the metadata registry is read.
Claim: PM loop round 2 · area ai-36996 (topic #36996 non-cloud rows; the maintainer, verbatim, 2026-11-25T12:57Z project thread: 「开一个 36996 专题,接手剩余任务」) · 2026-11-25T20:03Z
Session: session_01Utp6CbeF2saT6wUBV4E9uc
Account: os-bill
Area: ai-36996
Branch: claude/issue-37175-record-context-http-rig (resumed from seat 3's backup)
Worktree: objectstack-issue-37175
Domain: domain:server
Seat: repo:objectstack#5
File surface: packages/runtime/src/domains/** (new rig test file), packages/runtime/vitest.config.ts (two alias rows), packages/runtime/package.json devDependencies + pnpm-lock.yaml; a stdio/HTTP parity fix only if the rig proves one, in packages/mcp/src/stdio-data-bridge.ts or packages/runtime/src/domains/mcp.ts, declared in the report. Stop on any other breach and report.
Container & model: M, mode:subagent, model: default — dispatch-gates --tier: "no path-derived mandate", effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7159927889
Premise: holds — on origin/maina182fbe37: the HTTP bridge test (packages/runtime/src/mcp-record-context-tools-bridge.test.ts) is wiring-level; #37243 (PR #37255) and #37216 (PR #37291) merged, so the real-protocol read the hand-off waited on is now reachable
Resume-from: claude/issue-37175-record-context-http-rig@0fa37da2
Serial constraints cleared: PR #37291 merged (it changed packages/runtime/src/domains/mcp.ts and packages/mcp/src/stdio-data-bridge.ts); sibling #37203 (this area, in flight in parallel) stays in packages/services/service-record-context/** + one spec file — disjoint
Pre-claim lane: domain:server (packages/runtime, packages/mcp)
Pre-claim deps: #37140 closed, #37243 closed (PR #37255 merged), #37216 closed (PR #37291 merged)
Prior rulings read: seat 3 hand-off 7156246306 and os-dev report on this card are the owed reading; ADR-0160 as amended by #37196/#37240
{
"issue": 37175,
"status": "done",
"branch": "claude/issue-37175-record-context-http-rig",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37350",
"head": "9c9d8a634936381709d276fa430cacb9fc174921",
"session": "session_01Utp6CbeF2saT6wUBV4E9uc",
"premise_still_valid": true,
"summary": "Resumed from 0fa37da2 and merged origin/main a182fbe37 (merge 879bd3cfc). Added one top-level describe to the shared harness file packages/runtime/src/mcp-record-context-tools-bridge.test.ts: get_record_context over one real kernel (ObjectQL on SqlDriver, the real SecurityPlugin, the real protocol, the real RecordContextServicePlugin), asked through the /mcp door (HttpDispatcher.handleMcp into MCPServerRuntime, the runtime HTTP data bridge) and the real MCPServerPlugin stdio session, for one caller. Every case requires byte-identical answers (isError and text), refusals included. Cases: success with an FLS-hidden field stated, an apiEnabled:false lookup target notVisible (amendment 4), and an RLS-refused related row absent; root refused (equal to get_record's answer); an unserved related child refused unnamed (today's behaviour, gap to ADR-0160 as amended); an API-exposure-refused child named; a disabled-package child unnamed; an unresolved anchor; and a pack saved at run time to the metadata registry, which is read. The WIP probe file is deleted. No production, manifest, lockfile or vitest-config change: PR #37255 had already landed the devDependencies and alias rows. The PR body says Part of #37175, because amendment 4's door.ts sentence sits behind this card's fence.",
"tests": "At head 9c9d8a634, under the verify lock: `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/mcp-record-context-tools-bridge.test.ts` gave `Tests 15 passed (15)`, `Duration 17.87s (... import 16.91s, tests 834ms)` (shared box), VERDICT command-exit 0. `pnpm --filter @objectstack/runtime typecheck` gave VERDICT command-exit 0 and 'check:test-typecheck: OK ... 27 file(s) / 183 error(s) ... held in test-typecheck-debt.json'. The file is in the tsconfig.test.json program (--listFiles count 1). The first typecheck run went red on 3 untouched files, TS2307 for '@objectstack/driver-turso': that package's dist had not been built, because it is an optional dependency outside the runtime^... closure. Built it and re-ran: green. One-off fixture control, not committed: with the row rule removed, the main case read rows [\"r1\",\"r2\"] and went red, so the r2 absence is the row rule's doing. Restored with git checkout HEAD --; git diff HEAD empty; hash equal to HEAD's blob. No ablation: test-only diff, no tested production behaviour changed.",
"gates": "Local derived set (`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, 50 families): 48 gave exit 0. Two gave exit 3, PREREQUISITE NOT MET, and are NOT MEASURED: `node scripts/check-plugin-teardown-shape.mjs --self-test` (its positive control is pinned to a commit the shallow clone lacks) and `pnpm check:dual-build-cjs-loads` (every package must be built). `--ran` reconciliation with recorded exit codes: '50 derived famil(ies) accounted for — 48 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. `node scripts/pm/overlap-check.mjs --branch=HEAD`: VERDICT clean exit 0 before each push. PR #37350 check-runs at 9c9d8a634 (58 runs, all completed): 37 success, 21 skipped, 0 failure. Success includes Lint & Repo Gates, TypeScript Type Check, Test Core (and shards 1-10), Build Core, Governed Surface Queue Guard, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, every Lint and Type Check sub-job, and Flag docs affected by code changes.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: no)",
"line_budget": "+347 / -2 on 1 file (349 changed lines), under the 3000 human-merge threshold",
"files_changed": ["packages/runtime/src/mcp-record-context-tools-bridge.test.ts"],
"deviations": [
"Surface: the rig went into the shared harness file packages/runtime/src/mcp-record-context-tools-bridge.test.ts as a top-level describe (AGENTS.md: a new pin for a component that already has a shared harness file goes into that file), not a new file under packages/runtime/src/domains/** as the claim named. The only change under domains/ is deleting the WIP file. Declared in the PR body.",
"Narrowing: the runtime package's full `pnpm test` (653 files) was not run locally. The diff is one test file. CI Test Core ran it, and all 10 shards were green.",
"Card relation: the PR says `Part of #37175`, not `Fixes`. Amendment 4's door.ts sentence is fenced (packages/services/service-record-context/**) and is the half left open."
],
"readings": [
"A1(a) on main a182fbe37: the stdio RECORD_NOT_FOUND for p1 came from the rig. The WIP key resolved a caller with no organization, while the row is in org_1. With the key active in org_1 (and owner membership answered), the stdio door reads p1, and its root read carries the same userId/tenantId/permissions/positions as the /mcp caller (precondition case).",
"A1(b) on main a182fbe37: the private-OWD row coming back on HTTP is not a row-security defect. The rig composed no `sharing` service, and private-OWD read narrowing is that service's: plugin-security's resolveSharingReadFilter (security-plugin-sharing-verdicts.ts) returns null when resolveKernelService('sharing') has no buildReadFilter. The rig now uses an authored row rule, and both doors drop r2. Nothing asserts a leak.",
"A2: the WIP console probe is deleted. Its rig lives as assertions in the shared harness file (the precedent named above).",
"A3 on main a182fbe37: executeGetRecordContext still refuses the whole call for a related child this caller is not served (PERMISSION_DENIED 403, unnamed: 'Context pack ... reads an object you cannot read ...'). ADR-0160 as amended (Point 2, D3 'Object level') says left out and stated. Pinned as today's behaviour, with the gap named in the case title and the PR."
],
"acceptance": [
"For one fixture and one caller, the HTTP bridge and the stdio bridge give byte-identical answers, refusals included: MET. Every case runs through `both()`, which requires stdio toEqual http ({isError, text}). 8 cases green at 9c9d8a634, locally and in CI Test Core.",
"The registry-served pack is read: MET. The case 'a pack served from the metadata registry (saved at run time, not shipped by the stack) is read' saves rc_registry through protocol.saveMetaItem, checks that the listing serves it without _packageId, and reads it on both doors (fields title/status).",
"Card What 2, the seven cases: root refused, refused related child (unnamed when hidden), hidden field, unopenable lookup, unreadable related row, unresolved anchor and OBJECT_PACKAGE_DISABLED child: all pinned on both doors. A named API-exposure child refusal was added.",
"Amendment 4: the behaviour half is pinned (vault lookup to apiEnabled:false target answered notVisible on both doors). The door.ts sentence is NOT done (fenced); left open, hence Part of."
],
"mcp_calls": "0",
"api_writes": "2 — (1) relay pr_create via node scripts/pm/fleet-write/dispatch.mjs (POST /repos/objectstack-ai/objectstack/dispatches; executed as POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /issues/37350/assignees [os-bill] + POST /issues/37350/labels [skip-changeset]; read-back: 8562 bytes sent, 8562 stored, identical; assignees os-bill; labels skip-changeset); (2) POST /repos/objectstack-ai/objectstack/issues/37175/comments, this os-dev-report via scripts/pm/post-stamped.mjs",
"open_questions": [
{
"question": "Who carries amendment 4's door.ts sentence (a door decides each expansion target's API exposure), now that the behaviour is pinned here and the file is fenced for this card?",
"options": ["A: route it to the sibling card working in packages/services/service-record-context (#37203) or a one-line follow-up, and switch this PR to Fixes #37175", "B: keep Part of #37175 open until a later stroke adds the sentence"],
"recommendation": "A, because the sentence is one docblock line in a file the sibling already holds, and this PR has already pinned the behaviour the sentence describes."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: b · reach: exception: maintainer (ADR-0160 as amended 2026-11-25, 「同意你的建议」) · evidence: ADR-0160 D3 'Object level' (amended) says 'A related child that this caller is not served is left out'; executeGetRecordContext (packages/services/service-record-context/src/record-context-tools.ts, step 4a, refuseObject(entry.object, false)) refuses the whole call. Measured on both MCP doors over the real kernel: PERMISSION_DENIED 403 'Context pack 'rc_unserved_child' on 'rc_policy' reads an object you cannot read ...'. Seam: spec: ADR-0160 D3 (amended) → runtime: record-context-tools.ts executeGetRecordContext 4a · carrier: already routed to triage by seat 3 (os-dev report 7154852563), noted, not refiled · dedupe words: related child not served refused, ADR-0160 amended point 2, refuseObject unnamed child, left out and stated",
"carrier: none · noted, not filed: two local gates cannot run in this container (check-plugin-teardown-shape --self-test needs an unshallow clone; check:dual-build-cjs-loads needs a full build); CI ran both families green"
]
}
Claim: PM loop round 5 · area ai-36996 · re-claim of #37175 for its closing PR (supersedes claim round 2's Branch only) · 2026-11-26T03:12Z
Session: session_01Utp6CbeF2saT6wUBV4E9uc
Account: os-bill
Area: ai-36996
Branch: claude/issue-37361-left-out-queryable-doors
Seat: repo:objectstack#5
Why: the round-2 branch claude/issue-37175-record-context-http-rig landed as PR #37350 (the rig) and is done. The card stayed open for the amendment-4 docblock sentence in door.ts, which the dispatch order for #37361 carried; PR #37412 delivers it and says Fixes #37175. File surface, unchanged from #37361's claim 7179712908 (packages/services/service-record-context/src/door.ts docblock sentence only, for this card).
Container & model: M, mode:subagent, model: default — dispatch-gates --tier: "no path-derived mandate", effort: high
Clause-②: no
Metadata-protocol: none
Merged: PR #37412 at 8d60333638 closed this card by Fixes (re-claim 7181502252). The rig landed earlier in PR #37350; the amendment-4 door.ts docblock sentence (a door decides each expansion target's API exposure) landed here, citing ADR-0160 D3. pm:dispatched removed.
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-25T02:34Z
Taskset. The filer's area:ai · p2 andpm:queueare kept. It is a topic 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996 follow-up of 记录 AI 问询 5:资料包类型 ai_context、渲染服务与 get_record_context 工具(MCP) #37140, from the feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173 contract review.ai_contextpacks · read · size S.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: blocked 2026-11-25T03:03Z (repo:objectstack#3's request 7151547806)
Blocked-by: #37173
pm:queue→pm:blocked. This card builds on code that so far exists only in the cloud seat's open PR feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173 (记录 AI 问询 5:资料包类型 ai_context、渲染服务与 get_record_context 工具(MCP) #37140):validate-ai-context.ts,@objectstack/service-record-context,get_record_contextand theai_contextskill keys. None of it is on main at 3b4f0b9.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj
Amendment · 2026-11-25T03:11Z · from the #37173 contract review (7151631723), R19:
packages/services/service-record-context/src/door.ts(query) should say that a door decides each expansion target's API exposure. Both doors in this repo do this: HTTP throughservesExpansionTarget, stdio throughstdioExpandMap. The executor asks only the read guard for lookup targets. Add the sentence, and have this card's HTTP rig pin it, so that a later door is held to it, including the product-registry door in row 9 (cloud#4978).objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T03:44Z
pm:blocked→pm:queue. Its blocker PR feat(ai): ai_context context packs and the get_record_context tool over MCP (ADR-0160 row 5) #37173 merged at 2026-11-25T03:39Z, and 记录 AI 问询 5:资料包类型 ai_context、渲染服务与 get_record_context 工具(MCP) #37140 is closed.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi13yZRqVcp2mGonWK
Claim: PM loop round 5 (area:ai zone ai-A, topic #36996 non-cloud rows) · 2026-11-25T06:10Z
Session:
session_01WGufzi13yZRqVcp2mGonWKAccount:
os-support-aiBranch:
claude/issue-37175-record-context-http-rigWorktree:
objectstack-issue-37175Domain:
domain:serverSeat:
repo:objectstack#3Area: ai-A
File surface: a new card-named test file under
packages/runtime/src/domains/(e.g.mcp-record-context-37175.test.ts), modelled onmcp-package-object-discovery.test.ts, plus shared fixture helpers only if AGENTS.md's shared-harness rule puts them there;packages/runtime/package.jsondevDependencies only if the real@objectstack/service-record-contextexecutor is not yet reachable from the runtime's tests; a stdio-side parity read throughpackages/mcp/src/**test files only if the byte-identical comparison needs it. ⛔ No production source change; a real defect found is reported, not fixed here.Container & model: M, mode:subagent, model: default, effort: high
Clause-②: no (tests only)
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 7152206758
Premise: holds. Measured at ad604c1: the runtime HTTP bridge wires
get_record_context(packages/runtime/src/domains/mcp.ts:272-278, seam at :1676-1705), and no runtime test exercises it with a real executor (noget_record_contexthit underpackages/runtime/src/**/*.test.ts); the stdio pins live inpackages/mcp/src/mcp-record-context-tools.test.ts.read-set.ts:51drops a registry row that does not parse (AiContextSchema.safeParse), the case card What 3 pins.Serial constraints cleared: #37173 (#37140) merged 03:39Z. This zone's #37176 (in flight) touches packages/lint and packages/metadata-protocol, not this surface. The overlap check runs at the first push.
Pre-claim lane:
domain:server(packages/runtimetests)Pre-claim deps:
#37140merged (PR #37173)Prior rulings read: ADR-0160 D3/D4 (as amended by #37196: a related child the caller is not served is left out and stated) and ADR-0149 D7 (HTTP/stdio parity); none conflicting. Where the merged service and the amended record differ on a pinned case, the test pins what
maindoes today and the PR names the gap.Done when: for one fixture and one caller, the HTTP bridge and the stdio bridge give byte-identical answers, refusals included, on the seven cases card What 2 lists; a pack served from the metadata registry is read.
4 remaining items
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: unblocked 2026-11-25T10:35Z
pm:blocked→pm:queue. Its blocker get_record_context finds no context pack a real protocol serves: getMetaItems adds _diagnostics, the strict AiContextSchema parse drops every pack #37243 closed as completed (PR fix(mcp,runtime): get_record_context reads a package's context packs on both MCP doors #37255 merged).0fa37da2). This non-cloud row of topic 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996 goes to repo:objectstack#4, zone a4-A, which picks up from that backup.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Claim: PM loop round 2 · area ai-36996 (topic #36996 non-cloud rows; the maintainer, verbatim, 2026-11-25T12:57Z project thread: 「开一个 36996 专题,接手剩余任务」) · 2026-11-25T20:03Z
Session:
session_01Utp6CbeF2saT6wUBV4E9ucAccount:
os-billArea: ai-36996
Branch:
claude/issue-37175-record-context-http-rig(resumed from seat 3's backup)Worktree:
objectstack-issue-37175Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/runtime/src/domains/**(new rig test file),packages/runtime/vitest.config.ts(two alias rows),packages/runtime/package.jsondevDependencies +pnpm-lock.yaml; a stdio/HTTP parity fix only if the rig proves one, inpackages/mcp/src/stdio-data-bridge.tsorpackages/runtime/src/domains/mcp.ts, declared in the report. Stop on any other breach and report.Container & model:
M,mode:subagent,model: default — dispatch-gates --tier: "no path-derived mandate",effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7159927889
Premise: holds — on
origin/maina182fbe37: the HTTP bridge test (packages/runtime/src/mcp-record-context-tools-bridge.test.ts) is wiring-level; #37243 (PR #37255) and #37216 (PR #37291) merged, so the real-protocol read the hand-off waited on is now reachableResume-from:
claude/issue-37175-record-context-http-rig@0fa37da2Serial constraints cleared: PR #37291 merged (it changed
packages/runtime/src/domains/mcp.tsandpackages/mcp/src/stdio-data-bridge.ts); sibling #37203 (this area, in flight in parallel) stays inpackages/services/service-record-context/**+ one spec file — disjointPre-claim lane:
domain:server(packages/runtime,packages/mcp)Pre-claim deps: #37140 closed, #37243 closed (PR #37255 merged), #37216 closed (PR #37291 merged)
Prior rulings read: seat 3 hand-off 7156246306 and os-dev report on this card are the owed reading; ADR-0160 as amended by #37196/#37240
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
os-dev-report
{ "issue": 37175, "status": "done", "branch": "claude/issue-37175-record-context-http-rig", "pr": "https://github.com/objectstack-ai/objectstack/pull/37350", "head": "9c9d8a634936381709d276fa430cacb9fc174921", "session": "session_01Utp6CbeF2saT6wUBV4E9uc", "premise_still_valid": true, "summary": "Resumed from 0fa37da2 and merged origin/main a182fbe37 (merge 879bd3cfc). Added one top-level describe to the shared harness file packages/runtime/src/mcp-record-context-tools-bridge.test.ts: get_record_context over one real kernel (ObjectQL on SqlDriver, the real SecurityPlugin, the real protocol, the real RecordContextServicePlugin), asked through the /mcp door (HttpDispatcher.handleMcp into MCPServerRuntime, the runtime HTTP data bridge) and the real MCPServerPlugin stdio session, for one caller. Every case requires byte-identical answers (isError and text), refusals included. Cases: success with an FLS-hidden field stated, an apiEnabled:false lookup target notVisible (amendment 4), and an RLS-refused related row absent; root refused (equal to get_record's answer); an unserved related child refused unnamed (today's behaviour, gap to ADR-0160 as amended); an API-exposure-refused child named; a disabled-package child unnamed; an unresolved anchor; and a pack saved at run time to the metadata registry, which is read. The WIP probe file is deleted. No production, manifest, lockfile or vitest-config change: PR #37255 had already landed the devDependencies and alias rows. The PR body says Part of #37175, because amendment 4's door.ts sentence sits behind this card's fence.", "tests": "At head 9c9d8a634, under the verify lock: `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/mcp-record-context-tools-bridge.test.ts` gave `Tests 15 passed (15)`, `Duration 17.87s (... import 16.91s, tests 834ms)` (shared box), VERDICT command-exit 0. `pnpm --filter @objectstack/runtime typecheck` gave VERDICT command-exit 0 and 'check:test-typecheck: OK ... 27 file(s) / 183 error(s) ... held in test-typecheck-debt.json'. The file is in the tsconfig.test.json program (--listFiles count 1). The first typecheck run went red on 3 untouched files, TS2307 for '@objectstack/driver-turso': that package's dist had not been built, because it is an optional dependency outside the runtime^... closure. Built it and re-ran: green. One-off fixture control, not committed: with the row rule removed, the main case read rows [\"r1\",\"r2\"] and went red, so the r2 absence is the row rule's doing. Restored with git checkout HEAD --; git diff HEAD empty; hash equal to HEAD's blob. No ablation: test-only diff, no tested production behaviour changed.", "gates": "Local derived set (`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, 50 families): 48 gave exit 0. Two gave exit 3, PREREQUISITE NOT MET, and are NOT MEASURED: `node scripts/check-plugin-teardown-shape.mjs --self-test` (its positive control is pinned to a commit the shallow clone lacks) and `pnpm check:dual-build-cjs-loads` (every package must be built). `--ran` reconciliation with recorded exit codes: '50 derived famil(ies) accounted for — 48 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. `node scripts/pm/overlap-check.mjs --branch=HEAD`: VERDICT clean exit 0 before each push. PR #37350 check-runs at 9c9d8a634 (58 runs, all completed): 37 success, 21 skipped, 0 failure. Success includes Lint & Repo Gates, TypeScript Type Check, Test Core (and shards 1-10), Build Core, Governed Surface Queue Guard, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, every Lint and Type Check sub-job, and Flag docs affected by code changes.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: no)", "line_budget": "+347 / -2 on 1 file (349 changed lines), under the 3000 human-merge threshold", "files_changed": ["packages/runtime/src/mcp-record-context-tools-bridge.test.ts"], "deviations": [ "Surface: the rig went into the shared harness file packages/runtime/src/mcp-record-context-tools-bridge.test.ts as a top-level describe (AGENTS.md: a new pin for a component that already has a shared harness file goes into that file), not a new file under packages/runtime/src/domains/** as the claim named. The only change under domains/ is deleting the WIP file. Declared in the PR body.", "Narrowing: the runtime package's full `pnpm test` (653 files) was not run locally. The diff is one test file. CI Test Core ran it, and all 10 shards were green.", "Card relation: the PR says `Part of #37175`, not `Fixes`. Amendment 4's door.ts sentence is fenced (packages/services/service-record-context/**) and is the half left open." ], "readings": [ "A1(a) on main a182fbe37: the stdio RECORD_NOT_FOUND for p1 came from the rig. The WIP key resolved a caller with no organization, while the row is in org_1. With the key active in org_1 (and owner membership answered), the stdio door reads p1, and its root read carries the same userId/tenantId/permissions/positions as the /mcp caller (precondition case).", "A1(b) on main a182fbe37: the private-OWD row coming back on HTTP is not a row-security defect. The rig composed no `sharing` service, and private-OWD read narrowing is that service's: plugin-security's resolveSharingReadFilter (security-plugin-sharing-verdicts.ts) returns null when resolveKernelService('sharing') has no buildReadFilter. The rig now uses an authored row rule, and both doors drop r2. Nothing asserts a leak.", "A2: the WIP console probe is deleted. Its rig lives as assertions in the shared harness file (the precedent named above).", "A3 on main a182fbe37: executeGetRecordContext still refuses the whole call for a related child this caller is not served (PERMISSION_DENIED 403, unnamed: 'Context pack ... reads an object you cannot read ...'). ADR-0160 as amended (Point 2, D3 'Object level') says left out and stated. Pinned as today's behaviour, with the gap named in the case title and the PR." ], "acceptance": [ "For one fixture and one caller, the HTTP bridge and the stdio bridge give byte-identical answers, refusals included: MET. Every case runs through `both()`, which requires stdio toEqual http ({isError, text}). 8 cases green at 9c9d8a634, locally and in CI Test Core.", "The registry-served pack is read: MET. The case 'a pack served from the metadata registry (saved at run time, not shipped by the stack) is read' saves rc_registry through protocol.saveMetaItem, checks that the listing serves it without _packageId, and reads it on both doors (fields title/status).", "Card What 2, the seven cases: root refused, refused related child (unnamed when hidden), hidden field, unopenable lookup, unreadable related row, unresolved anchor and OBJECT_PACKAGE_DISABLED child: all pinned on both doors. A named API-exposure child refusal was added.", "Amendment 4: the behaviour half is pinned (vault lookup to apiEnabled:false target answered notVisible on both doors). The door.ts sentence is NOT done (fenced); left open, hence Part of." ], "mcp_calls": "0", "api_writes": "2 — (1) relay pr_create via node scripts/pm/fleet-write/dispatch.mjs (POST /repos/objectstack-ai/objectstack/dispatches; executed as POST /repos/objectstack-ai/objectstack/pulls (draft) + POST /issues/37350/assignees [os-bill] + POST /issues/37350/labels [skip-changeset]; read-back: 8562 bytes sent, 8562 stored, identical; assignees os-bill; labels skip-changeset); (2) POST /repos/objectstack-ai/objectstack/issues/37175/comments, this os-dev-report via scripts/pm/post-stamped.mjs", "open_questions": [ { "question": "Who carries amendment 4's door.ts sentence (a door decides each expansion target's API exposure), now that the behaviour is pinned here and the file is fenced for this card?", "options": ["A: route it to the sibling card working in packages/services/service-record-context (#37203) or a one-line follow-up, and switch this PR to Fixes #37175", "B: keep Part of #37175 open until a later stroke adds the sentence"], "recommendation": "A, because the sentence is one docblock line in a file the sibling already holds, and this PR has already pinned the behaviour the sentence describes." } ], "security_findings": "none", "out_of_scope_findings": [ "class: b · reach: exception: maintainer (ADR-0160 as amended 2026-11-25, 「同意你的建议」) · evidence: ADR-0160 D3 'Object level' (amended) says 'A related child that this caller is not served is left out'; executeGetRecordContext (packages/services/service-record-context/src/record-context-tools.ts, step 4a, refuseObject(entry.object, false)) refuses the whole call. Measured on both MCP doors over the real kernel: PERMISSION_DENIED 403 'Context pack 'rc_unserved_child' on 'rc_policy' reads an object you cannot read ...'. Seam: spec: ADR-0160 D3 (amended) → runtime: record-context-tools.ts executeGetRecordContext 4a · carrier: already routed to triage by seat 3 (os-dev report 7154852563), noted, not refiled · dedupe words: related child not served refused, ADR-0160 amended point 2, refuseObject unnamed child, left out and stated", "carrier: none · noted, not filed: two local gates cannot run in this container (check-plugin-teardown-shape --self-test needs an unshallow clone; check:dual-build-cjs-loads needs a full build); CI ran both families green" ] }objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Claim: PM loop round 5 · area ai-36996 · re-claim of #37175 for its closing PR (supersedes claim round 2's Branch only) · 2026-11-26T03:12Z
Session:
session_01Utp6CbeF2saT6wUBV4E9ucAccount:
os-billArea: ai-36996
Branch:
claude/issue-37361-left-out-queryable-doorsSeat:
repo:objectstack#5Why: the round-2 branch
claude/issue-37175-record-context-http-riglanded as PR #37350 (the rig) and is done. The card stayed open for the amendment-4 docblock sentence indoor.ts, which the dispatch order for #37361 carried; PR #37412 delivers it and saysFixes #37175. File surface, unchanged from #37361's claim 7179712908 (packages/services/service-record-context/src/door.tsdocblock sentence only, for this card).Container & model:
M,mode:subagent,model: default — dispatch-gates --tier: "no path-derived mandate",effort: highClause-②: no
Metadata-protocol: none
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbeF2saT6wUBV4E9uc
Merged: PR #37412 at
8d60333638closed this card byFixes(re-claim 7181502252). The rig landed earlier in PR #37350; the amendment-4door.tsdocblock sentence (a door decides each expansion target's API exposure) landed here, citing ADR-0160 D3.pm:dispatchedremoved.