Repository navigation
Commit 7d8dcf6
docs(adr-0093): a sign-up admitted by its invitation alone is not bound while its address is unverified (#34909)
Clause-②: no
Metadata-protocol: none
> **Governed / Tier H.** This diff touches `docs/adr/**` only, a Tier H
row of `GOVERNED_SURFACES`. It is security-touching, so the low-risk
add-only arm does not apply: it lands by the maintainer's hand or an
authorized approval. It records rules that are already on `main`: #34883
(`invite_only`) and #34969 (`email_domain`).
## 维护者速读
- 改了什么:ADR-0093 加一条带日期的修订,含状态行一句、D1 下一段修订说明(D1 自助注册一句加“除 2026-11-17
修订外”的指引)、D7
边界表两行。规则是:只凭邀请获准的注册,邮箱未验证时不绑定组织,验证后接受邀请入组,或由平台管理员加入。覆盖两种情形:`invite_only`
下凭所出示邀请获准的注册;`email_domain`
下地址不在白名单、凭发给它的待接受邀请获准的自助注册。白名单内的地址按域名规则获准,照旧绑定。
- 为什么改:按维护者裁决(security#2)把已落地的规则记进
ADR,D1“每个用户创建即入组”的表述不再与代码相左。`invite_only` 部分已由 #34883 落地,`email_domain`
部分已由 #34969 落地。
- 风险与回滚:纯文档,无代码;回滚即 revert。
- 先看:`docs/adr/0093-tenancy-mode-and-membership-lifecycle.md` 的状态行和 D1
下的修订说明。
- 两分钟验证:`pnpm check:adr-anchors && node
scripts/check-adr-links.mjs`,预期都为 0。
- 需要你做的:按 Tier H 批准本 PR。
## What changes
All in `docs/adr/0093-tenancy-mode-and-membership-lifecycle.md`,
following the house style of the ADR's existing dated amendments:
- **Status line:** one `**Amended**` entry, dated 2026-11-17 and citing
the maintainer ruling (security#2), for D1 and D7. It follows the D3
entry that `main` added the same day, which is kept as it stands on
`main`. A sign-up admitted by its invitation alone is not bound while
its email address is unverified. The two cases are `invite_only` (the
invitation the sign-up presents) and `email_domain` (an address off the
allowlist that a pending invitation admitted). Such a sign-up joins by
accepting the invitation.
- **D1, the self-signup bullet:** an italic pointer, *Except as amended
2026-11-17, below.*, marked the way D8.1 is marked.
- **D1, the amendment note:** with `membershipPolicy: 'auto'`, a sign-up
admitted by its invitation alone is not bound while its email address is
unverified. The note names both cases:
- (a) `invite_only`: a sign-up admitted by the invitation it presents;
- (b) `email_domain`: a self-serve sign-up whose address is off the
allowlist and that a pending invitation addressed to it admitted. An
address on the allowlist is admitted by the domain rule and binds as
before.
The note also says:
- Such an account joins by accepting the invitation once its address is
verified, with the invitation's role, or a platform administrator adds
it.
- Verifying the address later binds nothing by itself; membership is
decided at creation (D7).
- Every other creation binds as D1 states.
- The rule is enforced by
`auth-manager-membership-admission.ts#settleMembership`, which reads the
admission that `audience-posture.ts#isAdmittedByInvitationAlone`
decides. Both functions were checked against `main`.
- **D7:** two edge-case rows, one for `invite_only` and one for
`email_domain`.
No code, schema, changeset or published file changes.
## Acceptance notes
- It records rules already on `main`: #34883 for `invite_only` and
#34969 for `email_domain`.
- Rule-level wording only.
## Verification
At head `3e95e07145`, the merge of `origin/main` (which carries #35035's
D3 amendment):
- The status line keeps both 2026-11-17 entries. #35035's entry and its
D3 amendment note are byte-identical to `main`. This PR's status-line
entry, D1 pointer, D1 note and both D7 rows are byte-identical to
`f28d2257c1`. Compared with `main`, nothing else in the file moves: 1
file, +28/−1.
- `pnpm check:adr-anchors`: exit 0.
- `node scripts/check-adr-links.mjs`: exit 0.
- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 21 families for the diff, against
merge base `1282a464e`. All 21 ran and exited 0, once the
`@objectstack/lint` closure was built for
`check:doc-formula-expressions`. `--ran` reconciliation: 21 derived, 21
run, 0 NOT-MEASURED.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj)_
<!-- signed: security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj
-->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9f352e8 commit 7d8dcf6
1 file changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
171 | 196 | | |
172 | 197 | | |
173 | 198 | | |
| |||
457 | 482 | | |
458 | 483 | | |
459 | 484 | | |
| 485 | + | |
| 486 | + | |
460 | 487 | | |
461 | 488 | | |
462 | 489 | | |
| |||
0 commit comments