Skip to content

design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253

Todo
5 of 7 issues completed

Description

@dezren39

Part of epic #1184 (PM stack coherence — ideal-system design series, 2026-10-26).

Why

Today authorship on dashboard writes is caller-asserted (tracked in #941) and each layer (aggregator, Kaneo, Pad, Grist) has its own account story, so 'who did this' is unenforceable and per-person permissions don't exist. The ideal system has one identity: the Cloudflare Access identity at the public entry (#1182) propagates through every layer, and roles (owner / orchestrator / agent / read-only) are checked server-side on every write.

Design questions to answer

  • Identity propagation mechanism per layer: Access JWT validation in the aggregator, and what Kaneo/Pad/Grist can accept (header trust behind the entry point, native SSO, or API-token-per-role)?
  • Role model: which roles exist, what each may do (comment kinds, triage actions, dispatches, admin), and where the role mapping lives?
  • Agent identity: how do fleet agents authenticate as themselves (not as Drew), and how are their actions attributed in the audit trail?
  • Migration: how do existing dashboard comments/registry records map to real identities, and what happens to anonymous reads?
  • Break-glass: what still works when Access or the IdP is down, without reopening asserted authorship?

Acceptance

Acceptance criteria

  • A design note is landed in the repo doc/ answering the design questions above: per-layer identity propagation, the role model and where the role mapping lives, agent identity/attribution, migration of existing records, and the break-glass posture.
  • Implementation issues are filed and linked as sub-issues of epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184.
  • Open questions needing Drew are named explicitly in the design note.
  • The design preserves an honest break-glass path that does not reopen caller-asserted authorship.

Sub-issues

Sub-issues

5 of 7 Issues completed
Loading 7 sub-issues

Activity

  1. added
    kind/feature
    status/needs-triage
    app/pm-stack
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  3. added
    priority/normal
    effort/l
    source/human
    meta/enriched
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: epic #1184 (parent) · #1182 (the Cloudflare Access entry whose identity this design propagates) · #941 (caller-asserted comment authorship — the concrete weakness this replaces) · #1255 (conversational layer, inherits this identity model).

    Notes: Still live — verified this run: no merged PR implements SSO propagation; merged-PR searches return only unrelated number coincidences. The issue arrived with a ## Acceptance section; the appended ## Acceptance criteria formalizes it. effort/l: four systems (aggregator, Kaneo, Pad, Grist) with different auth stories.

    Risks / suggested approach: Design-only deliverable in this issue: the acceptance bar is the landed design note plus filed, linked implementation issues — per the standing rule, a design with no implementation link is not finished work. The per-layer mechanism survey (what Kaneo/Pad/Grist can actually accept) is the long pole — do that verification before committing the design to a propagation mechanism.

    — repo-fleet-monitor intake pass, 2026-10-28T03:55Z

  5. added
    queue/claimed
    work/assigned
    status/in-progress
    and removed
    status/needs-triage
    on Nov 1, 2026
  6. 269 remaining items

  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Merged work, still open. Every pull request that references this issue has merged (#8351, #8645, #4832, #11325, #11462) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  9. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    First consumer implementation for #13416 is in draft PR #14477, from slice #14411. The aggregator validates IdP access tokens through configured OIDC discovery/JWKS (RS256) and gates the human-originated write routes to owner/orchestrator; role-denial and acceptance cases use a local key/JWKS fixture, not live credentials. Existing Cloudflare Access authorship remains in place.

    The integration preserves the #9608 recovery boundary: ordinary writes fail closed when IdP verification is unavailable; Access-outage queueing requires a verified IdP write role, queue confirmation/rejection still requires fresh Access login, and the dedicated local-issued single-use break-glass token remains confined to the identity-registry admin route. Machine callbacks and public prompt intake are unchanged. Targeted Fleet test is pending: https://github.com/dezren39/fleet/actions/runs/45437791139.

  10. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · triaged — task 24362 (oc-code-03)

    Fresh verdict: #1253 remains an open design tracker, not an untriaged implementation request. GitHub current main at deaf2b28962119bdea97bc4344ed32428aaa35aa contains the design record doc/2026-11-10T23-58-00Z_design_pm_stack_identity/2026-11-10T23-58-00Z_design_pm_stack_identity.md (verified via the contents API). The six implementation routes already exist: #9603, #9604, #9606, and #9607 are closed; #9605 (stack-token/layer verification) and #9608 (break-glass) remain open. Thus the design acceptance is met, implementation is already routed, and #1253 correctly stays open pending those remaining splits. No duplicate packet or design note created. Queue disposition: triaged; current implementation follow-up remains in #9605/#9608.

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

    @developing-today-fleet
    Contributor

    Aggregator SSO consumer status update (2026-11-27): successor PR #15910 is MERGED (09:16:27Z), closing implementation slice #14411. It ports the role gate onto the extracted write routes; six fixture IdP tests passed, with remaining full-suite baseline failures documented on #14411 and reproduced on clean main. This supersedes the earlier note that the draft PR #14477 was pending. The linked issue #13798 remains open for its required live-provider demonstration against the aggregator endpoint; follow-up task 26184 is queued.

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

    @developing-today-fleet
    Contributor

    🤖 Agent note · handed off

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-11-28 13:14 CST
    • Found via: monitor reconciliation
    • Task: Label/queue reconciliation: this issue carried queue/queued, but its triage task in repo-health-code-pilot is complete (done) and no live task exists in any status (broker-verified this run). The triage verdict already recorded on this issue routed the remainder. Removing queue/queued so the labels match the queue truth; no new task was enqueued (the broker dedupe returns the completed triage).
    • Expectation: label state now mirrors queue state; re-add queue/queued only with a fresh packet if the remainder needs a new work order.
    • Links: digest + broker verification in the monitor run record (hidden_files/monitor-digest.json, sweep.log 2026-11-28)
  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (lane CEN-C01) — body + all 100 comments re-read, plus a fresh check of the two PRs the older notes call conflicting. That blocker has resolved since those notes were written:

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass.

    STRENGTHS: complete design scope (identity propagation per layer, role model, audit identity) with the dependent issues mapped — #1255 now carries a native blocked_by edge to this issue (added in this pass), and #9608 is gated on this design per the programme record.
    PRIORITY VALIDATION: priority/normal, single, correct — sound design work at the default band; its dependents are low/normal band, so no inherited escalation.
    FIXES I APPLIED: none needed here.
    REMAINS: FOR DREWRY — design question 4 on this issue is yours and gates #9608; the rest of the design can proceed around it.

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass.

    STRENGTHS: complete design scope (identity propagation per layer, role model, audit identity) with the dependent issues mapped — #1255 now carries a native blocked_by edge to this issue (added in this pass), and #9608 is gated on this design per the programme record.
    PRIORITY VALIDATION: priority/normal, single, correct — sound design work at the default band; its dependents are low/normal band, so no inherited escalation.
    FIXES I APPLIED: none needed here.
    REMAINS: FOR DREWRY — design question 4 on this issue is yours and gates #9608; the rest of the design can proceed around it.

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

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: None material. Labels complete and an ## Acceptance criteria section is present; status/in-progress matches its design-underway state.

    Strengths: Identity design with the load-bearing decision in the title (SSO propagation from the public entry into every layer; roles replace asserted authorship) and both programme labels carried (epic/pm-stack, epic/pm-stack-coherence).

    Actions taken by this census: Verified complete — no changes needed.

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

    @developing-today-fleet
    Contributor

    Record — lane 2037-G, 2026-11-29 (for #13798). The aggregator IdP integration named in this design is complete: pm-stack/aggregator/src/idp-identity.ts validates IdP access tokens (discovery + JWKS kid + iss/exp/token_use) and role-gates writes server-side (owner/orchestrator; 401/403), composing with Cloudflare Access exactly as designed here — Access decides reachability, the IdP token decides authorization; the #9608 break-glass owner token remains the IdP-outage path. Final wiring PR #17054 (merged dbfc574); adjudication on #13798. Key: 2037-G

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/lepic/pm-stackepic/pm-stack-coherencekind/featuremeta/enrichedpriority/normalsource/humanstatus/in-progresstask/triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions