Skip to content

docs(adr-0093): a sign-up admitted by its invitation alone is not bound while its address is unverified - #34909

Merged
os-zhuang merged 5 commits into
mainfrom
claude/sec2-q2gv-adr
Nov 18, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/sec2-q2gv-adr

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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 部分已由 fix(plugin-auth)!: accepting, declining and listing an invitation need a verified email address on every deployment #34883 落地,email_domain 部分已由 fix(plugin-auth)!: a sign-up the email_domain posture admits by an invitation is not bound before its address is verified #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

Verification

At head 3e95e07145, the merge of origin/main (which carries #35035's D3 amendment):

  • The status line keeps both 2026-11-17 entries. docs(adr): ADR-0093 D3 amendment note, bulk import joins the administrator's current organization #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

…not bound; it joins by accepting

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
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 17, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj

The seat adopts the record below, rendered at the contract-review tier by the isolated reviewer of #34883. This record is a review. It is not the landing authority: docs/adr/** is Tier H, and a human merges it after #34883.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: fdb1127eed2424e25b62f748c9bd0b5283c5a5c5
Local-runs: probe — one throwaway worktree at the head to run the ADR anchor and link checkers. check-adr-anchors and check-adr-links (1150 links resolve) both exit 0.
Scope: docs/adr/0093-tenancy-mode-and-membership-lifecycle.md (+16 −1) and the PR body, judged against #34883 at bf3bf857d6.

① Derived judgments

Accuracy against #34883's code: every sentence holds.

  • The scope: the invite_only posture with membershipPolicy: 'auto'.
  • "Not bound while its email address is unverified".
  • "Joins by accepting … or by a platform administrator adding it".
  • "The decision stays at creation (D7)".
  • "Every other creation binds as D1 states".

The note is rule-level wording, with no mechanism and no advisory identifier. It follows the house style of the ADR's two existing dated amendments.

Findings

② Semver level

None. This is docs only, and no changeset is needed.

③ Boundary flags

docs/adr/** is a governed Tier H row and is security-touching, so the low-risk arm does not apply. A human merges this PR.

④ Design judgment

A dated amendment on the owning ADR is what Prime Directive #13 asks for. The note is scoped to the ruled posture.

Implemented-by: claude/sec2-q2gv-adr
Reviewed-by: session_01QSeKYn5CmmdShCJifm6WYj

VERDICT: PASS

…e the ruling's seat once

Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj

席位核对

ACCEPT · head da28d8eec82b603d48b66df0ac07d5e142150ec6 · 2026-11-17T17:20Z

Head move. fdb1127eed → da28d8eec8 is text only: 1 file, +2/−1. It answers N1 and N2 of the contract-review PASS 6955406730, which was rendered at fdb1127eed. The seat read the diff word by word:

Before After
Status line (N2) **Amended** (2026-11-17, maintainer ruling 2026-11-17 (security#2)) **Amended** (2026-11-17, maintainer ruling (security#2))
D1 self-signup bullet (N1) "Self-signup follows the same policy — no signup-specific membership branch." The same sentence, followed by *Except as amended 2026-11-17, below.*

Nothing else moved. The PASS judgments on the amendment note itself stand.

  • check:adr-anchors exit 0.
  • check-adr-links exit 0.
  • check-adr-links --self-test exit 0.

These figures are the dev's, at the head.

Landing. Tier H (docs/adr/**, security-touching): a human merges this PR. Merge it after #34883, because the note names enforcement that exists only once #34883 is on main (PASS N3). The seat marks it ready and does not enable auto-merge.

# Conflicts:
#	docs/adr/0093-tenancy-mode-and-membership-lifecycle.md
@objectstack-fleet objectstack-fleet Bot changed the title docs(adr-0093): an invitation sign-up whose address is unverified is not bound; it joins by accepting docs(adr-0093): a sign-up admitted by its invitation alone is not bound while its address is unverified Nov 18, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

security#2 · os-justin · session_01QSeKYn5CmmdShCJifm6WYj

The seat adopts the record below. It was rendered on this head at the contract-review tier by the isolated reviewer who reviewed #34883 and #34969. The widening follows the maintainer's ruling of 2026-11-18 (option A: one amendment covers both postures).

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3e95e07145287a18902584c9d0d0ede8a2885547
Local-runs: probe — git reads only (merge-tree, diffs, and a byte comparison of the ADR file across 3e95e07145, f28d2257c1 and main 1282a464e9). No suite or gate was run; the body's gate figures are not verified by this seat.
Scope: the resolved head, which merges main 1282a464e9 into f28d2257c1. Its diff against main is one file, docs/adr/0093-tenancy-mode-and-membership-lifecycle.md, +28 −1. Also the PR title and the body's Verification section.

① Derived judgments

  • The head merges cleanly. git merge-tree origin/main 3e95e07145 reports no conflict.
  • docs(adr): ADR-0093 D3 amendment note, bulk import joins the administrator's current organization #35035's content is byte-identical to main's. Main's status line is an unchanged prefix of the head's, and no line of the D3 note appears in the diff.
  • This PR's content is byte-identical to f28d2257c1. That covers the status-line entry, the D1 pointer, the D1 note and both D7 rows. Nothing else moved.
  • The judgment made at f28d2257c1 carries over.
    • Every sentence is true against isAdmittedByInvitationAlone and settleMembership on main. That covers both cases: (a) invite_only, the invitation the sign-up presents; and (b) email_domain, an address off the allowlist that a pending invitation admitted.
    • An address on the allowlist binds as before. The decision is made at creation, and verifying later binds nothing by itself.
    • The wording is rule-level, with no mechanism and no advisory identifier.
  • The title and Verification section now cover both postures and are restated at this head. Both earlier nits are closed.

Findings: none.

② Semver level

None. This is docs only, and no changeset is needed. Clause-②: no and Metadata-protocol: none are truthful.

③ Boundary flags

④ Design judgment

One amendment for one rule names both postures as cases of "admitted by its invitation alone", and states the boundary for an address on the allowlist in both the note and the D7 row. Each 2026-11-17 ruling keeps its own status-line entry and its own note.

Implemented-by: claude/sec2-q2gv-adr
Reviewed-by: session_01QSeKYn5CmmdShCJifm6WYj

VERDICT: PASS

@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 18, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 7d8dcf6 Nov 18, 2026
53 checks passed
@os-zhuang
os-zhuang deleted the claude/sec2-q2gv-adr branch November 18, 2026 09:56
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants