Skip to content

impl(pm-stack): SSO relying-party H3 — surface A browser login Code+PKCE + session cookie (child of #9086) #14261

In progress

Description

@dezren39

Child slice of #9086 (design: PR #14089, §4.2 + §5 slice H3). Depends on H1 (#14259), H2 (#14260). Parallel-safe with H4/H5.

What

Dashboard (PM service hosted edition) login via Authorization Code + PKCE against the devtoday provider; front-door session cookie (httpOnly, Secure, SameSite=Lax, 12h idle expiry, bound to binding_id + role-claim snapshot). Cookie is a pointer, not a capability: every request re-resolves binding_id → live role_grant rows. Logout kills cookie + session audit.

Acceptance

  • Drew logs in via each linked door to the SAME account.
  • Revocation lands within one request; unauthenticated requests rejected.
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T09:45:35Z",
    "session_id": "ses_e5df312c27dffeADY66CKCTD85",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "queue/21642-14039-native-lancedb-reader",
      "sha": "9e6b4adf64e54d8c623c329257bbac3b1f859266"
    },
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • Dashboard login completes via Authorization Code + PKCE against the devtoday provider
  • The front-door session cookie is httpOnly, Secure, SameSite=Lax with the specified lifetime, and logout/expiry behave correctly
  • The login flow is covered by tests

Activity

  1. added
    priority/normal
    effort/m
    app/pm-stack
    epic/pm-stack
    on Nov 24, 2026
  2. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  3. added
    status/needs-triage
    meta/enriched
    on Nov 25, 2026
  4. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Intake review

    🤖 Agent note · filed

    Notes: child of #9086 (SSO relying-party H3); depends on H1 #14259 and H2 #14260.
    Merged PRs referencing this issue (search at intake): none found — none explicitly resolves it, so the issue stays open.
    Risks: scope is bounded by the parent design/epic named in the body; sequencing dependencies are named in the body and in the acceptance criteria where they gate the work.
    Suggested approach: implement the slice as specified in the body, in dependency order, and record verification evidence on the issue at completion.

  5. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    ✅ Triage Verdict (Task 22919): Dependency Resolved. H1 (#14259/PR #14323) and H2 (#14260/PR #14418) are both now MERGED. The original blocker for this H3 slice is lifted. The slice should proceed to implementation/validation as per the acceptance criteria. Please validate and move to implementation/fix-small, not return to queue for dependency reasons.

  6. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    Progress: opened PR #15091 with the independently tested browser-session core (opaque secure cookie, sliding 12h idle expiry, live-principal re-resolution, logout/audit behavior). Remote run developing-today-forks/fleet#45612617985 passed: 21 tests, 0 failures. This is a partial slice, not completion of H3. Authorization Code + PKCE provider callback and worker route integration, plus end-to-end login validation, remain; PR intentionally does not close this issue.

  7. added a commit that references this issue on Nov 26, 2026
  8. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    H3 triage refresh (OpenChamber lane oc-code-03, task 23770; 2026-11-26): verified that session-core PR #15091 is merged, but its PR body explicitly leaves the Authorization Code + PKCE callback/provider integration and worker-route integration incomplete. H1 #14259 and H2 #14260 are closed. The parent H3 remains open; its same-account login across linked doors and revocation-within-one-request acceptance are not yet demonstrated. Routed the remaining H3 work as feature-slice task 24494 (slice 1: callback + worker route with deterministic provider/session tests) in repo-health-code-pilot. No production credentials or live login used; H3 remains open pending the remaining acceptance.,workdir:/home/user/git/code,timeout:120000}},{

  9. 3 remaining items

  10. added a commit that references this issue on Nov 27, 2026
  11. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    Merge-watch verdict — oc-code-07, 2026-11-26

    PR #15799 merged (99be0a35 rebased onto current main, merged 2026-11-27T00:20:04Z). Mergibility re-tested via git merge-tree (clean) and GitHub CLEAN/MERGEABLE; the PR's own suite passes on the merged head (bun test test/session.test.ts test/front-door.test.ts test/worker-auth.test.ts — 25 pass, 0 fail). Typecheck still blocked only by the pre-existing missing @cloudflare/workers-types package, as disclosed in the PR body.

    #14261 stays open: its acceptance needs live verification (same-account login via each linked door, revocation within one request) that this lane cannot perform. No code changed in this pass beyond the merge itself.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Triage verdict — oc-code-06, task 25648 (2026-11-27)

    Validated, returned to queue for real work (no small fix applies).

  13. added
    status/triaged
    and removed
    status/needs-triage
    on Nov 27, 2026
  14. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    PR #15958 adds deterministic linked-door coverage: two distinct provider subjects resolve through the identity-link double to the same account, binding_id, and role snapshot. It also audits a revoked browser session and proves the very next authenticated request is denied; focused pm-service tests passed locally and on Fleet Actions (Linux, run https://github.com/dezren39/fleet/actions/runs/45951043444: 23 pass, 0 fail across 2 files). Production OAuth sign-in through each live linked door remains outstanding and requires a real account; H3 remains open.

  15. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    🤖 Merge shepherd — lane 0022-D-D (agent work loop, delta PRESS, 2026-11-27 00:22 CST run, #12280 sweep)

    PR #15958 MERGED — merge commit 8a9a705e279ad8b766a6cfbed019f89caa734adc (merge commit, not squash/rebase).

    Gate evidence (all re-read live by this lane):

    • PR OPEN / non-draft / MERGEABLE / CLEAN at head 6fd162764f638d0aa0dd487a33f4c9890b08c2e7 (single commit, 2026-11-27T06:13:45Z).
    • No live lane claim in PR comments (sole comment: CodeRabbit review-skipped) or lane records.
    • Verification (metadata only, no CI logs read): fleet-command run 45951043444 (dezren39/fleet), dispatched 2026-11-27T06:18:49Z for this PR's branch after its sole commit — completed success 2026-11-27T06:26:37Z. The PR body links this run as its fleet test; head never changed after dispatch.

    This PR relates to #14261 and does not close it (per its body, production OAuth login evidence remains outstanding).

  16. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census — lane CEN-C15, 2026-11-29 (full-census pass: body + all comments re-read firsthand; this comment is the current-state record for a cold pickup).

    Verdict: blocked — live proof only; the code is complete. Acceptance is met in code; the gap is evidence type, not detail. The cookie contract is fully specified (httpOnly/Secure/SameSite=Lax, 12h idle, binding_id pointer, per-request re-resolution). Code landed via PRs #15091, #15799, #15958; dependencies #14259/#14260 are closed; deterministic-double evidence exists (PR #15958).

    Blocker: a production OAuth sign-in through each live linked door needs a real account / Drew's hands. That live pass is the only remainder.

    Labels/priorities were verified correct in the census — no label changes were needed.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The security shape is specified at the right altitude (Code+PKCE; the session cookie is a pointer, not a capability — every request re-resolves binding_id to live role_grant rows; logout kills cookie + session audit). kind/enhancement + priority/normal already set. The deterministic half of the acceptance is now proven: PR #15958 merged with linked-door coverage (two provider subjects → same account/binding/role snapshot) and the revoked-session denial test.

    GAPS: The remaining acceptance items are live-proof items: Drew logging in via each linked door to the same account, and revocation observed live. Those need a deployed surface + Drewry at a browser — the code substrate is in place.

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Drewry: a short live login pass when the surface is deployed (minutes). H4/H6 unblock as this closes.

  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found

    Strengths

    Actions taken by this census

    • Verified complete — no changes needed.
  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · lane 1907-O (charlie ADVANCE programmes+author, 2026-11-29 19:07 CST) — claim-direct vet of #14261: NOT implementation-claimed; remainder is a genuine Drew-hands stop.

    Two agreeing live reads (2026-11-30 ~01:22Z): #14261 OPEN, priority/normal, effort/m, status/triaged, 13 comments. Full comment scan done. State per the record, verified against the comments:

    Only remainder: a production OAuth sign-in through each live linked door with a real account — acceptance item 1 is literally "Drew logs in via each linked door to the SAME account." That is a hands-only step that is Drew's (genuine stop class 1), so this lane does not post an implementation claim it cannot complete. Ask for Drew: one live sign-in pass through each linked door; on that evidence this issue closes. Key: 1907-O.

  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Drew's ruling (main chat, 2026-11-29 22:43 CST): yes — option 1. He will do the live production OAuth sign-in pass: log in via each linked door to the same account while the fleet observes the binding match and the live revocation proof.

    Fleet side: coordinate observation when the pass happens. If a door is not deployed/reachable, that is a fleet fix, not a failed proof. Recorded as answered on the pending-questions ledger (item sso-live-login-14261).

  21. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Slice evidence + wake record — lane 0622-K, 2026-11-30 (slice #17193)

    Verified live this lane (REST issue/PR reads, after two consecutive gh api rate_limit rc=0):

    Deterministic acceptance half — VERIFIED:

    Wake — NOT FIRED (machine-checkable): the remaining acceptance is Drew's live production OAuth sign-in pass (his ruling on this issue, 2026-11-29 22:43 CST: he logs in via each linked door to the same account while the fleet observes the binding match and the live revocation proof; pending-questions item sso-live-login-14261). As of this lane's full comment read, the newest comment on #14261 is that ruling itself (2026-11-30T04:45:46Z) — no comment records a completed pass. Wake fires when: a comment on #14261 records the completed live pass with the observed binding match + revocation proof. A later lane polling this wake checks for exactly that comment; it does not re-derive the state.

    Priority validation 0622-K: priority/normal concurred. Slice #17193 closes on this evidence; this tracker stays open on the wake above. Key: 0622-K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackeffort/mepic/pm-stackkind/enhancementmeta/enrichedpriority/normalstatus/triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions