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
Cloud consumer note. 2026-11-17T03:30Z objectstack-ai/cloud#4792 item 1 (a single-organization manager lands in the environment) is built as draft PR objectstack-ai/cloud#4804, and the seat holds its landing until a manager in the environment has a working way back to Cloud. That needs this card's 「组织管理」 entry and #34622 (the environment's existing Cloud links open the origin, which the new landing bounces back). One control-plane-declared deep Cloud address can serve both cards. Request: assist — priority read from the owning lane, since both are p1 and unclaimed.
The maintainer, in the os-support-ai fleet project (thread "Run objectstack seat 3 console experience") at 2026-11-17T03:40Z, answered the seat's four-question pack (reviewed first by an independent fable agent at his request) with one word, verbatim: 「同意」 — i.e. every recommendation below.
Ruled: A — org menu items follow the served deployment signals (features.cloudManaged, features.tenancyPosture, multiOrgEnabled from GET /auth/config); no Setup override key (item 5 is dropped; this supersedes the maintainer's earlier 「这些应该在设置中都可以配置」); no new menu extension point (item 4): the cloud layer adds its items through the existing manifest.navigationContributions path (setup-nav.contributions.ts). Single-org member management stays reachable at Setup → Organization (ruling 6384629949 on #25347). Item 3 (moving WorkspaceSwitcher into the avatar menu) is checked against ADR-0105 before building; a conflict comes back to the maintainer.
Prior rulings: 6341690661 (#25083), 6384629949 (#25347).
Claim: PM loop round 1 · 2026-11-17T03:45Z
Session: session_01WGufzi3ezPzTysQPDEjmVz
Account: os-support-ai
Branch: claude/issue-34591-org-menu-posture
Worktree: objectstack-issue-34591
Domain: domain:ui
Seat: repo:objectstack#3
File surface: ui/packages/app-shell/src/layout/AppHeader.tsx (avatar menu + header-left switcher mount), ui/packages/app-shell/src/layout/WorkspaceSwitcher.tsx, ui/packages/app-shell/src/hooks/** (a posture read beside useTenancyPosture), ui/packages/auth/src/types.ts (the served features.cloudManaged field), ui/packages/i18n/src/locales/**, root .changeset/
Container & model: M, mode:subagent, model: TIER_DEFAULT (no path-derived mandate on these paths), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack ui/packages/app-shell AppHeader.tsx (org items gate only on hasOrgSection :604, so a single-tenant deployment shows My Organizations / Create organization) | none | every single-tenant and cloud-managed deployment's users
Thread-read: 6937513776
Premise: holds as narrowed by the ruling (area grep at f4a2d14: hasOrgSection AppHeader.tsx:604, org items :1310/:1320, WorkspaceSwitcher :936; cloudManaged is served in packages/spec/src/api/auth-endpoints.zod.ts:311 and kernel public-auth-features.ts:286 but not yet typed in ui/packages/auth/src/types.ts; tenancyPosture read by useTenancyPosture; multiOrgEnabled typed)
Serial constraints cleared: AppHeader.tsx also carries #34593 (in flight), #34589 and #34596 of this area: overlap-check before every push, the queue arbitrates
Pre-claim lane: domain:ui — every path is under ui/**; the deployment signals are already served, no server or spec change
Pre-claim deps: none named on the card
Prior rulings read: ruling 6937513776 on this card (binding, below); 6341690661 (#25083), 6384629949 (#25347); ADR-0105 read for item 3 — its only UI line is "UI affordances (org switcher as write context + "all my orgs" read views) must land with Phase 1": it requires the switcher to exist in group posture, not where it sits, so moving it into the avatar menu does not conflict as long as group posture still reaches it; thread: 2 comments + ruling
Ruling-ref: 6937513776 — "org menu items follow the served deployment signals (features.cloudManaged, features.tenancyPosture, multiOrgEnabled from GET /auth/config); no Setup override key (item 5 is dropped …); no new menu extension point (item 4): the cloud layer adds its items through the existing manifest.navigationContributions path (setup-nav.contributions.ts). Single-org member management stays reachable at Setup → Organization"
Scope: items 1 (UI reads the served signals only), 2 and 3. Cut by the ruling: item 4 (cloud items via the existing navigationContributions, cloud card) and item 5 (no Setup key). Lease o3-D (seat post #34584). Part of epic #34571.
{
"issue": 34591,
"status": "done",
"branch": "claude/issue-34591-org-menu-posture",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34697",
"session": "session_01WGufzi3ezPzTysQPDEjmVz",
"premise_still_valid": true,
"summary": "CONTINUATION of the claim after a container restart. Inherited commit 9105f2d0b (useOrgMenuPosture hook, AppHeader avatar-menu gate, WorkspaceSwitcher split) was pushed as WIP, reviewed hunk by hunk and kept with one fix: its submenu wrapped content in DropdownMenuPortal, which @object-ui/components does not export (the multi-membership menu would have rendered an undefined element); it now uses the exported submenu primitives only, like ViewTabBar, and Chinese labels in code comments were rewritten in English (ui/AGENTS.md rule -1). The avatar menu reads only served signals (features.multiOrgEnabled default-on, features.cloudManaged, features.tenancyPosture): single-tenant shows no org entry and no switcher; multi-org shows My Organizations and Create organization, Switch organization only at 2+ memberships; cloud-managed hides Create. The header-left WorkspaceSwitcher moved into the avatar menu as a submenu (still labelled as the write context under group posture, ADR-0105 Risks paragraph satisfied; no ruling text fixes its placement); the top bar keeps only the mobile shell's native-switcher button. features.cloudManaged was already typed in ui/packages/auth/src/types.ts on this base, so that file is untouched. Items 4 and 5 cut per ruling 6937513776, quoted in the PR; Fixes #34591. This run wrote the tests (new posture matrix in the AppHeader.myOrganizations shared harness; WorkspaceSwitcher.test now covers the menu) and updated six existing org tests to the new placement.",
"tests": "head 5de170e45. Targeted: pnpm --dir ui exec vitest run --maxWorkers=2 over 10 files (AppHeader.myOrganizations, .singleMembershipOrg, .unsavedEditsLeave-13231, .organizationNoun-12851, WorkspaceSwitcher, .noActiveOrg-12698, .organizationNoun-12851, .nativeConnectionSwitcher, CurrentOrganizationIndicator, .noActiveOrg-12698): Test Files 10 passed (10), Tests 62 passed (62), lock VERDICT command-exit 0. First run before the portal fix: 2 failed in AppHeader.organizationNoun-12851 ('No DropdownMenuPortal export'), which exposed the inherited defect. Type check: pnpm --filter @object-ui/app-shell type-check (src + tsconfig.test.json) VERDICT command-exit 0, no error TS. Ablation (committed head, scripts/ablation-replace.mjs, anchor 1->0, blob moved, restored blob == HEAD and git diff HEAD empty; suite imports source so no dist leg): orgMenuEntries ignoring multiOrgEnabled -> 2 failed/11 passed (single-tenant, cloud-managed single-tenant); createOrganization ignoring cloudManaged -> 1 failed/12 passed (cloud-managed). Declared narrowing: full @object-ui/app-shell suite (~2285 files) started locally, stopped after ~50 min on the shared box with no verdict and no failure printed: NOT MEASURED locally, left to CI Test UI.",
"gates": "dispatch-gates --commands (repo objectstack-ai/objectstack, tree 5de170e45): 38 derived; 38 run locally, each exit 0 captured before any pipe. Notables: pnpm --dir ui exec vitest run scripts/ Test Files 171 passed | 2 skipped, Tests 5077 passed | 2 skipped; pnpm check:type-check-debt first run exit 3 PREREQUISITE NOT MET (lock queue-timeout behind this run's own suite), rerun under the lock: 'check-type-check-coverage: OK — 128/131 workspace packages type-checked', '--re-measure: OK'; check:nul-bytes OK; check:published-files OK. --ran reconciliation on the first record: 38 derived, 37 run, 1 UNRUN (check:type-check-debt), then closed by the rerun above. ui pnpm check:new-line-citations: 0 new. overlap-check --branch=HEAD at final head: VERDICT clean exit 0 (origin/main a34eb0716a, #34677, #34665). PR check-runs at report time (head 5de170e45): Check Changeset, Governed Surface Queue Guard, Lint · *, Type Check · * all in_progress; opt-in/queue rows skipped. CI convergence is the PM's.",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no (no narrowing arm)",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/34697/assignees os-support-ai, one stroke, run 44036532149, read-back identical 9805 bytes); post-stamped issue comment on #34591 (this report). git push x4 not counted.",
"open_questions": [
{
"question": "On a walled posture (isolated/group), a member of 2+ organizations no longer sees the active organization's name in the top bar (the old switcher showed it); it now appears under My Organizations in the avatar menu. Should CurrentOrganizationIndicator (outside this claim's file surface) also name the organization read-only at 2+ memberships?",
"options": [
"A: keep as shipped — name under My Organizations only; the bar's left stays product mark + app switcher as the maintainer asked",
"B: follow-up card: CurrentOrganizationIndicator renders read-only at any membership count on walled postures (one-line rule change plus its tests), so scoped lists always say which org they are scoped to"
],
"recommendation": "B, because objectui#5287 established that a walled user must see which organization lists are scoped to without opening anything, and a read-only name is not a switcher, so it does not contradict 「左上角应该是切换应用的」; small XS card in domain:ui"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — organization.switcher.manageMembers has no consumer after this change (dead key in ten packs; check:i18n-dead-keys is report-only)",
"carrier: none · noted, not filed — CurrentOrganizationIndicator.tsx docblock still describes WorkspaceSwitcher as the header's multi-membership switcher; comment drift only, outside the file surface",
"deviation: the changeset commit was pushed before its overlap-check; the check ran right after at the same head and at final head: VERDICT clean exit 0"
]
}
Amends claim 6937604379 (area o3-D, same session, same branch claude/issue-34591-org-menu-posture). The File surface adds ui/packages/app-shell/src/layout/CurrentOrganizationIndicator.tsx and its tests (ui/packages/app-shell/src/layout/__tests__/CurrentOrganizationIndicator*.test.tsx).
Seat ruling (repo:objectstack#3 seat, decided under an existing rule, not a maintainer question): moving the switcher into the avatar menu must not leave a walled-posture member of 2+ organizations without the active organization's name on screen (objectui#5287: a scoped list says which organization it is scoped to). So CurrentOrganizationIndicator names the active organization read-only at any membership count on walled postures, where it renders today (not the top-left app-switcher slot); a read-only name is not a switcher, so 「左上角应该是切换应用的」 still holds. Done inside this card so PR #34697 lands no regression. Everything else in 6937604379 stands.
{
"issue": 34591,
"status": "done",
"branch": "claude/issue-34591-org-menu-posture",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34697",
"session": "session_01WGufzi3ezPzTysQPDEjmVz",
"premise_still_valid": true,
"summary": "FIX ROUND, new head 808df9a0e (one commit on 5de170e45, no merge, no rebase). (1) Lint UI red fixed: the unused waitFor import in AppHeader.singleMembershipOrg.test.tsx is dropped. (2) Seat ruling B (claim amendment on the card): CurrentOrganizationIndicator now names the server-active organization read-only at any membership count on walled postures (isolated/group), where it already renders (not the app-switcher slot). The guard changed from exactly one membership to at least one; single/absent/unrecognised posture, no active organization and the mobile-shell case still render nothing. Docblock rewritten: it no longer calls WorkspaceSwitcher the header's switcher. Pins: CurrentOrganizationIndicator.test.tsx's old negative 'multiple memberships: that is the switcher's case' (it pinned the reversed rule) is replaced by two positives at two memberships (isolated: names the ACTIVE org and stays control-free; group: names the write target). The composed multi-membership case in AppHeader.singleMembershipOrg now asserts the indicator names the org beside the avatar-menu switcher. AppHeader.tsx comments and the changeset sentence updated to match. Size XS, every file inside the amended surface. (3) main not merged: overlap-check clean, and main's only overlap with this diff is AppHeader.tsx, which merges cleanly. (4) PR body updated through the relay: the seat ruling, labelled 'Seat ruling (repo:objectstack#3)', plus the indicator change, tests, ablation and fix-round verification. Attribution lines stay first and the signed trailer stays last.",
"tests": "head 808df9a0e. First try: 10 files failed to load ('Failed to resolve import @objectstack/spec/system'). The worktree is new and had no build. After the dependency closure build (pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build, lock VERDICT command-exit 0): pnpm --dir ui exec vitest run --maxWorkers=2 over CurrentOrganizationIndicator, CurrentOrganizationIndicator.noActiveOrg-12698, AppHeader.singleMembershipOrg, AppHeader.myOrganizations, AppHeader.organizationNoun-12851, AppHeader.unsavedEditsLeave-13231, WorkspaceSwitcher, WorkspaceSwitcher.noActiveOrg-12698, WorkspaceSwitcher.organizationNoun-12851, WorkspaceSwitcher.nativeConnectionSwitcher gave 'Test Files 10 passed (10)', 'Tests 63 passed (63)', lock VERDICT command-exit 0 (62 before: one negative replaced by two positives). Ablation, one run on the committed head with scripts/ablation-replace.mjs and a trap restore: the guard was put back to '!== 1' (anchor 1->0, blob 3dfcfaac1c8e->06f144b2cbd9). Exactly the three new two-membership pins went red: '3 failed | 12 passed (15)'. Restored blob == HEAD blob 3dfcfaac1c8e and git diff HEAD is empty. The suite imports source, so no dist leg. Type check: pnpm --filter @object-ui/app-shell run type-check (both programs), lock VERDICT command-exit 0, 0 'error TS'. Full app-shell suite not run locally (declared narrowing, as in round 1); CI Test UI is green on 808df9a0e.",
"gates": "Lint: pnpm --filter @object-ui/app-shell run lint exit 0, '0 errors' (warnings only, pre-existing). Control: the old head's AppHeader.singleMembershipOrg.test.tsx run through the same eslint via stdin exits 1 with '29:26 error waitFor is defined but never used object-ui/no-unused-imports'. dispatch-gates --commands --repo objectstack-ai/objectstack at 808df9a0e: 38 derived, 38 run, each exit 0, captured before any pipe. Notables: vitest run scripts/ 'Test Files 171 passed | 2 skipped', 'Tests 5077 passed | 2 skipped'; check:type-check-debt '--re-measure: OK'; check:nul-bytes OK. The derivation warned STALE TREE: 32 commits behind origin/main, with 8 gate scripts changed upstream and none of this diff's files. --ran reconciliation: '38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN'. ui check:new-line-citations: 0 new. Control-byte self-scan on the changed files: no hits. overlap-check --branch=HEAD at 808df9a0e: VERDICT clean exit 0 (origin/main e47c1cb2f7; #34723 and #34677 share AppHeader.tsx and merge cleanly). PR check-runs on 808df9a0e at report time: 55 runs, 0 failure. Success: Lint UI, Lint & Repo Gates, all Lint ·, TypeScript Type Check, all Type Check ·, Type Check UI, Test UI (shards and aggregate), Test Core, Build UI Deps, Build & E2E UI, Live E2E UI, Governed Surface Queue Guard, Dogfood Regression Gate, Check Changeset. Re-running after the body edit and in_progress: Check Changeset and PR-body guards. Opt-in and queue rows: skipped.",
"dogfood_battery": "n/a — no ! in the PR title and Clause-②: no (no narrowing arm)",
"mcp_calls": "0",
"api_writes": "2 — relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/34697 (PR body, run 44053341564, read-back 12830 bytes sent = 12830 stored, identical); post-stamped issue comment on #34591 (this report). git push x1 not counted.",
"open_questions": [
{
"question": "os-dev.md says a subagent writes the PR body only in pr_create and never PATCHes it (the seat writes later bodies). This dispatch ordered the body update through the relay, so this run sent issue_patch on #34697. Should the file carry an exception for a fix round the seat explicitly delegates?",
"options": [
"A: keep the rule; the seat sends body edits itself and the dev hands it the drafted body file",
"B: add a fix-round exception: a dev may send issue_patch on its own PR when the dispatch names it"
],
"recommendation": "A, because the file wins over a dispatch word, and handing over the drafted file costs the seat one relay call. This run followed the explicit dispatch order and records it here instead of choosing a side silently."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — OrgBadge.tsx docblock still calls WorkspaceSwitcher the multi-membership bar surface and the indicator 'exactly one membership'. Comment drift only, outside the amended file surface.",
"carrier: none · noted, not filed — on a walled posture the active org name now shows twice: in the bar indicator and under 'My Organizations' in the avatar menu (kept, it sits beside the entries that act on it). Polish only."
]
}
From L1-b REWORK 6943845699 on PR #34697 (M2): the file surface adds the eight existing tests the change edits, because their pins describe the org switcher that moves into the avatar menu:
Amends claim 6937604379 (area o3-D, same session, same branch claude/issue-34591-org-menu-posture). The File surface names, explicitly, the existing test files PR #34697 edits to follow the switcher into the avatar menu and the ruling-B indicator change (requested by L1 6943845699):
{
"issue": 34591,
"status": "done",
"branch": "claude/issue-34591-org-menu-posture",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34697",
"session": "session_01WGufzi3ezPzTysQPDEjmVz",
"premise_still_valid": true,
"summary": "Live-readings round for L1 6943845699 M1. The head CHANGED: 808df9a0e -> c0c5c134c -> 242f43777. I booted examples/app-showcase (`objectstack dev --seed-admin`, fresh SQLite for each posture) on :38591 under REAL tenancy configuration: single = OS_TENANCY_POSTURE unset; isolated and group = OS_TENANCY_POSTURE plus OS_AUTH_MEMBERSHIP_POLICY=invite-only plus OS_PLATFORM_OWNER_EMAIL. I drove the PR-source Vite console on :38592 with Playwright/Chromium. Readings (a), (b) in en and zh-Hans, (c) under isolated and group (submenu opens; the unsaved-edit confirm on Cancel and on OK; reload to root; the indicator names the new org), and (d) all hold. Only (d) is a stand-in: a route intercepts GET /auth/config and forces cloudManaged true. Reading (e) FAILED on 808df9a0e: at 375 px the switch submenu opened off-screen (box x=-124, width 240). I fixed it in scope in c0c5c134c: below the phone breakpoint the rows render inline. The re-read then found the group hint widening the phone menu to 442.6 px, and 242f43777 fixed that (max-w-60). Both fixes are pinned in WorkspaceSwitcher.test.tsx. The readings went to PR comment 6945939831; the screenshots (22 PNGs), readings.txt, live-readings.mjs and boot.sh are under /mnt/project-files/objectstack-seat3/34591-live/.",
"tests": "At 242f43777:\n- `pnpm --dir ui exec vitest run --maxWorkers=2` over the 10 targeted files from the last round plus AppHeader.phoneTargets-29075: `Test Files 11 passed (11)`, `Tests 74 passed (74)`, lock `VERDICT command-exit 0`. WorkspaceSwitcher.test.tsx has 11 tests, 3 of them new phone-width pins: at 375 px there is no sub-trigger, the label and rows are inline, and a row switches; at 375 px under group the hint is width-bounded; control: at 1024 px the sub-trigger is there and there is no inline label.\n- Live before/after numbers are in readings.txt: phone menu box x=111 width 256 and switch rows x=116 width 246, both inside 375 px, under isolated and group. A tap on the other row switched the server-active org to Second Org under both postures.\n- No ablation: the fix is a new branch and its pin. The before state is the live reading at 808df9a0e, red (off-screen).",
"gates": "Local run at 242f43777, each exit code captured before any pipe and recorded in the scratch gates-results.txt:\n- targeted tests: exit 0.\n- `pnpm --filter @object-ui/app-shell run lint`: exit 0 (0 errors, warnings pre-existing).\n- `pnpm --filter @object-ui/app-shell run type-check`: exit 0, 0 error TS. It ran after `turbo run build --filter=@object-ui/app-shell^...`; the first attempt in this fresh worktree exited 2 with TS2307 because no @object-ui dist existed yet.\n- `pnpm --dir ui run check:new-line-citations`: 0 new.\n- `node scripts/pm/dispatch-gates.mjs --commands`: 38 derived, 38 run, all exit 0, including `pnpm --dir ui exec vitest run scripts/`: 171 passed | 2 skipped files, 5077 passed | 2 skipped tests. The derivation warned the tree is 35 commits behind origin/main; main was not merged because there is no conflict.\n- `--ran`: 38 of 38 accounted for, 0 NOT-MEASURED, 0 UNRUN. The `--ran` file lists commands only; the exit codes are in gates-results.txt.\n- `overlap-check --branch=HEAD`: `VERDICT clean exit 0` against origin/main, #34723 and #34677, before each of the 2 pushes.\nPR check-runs on 242f43777 when this was read: 51 total, 38 success, 13 skipped, 0 failed. Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (aggregate, with shards 1 to 9 of 16 listed), Build & E2E UI, Live E2E UI and Dogfood Regression Gate are all success; Build Core and the matrix placeholders are skipped.",
"dogfood_battery": "n/a — the PR title has no `!` and the claim's Clause-② line has no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay writes through post-stamped (fleet-write dispatch): POST issues/34697/comments (6945939831, the readings) and POST issues/34591/comments (this report). Not REST: 2 `git push` to claude/issue-34591-org-menu-posture (c0c5c134c, 242f43777). No labels, no PR body edit, no assignee or claim write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — at 375 px CurrentOrganizationIndicator shows only the org badge, because the name is hidden below `sm`. This is the indicator's existing narrow rendering, not changed by this PR, and the name is in the avatar menu's My Organizations sub-line.",
"carrier: none · noted, not filed — the CRM example refuses walled postures (it does not declare @objectstack/organizations), and a showcase walled boot needs OS_AUTH_MEMBERSHIP_POLICY plus OS_PLATFORM_OWNER_EMAIL. Both are documented refusals that name their fix, not defects.",
"carrier: the area (PR body owner) · the PR body's Tests and Verification sections still describe 808df9a0e; PR comment 6945939831 is the record for c0c5c134c and 242f43777."
]
}
{
"issue": 34591,
"status": "done",
"branch": "claude/issue-34591-org-menu-posture",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34697",
"session": "session_01WGufzi3ezPzTysQPDEjmVz",
"premise_still_valid": true,
"summary": "MERGE-FORWARD ROUND, new head cc8c33dbc (one merge commit: parents 242f43777 + origin/main 6091b645f, 45 first-parent main commits, no text conflicts, no os-regen-pending; pushed as a fast-forward, no rebase, no force). The PR's own delta is unchanged: dispatch-gates reads the same 14 paths, +778/-407, and the PR still adds no locale keys. Semantic read of main's AppHeader.tsx hunks (4db375054, a931063df, 13c62a626, 26cab1550): none of them touches the avatar menu, the org entries or the header-left WorkspaceSwitcher / CurrentOrganizationIndicator mount. The phone hunk swaps only the sidebar-trigger slot for a back-to-home link (app-bar-phone-home) and removes the phone title's margin; the indicator still mounts after the product mark and keeps its name hidden below sm (badge only), so the phone bar draws the same org badge as at 242f43777. The other hunks (the AI button becoming AssistantTopBarButton, pending approvals passed to InboxPopover, group dividers only from sm) are outside the org surface. No conflict with the ruling (single-tenant: no org entries; switcher in the avatar menu; ruling B indicator). The worktree was clean and has been removed.",
"tests": "At cc8c33dbc, after `pnpm --filter '@object-ui/app-shell^...' build` (lock VERDICT command-exit 0): `pnpm --dir ui exec vitest run --maxWorkers=2` over 26 files, which are the r2 eleven (CurrentOrganizationIndicator{,.noActiveOrg-12698}, AppHeader.{singleMembershipOrg,myOrganizations,organizationNoun-12851,unsavedEditsLeave-13231,phoneTargets-29075}, WorkspaceSwitcher{,.nativeConnectionSwitcher,.noActiveOrg-12698,.organizationNoun-12851}) plus the 15 other AppHeader*.test.tsx main touched (aboutBuild-12970, appBarLeftGroup-12461, appIdentity-12201, centeredSearch-12472, crumbFold-12702, dashboardPageNoCrumb-12526, deferredChromeReads-12980, designInStudioNeedsAuthoring-10899, editAppFollowsPackagePosture-12615, homeMark-12605, hostSingleApp-12913, inboxVariant, pageRouteNoAuthoringHandles-12198, pageTitleByName-29416, sidebarTrigger-12429). Result: Test Files 26 passed (26), Tests 216 passed (216), lock VERDICT command-exit 0. `pnpm --filter @object-ui/app-shell run type-check` (tsc --noEmit plus tsc -p tsconfig.test.json): lock VERDICT command-exit 0. app-shell `pnpm run lint`: exit 0, 0 errors (5502 warnings, all warnings). ui `pnpm check:new-line-citations`: 0 new citations, exit 0. No ablation: the merge changes no behaviour this PR pins.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at cc8c33dbc derived 38 commands. All 38 were run, with exit codes captured before any pipe. 37 exited 0 on the first pass. check:query-options-erasure hit my 300 s runner timeout (exit 124), was re-run with a 570 s budget and exited 0 ('ratchet holds: 30 unswept non-test site(s) in 13 file(s), none new'). The vitest family `pnpm --dir ui exec vitest run scripts/` ran under the lock: 171 passed, 2 skipped (173 files), 5077 tests passed. `--ran` reconciliation: '38 derived famil(ies) accounted for, 38 run, 0 NOT-MEASURED (a DERIVED zero, all 38 recorded an exit code)'. overlap-check --branch=HEAD: 'origin/main: merges cleanly; #34677 (shares AppHeader.tsx): merges cleanly; VERDICT clean exit 0'. PR check-runs on cc8c33dbc when this report was written: 51 runs, 38 success and 13 skipped, none failed or pending. Required contexts: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate and Check Changeset all success; Build Core skipped (the selector skipped it).",
"dogfood_battery": "n/a: the PR title has no `!` and there is no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34591/comments (this report, via post-stamped and the relay). Also one git push (fast-forward 242f43777..cc8c33dbc), which is not a REST write. No PR-body edit, no label write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"merge_forward_paragraph": "Merge-forward (cc8c33dbc): merged origin/main 6091b645f (45 first-parent commits) into 242f43777 with no text conflicts, and the PR's delta is unchanged (14 files, +778/-407, no locale keys). Main's AppHeader.tsx hunks (phone back-to-home slot, AssistantTopBarButton, approvals in the inbox panel, sm-only group dividers) do not touch the avatar-menu org entries or the header-left org mount. The 26 AppHeader/WorkspaceSwitcher/CurrentOrganizationIndicator files pass 216/216, app-shell type-check and lint are green, and dispatch-gates reconciles 38/38.",
"deviations": "I pushed the merge commit before the local test run, not after it as step 4 ordered. AGENTS.md (push before minutes-long steps) outranks the dispatch order, and overlap-check was clean before the push. git merge auto-committed without the trailer pair, so I amended that unpushed merge commit's message locally before the push to add Claude-Session plus Co-authored-by (no history was rewritten on the remote)."
}
PR #34697 merged at 2026-11-17T13:47Z (Fixes #34591) after one infrastructure ejection (attestation upload timeout; re-queue 6949240478). Delivered as ruled (6937513776; items 4 and 5 cut): the avatar menu's organization entries follow the served deployment posture: single-tenant shows none and no switcher; multi-organization shows "My Organizations" and "Create organization", with "Switch organization" only at two or more memberships; cloud-managed hides create. The header-left switcher moved into the avatar menu (inline rows below the phone breakpoint, found and fixed in the live readings 6945939831). Seat ruling B: on walled postures CurrentOrganizationIndicator names the active organization read-only at any membership count. L1 delta ACCEPTs through 6947294083. pm:dispatched and lease:o3-D removed.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
pm:queue· 2026-11-17T03:23Z⛔ Not a claim.
objectstack-fleet commentedon Nov 17, 2026
repo:cloud#3 · os-warren · session_01JQwxbZqfEd7pcckjz3pGqn
Cloud consumer note. 2026-11-17T03:30Z objectstack-ai/cloud#4792 item 1 (a single-organization manager lands in the environment) is built as draft PR objectstack-ai/cloud#4804, and the seat holds its landing until a manager in the environment has a working way back to Cloud. That needs this card's 「组织管理」 entry and #34622 (the environment's existing Cloud links open the origin, which the new landing bounces back). One control-plane-declared deep Cloud address can serve both cards. Request: assist — priority read from the owning lane, since both are p1 and unclaimed.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Ruled · 2026-11-17T03:41Z
The maintainer, in the os-support-ai fleet project (thread "Run objectstack seat 3 console experience") at 2026-11-17T03:40Z, answered the seat's four-question pack (reviewed first by an independent fable agent at his request) with one word, verbatim: 「同意」 — i.e. every recommendation below.
Ruled: A — org menu items follow the served deployment signals (
features.cloudManaged,features.tenancyPosture,multiOrgEnabledfromGET /auth/config); no Setup override key (item 5 is dropped; this supersedes the maintainer's earlier 「这些应该在设置中都可以配置」); no new menu extension point (item 4): the cloud layer adds its items through the existingmanifest.navigationContributionspath (setup-nav.contributions.ts). Single-org member management stays reachable at Setup → Organization (ruling 6384629949 on #25347). Item 3 (movingWorkspaceSwitcherinto the avatar menu) is checked against ADR-0105 before building; a conflict comes back to the maintainer.Prior rulings: 6341690661 (#25083), 6384629949 (#25347).
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Claim: PM loop round 1 · 2026-11-17T03:45Z
Session:
session_01WGufzi3ezPzTysQPDEjmVzAccount:
os-support-aiBranch:
claude/issue-34591-org-menu-postureWorktree:
objectstack-issue-34591Domain:
domain:uiSeat:
repo:objectstack#3File surface:
ui/packages/app-shell/src/layout/AppHeader.tsx(avatar menu + header-left switcher mount),ui/packages/app-shell/src/layout/WorkspaceSwitcher.tsx,ui/packages/app-shell/src/hooks/**(a posture read besideuseTenancyPosture),ui/packages/auth/src/types.ts(the servedfeatures.cloudManagedfield),ui/packages/i18n/src/locales/**, root.changeset/Container & model:
M,mode:subagent,model: TIER_DEFAULT (no path-derived mandate on these paths),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack ui/packages/app-shell AppHeader.tsx (org items gate only on hasOrgSection :604, so a single-tenant deployment shows My Organizations / Create organization) | none | every single-tenant and cloud-managed deployment's usersThread-read: 6937513776
Premise: holds as narrowed by the ruling (area grep at f4a2d14:
hasOrgSectionAppHeader.tsx:604, org items :1310/:1320,WorkspaceSwitcher:936;cloudManagedis served in packages/spec/src/api/auth-endpoints.zod.ts:311 and kernel public-auth-features.ts:286 but not yet typed in ui/packages/auth/src/types.ts;tenancyPostureread by useTenancyPosture;multiOrgEnabledtyped)Serial constraints cleared:
AppHeader.tsx also carries #34593 (in flight), #34589 and #34596 of this area: overlap-check before every push, the queue arbitratesPre-claim lane:
domain:ui— every path is underui/**; the deployment signals are already served, no server or spec changePre-claim deps: none named on the card
Prior rulings read: ruling 6937513776 on this card (binding, below); 6341690661 (#25083), 6384629949 (#25347); ADR-0105 read for item 3 — its only UI line is "UI affordances (org switcher as write context + "all my orgs" read views) must land with Phase 1": it requires the switcher to exist in group posture, not where it sits, so moving it into the avatar menu does not conflict as long as group posture still reaches it; thread: 2 comments + ruling
Ruling-ref: 6937513776 — "org menu items follow the served deployment signals (
features.cloudManaged,features.tenancyPosture,multiOrgEnabledfromGET /auth/config); no Setup override key (item 5 is dropped …); no new menu extension point (item 4): the cloud layer adds its items through the existingmanifest.navigationContributionspath (setup-nav.contributions.ts). Single-org member management stays reachable at Setup → Organization"Scope: items 1 (UI reads the served signals only), 2 and 3. Cut by the ruling: item 4 (cloud items via the existing
navigationContributions, cloud card) and item 5 (no Setup key). Leaseo3-D(seat post #34584). Part of epic #34571.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
os-dev-report
{ "issue": 34591, "status": "done", "branch": "claude/issue-34591-org-menu-posture", "pr": "https://github.com/objectstack-ai/objectstack/pull/34697", "session": "session_01WGufzi3ezPzTysQPDEjmVz", "premise_still_valid": true, "summary": "CONTINUATION of the claim after a container restart. Inherited commit 9105f2d0b (useOrgMenuPosture hook, AppHeader avatar-menu gate, WorkspaceSwitcher split) was pushed as WIP, reviewed hunk by hunk and kept with one fix: its submenu wrapped content in DropdownMenuPortal, which @object-ui/components does not export (the multi-membership menu would have rendered an undefined element); it now uses the exported submenu primitives only, like ViewTabBar, and Chinese labels in code comments were rewritten in English (ui/AGENTS.md rule -1). The avatar menu reads only served signals (features.multiOrgEnabled default-on, features.cloudManaged, features.tenancyPosture): single-tenant shows no org entry and no switcher; multi-org shows My Organizations and Create organization, Switch organization only at 2+ memberships; cloud-managed hides Create. The header-left WorkspaceSwitcher moved into the avatar menu as a submenu (still labelled as the write context under group posture, ADR-0105 Risks paragraph satisfied; no ruling text fixes its placement); the top bar keeps only the mobile shell's native-switcher button. features.cloudManaged was already typed in ui/packages/auth/src/types.ts on this base, so that file is untouched. Items 4 and 5 cut per ruling 6937513776, quoted in the PR; Fixes #34591. This run wrote the tests (new posture matrix in the AppHeader.myOrganizations shared harness; WorkspaceSwitcher.test now covers the menu) and updated six existing org tests to the new placement.", "tests": "head 5de170e45. Targeted: pnpm --dir ui exec vitest run --maxWorkers=2 over 10 files (AppHeader.myOrganizations, .singleMembershipOrg, .unsavedEditsLeave-13231, .organizationNoun-12851, WorkspaceSwitcher, .noActiveOrg-12698, .organizationNoun-12851, .nativeConnectionSwitcher, CurrentOrganizationIndicator, .noActiveOrg-12698): Test Files 10 passed (10), Tests 62 passed (62), lock VERDICT command-exit 0. First run before the portal fix: 2 failed in AppHeader.organizationNoun-12851 ('No DropdownMenuPortal export'), which exposed the inherited defect. Type check: pnpm --filter @object-ui/app-shell type-check (src + tsconfig.test.json) VERDICT command-exit 0, no error TS. Ablation (committed head, scripts/ablation-replace.mjs, anchor 1->0, blob moved, restored blob == HEAD and git diff HEAD empty; suite imports source so no dist leg): orgMenuEntries ignoring multiOrgEnabled -> 2 failed/11 passed (single-tenant, cloud-managed single-tenant); createOrganization ignoring cloudManaged -> 1 failed/12 passed (cloud-managed). Declared narrowing: full @object-ui/app-shell suite (~2285 files) started locally, stopped after ~50 min on the shared box with no verdict and no failure printed: NOT MEASURED locally, left to CI Test UI.", "gates": "dispatch-gates --commands (repo objectstack-ai/objectstack, tree 5de170e45): 38 derived; 38 run locally, each exit 0 captured before any pipe. Notables: pnpm --dir ui exec vitest run scripts/ Test Files 171 passed | 2 skipped, Tests 5077 passed | 2 skipped; pnpm check:type-check-debt first run exit 3 PREREQUISITE NOT MET (lock queue-timeout behind this run's own suite), rerun under the lock: 'check-type-check-coverage: OK — 128/131 workspace packages type-checked', '--re-measure: OK'; check:nul-bytes OK; check:published-files OK. --ran reconciliation on the first record: 38 derived, 37 run, 1 UNRUN (check:type-check-debt), then closed by the rerun above. ui pnpm check:new-line-citations: 0 new. overlap-check --branch=HEAD at final head: VERDICT clean exit 0 (origin/main a34eb0716a, #34677, #34665). PR check-runs at report time (head 5de170e45): Check Changeset, Governed Surface Queue Guard, Lint · *, Type Check · * all in_progress; opt-in/queue rows skipped. CI convergence is the PM's.", "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no (no narrowing arm)", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/34697/assignees os-support-ai, one stroke, run 44036532149, read-back identical 9805 bytes); post-stamped issue comment on #34591 (this report). git push x4 not counted.", "open_questions": [ { "question": "On a walled posture (isolated/group), a member of 2+ organizations no longer sees the active organization's name in the top bar (the old switcher showed it); it now appears under My Organizations in the avatar menu. Should CurrentOrganizationIndicator (outside this claim's file surface) also name the organization read-only at 2+ memberships?", "options": [ "A: keep as shipped — name under My Organizations only; the bar's left stays product mark + app switcher as the maintainer asked", "B: follow-up card: CurrentOrganizationIndicator renders read-only at any membership count on walled postures (one-line rule change plus its tests), so scoped lists always say which org they are scoped to" ], "recommendation": "B, because objectui#5287 established that a walled user must see which organization lists are scoped to without opening anything, and a read-only name is not a switcher, so it does not contradict 「左上角应该是切换应用的」; small XS card in domain:ui" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — organization.switcher.manageMembers has no consumer after this change (dead key in ten packs; check:i18n-dead-keys is report-only)", "carrier: none · noted, not filed — CurrentOrganizationIndicator.tsx docblock still describes WorkspaceSwitcher as the header's multi-membership switcher; comment drift only, outside the file surface", "deviation: the changeset commit was pushed before its overlap-check; the check ran right after at the same head and at final head: VERDICT clean exit 0" ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Claim amendment · 2026-11-17T07:13Z
Amends claim 6937604379 (area o3-D, same session, same branch
claude/issue-34591-org-menu-posture). The File surface addsui/packages/app-shell/src/layout/CurrentOrganizationIndicator.tsxand its tests (ui/packages/app-shell/src/layout/__tests__/CurrentOrganizationIndicator*.test.tsx).Seat ruling (repo:objectstack#3 seat, decided under an existing rule, not a maintainer question): moving the switcher into the avatar menu must not leave a walled-posture member of 2+ organizations without the active organization's name on screen (objectui#5287: a scoped list says which organization it is scoped to). So
CurrentOrganizationIndicatornames the active organization read-only at any membership count on walled postures, where it renders today (not the top-left app-switcher slot); a read-only name is not a switcher, so 「左上角应该是切换应用的」 still holds. Done inside this card so PR #34697 lands no regression. Everything else in 6937604379 stands.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
os-dev-report
{ "issue": 34591, "status": "done", "branch": "claude/issue-34591-org-menu-posture", "pr": "https://github.com/objectstack-ai/objectstack/pull/34697", "session": "session_01WGufzi3ezPzTysQPDEjmVz", "premise_still_valid": true, "summary": "FIX ROUND, new head 808df9a0e (one commit on 5de170e45, no merge, no rebase). (1) Lint UI red fixed: the unused waitFor import in AppHeader.singleMembershipOrg.test.tsx is dropped. (2) Seat ruling B (claim amendment on the card): CurrentOrganizationIndicator now names the server-active organization read-only at any membership count on walled postures (isolated/group), where it already renders (not the app-switcher slot). The guard changed from exactly one membership to at least one; single/absent/unrecognised posture, no active organization and the mobile-shell case still render nothing. Docblock rewritten: it no longer calls WorkspaceSwitcher the header's switcher. Pins: CurrentOrganizationIndicator.test.tsx's old negative 'multiple memberships: that is the switcher's case' (it pinned the reversed rule) is replaced by two positives at two memberships (isolated: names the ACTIVE org and stays control-free; group: names the write target). The composed multi-membership case in AppHeader.singleMembershipOrg now asserts the indicator names the org beside the avatar-menu switcher. AppHeader.tsx comments and the changeset sentence updated to match. Size XS, every file inside the amended surface. (3) main not merged: overlap-check clean, and main's only overlap with this diff is AppHeader.tsx, which merges cleanly. (4) PR body updated through the relay: the seat ruling, labelled 'Seat ruling (repo:objectstack#3)', plus the indicator change, tests, ablation and fix-round verification. Attribution lines stay first and the signed trailer stays last.", "tests": "head 808df9a0e. First try: 10 files failed to load ('Failed to resolve import @objectstack/spec/system'). The worktree is new and had no build. After the dependency closure build (pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build, lock VERDICT command-exit 0): pnpm --dir ui exec vitest run --maxWorkers=2 over CurrentOrganizationIndicator, CurrentOrganizationIndicator.noActiveOrg-12698, AppHeader.singleMembershipOrg, AppHeader.myOrganizations, AppHeader.organizationNoun-12851, AppHeader.unsavedEditsLeave-13231, WorkspaceSwitcher, WorkspaceSwitcher.noActiveOrg-12698, WorkspaceSwitcher.organizationNoun-12851, WorkspaceSwitcher.nativeConnectionSwitcher gave 'Test Files 10 passed (10)', 'Tests 63 passed (63)', lock VERDICT command-exit 0 (62 before: one negative replaced by two positives). Ablation, one run on the committed head with scripts/ablation-replace.mjs and a trap restore: the guard was put back to '!== 1' (anchor 1->0, blob 3dfcfaac1c8e->06f144b2cbd9). Exactly the three new two-membership pins went red: '3 failed | 12 passed (15)'. Restored blob == HEAD blob 3dfcfaac1c8e and git diff HEAD is empty. The suite imports source, so no dist leg. Type check: pnpm --filter @object-ui/app-shell run type-check (both programs), lock VERDICT command-exit 0, 0 'error TS'. Full app-shell suite not run locally (declared narrowing, as in round 1); CI Test UI is green on 808df9a0e.", "gates": "Lint: pnpm --filter @object-ui/app-shell run lint exit 0, '0 errors' (warnings only, pre-existing). Control: the old head's AppHeader.singleMembershipOrg.test.tsx run through the same eslint via stdin exits 1 with '29:26 error waitFor is defined but never used object-ui/no-unused-imports'. dispatch-gates --commands --repo objectstack-ai/objectstack at 808df9a0e: 38 derived, 38 run, each exit 0, captured before any pipe. Notables: vitest run scripts/ 'Test Files 171 passed | 2 skipped', 'Tests 5077 passed | 2 skipped'; check:type-check-debt '--re-measure: OK'; check:nul-bytes OK. The derivation warned STALE TREE: 32 commits behind origin/main, with 8 gate scripts changed upstream and none of this diff's files. --ran reconciliation: '38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN'. ui check:new-line-citations: 0 new. Control-byte self-scan on the changed files: no hits. overlap-check --branch=HEAD at 808df9a0e: VERDICT clean exit 0 (origin/main e47c1cb2f7; #34723 and #34677 share AppHeader.tsx and merge cleanly). PR check-runs on 808df9a0e at report time: 55 runs, 0 failure. Success: Lint UI, Lint & Repo Gates, all Lint ·, TypeScript Type Check, all Type Check ·, Type Check UI, Test UI (shards and aggregate), Test Core, Build UI Deps, Build & E2E UI, Live E2E UI, Governed Surface Queue Guard, Dogfood Regression Gate, Check Changeset. Re-running after the body edit and in_progress: Check Changeset and PR-body guards. Opt-in and queue rows: skipped.", "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no (no narrowing arm)", "mcp_calls": "0", "api_writes": "2 — relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/34697 (PR body, run 44053341564, read-back 12830 bytes sent = 12830 stored, identical); post-stamped issue comment on #34591 (this report). git push x1 not counted.", "open_questions": [ { "question": "os-dev.md says a subagent writes the PR body only in pr_create and never PATCHes it (the seat writes later bodies). This dispatch ordered the body update through the relay, so this run sent issue_patch on #34697. Should the file carry an exception for a fix round the seat explicitly delegates?", "options": [ "A: keep the rule; the seat sends body edits itself and the dev hands it the drafted body file", "B: add a fix-round exception: a dev may send issue_patch on its own PR when the dispatch names it" ], "recommendation": "A, because the file wins over a dispatch word, and handing over the drafted file costs the seat one relay call. This run followed the explicit dispatch order and records it here instead of choosing a side silently." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — OrgBadge.tsx docblock still calls WorkspaceSwitcher the multi-membership bar surface and the indicator 'exactly one membership'. Comment drift only, outside the amended file surface.", "carrier: none · noted, not filed — on a walled posture the active org name now shows twice: in the bar indicator and under 'My Organizations' in the avatar menu (kept, it sits beside the entries that act on it). Polish only." ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Claim amendment · 2026-11-17T09:17Z
From L1-b REWORK 6943845699 on PR #34697 (M2): the file surface adds the eight existing tests the change edits, because their pins describe the org switcher that moves into the avatar menu:
ui/packages/app-shell/src/layout/__tests__/AppHeader.myOrganizations.test.tsxui/packages/app-shell/src/layout/__tests__/AppHeader.organizationNoun-12851.test.tsxui/packages/app-shell/src/layout/__tests__/AppHeader.singleMembershipOrg.test.tsxui/packages/app-shell/src/layout/__tests__/AppHeader.unsavedEditsLeave-13231.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.nativeConnectionSwitcher.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.noActiveOrg-12698.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.organizationNoun-12851.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.test.tsxClause-②: unchanged. Metadata-protocol: unchanged.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Claim amendment · 2026-11-17T09:17Z
Amends claim 6937604379 (area o3-D, same session, same branch
claude/issue-34591-org-menu-posture). The File surface names, explicitly, the existing test files PR #34697 edits to follow the switcher into the avatar menu and the ruling-B indicator change (requested by L1 6943845699):ui/packages/app-shell/src/layout/__tests__/AppHeader.myOrganizations.test.tsxui/packages/app-shell/src/layout/__tests__/AppHeader.organizationNoun-12851.test.tsxui/packages/app-shell/src/layout/__tests__/AppHeader.singleMembershipOrg.test.tsxui/packages/app-shell/src/layout/__tests__/AppHeader.unsavedEditsLeave-13231.test.tsxui/packages/app-shell/src/layout/__tests__/CurrentOrganizationIndicator.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.nativeConnectionSwitcher.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.noActiveOrg-12698.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.organizationNoun-12851.test.tsxui/packages/app-shell/src/layout/__tests__/WorkspaceSwitcher.test.tsxEverything else in 6937604379 and its earlier amendment stands.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
os-dev-report
{ "issue": 34591, "status": "done", "branch": "claude/issue-34591-org-menu-posture", "pr": "https://github.com/objectstack-ai/objectstack/pull/34697", "session": "session_01WGufzi3ezPzTysQPDEjmVz", "premise_still_valid": true, "summary": "Live-readings round for L1 6943845699 M1. The head CHANGED: 808df9a0e -> c0c5c134c -> 242f43777. I booted examples/app-showcase (`objectstack dev --seed-admin`, fresh SQLite for each posture) on :38591 under REAL tenancy configuration: single = OS_TENANCY_POSTURE unset; isolated and group = OS_TENANCY_POSTURE plus OS_AUTH_MEMBERSHIP_POLICY=invite-only plus OS_PLATFORM_OWNER_EMAIL. I drove the PR-source Vite console on :38592 with Playwright/Chromium. Readings (a), (b) in en and zh-Hans, (c) under isolated and group (submenu opens; the unsaved-edit confirm on Cancel and on OK; reload to root; the indicator names the new org), and (d) all hold. Only (d) is a stand-in: a route intercepts GET /auth/config and forces cloudManaged true. Reading (e) FAILED on 808df9a0e: at 375 px the switch submenu opened off-screen (box x=-124, width 240). I fixed it in scope in c0c5c134c: below the phone breakpoint the rows render inline. The re-read then found the group hint widening the phone menu to 442.6 px, and 242f43777 fixed that (max-w-60). Both fixes are pinned in WorkspaceSwitcher.test.tsx. The readings went to PR comment 6945939831; the screenshots (22 PNGs), readings.txt, live-readings.mjs and boot.sh are under /mnt/project-files/objectstack-seat3/34591-live/.", "tests": "At 242f43777:\n- `pnpm --dir ui exec vitest run --maxWorkers=2` over the 10 targeted files from the last round plus AppHeader.phoneTargets-29075: `Test Files 11 passed (11)`, `Tests 74 passed (74)`, lock `VERDICT command-exit 0`. WorkspaceSwitcher.test.tsx has 11 tests, 3 of them new phone-width pins: at 375 px there is no sub-trigger, the label and rows are inline, and a row switches; at 375 px under group the hint is width-bounded; control: at 1024 px the sub-trigger is there and there is no inline label.\n- Live before/after numbers are in readings.txt: phone menu box x=111 width 256 and switch rows x=116 width 246, both inside 375 px, under isolated and group. A tap on the other row switched the server-active org to Second Org under both postures.\n- No ablation: the fix is a new branch and its pin. The before state is the live reading at 808df9a0e, red (off-screen).", "gates": "Local run at 242f43777, each exit code captured before any pipe and recorded in the scratch gates-results.txt:\n- targeted tests: exit 0.\n- `pnpm --filter @object-ui/app-shell run lint`: exit 0 (0 errors, warnings pre-existing).\n- `pnpm --filter @object-ui/app-shell run type-check`: exit 0, 0 error TS. It ran after `turbo run build --filter=@object-ui/app-shell^...`; the first attempt in this fresh worktree exited 2 with TS2307 because no @object-ui dist existed yet.\n- `pnpm --dir ui run check:new-line-citations`: 0 new.\n- `node scripts/pm/dispatch-gates.mjs --commands`: 38 derived, 38 run, all exit 0, including `pnpm --dir ui exec vitest run scripts/`: 171 passed | 2 skipped files, 5077 passed | 2 skipped tests. The derivation warned the tree is 35 commits behind origin/main; main was not merged because there is no conflict.\n- `--ran`: 38 of 38 accounted for, 0 NOT-MEASURED, 0 UNRUN. The `--ran` file lists commands only; the exit codes are in gates-results.txt.\n- `overlap-check --branch=HEAD`: `VERDICT clean exit 0` against origin/main, #34723 and #34677, before each of the 2 pushes.\nPR check-runs on 242f43777 when this was read: 51 total, 38 success, 13 skipped, 0 failed. Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (aggregate, with shards 1 to 9 of 16 listed), Build & E2E UI, Live E2E UI and Dogfood Regression Gate are all success; Build Core and the matrix placeholders are skipped.", "dogfood_battery": "n/a — the PR title has no `!` and the claim's Clause-② line has no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay writes through post-stamped (fleet-write dispatch): POST issues/34697/comments (6945939831, the readings) and POST issues/34591/comments (this report). Not REST: 2 `git push` to claude/issue-34591-org-menu-posture (c0c5c134c, 242f43777). No labels, no PR body edit, no assignee or claim write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — at 375 px CurrentOrganizationIndicator shows only the org badge, because the name is hidden below `sm`. This is the indicator's existing narrow rendering, not changed by this PR, and the name is in the avatar menu's My Organizations sub-line.", "carrier: none · noted, not filed — the CRM example refuses walled postures (it does not declare @objectstack/organizations), and a showcase walled boot needs OS_AUTH_MEMBERSHIP_POLICY plus OS_PLATFORM_OWNER_EMAIL. Both are documented refusals that name their fix, not defects.", "carrier: the area (PR body owner) · the PR body's Tests and Verification sections still describe 808df9a0e; PR comment 6945939831 is the record for c0c5c134c and 242f43777." ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
os-dev-report
{ "issue": 34591, "status": "done", "branch": "claude/issue-34591-org-menu-posture", "pr": "https://github.com/objectstack-ai/objectstack/pull/34697", "session": "session_01WGufzi3ezPzTysQPDEjmVz", "premise_still_valid": true, "summary": "MERGE-FORWARD ROUND, new head cc8c33dbc (one merge commit: parents 242f43777 + origin/main 6091b645f, 45 first-parent main commits, no text conflicts, no os-regen-pending; pushed as a fast-forward, no rebase, no force). The PR's own delta is unchanged: dispatch-gates reads the same 14 paths, +778/-407, and the PR still adds no locale keys. Semantic read of main's AppHeader.tsx hunks (4db375054, a931063df, 13c62a626, 26cab1550): none of them touches the avatar menu, the org entries or the header-left WorkspaceSwitcher / CurrentOrganizationIndicator mount. The phone hunk swaps only the sidebar-trigger slot for a back-to-home link (app-bar-phone-home) and removes the phone title's margin; the indicator still mounts after the product mark and keeps its name hidden below sm (badge only), so the phone bar draws the same org badge as at 242f43777. The other hunks (the AI button becoming AssistantTopBarButton, pending approvals passed to InboxPopover, group dividers only from sm) are outside the org surface. No conflict with the ruling (single-tenant: no org entries; switcher in the avatar menu; ruling B indicator). The worktree was clean and has been removed.", "tests": "At cc8c33dbc, after `pnpm --filter '@object-ui/app-shell^...' build` (lock VERDICT command-exit 0): `pnpm --dir ui exec vitest run --maxWorkers=2` over 26 files, which are the r2 eleven (CurrentOrganizationIndicator{,.noActiveOrg-12698}, AppHeader.{singleMembershipOrg,myOrganizations,organizationNoun-12851,unsavedEditsLeave-13231,phoneTargets-29075}, WorkspaceSwitcher{,.nativeConnectionSwitcher,.noActiveOrg-12698,.organizationNoun-12851}) plus the 15 other AppHeader*.test.tsx main touched (aboutBuild-12970, appBarLeftGroup-12461, appIdentity-12201, centeredSearch-12472, crumbFold-12702, dashboardPageNoCrumb-12526, deferredChromeReads-12980, designInStudioNeedsAuthoring-10899, editAppFollowsPackagePosture-12615, homeMark-12605, hostSingleApp-12913, inboxVariant, pageRouteNoAuthoringHandles-12198, pageTitleByName-29416, sidebarTrigger-12429). Result: Test Files 26 passed (26), Tests 216 passed (216), lock VERDICT command-exit 0. `pnpm --filter @object-ui/app-shell run type-check` (tsc --noEmit plus tsc -p tsconfig.test.json): lock VERDICT command-exit 0. app-shell `pnpm run lint`: exit 0, 0 errors (5502 warnings, all warnings). ui `pnpm check:new-line-citations`: 0 new citations, exit 0. No ablation: the merge changes no behaviour this PR pins.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at cc8c33dbc derived 38 commands. All 38 were run, with exit codes captured before any pipe. 37 exited 0 on the first pass. check:query-options-erasure hit my 300 s runner timeout (exit 124), was re-run with a 570 s budget and exited 0 ('ratchet holds: 30 unswept non-test site(s) in 13 file(s), none new'). The vitest family `pnpm --dir ui exec vitest run scripts/` ran under the lock: 171 passed, 2 skipped (173 files), 5077 tests passed. `--ran` reconciliation: '38 derived famil(ies) accounted for, 38 run, 0 NOT-MEASURED (a DERIVED zero, all 38 recorded an exit code)'. overlap-check --branch=HEAD: 'origin/main: merges cleanly; #34677 (shares AppHeader.tsx): merges cleanly; VERDICT clean exit 0'. PR check-runs on cc8c33dbc when this report was written: 51 runs, 38 success and 13 skipped, none failed or pending. Required contexts: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate and Check Changeset all success; Build Core skipped (the selector skipped it).", "dogfood_battery": "n/a: the PR title has no `!` and there is no (narrowing) arm", "mcp_calls": "0", "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34591/comments (this report, via post-stamped and the relay). Also one git push (fast-forward 242f43777..cc8c33dbc), which is not a REST write. No PR-body edit, no label write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "merge_forward_paragraph": "Merge-forward (cc8c33dbc): merged origin/main 6091b645f (45 first-parent commits) into 242f43777 with no text conflicts, and the PR's delta is unchanged (14 files, +778/-407, no locale keys). Main's AppHeader.tsx hunks (phone back-to-home slot, AssistantTopBarButton, approvals in the inbox panel, sm-only group dividers) do not touch the avatar-menu org entries or the header-left org mount. The 26 AppHeader/WorkspaceSwitcher/CurrentOrganizationIndicator files pass 216/216, app-shell type-check and lint are green, and dispatch-gates reconciles 38/38.", "deviations": "I pushed the merge commit before the local test run, not after it as step 4 ordered. AGENTS.md (push before minutes-long steps) outranks the dispatch order, and overlap-check was clean before the push. git merge auto-committed without the trailer pair, so I amended that unpushed merge commit's message locally before the push to add Claude-Session plus Co-authored-by (no history was rewritten on the remote)." }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Closed by merge · 2026-11-17T14:16Z
PR #34697 merged at 2026-11-17T13:47Z (
Fixes #34591) after one infrastructure ejection (attestation upload timeout; re-queue 6949240478). Delivered as ruled (6937513776; items 4 and 5 cut): the avatar menu's organization entries follow the served deployment posture: single-tenant shows none and no switcher; multi-organization shows "My Organizations" and "Create organization", with "Switch organization" only at two or more memberships; cloud-managed hides create. The header-left switcher moved into the avatar menu (inline rows below the phone breakpoint, found and fixed in the live readings 6945939831). Seat ruling B: on walled postures CurrentOrganizationIndicator names the active organization read-only at any membership count. L1 delta ACCEPTs through 6947294083.pm:dispatchedandlease:o3-Dremoved.