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
Shared views: an org admin without manage_metadata is offered 「共享」 and refused; a view created Shared stays an unpublished draft #36409
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Found while building #36371, which closed as not planned: the rule 「只有管理员可以在前端界面创建共享视图」 already holds, and sharing or unsharing an existing view is 「暂时不考虑」 (coordinator#1's correction 7077377066). Measured by that card thread at origin/main 3faabd2 (PR #36398's body). Filed by the seat.
What happens
An organization administrator is offered 「共享」 and then refused. The Console offers the Shared choice in Add view when the reader isAdmin. An organization administrator is isAdmin but does not hold manage_metadata, so the save answers 403 FORBIDDEN. The server refusal is right (ADR-0066 D1); the offer is wrong.
A view created Shared is invisible to everyone until someone publishes it. It is saved as a draft (ADR-0034), so nobody else sees it, against the maintainer's 「保存即生效」 (ruling record 7058616478).
A view that is gone is dropped silently. A reader whose address names a view the server answers not_found for sees the default view with no word of why.
To do
Offer 「共享」 only to a reader whose session holds manage_metadata.
Claim: PM loop round 4
Session: session_01QsR2jTeURPvEm465RcoYEC
Thread session: session_01QsR2jTPMb2q2wRssyREqhQ
Account: zhuangjianguo
Branch: claude/project-thread-393bw7 (the thread's container pushes only to its own branch name)
Worktree: objectstack-issue-36409
Domain: domain:ui
Seat: repo:objectstack#7
Area: f7-seat (single-card thread; enters no area)
File surface: the view switcher and Add view in ui/packages/app-shell/src/views/ (objectViewViewSharing, the title switcher, CreateViewDialog), the save-and-publish helper the #35955 door uses, useMetaItemRefusal, @object-ui/i18n keys, content/docs/ui/views.mdx, the rest meta-write capability pin test, their tests — ⛔ no 「设为共享」 / 「取消共享」 on existing views (not now, per the maintainer)
Container & model: M, mode:thread, model: default tier (the thread re-derives dispatch-gates --tier at its head), effort: high (seat order)
Clause-②: yes (widening) — new @object-ui/i18n keys (the thread re-judges from the diff)
Metadata-protocol: none (the thread re-judges from the diff)
Responsibility: n/a — not a defect card
Thread-read: none
Premise: holds — measured by the #36371 card thread at origin/main 3faabd2 (PR #36398 body); #36371 itself closed as not planned (7077377066)
Serial constraints cleared: none beyond #35955 step 2 (not duplicated); overlap-check before every push.
Pre-claim lane: repo:objectstack seat 7 filed this card from the #36371 thread's measurement and keeps it in that thread (same branch and PR #36398, re-pointed), under the maintainer's 「交接给你的任务 p1 p2 都要做」 (2026-11-22T07:18Z, seat thread).
Pre-claim deps: none open; the server refusal already exists (ADR-0066 D1) and is pinned, not changed.
Prior rulings read: 7077377066 (#36371 closed; sharing existing views 「暂时不考虑」), ruling record 7058616478 (「保存即生效」); the thread runs check-prior-rulings.mjs --card 36409 before code.
Resume-from: claude/project-thread-393bw7@a0dfe1a4 (PR #36398, re-pointed to this card; items 3 and 4 are dropped)
Triage: area, pm:dispatched and p2 stand as filed; rationale: area:ux · Bug · an org admin without manage_metadata is offered 「共享」 and then refused, and a view created as Shared stays an own view · size S.
{
"issue": 36409,
"status": "done",
"branch": "claude/project-thread-393bw7",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36398",
"session": "session_01QsR2jTPMb2q2wRssyREqhQ",
"premise_still_valid": true,
"summary": "Reworked PR #36398 from closed #36371 onto #36409: Make shared and Unshare (code, i18n keys, tests, docs, census row, dropdown width) are removed. Kept: Add view offers Shared only when isAdmin && useCanAuthorMetadata (an org admin without manage_metadata no longer sees a choice the server answers 403); a view created Shared is saved and published in one act via saveAndPublishRuntimeMetadata (into the app's package when one resolves), a refused save publishing nothing; a reader whose address names a view the server answers not_found for is told once and gets the default view (useMetaItemRefusal.absent). The server refusal is pinned with the shipped permission sets; no server code. Clause-② re-judged: yes (widening), two new view.switcher keys (shareNameTaken, viewGone); Metadata-protocol: none.",
"tests": "At b09dc558 (main ff601499 merged): objectViewViewSharing.test.tsx 3/3; i18n + switcher/sharing/in-place-create/census: 110 files, 2032 passed; every ObjectView* test + runtime-metadata-persistence + census + switcher + sharing + in-place-create: 114 files, 1021 passed; rest meta-write-door-capability-enumeration 72 passed. Ablation: mayShareViews -> return isAdmin; gives 1 failed / 2 passed; restored green. Live two-account run (admin + auditor.demo member) at a0dfe1a4 covered the kept flows; screenshots in the PR body.",
"gates": "dispatch-gates --ran at b09dc558: 96 derived, 94 run, 2 NOT-MEASURED (exit 3: check-plugin-teardown-shape --self-test, spec check:skill-examples), 0 UNRUN; ui scripts/, spec check:docs, check:dts-closure green after rebuilding @objectstack/spec with declarations; check:dual-build-cjs-loads red on this container only (75 unemitted d.ts/d.cts in packages this PR does not touch). PR-body gates exit 0. overlap-check clean. CI at b09dc558: 63 success, 11 skipped, 0 failed; mergeable clean.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "4 since the #36371 report — 3 issue_patch on #36398 (screenshots, census note, re-point to #36409 with new title) and this report",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in Acceptance notes, not filed: Manage views, the view settings panel and the Create View dialog still gate on isAdmin alone, so an organization administrator without manage_metadata is offered them and refused 403 by the server"
]
}
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC
Claim: PM loop round 4
Session:
session_01QsR2jTeURPvEm465RcoYECThread session:
session_01QsR2jTPMb2q2wRssyREqhQAccount:
zhuangjianguoBranch:
claude/project-thread-393bw7(the thread's container pushes only to its own branch name)Worktree:
objectstack-issue-36409Domain:
domain:uiSeat:
repo:objectstack#7Area:
f7-seat (single-card thread; enters no area)File surface: the view switcher and Add view in
ui/packages/app-shell/src/views/(objectViewViewSharing, the title switcher, CreateViewDialog), the save-and-publish helper the #35955 door uses,useMetaItemRefusal,@object-ui/i18nkeys,content/docs/ui/views.mdx, the rest meta-write capability pin test, their tests — ⛔ no 「设为共享」 / 「取消共享」 on existing views (not now, per the maintainer)Container & model: M,
mode:thread, model: default tier (the thread re-derivesdispatch-gates --tierat its head), effort: high (seat order)Clause-②: yes (widening) — new
@object-ui/i18nkeys (the thread re-judges from the diff)Metadata-protocol: none (the thread re-judges from the diff)
Responsibility:
n/a — not a defect cardThread-read: none
Premise: holds — measured by the #36371 card thread at origin/main 3faabd2 (PR #36398 body); #36371 itself closed as not planned (7077377066)
Serial constraints cleared: none beyond #35955 step 2 (not duplicated); overlap-check before every push.
Pre-claim lane:
repo:objectstackseat 7 filed this card from the #36371 thread's measurement and keeps it in that thread (same branch and PR #36398, re-pointed), under the maintainer's 「交接给你的任务 p1 p2 都要做」 (2026-11-22T07:18Z, seat thread).Pre-claim deps: none open; the server refusal already exists (ADR-0066 D1) and is pinned, not changed.
Prior rulings read: 7077377066 (#36371 closed; sharing existing views 「暂时不考虑」), ruling record 7058616478 (「保存即生效」); the thread runs
check-prior-rulings.mjs --card 36409before code.Resume-from:
claude/project-thread-393bw7@a0dfe1a4(PR #36398, re-pointed to this card; items 3 and 4 are dropped)objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: area,
pm:dispatchedand p2 stand as filed; rationale: area:ux · Bug · an org admin withoutmanage_metadatais offered 「共享」 and then refused, and a view created as Shared stays an own view · size S.refactor(console): drop Make shared and Unshare; keep the Shared gate…
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTPMb2q2wRssyREqhQ
os-dev-report
{ "issue": 36409, "status": "done", "branch": "claude/project-thread-393bw7", "pr": "https://github.com/objectstack-ai/objectstack/pull/36398", "session": "session_01QsR2jTPMb2q2wRssyREqhQ", "premise_still_valid": true, "summary": "Reworked PR #36398 from closed #36371 onto #36409: Make shared and Unshare (code, i18n keys, tests, docs, census row, dropdown width) are removed. Kept: Add view offers Shared only when isAdmin && useCanAuthorMetadata (an org admin without manage_metadata no longer sees a choice the server answers 403); a view created Shared is saved and published in one act via saveAndPublishRuntimeMetadata (into the app's package when one resolves), a refused save publishing nothing; a reader whose address names a view the server answers not_found for is told once and gets the default view (useMetaItemRefusal.absent). The server refusal is pinned with the shipped permission sets; no server code. Clause-② re-judged: yes (widening), two new view.switcher keys (shareNameTaken, viewGone); Metadata-protocol: none.", "tests": "At b09dc558 (main ff601499 merged): objectViewViewSharing.test.tsx 3/3; i18n + switcher/sharing/in-place-create/census: 110 files, 2032 passed; every ObjectView* test + runtime-metadata-persistence + census + switcher + sharing + in-place-create: 114 files, 1021 passed; rest meta-write-door-capability-enumeration 72 passed. Ablation: mayShareViews -> return isAdmin; gives 1 failed / 2 passed; restored green. Live two-account run (admin + auditor.demo member) at a0dfe1a4 covered the kept flows; screenshots in the PR body.", "gates": "dispatch-gates --ran at b09dc558: 96 derived, 94 run, 2 NOT-MEASURED (exit 3: check-plugin-teardown-shape --self-test, spec check:skill-examples), 0 UNRUN; ui scripts/, spec check:docs, check:dts-closure green after rebuilding @objectstack/spec with declarations; check:dual-build-cjs-loads red on this container only (75 unemitted d.ts/d.cts in packages this PR does not touch). PR-body gates exit 0. overlap-check clean. CI at b09dc558: 63 success, 11 skipped, 0 failed; mergeable clean.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "4 since the #36371 report — 3 issue_patch on #36398 (screenshots, census note, re-point to #36409 with new title) and this report", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in Acceptance notes, not filed: Manage views, the view settings panel and the Create View dialog still gate on isAdmin alone, so an organization administrator without manage_metadata is offered them and refused 403 by the server" ] }test(console): pin where a shared view is saved, and a name a pending…
fix(console): Shared in Add view only for administrators who can writ…