Skip to content

docs(adr-0135): a cloud-managed environment keeps the roster and authorization; credentials stay in the cloud - #34426

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-kh9yo1
Nov 17, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-kh9yo1

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #33184

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:ADR-0135 的 D5.2 下新增一条注记(+61 行,只增不改):托管环境(OS_CLOUD_MANAGED=1)上,账号凭据归云端,名册和授权归环境。环境管理员在「设置 → 用户」里添加、导入、停用人员,由环境请云端发邀请;组织所有者/管理员在环境里持有 admin_full_access,这是唯一从云端投射下来的授权;自托管不变。
  • 为什么改:云端 ADR-0024 已在 2026-11-14 按 cloud#4465 的裁决 7、9、10 修订(cloud PR fix(spec): let a schemaless node own an expression-ledger entry (#4439) #4474),本仓的 ADR-0135 是它的公开镜像,此前只同步了「托管没有应急本地管理员」这一半(PR docs(adr): ADR-0135 D5.2 — a cloud-managed environment keeps no local break-glass password #33248)。席位和 agent 按 ADR 做设计,缺这条规则会做出与托管身份相冲突的设计。
  • 风险与回滚:只改一份 ADR 文本,不动代码、schema 和生成产物,不发布任何包;决定仍以云端记录为准,本注记与云端不一致时算本注记的错。回滚即还原本 PR。
  • 先看: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/cloud docs/adr/0024-identity-and-access-architecture.md, merge commit 312f2e5efc83c73d2bc5fec5bed62e099d00e6f5). This session cannot read objectstack-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.

Cloud ADR-0024, 2026-11-14 amendment ADR-0135, the new note
hosted: credentials live in the cloud; the roster and authorization live in the environment. Title: "on a cloud-managed environment, credentials live in the cloud; the roster and authorization live in the environment."
Every person remains their own cloud account, and D5.1 is unchanged: the OP issues a code only to a sys_member of the environment's organization. "Every person on a hosted environment (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 in cloud ADR-0024" list.
What moves is who starts the lifecycle. An environment administrator adds, imports and deactivates people in Setup → Users. "What moves is who starts a person's lifecycle: an environment administrator adds, imports and deactivates people in Setup → Users." The bullets "Add and import" and "Deactivate" then name this repository's doors (second table).
The environment asks the control plane to invite the address as member. Bullet "The environment asks; the cloud invites": "The environment sends no invitation of its own. It reaches its host through one seam … By the cloud record, the control plane invites the address as member …"
Deactivating a plain member ends that membership; an owner or admin is changed in the console only. "… and deactivating a plain member ends that membership." and the bullet "An owner or admin is changed in the console only."
The request ends in better-auth's own sys_invitation / sys_member writes and passes every gate a console invitation passes (D9: no second invitation store, no cloud-side roster). "… through better-auth's own sys_invitation and sys_member writes and every gate a console invitation passes (no second invitation store and no cloud-side roster, D9) …"
For hosted, D5.2's idp-provisioned column reads: Admin add-user and Deactivate in the environment; Invite sent by the cloud on the environment's request; Password management still none. "For hosted, the managed side of D5.2's surface therefore reads: add and deactivate in the environment, the invitation sent by the cloud on the environment's request, and password management still none." This record carries no D5.2 table, so the cloud's column is named as the managed side of the surface.
Unchanged: D1, self-hosted deployments, the console's own invitation. "Unchanged: D1, self-hosted deployments (off a managed environment the two add doors answer 409, and the local doors hold as D5.2 states them) and the cloud console's own invitation."
One authorization is projected from the cloud: an organization owner or admin holds admin_full_access in the environment while that role lasts (ruling 9). "One authorization is projected from the cloud, and it is the only exception to D5: an organization owner or admin holds admin_full_access in the environment while that role lasts (ruling 9)."
This is the only exception to D5; every other position and permission set is assigned in the environment, and nothing is projected upward. "Every other position and permission set is assigned in the environment, and nothing is projected upward, from the environment to the cloud."
Hosted has no local break-glass admin; emergency access is a platform-operator procedure, and self-hosted deployments keep local admins (ruling 10). (And the correction under the D5.2 invariant.) "The same amendment's ruling 10, no local break-glass administrator on a hosted environment, is the note above and is not restated here." That note landed with PR #33248.
SCIM: cloud#500's cloud-to-environment fan-out is not needed under this model (D6: per production environment, not fan-out); if hosted ever offers bring-your-own IdP with SCIM, the customer's IdP provisions straight into the environment roster through the framework's SCIM path. Whether such a person also holds a cloud membership is decided with that offer. "The amendment also finds the cloud-to-environment SCIM fan-out not needed: if hosted ever offers a bring-your-own identity provider with SCIM, that provider provisions straight into the environment's roster through this repository's SCIM path (D6), and whether such a person also holds a cloud membership is decided with that offer."
Supersedes (only these; everything else in cloud#3132 stands): … D4's idp-provisioned row, 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) … "… as far as the roster lifecycle goes: D2 reads a managed person's row as a mirror of the directory that owns it, and on a hosted environment the environment itself adds, imports and deactivates that person while the credential stays the cloud's. What the amendment supersedes in the cloud's own text and console copy is listed in the cloud record and stays there." The rest of the list (two cloud rulings, the console copy, the columns of the cloud's own D5.2 table) names cloud text this record does not carry.
The D1–D10 bodies are not rewritten; for hosted deployments this note governs where they disagree. "The D-bodies are not rewritten. For a hosted environment this note governs where they disagree …" and "The cloud record is the decision: a difference between it and this note is this note's bug."

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 9e6fee19 behind each

Sentence in the note Code at the base
Setup → Users offers a platform administrator two actions, on a managed environment only. packages/platform-objects/src/identity/sys-user.object.ts, actions add_sso_user and import_sso_users: visible is the platform-admin standing and features.cloudManaged.
Their doors add the person as a pending row: sys_user.source reads idp_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-user and admin/unban-user deactivate and reactivate a person, and admin/remove-sso-user removes 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).
The environment reaches its host through one seam; the host is told after a person is added, and asked before a person is deactivated, reactivated or removed. packages/plugins/plugin-auth/src/environment-user-host.ts (EnvironmentUserHost), wired as the environmentUserHost option in packages/plugins/plugin-auth/src/auth-plugin.ts.
What the host does with the call is cloud-side, not in this repo. git grep -n environmentUserHost outside packages/plugins/plugin-auth: 4 hits, all prose (the authentication guide, the QA checklist, one CHANGELOG twice), none in source. Control: 4 hits in packages/plugins/plugin-auth/src outside tests.
The seam carries a typed refusal for an owner or admin: the host answers 409 and 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 answers 503 and writes nothing).
The environment's own doors that invite a member, remove one or change a member's role answer 409 on a managed environment. packages/plugins/plugin-auth/src/cloud-managed.ts (CLOUD_MANAGED_REFUSAL_MESSAGES: invitation, removeMember, updateMemberRole).
What gives and withdraws the projected admin_full_access as the cloud role changes is cloud-side, not in this repo, and D5's derivation is not changed for it. Read at 9e6fee19: no source in this tree keys an admin_full_access grant on a cloud organization role. The writers that come closest do something else: packages/plugins/plugin-security/src/auto-org-admin-grant.ts grants organization_admin from this environment's own sys_member grade and never admin_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.ts promotes 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 under packages/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 is packages/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.
Off a managed environment the two add doors answer 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

  • Date. The note is dated 2026-11-16, the day this record gains it; the cloud amendment's own date, 2026-11-14, is in the provenance string. The existing notes carry the date they were written.
  • Placement. Under D5.2, after the break-glass note, because the cloud amendment restates its own D5.2 surface and its correction sits under the D5.2 invariant. The note names D5 for the projected authorization and D2 for the mirror reading. It sits inside ## Decision, so addOnlyNoteReasons in scripts/pm/check-governed-merges.mjs reads the PR as Tier H (a line under a heading that names the decision), which is the landing the order names.
  • Two sentences beyond the order's list, both in the source. The SCIM sentence and the "managed side of D5.2's surface" sentence are not in the order's "What to do" list. Both are sentences of the cloud amendment, and the SCIM one names this repository's SCIM path. The seat can cut either.
  • idp_pending and D2's "exactly two values". D2's body says sys_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.
  • Ruling 7. The provenance string names rulings 7, 9 and 10. The cloud text attributes sentences to rulings 9 and 10 only, and cloud#4465 is not readable from here, so the note attributes no sentence to ruling 7.
  • Attribution link. The second line of this body carries this card thread's link, as the session's attribution rule requires, not the seat thread's link the order prints. Reported as a deviation.
  • Assignee and reviewer. pr_create carries the claim's Account: as the assignee (.claude/agents/os-dev.md rule 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-changeset is declared on pr_create: docs/adr/** publishes nothing.

Verification

All readings at head aeebe252 on claude/project-thread-kh9yo1, off origin/main 9e6fee19. 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-links and its --self-test, check-closing-keyword-parity and 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/objectstack at aeebe252: "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-anchors at aeebe252: "3717 anchors across 157 records resolve — 1135 symbol (1106 declaration, 29 literal), 2530 file-level". The same script on the base tree 9e6fee19 reads 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=2 under scripts/pm/os-verify-lock.sh, the check:doc-formula-expressions prerequisite: 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 the skip-changeset label): exit 0; "LEVEL AXIS: this PR declares clause-② no and metadata-protocol none, and it introduces no changeset entry graded minor or 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.
  • Dogfood battery: n/a — no ! in the title and no (narrowing) arm.
  • CI: every family CI runs on the PR is read from the PR's check-runs at review, not re-run locally. NOT MEASURED here, as --commands names 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

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No code moves.)
  • 2. Every name I added uses the casing for its kind. (No names added.)
  • 3. No formatter ran; pnpm lint passes. (A Markdown file; the derived ADR and doc gates ran instead, above.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Publishes nothing: skip-changeset; both declaration lines are above.)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (The 维护者速读 section is the maintainer's Chinese summary, by the dispatch contract.)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzfvoBdrQVCDNd5EDyG


Generated by Claude Code

…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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 16, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 16, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head aeebe25 · 2026-11-16T18:30Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: aeebe2529e4c90e010406bf32549ac8c9829695a
Local-runs: none
Scope: docs/adr/0135-identity-and-access-architecture.md + none
Security-touching: yes

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

  • Public surface: none. One dated note under D5.2 of a governed ADR; no code, schema, generated artifact or package file moves. Right.
  • Accept-sets: none widened or narrowed. The note records a third stored sys_user.source value (idp_pending) that main already declares (sys-user.object.ts, the source options); it does not introduce it. Right.
  • The note is add-only inside ## Decision, so the landing is Tier H (maintainer merge). Right, and the PR body says so.

② Semver level

Clause-②: no and Metadata-protocol: none are correct: docs/adr/** publishes nothing. The skip-changeset label is the right carrier (AGENTS.md Post-Task step 3: the label is for a diff that publishes nothing from any released package), and Check Changeset is green on the head.

③ Boundary flags

  • Check-runs on the head: every run is success or skipped; no red, none pending. The PR is still a draft.
  • SQL push-down: n/a, no code.
  • Acceptance notes, each answered:
    • Date 2026-11-16 with the cloud amendment's 2026-11-14 in the provenance string: accepted, matches the house style of the earlier notes.
    • Placement under D5.2 after the break-glass note: accepted.
    • Two sentences beyond the order's list (SCIM; "the managed side of D5.2's surface"): both are sentences of the source (6912778378). Keep.
    • idp_pending against D2's "exactly two values": the note states the third value where it is used and the D-body is not rewritten, as the source's last sentence requires. Accepted; the D2 body's own wording is a follow-up for the lane, not this PR.
    • Ruling 7 named in the provenance string and attributed to no sentence: accepted. The string is triage's (6895807038) verbatim.
    • Attribution link and assignee deviations: process only, no effect on the record; for the seat.
  • PR author is objectstack-fleet[bot]: no relay note owed.

④ Design judgment

docs/adr/0135-identity-and-access-architecture.md, judged three ways.

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 member; deactivating a plain member ends the membership; an owner or admin is changed in the console only; better-auth's own sys_invitation / sys_member writes and D9; add and deactivate in the environment, invitation sent by the cloud, password management none; D1, self-hosted and the console invitation unchanged; one projected authorization, the only exception to D5, nothing projected upward; ruling 10 by reference to the note above; SCIM fan-out not needed. Nothing is stated as the cloud's decision that the source does not say. What is left out (the refines-not-reverses relation, Phasing, Subsumes, cloud#500 status, tiering, the cloud-text items of the Supersedes list) is the cloud record's own bookkeeping or commercial half, and the note says where it stays.

Code truth at the head. Each framework claim was read in the tree, callee included:

  • add_sso_user / import_sso_users: visible requires platform-admin standing and features.cloudManaged; targets are the two named doors. True.
  • runAddSsoUser / runImportSsoUsers refuse 409 off a managed environment (PENDING_SSO_MESSAGES.notManaged); the row is inserted with source: idp_pending, no sys_account, then the chosen positions, permission sets and manager. True. The first platform sign-in binds and clears the marker (auth-manager-database-hooks.ts, user-session-admission.ts). True.
  • runAdminBanUser / runAdminUnbanUser ask the host before the write; a typed refusal returns the host's status with nothing written; any other host failure refuses the deactivation (503). runRemoveSsoUser asks before the removal. An add tells the host after its unit of work. True as written.
  • EnvironmentUserHost, EnvironmentUserHostRefusal, the environmentUserHost option: present, and the option is read by the ban and pending-person mounts only. No host implementation exists in this tree, so "cloud-side, not in this repo" is true.
  • cloud-managed.ts: /organization/invite-member, /organization/remove-member and /organization/update-member-role answer 409 on a managed environment (auth-manager-before-hook.ts). True.
  • The projected admin_full_access: no source in this tree keys a grant on a cloud organization role, and hasPlatformAdminStanding is unchanged. The note states the rule in the cloud's words and attributes giving and withdrawing to the cloud; it does not present it as something this repository's code does. True.
  • All 13 anchors name symbols or files that exist at the head.

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.

  • N1 (nit) — "through this repository's SCIM path (D6)": the source ties D6 to "per production environment, not fan-out"; this record's D6 says the SCIM mechanism is cloud ADR-0071 and is not restated here. Naming that record beside D6 would point the reader at the mechanism.
  • N2 (nit) — the last bullet names three of the membership doors a managed environment refuses. cloud-managed.ts's header holds the full census, including the one door deliberately left open; a pointer ("the census is that file's header") would stop a reader inferring the list is complete.
  • N3 (nit) — "holds admin_full_access" sits next to the hasPlatformAdminStanding anchor. Whether a held grant confers platform standing depends on D5's derivation and the tenancy posture, and the grant's shape is the cloud writer's. The sentence is accurate; a designer should not read it as "is a platform administrator" without reading the derivation.

Implemented-by: claude/project-thread-kh9yo1
Reviewed-by: session_01FEkQ5mjfxPu5HKjUtuveBR

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

维护者速读

  • 改了什么:ADR-0135 的 D5.2 下新增一条只增不改的注记(+61 行):托管环境(OS_CLOUD_MANAGED=1)上,凭据归云端,名册和授权归环境。环境管理员在「设置 → 用户」里添加、导入、停用人员,邀请由云端应环境请求发出;组织所有者/管理员在环境里持有 admin_full_access,这是唯一从云端投射下来的授权;自托管不变。
  • 为什么改:云端 ADR-0024 已在 2026-11-14 按 cloud#4465 裁决 7、9、10 修订(cloud PR fix(spec): let a schemaless node own an expression-ledger entry (#4439) #4474 @ 312f2e5e)。本仓 ADR-0135 是它的公开镜像,此前只同步了「托管没有本地应急管理员」那一半(PR docs(adr): ADR-0135 D5.2 — a cloud-managed environment keeps no local break-glass password #33248)。席位和 agent 按 ADR 做设计,缺这条规则就会做出与托管身份冲突的设计。
  • 风险与回滚:只动一份 ADR 文本,不改代码、schema、生成物,不发布任何包。决定仍以云端记录为准,本注记与云端不一致时算本注记的错。回滚即 revert。
  • 先看:新注记里「One authorization is projected from the cloud」一段(唯一的 D5 例外,授予与收回标为 cloud-side),然后是开头一段和四条要点。PR 正文有与云端原文的逐句对照表。
  • 两分钟验证:pnpm check:adr-symbol-anchors 退出 0,报 3717 个锚点(main 9e6fee19 为 3704,多出的 13 个即本注记的代码锚点,全部可解析)。
  • 需要你做的:受管路径(docs/adr/**,Tier H)。契约审核 PASS 记录 6925509469,Head-sha: aeebe2529e4c90e010406bf32549ac8c9829695a。请审阅并合并(或在此 head 上批准,由席位落地)。
  • 席位意见:建议合并。席位逐句对过卡上云端原文(6912778378),凭据/名册分工、裁决 9 的唯一投射授权、SCIM 与自托管不变都在,没有多写的机制;三条 nit 不影响读者,留作后续。

席位核对

Verdict: ACCEPT · head aeebe2529e4c90e010406bf32549ac8c9829695a · card #33184 (p2) · claim 6922793989 · os-dev-report 6933243856 · contract review 6925509469 (review#2, PASS on this head, N1–N3 nits only) · read 2026-11-17T00:06Z.

  • Shape: draft → main, first body line after attribution Fixes #33184; no other card number sits beside a closing keyword. One file, docs/adr/0135-identity-and-access-architecture.md (+61 / −0), matching the claim's file surface. skip-changeset (publishes nothing); Clause-②: no; Metadata-protocol: none. check-governed-merges --pr 34426: Tier H (docs/adr/**; the low-risk arm refuses it: an add under ## Decision with list lines), 61 lines, under the 3000 threshold.
  • Premise measured: at 9e6fee19 ADR-0135 carried the break-glass half only (L245–255) and no roster/projection text; the seat diffed the note against the card's verbatim source 6912778378 and triage 6895807038, sentence by sentence.
  • Gates (check-runs on this head): 49 runs, 26 success, 23 skipped, none red or pending; Lint & Repo Gates success, TypeScript Type Check success, Check Changeset success. Dev: dispatch-gates --commands 21 derived, all exit 0, --ran 21/21.
  • Accepted deviations: pr_create carried the claim's Account: as assignee (os-dev.md rule 2 over the order; seat agreed in-thread); note dated 2026-11-16 with the cloud's 2026-11-14 in the provenance string; two source sentences beyond the order's list (SCIM, D5.2 surface), kept on the review's word.
  • Out of scope / Skills-docs: Metadata-protocol: none, no Skills-docs: line owed. N1–N3 (D6's SCIM pointer to cloud ADR-0071; a pointer to cloud-managed.ts's door census; admin_full_access vs platform standing) — Acceptance notes, not pushed so the PASS stays pinned to this head; dropped — wording nits with no reader-visible rule change.
  • Landing: Tier H. The PR waits for the maintainer: pm:awaiting-merge, reviewers os-zhuang and hotlong requested. An APPROVED review on this head lets the seat land it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 02:15
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 02:15
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit d7980d1 Nov 17, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-kh9yo1 branch November 17, 2026 03:02
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
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/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants