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
{{ message }}
Repository navigation
plugin-security: pin the authored-policy outcome and the skipped sharing relief on a controlled_by_parent predicate write (after #36282) #36367
Filing gate: ② follow-up from a landing PR (PR #36282, card #35802). It carries nit N3 of contract record 7076369115 (seat 7, PASS at 4fe236dbd1). Maintainer 2026-11-22 07:49Z 「你后续的小改动可以另立卡。尽快完成合并」. Source: fleet. ⛔ Not a claim. Queued, not dispatched by area a4-E.
Why
PR #36282 declares a breaking outcome: on a controlled_by_parent detail with an app-authored update/delete row-level policy, a non-delegated predicate write is now bounded by that policy alone. The outcome has no pin of its own on the vouched path. The skipped sharing relief on a vouched write has none either.
Both run through code the by-id path shares, and the flipped pin asserts that the composed predicate carries no floor. So this card is coverage, not a known defect.
Done when
Authored-policy case. A real-engine case in packages/plugins/plugin-security/src/predicate-write-floor-deferral.test.ts, or a sibling file, sets up:
a controlled_by_parent detail;
an authored update policy with a using;
a caller who created rows that the policy does not admit.
The case shows that a predicate update writes exactly the rows a by-id update of each would, and that it skips the caller's own rows the policy does not admit. Do the same for delete.
Sharing relief. A case shows that a vouched predicate write asks no sharing verdict, or shows why none is observable.
Ablations. Each case is ablated red, then restored.
Triage: lands in domain:server (plugin-security pins) · pm:queue; rationale: area:data · Task · pin the authored-policy outcome and the skipped sharing relief on a controlled_by_parent predicate write → p3 as filed · size XS. Linked under topic #36232.
Picked by card-pick.mjs --order area:data --seat repo:objectstack#8 at 2026-11-28T13:10Z: p3 close-out (the authored-policy outcome of a controlled_by_parent predicate write has no pin of its own). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intake area:data; batch 「8 (Recommended)」; 「现在并发多少,如何加速」.
Claim: PM loop round 1
Session: session_017xRBcSAaBEfQpU2yJexSJ8
Account: sunhaolin
Branch: claude/issue-36367-controlled-by-parent-policy-pins
Worktree: objectstack-issue-36367
Domain: domain:server
Seat: repo:objectstack#8
File surface: packages/plugins/plugin-security/src/predicate-write-floor-deferral.test.ts or a sibling test file in packages/plugins/plugin-security/src/; test-only, no changeset (skip-changeset) unless a product defect is measured (then stop and report) (stop on breach; explain in the report)
Container & model: S, mode:cloud, model: opus (dispatch-gates --tier: no path-derived mandate; default tier), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack — pins for the controlled_by_parent predicate-write outcome (PR #36282)
Thread-read: none
Premise: the dev first reproduces the setup on current main and reads the PR #36282 outcome; a pin that measures a defect instead of the declared outcome is reported, not "fixed".
Serial constraints cleared: check-handover.mjs --inflight --paths=packages/plugins/plugin-security/src/predicate-write-floor-deferral.test.ts reads no overlap; the two claims naming no path (#38150, #37903, seat 3) are Studio packaging and console metadata readers; textual overlap re-checked with overlap-check.mjs before every push.
Scope this dispatch: the whole card. Fixes #36367.
{
"issue": 36367,
"status": "done",
"branch": "claude/issue-36367-controlled-by-parent-policy-pins",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38338",
"session": "session_017xRBcSCSJLNEQQeWJhKnd1",
"premise_still_valid": true,
"summary": "Test-only, one file (predicate-write-floor-deferral.test.ts, real engine): 7 new cases inside the controlled_by_parent block. (1) An app-authored update policy, and separately a delete policy, with using stage == 'open' on a new staged detail: the master owner's predicate write changes exactly the rows a by-id write of each admits (r2, r4) and skips r1 and r3, the closed rows she created. A per-verb control shows a policy on the other verb binds nothing (all 4 rows written). (2) The skipped sharing relief: end to end, a vouched predicate write asks no sharing verdict on the detail (per row or set form), while a by-id write of the same detail does ask (the recorder is live). The skip alone is unobservable on these fixtures (ablation A2 stays green), so a further case pins why: the vouched Layer 1 is null with no policy; with a policy it is the policy alone and the floor-only replacement stays non-empty, so the relief returns before asking; and sharing abstains on every detail row for both verbs. No product defect was measured; every pin matches the outcome PR #36282 declares. Commit trailers follow AGENTS.md (model-free pair) and the PR footer uses the AGENTS.md session-URL form, over the harness reminder's model-named trailer and footer. The draft PR is not subscribed for activity: os-dev.md's dispatch contract overrides the platform's subscription posture.",
"tests": "At head 198443d7b0, under os-verify-lock: the file `vitest run --maxWorkers=2 src/predicate-write-floor-deferral.test.ts` gives Tests 116 passed (116) (109 before, plus 7), VERDICT command-exit 0. The plugin-security suite gives Test Files 290 passed (290), Tests 7337 passed | 45 skipped (7382), VERDICT command-exit 0. `pnpm --filter @objectstack/plugin-security typecheck` gives VERDICT command-exit 0; the file is in tsconfig.test.json (--listFiles 1 hit). Ablations ran through scripts/ablation-replace.mjs, no dist hop (the test imports src). Every leg: anchor 1->0, blob changed, restore blob == HEAD, git diff HEAD empty. A1, the step-3 vouch on Layer 1 set to undefined (authz-middleware): 22 failed / 94 passed, 6 of 7 new red; the authored-policy predicate wrote r1-r4 against r2,r4 by id; the 'why' case stays green by design, as it calls the composition directly. A2, the relief's `&& !predicateMasterGateRowIds` removed: 116 passed, i.e. unobservable alone. A3, the floor yield under platformFloorYieldsToObjectWriteModel made a no-op (rls-filter): 26 failed / 90 passed, 7 of 7 red; the vouched Layer 1 reads {created_by:'usr_alice'}. A4 = A2 (--hold) + A3: 26 failed / 90 passed, 7 of 7 red, and the verdict assertion itself fails: 'pwf_line: verdicts the predicate write asked: expected [ { verb: 'edit', ... } ] to deeply equal []'.",
"gates": "Derived with `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 198443d7b0: 54 families from 1 path, merge base c279520a0c. Each run once, exit captured before any pipe. `--ran`: '54 derived famil(ies) accounted for — 52 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)', exit 0. 52 exit 0. check-plugin-teardown-shape --self-test first exited 3 (its pinned commit 621a4876 was missing from the shallow clone) and exited 0 after that single commit was fetched (48 cases). NOT MEASURED, PREREQUISITE NOT MET, left to CI Lint & Repo Gates: check:dual-build-cjs-loads and check:i18n (unbuilt dist outside the closure). Not run by rule: repo-wide lint, test:repo. CI check-runs: NOT MEASURED, reason: this report was delivered right after pr_create, before CI concluded; CI convergence is the PM's.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "4 — mcp__github__issue_read (get, get_comments) on #36367, mcp__github__pull_request_read (get) on #36282 and #38338; all reads, no write tool",
"api_writes": "2 — fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches: pr_create (PR #38338, labels skip-changeset, assignees sunhaolin, read back identical), and this os-dev-report comment on #36367 via post-stamped.mjs; plus 2 git pushes (not REST)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(plugin-security pins) ·pm:queue; rationale: area:data · Task · pin the authored-policy outcome and the skipped sharing relief on acontrolled_by_parentpredicate write → p3 as filed · size XS. Linked under topic #36232.fix(plugin-security)!: a predicate update or delete of a controlled_b…
feat(pm): first-touch-sweep lists a card whose area:* is not exactly …
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Picked by
card-pick.mjs --order area:data --seat repo:objectstack#8at 2026-11-28T13:10Z: p3 close-out (the authored-policy outcome of a controlled_by_parent predicate write has no pin of its own). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intakearea:data; batch 「8 (Recommended)」; 「现在并发多少,如何加速」.Claim: PM loop round 1
Session:
session_017xRBcSAaBEfQpU2yJexSJ8Account:
sunhaolinBranch:
claude/issue-36367-controlled-by-parent-policy-pinsWorktree:
objectstack-issue-36367Domain:
domain:serverSeat:
repo:objectstack#8File surface:
packages/plugins/plugin-security/src/predicate-write-floor-deferral.test.tsor a sibling test file inpackages/plugins/plugin-security/src/; test-only, no changeset (skip-changeset) unless a product defect is measured (then stop and report) (stop on breach; explain in the report)Container & model:
S,mode:cloud,model: opus (dispatch-gates --tier: no path-derived mandate; default tier),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack — pins for the controlled_by_parent predicate-write outcome (PR #36282)Thread-read:
nonePremise: the dev first reproduces the setup on current main and reads the PR #36282 outcome; a pin that measures a defect instead of the declared outcome is reported, not "fixed".
Serial constraints cleared:
check-handover.mjs --inflight --paths=packages/plugins/plugin-security/src/predicate-write-floor-deferral.test.tsreads no overlap; the two claims naming no path (#38150, #37903, seat 3) are Studio packaging and console metadata readers; textual overlap re-checked withoverlap-check.mjsbefore every push.Scope this dispatch: the whole card.
Fixes #36367.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSCSJLNEQQeWJhKnd1
os-dev-report
{ "issue": 36367, "status": "done", "branch": "claude/issue-36367-controlled-by-parent-policy-pins", "pr": "https://github.com/objectstack-ai/objectstack/pull/38338", "session": "session_017xRBcSCSJLNEQQeWJhKnd1", "premise_still_valid": true, "summary": "Test-only, one file (predicate-write-floor-deferral.test.ts, real engine): 7 new cases inside the controlled_by_parent block. (1) An app-authored update policy, and separately a delete policy, with using stage == 'open' on a new staged detail: the master owner's predicate write changes exactly the rows a by-id write of each admits (r2, r4) and skips r1 and r3, the closed rows she created. A per-verb control shows a policy on the other verb binds nothing (all 4 rows written). (2) The skipped sharing relief: end to end, a vouched predicate write asks no sharing verdict on the detail (per row or set form), while a by-id write of the same detail does ask (the recorder is live). The skip alone is unobservable on these fixtures (ablation A2 stays green), so a further case pins why: the vouched Layer 1 is null with no policy; with a policy it is the policy alone and the floor-only replacement stays non-empty, so the relief returns before asking; and sharing abstains on every detail row for both verbs. No product defect was measured; every pin matches the outcome PR #36282 declares. Commit trailers follow AGENTS.md (model-free pair) and the PR footer uses the AGENTS.md session-URL form, over the harness reminder's model-named trailer and footer. The draft PR is not subscribed for activity: os-dev.md's dispatch contract overrides the platform's subscription posture.", "tests": "At head 198443d7b0, under os-verify-lock: the file `vitest run --maxWorkers=2 src/predicate-write-floor-deferral.test.ts` gives Tests 116 passed (116) (109 before, plus 7), VERDICT command-exit 0. The plugin-security suite gives Test Files 290 passed (290), Tests 7337 passed | 45 skipped (7382), VERDICT command-exit 0. `pnpm --filter @objectstack/plugin-security typecheck` gives VERDICT command-exit 0; the file is in tsconfig.test.json (--listFiles 1 hit). Ablations ran through scripts/ablation-replace.mjs, no dist hop (the test imports src). Every leg: anchor 1->0, blob changed, restore blob == HEAD, git diff HEAD empty. A1, the step-3 vouch on Layer 1 set to undefined (authz-middleware): 22 failed / 94 passed, 6 of 7 new red; the authored-policy predicate wrote r1-r4 against r2,r4 by id; the 'why' case stays green by design, as it calls the composition directly. A2, the relief's `&& !predicateMasterGateRowIds` removed: 116 passed, i.e. unobservable alone. A3, the floor yield under platformFloorYieldsToObjectWriteModel made a no-op (rls-filter): 26 failed / 90 passed, 7 of 7 red; the vouched Layer 1 reads {created_by:'usr_alice'}. A4 = A2 (--hold) + A3: 26 failed / 90 passed, 7 of 7 red, and the verdict assertion itself fails: 'pwf_line: verdicts the predicate write asked: expected [ { verb: 'edit', ... } ] to deeply equal []'.", "gates": "Derived with `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 198443d7b0: 54 families from 1 path, merge base c279520a0c. Each run once, exit captured before any pipe. `--ran`: '54 derived famil(ies) accounted for — 52 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)', exit 0. 52 exit 0. check-plugin-teardown-shape --self-test first exited 3 (its pinned commit 621a4876 was missing from the shallow clone) and exited 0 after that single commit was fetched (48 cases). NOT MEASURED, PREREQUISITE NOT MET, left to CI Lint & Repo Gates: check:dual-build-cjs-loads and check:i18n (unbuilt dist outside the closure). Not run by rule: repo-wide lint, test:repo. CI check-runs: NOT MEASURED, reason: this report was delivered right after pr_create, before CI concluded; CI convergence is the PM's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "4 — mcp__github__issue_read (get, get_comments) on #36367, mcp__github__pull_request_read (get) on #36282 and #38338; all reads, no write tool", "api_writes": "2 — fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches: pr_create (PR #38338, labels skip-changeset, assignees sunhaolin, read back identical), and this os-dev-report comment on #36367 via post-stamped.mjs; plus 2 git pushes (not REST)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Closed by PR #38338 (merged,
Fixes #36367) · 2026-11-28T15:47Z. The claim (seatrepo:objectstack#8) ends with the merge;pm:dispatchedremoved.