Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(auth): label the external organization role objectstack#25515 added, so the console type-checks against objectstack main (objectui#13427) - #13429

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-13427-external-role-label
Oct 23, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-13427-external-role-label

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Closes #13427
Clause-②: yes (follows objectstack#25515's widening: a new ORG_ROLE_EXTERNAL export and ORG_ROLE_LABELS row in @object-ui/auth, a new organization.roles.external key in each shipped pack; no acceptance set of objectui's own widens)

What changed

objectstack#25515 (objectstack#25233 stage 1, ruling of record 6355206139, letter B) added external to @objectstack/spec's BUILTIN_MEMBERSHIP_ROLES. ORG_ROLE_LABELS is a Record over that vocabulary, so the console stopped type-checking against objectstack main (TS2741 at packages/auth/src/org-roles.ts:67), and objectstack's Console Pin Gate and Spec Shape Gate went red. This PR makes the console know the role:

  • packages/auth/src/org-roles.ts: a new ORG_ROLE_EXTERNAL export, its label row (organization.roles.external, "External"), and the any-issuer rule for invitations (below).
  • Every pack in packages/i18n/src/locales/ carries organization.roles.external. zh is 外部成员, ja 外部メンバー and es Externo, the words objectstack's own sys_member.role option uses; de, fr, ko, pt, ru and ar follow each pack's word for member.

The two choices the card asked for

  1. Where the role shows. ORG_ROLES stays the spec list unfiltered, so external appears in the invite dialog and in the members page's role menu wherever the spec lists it. The invite offer for an issuer below admin grade (a delegated admin, or a caller whose membership has not loaded) becomes member and external. That mirrors the framework's invitation cap: in the spec's grant table (INVITATION_ROLE_GRANTORS) both rows read 'any', because external confers less than a member (ruling E3). An owner or admin may also set it from the members page, as better-auth's update-member-role allows. Two server refusals are not pre-empted, because the screen cannot see what they read: a role list mixing external with another role (E5; the menu sets one role) and re-roling a member who is placed in a business unit (E6).
  2. Where it sits on the grade ladder. At member grade, as objectstack's own cap ladder (invitation-role-cap.ts) grades it. The console ladder answers only "is this an administrative grade", so external never unlocks invite, remove, cancel or re-role. That it reaches less than a member is enforced server-side; a rung below member here would have no reader.

Why the pin does not move, and the literal

Importing the spec's MEMBERSHIP_ROLE_EXTERNAL needs objectui's own .objectstack-sha past objectstack#25515. Any such pin also carries objectstack#25483, PR1 of objectstack#25251, whose PR2 (spec lane) has not landed; this project keeps objectui's pin before #25483 until it does. So the pin stays at 915e9404, and the console compiles against both vocabularies:

  • ORG_ROLE_EXTERNAL = 'external' is spelled locally, with a docblock pointing at objectstack#25515.
  • ORG_ROLE_LABELS is typed Record<OrgRole | typeof ORG_ROLE_EXTERNAL, …>. Against main the union is OrgRole itself, so the table stays exhaustive there.
  • A tripwire test (spells external itself only while the pin predates objectstack#25515) goes red on the pin move that brings #25515. Its message lists the follow-up: import the constant, drop the union, add external to the role lists that InviteMemberDialog.roleCap.test.tsx and org-i18n-holdouts-4474.test.tsx expect, and delete the tripwire.

Tests

  • org-roles.test.ts: the external label row; external grades as member and below admin; an external actor may re-role nobody; an admin may re-role an existing external; and the invite offer equals what the spec's grant table admits, for owner, admin and every below-admin issuer. That last pin holds at either spec, and against main it asserts ['member', 'external'] for a delegate.
  • org-i18n-holdouts-4474.test.tsx: every pack defines organization.roles.external, and an external member's badge reads 外部成员 in zh and External in en.

Verification

Measured in this container, in the worktree on this branch:

  • Against objectstack main 5ea211cc (the pin built at that commit, nothing committed): turbo run build --filter=@object-ui/auth --filter=@object-ui/i18n, then turbo run type-check for @object-ui/console, @object-ui/auth, @object-ui/app-shell, @object-ui/i18n: exit 0, 39/39 tasks (console runs tsc --noEmit and tsc -b tsconfig.node.json, app-shell its test tsconfig too). vitest run on org-roles.test.ts plus console/organizations/__tests__/: 159 passed, 6 failed, all six expected. The tripwire is one of them. The other five are the existing literal role lists, whose received values show the new behaviour: owner offered 5 roles, delegate and unloaded offered ['member', 'external'], and the zh and en dropdowns ending in 外部成员 and External. Ablation on the same build: restoring the old below-admin offer ([ORG_ROLE_MEMBER]) turns offers exactly what the spec grant table admits red.
  • At the pin 915e9404 (after pnpm run setup; objectstack-pin status reads the cache at the pin): the same build and type-check, exit 0, 39/39 tasks; vitest run packages/auth/src/__tests__/ packages/app-shell/src/console/organizations/ packages/i18n/ apps/console/src/pages/system/: 168 files, 2019 passed, 13 skipped, 0 failed. eslint on the changed files: 0 errors (17 warnings, all pre-existing any lines in the holdouts test's mocks).
  • Repo checks, each exit 0: check:i18n-keys, check:i18n-drift, check:i18n-dead-keys, check:changeset-claims, check:pending-changeset-literals, check:spec-symbols, check:new-line-citations, check:control-bytes, check:installed-pin-claims, check:vi-mock-specifiers, check:vi-mock-inherit, check:vi-mock-override-shape, check:test-path-roots. check:readme-exports answered exit 1 as a prerequisite, not a verdict: 27 packages were unbuilt, so its population collapsed below its floors. CI runs it after the build.

Notes

Session: https://claude.ai/code/session_01JtDJkBUiZnD9NWnDqYuhq7


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01JtDJkBUiZnD9NWnDqYuhq7

…ed, so the console type-checks against objectstack main (objectui#13427)

objectstack#25515 (objectstack#25233 stage 1, ruling 6355206139 letter B)
added `external` to @objectstack/spec's BUILTIN_MEMBERSHIP_ROLES. The
exhaustive ORG_ROLE_LABELS table no longer type-checked there (TS2741 at
packages/auth/src/org-roles.ts:67), which turned objectstack main's Console
Pin Gate and Spec Shape Gate red.

- @object-ui/auth exports ORG_ROLE_EXTERNAL and labels it
  (organization.roles.external, "External"); every locale pack carries
  the key (zh 外部成员, as the server's sys_member.role option reads).
- An issuer below admin grade is offered the roles any issuer may confer,
  member and external, as the spec's invitation grant table reads (E3).
- external grades as member on the ladder, as objectstack's cap does, so
  it never unlocks an administrative affordance.

objectui's .objectstack-sha stays at 915e9404, before objectstack#25483,
until objectstack#25251's spec PR lands. So the role is spelled locally
and ORG_ROLE_LABELS is keyed by OrgRole | typeof ORG_ROLE_EXTERNAL, which
compiles against both vocabularies; a tripwire test goes red on the pin
move that brings #25515 and lists the swap to the spec constant.

Claude-Session: https://claude.ai/code/session_01JtDJkBUiZnD9NWnDqYuhq7
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 1 address(es) in this pull request's own prose name a tree it replaced

Each was read from a tree this change itself moves, so a reader who follows it lands somewhere else. ⛔ Nothing here blocks and nothing here says the sentence is false — the question asked is arithmetic: does this diff move the line that number points at?

  • in this body, packages/auth/src/org-roles.ts:67 — this change rewrites packages/auth/src/org-roles.ts:67

    ORG_ROLE_LABELS is a Record over that vocabulary, so the console stopped type-checking against objectstack main (TS2741 at packages/auth/src/org-roles.ts:67), and objectstack's Console Pin Gate and Spec Shape Gate went red.

⛔ The repair is not to correct the number. Changing :246 to :274 is true today and born false again on the next insertion — objectui#9509 states that before anything else. Bind the number to the tree it was read from (`:246` at `b8a006883d`, `:274` at this head), which cannot re-stale because each number names its own tree; or state a rule instead of a coordinate, the way objectui#9495 replaced a file count with "every file in git diff --name-only against the merge base".

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with b317942cf (merge-base with origin/main): 13 file(s) changed outside .changeset/, read against 69 pending declaration(s) that publish a body (74 pending in total). · run

@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales October 23, 2026 21:43
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 78 chunks) 3249.1 KB 3744.1 KB
Main entry chunk (gzip) 82.1 KB 350 KB
Entry file index-CYKU_8Jp.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (buildIdentity.js) 0.80KB 0.49KB
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 21.41KB 7.90KB
app-shell (runtime-config.js) 24.52KB 8.48KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 45.59KB 12.03KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 20.67KB 6.12KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.74KB 3.94KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.62KB 0.83KB
auth (authStyles.js) 5.27KB 1.86KB
auth (createAuthClient.js) 42.84KB 11.66KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 9.54KB 3.91KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 614.88KB 150.53KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 253.04KB 70.68KB
fields (index.js) 294.86KB 75.54KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.17KB 11.96KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (ServerReadScope.js) 4.03KB 1.82KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.99KB 0.43KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.91KB
plugin-calendar (index.js) 55.41KB 16.19KB
plugin-charts (index.js) 88.30KB 24.33KB
plugin-chatbot (index.js) 237.89KB 56.23KB
plugin-dashboard (index.js) 147.15KB 39.95KB
plugin-designer (index.js) 232.83KB 50.01KB
plugin-detail (index.js) 267.21KB 71.14KB
plugin-editor (index.js) 2.21KB 1.04KB
plugin-form (index.js) 185.46KB 48.48KB
plugin-gantt (index.js) 178.19KB 45.06KB
plugin-grid (index.js) 278.30KB 77.57KB
plugin-kanban (index.js) 64.27KB 19.81KB
plugin-list (index.js) 149.60KB 39.26KB
plugin-map (index.js) 27.11KB 8.99KB
plugin-markdown (index.js) 13.79KB 4.79KB
plugin-report (index.js) 46.42KB 13.06KB
plugin-timeline (index.js) 39.30KB 11.87KB
plugin-tree (index.js) 15.25KB 5.38KB
plugin-view (index.js) 94.26KB 24.27KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 129.13KB 42.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.71KB 2.11KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (product-blocks.js) 0.20KB 0.19KB
types (record-approval-decision.js) 0.20KB 0.20KB
types (record-components.js) 0.20KB 0.19KB
types (record-panels.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

os-dev-report

{
  "issue": 13427,
  "status": "done",
  "branch": "claude/issue-13427-external-role-label",
  "pr": "https://github.com/objectstack-ai/objectui/pull/13429",
  "session": "session_01JtDJkBUiZnD9NWnDqYuhq7",
  "premise_still_valid": true,
  "summary": "objectstack#25515 added external to the spec membership vocabulary; ORG_ROLE_LABELS (exhaustive over OrgRole) no longer type-checked against objectstack main. @object-ui/auth now exports ORG_ROLE_EXTERNAL with a label row (organization.roles.external, External) and every locale pack carries the key (zh 外部成员, as the server's sys_member.role option). Choice 1, pickers: ORG_ROLES stays the spec list unfiltered; a below-admin issuer (delegated admin, unresolved caller) is offered the roles any issuer may confer, member and external, which is what the spec's INVITATION_ROLE_GRANTORS 'any' rows say (ruling 6355206139 E3); owner/admin may set external from the members page; E5/E6 refusals stay server-side. Choice 2, ladder: external grades as member, exactly as plugin-auth invitation-role-cap.ts grades it, so it never unlocks an administrative affordance. Per the coordinator (21:26Z), objectui's .objectstack-sha stays at 915e9404 because objectstack#25251's spec PR2 has not landed and any pin carrying #25515 also carries #25483; so the role is spelled as a local literal and ORG_ROLE_LABELS is keyed by OrgRole or typeof ORG_ROLE_EXTERNAL, which compiles against both vocabularies. A tripwire test goes red on the pin move that brings #25515 and names the swap.",
  "tests": "At the pin 915e9404: vitest packages/auth/src/__tests__/, packages/app-shell/src/console/organizations/, packages/i18n/, apps/console/src/pages/system/ = 168 files, 2019 passed, 13 skipped, 0 failed. Against objectstack main 5ea211cc (pin built there, not committed): the role tests ran 159 passed, 6 failed, all expected (the tripwire plus five literal role lists that the pin move updates; their received values show owner offered 5 roles, delegate offered member and external, dropdowns ending 外部成员 / External). Ablation on the main build: restoring the old below-admin offer turns the grant-table test red.",
  "gates": "Type check: turbo build auth+i18n then type-check console/auth/app-shell/i18n, exit 0, 39/39 tasks, both at the pin and against objectstack main 5ea211cc. eslint on changed files: 0 errors. Local repo checks exit 0: check:i18n-keys, i18n-drift, i18n-dead-keys, changeset-claims, pending-changeset-literals, spec-symbols, new-line-citations, control-bytes, installed-pin-claims, vi-mock-specifiers, vi-mock-inherit, vi-mock-override-shape, test-path-roots. check:readme-exports exit 1 = prerequisite (27 packages unbuilt, population below floors), not a verdict. CI on head 8a13d9bf: 33 success, 3 skipped, 0 failed; mergeable_state clean.",
  "line_budget": "14 files, +177/-19 vs origin/main b317942; non-test source: org-roles.ts +65/-12, ten locale packs +1 each",
  "files_changed": "packages/auth/src/org-roles.ts; packages/auth/src/__tests__/org-roles.test.ts; packages/app-shell/src/console/organizations/__tests__/org-i18n-holdouts-4474.test.tsx; packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt,ru,zh}.ts; .changeset/13427-external-org-role.md",
  "deviations": "File surface is NARROWER than the claim: the claim listed a .objectstack-sha move (and .objectstack-pin manifests); the coordinator held the pin, so neither changed. InviteMemberDialog.roleCap.test.tsx, listed under the organizations tests, is unchanged. Changeset: @object-ui/auth minor (new export), @object-ui/i18n patch.",
  "mcp_calls": "0 GitHub MCP writes (reads only: issue_read, pull_request_read; subscribe_pr_activity is a session subscription)",
  "api_writes": "5, all through the fleet-write relay: labels+assignee on #13427 (label-write), claim comment 6374956587 (post-stamped), pr_create #13429 with assignee os-sales, pr_request_reviewers os-sales, and this report",
  "open_questions": [],
  "out_of_scope_findings": [
    "class: c · reach: console profile page — apps/console ProfilePage's access word is two-way (admin or member from useWorkspaceAdminStatus), so an external user reads Member / 成员 there; showing External would need the hook to expose the external grade · dedupe words: profile access label external",
    "class: c · reach: doc only — packages/app-shell/src/console/organizations/orgRoleLabel.ts docblock still says the four roles · dedupe words: orgRoleLabel four roles docblock",
    "carrier: PR #13429 body · noted, not filed"
  ]
}

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 8a13d9bf2b3f931cbf420380f270d65258d8d52f
Local-runs: probe — scripts/check-governed-queue-guard.mjs --test over the committed file list, to read the face (NOT GOVERNED, 14 paths)

Face: the Clause-②: yes declaration alone (no published schema, no governed path), so the lane seat reviews at TIER_DEFAULT. Inputs read: the card objectui#13427, the ruling of record 6355206139 (letter B) on objectstack#25233, the card thread's claim 6374956587 and its os-dev-report 6375554392, and the PR diff at this head. Check conclusions are taken from this head's check-runs.

① Derived judgments

The diff adds one public export and widens one public table. No existing member changes.

  • @object-ui/auth: ORG_ROLE_EXTERNAL = 'external'.
  • @object-ui/auth: ORG_ROLE_LABELS becomes Record<OrgRole | typeof ORG_ROLE_EXTERNAL, …>.
  • @object-ui/i18n: organization.roles.external is added in every pack.
  1. Meaning. The console's name for the role that objectstack#25515 added to the spec's membership vocabulary, under ruling B: portal users who reach less than a member. The label table now covers the spec at objectstack main and at this repo's pin (915e9404, held before objectstack#25483). At the pin it carries one extra row, and org-roles.test.ts goes red on the pin move that brings #25515, asking for the local spelling to become an import. The type-check passes at both trees (39/39 against objectstack main 5ea211cc). Correct.
  2. Who may confer it. An issuer below admin grade is now offered member and external, the two any-issuer rows of the spec's INVITATION_ROLE_GRANTORS. That matches objectstack's invitation cap, which admits external from any issuer because it confers less than member. The test pins the offer to that table for every issuer grade. Correct.
  3. Grade. external grades with member on the console's ladder, the same as in the cap's ladder. It never reaches an administrative affordance. The narrower reach is enforced server-side, where it is decided. Correct.

This is a label and an offer, not an access control: the server's cap and its exclusive-role and business-unit refusals (ruling E5, E6) still decide, and their refusals reach the screen through the existing error path.

② Semver level

The changeset declares minor for @object-ui/auth (a new published export and a widened published table) and patch for @object-ui/i18n (one key). That matches the diff, and no major is declared.

③ Boundary flags

  • The claim's file surface named a pin move that did not happen. On the coordinator's call, the pin is held at 915e9404 until objectstack#25251's spec PR lands. That makes the surface narrower than declared, not a breach.
  • The changeset-claim-re-read bot notes that the PR body cites org-roles.ts:67, a line this change moves. That is non-blocking and recorded here; the body is not patched.
  • Downstream: objectstack#25537 moves .objectui-sha once this merges, which turns objectstack's Console Pin Gate and Spec Shape Gate green.

Implemented-by: claude/issue-13427-external-role-label
Reviewed-by: session_01WJozybDmRH8z2c5SD7vJkj

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对

ACCEPT — objectui#13427 (p1,卡线程交付), head 8a13d9bf2b3f931cbf420380f270d65258d8d52f, reviewed 2026-10-23T21:59Z.

Seat: domain:ui#1 · Clause-②: yes

项 读数
形态 14 个文件,+177/−19:packages/auth/src/org-roles.ts、10 个语言包各加 organization.roles.external、两个测试、一个 changeset(auth minor、i18n patch)。NOT GOVERNED(--test 探针读 14 条路径)。与当前 main 无冲突(本次读取时 git merge-tree 无冲突)。
合同复核 本 PR 上的 Contract review 记录:VERDICT PASS(新增导出 ORG_ROLE_EXTERNAL、ORG_ROLE_LABELS 放宽到含 external、语言包一个键;只放宽、不拒绝)。
改动核对 读了 diff。按协调者的决定,pin 保持在 915e9404,所以 external 在本地写成字面量,标签表类型为 `OrgRole
钉测与门禁 角色表测试和按邀请人等级逐一对照授权表的测试。卡线程本地:auth 与 i18n 测试通过,对 objectstack main 5ea211cc 的 console type-check 39/39。CI 在此 head 上 33 项 success、3 项 skipped、无失败,可合并。
接受的偏差 1)认领的文件面写了移 pin,但实际没有移,比申报的窄,不算越界。2)changeset-claim-re-read 机器人指出正文引用的 org-roles.ts:67 被本改动移动,非阻断,以本核对为准,不改正文。
不在本卡内 合并后由 objectstack#25537 移 .objectui-sha,objectstack main 的 Console Pin Gate 和 Spec Shape Gate 随之转绿;18.1.0 发版前要等这一步。
落地条款 Closes #13427:合并后关卡。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants