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: member_default grants sys_comment_reaction read + create, so a stock member can react to comments they can read #33584
Area-lease pilot #33059, lease:E1. Maintainer decision 2026-11-15T01:40Z: option A, "members may react by default". This settles the open question on #22566 of which shipped set carries these bits, for member_default only.
A stock showcase member has no grant on sys_comment_reaction. The record page falls back to the column store and offers the reaction control. Clicking it PATCHes the retired sys_comment.reactions column and answers 400 INVALID_FIELD, while POST /data/sys_comment_reaction answers 403.
Fix
In packages/plugins/plugin-security/src/objects/default-permission-sets.ts, member_default gets sys_comment_reaction: { allowRead: true, allowCreate: true, allowEdit: false, allowDelete: false }, beside the sys_comment line. No row policy: the tripwire in default-permission-sets.test.ts forbids one.
external_default is not covered. Portal users keep today's answer unless that is ruled separately.
Add a dogfood pin: a stock member reacts to a readable comment (201), unreacts their own reaction, cannot remove another member's reaction, and reads reactions only on comments they can read.
Why it is safe (reviewed)
Reads are narrowed to readable comments (installCommentReadVisibility).
Inserts refuse unreadable comments and stamp user_id from the session (authorizeReactionInsert).
Unreact removes only created_by == caller rows, and there is no update method.
domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn
Claim: area-lease pilot #33059, area E1 · 2026-11-15T01:49Z
Branch: claude/area-E1-33584
Account: os-elon-musk
Clause-②: no
Metadata-protocol: none
Executing the maintainer decision on this card (option A): member_default gains read + create on sys_comment_reaction, no row policy, external_default untouched; a unit pin on the shipped set and a dogfood pin at the REST doors.
{
"issue": 33584,
"status": "done",
"branch": "claude/area-E1-33584",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33617",
"head_sha": "799041bdf8fc66f156895d3c3ff91d11d6040cc1",
"session": "session_016WV4cy1y7UNVbT2QAdmgdn",
"premise_still_valid": true,
"summary": "member_default now grants sys_comment_reaction { allowRead: true, allowCreate: true, allowEdit: false, allowDelete: false } (packages/plugins/plugin-security/src/objects/default-permission-sets.ts). The line sits right after the sys_comment/sys_activity pair, with a comment citing the maintainer decision on #33584. No row policy is added and external_default is untouched. The header of comment-reaction-own-record-floor.test.ts now cites the decision on #33584 instead of 'an open decision on #22566'. There is a unit pin with an external_default CONTROL, and a dogfood pin with a CONTROL for an unreadable comment. Premise measured by ablating the grant line, which leaves plugin-security source equal to origin/main 4bba8b8f02 apart from comments: a stock member (app read-only baseline + member_default + storage_attachment_member) got 403 PERMISSION_DENIED on POST /data/sys_comment_reaction and on GET /data/sys_comment_reaction?$filter. The card's 'both registration/save orders' frame item does not apply: no metadata registration or save path is involved.",
"tests": "Head 799041bdf8 on origin/main 4bba8b8f02, which had not moved. (1) Dogfood file comment-reactions-and-edit-stamps.dogfood.test.ts: Test Files 1 passed, Tests 9 passed (9). (2) plugin-security: pnpm test on the first run gave 266/267 files passed; the one failure was the new unit pin, which had left out the schema's materialized allowTransfer/viewAllRecords/modifyAllRecords false bits, fixed in 799041bdf8. The three reaction files were rerun: 3 files, 44 tests passed. typecheck exit 0. (3) Full dogfood (pnpm --filter @objectstack/dogfood test, under the lock, on 799041bdf8): Test Files 467 passed | 3 skipped (470), Tests 3954 passed | 42 skipped (3996), VERDICT command-exit 0. (4) Ablation, once, on the grant line, on df12ab933d: ablation-replace --delete moved the anchor 1->0 (blob de71003fa3ab->5301afe83779). plugin-security was rebuilt and ablation-dist-preflight --absent confirmed the marker absent from all 6 dist files. Unit: 1 failed | 31 passed (the new member_default pin). Dogfood file: 4 failed | 5 passed; the 4 new cases each failed with 'expected 403 to be 201/200', body {code: PERMISSION_DENIED, object: sys_comment_reaction}. Restore: blob == HEAD, git diff HEAD empty. After the rebuild, preflight found the marker present in 2 dist files and the tree clean.",
"dependents_run": [
"@objectstack/cloud-connection test: exit 0, 80 files / 1209 tests passed",
"@objectstack/organizations test: exit 0, 18 files / 252 passed",
"@objectstack/plugin-dev test: exit 0, 10 files / 89 passed",
"@objectstack/plugin-auth test: exit 0, 274 files / 5303 passed, 10 skipped",
"@objectstack/service-automation test: exit 0, 281 files / 3916 passed",
"@objectstack/rest test: exit 0, 411 files / 8393 passed, 332 skipped",
"@objectstack/verify test: exit 0, 51 files / 437 passed",
"@objectstack/runtime test: exit 0, 602 files / 10781 passed, 19 skipped",
"@objectstack/cli vitest --project unit: exit 0, 420 files / 5966 passed (integration tier left to CI)",
"@objectstack/dogfood full test: exit 0, 467 passed | 3 skipped files, 3954 passed | 42 skipped tests; dogfood typecheck exit 0"
],
"gates": "Local, each exit captured before any pipe, all exit 0: check-test-source-alias, check-changeset-no-major --base origin/main, check:system-context-census, check-tenant-audit-census, check:platform-object-tenancy-census, check:driver-memory-census, check:issue-citations (self-test) + check-issue-citations.mjs, check:doc-authoring, check:nul-bytes, check:cross-package-test-inputs, check:authz-resolver, check:tier-file-adoption, check:closed-ceremony-text, check-comment-mask-adoption, check-comment-mask-corpus, check-affected-docs, check-drift-comment, check:engine-double-contract, check:test-source-alias, check:undeclared-dep-imports, check:published-files. ESLint --no-inline-config on the 4 touched files exit 0. No census, generated baseline or authorable-surface file moved; no packages/spec change. The derived list (dispatch-gates --commands) has 61 commands; this is a subset of 22, and the rest are left to CI. --ran reconciliation was not run. PR #33617 check-runs on 799041bdf8 at 03:18Z: success for Lint & Repo Gates, TypeScript Type Check, Build Core, Check Changeset, PR-body guards, Governed Surface Queue Guard, Dogfood Regression Gate (aggregate), Live E2E UI, Test UI, Spec property liveness, Test Core 2-8/8. Test Core (1/8) was in_progress.",
"dogfood_battery": "799041bdf8 · VERDICT command-exit 0 · Test Files 467/470 (3 skipped) · Tests 3954/3996 (42 skipped) · no failures. Run per the coordinator's dependents rule; not owed by the title or the Clause-② arm.",
"mcp_calls": "0",
"api_writes": "3 relay writes: claim comment on #33584 (post-stamped, comment 6887545154), pr_create #33617 (fleet-write dispatch), os-dev-report comment on #33584 (post-stamped). Plus 3 git pushes of the branch.",
"open_questions": [],
"decisions_needed": [
{
"question": "Clause-② for this PR: no or yes (widening)?",
"options": [
"A: keep 'no'. pm-dispatch execution-duties says a runtime permission/security behaviour change is not clause ②, and no published schema, export or wire shape changes.",
"B: 'yes (widening)', as the #32442 precedent (member_default gained sys_approval_request read) was declared. That changeset also widened an MCP bridge contract."
],
"recommendation": "A, because the change is one runtime grant and the order expected 'no'. The claim and PR already say 'no'."
},
{
"question": "Should external_default (portal users) also get reaction read + create?",
"options": [
"A: no, keep today's answer (the card's scope)",
"B: rule it separately on a new card"
],
"recommendation": "A for this PR. Any widening for portal users needs its own ruling."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: comment-reaction-unreact-door.integration.test.ts still grants reactions through an app every-member set, which now duplicates member_default's grant. Harmless, left as is (PR Acceptance notes)."
],
"deviations": [
"The grant line is placed right after sys_activity (not directly under sys_comment), so the existing comment 'These two lines open the OBJECTS' above the sys_comment/sys_activity pair stays accurate.",
"The PR body's first line is the HTML attribution comment, which FRAME.md requires. os-dev.md forbids dev-written HTML comments; FRAME wins for this pilot. Read-back showed all 8342 bytes stored identical.",
"The PR body says the cli unit tier was 'running when this PR was opened'. It has since finished green (420 files / 5966 tests), and the full dogfood suite now has a green reading too (the body lists it as NOT MEASURED locally). The body was not PATCHed, per the dev rule; the seat may update those two lines.",
"A stray file /build.pid (5 bytes, holds a pid) was created at the filesystem root by a shell-variable slip. The harness safety check refused its removal; it is left for a human to delete.",
"Worktree /home/user/objectstack-e1-33584 is kept, not removed, so the area session can rework; remove with rm -rf node_modules then git worktree remove once accepted."
]
}
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn
Claim: area-lease pilot #33059, area E1 · 2026-11-15T01:49Z
Branch:
claude/area-E1-33584Account:
os-elon-muskClause-②: no
Metadata-protocol: none
Executing the maintainer decision on this card (option A):
member_defaultgains read + create onsys_comment_reaction, no row policy,external_defaultuntouched; a unit pin on the shipped set and a dogfood pin at the REST doors.objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn
os-dev-report
{ "issue": 33584, "status": "done", "branch": "claude/area-E1-33584", "pr": "https://github.com/objectstack-ai/objectstack/pull/33617", "head_sha": "799041bdf8fc66f156895d3c3ff91d11d6040cc1", "session": "session_016WV4cy1y7UNVbT2QAdmgdn", "premise_still_valid": true, "summary": "member_default now grants sys_comment_reaction { allowRead: true, allowCreate: true, allowEdit: false, allowDelete: false } (packages/plugins/plugin-security/src/objects/default-permission-sets.ts). The line sits right after the sys_comment/sys_activity pair, with a comment citing the maintainer decision on #33584. No row policy is added and external_default is untouched. The header of comment-reaction-own-record-floor.test.ts now cites the decision on #33584 instead of 'an open decision on #22566'. There is a unit pin with an external_default CONTROL, and a dogfood pin with a CONTROL for an unreadable comment. Premise measured by ablating the grant line, which leaves plugin-security source equal to origin/main 4bba8b8f02 apart from comments: a stock member (app read-only baseline + member_default + storage_attachment_member) got 403 PERMISSION_DENIED on POST /data/sys_comment_reaction and on GET /data/sys_comment_reaction?$filter. The card's 'both registration/save orders' frame item does not apply: no metadata registration or save path is involved.", "tests": "Head 799041bdf8 on origin/main 4bba8b8f02, which had not moved. (1) Dogfood file comment-reactions-and-edit-stamps.dogfood.test.ts: Test Files 1 passed, Tests 9 passed (9). (2) plugin-security: pnpm test on the first run gave 266/267 files passed; the one failure was the new unit pin, which had left out the schema's materialized allowTransfer/viewAllRecords/modifyAllRecords false bits, fixed in 799041bdf8. The three reaction files were rerun: 3 files, 44 tests passed. typecheck exit 0. (3) Full dogfood (pnpm --filter @objectstack/dogfood test, under the lock, on 799041bdf8): Test Files 467 passed | 3 skipped (470), Tests 3954 passed | 42 skipped (3996), VERDICT command-exit 0. (4) Ablation, once, on the grant line, on df12ab933d: ablation-replace --delete moved the anchor 1->0 (blob de71003fa3ab->5301afe83779). plugin-security was rebuilt and ablation-dist-preflight --absent confirmed the marker absent from all 6 dist files. Unit: 1 failed | 31 passed (the new member_default pin). Dogfood file: 4 failed | 5 passed; the 4 new cases each failed with 'expected 403 to be 201/200', body {code: PERMISSION_DENIED, object: sys_comment_reaction}. Restore: blob == HEAD, git diff HEAD empty. After the rebuild, preflight found the marker present in 2 dist files and the tree clean.", "dependents_run": [ "@objectstack/cloud-connection test: exit 0, 80 files / 1209 tests passed", "@objectstack/organizations test: exit 0, 18 files / 252 passed", "@objectstack/plugin-dev test: exit 0, 10 files / 89 passed", "@objectstack/plugin-auth test: exit 0, 274 files / 5303 passed, 10 skipped", "@objectstack/service-automation test: exit 0, 281 files / 3916 passed", "@objectstack/rest test: exit 0, 411 files / 8393 passed, 332 skipped", "@objectstack/verify test: exit 0, 51 files / 437 passed", "@objectstack/runtime test: exit 0, 602 files / 10781 passed, 19 skipped", "@objectstack/cli vitest --project unit: exit 0, 420 files / 5966 passed (integration tier left to CI)", "@objectstack/dogfood full test: exit 0, 467 passed | 3 skipped files, 3954 passed | 42 skipped tests; dogfood typecheck exit 0" ], "gates": "Local, each exit captured before any pipe, all exit 0: check-test-source-alias, check-changeset-no-major --base origin/main, check:system-context-census, check-tenant-audit-census, check:platform-object-tenancy-census, check:driver-memory-census, check:issue-citations (self-test) + check-issue-citations.mjs, check:doc-authoring, check:nul-bytes, check:cross-package-test-inputs, check:authz-resolver, check:tier-file-adoption, check:closed-ceremony-text, check-comment-mask-adoption, check-comment-mask-corpus, check-affected-docs, check-drift-comment, check:engine-double-contract, check:test-source-alias, check:undeclared-dep-imports, check:published-files. ESLint --no-inline-config on the 4 touched files exit 0. No census, generated baseline or authorable-surface file moved; no packages/spec change. The derived list (dispatch-gates --commands) has 61 commands; this is a subset of 22, and the rest are left to CI. --ran reconciliation was not run. PR #33617 check-runs on 799041bdf8 at 03:18Z: success for Lint & Repo Gates, TypeScript Type Check, Build Core, Check Changeset, PR-body guards, Governed Surface Queue Guard, Dogfood Regression Gate (aggregate), Live E2E UI, Test UI, Spec property liveness, Test Core 2-8/8. Test Core (1/8) was in_progress.", "dogfood_battery": "799041bdf8 · VERDICT command-exit 0 · Test Files 467/470 (3 skipped) · Tests 3954/3996 (42 skipped) · no failures. Run per the coordinator's dependents rule; not owed by the title or the Clause-② arm.", "mcp_calls": "0", "api_writes": "3 relay writes: claim comment on #33584 (post-stamped, comment 6887545154), pr_create #33617 (fleet-write dispatch), os-dev-report comment on #33584 (post-stamped). Plus 3 git pushes of the branch.", "open_questions": [], "decisions_needed": [ { "question": "Clause-② for this PR: no or yes (widening)?", "options": [ "A: keep 'no'. pm-dispatch execution-duties says a runtime permission/security behaviour change is not clause ②, and no published schema, export or wire shape changes.", "B: 'yes (widening)', as the #32442 precedent (member_default gained sys_approval_request read) was declared. That changeset also widened an MCP bridge contract." ], "recommendation": "A, because the change is one runtime grant and the order expected 'no'. The claim and PR already say 'no'." }, { "question": "Should external_default (portal users) also get reaction read + create?", "options": [ "A: no, keep today's answer (the card's scope)", "B: rule it separately on a new card" ], "recommendation": "A for this PR. Any widening for portal users needs its own ruling." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: comment-reaction-unreact-door.integration.test.ts still grants reactions through an app every-member set, which now duplicates member_default's grant. Harmless, left as is (PR Acceptance notes)." ], "deviations": [ "The grant line is placed right after sys_activity (not directly under sys_comment), so the existing comment 'These two lines open the OBJECTS' above the sys_comment/sys_activity pair stays accurate.", "The PR body's first line is the HTML attribution comment, which FRAME.md requires. os-dev.md forbids dev-written HTML comments; FRAME wins for this pilot. Read-back showed all 8342 bytes stored identical.", "The PR body says the cli unit tier was 'running when this PR was opened'. It has since finished green (420 files / 5966 tests), and the full dogfood suite now has a green reading too (the body lists it as NOT MEASURED locally). The body was not PATCHed, per the dev rule; the seat may update those two lines.", "A stray file /build.pid (5 bytes, holds a pid) was created at the filesystem root by a shell-variable slip. The harness safety check refused its removal; it is left for a human to delete.", "Worktree /home/user/objectstack-e1-33584 is kept, not removed, so the area session can rework; remove with rm -rf node_modules then git worktree remove once accepted." ] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · os-elon-musk · session_016WV4cy1y7UNVbT2QAdmgdn
Claim: area-lease pilot #33059, area E1 · 2026-11-15T03:28Z · corrected declaration after review#1 (comment 6888529912 on PR #33617)
Branch:
claude/area-E1-33584Account:
os-elon-muskClause-②: yes (widening)
Metadata-protocol: none
fix(plugin-security): member_default grants sys_comment_reaction read…
fix(app-shell): a record page offers the reactions column write only …