Repository navigation
feat(auth): an invitation is accepted in one step with the proof its mail carries - #34333
Conversation
… row Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
… redeems in one step Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
… the mailbox proof Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
…of leaves nothing that admits it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
…tep door Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
…e applies the caller's bound by presence Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
📓 Docs Drift CheckThis PR changes 4 package(s): 61 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 13 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 179 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 662517f8797b2017d34f21a1ebf87cd22633be6e && git checkout 662517f8797b2017d34f21a1ebf87cd22633be6e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin bdd51769ee827b24355fa1328375bb09c05c8d65 9bb1e6ad52c7830ff808d47255ce3ea37641d556 && git checkout -B drift-repro bdd51769ee827b24355fa1328375bb09c05c8d65 && git merge --no-ff 9bb1e6ad52c7830ff808d47255ce3ea37641d556
node scripts/docs-audit/affected-docs.mjs --json bdd51769ee827b24355fa1328375bb09c05c8d65
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jVPGBoi3MCGoKbW1Hv
|
domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv Hand-off · PR #34333 · Fixes #34257 · 2026-11-16T09:02Z By the maintainer's order to push and hand off, area S1 clocks out. The next seat takes this PR from here.
|
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw Final head · PR #34333 · Fixes #34257 · area o1-A · head 9b95ba9 · 2026-11-16T10:18Z Area o1-A took this PR over from
|
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5kcNtBBExhz4DZqYbi 席位核对 · REWORK (L1, first read) · Head-sha: 9b95ba9 · 2026-11-16T10:22ZL1 thread L1-a for area o1-A, on the final head declared in 6913652042. Read: card #34257, the PR body, and the full diff against merge base What holds
Must
Should
Not read this roundGate check-runs are not re-read: the verdict is REWORK, and the next head brings its own runs. The area's 6913652042 records every run on this head as success or path-skipped. After the fix round, I read only the delta. |
…ne-step door Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nNrLRm8ssuwWcBVcw
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw Final head · PR #34333 · Fixes #34257 · area o1-A · head 9bb1e6a · 2026-11-17T00:29Z Head
|
|
repo:objectstack#1 · os-project-manager · session_01FEkQ5kcNtBBExhz4DZqYbi 席位核对 · ACCEPT (L1, delta r6) · Head-sha: 9bb1e6a · 2026-11-17T00:31ZL1 thread L1-a for area o1-A, reading the delta from my ACCEPT 6932010221 at
Landing: L1 holds at this final head. |
|
l2-review#3 · os-project-manager · session_01FEkQ5nmEyrd1qh95f5Vofd Contract reviewServed-tier: Delta read of record 6932088128 (PASS at ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe contract, The ADR note,
S10 (should-fix): closed S9 (should-fix): closed S9 is carried, not fixed in this PR. The carrier is the private advisory GHSA-f9wh-5w94-j255, acknowledged by the security seat in 6932231214 (signed security#1, on the seat's mailbox), which names S9 of record 6932088128 and states that this PR need not fix it. Ruling 6929091056 makes a seated security seat's acknowledgement the route, and S11 (should-fix) — N8: closed. N9 (nit) — the test file. Both race pins change a standing-grant store. No case changes what the second load of the account returns (the verified flag, a linked provider, the second-factor flag, another account at the address, a failed load), so a second judgment fed the first load would stay green. N10 (nit) — the stored-proof check before the revocation is a read, not a hold: a request that loses the consume after it can answer N5: kept. Earlier findings. M1 to M4, S1 to S8, N1 to N4, N6 and N7 were closed by the earlier records. The files they rest on are unchanged since Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Seat record · 2026-11-17T02:45Z · Head-sha: 9bb1e6a Taken over from seat 维护者速读
席位意见:同意合并。路线照维护者裁决 6929091056 执行;每一个读不准的情况都退回「去登录」,失败方向是多走一步,不会多给权限。改动超过 3000 行(+3206/−29),按规则交人审,大头是测试和 11 个语言包。 席位核对
|
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Tier H hand-off, written at 2026-11-17T02:46Z: the seat record is 6936430374, pinned to head |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Merged as |
Requested by Steedos · project thread
Fixes #34257
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
POST /api/v1/auth/organization/accept-invitation-one-step,客户端方法acceptInvitationOneStep(@object-ui/auth),spec 可选键SendTemplateInput.deliverOnlyData;这三个名字请在批准时确认。复制的链接不带凭证,仍走今天的流程。OS_CLOUD_MANAGED环境里)。sys_device_code新增一个user_id索引(@objectstack/platform-objects);它在OS_CLOUD_MANAGED=1时一律拒绝(409),自托管与控制面不受影响;原有路由和复制链接的行为不变。回滚即 revert 本 PR,已发出的邮件链接退回今天的登录流程。packages/plugins/plugin-auth/src/invitation-mailbox-proof.ts(凭证核验、各道闸门、oneStepSignInState白名单式收口规则:只有逐项读到规则所列各项都不存在才设密码,读不到或读不懂一律回答“去登录”;本插件挂载的每张按用户归属的表都已分类,API 密钥、OAuth 授权与令牌、OAuth 客户端、设备授权、二次验证、SSO 提供方、SCIM 凭据与目录关联都算作凭据,USER_KEYED_STORES表与测试里的挂载清单比对;用户行上的登录身份(手机号,无论是否验证)也算作凭据,USER_ROW_COLUMNS表与挂满全部插件后厂商用户模型的列比对);packages/plugins/plugin-email/src/email-service.ts的sendTemplate(只投递不入库);docs/adr/0138-…新增的一条修订。pnpm --filter @objectstack/plugin-auth exec vitest run src/invitation-one-step-acceptance-34257.test.ts,预期 111 个用例全绿。What changes
SendTemplateInput.deliverOnlyData(packages/spec/src/contracts/email-service.ts, a spec contract widening, owed review at the contract tier). Render values delivered with the message and never written to the stored mail row, which gives no sign they were overlaid. Required template variables are checked againstdataalone. A send carrying them is delivered inline, never through the durable queue, so its sender gives up queued delivery where a queue is mounted. Only the server-side template send declares the key:POST /email/sendand a script'sctx.email.sendtake aSendEmailInput, which has none.POST /api/v1/auth/organization/accept-invitation-one-step(route ledger row, mounted-surface entry, envelope declaration, rate-limit rule and breach-check path list).RATE_LIMIT_EXCEEDED).OS_CLOUD_MANAGED=1) every request carrying a proof answers the cloud-managed refusal,409 RESOURCE_CONFLICT, before the proof is read. Elsewhere the invitation must be pending and the proof must be the one issued for it, its address and its expiry. A bad proof gets oneINVALID_TOKENrefusal that does not say which check failed, and the real proof stays usable.sign_in, including one in a state no rule names and one whose reading fails, and the proof stays unspent. Every reading is taken again once the account's sessions are revoked and before the password is written; an account that no longer passes then answerssign_inwith its sessions revoked, and the proof stays unspent. Every store this plugin mounts that is keyed by a user, and every column of the vendor's user model with every plugin this plugin can mount, is classified as a claim the judge reads or as no claim, and a test holds each classification to what is mounted. The classification covers what this plugin mounts and nothing another package mounts. Round r5 dropped the earlier over-broad sentence that the door reads the mailbox as the account's one claim; round r6 adds the sentence on the second reading (S10).oneStepSignInState) is an allow-list: it lets the password be set only when every value it reads is positively the one that carries no claim it reads. A value no rule names (a stored flag in a form it does not read, an identity source no rule names) answerssign_inasunrecognised, never a pass. Its reasons are one exported list (ONE_STEP_SIGN_IN_STATES, now twenty-one: the eight before,verified_phone,phone_number,identity_unreadable,api_key,oauth_consent,oauth_token,oauth_client,device_code,sso_provider,scim_credential,idp_linked,grant_unreadableandunrecognised), and the test holds one case per reason.USER_KEYED_STORES): each column of an object in the plugin's manifest (authIdentityManifest) that referencessys_useror whose name ends inuser_id. A claim store is read by the judge; every other store carries a one-line reason it is no claim. The pin finds a user column by that reference or that name only, so a store holding a user's id in a plain column under another name would pass it unclassified; the module doc and the pin say so. It reads this plugin's manifest only, so a store another package mounts is outside it.On the existing-account path only, the door reads each standing-grant store by one indexed lookup on
user_id,idonly, limit 1, revoked and expired rows included (readStandingGrant). Any row answerssign_inwith that store's reason. A table that does not exist holds no rows (isMissingTableError, naming the object read); any other failure answerssign_inasgrant_unreadable.The classification, once (
USER_KEYED_STORES; the mounted-set pin holds it to the manifest):sign_inreasonsys_api_key.user_idapi_keysys_oauth_consent.user_idoauth_consentsys_oauth_access_token.user_idoauth_tokensys_oauth_refresh_token.user_idoauth_tokensys_oauth_application.user_idoauth_clientsys_device_code.user_iddevice_codesys_two_factor.user_idsecond_factorsys_sso_provider.user_idsso_providersys_scim_connection_credential.user_idscim_credentialsys_scim_user.user_ididp_linkedsys_scim_subject.user_ididp_linkedsys_scim_projection_grant.user_ididp_linkedsys_scim_identity_tombstone.user_ididp_linkedsys_account.user_idlinked_providersys_session.user_idsys_session.impersonated_bysys_member.user_idsys_team_member.user_idsys_membersys_invitation.inviter_idsys_user.manager_idsys_user.accountable_user_idsys_user_preference.user_idsys_personal_view.user_idsys_scim_group_member.scim_user_idsys_scim_user.user_id, a claimsys_scim_projection_grant.scim_user_iduser_idis the claimsys_scim_connection_binding.decommission_cursor_user_idA sign-in identity on the user row is a claim whether or not it is verified. Every column of the vendor's user model, with every plugin this plugin can mount, is classified (
USER_ROW_COLUMNS), and a pin holds that set equal to the user model of the composed auth manager with every plugin flag on. The door reads each sign-in identity column off the storedsys_userrow (readUserRowSignIn: one read byid, as the system), so a value written while its sign-in plugin is not mounted counts too; its presence answerssign_in, and a row it cannot read answersidentity_unreadable. A row that carries no value for the column reads as holding no phone number, the same as a null (N8; the function's doc says so).sign_inreasonphone_numberphone_numberphone_number_verifiedverified_phonetwo_factor_enabledsecond_factoremail_verifiedverifiedemailname,imagecreated_at,updated_atrolebanned,ban_reason,ban_expiresThe plugin's
passkeysflag is not wired today, so no passkey store is mounted; the module doc says that if it is ever wired, a passkey is a claim the judge must read.sys_device_codegains an index onuser_id(@objectstack/platform-objects), so every claim store is read by an indexed lookup.sign_in, with the sessions revoked, no password written and the proof unspent (S10). The second reading comes before the spend so that the rule's "the proof stays unspent" holds for everysign_in.400 PASSWORD_REUSEwith the proof unspent) and extended after, as the reset door does; the address is verified, a session is issued, and the invitation is accepted.verify_email; the module doc names both cases, an address that is not the invited one and one that is not verified.cloud-managed.tsandsso-only-local-password.tsname the door among the password doors;CLOUD_MANAGED_REFUSAL_MESSAGESgains the door's message.session-tombstone.tsledgers the door withpassword_reset.GET /api/v1/auth/oauth2/client-nameread that feat(plugin-auth): the environment-access refusal carries the host's reason and sentence #34265 adds (Auth: the environment-access refusal carries the host's reason, and the cloud sign-in page names the organization (client_name) on an OAuth hand-off #34168), with its 404, 400 and 429 answers; and the refinement of ruling 6413975861 Q2 B, which the note states awaits the maintainer's approval on this Tier H hand-off.packages/qa/dogfood/test/anonymous-door-sweep.classification.ts): class 2 gains the client-name read by its route, and the one-step door as a door the auth catch-all serves, probed by its own path and held to the class's answer.@object-ui/auth:acceptInvitationOneStep(input)on the client, the context anduseAuth, with the typesAuthInvitationOneStepInputandAuthInvitationOneStepOutcome.organization.accept.*keys in every pack (zh-Hant generated).Tests
New tests, in card-named files; every test name states a rule:
packages/plugins/plugin-auth/src/invitation-one-step-acceptance-34257.test.ts: 111 tests over a realAuthManagerand a memory engine. New in r6: a grant that appears after the first reading, and a reading that fails on the second take, each answersign_inwith no password written, the address not verified, the earlier session revoked, and the same proof accepted afterwards; a proof spent by another redemption after this one was admitted is refused with no session revoked and no password written; the user-row read carries the system context. Every gate the changeset names has a case asserting status and code (or thesign_inoutcome), that the tables a redemption writes are unchanged, and that the same proof is redeemed afterwards: sign-up off, SSO-only (new address), password length, complexity, breach, audience admission, missing name, the per-client-address window, the cloud-managed refusal, and each of the twenty-one reasons of the closing rule (a table typed over the exported list, with a completeness pin that holds its keys equal to the list), including the accounts outside the eight earlier states: one with a verified phone number, one whose user row holds a phone number that is not verified (phone sign-in not mounted), one whose user row cannot be read, one whose identity source no rule names, one holding an API key (a revoked one), one holding an OAuth client consent, and one whose grants cannot be read, each answeringsign_inwith nothing written and the proof unspent, and accepted once it leaves that state. A grant table that does not exist holds no grant: with every grant table missing, that account is accepted. Per claim store, over a written-out list of the claim stores (CLAIM_STORES) that a pin holds equal to the module's standing grants: an account holding a row of that store answerssign_inwith nothing written and the proof unspent, and is accepted once the row is gone; the judge answers that store's reason for a row, andgrant_unreadablewhen it cannot be read or was not read. The classification pin derives every user-keyed column from the plugin's own manifest (authIdentityManifest, its objects and the fields it adds) and holds that set equal to the classification table's keys, so a store mounted later is red until it is classified; it also holds that each claim store declares an index led byuser_id. The user-row pin composes the auth manager with every plugin flag on (a scan of the plugin list's flag table holds each flag on, and the composed instance names the vendor plugins it mounts), derives the vendor user model's columns from it, and holds that set equal toUSER_ROW_COLUMNS; it holds the sign-in identity list the door reads (phone_number) and the flags the judge reads, written out. A phone number on the user row with phone sign-in mounted answerssign_inwith nothing written and is accepted once it is cleared. The user-row reading isokonly for the one stored row: no read surface, a failed read or no row is not. The write-order pin: on an account whose password is replaced, the first session write comes before the first account write. The judge itself has a table: the one allowed reading sets the password, and one step off it on each value it reads answers its reason, including a stored flag in a form it does not read (unrecognised), a phone number on the user row (phone_number), a phone number stored in no form it reads or empty (unrecognised), a user row that cannot be read or was not read (identity_unreadable), an API key, an OAuth client consent, and either grant reading unreadable. The password history: a password in the history answersPASSWORD_REUSEwith nothing written and the proof unspent, and the replaced hash is recorded after acceptance. Also: two concurrent redemptions accept exactly once; the password-age stamp and forced-change clear in both modes; the revoke reason on the ended sessions; the breach-check list against the installed vendor default; the anonymous session-mode refusal'sUNAUTHENTICATEDcode.packages/plugins/plugin-email/src/send-template-deliver-only-34257.test.ts: 3 tests.ui/packages/auth/src/__tests__/acceptInvitationOneStep-34257.test.ts: 4 tests.ui/packages/app-shell/src/console/organizations/__tests__/acceptInvitationOneStep-34257.test.tsx: 10 tests.packages/plugins/plugin-auth/src/auth-manager.test.ts: two plugin-list pins name the new plugin.packages/qa/dogfood/test/anonymous-door-sweep.dogfood.test.ts: one leg for the class-2 doors a catch-all serves.Runs at 9bb1e6a (the final head, after the merge of origin/main bdd5176), under the shared verify lock: each part's own exit recorded
acceptedinstead ofsign_in).src/invitation-one-step-acceptance-34257.test.tsat 9bb1e6a: exit 0, Test Files 1 passed (1), Tests 111 passed (111) (VERDICT command-exit 0).pnpm turbo build --filter=@objectstack/dogfood --concurrency=2: BUILD EXIT=0.pnpm --filter @objectstack/plugin-auth test: EXIT=0, Test Files 281 passed (281), Tests 5874 passed, 10 skipped (5884).pnpm --filter @objectstack/plugin-auth typecheck: EXIT=0.pnpm --filter @objectstack/plugin-email test: EXIT=0, Test Files 54 passed (54), Tests 1023 passed (1023).pnpm --filter @objectstack/plugin-email typecheck: EXIT=0.Ablations at 9bb1e6a: 2 legs, each mutated through scripts/ablation-replace.mjs (anchor 1 to 0, blob changed), red, then restored (blob equal to the HEAD blob 0c669336, git diff HEAD empty)
Runs at 7774f4a (the previous head), under the shared verify lock: each part's own exit recorded
src/invitation-one-step-acceptance-34257.test.ts, at the start of the ablation lock hold: exit 0, Test Files 1 passed (1), Tests 108 passed (108) (VERDICT command-exit 0).pnpm exec turbo build --filter=@objectstack/dogfood --concurrency=2(covers plugin-auth and plugin-email): BUILD EXIT=0.pnpm --filter @objectstack/plugin-auth test: EXIT=0, Test Files 281 passed (281), Tests 5871 passed, 10 skipped (5881).pnpm --filter @objectstack/plugin-auth typecheck: EXIT=0.pnpm --filter @objectstack/plugin-email test: EXIT=0, Test Files 54 passed (54), Tests 1023 passed (1023).pnpm --filter @objectstack/plugin-email typecheck: EXIT=0.pnpm --filter @objectstack/dogfood exec vitest run test/anonymous-door-sweep.dogfood.test.ts: SWEEP EXIT=0, Test Files 1 passed (1), Tests 21 passed (21).@objectstack/platform-objectsis not touched this round.Ablations at 7774f4a: 6 legs, each mutated through scripts/ablation-replace.mjs (anchor 1 to 0, blob changed), then restored (blob equal to the HEAD blob 5df10a62, git diff HEAD empty)
The source resolves by relative import, so no build sits between mutation and run. Each leg ran the whole card file.
phone_numberstate case and the phone-mounted case (the door set the password).identity_unreadablestate case.phone_numberandidentity_unreadablestate cases and the phone-mounted case.phone_numberclassified as no sign-in: 9 red, the user-row classification pin, the four phone judge rows, the user-row reading pin, the phone-mounted case, and thephone_numberandidentity_unreadablestate cases.tryand lands on the sameok: false.Runs at 3c49959 (the previous head), under the shared verify lock: each part's own exit recorded
src/invitation-one-step-acceptance-34257.test.ts: Test Files 1 passed (1), Tests 97 passed (97) (VERDICT command-exit 0).pnpm exec turbo build --filter=@objectstack/dogfood --concurrency=2(covers plugin-auth, plugin-email and platform-objects): BUILD EXIT=0.pnpm --filter @objectstack/plugin-auth test: EXIT=0, Test Files 281 passed (281), Tests 5860 passed, 10 skipped (5870).pnpm --filter @objectstack/plugin-email test: EXIT=0, Test Files 54 passed (54), Tests 1023 passed (1023).pnpm --filter @objectstack/platform-objects test: EXIT=0, Test Files 123 passed (123), Tests 2044 passed (2044).pnpm --filter @objectstack/dogfood exec vitest run test/anonymous-door-sweep.dogfood.test.ts: SWEEP EXIT=0, Test Files 1 passed (1), Tests 21 passed (21), none skipped.Ablations at 3c49959: 13 legs, each mutated through scripts/ablation-replace.mjs (anchor 1 to 0, blob changed), red, then restored (blob equal to the HEAD blob 63530132, git diff HEAD empty)
The source resolves by relative import, so no build sits between mutation and run. Each leg ran the whole card file.
sys_oauth_access_token,sys_oauth_refresh_token,sys_oauth_application,sys_device_code,sys_two_factor,sys_sso_provider,sys_scim_connection_credential,sys_scim_user,sys_scim_subject,sys_scim_projection_grant,sys_scim_identity_tombstone. Each leg: 3 or 4 red, namely the claim-store pin, that store's judge row, that store's door case (the password was set), and the reason's state case where that store is the one the state case uses.sys_member.user_id): 1 red, the mounted-set pin.Runs at 518f1d6, under the shared verify lock: each part's own exit recorded
src/invitation-one-step-acceptance-34257.test.ts: Test Files 1 passed (1), Tests 66 passed (66) (VERDICT command-exit 0).pnpm turbo run build --filter=@objectstack/dogfood --concurrency=2(covers plugin-auth and plugin-email): BUILD EXIT=0.pnpm --filter @objectstack/plugin-auth test: EXIT=0, Test Files 280 passed (280), Tests 5793 passed, 10 skipped (5803).pnpm --filter @objectstack/plugin-email test: EXIT=0, Test Files 54 passed (54), Tests 1023 passed (1023).pnpm --filter @objectstack/plugin-auth typecheck: EXIT=0.pnpm --filter @objectstack/plugin-email typecheck: EXIT=0.pnpm --filter @objectstack/dogfood exec vitest run test/anonymous-door-sweep.dogfood.test.ts: EXIT=0, Test Files 1 passed (1), Tests 21 passed (21), none skipped.Ablations at 518f1d6: 4 legs, each mutated through scripts/ablation-replace.mjs, red, then restored (blob equal to the HEAD blob, git diff HEAD empty)
The source resolves by relative import, so no build sits between mutation and run. Each leg ran the whole card file.
api_keyaccount case (the door set the password).oauth_consentaccount case.grant_unreadableaccount case stayed green, because an unreadable reading carries noheld: falseand the two grant checks then answersign_inthemselves: the judge fails closed there twice.sign_ininstead of being accepted).Runs at 0e8a0d3
Runs at b60bbe4
pnpm --filter @objectstack/spec check:generated: exit 0.Runs at 4de8ae8 (before the merge; the merge brought only main's changes and the cloud-managed message-list conflict, resolved by keeping both sets)
pnpm --dir ui exec vitest runover both card files andpackages/app-shell/src/console/organizations: Test Files 20 passed (20), Tests 204 passed (204).pnpm --filter @object-ui/auth type-check: exit 0.pnpm --filter @object-ui/app-shell type-check: NOT MEASURED locally, it stopped on unbuilt@object-ui/*dists elsewhere in the package; CI Type Check UI is the reading.Ablations at 0e8a0d3: 3 legs, each mutated through scripts/ablation-replace.mjs, red, then restored (blob equal to HEAD, git diff HEAD empty)
The source resolves by relative import, so no build sits between mutation and run.
Ablations at the previous round: 22 legs, one per gate or rule pinned here, each mutated through scripts/ablation-replace.mjs, red, then restored (blob equal to HEAD, git diff HEAD empty)
Run at 2d7ac40 (the breach-list leg at 4de8ae8, after its first attempt was refused by the tool because its replacement text already occurred in the file; that attempt ran nothing and is not counted). Each line: the rule broken, then what went red. The source resolves by relative import, so no build sits between mutation and run.
The earlier rounds' 21 legs, below, were not re-run: apart from the rename, the code they mutate is unchanged, and the two fallbacks they covered are re-covered by the closing-rule legs above.
Ablations from earlier rounds (at fcc0f01 and before, under the old route name): every negative pin then, mutated through scripts/ablation-replace.mjs, red, then restored (blob equal to HEAD, git diff HEAD empty)
Each line: the rule broken, then what went red. Assertion text is not quoted.
Acceptance notes
accept-invitationroute is unchanged; its narrowing is auth: the vendor accept-invitation route admits a session whose email is unverified; require a verified address there too (narrowing, after #34257) #34272.main(feat(plugin-auth): the environment-access refusal carries the host's reason and sentence #34265) with this branch's merge of main; its class-2 row is read by the sweep.sign_infrom it leaves the proof unspent, as the rule says of everysign_in. The sessions it revoked stay revoked. The revocation runs only while the admitted proof is still at rest, so a double submit whose twin already redeemed the proof does not end the twin's new session.Verification
origin/mainbdd5176 merged with a merge commit (1022695); main changed none of this PR's files, and the lockfile did not move.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, 127 families) at 9bb1e6a, each exit captured before any pipe: 112 run, all exit 0; 15 NOT MEASURED (the run was stopped when development stopped, frompnpm check:slot-lookupon);--ranwas not run. CI is the reading for those.git merge-tree --write-treeagainstorigin/mainbdd5176 exits 0. Four other open PRs touch a file of this diff (34429, 34477 and 34494 sharescripts/engine-double-contract.pinned.json; 34472 shares the locale packs);git merge-treeagainst each head exits 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5nNrLRm8ssuwWcBVcw