Skip to content

feat(platform-objects): Setup → Users on a managed environment offers Add User and Import Users through the pending-person doors - #33755

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-m0kvuy
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-m0kvuy

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

domain:ui#1 · os-project-manager · session_01FEkQ5o1t4Dbyp8n9chrc65

Fixes #33186

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

What changes

On a cloud-managed environment the password and invitation actions are hidden (features.cloudManaged, #25309), and since #33227 the environment has its own add-person doors, POST /api/v1/auth/admin/add-sso-user and POST /api/v1/auth/admin/import-sso-users. Nothing in Setup reached them. This PR adds their two first-party actions on sys_user:

  • add_sso_user ("Add User", list toolbar, type: 'api', target admin/add-sso-user). Params: email and name (field-backed), positions (widget: 'position-ref'), permissionSets (widget: 'permission-ref'), manager (type: 'email'). Each picker submits one name; the door reads a string as a list of one. The result dialog shows the address, and only when present on the answer: notApplied (a re-add of a person still pending), managerError and host.reason (the hosting organisation was not told).
  • import_sso_users ("Import Users", list toolbar, target admin/import-sso-users). One csv param (textarea); the result dialog shows summary.added / alreadyPending / failed and the per-row answer as JSON. The row-by-row UI is Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187's.

Both are offered by current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true:

  • The standing is the door's own gate (gateAdmin → judgePlatformAdmin, ADR-0068 D4), and both declare requiredPermissions: [...PLATFORM_ADMIN_USERS_GATE] like every other door in that family. No requiresFeature: 'admin': the doors mount without the better-auth admin plugin, which Free and Team kernels do not carry.
  • features.cloudManaged == true is where the door answers; off it the door answers 409 RESOURCE_CONFLICT.
  • has() keeps both hidden while the console holds no served flag: an action visible that faults SHOWS the action (RequiresFeatureSlot docs in public-auth-features.ts), the trap create_user's second email param already guards against.

No existing predicate is edited. create_user, set_user_password, the four invite_user mirrors and copy_invitation_link stay hidden on a managed environment.

Measured first (tree a199be81 = origin/main ee627c67 plus the two actions; the measuring script evaluates every identity action whose target is a person-adding, invitation or password door through @objectstack/formula's celEngine, as a platform admin who also holds org_owner):

action target managed unmanaged adds a person sets or resets a local credential
sys_user.invite_user organization/invite-member hidden offered yes, by invitation the invitee sets a password at accept
sys_member.invite_user organization/invite-member hidden offered yes, by invitation same
sys_invitation.invite_user organization/invite-member hidden offered yes, by invitation same
sys_organization.invite_user organization/invite-member hidden offered yes, by invitation same
sys_user.create_user admin/create-user hidden offered yes yes (password)
sys_user.set_user_password admin/set-user-password hidden offered no yes
sys_invitation.copy_invitation_link script hidden offered hands out the accept link no
sys_invitation.resend_invitation organization/invite-member offered offered re-sends an invitation no
sys_member.add_member organization/add-member offered offered no (an existing user joins an organization) no
sys_user.add_sso_user (new) admin/add-sso-user offered hidden yes, pending no
sys_user.import_sso_users (new) admin/import-sso-users offered hidden yes, pending no

The six doors of #25309 are the first six rows. The doors answer as the card says: admin/add-sso-user and admin/import-sso-users add a person on a managed boot and answer 409 RESOURCE_CONFLICT off it (the live pins below drive both legs). resend_invitation is offered on a managed environment although its door refuses there; see Acceptance notes.

Tests

  • packages/platform-objects/src/identity/cloud-managed-visibility.test.ts, a new top-level describe beside the six-door one. The real served predicates through celEngine, bound as the console binds them:
    • each new action targets its door and declares no requiresFeature;
    • offered to the platform admin when managed; hidden when the flag is off; hidden (false, not a fault) when no flag is served; hidden from an organization owner below the rung, even when managed;
    • on a managed environment the admin is offered exactly the two new actions and none of the six; off it, exactly the six and neither new one.
  • packages/plugins/plugin-auth/src/pending-sso-users.test.ts, a new top-level describe in the existing harness (a real AuthManager behind AuthPlugin.registerAuthRoutes on a real Hono app). Each leg reads the DECLARED action from @objectstack/platform-objects/identity, posts its dialog's body to its target:
    • add_sso_user on a managed boot answers 201; the row reads source = idp_pending, no sys_account, the picked position and permission set, and the manager linked;
    • import_sso_users on a managed boot: a two-row CSV answers 200, summary { total: 2, added: 2, alreadyPending: 0, failed: 0 }, both rows idp_pending;
    • CONTROL: an unmanaged boot answers both targets 409 RESOURCE_CONFLICT and adds no one.
  • platform-admin-affordance-standing.test.ts now evaluates both managed modes: a member counts as offered to the platform admin when one mode offers it, and no refused principal may be offered a member in either mode. The two new actions join its family floor.
  • platform-objects.test.ts: the byte rows for the two served predicates.
  • feature-gate-guard.test.ts: the reverse walk (every features.* reference is booked) reads a new test-local SHOWN_WHEN_ON list for the two actions, and a new describe holds each to the inverse conjuncts has(features.cloudManaged) and features.cloudManaged == true, on a flag whose semantics are hide-when-on, and not booked the other way.

Runs at head e6eb15eb: @objectstack/platform-objects full suite 122 files, 1992 tests passed; pending-sso-users.test.ts 48 passed (3 new), run at a199be81; neither it nor sys-user.object.ts changed after, and the three new legs passed again on the restored tree after A5.

Ablations at head 71185c1d, each through scripts/ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty:

A1 drop the managed half of the predicate → 7 red
anchor "  'current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true';"
     → "  'current_user.isPlatformAdmin == true';"
ablation-replace: ok mutation landed: anchor 1 -> 0, blob cde955fa973e -> e8790049342b
× sys_user.add_sso_user is hidden when the flag is off: its door answers 409 there
× sys_user.import_sso_users is hidden when the flag is off: its door answers 409 there
× sys_user.add_sso_user is hidden, not faulted, while no flag is served
× sys_user.import_sso_users is hidden, not faulted, while no flag is served
× off a managed environment the platform admin is offered the six as before and neither pending-person door
× (platform-objects.test.ts) the two byte rows
Tests  7 failed | 187 passed (194)
ablation-replace: ok restored: blob == HEAD (cde955fa973e) and `git diff HEAD` is empty
A2 drop the platform-admin standing → 6 red
     → "  'has(features.cloudManaged) && features.cloudManaged == true';"
× sys_user.add_sso_user is hidden from an organization owner below the platform-admin rung, even when managed
× sys_user.import_sso_users is hidden from an organization owner below the platform-admin rung, even when managed
× each member serves a visible that carries the standing term
× no principal the gate refuses is offered a member, on any row
× (platform-objects.test.ts) the two byte rows
Tests  6 failed | 188 passed (194)
ablation-replace: ok restored: blob == HEAD (cde955fa973e) and `git diff HEAD` is empty
A3 drop the has() guard → 4 red
     → "  'current_user.isPlatformAdmin == true && features.cloudManaged == true';"
× sys_user.add_sso_user is hidden, not faulted, while no flag is served
× sys_user.import_sso_users is hidden, not faulted, while no flag is served
× (platform-objects.test.ts) the two byte rows
Tests  4 failed | 190 passed (194)
ablation-replace: ok restored: blob == HEAD (cde955fa973e) and `git diff HEAD` is empty
A4 / A5 point each action at the password door → its live pin red; dist rebuilt both legs

plugin-auth reads @objectstack/platform-objects from dist/, so each leg rebuilt it and proved the marker with scripts/ablation-dist-preflight.mjs.

A4 "target: '/api/v1/auth/admin/add-sso-user'," → "target: '/api/v1/auth/admin/create-user?abl=A4',"
ablation-replace: ok mutation landed: anchor 1 -> 0, blob cde955fa973e -> 06a9f37a88b5
✓ dist/: marker present in 6 built files
× add_sso_user on a managed boot: the dialog adds a pending person with the picked grants and manager
× CONTROL: off a managed environment the same targets answer 409 and add no one
Tests  2 failed | 1 passed | 45 skipped (48)
ablation-replace: ok restored: blob == HEAD (cde955fa973e) and `git diff HEAD` is empty
✓ dist/: marker absent from all 66 built files  ✓ tree: working tree clean against HEAD

A5 "target: '/api/v1/auth/admin/import-sso-users'," → "target: '/api/v1/auth/admin/import-users?abl=A5',"
ablation-replace: ok mutation landed: anchor 1 -> 0, blob cde955fa973e -> c330612f4396
✓ dist/: marker present in 6 built files
× import_sso_users on a managed boot: the dialog's CSV adds each row as a pending person
× CONTROL: off a managed environment the same targets answer 409 and add no one
Tests  2 failed | 1 passed | 45 skipped (48)
ablation-replace: ok restored ...  ✓ dist/: marker absent ...  ✓ tree clean

restored tree: Tests  3 passed | 45 skipped (48)

Acceptance notes

  • No spec change, so the feature-gate registry does not book the two actions. PUBLIC_AUTH_FEATURES.cloudManaged (packages/spec/src/kernel/public-auth-features.ts) books inputs under one predicate, features.cloudManaged != true, and feature-gate-guard.test.ts holds every booked input to it, so an input the flag SHOWS cannot be booked there without a new registry member. The order rules out a spec change, and the registry has no runtime reader (only this guard), so the two inputs are listed in a test-local SHOWN_WHEN_ON beside the reverse walk, and pinned. The question whether the registry should model that polarity is in the report.
  • sys_invitation.resend_invitation is offered on a managed environment, and its door refuses there. Measured in the table: its predicate has no cloudManaged term, and organization/invite-member answers 409 on a managed environment, resends included (auth-manager-before-hook.ts). It is not an add-person action and this PR leaves its predicate as it is; reported for the seat.
  • ban_user / unban_user keep requiresFeature: 'admin'. feat(auth)!: a managed environment adds pending, SSO-only people, and ban works without the admin plugin #33227 made both doors work without the admin plugin, and its hand-over names this card for dropping that gate. The order scopes this card to adding people and does not name it, so it is left alone and raised in the report.
  • Neither new action is exposed to AI agents: no ai block. ADR-0011's identity-actions note lists the actions assessed so far; these two postdate it and are human-only until assessed, as list_platform_admins is.
  • The resultDialog of import_sso_users shows the per-row answer as JSON. The row-by-row UI, re-send and the status display are Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187.
  • Clause-② widening, what it widens: two new published sys_user actions and their en plus ten translated locale keys (add_sso_user.*, import_sso_users.*). Nothing previously offered is hidden.

Verification

Gates derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack on the final head, each run with its exit code captured before any pipe, reconciled with --ran: 68 derived families on e6eb15eb: 67 exit 0, 1 NOT MEASURED (pnpm check:dual-build-cjs-loads exit 3, PREREQUISITE NOT MET: it needs every package's dist/; CI runs it). --ran: "68 derived famil(ies) accounted for — 67 run, 1 NOT-MEASURED". Plus pnpm --filter @objectstack/platform-objects typecheck exit 0 and pnpm --filter @objectstack/plugin-auth typecheck exit 0 (lock VERDICT command-exit 0 each), pnpm --filter @objectstack/platform-objects test 122 files / 1992 tests passed, pending-sso-users.test.ts 48 passed (see Tests). test:repo and pnpm lint are CI's. Full dogfood not run: no ! in the title and no (narrowing) arm.


Generated by Claude Code

…naged environment

Two sys_user actions point at the pending-person doors (admin/add-sso-user,
admin/import-sso-users), offered only to a platform administrator while
features.cloudManaged is on. The password and invitation actions stay hidden
there; off a managed environment nothing changes.

Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65
Co-Authored-By: Claude <noreply@anthropic.com>
…loudManaged shows while on

Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65
Co-Authored-By: Claude <noreply@anthropic.com>
…n the feature-gate guard

Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/platform-objects, touching 24 documentable anchor(s).

13 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/data-modeling/objects.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/authentication.mdx (via idp_pending (literal, a string literal in a comment in actions), notApplied (literal, a string literal in actions), permissionSets (literal, a string literal in actions), /api/v1/auth/admin/add-sso-user (route, a path literal in actions), /api/v1/auth/admin/import-sso-users (route, a path literal in actions))
  • content/docs/permissions/authorization.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/capabilities.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/delegated-administration.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/explain.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/permission-sets.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/positions.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/profiles.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/permissions/sharing-rules.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/protocol/objectui/actions.mdx (via list_toolbar (literal, a string literal in actions))
  • content/docs/ui/actions.mdx (via list_toolbar (literal, a string literal in actions))
  • content/docs/ui/pages.mdx (via list_toolbar (literal, a string literal in actions))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/releases/v17/17-7.mdx (via list_toolbar (literal, a string literal in actions))
  • content/docs/releases/v18/18-0.mdx (via permissionSets (literal, a string literal in actions))
  • content/docs/releases/v18/18-2.mdx (via permissionSets (literal, a string literal in actions))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (symbol, 54 pages)
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 12a0f09fca49bf90747e9cea21d566229c33de70 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from b5271c3f48ae33dd679fdd56e9fbec6065e153ab — the merge of head 2469b6cee764dd2a1202dc56166085d0b7e47361 into base 12a0f09fca49bf90747e9cea21d566229c33de70, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b5271c3f48ae33dd679fdd56e9fbec6065e153ab && git checkout b5271c3f48ae33dd679fdd56e9fbec6065e153ab
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 12a0f09fca49bf90747e9cea21d566229c33de70 2469b6cee764dd2a1202dc56166085d0b7e47361 && git checkout -B drift-repro 12a0f09fca49bf90747e9cea21d566229c33de70 && git merge --no-ff 2469b6cee764dd2a1202dc56166085d0b7e47361

node scripts/docs-audit/affected-docs.mjs --json 12a0f09fca49bf90747e9cea21d566229c33de70

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 12a0f09fca49bf90747e9cea21d566229c33de70 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…d label constant

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5o1t4Dbyp8n9chrc65
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 5f0e9b5f73df47f63416f08094fb06b8a8372aeb
Local-runs: none

Face: declaration. reviewFace decides no face from the 28 paths; the committed changeset's Clause-②: yes (widening) line routes the review here. Inputs read: card #33186 (body, triage 6868765295, claim 6891528063, os-dev-report 6892329704), the PR #33755 body, its file list (28 files), the net diff against main (merge base ee627c67), and the check-runs on this head. Code outside the diff was read to judge it, not reviewed.

Check-runs on 5f0e9b5f at 2026-11-15T09:32Z: 12 success (Check Changeset, PR-body guards, Governed Surface Queue Guard, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Dogfood Regression Gate, Test UI, Plan Test Core shards, Check PR Size, Flag docs, Auto Label, filter), 16 skipped by path filter, 0 failed, and 20 still in progress: Build Core, Test Core 1/8 to 8/8, Type Check (workspace, source gates, consumer gates, debt ledger), Lint (ESLint, CI release and engine gates, docs and code guards, repo and tooling gates, query-options erasure, slot lookup and corpus), Live E2E UI. This verdict covers the contract only. Those gates answer for themselves, and the merge waits for them to go green. The dev's local runs were at e6eb15eb. The one later commit, 5f0e9b5f, is a whitespace-only fix to TEMPORARY_PASSWORD_LABEL in sys-user.object.ts:76 that puts back main's spelling. It is not in the net diff, so the CI runs on this head are the ones that count.

① Derived judgments

  • Public surface, @objectstack/platform-objects SysUser.actions: adds add_sso_user and import_sso_users. This is right. It widens the surface and removes nothing. No existing action's visible, requiresFeature or params changed, and the diff touches no other member (sys-user.object.ts:447-560).
  • Visibility predicate MANAGED_ADD_PERSON_VISIBLE (sys-user.object.ts:73-74): current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true. This is right. It matches the answer domain of both doors. Each door answers 409 off a managed environment (plugin-auth/src/pending-sso-users.ts:514, read on main) and admits only the platform-admin standing (ADR-0068 D4). The has() guard stops the predicate faulting while no flag is served (a faulting action predicate SHOWS the action), which is the same trap create_user's second email param guards. The pins in cloud-managed-visibility.test.ts check four things: the action is offered when managed, hidden when the flag is off, hidden rather than faulted when no flag is served, and hidden from an organization owner. They also pin the exact set of actions offered in each mode.
  • requiredPermissions: [...PLATFORM_ADMIN_USERS_GATE] (sys-user.object.ts:456, :515), with no requiresFeature. This is right. PLATFORM_ADMIN_USERS_GATE is ['manage_users'] (platform-admin-action-gate.ts:37), which matches the changeset text and the family's other doors. The doors mount without the better-auth admin plugin (feat(auth)!: a managed environment adds pending, SSO-only people, and ban works without the admin plugin #33227), so requiresFeature: 'admin' would hide them on Free and Team kernels. Leaving it off is correct, and a test pins it.
  • Metadata accept-set: no change. This is right. Every key the new actions use is already accepted on main: param widget (spec/src/ui/action.zod.ts:280, an open string, with position-ref and permission-ref registered in the console), param type email / textarea / text, resultDialog.fields[].format text / json (action.zod.ts:839), locations, refreshAfter, and a CEL visible. No spec file is in the diff, which keeps to the claim's "⛔ No spec".
  • Door accept-set (closed body keys). This is right. The add_sso_user param names email, name, positions, permissionSets and manager are exactly ADD_KEYS (pending-sso-users.ts:185). import_sso_users sends { csv }, which is in IMPORT_BODY_KEYS (pending-sso-users.ts:552). A blank optional ('' / null) is read as none (pending-sso-users.ts:191, :217). The live pins in plugin-auth/src/pending-sso-users.test.ts post the DECLARED action's dialog body to its target. On a managed boot, add returns 201 and import returns 200. The CONTROL boot returns 409 and adds nobody.
  • Result dialogs. These are right on paths. email, notApplied, managerError, host.reason, summary.* and rows are all keys of the doors' answers (pending-sso-users.ts:531-548), and the dialog skips any path missing from the answer. One non-blocking should-fix (it affects neither correctness nor the contract): .changeset/33186-managed-add-people-actions.md:10 says the Add User result "names an address that was already pending". That holds only when notApplied is non-empty. If someone re-adds an address that is still pending and sends no position, permission set or manager, the door returns 200 with alreadyPending: true, but the dialog (sys-user.object.ts:490-502) shows only "User Added" and the email. Either show alreadyPending or narrow that changelog sentence. Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187, which owns the follow-on UI, can carry this.
  • Translation surface: 11 *.objects.generated.ts bundles plus 10 *.source-hashes.generated.ts. This is right. New keys only, under sys_user._actions.add_sso_user.* / import_sso_users.*, with the en text identical to the declarations. The source-hash rows record values that the translated text leaves the same as the source (CSV, and German Position). check:i18n runs in the in-progress Lint jobs.
  • AI exposure: no ai block. This is right. The actions stay human-only until someone assesses them under ADR-0011, as list_platform_admins does.
  • Test-guard changes. These are right. feature-gate-guard.test.ts:188-191 (SHOWN_WHEN_ON) relaxes the reverse walk only for an exact path and flag pair (:277-278). A new describe (:282) then holds each pair to the inverse conjuncts, on a hide-when-on flag, and checks the input is not booked the other way, so it opens no general bypass. platform-admin-affordance-standing.test.ts:183-217 (MODES) now counts an action as offered when either mode offers it. That loosens only the "offered" direction for flag-dependent members, and the exact per-mode sets in cloud-managed-visibility.test.ts close the gap. The "refused principal" direction got stricter: it now holds in both modes. Byte rows in platform-objects.test.ts pin the two predicates exactly as served.

② Semver level

Clause-②: yes (widening)

  • The changeset is '@objectstack/platform-objects': patch. The PR body and the changeset body each carry the line-initial pair Clause-②: yes (widening) / Metadata-protocol: none, and the two pairs agree.
  • Metadata-protocol: none is correct. Nothing a metadata author can write changed: no new key, value or type, and no spec path. Under the AGENTS.md post-task rule 3, a non-protocol widening ships patch, so the level matches what the diff publishes.
  • The only published package the diff moves is @objectstack/platform-objects. The plugin-auth change is a test file and publishes nothing, so no plugin-auth entry is owed. Check Changeset is green on this head.
  • Clause-②: yes (widening) is right. Two actions and their locale keys are added, and nothing that was offered before is hidden or refused. The PR body's measurement table shows the six feat(spec, platform-objects): declare features.cloudManaged with a hide-when-on gate, and hide the six doors that add people while it is on #25309 doors unchanged in both modes.

③ Boundary flags

Implemented-by: claude/project-thread-m0kvuy
Reviewed-by: contract-review-agent · seat domain:ui#1 session_01FEkQ5nWoa1Ze1QzjRTSYXD

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

席位核对

Verdict: ACCEPT · head 2469b6ce · 2026-11-15T10:46Z

  1. Shape. Draft → main, Fixes #33186. 28 files, all on the claimed surface (claim 6891528063) or the deviations the report names: sys-user.object.ts (two new actions, add_sso_user and import_sso_users, no existing predicate edited), the 21 generated translation bundles check:i18n owes for new labels, five test files and one changeset.
  2. Premise. Measured on base ee627c67 (table in the PR body): the six add-person and credential doors of feat(spec, platform-objects): declare features.cloudManaged with a hide-when-on gate, and hide the six doors that add people while it is on #25309 are hidden on a managed environment and offered off it. The pending-person doors of feat(auth)!: a managed environment adds pending, SSO-only people, and ban works without the admin plugin #33227 answer only on a managed environment. The new actions are offered exactly there, to a platform administrator, and hidden elsewhere.
  3. Contract record. PASS 6892408489 (TIER_DEFAULT, declaration face) on 5f0e9b5f.
  4. Gates. On 5f0e9b5f, 49 check runs passed or were skipped and none failed; Test Core 1/8 was cancelled by the sync below. Locally: 67 of 68 derived gates ran green (the other, check:dual-build-cjs-loads, is left to CI), and 5 ablations each went red and were restored.
  5. K. 16 first-parent commits since base ee627c67 ≥ 15, so the base was synced: main merged at 12a0f09f, new head 2469b6ce. The sync is merge-only (patch-id dd508ab7d6c9 on both heads). Auto-merge waits for the rerun on this head; 33 of its 34 non-skipped runs are green and Test Core 1/8 is running.
  6. Governed. check-governed-merges --pr 33755: 0 of 28 paths hit the register, so NOT governed, and 917 changed lines are under the human-merge threshold.
  7. Authority. Landing under the maintainer's standing authorisation 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

Landing · head 2469b6ce (base sync of the reviewed 5f0e9b5f, merge of main at 12a0f09f; patch-id dd508ab7d6c9 on both heads) · 2026-11-15T10:46Z

reading value
check runs on 2469b6ce 50: 33 success, 16 skipped, Test Core 1/8 running; none failed
contract record PASS 6892408489 (TIER_DEFAULT, on 5f0e9b5f; the sync is merge-only)
seat ACCEPT 6893181146
governed NOT governed (0 of 28 paths)

State: ready + auto-merge, which waits for Test Core 1/8.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH

Contract-review-claim: session_016WV4cy7hQ5MvQ83ByNZ8ZH · head 2469b6c · 2026-11-15T11:21:25Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-elon-musk · session_016WV4cy7hQ5MvQ83ByNZ8ZH

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 2469b6cee764dd2a1202dc56166085d0b7e47361
Local-runs: none

Delta review. Face: declaration, unchanged: the committed changeset's Clause-②: yes (widening) line routes the review here and the 28-path file list still decides no other face. The prior record of record is the PASS in comment 6892408489 on 5f0e9b5f73df47f63416f08094fb06b8a8372aeb. This record asks only whether that PASS carries to the new head. Inputs read: the PR head and comments live, the two heads' commit graphs, the merge, the net diffs against each merge base, the main commits the sync brought in, and the check-runs on this head. Nothing built or run locally beyond git object reads.

① Derived judgments

  • The new head is a base sync and nothing else. 2469b6ce is a two-parent merge: parent 1 is the reviewed head 5f0e9b5f, parent 2 is main at 12a0f09f. No commit of the PR's own sits on top of it.
  • The merge was clean and carries no hand resolution. git merge-tree --write-tree 5f0e9b5f 12a0f09f exits 0 with tree 6ae43eca, which is byte-for-byte the tree of 2469b6ce. There was no conflict to resolve, so there is no resolution to review.
  • The PR's own change is unchanged. git patch-id --stable of the net diff is dd508ab7d6c9 both for ee627c67..5f0e9b5f (old merge base to reviewed head) and for 12a0f09f..2469b6ce (new merge base to new head). Same 28 files, 903 insertions, 14 deletions. Every derived judgment in 6892408489 holds as written.
  • What main brought in does not move the reviewed contract. The 16 commits ee627c67..12a0f09f touch no path under packages/platform-objects, packages/plugins/plugin-auth or packages/spec/src/ui/action*, so the accept-set, door keys and predicates the prior record cited are as it read them. The one semantically adjacent commit, 12a0f09f (ADR-0135 D5.2: a cloud-managed environment keeps no local password and no break-glass administrator), agrees with this PR: the two new actions add people with no password who first sign in through the organization's identity provider.
  • Check-runs on this head: 36 success, 16 skipped by path filter, 0 failed, 0 in progress. The gates the prior record left in progress (Build Core, Test Core shards, Type Check, Lint including check:i18n, Live E2E UI) are green here.

② Semver level

Clause-②: yes (widening)

  • Unchanged from 6892408489: '@objectstack/platform-objects': patch with Metadata-protocol: none. The changeset file is part of the identical patch, and the PR body still carries the same line-initial pair.

③ Boundary flags

  • The prior record's non-blocking should-fix (the Add User result dialog does not surface alreadyPending, against the changeset sentence at .changeset/33186-managed-add-people-actions.md:10) still stands as written and still travels with Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187. Not a must-fix, so no re-review round is owed for it.
  • The prior record's out-of-scope finding (sys_invitation.resend_invitation offered on a managed environment) is unchanged by the sync.
  • Independence: the PR is authored by os-project-manager; this review is by seat review#1 on account os-elon-musk, which neither dispatched nor implemented it.
  • security_findings: none.

Implemented-by: claude/project-thread-m0kvuy
Reviewed-by: session_016WV4cy7hQ5MvQ83ByNZ8ZH

VERDICT: PASS

Merged via the queue into main with commit 2e1e3b9 Nov 15, 2026
52 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-m0kvuy branch November 15, 2026 11:50
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…LOG line, and an 18-5 page erratum (objectstack-ai#34042)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9EaC9kmPYBDw3v97tMkTaQu)_

Fixes objectstack-ai#33903

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:18.5.0 已发布但发布说明漏记的 11 条变更,补进 14 个包的 CHANGELOG 18.5.0 节(私有包
app-shell 补在它这次发的 18.4.1 节),删掉这 11 个 changeset 文件,并在 18-5 发布页加一节勘误。
- 为什么改:18.5.0 的版本提交 `b914e724` 没有消化这 11 个 changeset,代码已随 18.5.0 发出,但
CHANGELOG 和发布页都没写;其中 objectstack-ai#33637 是破坏性变化(`os audit verify` 遇到被两个 checkpoint
同时列出的行,现在报 `listed_twice` 并失败)。按裁决 6896138728「事后补就可以」只做补记。
- 风险与回滚:纯文字,不发布代码;删掉的 changeset 若留着,下一个版本会把它们当新变化再发一遍。回滚即 revert 本 PR。
- 先看:`content/docs/releases/v18/18-5.mdx`
的勘误节;`packages/plugins/plugin-audit/CHANGELOG.md`(破坏性那条);`packages/spec/CHANGELOG.md`(两条,其中一条进
Minor Changes)。
- 两分钟验证:`git grep -c -E '^-
(ac0b9a5|2e1e3b9|fbe349f|2673f59|0feb5ff|1e65a38|e302d32|f8f35db|e0775f7|4b5024d|81371e1):
' -- '*CHANGELOG.md'` 预期 14 个文件共 18 行;`ls .changeset/*.md | wc -l` 比
main 少 11。
- 需要你做的:无,席位落地(Check Changeset 会按规则保持红色,见下方 DELIBERATE CORRECTION)。

## What changes

`packages/*/CHANGELOG.md` and `content/docs/releases/` are
release-owned. AGENTS.md (Documentation Guardrails) routes a factual
error in a released entry, or on a releases page, to a dedicated
docs-only PR, and the maintainer's ruling on this card (comment
6896138728, verbatim: 「没必要,事后补就可以:让发布流程在版本提交之前还有没消化的 changeset
时,拒绝发正式版。」) keeps only the amendment half. This is that PR. Precedent:
objectstack-ai#33925.

The 18.5.0 version commit `b914e724` (objectstack-ai#33097) consumed 283 of the 294
changesets on its parent. The other 11 landed on `main` after the
Version Packages branch point `b76df9a6` and before the merge; each
one's adding commit is an ancestor of `b914e724`, and its file is
byte-identical on `b914e724` and on this branch's base `bc6b7ffd`.

1. **CHANGELOG entries.** Each changeset's entry is added to the release
section `b914e724` wrote for each package it names, in the stock
generator's form (`- SHA7: ` + the summary, continuation lines indented
two spaces), under the commit that added the changeset, in the `###
Minor Changes` or `### Patch Changes` list its bump names, after the
last changeset entry and before the `Updated dependencies` lines. No
dependents line is invented.
2. **The 11 changeset files are deleted**, so the next version commit
does not present them as new.
3. **The 18-5 page** gains `## Erratum — eleven changes 18.5.0 shipped
with no CHANGELOG line [#erratum]`: objectstack-ai#33637's FROM → TO and what an
operator does, one line for each of the other nine, and a pointer from
the release-facts row that said 284 were consumed. objectstack-ai#33725 is already on
the page (自动迁移, "Announced, not yet at any door"); it is checked, not
repeated.

| Changeset | Package | Added to | Commit | 18-5 page |
| :--- | :--- | :--- | :--- | :--- |
| `31908-p4b2-bounded-checkpoints` | `@objectstack/plugin-audit` | `##
18.5.0` › Patch Changes | `ac0b9a5` (objectstack-ai#33637) | Erratum, breaking: FROM →
TO, what to do, rollback note |
| `33186-managed-add-people-actions` | `@objectstack/platform-objects` |
`## 18.5.0` › Patch Changes | `2e1e3b9` (objectstack-ai#33755) | Erratum, one line |
| `33609-related-list-parent-lookup-page` | `@object-ui/console`,
`@object-ui/plugin-detail` | `## 18.5.0` › Patch Changes | `fbe349f`
(objectstack-ai#33780) | Erratum, one line |
| `33649-messaging-preferences-emitting-organization` |
`@objectstack/service-messaging` | `## 18.5.0` › Patch Changes |
`2673f59` (objectstack-ai#33779) | Erratum, one line |
| `33660-ai-model-picker-cost-multiplier` | `@objectstack/spec`,
`@object-ui/plugin-chatbot`, `@object-ui/i18n`, `@object-ui/console`;
`@object-ui/app-shell` | `## 18.5.0` › Patch Changes; app-shell `##
18.4.1` › Patch Changes | `0feb5ff` (objectstack-ai#33746) | Erratum, one line |
| `33689-ai-action-confirmation-elicited` | `@objectstack/spec` | `##
18.5.0` › Minor Changes | `1e65a38` (objectstack-ai#33725) | Already covered (自动迁移
row), not repeated |
| `33724-install-relaxes-declared-not-null` | `@objectstack/driver-sql`,
`@objectstack/cloud-connection`, `@objectstack/driver-turso` | `##
18.5.0` › Patch Changes | `e302d32` (objectstack-ai#33769) | Erratum, one line |
| `33739-scenario-runner-effort` | `@objectstack/scenarios` | `##
18.5.0` › Patch Changes | `f8f35db` (objectstack-ai#33767) | Erratum, one line |
| `33753-scenario-dates-follow-run-date` | `@objectstack/scenarios` |
`## 18.5.0` › Patch Changes | `e0775f7` (objectstack-ai#33776) | Erratum, one line |
| `33754-scenario-grader-written-date` | `@objectstack/scenarios` | `##
18.5.0` › Patch Changes | `4b5024d` (objectstack-ai#33797) | Erratum, one line |
| `a2-skills-docs-32678-32825` | `@objectstack/skills` | `## 18.5.0` ›
Patch Changes | `81371e1` (objectstack-ai#33355) | Erratum, one line |

**DELIBERATE CORRECTION.** This PR adds no changeset and deletes eleven
(`git diff --name-status` over `.changeset/*.md`: 11 × `D`, 0 × `A`).
Each deleted note is already released: its text now stands, unchanged,
as the entry named in the table above, in the 18.5.0 tarballs' release
section. Under ruling D on objectstack-ai#18375 (the Check Changeset step's route 0)
and `.claude/agents/os-dev.md`, `skip-changeset` is not applied to a PR
that deletes an existing changeset, so `Check Changeset` stays red by
design; it is not a required context. The diff publishes nothing until
the next release republishes the tarballs.

## Tests

No source changes, so no test suite moves. The CHANGELOG lines are
generated, not hand-typed: the summary parse and the stock release-line
format were re-implemented in a script and first checked against
`b914e724^`: for every changeset `b914e724` consumed among the first 60
(103 package entries), the generated text is found verbatim in that
package's CHANGELOG; the only miss is `31908-p4b2-bounded-checkpoints`,
the unconsumed one this PR adds. The script asserts, per changeset, one
adding commit, an identical blob at the tag and at the base, the release
section being the top section of the version `b914e724` gave the
package, and the entry not already present. The diff of every CHANGELOG
is insertions only.

## Acceptance notes

1. `@object-ui/app-shell` is private and `b914e724` versioned it
`18.4.1`, not `18.5.0` (the 18-5 page's release facts say so too), so
its entry goes into its `## 18.4.1` section.
2. The 18-5 page still opens with "Release status: 18.4.0 is released,
and 18.5.0 is not yet." and its release facts say no 18.5.0 tag or npm
version exists. Both are stale since the publish. Outside this card's
file surface; left for the seat (noted, not filed).
3. The changeset of objectstack-ai#33649 has no summary line, so its entry opens `-
2673f59: Clause-②: no`, as the stock generator would have written it.

## Verification

<details><summary>Premise readings, at base bc6b7ff and the 18.5.0 spec
tag = b914e72</summary>

- `git ls-tree --name-only b914e72 .changeset/` minus `README.md` and
`config.json`: 11 files, the card's list. `b914e724^` holds 294;
`b914e724` deletes 283.
- For each of the 11: `git rev-parse b914e72:PATH` equals `git
rev-parse bc6b7ff:PATH`; the adding commit (`git log --diff-filter=A`,
one per file) is an ancestor of `b914e724` (`merge-base --is-ancestor`
exit 0, after deepening the shallow clone by 800 commits). The adding
commits all fall between `b76df9a6` (the Version Packages branch point
the 18-5 page names) and `b914e724`.
- Before this PR: `listed_twice`, `ac0b9a5`, `objectstack-ai#33637` each 0 hits on
`content/docs/releases/v18/18-5.mdx`.
- The erratum's wording is read from the changeset text and
`packages/plugins/plugin-audit/src/audit-seal/verifier.ts`
(`listed_twice` fault: `checkpoint N: lists row(s) … that another
checkpoint already lists`), `content/docs/deployment/cli.mdx` § `os
audit verify` (exit 1 when two checkpoints list the same row), and the
18.5.0 entry `f4cafd5` (a late checkpoint leaves out every row a
checkpoint stored in between already lists).
</details>

<details><summary>Gates</summary>

Head `f5754612`. Derived with `node scripts/pm/dispatch-gates.mjs
--commands --repo objectstack-ai/objectstack` (no paths): 99 commands,
each run with stdin from `/dev/null` and its exit captured before any
pipe; `--ran` reconciliation: 99 derived, 99 run, 0 NOT-MEASURED, 0
UNRUN.

- 98 exit 0. Eleven of them first exited 3 (PREREQUISITE NOT MET, no
`dist/` in a fresh worktree) and were re-run exit 0 after the builds
they name, each under `scripts/pm/os-verify-lock.sh` with VERDICT
command-exit 0: the `@objectstack/lint...` closure plus the `check:i18n`
extract closure (64/64 tasks), `@objectstack/client` and `client-react`
(43/43), then `pnpm build` (119/119). Re-run:
`check:doc-formula-expressions`, `check:doc-security-posture`, spec
`check:docs`, spec `check:skill-examples`,
`check:docs-transcript-drift`, `check:i18n`, `check:dts-closure`,
`check:dual-build-cjs-loads`, `check:lean-entry-closure`,
`check:sourcemap-no-sources-content`; and `pnpm --dir ui exec vitest run
scripts/`, which first failed 22 files only on the missing
`@objectstack/spec` `dist/` and then passed (171 files passed, 2
skipped; 5,065 tests passed).
- 1 exit 1, by design: `node scripts/check-empty-changeset.mjs --base
origin/main` refuses the eleven deletions as edits of existing notes
(one `::error` per file). This is the DELIBERATE CORRECTION class
declared above; it stays red, and so does `Check Changeset`.
- Release-text gates all exit 0 on the amended tree:
`check-release-section-coverage` (plain and `--strict`),
`check:release-notes`, `check:release-page-status`,
`check-affected-docs`, `check:doc-authoring`, `check:doc-anchors`,
`check:nul-bytes`, `check-adr-0087-registration --base origin/main`.

`origin/main` moved to `159757ab` while the gates ran; the commits since
the base `bc6b7ffd` touch none of this PR's paths (they add four other
changesets), so no merge was taken.
</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR

<!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z
-->

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Managed environments: re-show the add-people actions in Setup → Users (reverse #25295 / #25309's visible predicates for adding)

1 participant