Skip to content

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

Closed

Description

@objectstack-fleet

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:

  1. 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, with source: 'idp_pending'), but the row stays.
  2. 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

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

  1. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    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

  2. added
    domain:server
    pm:blocked
    priority:p1
    on Nov 14, 2026
  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    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).

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    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_01L9qibx2sFAzcNAfxCPdUtF
    Account: os-tesla
    Branch: claude/project-thread-32vsaq
    Domain: domain:server
    Seat: domain:server#7
    File 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 under packages/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: high
    Clause-②: 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 as needs_decision
    Serial 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, merging main after whichever lands first

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    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"
      ]
    }
  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    维护者速读 · PR #34162 @ 01d65d85 · 2026-11-16T00:32Z

    • 改了什么:托管环境里,管理员现在可以删除一个还没首次登录的待定人员(例如邮箱打错),删除时会通知云端取消邀请。对云端的每一次邀请、重发和取消都先记进环境内的发件箱 sys_environment_user_outbox,失败了由后台按退避自动重试,Setup → Users 可以按行读到邀请状态。
    • 为什么改: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,即 cloud#4465 给环境侧定下的两条执行条款:「删除或停用待定人员即取消其云端邀请」,以及「带重试的持久发件箱,Setup → Users 显示每行邀请状态」。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 只做了接缝,没做这两条。
    • 权限与边界:放宽(新门 POST /admin/remove-sso-user,仅平台管理员、仅托管环境、只删待定人员)。已有的门不多拒任何请求。主机契约只加可选成员 userRemoved、可选 deliveryId;主机没有 userRemoved 时退回 userDeactivated,按裁定它对待定人员就是「取消邀请」。
    • 风险与回滚:Tier H(+3663 行,其中约 2000 行手写,翻译包单独一个 commit)。复审中修掉的关键点:被停用的人绝不会再收到邀请;首次登录与删除同时发生时人不会被误删;非托管环境不写发件箱。回滚即 revert,发件箱表只读、可弃。
    • 先看:packages/plugins/plugin-auth/src/environment-user-outbox.ts(租约、退避、stillOwed)与 pending-sso-users.ts 的 runRemoveSsoUser。
    • 需要你做的:用 os-zhuang 批准这个 PR(超过 3000 行,需要人批),批准后本席入队落地。
    • 席位意见:落地。CONTRACT_REVIEW_TIER 隔离复审首轮 PASS 带 3 条应修,delta PASS 只剩细节;CI 全绿。

    席位核对

    • 形态: draft → main,正文写 Fixes #33228,无其他闭合关键词。申报 Clause-②: yes (widening)、Metadata-protocol: none;changeset 四个包均为 patch(plugin-auth、platform-objects、spec、cli)。
    • 文件面: 认领 6900816457 所列面;面外改动均为门禁强制: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,本席起的隔离审读子代理,面 = reviewFace hits(platform-object-names.ts)加 plugin-auth / platform-objects 全部实现文件与认证文档。
      • r1 6902610047 在 17f7933a 上 PASS,应修 3 条:停用中的待定人员可能被再次邀请;删除门「仅待定」未在写入处保持;非托管环境写入无人消费的发件箱行。
      • delta 6903614020 在 01d65d85 上 PASS:三条应修关闭,余下均为细节(接受为偏差,见下)。合并提交中 8 行不来自任何一方(removalNotDone 传 userId、5xx 记日志),与 main 新规则一致,本席读过并接受。
    • 门禁 check-runs @ 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 合入后变绿。
    • 接受的偏差(delta 细节): 删除时恰好首次登录的人,最新行显示「已取消」;待定重读与删除是同一工作单元内两条语句;被他人先删的人答 409 而非 404;删除门的「将重试」日志可能先于失败的工作单元;in_flight 行不触发 accepted;待重试行的认领只按 status 条件。均不影响契约。
    • 范围外去向: 「最新行显示已取消」与 seat 5 的 plugin-auth: EnvironmentUserHost gains userDeleted, so deleting a pending person can cancel their organization invitation #34183(userDeleted,基于本 PR)同面,转告其信箱 pm:mailbox — domain:server#5 · zhuangjianguo #33747。
    • 落地条款: 超过 3000 行,按维护者裁定 2026-09-18 / 2026-09-27(governed guard: an authorized APPROVED review lifts the >5000-line SIZE limb, as it already lifts Tier H paths #20153)需 GOVERNED_APPROVERS 批准后由本席入队;常设落地令 「按 pm-dispatch 审过的pr你可以自主落地」 (2026-10-30T14:20Z)、「车道座位应该使用pm-dispatch 技能审核和落地pr」 (2026-11-14T14:32Z)。

    ACCEPT · PR #34162 @ 01d65d851b20fb39c1f6dd14946a91806da7ee42

  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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,已合并,头注写「mirrors sys_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)。

    前提与复核命令。

    选项 × 代价 × 工作量。

    选项 做什么 客户看到的 工作量
    A 本 PR 只留删除门与 userRemoved(及删除时取消邀请),去掉 sys_environment_user_outbox、worker、翻译包与普查行;重试与逐人状态归云端宿主的 sys_env_member_request 删错邮箱的人能删、邀请随之取消;重试与状态照云端已上线的行为 server 车道,本 PR 缩减重推 1 次 + delta 复审;预计降到 3000 行以下、不再需要 Tier H 批准(缩减量待卡线程实测,33228-reshape-measure.md)
    B 本 PR 原样,框架发件箱为唯一来源;云端撤掉 sys_env_member_request,宿主改为只同步调用 同上,状态读框架表 本 PR 修 2 条应修 + Tier H 批准;cloud 车道 1 PR 撤回刚合并的 #4594 主体;无先例
    C 两边都留 一次邀请可能两层重试;两张状态表可能互相矛盾,#33187 不知道读哪张 本 PR 修 2 条应修 + Tier H 批准

    业务含义直译。 A = 寄信的事交给邮局(宿主)全权负责,框架只负责「把信交出去」和新加的「撤回这封信」;B = 框架自己也开一个邮局,让云端关掉它刚开的那个;C = 两个邮局同时开,各自重寄、各自记账。

    四维(业务立场)。

    • 项目长远合理性:A 让框架只保留宿主接缝这一份契约,可靠投递是每个宿主自己的实现细节(宿主本来就最清楚自己的投递语义);B 也是单一来源,但要求每个宿主放弃自己的投递保证、依赖框架的;C 留下两份同义状态,最差。
    • 实际业务拉动:删错邮箱的人今天删不掉,这是 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 的真实拉动,三项都交付;发件箱的拉动已被云端满足(据 cloud 席),框架这份零拉动。
    • 防 AI 犯错:C 出错时是静默的(两表不一致,管理员看到错误状态而无报错);A、B 只有一个来源。
    • 创业阶段不扩散:A 删掉一个平台对象、一个 worker、21 份翻译与普查行这些永久义务;B 保留它们并要云端返工;C 两份都养。

    os-decision-facets

    推荐:A。 两年后的样子:框架定义宿主接缝(加、停用、恢复、删除各一个成员,带 deliveryId 幂等键),每个宿主自己保证投递并提供状态;主流做法如 Okta / Auth0 的 SCIM 出站与 Stripe 的 webhook,重试和投递状态都由发送方的那一侧单独持有,不在两层叠加。只看①选 A;②③④ 是否翻转:否。置信缺口:云端事实未经本席复核;Setup → Users 若要在框架 Console 里显示云端表的状态,可能还需要一个读状态的接缝成员,这是 #33187 的事,不在本卡。不取 B:要云端拆掉刚合并且已满足条款的实现,换来同样的结果;不取 C:两表静默矛盾。

    裁后执行段。

  10. 3 remaining items

  11. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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:59Z
    Resume-from: claude/project-thread-32vsaq@3c25103fccb4de9a018a67bd199d661f3b990ebf

  12. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

    Takeover: by the maintainer's order above, repo:cloud#5 takes this card and PR #34162 over from domain:server#7 (os-tesla). The seat dispatches the reshape as commits on the PR's head branch claude/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.

  13. added
    pm:queue
    pm:dispatched
    and removed
    needs-user-decision
    on Nov 16, 2026
  14. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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:queue next to their pm:dispatched. I am removing pm:queue, so the card is pm:dispatched under hotlong, as the takeover set it. Seat 7 holds nothing on this card. Its card thread stops, pushes nothing further, and leaves the branch claude/project-thread-32vsaq to the cloud seat.

  15. removed
    pm:queue
    on Nov 16, 2026
  16. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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"
      ]
    }
  17. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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"
      ]
    }
  18. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    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"
      ]
    }
  19. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

    Closed by PR #34162 (merged), reshaped to ruling A: the remove door, userRemoved with its fallback, the S1 in-door half, the inline re-invite, and fail-closed on host_failed; no framework outbox. Residual engine window: objectstack#34373. pm:dispatched removed. Cloud picks the door up at its next pin move; cloud's host can implement userRemoved on its existing cancel operation then.

  20. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:serverpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions