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: project the enterprise manager attribute into sys_user.manager_id, so SCIM-held users' managers can change at all #33918
Follow-up named by the #33200 ruling (comment 6895645364, maintainer option A).
Gap
After #33200, admin-set-user-manager refuses only users a SCIM directory holds (a sys_scim_subject row), telling the admin to change the manager in the directory. But no code projects the SCIM enterprise manager attribute into sys_user.manager_id: packages/lint/src/validate-approval-approvers.ts:155-159 records the attribute as declared with zero non-test projection sites, and packages/plugins/plugin-auth/src/scim* has none either. So for a SCIM-held user, the directory cannot set the manager and the admin is refused: no path changes it.
Done when
A SCIM create/replace/patch carrying urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:manager.value sets manager_id to the matching user in the same org, subject to the same four refusals as the admin endpoint (self, cycle, depth, cross-org), answered as SCIM errors.
A manager value naming no known user is refused loudly, not dropped.
Clearing the attribute clears manager_id.
The lint note at validate-approval-approvers.ts:155-159 and its rule explanation are updated to match.
Notes
Clause-②: yes (widening): a SCIM request that today ignores manager will start writing it.
Claim: server area S1 (A1+A2) under #33751 §2 area-lease mode, area A1, seat domain:server#5 · p2. The slot was freed by PR #34156 entering the merge queue. Executed by an os-dev subagent of the area S1 thread · posted at 2026-11-16T01:13Z
Session: session_01QsR2jVPGBoi3MCGoKbW1Hv
Account: zhuangjianguo
Branch: claude/area-A1-33918
Worktree: objectstack-area-A1-33918
Domain: domain:server
Seat: domain:server#5
File surface:
The SCIM user write path in packages/plugins/plugin-auth/src/ (the create/replace/patch handlers and their user projection).
The refusal helpers of admin-set-user-manager.ts. They are reused, extracted only if a shared export is needed, and never copied.
packages/lint/src/validate-approval-approvers.ts (the note at :155-159) and its entry in packages/lint/src/rule-explanations.ts.
{
"issue": 33918,
"status": "needs_decision",
"branch": "claude/area-A1-33918",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34252",
"session": "session_01QsR2jVPGBoi3MCGoKbW1Hv",
"premise_still_valid": true,
"summary": "Implemented: plugin-auth scim-manager-projection.ts projects the SCIM Enterprise manager onto sys_user.manager_id on the vendor's identity.reconcileUser callback (after reconcileScimUserLifecycle; ADR-0135 D4 untouched), inside the SCIM transaction. manager.value is matched against the manager's SCIM resource id among the Users the SAME connection provisioned (RFC 7643 4.3 defines value as the id; ids are per-connection, as GET /Users/{id} scopes them); a $ref alone is read by its /Users/{id} segment; externalId is deliberately not a second dialect. Refusals: unknown reference plus the admin endpoint's self/cycle/depth/cross-org via the extracted, imported screenUserManagerLink (and one shared writeUserManagerLink), each a SCIM 400 invalidValue carrying the admin code; nothing written. PATCH remove or a replace without it clears. Not projected outside a SCIM request (decommission/replay), on inactive state, from another connection's profile source, or when unchanged. needs_decision is ONLY the Clause-2 arm: the re-measure found requests served today that are refused now (open_questions).",
"tests": "Head bec3326d5. scim-manager-projection.test.ts 15/15 (end to end via AuthManager.handleRequest, real SCIM bearer, ObjectQL over better-sqlite3). Focused at bec3326d5: projection + api-error-code.pin + admin-set-user-manager + admin-import-users-manager-pass: 4 files, 82/82. Full plugin-auth suite at ad6c98f39 (before the write-sharing refactor): 278 files, 5574 passed, 10 skipped; at bec3326d5 NOT MEASURED locally (lock queue-timeout 99, sibling holder about 1h); CI Test Core success on bec3326d5. lint suite at ad6c98f39: 212 files, 9038/9038. typecheck plugin-auth and lint: exit 0 (test layer OK). Ablations via ablation-replace.mjs, each landed and restored to HEAD blob: A1 wiring unwired: 12 red (the today reading); A2 inactive skip removed: deprovision pin red; A3 connection scope removed: other-connection pin red; A4 screen removed: self/cycle/depth/cross-org red; A5 unchanged short-circuit removed: unchanged pin red (first A5 run was green, which added that pin; first A3 attempt was a no-op mutation the tool refused, rerun with a distinct marker). Ablations taken before the code field and write refactor; their anchors are unchanged.",
"gates": "dispatch-gates --commands at bec3326d5: 72 derived; 70 exit 0; pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (NOT MEASURED, CI); pnpm check:type-check-debt exit 99 lock queue-timeout (NOT MEASURED; CI Type Check debt ledger success). --ran reconciliation: 72 accounted, 71 run, 1 NOT-MEASURED (plus the 99 above). pnpm lint exit 0. Earlier sweep found check-tenant-audit-census red (+1 write site); fixed by sharing the one manager_id write, gate and self-test exit 0. Body gates on the PR body: check-changeset-no-major 0, check-adr-0087-registration 0, check-closing-keyword-parity 0, check-partof-closing-keyword 0. merge-tree vs origin/main, PR 34132, PR 34082, PR 34124: all clean. CI on bec3326d5: TypeScript Type Check success, Test Core success, Test UI failure (shard 5/16: app-shell AppContent.disabledPackageDeepLink-13052 findBy timeout; diff touches no ui path); rest in progress or success at report time. mergeable true.",
"dogfood_battery": "n/a: no ! in the PR title and the claim's arm is (widening); if the seat re-declares (narrowing) the battery is owed on the final head",
"mcp_calls": "0",
"api_writes": "2: fleet-write relay pr_create (PR 34252); post-stamped comment on issue 33918 (this report)",
"open_questions": [
{
"question": "Clause-2 arm: the claim says yes (widening), but with the projection unwired these are served today and refused now: create with an unknown manager.value 201, with the manager's externalId 201, with another connection's id 201, past the depth cap 201; PATCH to unknown 200, self 200, cycle 200, cross-org 200. Which arm?",
"options": [
"A: keep the refusals and re-declare Clause-2: yes (narrowing) with a BREAKING banner and an ADR-0087 disposition marker (still patch, Metadata-protocol none). Business: the requests that turn red never worked (manager_id was never written), so the loud refusal replaces a silent drop; cost: an IdP mapping manager to something other than the SCIM id (Okta's managerId default) now fails the whole user write. Long-term: one strict reading, contract-first. Anti-AI-error: loud and structural. Startup: no new key or surface. Small: two changeset edits plus the dogfood battery.",
"B: keep the claim's (widening) line. Long-term and anti-AI-error both fail: an undeclared narrowing ships. Not recommended.",
"C: accept an unresolvable reference and leave manager_id untouched. Business: no IdP breaks; long-term and anti-AI-error fail (term 2 and the silent-drop rule); and the four admin refusals still narrow, so the arm stays narrowing anyway."
],
"recommendation": "A: long-term reading leads (one contract, no silent drop), the narrowed set is a set that never took effect, and B and C are either dishonest or still narrowing."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat. Loose ends (one list): (1) content/docs/automation/approvals.mdx:101-107 says the platform declares the SCIM manager without projecting it; now false; outside the claim surface, not touched; ready patch at the scratchpad file s1/a1-docs.patch. (2) content/docs/capabilities/approvals.mdx:19-21 names SCIM only as a deployment-supplied path; same. (3) A stored manager reference left dangling by the manager's SCIM DELETE refuses the report's next active SCIM write until the directory sends a new manager or removes it (a deprovision is never refused). (4) An inactive user's manager is projected only on re-activation. (5) An IdP whose manager.value is not the SCIM id now fails the user write (see open question)."
],
"deviations": [
"packages/lint/src/validate-approval-approvers.test.ts is outside the claim's file surface: two pins asserted the sentence this card makes false and were rewritten (5 added, 2 removed); reported, not pre-cleared",
"a second shared export writeUserManagerLink in admin-set-user-manager.ts, to keep the tenant-audit census at one write site",
"direct dependents' suites not run: the package's public exports are byte-unchanged (os-dev local-scope rule), against common.txt's dependents line",
"full local plugin-auth suite at the final head NOT MEASURED (lock); CI Test Core green on it",
"docs file content/docs/automation/approvals.mdx was edited and restored within seconds during the sweep to build the patch; not committed"
],
"files_changed": [
".changeset/33918-lint-scim-manager-route.md +10",
".changeset/33918-scim-manager-projection.md +18",
"packages/lint/src/rule-explanations.ts +9 -7",
"packages/lint/src/validate-approval-approvers.test.ts +5 -2",
"packages/lint/src/validate-approval-approvers.ts +17 -11",
"packages/plugins/plugin-auth/src/admin-set-user-manager.ts +120 -81",
"packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts +12 -1",
"packages/plugins/plugin-auth/src/scim-manager-projection.test.ts +386",
"packages/plugins/plugin-auth/src/scim-manager-projection.ts +218"
],
"line_budget": "795 added / 102 removed across 9 files, under the 3000 human-merge threshold; no skills/** touched"
}
Seat ruling on L2 record 6907927050 M2 (ownership) · 2026-11-16T05:12Z
These two rulings do not depend on the A/C choice now with the maintainer. They follow the documented behaviour and ruling 6895645364, which says the directory wins where it holds the identity.
(a) Silence is not a clear. A SCIM write that does not name manager leaves manager_id as it is. Only an explicit remove, or a replace without the attribute, clears it. Today's clear-on-absence becomes a declared narrowing of that write effect, with a pin.
(b) One ownership rule, read by both doors. The projection writes manager_id only on identities the directory holds, which is exactly the set the admin endpoint refuses. On an identity the directory does not hold, the admin route owns the value and the projection leaves it alone. Both doors read the one predicate, so neither overwrites the other, and the last-writer-wins outcome refusal 5 rejects cannot arise.
Pins: an absent attribute keeps a value the admin route set; an explicit remove clears; on an identity the directory does not hold, the projection writes nothing; on an identity it holds, the admin endpoint refuses and the projection writes.
The maintainer chose the seat's recommended option on the decision card, verbatim: 「查不到人不拒,结构错误仍拒」 (an unresolvable manager is not refused; structural errors still are).
If a SCIM manager reference cannot be resolved, the user write is still served and manager_id stays as it was. This covers an unknown id, an externalId-style value, another connection's id and an unreadable $ref.
The event is recorded with a bounded audit row and one operator warn.
The four structural refusals (self, cycle, depth, cross-org) stay SCIM 400 invalidValue.
The unresolvable check must come after the "unchanged manager" short-circuit (or equivalent). A report whose manager was deleted then keeps working.
This replaces card term 2 ("refused loudly"), which the seat wrote and which this ruling overrides.
The structural four still narrow today's served requests. The PR keeps Clause-②: yes (narrowing), the BREAKING banner, the ADR-0087 disposition marker, and the dogfood battery on the final head.
The seat ruling on L2 M2 (ownership, one predicate for both doors) stands.
Release: claim 6904596788 (session session_01QsR2jVPGBoi3MCGoKbW1Hv, area S1 of domain:server#5, account zhuangjianguo) is withdrawn by takeover, cross-account. Who: the maintainer (Leehom). Words: 「接手 前任。#28677 (comment) 的未完成任务」. Where: the project seat thread of repo:objectstack#1 (seat post #34366). The predecessor signed off at brief 6912561028; the last pushed head is claude/area-A1-33918@345781c4c9679995bf8cad9676c6e7a560c51627 (hand-off 6912061414 on PR #34252: work in progress after maintainer ruling 6909383114 and seat ruling 6907953084; the audit-row question, ablations, dogfood battery and full-build gates are open).
Claim: repo:objectstack#1 area o1-A takeover · p2 · executed by os-dev subagents of the area o1-A thread · posted at 2026-11-16T09:50Z
Session: session_01FEkQ5nNrLRm8ssuwWcBVcw
Account: os-project-manager
Branch: claude/area-A1-33918
Worktree: objectstack-area-A1-33918
Domain: domain:server
Seat: repo:objectstack#1
File surface: unchanged from claim 6904596788 (the files of PR #34252). On any breach, stop and explain in the report.
Container & model: S-M, mode:subagent, model: default (fix rounds; the contract faces get their CONTRACT_REVIEW_TIER L2 separately), effort: high
Clause-②: yes (narrowing). A SCIM request whose manager is ignored today starts writing manager_id (the widening); the structural refusals (self, cycle, depth, cross-org) answered as SCIM 400 are the narrowing arm, declared with the BREAKING banner and one ADR-0087 marker per changeset per L2 6907927050 M1.
Metadata-protocol: none
Responsibility: no code projects the SCIM enterprise manager attribute, so a SCIM-held user's manager cannot change at all (objectstack) | none | admins of SCIM-provisioned orgs whose approvals route by manager
Thread-read: 6909383114
Premise: holds (corrected by maintainer ruling 6909383114: an unresolvable manager reference is served, manager_id unchanged, with a rate-limited warn)
Pre-claim lane: repo:objectstack (server face), because the fix is in packages/plugins/plugin-auth/** plus a lint note in packages/lint/**; no spec, ui, cloud or ADR path.
Pre-claim deps: none open; #33200 is done (PR #33991). rule-explanations.ts is shared with PR #34082 (Tier H, awaiting approval); merge-tree runs before each push.
Prior rulings read: maintainer ruling 6909383114 on this card; seat ruling 6907953084 (M2); the #33200 ruling 6895645364 (option A); L2 record 6907927050.
Serial constraints cleared: #34082 (shares rule-explanations.ts; merge-tree before push)
Resume-from: claude/area-A1-33918@345781c4c9679995bf8cad9676c6e7a560c51627
Seat route A (mailbox #34367 comment 6913160680, on area request 6913145681): the bounded audit row that maintainer ruling 6909383114 requires for an unresolvable SCIM manager reference ships in PR #34252.
Added to the file surface of claim 6913062456: the plugin-audit action that records the event (packages/plugins/plugin-audit/**, the action's declaration and its writer only), its card-named test, and a patch changeset for plugin-audit.
Then the remaining items of hand-off 6912061414, on the final head: ablations, the dogfood battery the narrowing arm owes, check:type-check-debt, check:dts-closure and check:dual-build-cjs-loads on a full build, CI and Test UI read, and the round-2 report.
{
"issue": 33918,
"status": "done",
"branch": "claude/area-A1-33918",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34252",
"session": "session_01FEkQ5nNrLRm8ssuwWcBVcw",
"premise_still_valid": true,
"head": "4c0b0ffd9bd0fc0b3d508e26f2e36ccc9609d1e7",
"summary": "Premise measured first and holds: the bounded audit row needs a new sys_audit_log.action option, which lives in plugin-audit's object (packages/plugins/plugin-audit/src/objects/sys-audit-log.object.ts), not in packages/spec, and no error-code ledger row; plugin-auth's published exports are unchanged (the slot member is declared package-internally). Built: scim_manager_unresolved, written by plugin-audit's SCIM writer (recordScimManagerUnresolved, through the existing persistScimRefusalAuditRow insert, so the tenant-audit census and durability vocabulary are unchanged). Bound chosen: rate = the warn's own admission (1 per connection per 10-minute window, 1000 per window across connections, dropped count carried as suppressed); content = connection, organization, the user's record id, reference kind, and the reference as sent, capped at 256 characters (door keeps 257 to signal truncation, writer stores 256 plus manager_reference_truncated) - nothing else of the request or user. Hand-off is after the response, outside the SCIM transaction, only for an answer below 400. Coordinator rounds folded in: check:dispatcher-error-vocabulary red (literal codes per stamp via a switch on the refusal's own code), check:i18n / check:i18n-coverage red (bundles regenerated, label translated in 10 locales), the cap pin (vendor caps manager.value at 256, $ref at 2048: the cap arm is reached through a long unreadable $ref; the over-256 value is pinned as the vendor's 400 with no row). PR body NOT patched (coordinator correction): the full body is at the scratchpad file named in deviations, gates run on it.",
"tests": "At 4c0b0ffd: scim-manager-projection.test.ts 35/35; plugin-auth suite 280 files, 5681 passed, 10 skipped; typecheck plugin-auth / plugin-audit / lint exit 0 (at c659399a, test-only commits since). plugin-audit suite at c659399a 97 files 1577/1577, lint suite at c659399a 212 files 9067/9067 (neither package changed since). Ablations via scripts/ablation-replace.mjs, each anchor hit once and restored to the HEAD blob, final git diff HEAD empty: A1 wiring 24 red; A2 intent gate 4; A3 ownership predicate 1; A4 structural screen 5; A5 unchanged short-circuit 1 (first run at dcf1984e GREEN - the pin's PATCH named no manager and stopped at the intent gate; pin strengthened with a replace in 4c0b0ffd, rerun red); A6 inactive skip 1; A7 unresolvable refused 11 (first run void: replacement kept its anchor, tool refused as no-op; rerun with a replacement that drops it); A8 audit note not recorded 4; A9 hand-off status gate 1; A10 door cap 1; A11 note without warn bound 2; A12 writer cap (plugin-audit) 1. Subjects resolve through relative src imports, so no dist rebuild per leg.",
"gates": "dispatch-gates --commands at 4c0b0ffd (derivation identical to 4958560c): 104 derived; --ran: 104 run, 0 NOT-MEASURED, 0 UNRUN. Exit 0 for all except: check-plugin-teardown-shape --self-test exit 3 on the shallow clone (fixture pinned to 621a4876), exit 0 / 48 cases after fetching that commit; check:type-check-debt exit 3 twice (lock queue-timeout 99, 540 s each, behind a sibling's locked batch, pid 23448) - NOT MEASURED locally, CI 'Type Check · debt ledger' success on 4c0b0ffd. check:dts-closure 0 and check:dual-build-cjs-loads 0 on the full build (turbo 119/119, VERDICT command-exit 0). Outside derivation, run: check:dispatcher-error-vocabulary 0, check:i18n-coverage 0. Body gates on the scratchpad body: check-closing-keyword-parity --body exit 2 (report code: only Fixes #33918 binds), check-partof-closing-keyword 0, check-changeset-no-major --event 0, check-closing-target-claim 0 (#33918 UNDETERMINED: newest Claim: comment has no Branch: line the parser reads); relay dry-run of the issue_patch accepts the trailer. merge-tree vs origin/main and PR #34082 clean before each of 5 pushes. CI on 4c0b0ffd: 68 check-runs, 58 success, 10 skipped, 0 failure; required: Lint & Repo Gates, TypeScript Type Check, Test Core (8/8), Build Core, Governed Surface Queue Guard, Type Check UI, Test UI (16/16), Build & E2E UI, Live E2E UI, Dogfood Regression Gate all success; Lint UI skipped (no ui path); Check Changeset success.",
"dogfood_battery": "4c0b0ffd · VERDICT command-exit 0 (pnpm --filter @objectstack/dogfood test, no shard, no path, full build) · Test Files 473 passed, 3 skipped (476) · Tests 4003 passed, 42 skipped (4045) · no failure",
"mcp_calls": "0",
"api_writes": "1 - post-stamped comment on issue 33918 (this report); git push x5 (not REST); PR body not written (handed to PM as a file)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat · not reproduced, noted: a manager reference whose SCIM row resolves to a sys_user id that no longer exists reaches screenUserManagerLink's manager_not_found refusal (400 INVALID_REFERENCE) rather than the ruling's served-unchanged path; reach unmeasured (needs a sys_user deleted outside SCIM while its scimUser row stays)",
"carrier: seat · the PR title has no '!' although the body and changesets declare BREAKING (narrowing); not changed here",
"carrier: seat · check-closing-target-claim reads #33918 as UNDETERMINED: the newest Claim: comment (6913062456, after a Release: paragraph) yields no parseable Branch: line"
],
"deviations": [
"PR body: per coordinator correction not patched; full body at /tmp/claude-0/-home-user/c4a88932-131d-5057-9991-5d2860b082fa/scratchpad/issue-33918/pr-body-new.md (relay actions file body-actions.json beside it). Line 1 attribution, last line the signed trailer - the trailer is an HTML comment os-dev.md bans for dev text; the relay's issue_patch requires it (PR_BODY_TRAILER_SHAPE), so the dispatch's spelling is used. The old body's stray first title line is dropped.",
"plugin-audit pins go into the writer's existing harness scim-refusal-audit.test.ts as a top-level describe plus one slot case, not a new card-named file (AGENTS.md shared-harness rule, ruling record 6583487846)",
"content/docs/automation/approvals.mdx: one sentence names the audit row (file already in the PR, outside the claim surface)",
"plugin-audit changeset carries Clause-②: yes (narrowing) and one ADR-0087 not-required marker, the lint changeset's pattern",
"dispatch-gates warned of a stale tree (origin/main ahead; check-skills-token-ratchet.mjs and label-write.mjs changed); main not merged - no conflict and no main-caused red",
"commit trailers use the model-free pair AGENTS.md requires, not the harness's model-named Co-Authored-By",
"fetched commit 621a4876 at depth 1 into the shared object store for the teardown self-test fixture",
"card file red at c659399a (vendor value cap; CI Test Core 6/8 on that head) - fixed in 50a7e17b / dcf1984e"
],
"files_changed": "23 files +609 -34 this round (345781c4..4c0b0ffd): plugin-audit scim-refusal-audit.ts +165, its test +103, sys-audit-log.object.ts +16, labels/retired-actions tests +9, 11 translation bundles +22 -11; plugin-auth scim-manager-projection.ts, its test, scim-connection-service.ts, auth-manager-request-routing.ts; .changeset/33918-scim-manager-unresolved-audit.md (new), 33918-scim-manager-projection.md; content/docs/automation/approvals.mdx",
"line_budget": "PR total 30 files +1842 -133 (1975 changed), under the 3000 human-merge threshold; no skills/** touched"
}
{
"issue": 33918,
"status": "done",
"branch": "claude/area-A1-33918",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34252",
"session": "session_01FEkQ5nNrLRm8ssuwWcBVcw",
"premise_still_valid": true,
"head": "317c495572e4351db852b1e1e26183ac04a68f36",
"summary": "Round 4 (L2 6916550843). M3: a manager reference that resolves to this connection's scimUser row whose sys_user no longer exists screened as manager_not_found and answered SCIM 400. It now takes the served path of ruling 6909383114: the projection routes refusal.reason === 'manager_not_found' to warnUnresolved (kind id), so the write is served, manager_id is unchanged, and the request gets one warn and one scim_manager_unresolved row. Only the four structural refusals (self, cycle, depth, cross-org) still reach scimRefusalError and answer 400, so the changeset sentence 'Those four are the only requests served before and refused now' stays true. Pinned by removing boss's sys_user at the driver (past the engine's restrict) and then sending a create (201, manager null, 1 warn, 1 event) and, in the next window, a replace (200, the earlier live manager kept, a 2nd warn and event). N3 folded: directoryOwnedUser (admin-set-user-manager.ts, package-internal, not in index) answers with the owned user's row, so the projection reads sys_user once and takes manager_id from it. directoryOwnsUserManager is now that row !== null, the same predicate, no behaviour change. L1 nit: the plugin-audit changeset says the admission happens inside the SCIM transaction, so a request refused after admission still logs the warn and spends the window, and the next served unresolvable reference in that window is counted only in suppressed. N4: the plugin-auth changeset gains 'On upgrade': a replace-syncing IdP that maps no manager clears, on its next sync, a manager_id set earlier for a directory-held user. The lint note, its changeset and approvals.mdx now say 'no existing user the connection provisioned'. N5 (title) left to the coordinator.",
"tests": "At 317c4955: scim-manager-projection.test.ts 36/36; plugin-auth suite 280 files, 5682 passed, 10 skipped; lint suite 212 files 9067/9067; typecheck plugin-auth and lint exit 0. plugin-audit has no source change this round (changeset text only), so its suite was not rerun: 1577/1577 at c659399a. Ablations via scripts/ablation-replace.mjs at 317c4955, each anchor hit once, restored to the HEAD blob, final git diff HEAD empty. A13 (the manager_not_found branch removed) is 1 red, the new pin: 'expected 400 to be 201' with INVALID_REFERENCE 'The proposed manager does not exist'. Legs rerun because their code moved: A3 (ownership predicate removed, a non-held user read as owned with no manager) 1 red; A4 (structural screen) 5 red; A5 (unchanged short-circuit) 1 red; A7 (unresolvable refused) 11 red. A1, A2, A6 and A8 to A12 are from 4c0b0ffd, on code this round does not touch.",
"gates": "dispatch-gates --commands at 317c4955: 104 derived (same list as round 3). --ran with exit codes recorded: 101 run, all exit 0; 2 NOT-MEASURED and 1 UNRUN. NOT-MEASURED, each exit 3 PREREQUISITE NOT MET because there is no full build here: pnpm --filter @objectstack/spec run check:skill-examples (packages/client-react dist has no .d.ts; CI 'Type Check · consumer gates' success on 317c4955) and check:dual-build-cjs-loads (CI 'Build Core' success on 317c4955). UNRUN: check:type-check-debt, because its closure build takes the shared lock behind sibling batches (CI 'Type Check · debt ledger' success on 317c4955). Run outside the derivation: check:dispatcher-error-vocabulary 0, check:i18n-coverage 0 (check:i18n and check:i18n-stale-fill derived, 0). Body gates on the scratchpad body: check-closing-keyword-parity --body exit 2 (report code: only Fixes #33918 binds, by 2 of 3 parsers); check-partof-closing-keyword 0; check-changeset-no-major --event 0; check-closing-target-claim 0 (#33918 still UNDETERMINED); relay dry-run of the issue_patch exit 0. git merge-tree --write-tree against origin/main (f84dc192) and against PR #34082 (open, 25dcfa86) was clean before the push. CI on 317c4955: 68 check-runs, 58 success, 10 skipped, 0 failure, all completed (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Type Check · consumer gates / debt ledger / workspace / source gates, Lint · docs & code guards and the other Lint jobs, Dogfood Regression Gate and Check Changeset all success).",
"dogfood_battery": "317c4955 · VERDICT command-exit 0, lock held 2743 s (pnpm --filter @objectstack/dogfood test, no shard, no path, on the dogfood closure built after the last source change) · Test Files 473 passed, 3 skipped (476) · Tests 4003 passed, 42 skipped (4045) · no failure",
"mcp_calls": "0",
"api_writes": "1 - post-stamped comment on issue 33918 (this report); git push x1 (not REST); PR body not written (handed over as a file)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat · check-closing-target-claim still reads #33918 as UNDETERMINED: the newest Claim: comment has no Branch: line the parser can read",
"carrier: seat · the round-3 note on manager_not_found is now fixed in this PR (M3); the PR title '!' is the coordinator's (N5)"
],
"deviations": [
"PR body not patched; the full body is at /tmp/claude-0/-home-user/c4a88932-131d-5057-9991-5d2860b082fa/scratchpad/issue-33918/pr-body-new.md and the relay actions file is body-actions.json beside it. Line 1 is the attribution and the last non-empty line is the signed trailer.",
"The local gate run is narrower than the derivation (declared). Two gates are NOT MEASURED because they need a full build, and type-check-debt is UNRUN because of lock contention. All three are cited from CI on the same head, all success. A queued full build was cancelled to free the shared lock.",
"The worktree was built from the dogfood closure plus lint, not the full 119-task build of round 3.",
"dispatch-gates warned of a stale tree: 24 commits behind origin/main, with check-skills-token-ratchet.mjs and label-write.mjs changed there. main was not merged, because there is no conflict and no red caused by main.",
"rule-explanations.ts (shared with PR #34082) got a one-word change ('existing'); merge-tree against #34082 is clean.",
"Commit trailers use the model-free pair AGENTS.md requires, not the harness's Co-Authored-By that names the model."
],
"files_changed": "8 files +73 -21 this round (4c0b0ffd..317c4955): plugin-auth scim-manager-projection.ts +17 -14, admin-set-user-manager.ts +14 -2, scim-manager-projection.test.ts +35; lint rule-explanations.ts +1 -1; content/docs/automation/approvals.mdx +1 -1; three changesets +5 -3",
"line_budget": "PR total 30 files +1894 -133 (2027 changed), under the 3000 human-merge threshold; no skills/** touched"
}
PR #34252 merged as 18194fbb8, which closed this card through its Fixes keyword. A SCIM create, replace or patch that names the Enterprise User manager attribute now projects it into sys_user.manager_id for a user the directory holds. It is subject to the admin endpoint's four structural refusals, each answered as SCIM 400 invalidValue. An unresolvable manager is served and recorded with one operator warn and one bounded scim_manager_unresolved audit row. Silence does not clear the manager; an explicit remove does, and so does a replace without the attribute. Nothing is left on this card. This stroke removes the state label and the area lease.
Activity
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv
Claim: server area S1 (A1+A2) under #33751 §2 area-lease mode, area A1, seat
domain:server#5· p2. The slot was freed by PR #34156 entering the merge queue. Executed by anos-devsubagent of the area S1 thread · posted at 2026-11-16T01:13ZSession:
session_01QsR2jVPGBoi3MCGoKbW1HvAccount:
zhuangjianguoBranch:
claude/area-A1-33918Worktree:
objectstack-area-A1-33918Domain:
domain:serverSeat:
domain:server#5File surface:
packages/plugins/plugin-auth/src/(the create/replace/patch handlers and their user projection).admin-set-user-manager.ts. They are reused, extracted only if a shared export is needed, and never copied.packages/lint/src/validate-approval-approvers.ts(the note at :155-159) and its entry inpackages/lint/src/rule-explanations.ts.On any breach, stop and explain in the report.
Container & model:
S-M,mode:subagent,model: default (no path-derived mandate),effort: highClause-②: yes (widening). A SCIM request whose
manageris ignored today starts writingmanager_id. A manager value naming no known user is answered as a SCIM error. The dev measures this again before the PR, including whether any request served today becomes refused.Metadata-protocol: none
Responsibility:
no code projects the SCIM enterprise manager attribute, so a SCIM-held user's manager cannot change at all (objectstack) | none | admins of SCIM-provisioned orgs whose approvals route by managerThread-read: none
Premise: holds as filed. plugin-auth: admin/set-user-manager refuses every user who has signed in through SSO as "directory-owned", even where no directory exists, so on a hosted environment nobody's manager can be changed after their first sign-in #33200 landed as PR fix(plugin-auth): Set Manager refuses only a person a SCIM directory holds #33991, so the admin door refuses SCIM-held users, and no projection site exists (
validate-approval-approvers.ts:155-159). The dev measures this again on main.Pre-claim lane: server, because the fix is in
packages/plugins/plugin-auth/**, plus a lint note inpackages/lint/**. No spec, ui, cloud or ADR text is involved, and ADR-0135 D4 stamping is untouched.Pre-claim deps: plugin-auth: admin/set-user-manager refuses every user who has signed in through SSO as "directory-owned", even where no directory exists, so on a hosted environment nobody's manager can be changed after their first sign-in #33200 is done (PR fix(plugin-auth): Set Manager refuses only a person a SCIM directory holds #33991 merged).
rule-explanations.tsis shared with fix(lint): the object_extension publish door refuses an extension field under a label its target already shows, or another field of the same extension shows (field-label-duplicate) #34132 and with fix(core, plugin-security, lint)!: a permission set's own field-mask row binds its own holders over that set's View All vote #34082 (Tier H, awaiting approval; its branch is not touched). Merge-tree runs against both and against origin/main before the push. No open PR touches the SCIM user write files oradmin-set-user-manager.ts.Prior rulings read: the plugin-auth: admin/set-user-manager refuses every user who has signed in through SSO as "directory-owned", even where no directory exists, so on a hosted environment nobody's manager can be changed after their first sign-in #33200 ruling 6895645364 (maintainer option A), which names this follow-up. The card's terms: the same four refusals as the admin endpoint (self, cycle, depth, cross-org), answered as SCIM errors; an unknown manager refused loudly; a clear clears
manager_id. ADR-0135 D4 is not touched.Serial constraints cleared: Auth: the environment-access refusal carries the host's reason, and the cloud sign-in page names the organization (client_name) on an OAuth hand-off #34168 / data: the duplicate refusal reaches the writer's locale only on the /data door — the action door and updateMany answer the English developer sentence #33790 / fix(plugin-sharing)!: the write gate judges by id exactly the writes the engine runs by id #34033 (this area, other files)
fix(plugin-auth): Set Manager refuses only a person a SCIM directory …
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv
os-dev-report
{ "issue": 33918, "status": "needs_decision", "branch": "claude/area-A1-33918", "pr": "https://github.com/objectstack-ai/objectstack/pull/34252", "session": "session_01QsR2jVPGBoi3MCGoKbW1Hv", "premise_still_valid": true, "summary": "Implemented: plugin-auth scim-manager-projection.ts projects the SCIM Enterprise manager onto sys_user.manager_id on the vendor's identity.reconcileUser callback (after reconcileScimUserLifecycle; ADR-0135 D4 untouched), inside the SCIM transaction. manager.value is matched against the manager's SCIM resource id among the Users the SAME connection provisioned (RFC 7643 4.3 defines value as the id; ids are per-connection, as GET /Users/{id} scopes them); a $ref alone is read by its /Users/{id} segment; externalId is deliberately not a second dialect. Refusals: unknown reference plus the admin endpoint's self/cycle/depth/cross-org via the extracted, imported screenUserManagerLink (and one shared writeUserManagerLink), each a SCIM 400 invalidValue carrying the admin code; nothing written. PATCH remove or a replace without it clears. Not projected outside a SCIM request (decommission/replay), on inactive state, from another connection's profile source, or when unchanged. needs_decision is ONLY the Clause-2 arm: the re-measure found requests served today that are refused now (open_questions).", "tests": "Head bec3326d5. scim-manager-projection.test.ts 15/15 (end to end via AuthManager.handleRequest, real SCIM bearer, ObjectQL over better-sqlite3). Focused at bec3326d5: projection + api-error-code.pin + admin-set-user-manager + admin-import-users-manager-pass: 4 files, 82/82. Full plugin-auth suite at ad6c98f39 (before the write-sharing refactor): 278 files, 5574 passed, 10 skipped; at bec3326d5 NOT MEASURED locally (lock queue-timeout 99, sibling holder about 1h); CI Test Core success on bec3326d5. lint suite at ad6c98f39: 212 files, 9038/9038. typecheck plugin-auth and lint: exit 0 (test layer OK). Ablations via ablation-replace.mjs, each landed and restored to HEAD blob: A1 wiring unwired: 12 red (the today reading); A2 inactive skip removed: deprovision pin red; A3 connection scope removed: other-connection pin red; A4 screen removed: self/cycle/depth/cross-org red; A5 unchanged short-circuit removed: unchanged pin red (first A5 run was green, which added that pin; first A3 attempt was a no-op mutation the tool refused, rerun with a distinct marker). Ablations taken before the code field and write refactor; their anchors are unchanged.", "gates": "dispatch-gates --commands at bec3326d5: 72 derived; 70 exit 0; pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (NOT MEASURED, CI); pnpm check:type-check-debt exit 99 lock queue-timeout (NOT MEASURED; CI Type Check debt ledger success). --ran reconciliation: 72 accounted, 71 run, 1 NOT-MEASURED (plus the 99 above). pnpm lint exit 0. Earlier sweep found check-tenant-audit-census red (+1 write site); fixed by sharing the one manager_id write, gate and self-test exit 0. Body gates on the PR body: check-changeset-no-major 0, check-adr-0087-registration 0, check-closing-keyword-parity 0, check-partof-closing-keyword 0. merge-tree vs origin/main, PR 34132, PR 34082, PR 34124: all clean. CI on bec3326d5: TypeScript Type Check success, Test Core success, Test UI failure (shard 5/16: app-shell AppContent.disabledPackageDeepLink-13052 findBy timeout; diff touches no ui path); rest in progress or success at report time. mergeable true.", "dogfood_battery": "n/a: no ! in the PR title and the claim's arm is (widening); if the seat re-declares (narrowing) the battery is owed on the final head", "mcp_calls": "0", "api_writes": "2: fleet-write relay pr_create (PR 34252); post-stamped comment on issue 33918 (this report)", "open_questions": [ { "question": "Clause-2 arm: the claim says yes (widening), but with the projection unwired these are served today and refused now: create with an unknown manager.value 201, with the manager's externalId 201, with another connection's id 201, past the depth cap 201; PATCH to unknown 200, self 200, cycle 200, cross-org 200. Which arm?", "options": [ "A: keep the refusals and re-declare Clause-2: yes (narrowing) with a BREAKING banner and an ADR-0087 disposition marker (still patch, Metadata-protocol none). Business: the requests that turn red never worked (manager_id was never written), so the loud refusal replaces a silent drop; cost: an IdP mapping manager to something other than the SCIM id (Okta's managerId default) now fails the whole user write. Long-term: one strict reading, contract-first. Anti-AI-error: loud and structural. Startup: no new key or surface. Small: two changeset edits plus the dogfood battery.", "B: keep the claim's (widening) line. Long-term and anti-AI-error both fail: an undeclared narrowing ships. Not recommended.", "C: accept an unresolvable reference and leave manager_id untouched. Business: no IdP breaks; long-term and anti-AI-error fail (term 2 and the silent-drop rule); and the four admin refusals still narrow, so the arm stays narrowing anyway." ], "recommendation": "A: long-term reading leads (one contract, no silent drop), the narrowed set is a set that never took effect, and B and C are either dishonest or still narrowing." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat. Loose ends (one list): (1) content/docs/automation/approvals.mdx:101-107 says the platform declares the SCIM manager without projecting it; now false; outside the claim surface, not touched; ready patch at the scratchpad file s1/a1-docs.patch. (2) content/docs/capabilities/approvals.mdx:19-21 names SCIM only as a deployment-supplied path; same. (3) A stored manager reference left dangling by the manager's SCIM DELETE refuses the report's next active SCIM write until the directory sends a new manager or removes it (a deprovision is never refused). (4) An inactive user's manager is projected only on re-activation. (5) An IdP whose manager.value is not the SCIM id now fails the user write (see open question)." ], "deviations": [ "packages/lint/src/validate-approval-approvers.test.ts is outside the claim's file surface: two pins asserted the sentence this card makes false and were rewritten (5 added, 2 removed); reported, not pre-cleared", "a second shared export writeUserManagerLink in admin-set-user-manager.ts, to keep the tenant-audit census at one write site", "direct dependents' suites not run: the package's public exports are byte-unchanged (os-dev local-scope rule), against common.txt's dependents line", "full local plugin-auth suite at the final head NOT MEASURED (lock); CI Test Core green on it", "docs file content/docs/automation/approvals.mdx was edited and restored within seconds during the sweep to build the patch; not committed" ], "files_changed": [ ".changeset/33918-lint-scim-manager-route.md +10", ".changeset/33918-scim-manager-projection.md +18", "packages/lint/src/rule-explanations.ts +9 -7", "packages/lint/src/validate-approval-approvers.test.ts +5 -2", "packages/lint/src/validate-approval-approvers.ts +17 -11", "packages/plugins/plugin-auth/src/admin-set-user-manager.ts +120 -81", "packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts +12 -1", "packages/plugins/plugin-auth/src/scim-manager-projection.test.ts +386", "packages/plugins/plugin-auth/src/scim-manager-projection.ts +218" ], "line_budget": "795 added / 102 removed across 9 files, under the 3000 human-merge threshold; no skills/** touched" }objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG
Seat ruling on L2 record 6907927050 M2 (ownership) · 2026-11-16T05:12Z
These two rulings do not depend on the A/C choice now with the maintainer. They follow the documented behaviour and ruling 6895645364, which says the directory wins where it holds the identity.
managerleavesmanager_idas it is. Only an explicitremove, or areplacewithout the attribute, clears it. Today's clear-on-absence becomes a declared narrowing of that write effect, with a pin.manager_idonly on identities the directory holds, which is exactly the set the admin endpoint refuses. On an identity the directory does not hold, the admin route owns the value and the projection leaves it alone. Both doors read the one predicate, so neither overwrites the other, and the last-writer-wins outcome refusal 5 rejects cannot arise.Pins: an absent attribute keeps a value the admin route set; an explicit remove clears; on an identity the directory does not hold, the projection writes nothing; on an identity it holds, the admin endpoint refuses and the projection writes.
objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG
Maintainer ruling · 2026-11-16T06:40Z
The maintainer chose the seat's recommended option on the decision card, verbatim: 「查不到人不拒,结构错误仍拒」 (an unresolvable manager is not refused; structural errors still are).
managerreference cannot be resolved, the user write is still served andmanager_idstays as it was. This covers an unknown id, an externalId-style value, another connection's id and an unreadable $ref.invalidValue.Clause-②: yes (narrowing), the BREAKING banner, the ADR-0087 disposition marker, and the dogfood battery on the final head.Owner: area S1, PR #34252.
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
Release: claim 6904596788 (session
session_01QsR2jVPGBoi3MCGoKbW1Hv, area S1 ofdomain:server#5, accountzhuangjianguo) is withdrawn by takeover, cross-account. Who: the maintainer (Leehom). Words: 「接手 前任。#28677 (comment) 的未完成任务」. Where: the project seat thread ofrepo:objectstack#1(seat post #34366). The predecessor signed off at brief 6912561028; the last pushed head isclaude/area-A1-33918@345781c4c9679995bf8cad9676c6e7a560c51627(hand-off 6912061414 on PR #34252: work in progress after maintainer ruling 6909383114 and seat ruling 6907953084; the audit-row question, ablations, dogfood battery and full-build gates are open).Claim: repo:objectstack#1 area o1-A takeover · p2 · executed by
os-devsubagents of the area o1-A thread · posted at 2026-11-16T09:50ZSession:
session_01FEkQ5nNrLRm8ssuwWcBVcwAccount:
os-project-managerBranch:
claude/area-A1-33918Worktree:
objectstack-area-A1-33918Domain:
domain:serverSeat:
repo:objectstack#1File surface: unchanged from claim 6904596788 (the files of PR #34252). On any breach, stop and explain in the report.
Container & model:
S-M,mode:subagent,model: default (fix rounds; the contract faces get their CONTRACT_REVIEW_TIER L2 separately),effort: highClause-②: yes (narrowing). A SCIM request whose
manageris ignored today starts writingmanager_id(the widening); the structural refusals (self, cycle, depth, cross-org) answered as SCIM 400 are the narrowing arm, declared with the BREAKING banner and one ADR-0087 marker per changeset per L2 6907927050 M1.Metadata-protocol: none
Responsibility:
no code projects the SCIM enterprise manager attribute, so a SCIM-held user's manager cannot change at all (objectstack) | none | admins of SCIM-provisioned orgs whose approvals route by managerThread-read: 6909383114
Premise: holds (corrected by maintainer ruling 6909383114: an unresolvable manager reference is served,
manager_idunchanged, with a rate-limited warn)Pre-claim lane: repo:objectstack (server face), because the fix is in
packages/plugins/plugin-auth/**plus a lint note inpackages/lint/**; no spec, ui, cloud or ADR path.Pre-claim deps: none open; #33200 is done (PR #33991).
rule-explanations.tsis shared with PR #34082 (Tier H, awaiting approval); merge-tree runs before each push.Prior rulings read: maintainer ruling 6909383114 on this card; seat ruling 6907953084 (M2); the #33200 ruling 6895645364 (option A); L2 record 6907927050.
Serial constraints cleared: #34082 (shares
rule-explanations.ts; merge-tree before push)Resume-from:
claude/area-A1-33918@345781c4c9679995bf8cad9676c6e7a560c51627objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
Claim amendment · #33918 · audit-row surface · 2026-11-16T09:56Z
Seat route A (mailbox #34367 comment 6913160680, on area request 6913145681): the bounded audit row that maintainer ruling 6909383114 requires for an unresolvable SCIM
managerreference ships in PR #34252.packages/plugins/plugin-audit/**, the action's declaration and its writer only), its card-named test, and a patch changeset for plugin-audit.packages/specenum or schema member, no error-code ledger row). If the premise fails, the dev stops and reports; route B then applies (a follow-up card, and the PR lands as part of SCIM: project the enterprisemanagerattribute into sys_user.manager_id, so SCIM-held users' managers can change at all #33918).check:type-check-debt,check:dts-closureandcheck:dual-build-cjs-loadson a full build, CI and Test UI read, and the round-2 report.objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
os-dev-report
{ "issue": 33918, "status": "done", "branch": "claude/area-A1-33918", "pr": "https://github.com/objectstack-ai/objectstack/pull/34252", "session": "session_01FEkQ5nNrLRm8ssuwWcBVcw", "premise_still_valid": true, "head": "4c0b0ffd9bd0fc0b3d508e26f2e36ccc9609d1e7", "summary": "Premise measured first and holds: the bounded audit row needs a new sys_audit_log.action option, which lives in plugin-audit's object (packages/plugins/plugin-audit/src/objects/sys-audit-log.object.ts), not in packages/spec, and no error-code ledger row; plugin-auth's published exports are unchanged (the slot member is declared package-internally). Built: scim_manager_unresolved, written by plugin-audit's SCIM writer (recordScimManagerUnresolved, through the existing persistScimRefusalAuditRow insert, so the tenant-audit census and durability vocabulary are unchanged). Bound chosen: rate = the warn's own admission (1 per connection per 10-minute window, 1000 per window across connections, dropped count carried as suppressed); content = connection, organization, the user's record id, reference kind, and the reference as sent, capped at 256 characters (door keeps 257 to signal truncation, writer stores 256 plus manager_reference_truncated) - nothing else of the request or user. Hand-off is after the response, outside the SCIM transaction, only for an answer below 400. Coordinator rounds folded in: check:dispatcher-error-vocabulary red (literal codes per stamp via a switch on the refusal's own code), check:i18n / check:i18n-coverage red (bundles regenerated, label translated in 10 locales), the cap pin (vendor caps manager.value at 256, $ref at 2048: the cap arm is reached through a long unreadable $ref; the over-256 value is pinned as the vendor's 400 with no row). PR body NOT patched (coordinator correction): the full body is at the scratchpad file named in deviations, gates run on it.", "tests": "At 4c0b0ffd: scim-manager-projection.test.ts 35/35; plugin-auth suite 280 files, 5681 passed, 10 skipped; typecheck plugin-auth / plugin-audit / lint exit 0 (at c659399a, test-only commits since). plugin-audit suite at c659399a 97 files 1577/1577, lint suite at c659399a 212 files 9067/9067 (neither package changed since). Ablations via scripts/ablation-replace.mjs, each anchor hit once and restored to the HEAD blob, final git diff HEAD empty: A1 wiring 24 red; A2 intent gate 4; A3 ownership predicate 1; A4 structural screen 5; A5 unchanged short-circuit 1 (first run at dcf1984e GREEN - the pin's PATCH named no manager and stopped at the intent gate; pin strengthened with a replace in 4c0b0ffd, rerun red); A6 inactive skip 1; A7 unresolvable refused 11 (first run void: replacement kept its anchor, tool refused as no-op; rerun with a replacement that drops it); A8 audit note not recorded 4; A9 hand-off status gate 1; A10 door cap 1; A11 note without warn bound 2; A12 writer cap (plugin-audit) 1. Subjects resolve through relative src imports, so no dist rebuild per leg.", "gates": "dispatch-gates --commands at 4c0b0ffd (derivation identical to 4958560c): 104 derived; --ran: 104 run, 0 NOT-MEASURED, 0 UNRUN. Exit 0 for all except: check-plugin-teardown-shape --self-test exit 3 on the shallow clone (fixture pinned to 621a4876), exit 0 / 48 cases after fetching that commit; check:type-check-debt exit 3 twice (lock queue-timeout 99, 540 s each, behind a sibling's locked batch, pid 23448) - NOT MEASURED locally, CI 'Type Check · debt ledger' success on 4c0b0ffd. check:dts-closure 0 and check:dual-build-cjs-loads 0 on the full build (turbo 119/119, VERDICT command-exit 0). Outside derivation, run: check:dispatcher-error-vocabulary 0, check:i18n-coverage 0. Body gates on the scratchpad body: check-closing-keyword-parity --body exit 2 (report code: only Fixes #33918 binds), check-partof-closing-keyword 0, check-changeset-no-major --event 0, check-closing-target-claim 0 (#33918 UNDETERMINED: newest Claim: comment has no Branch: line the parser reads); relay dry-run of the issue_patch accepts the trailer. merge-tree vs origin/main and PR #34082 clean before each of 5 pushes. CI on 4c0b0ffd: 68 check-runs, 58 success, 10 skipped, 0 failure; required: Lint & Repo Gates, TypeScript Type Check, Test Core (8/8), Build Core, Governed Surface Queue Guard, Type Check UI, Test UI (16/16), Build & E2E UI, Live E2E UI, Dogfood Regression Gate all success; Lint UI skipped (no ui path); Check Changeset success.", "dogfood_battery": "4c0b0ffd · VERDICT command-exit 0 (pnpm --filter @objectstack/dogfood test, no shard, no path, full build) · Test Files 473 passed, 3 skipped (476) · Tests 4003 passed, 42 skipped (4045) · no failure", "mcp_calls": "0", "api_writes": "1 - post-stamped comment on issue 33918 (this report); git push x5 (not REST); PR body not written (handed to PM as a file)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat · not reproduced, noted: a manager reference whose SCIM row resolves to a sys_user id that no longer exists reaches screenUserManagerLink's manager_not_found refusal (400 INVALID_REFERENCE) rather than the ruling's served-unchanged path; reach unmeasured (needs a sys_user deleted outside SCIM while its scimUser row stays)", "carrier: seat · the PR title has no '!' although the body and changesets declare BREAKING (narrowing); not changed here", "carrier: seat · check-closing-target-claim reads #33918 as UNDETERMINED: the newest Claim: comment (6913062456, after a Release: paragraph) yields no parseable Branch: line" ], "deviations": [ "PR body: per coordinator correction not patched; full body at /tmp/claude-0/-home-user/c4a88932-131d-5057-9991-5d2860b082fa/scratchpad/issue-33918/pr-body-new.md (relay actions file body-actions.json beside it). Line 1 attribution, last line the signed trailer - the trailer is an HTML comment os-dev.md bans for dev text; the relay's issue_patch requires it (PR_BODY_TRAILER_SHAPE), so the dispatch's spelling is used. The old body's stray first title line is dropped.", "plugin-audit pins go into the writer's existing harness scim-refusal-audit.test.ts as a top-level describe plus one slot case, not a new card-named file (AGENTS.md shared-harness rule, ruling record 6583487846)", "content/docs/automation/approvals.mdx: one sentence names the audit row (file already in the PR, outside the claim surface)", "plugin-audit changeset carries Clause-②: yes (narrowing) and one ADR-0087 not-required marker, the lint changeset's pattern", "dispatch-gates warned of a stale tree (origin/main ahead; check-skills-token-ratchet.mjs and label-write.mjs changed); main not merged - no conflict and no main-caused red", "commit trailers use the model-free pair AGENTS.md requires, not the harness's model-named Co-Authored-By", "fetched commit 621a4876 at depth 1 into the shared object store for the teardown self-test fixture", "card file red at c659399a (vendor value cap; CI Test Core 6/8 on that head) - fixed in 50a7e17b / dcf1984e" ], "files_changed": "23 files +609 -34 this round (345781c4..4c0b0ffd): plugin-audit scim-refusal-audit.ts +165, its test +103, sys-audit-log.object.ts +16, labels/retired-actions tests +9, 11 translation bundles +22 -11; plugin-auth scim-manager-projection.ts, its test, scim-connection-service.ts, auth-manager-request-routing.ts; .changeset/33918-scim-manager-unresolved-audit.md (new), 33918-scim-manager-projection.md; content/docs/automation/approvals.mdx", "line_budget": "PR total 30 files +1842 -133 (1975 changed), under the 3000 human-merge threshold; no skills/** touched" }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
os-dev-report
{ "issue": 33918, "status": "done", "branch": "claude/area-A1-33918", "pr": "https://github.com/objectstack-ai/objectstack/pull/34252", "session": "session_01FEkQ5nNrLRm8ssuwWcBVcw", "premise_still_valid": true, "head": "317c495572e4351db852b1e1e26183ac04a68f36", "summary": "Round 4 (L2 6916550843). M3: a manager reference that resolves to this connection's scimUser row whose sys_user no longer exists screened as manager_not_found and answered SCIM 400. It now takes the served path of ruling 6909383114: the projection routes refusal.reason === 'manager_not_found' to warnUnresolved (kind id), so the write is served, manager_id is unchanged, and the request gets one warn and one scim_manager_unresolved row. Only the four structural refusals (self, cycle, depth, cross-org) still reach scimRefusalError and answer 400, so the changeset sentence 'Those four are the only requests served before and refused now' stays true. Pinned by removing boss's sys_user at the driver (past the engine's restrict) and then sending a create (201, manager null, 1 warn, 1 event) and, in the next window, a replace (200, the earlier live manager kept, a 2nd warn and event). N3 folded: directoryOwnedUser (admin-set-user-manager.ts, package-internal, not in index) answers with the owned user's row, so the projection reads sys_user once and takes manager_id from it. directoryOwnsUserManager is now that row !== null, the same predicate, no behaviour change. L1 nit: the plugin-audit changeset says the admission happens inside the SCIM transaction, so a request refused after admission still logs the warn and spends the window, and the next served unresolvable reference in that window is counted only in suppressed. N4: the plugin-auth changeset gains 'On upgrade': a replace-syncing IdP that maps no manager clears, on its next sync, a manager_id set earlier for a directory-held user. The lint note, its changeset and approvals.mdx now say 'no existing user the connection provisioned'. N5 (title) left to the coordinator.", "tests": "At 317c4955: scim-manager-projection.test.ts 36/36; plugin-auth suite 280 files, 5682 passed, 10 skipped; lint suite 212 files 9067/9067; typecheck plugin-auth and lint exit 0. plugin-audit has no source change this round (changeset text only), so its suite was not rerun: 1577/1577 at c659399a. Ablations via scripts/ablation-replace.mjs at 317c4955, each anchor hit once, restored to the HEAD blob, final git diff HEAD empty. A13 (the manager_not_found branch removed) is 1 red, the new pin: 'expected 400 to be 201' with INVALID_REFERENCE 'The proposed manager does not exist'. Legs rerun because their code moved: A3 (ownership predicate removed, a non-held user read as owned with no manager) 1 red; A4 (structural screen) 5 red; A5 (unchanged short-circuit) 1 red; A7 (unresolvable refused) 11 red. A1, A2, A6 and A8 to A12 are from 4c0b0ffd, on code this round does not touch.", "gates": "dispatch-gates --commands at 317c4955: 104 derived (same list as round 3). --ran with exit codes recorded: 101 run, all exit 0; 2 NOT-MEASURED and 1 UNRUN. NOT-MEASURED, each exit 3 PREREQUISITE NOT MET because there is no full build here: pnpm --filter @objectstack/spec run check:skill-examples (packages/client-react dist has no .d.ts; CI 'Type Check · consumer gates' success on 317c4955) and check:dual-build-cjs-loads (CI 'Build Core' success on 317c4955). UNRUN: check:type-check-debt, because its closure build takes the shared lock behind sibling batches (CI 'Type Check · debt ledger' success on 317c4955). Run outside the derivation: check:dispatcher-error-vocabulary 0, check:i18n-coverage 0 (check:i18n and check:i18n-stale-fill derived, 0). Body gates on the scratchpad body: check-closing-keyword-parity --body exit 2 (report code: only Fixes #33918 binds, by 2 of 3 parsers); check-partof-closing-keyword 0; check-changeset-no-major --event 0; check-closing-target-claim 0 (#33918 still UNDETERMINED); relay dry-run of the issue_patch exit 0. git merge-tree --write-tree against origin/main (f84dc192) and against PR #34082 (open, 25dcfa86) was clean before the push. CI on 317c4955: 68 check-runs, 58 success, 10 skipped, 0 failure, all completed (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Type Check · consumer gates / debt ledger / workspace / source gates, Lint · docs & code guards and the other Lint jobs, Dogfood Regression Gate and Check Changeset all success).", "dogfood_battery": "317c4955 · VERDICT command-exit 0, lock held 2743 s (pnpm --filter @objectstack/dogfood test, no shard, no path, on the dogfood closure built after the last source change) · Test Files 473 passed, 3 skipped (476) · Tests 4003 passed, 42 skipped (4045) · no failure", "mcp_calls": "0", "api_writes": "1 - post-stamped comment on issue 33918 (this report); git push x1 (not REST); PR body not written (handed over as a file)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat · check-closing-target-claim still reads #33918 as UNDETERMINED: the newest Claim: comment has no Branch: line the parser can read", "carrier: seat · the round-3 note on manager_not_found is now fixed in this PR (M3); the PR title '!' is the coordinator's (N5)" ], "deviations": [ "PR body not patched; the full body is at /tmp/claude-0/-home-user/c4a88932-131d-5057-9991-5d2860b082fa/scratchpad/issue-33918/pr-body-new.md and the relay actions file is body-actions.json beside it. Line 1 is the attribution and the last non-empty line is the signed trailer.", "The local gate run is narrower than the derivation (declared). Two gates are NOT MEASURED because they need a full build, and type-check-debt is UNRUN because of lock contention. All three are cited from CI on the same head, all success. A queued full build was cancelled to free the shared lock.", "The worktree was built from the dogfood closure plus lint, not the full 119-task build of round 3.", "dispatch-gates warned of a stale tree: 24 commits behind origin/main, with check-skills-token-ratchet.mjs and label-write.mjs changed there. main was not merged, because there is no conflict and no red caused by main.", "rule-explanations.ts (shared with PR #34082) got a one-word change ('existing'); merge-tree against #34082 is clean.", "Commit trailers use the model-free pair AGENTS.md requires, not the harness's Co-Authored-By that names the model." ], "files_changed": "8 files +73 -21 this round (4c0b0ffd..317c4955): plugin-auth scim-manager-projection.ts +17 -14, admin-set-user-manager.ts +14 -2, scim-manager-projection.test.ts +35; lint rule-explanations.ts +1 -1; content/docs/automation/approvals.mdx +1 -1; three changesets +5 -3", "line_budget": "PR total 30 files +1894 -133 (2027 changed), under the 3000 human-merge threshold; no skills/** touched" }objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nNrLRm8ssuwWcBVcw
Delivered · #33918 · 2026-11-16T14:56Z
PR #34252 merged as
18194fbb8, which closed this card through itsFixeskeyword. A SCIM create, replace or patch that names the Enterprise Usermanagerattribute now projects it intosys_user.manager_idfor a user the directory holds. It is subject to the admin endpoint's four structural refusals, each answered as SCIM400 invalidValue. An unresolvable manager is served and recorded with one operator warn and one boundedscim_manager_unresolvedaudit row. Silence does not clear the manager; an explicit remove does, and so does a replace without the attribute. Nothing is left on this card. This stroke removes the state label and the area lease.