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
Auth direct sign-in: an afterSignOut option so hosted sign-out returns through the identity provider (objectstack#34168 item 3, not shipped; blocks cloud#4471) #35106
area:clouddomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2repo:cloudCard routed whole to the cloud PM: needs cloud code, a producer or a fact (cloud owns it to closure)
Carry-over from objectstack#34168, item 3. It was added to that card's scope in comment 6902780898. objectstack#34168 closed as completed after PR #34265, which shipped items 1 and 2, the refusal reason and the client name. Item 3 did not ship. At mainb1da9f55db there is no afterSignOut in plugin-auth, the spec or the Console; the cloud#4471 build thread checked this. cloud#4471 (p1) is held open on this card for its sign-out step.
Ask
Add a direct sign-in option afterSignOut: 'hold' | 'identity-provider'.
The default is 'hold', today's behaviour under the objectstack#33183 sign-out ruling 6879236460.
Under 'identity-provider', the Console's sign-out callbackURL is the direct door /api/v1/auth/sign-in/direct instead of /login. The post-logout return then goes back through the identity provider's sign-in page.
There is no loop: the provider's session has already ended, so the provider shows its own sign-in page.
Done when
A test pins both values:
under 'hold', sign-out lands on the held sign-in page, as today;
under 'identity-provider', the sign-out callback is the direct door.
Why
cloud#4465 rulings 8 and 10: on a hosted environment, after sign-out the person lands on the cloud sign-in page, and no environment sign-in page is kept. Once this ships in a release the cloud pins, cloud sets 'identity-provider' and registers the direct door as a post-logout redirect URI. No cloud response rewrite is built in the meantime.
Related
objectstack#34168 (closed; items 1 and 2 shipped in PR #34265), cloud#4471, cloud#4465.
First touch (R1210): the filer's p1 · domain:server is kept → pm:queue.
Theme: install, upgrade and uninstall reliability (hosted sign-in and sign-out). This is the framework half of a cloud card that waits on it. Split framework/cloud halves are graded separately, framework first, and the hosted SSO sign-out flow is a named hosted effect. It goes to repo:objectstack#1, the p1 seat.
Claim: PM loop round 1 (repo:objectstack#5; the maintainer, verbatim, in this seat's session, 2026-11-18T16:32Z: 「这几个p1卡都你处理」, this card among them) · 2026-11-18T16:41Z
Session: session_01Utp6CbUb7TcZK1XUAddUmQ
Thread session: session_01Utp6CYxMsbSfVbHgmGptah
Account: os-bill
Branch: claude/project-thread-t6ao42
Worktree: objectstack-issue-35106 (the card thread's container)
Domain: domain:server
Seat: repo:objectstack#5
File surface: packages/plugins/plugin-auth/src/**, packages/spec/src/api/auth-endpoints.zod.ts, packages/spec/src/kernel/public-auth-features.ts (+ generated baselines the gates demand), ui/packages/auth/src/**, ui/apps/console/src/pages/auth/**, docs for the option, tests, changesets. Stop on breach and report.
Container & model: M, mode:thread (p1, contract face), model: default — no path-derived mandate, effort: high
Clause-②: yes (a new option on the published direct-sign-in config and a new field on the public /auth/config schema; default unchanged) — an L2 contract review is owed before the queue; spec seats notified per the lease rule (fix stays in this lane)
Metadata-protocol: none
Responsibility: n/a — not a defect card (a missing option; blocks cloud#4471)
Thread-read: 6968438363
Premise: holds — afterSignOut is only in test constants; Console sign-out hard-codes /login (ui/packages/auth/src/createAuthClient.ts ~783).
Serial constraints cleared: none — no open PR or pm:dispatched card on these files at claim time.
Clause-② measured on the built declarations (fe68462): @objectstack/spec dist/api/index.d.ts declares afterSignOut: z.ZodOptional<z.ZodEnum<…>> on AuthFeaturesConfigSchema and the inferred afterSignOut?: "hold" | "identity-provider" | undefined; dist/kernel PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS gains "afterSignOut"; @objectstack/plugin-auth dist/index.d.ts DirectSignInOptions.afterSignOut?: DirectSignInAfterSignOut and the exported type. All additions, nothing removed or narrowed: Clause-②: yes (widening), Metadata-protocol: added.
{
"issue": 35106,
"status": "done",
"branch": "claude/project-thread-t6ao42",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35224",
"session": "session_01Utp6CYxMsbSfVbHgmGptah",
"premise_still_valid": true,
"summary": "directSignIn.afterSignOut ('hold' default | 'identity-provider') with env OS_AUTH_DIRECT_SIGN_IN_AFTER_SIGN_OUT (env wins, off-vocabulary throws), served as features.afterSignOut on /auth/config while the direct sign-in setting is on (same terms as localSignIn); spec AuthFeaturesConfigSchema.afterSignOut + PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS; the Console sign-out sends callbackURL = {basePath}/sign-in/direct when features.directSignIn is true and afterSignOut is identity-provider, else the sign-in page, and writes the hold note only for the sign-in page return. Patch round at f0bc42a2: Metadata-protocol none -> added, @objectstack/spec graded minor (Check Changeset red on fe684626); the key addition is intended.",
"tests": "head fe684626 (f0bc42a2 changes only the changeset): plugin-auth full suite under the lock: Test Files 285 passed (285), Tests 6001 passed | 10 skipped, VERDICT command-exit 0. spec: vitest src/api/auth-endpoints.test.ts src/kernel: Test Files 66 passed, Tests 1598 passed. ui: pnpm --dir ui exec vitest run packages/auth/: Test Files 48 passed (48), Tests 491 passed (491). typecheck: @object-ui/auth type-check exit 0; @objectstack/plugin-auth typecheck (tsc + examples + check:test-typecheck OK) exit 0; spec check:test-typecheck OK. New pins: both values + env/option precedence + off-vocabulary throw; /auth/config serves hold/identity-provider and nothing with the setting off; the bare door after sign-out answers 302 off-origin to the IdP authorize endpoint (never the door, never /login: the A4 no-loop pin); a real OIDC sign-out with callbackURL /api/v1/auth/sign-in/direct hands the IdP post_logout_redirect_uri = absolute door; Console hold vs identity-provider callbackURL, note written only under hold, cached config reused, CONTROL rows (directSignIn false, no afterSignOut, unreadable config) keep /login. Ablation: not run (one-shot proof not performed; the CONTROL rows are the discriminating pins).",
"gates": "dispatch-gates --commands at fe684626: 124 derived, 124 run (dispatch-gates --ran: 124 accounted, 0 UNRUN). 120 exit 0, incl. spec check:generated, check:api-surface, check:authorable-surface, check:docs (after gen:docs, committed). 4 NOT MEASURED, each a prerequisite refusal of this container, not a finding: node scripts/check-plugin-teardown-shape.mjs --self-test exit 3 (shallow clone cannot read pinned commit 621a4876); pnpm --filter @objectstack/spec run check:skill-examples exit 3 (refused before reading: declarations not built); pnpm check:dual-build-cjs-loads exit 3 (no dist for 42 unbuilt packages); pnpm --dir ui exec vitest run scripts/ exit 1 (unit-registry-absence-collision + closure-budget cannot resolve unbuilt @objectstack/client et al.). After the patch round at f0bc42a2: check-changeset-no-major --base origin/main exit 0, the level axis offline with the patched body (--event) exit 0, check-empty-changeset exit 0. CI check-runs on f0bc42a2: in_progress at report time (not waited, per contract).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "3 — github issue_read x3 (get, get_comments x2); no write tool",
"api_writes": "2 — fleet-write relay: pr_create (POST /repos/objectstack-ai/objectstack/pulls, read-back identical, assignee os-bill); issue_patch on #35224 body (PATCH /repos/objectstack-ai/objectstack/issues/35224, read-back identical); this report comment is the third (post-stamped)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed — with no provider logout (no end_session_endpoint, or a password sign-in) callbackURL is never used, so the Console ends on the held sign-in page under either value; the card scopes the change to the sign-out callbackURL"]
}
ACCEPT → PR #35224 comment 6987791230 · head f0bc42a2 · 2026-11-18T18:30Z. Contract review PASS comment 6987769127 (same head). Seat landing armed (ready + auto-merge); close-out here on MERGED.
L2 nits, none blocking, recorded for the next change on this surface:
N1: the AuthFeaturesConfigSchema.afterSignOut describe (and auth-endpoints.mdx) names the sign-in page as the reader; it is the Console's sign-out.
N2: signOutReturn awaits an in-flight config read without the 3 s bound.
N3: sso.mdx says "held sign-in page" for the directSignIn: false case, which shows the ordinary sign-in page.
N4: a tab holding stale config after a restart that turned direct sign-in off returns to the unmounted door's 404.
N5: the comment at auth-manager.ts near the boot refusal names only the local sign-in path.
N6: the absolute post-logout return is pinned only for the sys_sso_provider arm; the oidcProviders arm (the cloud-hosted path) resolves the same in vendor source but has no pin. Owed before cloud#4471 relies on it.
Close-out 2026-11-18T19:05Z: PR #35224 MERGED as 7bd5d2855a; Fixes closed this card. Delivered: directSignIn.afterSignOut (hold default, identity-provider), served on /auth/config, and the Console sign-out return through the direct door. Cloud side (cloud#4471) sets identity-provider and registers the absolute door as a post-logout redirect URI once a release carries this. Owed before it relies on the oidcProviders arm: N6 on comment 6987809436. pm:dispatched off.
area:clouddomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2repo:cloudCard routed whole to the cloud PM: needs cloud code, a producer or a fact (cloud owns it to closure)
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1210): the filer's p1 · domain:server is kept →
pm:queue.Theme: install, upgrade and uninstall reliability (hosted sign-in and sign-out). This is the framework half of a cloud card that waits on it. Split framework/cloud halves are graded separately, framework first, and the hosted SSO sign-out flow is a named hosted effect. It goes to repo:objectstack#1, the p1 seat.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Claim: PM loop round 1 (repo:objectstack#5; the maintainer, verbatim, in this seat's session, 2026-11-18T16:32Z: 「这几个p1卡都你处理」, this card among them) · 2026-11-18T16:41Z
Session:
session_01Utp6CbUb7TcZK1XUAddUmQThread session:
session_01Utp6CYxMsbSfVbHgmGptahAccount:
os-billBranch:
claude/project-thread-t6ao42Worktree:
objectstack-issue-35106(the card thread's container)Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/plugins/plugin-auth/src/**,packages/spec/src/api/auth-endpoints.zod.ts,packages/spec/src/kernel/public-auth-features.ts(+ generated baselines the gates demand),ui/packages/auth/src/**,ui/apps/console/src/pages/auth/**, docs for the option, tests, changesets. Stop on breach and report.Container & model:
M,mode:thread(p1, contract face),model: default — no path-derived mandate,effort: highClause-②: yes (a new option on the published direct-sign-in config and a new field on the public
/auth/configschema; default unchanged) — an L2 contract review is owed before the queue; spec seats notified per the lease rule (fix stays in this lane)Metadata-protocol: none
Responsibility: n/a — not a defect card (a missing option; blocks cloud#4471)
Thread-read: 6968438363
Premise: holds —
afterSignOutis only in test constants; Console sign-out hard-codes/login(ui/packages/auth/src/createAuthClient.ts ~783).Serial constraints cleared: none — no open PR or pm:dispatched card on these files at claim time.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CYxMsbSfVbHgmGptah
os-dev-report
Clause-② measured on the built declarations (fe68462):
@objectstack/specdist/api/index.d.ts declaresafterSignOut: z.ZodOptional<z.ZodEnum<…>>onAuthFeaturesConfigSchemaand the inferredafterSignOut?: "hold" | "identity-provider" | undefined; dist/kernelPUBLIC_AUTH_CONFIG_NON_FLAG_KEYSgains"afterSignOut";@objectstack/plugin-authdist/index.d.tsDirectSignInOptions.afterSignOut?: DirectSignInAfterSignOutand the exported type. All additions, nothing removed or narrowed:Clause-②: yes (widening),Metadata-protocol: added.{ "issue": 35106, "status": "done", "branch": "claude/project-thread-t6ao42", "pr": "https://github.com/objectstack-ai/objectstack/pull/35224", "session": "session_01Utp6CYxMsbSfVbHgmGptah", "premise_still_valid": true, "summary": "directSignIn.afterSignOut ('hold' default | 'identity-provider') with env OS_AUTH_DIRECT_SIGN_IN_AFTER_SIGN_OUT (env wins, off-vocabulary throws), served as features.afterSignOut on /auth/config while the direct sign-in setting is on (same terms as localSignIn); spec AuthFeaturesConfigSchema.afterSignOut + PUBLIC_AUTH_CONFIG_NON_FLAG_KEYS; the Console sign-out sends callbackURL = {basePath}/sign-in/direct when features.directSignIn is true and afterSignOut is identity-provider, else the sign-in page, and writes the hold note only for the sign-in page return. Patch round at f0bc42a2: Metadata-protocol none -> added, @objectstack/spec graded minor (Check Changeset red on fe684626); the key addition is intended.", "tests": "head fe684626 (f0bc42a2 changes only the changeset): plugin-auth full suite under the lock: Test Files 285 passed (285), Tests 6001 passed | 10 skipped, VERDICT command-exit 0. spec: vitest src/api/auth-endpoints.test.ts src/kernel: Test Files 66 passed, Tests 1598 passed. ui: pnpm --dir ui exec vitest run packages/auth/: Test Files 48 passed (48), Tests 491 passed (491). typecheck: @object-ui/auth type-check exit 0; @objectstack/plugin-auth typecheck (tsc + examples + check:test-typecheck OK) exit 0; spec check:test-typecheck OK. New pins: both values + env/option precedence + off-vocabulary throw; /auth/config serves hold/identity-provider and nothing with the setting off; the bare door after sign-out answers 302 off-origin to the IdP authorize endpoint (never the door, never /login: the A4 no-loop pin); a real OIDC sign-out with callbackURL /api/v1/auth/sign-in/direct hands the IdP post_logout_redirect_uri = absolute door; Console hold vs identity-provider callbackURL, note written only under hold, cached config reused, CONTROL rows (directSignIn false, no afterSignOut, unreadable config) keep /login. Ablation: not run (one-shot proof not performed; the CONTROL rows are the discriminating pins).", "gates": "dispatch-gates --commands at fe684626: 124 derived, 124 run (dispatch-gates --ran: 124 accounted, 0 UNRUN). 120 exit 0, incl. spec check:generated, check:api-surface, check:authorable-surface, check:docs (after gen:docs, committed). 4 NOT MEASURED, each a prerequisite refusal of this container, not a finding: node scripts/check-plugin-teardown-shape.mjs --self-test exit 3 (shallow clone cannot read pinned commit 621a4876); pnpm --filter @objectstack/spec run check:skill-examples exit 3 (refused before reading: declarations not built); pnpm check:dual-build-cjs-loads exit 3 (no dist for 42 unbuilt packages); pnpm --dir ui exec vitest run scripts/ exit 1 (unit-registry-absence-collision + closure-budget cannot resolve unbuilt @objectstack/client et al.). After the patch round at f0bc42a2: check-changeset-no-major --base origin/main exit 0, the level axis offline with the patched body (--event) exit 0, check-empty-changeset exit 0. CI check-runs on f0bc42a2: in_progress at report time (not waited, per contract).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "3 — github issue_read x3 (get, get_comments x2); no write tool", "api_writes": "2 — fleet-write relay: pr_create (POST /repos/objectstack-ai/objectstack/pulls, read-back identical, assignee os-bill); issue_patch on #35224 body (PATCH /repos/objectstack-ai/objectstack/issues/35224, read-back identical); this report comment is the third (post-stamped)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed — with no provider logout (no end_session_endpoint, or a password sign-in) callbackURL is never used, so the Console ends on the held sign-in page under either value; the card scopes the change to the sign-out callbackURL"] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
ACCEPT → PR #35224 comment 6987791230 · head
f0bc42a2· 2026-11-18T18:30Z. Contract review PASS comment 6987769127 (same head). Seat landing armed (ready + auto-merge); close-out here on MERGED.L2 nits, none blocking, recorded for the next change on this surface:
AuthFeaturesConfigSchema.afterSignOutdescribe (andauth-endpoints.mdx) names the sign-in page as the reader; it is the Console's sign-out.signOutReturnawaits an in-flight config read without the 3 s bound.sso.mdxsays "held sign-in page" for thedirectSignIn: falsecase, which shows the ordinary sign-in page.auth-manager.tsnear the boot refusal names only the local sign-in path.sys_sso_providerarm; theoidcProvidersarm (the cloud-hosted path) resolves the same in vendor source but has no pin. Owed before cloud#4471 relies on it.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Close-out 2026-11-18T19:05Z: PR #35224 MERGED as
7bd5d2855a;Fixesclosed this card. Delivered:directSignIn.afterSignOut(holddefault,identity-provider), served on/auth/config, and the Console sign-out return through the direct door. Cloud side (cloud#4471) setsidentity-providerand registers the absolute door as a post-logout redirect URI once a release carries this. Owed before it relies on theoidcProvidersarm: N6 on comment 6987809436.pm:dispatchedoff.