Repository navigation
Description
domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx
Filing gate: a maintainer-ruled execution term not yet built (objectstack-ai/cloud#4465, quoted on #33181 comment 6870710213); follow-up of #33181 / draft PR #33227. ⛔ Not a claim; triage sets the lane and grade.
What is missing
#33181 adds pending, SSO-only people on a cloud-managed environment (POST /admin/add-sso-user, POST /admin/import-sso-users) and a host seam, the auth plugin's environmentUserHost option (environment-user-host.ts). The host is told after a person is added and asked before a person is deactivated (admin/ban-user) or reactivated (admin/unban-user). It can refuse with a typed 409 / 403. The event carries the administrator's cloud user id from their linked objectstack-cloud account.
Two execution terms from the rulings that #33181 does not cover:
- Cancel on delete. No door deletes a pending row on a Free or Team hosted kernel, so a typo'd address can't be cancelled, and the host has no member that tells it to cancel the invitation. Deactivating a pending row does tell the host (
userDeactivated, withsource: 'idp_pending'), but the row stays. - Durable outbox with retry, and per-row invitation status. Today the seam is one call per operation. A host that fails is reported on the answer (
host: { notified: false, reason: 'host_failed' }) and logged, and re-adding a still-pending person tells the host again. Nothing retries on its own, and Setup → Users has nothing to read an invitation status from.
The rulings this follows
Rulings relayed on #33181, comment 6870710213 (objectstack-ai/cloud#4465). Execution terms for the environment, verbatim:
- A durable outbox with retry (mirror
sys_environment_revocation), with per-row invitation status in Setup → Users.- Deleting or deactivating a pending row cancels its cloud invitation (the email-typo case).
- No database transaction is held across the invite call. The cap calls back into the environment (
GET /_admin/environments/:id/ai-seats, which fails closed with 503).
Edge path, verbatim:
- A pending row that never accepts: it stays pending, can be re-sent, and can be deleted, which cancels the invitation.
What this card would decide and build
- A pending-only remove door (for example
POST /admin/remove-sso-user): platform-admin gated, cloud-managed only, refused for any row that is notidp_pending, removing the row with its grants and membership. Plus a host member (for exampleuserRemoved) that cancels the invitation, with the same typed-refusal and fail-open rules as the other members. - Where the outbox lives. Either it's host-owned: the cloud enqueues into its own outbox when the seam calls it, and keeps the invitation status. Or it's a framework object: an environment-side outbox platform object mirroring
sys_environment_revocation, with retry and a status Setup → Users reads. That choice is the maintainer's. The second option adds a platform object and a worker. - The Setup → Users status column and console entries stay with Managed environments: re-show the add-people actions in Setup → Users (reverse #25295 / #25309's visible predicates for adding) #33186 / Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187.
Seam
Seam: plugin-auth:environment-user-host.ts (EnvironmentUserHost) → cloud host (invitation create / cancel).
Dedupe words: remove-sso-user, cancel pending invitation, environment user outbox, invitation status Setup Users, environmentUserHost retry.
Activity
objectstack-fleet commentedon Nov 14, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server· p1 ·pm:blocked· 2026-11-14T06:44Z⛔ Not a claim.
Blocked-by: #33181
objectstack-fleet commentedon Nov 15, 2026
director#1 · hotlong · session_d06825b978c64fb2bfd93ca4c75ac7cd
2026-11-15T19:15Z Unblock reading, director patrol. #33181 is closed by PR #33227 (merge
cbb876c1bd, merged 2026-11-15). The host seam this card extends is on main.pm:blocked→pm:queue. The card's own acceptance still governs; re-read its facts on current main before claiming (the pin moved 18.4 → 18.5 since it was filed).objectstack-fleet commentedon Nov 15, 2026
domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx
Claim: PM patrol round, card thread · 2026-11-15T20:25Z · p1 on the maintainer's word 「都是p1,车道自己认领就可以」 (triage 6873317580); unblocked by director 6899819653
Session:
session_01L9qibx2sFAzcNAfxCPdUtFAccount:
os-teslaBranch:
claude/project-thread-32vsaqDomain:
domain:serverSeat:
domain:server#7File surface:
packages/plugins/plugin-auth/src/— the host seam (environment-user-host.ts), the pending-user doors (pending-sso-users.ts), deactivate / reactivate (admin-ban-endpoints.ts,user-ban-write.ts), a new remove door, a new outbox / worker module, the auth route ledger; the outbox object underpackages/platform-objects/src/with its generated bundles; the dogfood admin sweeps; an error-code ledger row only if a new code is needed; the auth docs page on pending people; one root changeset. Every file is named in a shape note before code. Stop on breach.Container & model:
L,mode:thread,model: default,effort: highClause-②: yes (widening) — a new remove door, a new host member and a new platform object; any existing door that newly refuses something is declared as a narrowing arm in the shape note
Metadata-protocol: none — unless a spec enum or schema key changes, which the shape note states before code
Responsibility: a typo'd pending address on a hosted environment cannot be cancelled, and a failed host call is never retried, objectstack | the host learns of a pending person only by one fail-open call | every hosted environment admin adding people, and Setup → Users (#33186 / #33187), which reads the invitation status
Thread-read: 6899819653
Premise: rulings read from #33181 comment 6870710213; re-measure at
origin/main(the pin moved 18.4 → 18.5); the outbox is built environment-side, read from the rulings' "Execution terms for the environment"; anything beyond those terms stops asneeds_decisionSerial constraints cleared: write in parallel with PR #34050 (
admin-user-endpoints.ts,pending-sso-users.ts) and PR #34124 (pending-sso-users.test.ts); land serially, mergingmainafter whichever lands firstobjectstack-fleet commentedon Nov 15, 2026
domain:server#7 · os-tesla · session_01L9qibx2sFAzcNAfxCPdUtF
os-dev-report
{ "issue": 33228, "status": "done", "branch": "claude/project-thread-32vsaq", "pr": "https://github.com/objectstack-ai/objectstack/pull/34162", "session": "session_01L9qibx2sFAzcNAfxCPdUtF", "premise_still_valid": true, "summary": "Adds POST /api/v1/auth/admin/remove-sso-user (platform admins, cloud-managed only) that removes a pending person and cancels their invitation through the host's optional userRemoved, falling back to userDeactivated for a pending person as the shape reply ruled. Every host call about a person (added, pending deactivation, reactivation, removal) is now recorded in the new engine-owned object sys_environment_user_outbox: the door makes the first call inline (typed refusals stay synchronous), no transaction is held across a host call, and a DispatchLoop worker with a compare-and-set lease retries with backoff 1m to 12h, terminal failed after 12 attempts or on a typed refusal. The worker and the accepted trigger boot only on a cloud-managed kernel with a host wired; events carry an optional deliveryId (the row id).", "tests": "plugin-auth full suite 5564 passed / 10 skipped (278 files); platform-objects 2011 passed (122 files); cli ownership census tests 65 passed; spec registry tests 31 passed. New: environment-user-outbox.test.ts 22, pending-sso-users.test.ts +17 (68). Ablations through scripts/ablation-replace.mjs + plugin-auth rebuild + ablation-dist-preflight, each red then restored blob == HEAD with empty git diff HEAD: lease CAS without status (1 red), refusal treated as retryable (2 red; its dts build failed under the mutation, suites import source), not-pending check (1 red), restrict re-invite (1 red), userDeactivated fallback (2 red across both files), boot cloud-managed check (1 red), accepted trigger marker check (CONTROL red).", "gates": "dispatch-gates --commands at the final tree: 131 derived families + 6 artifact-roster gates whose roster sits in a touched directory + pnpm lint + typecheck (plugin-auth, platform-objects, cli, spec tsc) + the tests above: 146/146 exit 0, each with </dev/null, codes on disk. --ran: '131 derived famil(ies) accounted for — 131 run, 0 NOT-MEASURED'. First pass found and fixed a plugin-auth dts type error and two census drifts (platform-object tenancy census, tenant-audit write-call-site census + its prose figures). After merging origin/main 86350e12 once, the census and changeset gates reran exit 0. PR CI was still running at report time.", "dogfood_battery": "n/a — no ! in the PR title and a (widening) arm", "mcp_calls": "0 GitHub MCP calls", "api_writes": "0 REST proxy writes; relay writes: 2 (pr_create #34162, this comment)", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "Out-of-surface but gate-required edits: packages/spec/src/system/constants/platform-object-names.ts, packages/cli/src/utils/organization-ownership-inventory.ts, scripts/platform-object-tenancy-census.json, docs/audits/2026-08-tenant-audit-write-call-sites.counts.md, content/docs/permissions/tenant-audit-census.mdx — carrier: PR body · noted, not filed", "No explicit admin audit row for a removal: the admin audit writer union takes create/update only; the delete runs attributed to the administrator — carrier: PR body · noted, not filed", "Tier H: 3368 lines with the generated bundles (about 2000 hand-written, bundles in their own commit e1f11642); landing needs os-zhuang after contract review — carrier: PR body" ] }objectstack-fleet commentedon Nov 16, 2026
domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx
维护者速读 · PR #34162 @
01d65d85· 2026-11-16T00:32Zsys_environment_user_outbox,失败了由后台按退避自动重试,Setup → Users 可以按行读到邀请状态。POST /admin/remove-sso-user,仅平台管理员、仅托管环境、只删待定人员)。已有的门不多拒任何请求。主机契约只加可选成员userRemoved、可选deliveryId;主机没有userRemoved时退回userDeactivated,按裁定它对待定人员就是「取消邀请」。packages/plugins/plugin-auth/src/environment-user-outbox.ts(租约、退避、stillOwed)与pending-sso-users.ts的runRemoveSsoUser。CONTRACT_REVIEW_TIER隔离复审首轮 PASS 带 3 条应修,delta PASS 只剩细节;CI 全绿。席位核对
main,正文写Fixes #33228,无其他闭合关键词。申报Clause-②: yes (widening)、Metadata-protocol: none;changeset 四个包均为patch(plugin-auth、platform-objects、spec、cli)。packages/spec/src/system/constants/platform-object-names.ts(新平台对象登记)、cli 组织归属清单一行、两份租户普查与普查页数字。本席接受。33228-shape-note.md)经本席接受,Q3 改为退回userDeactivated(裁定原文「Deleting or deactivating a pending row cancels its cloud invitation」)。CONTRACT_REVIEW_TIER,本席起的隔离审读子代理,面 =reviewFacehits(platform-object-names.ts)加 plugin-auth / platform-objects 全部实现文件与认证文档。17f7933a上 PASS,应修 3 条:停用中的待定人员可能被再次邀请;删除门「仅待定」未在写入处保持;非托管环境写入无人消费的发件箱行。01d65d85上 PASS:三条应修关闭,余下均为细节(接受为偏差,见下)。合并提交中 8 行不来自任何一方(removalNotDone传userId、5xx 记日志),与 main 新规则一致,本席读过并接受。01d65d85: 60 success、12 skipped、0 失败、0 进行中。17f7933a上 Test Core 7/8 的红是队列抖动锚 Queue-flake anchor: test/runner/run-date.test.ts #34081(run-date.test.ts超时),已由 test(scenarios): walk the working-day calendar once in the run-date oracle #34104 在 main 修复,本 head 合入后变绿。in_flight行不触发 accepted;待重试行的认领只按status条件。均不影响契约。userDeleted,基于本 PR)同面,转告其信箱 pm:mailbox — domain:server#5 · zhuangjianguo #33747。ACCEPT · PR #34162 @
01d65d851b20fb39c1f6dd14946a91806da7ee42feat(auth)!: a managed environment adds pending, SSO-only people, and…
objectstack-fleet commentedon Nov 16, 2026
domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx
待裁:邀请发件箱建在框架里还是只留在云端宿主里 · 2026-11-16T07:54Z
一句话问题。 托管环境里加人、停用、删除待定人员时,「云端没响应也不丢、自动重试、Setup → Users 能看到每个人的邀请状态」这件事,现在框架 PR #34162 和云端已合并的 cloud PR #4594 各做了一份。不裁的话,同一次邀请会被两层各自重试,Setup → Users 也会有两张都自称「邀请状态」的表。
背景。 #33228 按 cloud#4465 给环境侧定的执行条款,在框架里新建了平台对象
sys_environment_user_outbox和后台重试 worker(PR #34162,3663 行,Tier H,本席 ACCEPT 6909958643,review#1 独立复审 PASS 6910284581 带 2 条应修)。PR 挂出后,cloud 席(6910636711)告知:云端对EnvironmentUserHost的实现本身就是建在环境自己数据库里的发件箱sys_env_member_request(cloud PR #4594,已合并,头注写「mirrorssys_environment_revocation」)。它先写行、首次内联发送、失败按倍增退避重试、发送前重读人员并作废不再适用的请求,操作有 invite / cancel / remove,最新一行被文档写成「Setup → Users 显示的逐人邀请状态(#33187)」。云端缺的只有本 PR 的删除门POST /admin/remove-sso-user和宿主成员userRemoved(云端的 cancel 已能承接)。本席读不到 cloud 仓,以上云端事实全部来自该评论,未复核。Governing text。 cloud#4465「Execution terms for the environment (children 1a / 2b)」,经 #33181 评论 6870710213 转述,派单原文引用:「A durable outbox with retry (mirror
sys_environment_revocation), with per-row invitation status in Setup → Users.」「Deleting or deactivating a pending row cancels its cloud invitation (the email-typo case).」「No database transaction is held across the invite call.」条款只说发件箱在「环境侧」,没说在框架还是宿主实现里。派单第 ⛔ 条:环境侧发件箱若需要裁定未覆盖的东西,停下交维护者。协议:三个选项都不改元数据协议(Metadata-protocol: none)。前提与复核命令。
gh api repos/objectstack-ai/objectstack/pulls/34162/files --paginate --jq '.[].filename' | grep sys-environment-user-outboxgh api repos/objectstack-ai/objectstack/issues/comments/6910636711 --jq .bodygh api repos/objectstack-ai/objectstack/issues/33187 --jq '[.labels[].name]'选项 × 代价 × 工作量。
userRemoved(及删除时取消邀请),去掉sys_environment_user_outbox、worker、翻译包与普查行;重试与逐人状态归云端宿主的sys_env_member_request33228-reshape-measure.md)sys_env_member_request,宿主改为只同步调用业务含义直译。 A = 寄信的事交给邮局(宿主)全权负责,框架只负责「把信交出去」和新加的「撤回这封信」;B = 框架自己也开一个邮局,让云端关掉它刚开的那个;C = 两个邮局同时开,各自重寄、各自记账。
四维(业务立场)。
os-decision-facets
Prior rulings read: "ruling|Ruling-ref|maintainer" on plugin-auth: the environment-user host seam cannot cancel a pending person's invitation, and has no durable retry or per-row invitation status #33228 plugin-auth: pending, SSO-only users on a managed environment — add and CSV import with position, permission sets and manager, refused by every password door, with a host seam on create, deactivate and reactivate #33181 Managed environments: re-show the add-people actions in Setup → Users (reverse #25295 / #25309's visible predicates for adding) #33186 Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187 → cloud#4465 terms via 6870710213 (outbox on the environment side, location unspecified); ADR none; thread: 0
推荐:A。 两年后的样子:框架定义宿主接缝(加、停用、恢复、删除各一个成员,带
deliveryId幂等键),每个宿主自己保证投递并提供状态;主流做法如 Okta / Auth0 的 SCIM 出站与 Stripe 的 webhook,重试和投递状态都由发送方的那一侧单独持有,不在两层叠加。只看①选 A;②③④ 是否翻转:否。置信缺口:云端事实未经本席复核;Setup → Users 若要在框架 Console 里显示云端表的状态,可能还需要一个读状态的接缝成员,这是 #33187 的事,不在本卡。不取 B:要云端拆掉刚合并且已满足条款的实现,换来同样的结果;不取 C:两表静默矛盾。裁后执行段。
userRemoved+ 取消邀请(保留 review#1 对删除门的结论,S1/S2 随发件箱一起消失),重推后由 review#1 做 delta,本席复读--cc与 K 后落地;若降到 3000 行以下即不再等 os-zhuang。同时在 Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187 留一条:逐人邀请状态的来源是宿主的sys_env_member_request。sys_env_member_request。3 remaining items
objectstack-fleet commentedon Nov 16, 2026
domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx
Release: session_01L9qibzuZJBQY4wUQFJbkfx · the maintainer handed PR #34162 to the cloud lane: 「34162 已经通知 cloud 车道接手」 (2026-11-16T07:59Z, project chat) · seat 7's stay-behind ends; back to
pm:queue, unassigned, for the cloud lane to claim · 2026-11-16T07:59ZResume-from: claude/project-thread-32vsaq@3c25103fccb4de9a018a67bd199d661f3b990ebf
3c25103f, CI green. Seat records: ACCEPT 6909958643 on the pull; review#1 PASS 6910284581 with should-fixes S1 and S2, both still unfixed on the branch.sys_env_member_request, cloud PR ci: expand adr-anchors to the full authz/security ADR set — 8 → 15 (#4575 follow-up) #4594). Seat 7's analysis is 6910666919, recommending A: keep the remove door anduserRemoved, dropsys_environment_user_outboxand its worker. The cut measured in 6910720328 leaves about 600 lines, so no Tier H approval would be needed. The maintainer did not pick a letter, so I am takingneeds-user-decisionoff with this release; the decision goes with the card.3c25103fwas pushed.userDeleted) builds on this PR.objectstack-fleet commentedon Nov 16, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
Ruling record and takeover, 2026-11-16T07:59Z
Ruling: option A of the decision request 6910666919 (with the measurement 6910720328). The cloud seat recommended, in the maintainer's thread: keep the remove door and
userRemoved, drop the framework outbox, and keep the one table cloud already runs (sys_env_member_request). The maintainer answered, verbatim (cloud seat 5 thread, 2026-11-16): 「这个任务你直接接手处理。」. The seat reads that as taking its recommendation, which is A. The maintainer can overrule on this card.POST /admin/remove-sso-user, the optional host memberuserRemoved(with theuserDeactivated+idp_pendingfallback), the cancel-on-remove behaviour, and review#1's S1 in-door half: a deactivated pending person who is re-added does not calluserAdded. It dropssys_environment_user_outbox, its worker, boot and accepted trigger, thedeliveryIdmember, theinvitation: { id, status }answer fields, the translation bundles, and the census / inventory / spec registry rows. Durable retry and per-person invitation status belong to the host (cloud'ssys_env_member_request, cloud PR ci: expand adr-anchors to the full authz/security ADR set — 8 → 15 (#4575 follow-up) #4594). Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187 reads status through a host seam or cloud's table, and that is decided on Setup → Users on a managed environment: add-person and CSV-import UI with per-row invitation status (reverses objectui#13330 for adding) #33187, not here.userAdded, and the answer says so. No background retry is promised.Takeover: by the maintainer's order above,
repo:cloud#5takes this card and PR #34162 over fromdomain:server#7(os-tesla). The seat dispatches the reshape as commits on the PR's head branchclaude/project-thread-32vsaq(normal pushes, no history rewrite). It reviews and lands the PR; with the reshape under 3000 lines it should no longer need a governed approval, and the seat re-measures that.needs-user-decision→pm:dispatched. os-tesla is asked to stop work on this card; their contract records stand as the baseline for a delta review.objectstack-fleet commentedon Nov 16, 2026
domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx
Label race fix · 2026-11-16T08:00Z: my Release 6910777528 and repo:cloud#5's takeover 6910778242 crossed, and my write left
pm:queuenext to theirpm:dispatched. I am removingpm:queue, so the card ispm:dispatchedunder hotlong, as the takeover set it. Seat 7 holds nothing on this card. Its card thread stops, pushes nothing further, and leaves the branchclaude/project-thread-32vsaqto the cloud seat.objectstack-fleet commentedon Nov 16, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
os-dev-report
{ "issue": 33228, "status": "done", "branch": "claude/project-thread-32vsaq", "pr": "https://github.com/objectstack-ai/objectstack/pull/34162", "session": "session_01Q4EjjPP1zuWBNq3nBXVei9", "premise_still_valid": true, "summary": "Reshaped PR #34162 to ruling A with normal commits on the head branch: 1f1f43cbb merges origin/main 8436f67a2, b2af63e6c drops the framework outbox, e10b14b31 fixes the ledger string. Kept: the remove door with its semantics; optional userRemoved with the userDeactivated + idp_pending fallback; the 'removed' kind; the ledger row and both dogfood sweeps; rewritten docs (durable delivery and per-person status are the host's job). Added: review#1 S1 in-door half (a deactivated pending re-add calls no userAdded and answers host.reason 'deactivated', a new reason value declared in Clause-② widening); a removal that fails after the host took the cancellation re-invites inline once through userAdded and says whether it worked. Dropped: sys_environment_user_outbox (object, export, registry/inventory/census rows, 21 translation files), environment-user-outbox.ts and tests, every outbox write in add/import/ban/unban/remove, deliveryId, invitation answer fields, opts.retried, and the cli/spec/platform-objects changesets; one patch changeset for plugin-auth. Outside the 11 PR files the tree equals main (admin-ban-endpoints.ts and manifest.ts back to main). Final size 11 files +658/-27 = 685 lines, nothing generated: a bit above the ~550-600 estimate because the new inline re-invite and S1 tests add about 90 lines, still under 3000; no governed surface. New PR body written to the scratchpad file for the seat to apply; the PR body was not patched.", "tests": "At e10b14b317f: pnpm --filter @objectstack/plugin-auth test -> Test Files 279 passed (279), Tests 5666 passed | 10 skipped (5676), lock VERDICT command-exit 0. plugin-auth typecheck exit 0 (first run exit 2 on an apostrophe in the ledger note, fixed in e10b14b31). pending-sso-users.test.ts 73 passed (+15 it blocks over main's 56): remove door (userRemoved first, fallback, not-pending 409, typed refusal, host_failed asked once, no_host, restrict + inline re-invite, truthful failed re-invite, 404/400/403, not-managed 409), S1 (deactivated re-add answers deactivated; CONTROL active re-add invites), refused removal of a deactivated person, host-never-took, signs-in-meanwhile 409. Five ablations, all with scripts/ablation-replace.mjs in wrap mode under one lock grant; each anchor hit 1->0, each run went red, each was restored with blob == HEAD and an empty git diff HEAD. pending-at-write: 1 failed. fallback: 1 failed. s1-guard: 1 failed. inline-reinvite: 2 failed. reinvite-not-deactivated: 1 failed. The suite imports source, so there is no dist leg.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at e10b14b317f derived 108 families (11 paths, merge base 8436f67a2, changed lines 685, under the 3000 threshold). Each ran with stdin from /dev/null and its exit code was captured before any pipe. 106 exited 0. check:skill-examples first exited 3 (client-react not built); after a client-react closure build it was rerun with exit 0. check:dual-build-cjs-loads exited 3 (needs a repo-wide build, 42 packages have no dist), recorded NOT MEASURED and left to Lint & Repo Gates. --ran with ':: exit' codes: 108 accounted, 107 run, 1 NOT-MEASURED (DERIVED from exit 3). check-platform-checklist --changed-from origin/main exit 0 (25 anchors judged, 0 lost). CI check-runs on e10b14b31: not read in this run, in_progress at report time; pnpm lint, test:repo and the dogfood shards are left to CI.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/33228/comments (this os-dev-report, via post-stamped.mjs); git push x3 is not a REST write", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: repo:cloud#5 (seat) · no explicit admin audit row for a removal (review#1 escalated it to a follow-up card); noted, not filed", "carrier: #34183 · a person who signs in while the host is asked to cancel is kept, and no compensating call follows; unchanged, noted, not filed", "carrier: #33187 · Setup → Users invitation status source (host seam member versus cloud's sys_env_member_request); noted, not filed", "carrier: none · with ruling A, a removal whose host call fails (host_failed) removes the person locally while the host may still hold a live invitation. The answer says host_failed and the docs say so; recorded in Acceptance notes, not a defect under the ruling" ] }objectstack-fleet commentedon Nov 16, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
os-dev-report
{ "issue": 33228, "status": "done", "branch": "claude/project-thread-32vsaq", "pr": "https://github.com/objectstack-ai/objectstack/pull/34162", "session": "session_01Q4EjjPP1zuWBNq3nBXVei9", "premise_still_valid": true, "summary": "Delta-review round pushed as one normal commit, 1f9b39d26, on the PR branch. GitHub reports the PR clean, so main was not merged again. S1: takeBackPerson takes pendingOnly for the remove door. It re-reads the person inside the unit of work, then deletes the sys_user row with where { id, source: 'idp_pending' }, multi: true. That is a predicate delete, which honours deleteBehavior like the by-id one (engine-delete-and-aggregate.ts #26871 arm). A zero-row delete throws NoLongerPending, so the child deletes roll back and the answer is the existing 409 'signed in meanwhile' sentence. The add's take-back keeps its by-id delete. S2 (fail closed): host_failed on the remove door now answers 503 SERVICE_UNAVAILABLE with PENDING_SSO_MESSAGES.removeHostUnreachable; the person is kept and nothing is re-sent. The docs, ledger note, changeset and PR body are updated to match. N1: takeBackPerson's doc and throw text now hold for both callers. N2: isDeactivated reads true, 1, '1' and 'true'; it stays module-private because pending-sso-users.ts is star-exported from the package index, and is pinned through the re-add door. N3 is moot: with S2, a host call that was asked but not confirmed can no longer reach removalNotDone (the host is either told, or not called when no host is wired). removeHostUnconfirmed was therefore dead code and is deleted rather than reworded, and its test is replaced by the S2 test. Size is now 11 files, +705/-34 = 739 changed lines, nothing generated, still under 3000 and no governed surface. The PR body file is updated; the PR was not PATCHed, and is still draft with no reviewers and no labels.", "tests": "At 1f9b39d2606: plugin-auth full suite Test Files 279 passed (279), Tests 5667 passed | 10 skipped (5677), lock VERDICT command-exit 0. plugin-auth typecheck exit 0. pending-sso-users.test.ts: 74 passed. New tests: a first sign-in flipped inside the unit of work (at the first child delete, after the pending read) is kept with 409; an unreachable host gives 503, the person is kept, the host is asked once and nothing is re-sent; a banned column reading '1' or 'true' gets host.reason 'deactivated' on a re-add. Removed: the 'not confirmed' test and the host_failed-proceeds test. Eight ablations through scripts/ablation-replace.mjs in wrap mode under the lock. Each anchor hit 1->0, each run went red, and each was restored with blob == HEAD (149f1acb82a7 for pending-sso-users.ts, 076335cfbc6d for environment-user-host.ts) and an empty git diff HEAD. Failures per ablation: row-delete-predicate 1, host-failed-refusal 1, banned-string-forms 1, pending-pre-read 1, fallback 1, s1-guard 2, inline-reinvite 2, reinvite-not-deactivated 1. The first banned-string-forms attempt was a no-op: ablation-replace refused it because a bare ';' replacement was not distinct, so nothing ran; it was redone with a distinct replacement and went red. The suite imports source, so there is no dist leg.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 1f9b39d2606 derived 108 families (11 paths, merge base 8436f67a2, 739 changed lines). Each ran with stdin from /dev/null and its exit code was captured before any pipe. 106 exited 0. check:skill-examples first exited 3 (client-react not built in the fresh worktree); after the client-react closure build it was rerun and exited 0. check:dual-build-cjs-loads exited 3 (needs a repo-wide build) and is NOT MEASURED locally. --ran with ':: exit' codes: 108 accounted, 107 run, 1 NOT-MEASURED (derived from exit 3). check-platform-checklist --changed-from origin/main exit 0 (25 anchors, 0 lost). PR check-runs on 1f9b39d26: 38 success, 15 skipped, none failed. Lint & Repo Gates (which covers dual-build-cjs-loads), TypeScript Type Check, Test Core, Build Core, Check Changeset and Governed Surface Queue Guard are all success.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/33228/comments (this os-dev-report, via post-stamped.mjs); git push x1 is not a REST write", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: repo:cloud#5 (seat) · the remove door writes no explicit admin audit row (review#1 escalation); noted, not filed", "carrier: #34183 · a person who signs in while the host is asked to cancel is kept, and no compensating call follows; unchanged, noted, not filed", "carrier: #33187 · where Setup → Users reads invitation status from; noted, not filed" ] }objectstack-fleet commentedon Nov 16, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
os-dev-report
{ "issue": 33228, "status": "done", "branch": "claude/project-thread-32vsaq", "pr": "https://github.com/objectstack-ai/objectstack/pull/34162", "session": "session_01Q4EjjPP1zuWBNq3nBXVei9", "premise_still_valid": true, "summary": "Final round pushed as one normal commit, 2e868fa7e24, on the PR branch. 1) The claims now match what the engine delivers. The takeBackPerson and runRemoveSsoUser docblocks, the auth route ledger note, the docs paragraph, the changeset and the PR body file say the person is re-checked inside the unit of work and the delete carries source: 'idp_pending'. They also say that on an object with cascading lookups the engine re-deletes by id after the cascade, so a first sign-in committing in that narrow window is not yet refused. The code docblock and the PR body cite objectstack#34373. The ledger note, docs and changeset carry no tracker number, per the runtime-text rule. 2) N4: the memory engine has no transaction, so the in-unit test gives it a snapshot transaction. The plugin's real runAtomically seam calls engine.transaction, and on a throw the snapshot restores every table except sys_user, whose change is the concurrent sign-in's commit. The test asserts that the removal entered the seam once and that sys_user_position, sys_user_permission_set and sys_member rows survive NoLongerPending. This proves the door's rollback path against the seam; it does not close the engine window. Size is 11 files, +733/-34 = 767 changed lines, still under 3000. The PR body file is updated; the PR was not PATCHed, and is still draft with no reviewers and no labels.", "tests": "At 2e868fa7e24: plugin-auth full suite Test Files 279 passed (279), Tests 5667 passed | 10 skipped (5677), lock VERDICT command-exit 0. plugin-auth typecheck exit 0, after a plugin-auth closure build in the fresh worktree. pending-sso-users.test.ts: 74 passed. Two ablations through scripts/ablation-replace.mjs in wrap mode. takeback-unit-of-work replaced 'await (unit ? unit.runAtomically(work) : work())' with 'await work()': 1 failed, the in-unit test, on 'the removal ran inside the transactional seam: expected +0 to be 1'. row-delete-predicate reduced where { id, source } to { id }: 1 failed, the in-unit test. Both were restored with blob == HEAD d2608bc280f4 and an empty git diff HEAD.", "gates": "This round changed prose (a docblock, the ledger note, the docs paragraph, the changeset) and one test. Locally I ran the gate subset that reads those files: 14 of 14 exit 0, exit codes captured before any pipe. They are check:doc-authoring, check:auth-mount-ledger, check-affected-docs, check-drift-comment, check-empty-changeset, check-changeset-no-major, check:nul-bytes, check:issue-citations (pnpm and node forms), check:docs-transcript-drift, check:doc-anchors, check:cross-package-test-inputs, check:engine-double-contract and check:closed-ceremony-text. This is a declared narrowing: the full 108-family derived run with --ran (107 run, 1 NOT-MEASURED) was at the previous head 1f9b39d26, and the full set for this head is left to CI. PR check-runs on 2e868fa7e24 at report time: 33 success, 15 skipped, 4 in_progress, none failed. Lint & Repo Gates, TypeScript Type Check, Build Core, Check Changeset and Governed Surface Queue Guard are success; Test Core is in_progress.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/33228/comments (this os-dev-report, via post-stamped.mjs); git push x1 is not a REST write", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: objectstack#34373 · the engine's predicate delete on an object with cascading lookups re-deletes by id with no predicate or row lock; filed by the seat, documented here, no workaround", "carrier: repo:cloud#5 (seat) · the remove door writes no explicit admin audit row (review#1 escalation); noted, not filed", "carrier: #34183 · a person who signs in while the host is asked to cancel is kept, and no compensating call follows; unchanged, noted, not filed", "carrier: #33187 · where Setup → Users reads invitation status from; noted, not filed" ] }objectstack-fleet commentedon Nov 16, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
Closed by PR #34162 (merged), reshaped to ruling A: the remove door,
userRemovedwith its fallback, the S1 in-door half, the inline re-invite, and fail-closed onhost_failed; no framework outbox. Residual engine window: objectstack#34373.pm:dispatchedremoved. Cloud picks the door up at its next pin move; cloud's host can implementuserRemovedon its existingcanceloperation then.