Repository navigation
docs(adr-0135): a cloud-managed environment keeps the roster and authorization; credentials stay in the cloud - #34426
Conversation
…he cloud and the roster and authorization live in the environment One dated note under D5.2 mirrors the 2026-11-14 amendment of cloud ADR-0024 at this record's granularity: who starts a person's lifecycle on a hosted environment, the one authorization projected from the cloud, and what stays unchanged. Each mechanism sentence carries a symbol anchor into this tree; what the host does is marked cloud-side. No D-body is rewritten. Claude-Session: https://claude.ai/code/session_01WGufzfvoBdrQVCDNd5EDyG Co-authored-by: Claude <noreply@anthropic.com>
… it is, with no claim about where the standing is read The note said D5's derivation reads the standing from the environment's own tables. Under a walled posture platform standing is config-derived, so the sentence now says only that the derivation is not changed for the projection. Claude-Session: https://claude.ai/code/session_01WGufzfvoBdrQVCDNd5EDyG Co-authored-by: Claude <noreply@anthropic.com>
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head aeebe25 · 2026-11-16T18:30Z |
|
review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR Contract reviewServed-tier: First round on this PR: no earlier record (the only PR comment is claim 6925379534). Inputs: card #33184 with every comment (source text: director's verbatim copy 6912778378, triage 6895807038, regrade 6920260070), the PR body, the net diff (one file, +61 / -0) and the head's check-runs. The cloud repository is not readable from here, so fidelity is judged against the card's copy; the code is read at the head. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Fidelity to the source (6912778378), sentence by sentence. Every decision sentence of the 2026-11-14 amendment is carried: credentials in the cloud, roster and authorization in the environment; D5.1 unchanged and left in the cloud record (this record's "What stays" table lists it); who starts the lifecycle; the control plane invites as Code truth at the head. Each framework claim was read in the tree, callee included:
Consistency with the rest of the record. No contradiction with D5 (the exception is who assigns; the derivation still reads the environment's stored grant), D5.2 and its 2026-11-14 note (referenced, not restated), D6, D9, or "What this record does NOT settle" (a mirrored cloud amendment, not a new clause). No must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw 维护者速读
席位核对Verdict: ACCEPT · head
|
Requested by Yibo Wang · project thread
Fixes #33184
Clause-②: no
Metadata-protocol: none
维护者速读
OS_CLOUD_MANAGED=1)上,账号凭据归云端,名册和授权归环境。环境管理员在「设置 → 用户」里添加、导入、停用人员,由环境请云端发邀请;组织所有者/管理员在环境里持有admin_full_access,这是唯一从云端投射下来的授权;自托管不变。docs/adr/0135-identity-and-access-architecture.md新注记里的「One authorization is projected from the cloud」一段(唯一的 D5 例外,写入方标为 cloud-side),其次第一段和四条要点(与云端原文的逐句对照表见下)。pnpm check:adr-symbol-anchors,预期退出 0 并报「3717 anchors across 157 records resolve」,比 main(9e6fee19)的 3704 多 13,即本注记的 13 个代码锚点全部解析。docs/adr/**):请审阅这条注记并合并本 PR。What changes
One file,
docs/adr/0135-identity-and-access-architecture.md(+61 / −0): one dated note under D5.2, placed after the 2026-11-14 break-glass note and in the same house style. It mirrors the 2026-11-14 amendment of cloud ADR-0024 at this record's granularity. No D-body is rewritten and no clause is added.Provenance, as triage comment 6895807038 gives it and as the note's header carries it: cloud ADR-0024, amended 2026-11-14, cloud#4465 rulings 7, 9 and 10, cloud PR #4474 @ 312f2e5e. The source text is the director's verbatim copy on the card (comment 6912778378;
objectstack-ai/clouddocs/adr/0024-identity-and-access-architecture.md, merge commit312f2e5efc83c73d2bc5fec5bed62e099d00e6f5). This session cannot readobjectstack-ai/cloud, so the card's copy binds.Source to mirror
Left: the cloud sentence, verbatim from comment 6912778378. Right: the sentence of the new note that carries it.
sys_memberof the environment's organization.OS_CLOUD_MANAGED=1) remains their own cloud account and signs in through the hosting cloud's identity provider, and the cloud's own sign-in gate (cloud ADR-0024 D5.1, which stays in the cloud record) is unchanged." D5.1's own rule is not restated: it is on this record's "What stays incloudADR-0024" list.member.member…"sys_invitation/sys_memberwrites and passes every gate a console invitation passes (D9: no second invitation store, no cloud-side roster).sys_invitationandsys_memberwrites and every gate a console invitation passes (no second invitation store and no cloud-side roster, D9) …"idp-provisionedcolumn reads: Admin add-user and Deactivate in the environment; Invite sent by the cloud on the environment's request; Password management still none.409, and the local doors hold as D5.2 states them) and the cloud console's own invitation."admin_full_accessin the environment while that role lasts (ruling 9).admin_full_accessin the environment while that role lasts (ruling 9)."idp-provisionedrow, where identity is not editable in the environment, as far as the roster lifecycle goes (the environment now adds, imports and deactivates the person; credentials stay in the cloud) …Not mirrored, because it is the cloud record's own bookkeeping or its commercial half: the "(refines the 2026-10-21 amendment, does not reverse it)" relation and the inline edits to that amendment, the Phasing and Subsumes lines, the cloud#500 status corrections, and the tiering table and paragraph.
Framework facts the note states, and the code at
9e6fee19behind eachpackages/platform-objects/src/identity/sys-user.object.ts, actionsadd_sso_userandimport_sso_users:visibleis the platform-admin standing andfeatures.cloudManaged.sys_user.sourcereadsidp_pending, with no password and no account link, and with the positions, permission sets and manager the administrator chose. The first sign-in through the hosting cloud's identity provider binds to that row.packages/plugins/plugin-auth/src/pending-sso-users.ts(runAddSsoUser,runImportSsoUsers, and the module header),packages/plugins/plugin-auth/src/pending-sso-marker.ts(PENDING_SSO_SOURCE).admin/ban-userandadmin/unban-userdeactivate and reactivate a person, andadmin/remove-sso-userremoves one who is still pending.packages/plugins/plugin-auth/src/admin-ban-endpoints.ts(runAdminBanUser,runAdminUnbanUser),packages/plugins/plugin-auth/src/pending-sso-users.ts(runRemoveSsoUser).packages/plugins/plugin-auth/src/environment-user-host.ts(EnvironmentUserHost), wired as theenvironmentUserHostoption inpackages/plugins/plugin-auth/src/auth-plugin.ts.git grep -n environmentUserHostoutsidepackages/plugins/plugin-auth: 4 hits, all prose (the authentication guide, the QA checklist, one CHANGELOG twice), none in source. Control: 4 hits inpackages/plugins/plugin-auth/srcoutside tests.409and the row stays as it was, and a deactivation whose host call fails is refused too.packages/plugins/plugin-auth/src/environment-user-host.ts(EnvironmentUserHostRefusal, and the module header: a deactivation asks the host before its write; any other host failure answers503and writes nothing).409on a managed environment.packages/plugins/plugin-auth/src/cloud-managed.ts(CLOUD_MANAGED_REFUSAL_MESSAGES:invitation,removeMember,updateMemberRole).admin_full_accessas the cloud role changes is cloud-side, not in this repo, and D5's derivation is not changed for it.9e6fee19: no source in this tree keys anadmin_full_accessgrant on a cloud organization role. The writers that come closest do something else:packages/plugins/plugin-security/src/auto-org-admin-grant.tsgrantsorganization_adminfrom this environment's ownsys_membergrade and neveradmin_full_access; the identity-provider group projection (packages/plugins/plugin-auth/src/scim-group-projection.ts,sso-group-projection.ts) grants ordinary sets only (its header: "an identity provider's group never confers administrator standing");packages/plugins/plugin-security/src/bootstrap-platform-admin.tspromotes the first user that can sign in, or reports the configured owners, and reads no cloud role. The other grant inserts a grep for the grant table finds underpackages/plugins/plugin-auth/src(admin-user-endpoints.ts,pending-sso-users.ts,auth-manager-membership-admission.ts,demo-staff.ts) write the set an administrator, the self-registration setting or the demo seed names. The derivation ispackages/core/src/security/resolve-authz-context.ts(hasPlatformAdminStanding). This is a reading of those files, not a census of every caller of the data API.409.packages/plugins/plugin-auth/src/pending-sso-marker.ts(PENDING_SSO_MESSAGES.notManaged,PENDING_SSO_REFUSAL_STATUS).Why
Triage 6920260070: this records a design rule, not wording. Seats and agents design from the ADRs, and without this note ADR-0135 reads as though a managed person's place on the roster can only be started and ended outside the environment, and as though no authorization ever comes from the cloud. The code for the environment half is already on
main(the pending-person doors and the host seam, PR #33227 and PR #34162; the Setup → Users actions, PR #33755; the membership doors a managed environment refuses, PR #34281), and the record did not say what it implements.Tests
n/a: docs only. No code, schema, test or generated artifact moves. No ablation: a document is not ablated.
Acceptance notes
## Decision, soaddOnlyNoteReasonsinscripts/pm/check-governed-merges.mjsreads the PR as Tier H (a line under a heading that names the decision), which is the landing the order names.idp_pendingand D2's "exactly two values". D2's body sayssys_user.source"carries exactly two values". Since PR feat(auth)!: a managed environment adds pending, SSO-only people, and ban works without the admin plugin #33227 the field has a third,idp_pending. The note records the third value where it describes the pending row; the D2 body is not rewritten (the order forbids it). Noted here, not filed.pr_createcarries the claim'sAccount:as the assignee (.claude/agents/os-dev.mdrule 2). The order said no assignee; the agent file wins over an order, and the seat agreed before the PR opened. No reviewer is requested here: hand-over is the seat's.skip-changesetis declared onpr_create:docs/adr/**publishes nothing.Verification
All readings at head
aeebe252onclaude/project-thread-kh9yo1, offorigin/main9e6fee19. Every exit code was captured before any pipe; the sweep ran serially from a runner script.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 21 commands (15 pnpm, 6 direct node; 12 matched by path, 9 whole-tree). All 21 exit 0:check-adr-linksand its--self-test,check-closing-keyword-parityand its--self-test,check-comment-mask-corpus,plan-test-core-shards --self-test,check:doc-formula-expressions,check:adr-anchors,check:adr-index("docs/adr/README.md is current, every record parsed"),check:adr-symbol-anchors,check:ci-filter-parity,check:closed-ceremony-text,check:cross-package-test-inputs,check:doc-authoring,check:driver-memory-census,check:gitlink-declared,check:nul-bytes,check:pm-governed-merges,check:pm-prior-rulings,check:refd-timer-probe,check:watch-hint-literal.node scripts/pm/dispatch-gates.mjs --ran RAN_FILE --repo objectstack-ai/objectstackataeebe252: "Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN"; change set 1 path, +61 / −0, under the 3000-line human-merge threshold.check:adr-symbol-anchorsataeebe252: "3717 anchors across 157 records resolve — 1135 symbol (1106 declaration, 29 literal), 2530 file-level". The same script on the base tree9e6fee19reads 3704 (1123 symbol: 1096 declaration, 27 literal; 2529 file-level). The difference is this note's 13 anchors: 12 symbol (10 declaration, 2 literal) and 1 file-level, all resolving.npx turbo run build --filter=@objectstack/formula --filter=@objectstack/lint --concurrency=2underscripts/pm/os-verify-lock.sh, thecheck:doc-formula-expressionsprerequisite:VERDICT command-exit 0, held the lock 86 s on the first build; a cache replay before the sweep on the final head (the diff moves no package source).GITHUB_EVENT_NAME=pull_request node scripts/check-changeset-no-major.mjs --base origin/main --event EVENT_JSON(a pull_request payload carrying this body and theskip-changesetlabel): exit 0; "LEVEL AXIS: this PR declares clause-②noand metadata-protocolnone, and it introduces no changeset entry gradedminoror above and moves no metadata-protocol baseline".node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-kh9yo1: exit 3, its governed verdict: "landing tier: H(人合)",docs/adr/**one path, 61 changed lines; the low-risk arm reads NOT MEASURED without a PR reading, so the seat reads it with--pr.!in the title and no(narrowing)arm.--commandsnames them: the 11 wide-population families, the two "Plan Test Core shards" steps and the five type-check programs, all CI's own.Human Minimum
packages/specholds no runtime logic. (No code moves.)pnpm lintpasses. (A Markdown file; the derived ADR and doc gates ran instead, above.)main, one pull request.skip-changeset; both declaration lines are above.)packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzfvoBdrQVCDNd5EDyG
Generated by Claude Code