GeezerVison is showing github.com — design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship · Issue #1253 · developing-today/code
design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253Todo 5 / 75 of 7 issues completedTodo 5 / 75 of 7 issues completed DescriptionPart 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-issuesCollapse Sub-issuesSub-issues5 of 75 of 7 Issues completedLoading 7 sub-issues Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 28, 2026 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 dezren39 commented on Nov 13, 2026
Agent note — state: pr_merged + splits filed · lane code-c (fallback mode, queue backend down)
- Agent: repo queue worker, lane code-c (repo-worker-code-c), fallback claim on design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 (broker health failing: tunnel EAGAIN / exit 3 this shift; MID-SHIFT FALLBACK per runbook 0b).
- Merged: PR docs(pm-stack): one identity across the stack — SSO propagation + roles (#1253) #8351 (design record for design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253, docs-only: design doc + doc/README index) — Codex review completed with no findings, mergeable, verified diff matches intent; squash-merged 2026-11-13T23:03Z, merge commit 70430e2. Checks on the PR were CANCELLED (fleet CI posture: CI runs on main); docs-only change carries no code risk.
- Splits filed (design section 8): impl(pm-stack): aggregator Access JWT validation middleware + default-deny role check on write routes (#1253 split 1) #9603 (split 1, Access JWT middleware + default-deny), impl(pm-stack): aggregator identity registry table + owner admin actions + audit events (#1253 split 2) #9604 (split 2, identity registry), impl(pm-stack): stack-token minting + agent token-exchange; layer verification in Kaneo/Pad/Grist (#1253 split 3) #9605 (split 3, stack tokens), impl(pm-stack): comment API — stop accepting author from request body; stamp provenance (#1253 split 4, closes #941) #9606 (split 4, comment API provenance, closes aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941), impl(pm-stack): migration — provenance markers on existing records + owner-confirmed name linking (#1253 split 5) #9607 (split 5, migration markers), impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608 (split 6, break-glass). Dedupe-checked (title/phrase searches, no prior splits). Attached as sub-issues of design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 — direct attachment to epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184 failed: GitHub's 100 sub-issue cap on that epic (422 on all six).
- Drew questions (design section 7): ledgered as pending item
pm-stack-identity-design-questions-1253 in the pending-decisions ledger. Only impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608's comment surface is gated (question 4); the other splits proceed ungated.
- Remaining on design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253: PR feat(pm-stack): derive authors from Access JWT (#1253) — salvage of archive PR #7383 #8624 (aggregator access-identity implementation, salvage of Archive disposition: archive/janitor-2026-11-07/4964 #7383) is still OPEN, now conflicted with main (mergeable=false/dirty) and carrying unresolved Codex findings — it is the starting point for split 1 (impl(pm-stack): aggregator Access JWT validation middleware + default-deny role check on write routes (#1253 split 1) #9603), not a merge candidate in its current state. design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 stays open as the design tracker until the splits land.
- Release: fallback release --outcome free — the design half is done; the remaining work is the six filed splits, each independently claimable.
dezren39 commented on Nov 13, 2026
Released by repo-worker-code-c (outcome: free). Design half done: PR #8351 squash-merged (70430e2, Codex clean, docs-only); six section-8 implementation splits filed as #9603-#9608 (sub-issues of #1253; epic #1184 at 100 sub-issue cap) and ledger item pm-stack-identity-design-questions-1253 added for the four section-7 Drew questions. Remaining: PR #8624 conflicted + unresolved Codex findings (starting point for split 1 #9603); #1253 stays open as tracker until splits land. dezren39 commented on Nov 17, 2026 agent-note:v1 — task 18100 (triage, lane code-d) — state: triaged
Bulk-intake triage of issue #1253: this design issue's own acceptance is MET; the implementation is routed to six queued split issues. It stays open as the design tracker until the splits land.
Fresh evidence this shift (2026-11-17T01:37Z):
- Issue design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 OPEN; labels kind/feature, task/triage, status/in-progress + status:in-review, priority/normal, effort/l, epic/pm-stack-coherence; no held / user/owned / do-not-merge / do-not-auto-edit labels and no status/needs-triage.
- Design note landed: doc/2026-11-10T23-58-00Z_design_pm_stack_identity in the repo (present on the laptop checkout this shift), merged via PR docs(pm-stack): one identity across the stack — SSO propagation + roles (#1253) #8351 (70430e2, 2026-11-13, Codex clean, docs-only) — answering per-layer propagation, role model, agent identity/attribution, migration, and break-glass.
- Implementation issues filed: splits impl(pm-stack): aggregator Access JWT validation middleware + default-deny role check on write routes (#1253 split 1) #9603 (Access JWT middleware + default-deny), impl(pm-stack): aggregator identity registry table + owner admin actions + audit events (#1253 split 2) #9604 (identity registry), impl(pm-stack): stack-token minting + agent token-exchange; layer verification in Kaneo/Pad/Grist (#1253 split 3) #9605 (stack tokens), impl(pm-stack): comment API — stop accepting author from request body; stamp provenance (#1253 split 4, closes #941) #9606 (comment API provenance), impl(pm-stack): migration — provenance markers on existing records + owner-confirmed name linking (#1253 split 5) #9607 (migration markers), impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608 (break-glass) — all fresh-verified OPEN with queue/queued, i.e. independently claimable in the queue. They are sub-issues of design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 rather than epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184 because that epic is at GitHub's 100 sub-issue cap (recorded 2026-11-13).
- Open questions needing Drew were named in the design note (section 7) and ledgered as pm-stack-identity-design-questions-1253 — fresh-checked this shift: that ledger item is now answered, so even split impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608's question-4 gate is cleared.
- PR feat(pm-stack): derive authors from Access JWT (#1253) — salvage of archive PR #7383 #8624 (the earlier aggregator implementation attempt) is fresh-verified CLOSED unmerged; split impl(pm-stack): aggregator Access JWT validation middleware + default-deny role check on write routes (#1253 split 1) #9603 is its successor route.
Classification unchanged: kind/feature, priority/normal, effort/l. No new packet from this triage — the splits carry the work. Task 18100 completes as triaged. dezren39 commented on Nov 17, 2026 agent-note:v1
lane: repo-worker-code (openchamber-scheduled-lane code-j)
state: parked
Fresh state 2026-11-17: #1253 OPEN, part of epic #1184. Acceptance needs a design note in doc/ answering five design questions, and implementation issues filed as sub-issues of #1184. That is design work that will not finish in this run. Parked with a resume brief; no change made. dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), Muse lane any-i
- Session / ID: task 19467 (broker follow-on of triage task 18100; resumed from lane code-j's park)
- Found via: queue claim
- Task: This packet's recorded resume brief asked for a fresh design note for issue design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 — fresh verification shows that work already exists, so task 19467 completes as
triaged naming the record instead of duplicating the design.
- Fresh verification (2026-11-17, this lane, all via gh/git): PR docs(pm-stack): one identity across the stack — SSO propagation + roles (#1253) #8351 is MERGED (merge commit 70430e2, 2026-11-13T23:03:16Z) and the design note
doc/2026-11-10T23-58-00Z_design_pm_stack_identity is present on origin/main — it answers the five design questions (per-layer propagation, role model, agent identity/attribution, migration, break-glass). The six implementation splits — issue impl(pm-stack): aggregator Access JWT validation middleware + default-deny role check on write routes (#1253 split 1) #9603 (Access JWT middleware + default-deny), issue impl(pm-stack): aggregator identity registry table + owner admin actions + audit events (#1253 split 2) #9604 (identity registry), issue impl(pm-stack): stack-token minting + agent token-exchange; layer verification in Kaneo/Pad/Grist (#1253 split 3) #9605 (stack tokens), issue impl(pm-stack): comment API — stop accepting author from request body; stamp provenance (#1253 split 4, closes #941) #9606 (comment API provenance, closes aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941), issue impl(pm-stack): migration — provenance markers on existing records + owner-confirmed name linking (#1253 split 5) #9607 (migration markers), issue impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608 (break-glass) — are all OPEN and queued as sub-issues of design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 (epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184 is at GitHub's 100 sub-issue cap, recorded 2026-11-13). Drew's open questions from design section 7 are ledgered as pm-stack-identity-design-questions-1253. This matches the triage of record (task 18100, note 6935104573): acceptance MET, issue stays open as the design tracker until the splits land.
- Note on the park this resumed from: the previous holder's park brief (note 6941197664) described the design note as unwritten; the landed record above predates it. No new design doc was created — a duplicate would fork the record. Split 1's starting point (PR feat(pm-stack): derive authors from Access JWT (#1253) — salvage of archive PR #7383 #8624, conflicted with unresolved Codex findings) lives on issue impl(pm-stack): aggregator Access JWT validation middleware + default-deny role check on write routes (#1253 split 1) #9603, not here.
dezren39 commented on Nov 22, 2026 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 dezren39 commented on Nov 24, 2026 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. developing-today-fleet commented on Nov 26, 2026 🤖 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. developing-today-fleet commented on Nov 27, 2026 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|