You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SCIM: a PATCH that replaces only name.givenName / name.familyName leaves displayName and sys_user.name on the old name #32380
ObjectOS Enterprise, framework pin e24136c2 (@better-auth/scim 1.7.12). Local SCIM run for objectstack-ai/cloud#3667.
Measured
A user whose display name is "Renamed InOkta" gets PATCH /Users/{id} with Entra's path-addressed shape: [{"op":"Replace","path":"name.givenName","value":"Entra"},{"op":"Replace","path":"name.familyName","value":"Style"}]. The answer is 200, but:
name.givenName / familyName change;
displayName, name.formatted and sys_user.name (what the console shows) keep "Renamed InOkta".
Okta's path-less replace ({"op":"replace","value":{"name.givenName":…,"name.familyName":…}}) behaves the same.
Only a PATCH of displayName, or a full PUT, moves sys_user.name.
The cause is vendor behaviour: setNamePart stores the part and never recomposes formatted / displayName. The code has a composeName helper, which only the remove path uses.
Impact
Low while the IdP also sends displayName, as Entra's default mapping does when that attribute changes. A tenant whose mapping sends only given/family name keeps showing the old name in ObjectOS indefinitely.
Expected
When displayName / formatted were derived from the parts (the same test setFormattedName already makes), recompose them after a part changes. Either upstream it to @better-auth/scim, or apply it in the host's identity.reconcileUser before the user row is written.
Ruling recorded · #32380 · C (upstream fix, and a temporary patch now) · 2026-11-13T05:47Z
Maintainer, verbatim (triage#1 session): 「创业项目,应该是需求合理就做」, then 「第三批同意」, approving the batch as revised under that principle: 32380 C / 31797 C / 32678 B / 32679 B + one-click reset. The batch was analysed independently at the fable tier, with prior rulings checked first.
C: fix it now and fix it at the source.
(1) The domain:server lane drafts the upstream PR to @better-auth/scim (recompose displayName / name.formatted when it was derived from the name parts, plus the vendor test) from the kept branch claude/issue-32380-scim-name-recompose. The maintainer, or someone with access to that repo, submits it; agents cannot.
(2) A temporary pnpm patch on the vendor package makes a name-only PATCH recompose the display name today, with a regression test for both PATCH shapes.
(3) When the vendor ships the fix, the patch is removed in the upgrade PR and the regression test stays.
On the AGENTS.md conflict: 「No workarounds … not temporary patches」 is set aside here by the maintainer's ruling for this card only. The patch carries a header naming this ruling and its removal condition, and patches/ gains no other better-auth patch.
Picked by card-pick.mjs --order area:data --seat repo:objectstack#8 at 2026-11-28T03:11Z: rank 8 (p3 close-out, first non-fleet card of the grade); the p2 cards above it are a cross-repo step (#34365), an un-triaged card (#37375), an ADR card (#37405), seat 2's trunk card (#37768), a card queued behind this seat's #37709 on the same package (#37852) and a contract-shape design card (#37909). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intake area:data, then 「batch 调到 5,可以用云卡」.
Claim: PM loop round 1
Session: session_017xRBcSAaBEfQpU2yJexSJ8
Account: sunhaolin
Branch: claude/issue-32380-scim-name-recompose
Worktree: objectstack-issue-32380
Domain: domain:server
Seat: repo:objectstack#8
File surface: one new patches/@better-auth__scim*.patch and its patchedDependencies row (pnpm-workspace.yaml or root package.json, wherever the three existing patches are registered), pnpm-lock.yaml as pnpm writes it, a regression test under packages/plugins/plugin-auth/src/** for both PATCH shapes, the upstream draft as text in the PR body, one changeset for @objectstack/plugin-auth if its published behaviour moves; ⛔ no other patches/ file, no change to the callback hooks near #32115 (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: opus (dispatch-gates --tier: no path-derived mandate; default tier), effort: high (ruling implementation: M treatment)
Clause-②: no
Metadata-protocol: none
Responsibility: vendor — @better-auth/scim setNamePart stores the part and never recomposes formatted/displayName; this repo carries it through a temporary pnpm patch by ruling | none — only a displayName PATCH or a full PUT moves sys_user.name | tenants whose IdP mapping sends only name parts (Entra path-addressed and Okta path-less shapes measured on 7d82b2da)
Thread-read: 6845302116
Premise: holds — the ruling's premise (defect reproduced on 7d82b2d, dev report 6796756062) is re-measured first by the dev on current main before the patch is written.
Resume-from: claude/issue-32380-scim-name-recompose@7d82b2da
Serial constraints cleared: seat 3's #36160 declares package.json / pnpm-lock.yaml / pnpm-workspace.yaml (dependency work); textual overlap re-checked with overlap-check.mjs before every push and the lockfile follows the os-regen merge order if it conflicts.
Scope this dispatch: ruling C items (1)–(2) (draft upstream text, temporary patch + regression test); item (3) is the future upgrade PR. Fixes #32380.
Ruling-ref: 6845302116 — 「创业项目,应该是需求合理就做」 then 「第三批同意」 (32380 C).
{
"issue": 32380,
"status": "done",
"branch": "claude/issue-32380-scim-name-recompose",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38181",
"session": "session_017xRBcSAaBEfQpU2yJexSJ8",
"premise_still_valid": true,
"summary": "Re-measured on current main first: with the patch registration removed, both PATCH shapes (Entra path-addressed Replace pair, Okta path-less replace with dotted keys) through AuthManager.handleRequest with a real SCIM bearer still leave displayName, name.formatted and sys_user.name on 'Renamed InOkta' (premise holds). Implemented ruling 6845302116 items (1)-(2): a temporary pnpm patch patches/@better-auth__scim@1.7.12.patch (header names the ruling and the removal condition) makes setNamePart recompose name.formatted, and through the vendor's setFormattedName displayName, with the vendor's composeName when name.formatted equalled composeName of the parts before the change; registered in pnpm-workspace.yaml beside the three existing patches; regression pin scim-name-recompose.test.ts (8 cases: both shapes, an unrelated PATCH keeps the new name, four CONTROLs that keep explicit names and let a displayName PATCH win in both orders, and one edge case); the upstream draft (vendor diff, vendor tests, PR paragraph) is in the PR body. MEASURED FINDING for the maintainer: @better-auth/scim's own suite at v1.7.12 and at main (1.7.28) pins 'preserves explicitly supplied formatted and display names when patching one name part' with an explicit name EQUAL to the composed parts; the vendor stores no provenance, so the ruled value test reads that shape as derived and recomposes it. The patch therefore reverses that vendor-pinned case (pinned here as case (c)), and the upstream draft has to change that vendor test's fixture, which the vendor may refuse (open_questions). No changeset: measured that the published plugin-auth tarball is unchanged and a pnpm patch reaches only installs of this workspace (dev, CI, framework-build-base image), never an npm install of @objectstack/plugin-auth; skip-changeset rides pr_create.",
"tests": "Red without the patch (row deleted from pnpm-workspace.yaml, pnpm install, vendor dist carrying 0 patched lines), tree 58bebae26: `pnpm --filter @objectstack/plugin-auth exec vitest run --maxWorkers=2 src/scim-name-recompose.test.ts` under os-verify-lock, VERDICT command-exit 1, 'Tests 6 failed | 2 passed (8)', received displayName/formatted/userName 'Renamed InOkta' vs expected 'Entra Style' (the 2 that pass red are the explicit-name preservation CONTROLs). Green with it (git restore --source=HEAD, pnpm install --frozen-lockfile): VERDICT command-exit 0, 'Tests 8 passed (8)'. Whole package on 6206923a6: `pnpm --filter @objectstack/plugin-auth build && ... typecheck && ... exec vitest run --maxWorkers=2`, VERDICT command-exit 0, check:test-typecheck OK, 'Test Files 297 passed (297)', 'Tests 6313 passed | 10 skipped (6323)'. Final head c40d3488e5 = 6206923a6 + merge of origin/main touching no file under plugin-auth, patches/, pnpm-lock.yaml, pnpm-workspace.yaml or package.json (git diff --stat empty); the scoped SCIM re-run on c40d3488e5 is NOT MEASURED, reason: the verify lock was not acquired in three 9-minute windows (VERDICT queue-timeout exit 99, holder another session's dogfood run, 27-40 min); declared narrowing, CI Test Core runs it. Ablation: the red run above is the registration ablation (rebuild = reinstall, on-disk proof = 0 occurrences of formattedNameWasDerived in the installed vendor dist, 2 after restore). Upstream draft NOT MEASURED against the vendor's own suite (its workspace not installed here).",
"gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on c40d3488e5 derived 61 families (same list as on 58bebae26); all 61 run on c40d3488e5 with exit codes recorded (`cmd > out 2>&1; EXIT=$?`), `--ran` reconciliation: '61 derived famil(ies) accounted for — 60 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. 60 exit 0. check:type-check-debt exit 3 on c40d3488e5 (prerequisite not met after the merge moved packages/spec; rebuild blocked by the lock) = NOT MEASURED there; on 58bebae26 exit 0, '0 ledger entr(ies) re-measured in 817.5s, 0 raw tsc error(s) total'. check:test-source-alias was red on the first test draft (egress guard loaded in a case) and exit 0 after the module-top import (commit 6206923a6). check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure exit 3 before the closure build, exit 0 after. Published-content check: after building plugin-auth, the patched line occurs in 0 files of dist/ while dist/index.js and dist/index.mjs import @better-auth/scim (positive control). CI on c40d3488e5 at report time (one read, no polling): Check Changeset, Lint · ESLint, Lint · repo & tooling gates, Type Check · workspace, Type Check · debt ledger, Governed Surface Queue Guard, PR-body guards and the rest queued or in_progress; no conclusion yet. pnpm lint not run (CI-owned).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes via fleet-write/dispatch.mjs (each a POST /repos/objectstack-ai/objectstack/dispatches): (1) pr_create = POST pulls (draft, PR #38181), POST issues/38181/assignees [sunhaolin], POST issues/38181/labels [skip-changeset], read back identical 16248 bytes, assignee and label listed; (2) this os-dev-report = POST issues/32380/comments via post-stamped.mjs. Plus 3 git pushes (not REST).",
"files_changed": [
"patches/@better-auth__scim@1.7.12.patch",
"pnpm-workspace.yaml",
"pnpm-lock.yaml",
"packages/plugins/plugin-auth/src/scim-name-recompose.test.ts"
],
"line_budget": "+429 -2 against origin/main: test 377, patch 32 (18 header lines + 14 diff), pnpm-workspace.yaml 15, pnpm-lock.yaml +5 -2",
"deviations": "(1) No changeset, against the dispatch's parenthetical 'it does': measured the published tarball unchanged and the patch install-local (see summary); skip-changeset declared on pr_create. (2) pnpm patch-commit wrote patchedDependencies into package.json's pnpm field (duplicating the three rows); reverted and registered in pnpm-workspace.yaml as its comment block prescribes; package.json unchanged. (3) Final-head scoped test re-run and check:type-check-debt NOT MEASURED (lock), declared. (4) Case (c) pins the value-test edge the ruling's test implies; it reverses a vendor-pinned case. (5) Upstream draft unverified against the vendor suite. (6) The whole-package run built plugin-auth itself (its examples typecheck imports its own dist). (7) Commits carry the model-free trailer pair.",
"open_questions": [
{
"question": "The ruled derived test (value equality, 'the same test setFormattedName already makes') also recomposes a formatted/display name the IdP supplied explicitly when it EQUALS the composed parts, which @better-auth/scim's own suite pins as preserved (since v1.7.12). Keep it, or narrow?",
"options": [
"A — keep as ruled and landed here: every name that differs from the parts is kept; an explicit name equal to the parts follows the parts. The upstream PR changes that vendor test's fixture to differing names (drafted). Cost: none here; upstream may refuse a reversal of a pinned case, in which case ruling item (3) never fires and the patch stays until a re-ruling.",
"B — provenance: persist whether name.formatted was composed (a vendor-state field set at create/PATCH) and recompose only then. Keeps the vendor test as is, so upstream acceptance is likelier. Cost: a vendor schema/state change — a much larger patch than four lines, migration of stored scimUser rows; M-L upstream work.",
"C — keep A in this repo, and submit upstream as an opt-in (plugin option) so the vendor default is unchanged. Cost: upstream option design; the patch here stays as is."
],
"recommendation": "A, because the observable harm of recomposing a name that already equals 'given family' is nil for the measured tenants, it is the ruled test, and it lands today; submit the drafted upstream PR and, if the vendor refuses the fixture change, bring B or C back as a ruling then."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: maintainer (ruling 6845302116 item 3) · an npm install of the published @objectstack/plugin-auth resolves an unpatched @better-auth/scim until the vendor ships the recompose; noted in PR Acceptance notes, not filed",
"carrier: cloud · the ruling notes the cloud SCIM doc's known-issue line is no longer needed once the patch lands; a cloud doc edit, not made here",
"carrier: none · a user created with no name parts has name.formatted = primary email, and a later PATCH adding parts does not recompose it (not composed from parts); removing both parts one by one leaves name.formatted on the last single part; noted in Acceptance notes",
"carrier: none · pnpm patch-commit writes patchedDependencies into package.json's pnpm field, not pnpm-workspace.yaml (the yaml's comment already says to move it); noted in Acceptance notes"
]
}
Done · 2026-11-28T08:40Z — PR #38181 merged; this card closed as completed by its Fixes line. Delivered per ruling 6845302116 C items (1)–(2): the temporary @better-auth/scim@1.7.12 patch (a name-part PATCH recomposes a derived display name) with its regression pin, and the upstream draft in the PR body for the maintainer to submit. Remaining by the ruling's own words: item (3), removing the patch in the upgrade PR to the vendor release that ships the recompose (the regression pin stays); and the cloud SCIM doc's known-issue line, which is cloud's lane. pm:dispatched removed.
Activity
objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Brief-claimed-by: session_01Q4EjjMnyLqJdzuktEmRPXH · batch #3 · 2026-11-13T05:26Z
Decision batch #3 (the last four of the box), on the maintainer's 「5张一批按总监决裁格式给我」.
objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling recorded · #32380 · C (upstream fix, and a temporary patch now) · 2026-11-13T05:47Z
Maintainer, verbatim (triage#1 session): 「创业项目,应该是需求合理就做」, then 「第三批同意」, approving the batch as revised under that principle:
32380 C / 31797 C / 32678 B / 32679 B + one-click reset. The batch was analysed independently at the fable tier, with prior rulings checked first.domain:serverlane drafts the upstream PR to@better-auth/scim(recomposedisplayName/name.formattedwhen it was derived from the name parts, plus the vendor test) from the kept branchclaude/issue-32380-scim-name-recompose. The maintainer, or someone with access to that repo, submits it; agents cannot.pnpm patchon the vendor package makes a name-only PATCH recompose the display name today, with a regression test for both PATCH shapes.patches/gains no other better-auth patch.active: true) brings back the API keys and local password from before the deactivation #32115.needs-user-decision→pm:queue. The cloud SCIM doc's known-issue line is no longer needed once the patch lands.Generated by Claude Code
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Picked by
card-pick.mjs --order area:data --seat repo:objectstack#8at 2026-11-28T03:11Z: rank 8 (p3 close-out, first non-fleet card of the grade); the p2 cards above it are a cross-repo step (#34365), an un-triaged card (#37375), an ADR card (#37405), seat 2's trunk card (#37768), a card queued behind this seat's #37709 on the same package (#37852) and a contract-shape design card (#37909). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intakearea:data, then 「batch 调到 5,可以用云卡」.Claim: PM loop round 1
Session:
session_017xRBcSAaBEfQpU2yJexSJ8Account:
sunhaolinBranch:
claude/issue-32380-scim-name-recomposeWorktree:
objectstack-issue-32380Domain:
domain:serverSeat:
repo:objectstack#8File surface: one new
patches/@better-auth__scim*.patchand itspatchedDependenciesrow (pnpm-workspace.yamlor rootpackage.json, wherever the three existing patches are registered),pnpm-lock.yamlas pnpm writes it, a regression test underpackages/plugins/plugin-auth/src/**for both PATCH shapes, the upstream draft as text in the PR body, one changeset for@objectstack/plugin-authif its published behaviour moves; ⛔ no otherpatches/file, no change to the callback hooks near #32115 (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: opus (dispatch-gates --tier: no path-derived mandate; default tier),effort: high(ruling implementation: M treatment)Clause-②: no
Metadata-protocol: none
Responsibility:
vendor — @better-auth/scim setNamePart stores the part and never recomposes formatted/displayName; this repo carries it through a temporary pnpm patch by ruling|none — only a displayName PATCH or a full PUT moves sys_user.name|tenants whose IdP mapping sends only name parts (Entra path-addressed and Okta path-less shapes measured on 7d82b2da)Thread-read: 6845302116
Premise: holds — the ruling's premise (defect reproduced on 7d82b2d, dev report 6796756062) is re-measured first by the dev on current main before the patch is written.
Resume-from:
claude/issue-32380-scim-name-recompose@7d82b2daSerial constraints cleared: seat 3's #36160 declares
package.json/pnpm-lock.yaml/pnpm-workspace.yaml(dependency work); textual overlap re-checked withoverlap-check.mjsbefore every push and the lockfile follows the os-regen merge order if it conflicts.Scope this dispatch: ruling C items (1)–(2) (draft upstream text, temporary patch + regression test); item (3) is the future upgrade PR.
Fixes #32380.Ruling-ref: 6845302116 — 「创业项目,应该是需求合理就做」 then 「第三批同意」 (32380 C).
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
os-dev-report
{ "issue": 32380, "status": "done", "branch": "claude/issue-32380-scim-name-recompose", "pr": "https://github.com/objectstack-ai/objectstack/pull/38181", "session": "session_017xRBcSAaBEfQpU2yJexSJ8", "premise_still_valid": true, "summary": "Re-measured on current main first: with the patch registration removed, both PATCH shapes (Entra path-addressed Replace pair, Okta path-less replace with dotted keys) through AuthManager.handleRequest with a real SCIM bearer still leave displayName, name.formatted and sys_user.name on 'Renamed InOkta' (premise holds). Implemented ruling 6845302116 items (1)-(2): a temporary pnpm patch patches/@better-auth__scim@1.7.12.patch (header names the ruling and the removal condition) makes setNamePart recompose name.formatted, and through the vendor's setFormattedName displayName, with the vendor's composeName when name.formatted equalled composeName of the parts before the change; registered in pnpm-workspace.yaml beside the three existing patches; regression pin scim-name-recompose.test.ts (8 cases: both shapes, an unrelated PATCH keeps the new name, four CONTROLs that keep explicit names and let a displayName PATCH win in both orders, and one edge case); the upstream draft (vendor diff, vendor tests, PR paragraph) is in the PR body. MEASURED FINDING for the maintainer: @better-auth/scim's own suite at v1.7.12 and at main (1.7.28) pins 'preserves explicitly supplied formatted and display names when patching one name part' with an explicit name EQUAL to the composed parts; the vendor stores no provenance, so the ruled value test reads that shape as derived and recomposes it. The patch therefore reverses that vendor-pinned case (pinned here as case (c)), and the upstream draft has to change that vendor test's fixture, which the vendor may refuse (open_questions). No changeset: measured that the published plugin-auth tarball is unchanged and a pnpm patch reaches only installs of this workspace (dev, CI, framework-build-base image), never an npm install of @objectstack/plugin-auth; skip-changeset rides pr_create.", "tests": "Red without the patch (row deleted from pnpm-workspace.yaml, pnpm install, vendor dist carrying 0 patched lines), tree 58bebae26: `pnpm --filter @objectstack/plugin-auth exec vitest run --maxWorkers=2 src/scim-name-recompose.test.ts` under os-verify-lock, VERDICT command-exit 1, 'Tests 6 failed | 2 passed (8)', received displayName/formatted/userName 'Renamed InOkta' vs expected 'Entra Style' (the 2 that pass red are the explicit-name preservation CONTROLs). Green with it (git restore --source=HEAD, pnpm install --frozen-lockfile): VERDICT command-exit 0, 'Tests 8 passed (8)'. Whole package on 6206923a6: `pnpm --filter @objectstack/plugin-auth build && ... typecheck && ... exec vitest run --maxWorkers=2`, VERDICT command-exit 0, check:test-typecheck OK, 'Test Files 297 passed (297)', 'Tests 6313 passed | 10 skipped (6323)'. Final head c40d3488e5 = 6206923a6 + merge of origin/main touching no file under plugin-auth, patches/, pnpm-lock.yaml, pnpm-workspace.yaml or package.json (git diff --stat empty); the scoped SCIM re-run on c40d3488e5 is NOT MEASURED, reason: the verify lock was not acquired in three 9-minute windows (VERDICT queue-timeout exit 99, holder another session's dogfood run, 27-40 min); declared narrowing, CI Test Core runs it. Ablation: the red run above is the registration ablation (rebuild = reinstall, on-disk proof = 0 occurrences of formattedNameWasDerived in the installed vendor dist, 2 after restore). Upstream draft NOT MEASURED against the vendor's own suite (its workspace not installed here).", "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on c40d3488e5 derived 61 families (same list as on 58bebae26); all 61 run on c40d3488e5 with exit codes recorded (`cmd > out 2>&1; EXIT=$?`), `--ran` reconciliation: '61 derived famil(ies) accounted for — 60 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. 60 exit 0. check:type-check-debt exit 3 on c40d3488e5 (prerequisite not met after the merge moved packages/spec; rebuild blocked by the lock) = NOT MEASURED there; on 58bebae26 exit 0, '0 ledger entr(ies) re-measured in 817.5s, 0 raw tsc error(s) total'. check:test-source-alias was red on the first test draft (egress guard loaded in a case) and exit 0 after the module-top import (commit 6206923a6). check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure exit 3 before the closure build, exit 0 after. Published-content check: after building plugin-auth, the patched line occurs in 0 files of dist/ while dist/index.js and dist/index.mjs import @better-auth/scim (positive control). CI on c40d3488e5 at report time (one read, no polling): Check Changeset, Lint · ESLint, Lint · repo & tooling gates, Type Check · workspace, Type Check · debt ledger, Governed Surface Queue Guard, PR-body guards and the rest queued or in_progress; no conclusion yet. pnpm lint not run (CI-owned).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes via fleet-write/dispatch.mjs (each a POST /repos/objectstack-ai/objectstack/dispatches): (1) pr_create = POST pulls (draft, PR #38181), POST issues/38181/assignees [sunhaolin], POST issues/38181/labels [skip-changeset], read back identical 16248 bytes, assignee and label listed; (2) this os-dev-report = POST issues/32380/comments via post-stamped.mjs. Plus 3 git pushes (not REST).", "files_changed": [ "patches/@better-auth__scim@1.7.12.patch", "pnpm-workspace.yaml", "pnpm-lock.yaml", "packages/plugins/plugin-auth/src/scim-name-recompose.test.ts" ], "line_budget": "+429 -2 against origin/main: test 377, patch 32 (18 header lines + 14 diff), pnpm-workspace.yaml 15, pnpm-lock.yaml +5 -2", "deviations": "(1) No changeset, against the dispatch's parenthetical 'it does': measured the published tarball unchanged and the patch install-local (see summary); skip-changeset declared on pr_create. (2) pnpm patch-commit wrote patchedDependencies into package.json's pnpm field (duplicating the three rows); reverted and registered in pnpm-workspace.yaml as its comment block prescribes; package.json unchanged. (3) Final-head scoped test re-run and check:type-check-debt NOT MEASURED (lock), declared. (4) Case (c) pins the value-test edge the ruling's test implies; it reverses a vendor-pinned case. (5) Upstream draft unverified against the vendor suite. (6) The whole-package run built plugin-auth itself (its examples typecheck imports its own dist). (7) Commits carry the model-free trailer pair.", "open_questions": [ { "question": "The ruled derived test (value equality, 'the same test setFormattedName already makes') also recomposes a formatted/display name the IdP supplied explicitly when it EQUALS the composed parts, which @better-auth/scim's own suite pins as preserved (since v1.7.12). Keep it, or narrow?", "options": [ "A — keep as ruled and landed here: every name that differs from the parts is kept; an explicit name equal to the parts follows the parts. The upstream PR changes that vendor test's fixture to differing names (drafted). Cost: none here; upstream may refuse a reversal of a pinned case, in which case ruling item (3) never fires and the patch stays until a re-ruling.", "B — provenance: persist whether name.formatted was composed (a vendor-state field set at create/PATCH) and recompose only then. Keeps the vendor test as is, so upstream acceptance is likelier. Cost: a vendor schema/state change — a much larger patch than four lines, migration of stored scimUser rows; M-L upstream work.", "C — keep A in this repo, and submit upstream as an opt-in (plugin option) so the vendor default is unchanged. Cost: upstream option design; the patch here stays as is." ], "recommendation": "A, because the observable harm of recomposing a name that already equals 'given family' is nil for the measured tenants, it is the ruled test, and it lands today; submit the drafted upstream PR and, if the vendor refuses the fixture change, bring B or C back as a ruling then." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: maintainer (ruling 6845302116 item 3) · an npm install of the published @objectstack/plugin-auth resolves an unpatched @better-auth/scim until the vendor ships the recompose; noted in PR Acceptance notes, not filed", "carrier: cloud · the ruling notes the cloud SCIM doc's known-issue line is no longer needed once the patch lands; a cloud doc edit, not made here", "carrier: none · a user created with no name parts has name.formatted = primary email, and a later PATCH adding parts does not recompose it (not composed from parts); removing both parts one by one leaves name.formatted on the last single part; noted in Acceptance notes", "carrier: none · pnpm patch-commit writes patchedDependencies into package.json's pnpm field, not pnpm-workspace.yaml (the yaml's comment already says to move it); noted in Acceptance notes" ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Done · 2026-11-28T08:40Z — PR #38181 merged; this card closed as completed by its
Fixesline. Delivered per ruling 6845302116 C items (1)–(2): the temporary@better-auth/scim@1.7.12patch (a name-part PATCH recomposes a derived display name) with its regression pin, and the upstream draft in the PR body for the maintainer to submit. Remaining by the ruling's own words: item (3), removing the patch in the upgrade PR to the vendor release that ships the recompose (the regression pin stays); and the cloud SCIM doc's known-issue line, which is cloud's lane.pm:dispatchedremoved.