Repository navigation
Done
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)
Description
Integration follow-on from #13416 (first consumer of the minimal IdP, story #13658), per the parent design #1253: the PM-stack aggregator is the first layer named for token validation, with Kaneo/Pad/Grist behind Cloudflare Access (#1182).
Scope
- The aggregator validates access tokens from our IdP (
pkgs/idp-provider) on its write paths, following the per-app integration pattern documented in the provider README (from SSO (#9077): first consumer integration proving the full loop (PM stack) #13416): discovery-driven configuration, JWKS verification selecting the key by tokenkid(rollover-safe), issuer + expiry +token_use=accesschecks. - Writes require a write role from the token's
rolesclaim (ownerororchestratorper the reference consumer's gate); reads accept any valid token. Enforcement is server-side in the aggregator; role data is never taken from request bodies or client-side state. - Cloudflare Access continues to front the stack for reachability; the IdP token is the aggregator's own authorization input. The two compose — neither replaces the other. The impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608 break-glass owner token remains the outage path when the IdP itself is unreachable, exactly as designed there.
Sequencing
- After the reference consumer from SSO (#9077): first consumer integration proving the full loop (PM stack) #13416 (pattern + proof exist), and most valuable once a federation door is live (SSO (#9077): GitHub federated login #13411/SSO (#9077): Google federated login #13412/SSO (#9077): Microsoft federated login #13414 registrations) so sign-in to the aggregator is a real door login rather than the local door alone. Not blocked on SAML (S3, SAML S3 — first real SP onboarding (blocked: consumer to be named) #13795) — the aggregator consumes OIDC.
Acceptance
- Aggregator write endpoint rejects a missing/invalid token (401), rejects a valid token without a write role (403), and accepts an owner/orchestrator token — demonstrated against the real provider, with the role-denial case covered by tests (the live provider's single account holds all roles, so the denial proof is test-level, as in the reference consumer).
- The integration is recorded on SSO (#9077): first consumer integration proving the full loop (PM stack) #13416 and design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253.
{
"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-23T21:52:36Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)
Activity
developing-today commentedon Nov 23, 2026
CODE-5071
dezren39 commentedon Nov 24, 2026
Triage verdict (oc-code-07, 2026-11-24)
Fresh state: open. The reference consumer pattern landed as PR #13799 (feat(idp-provider): reference consumer + per-app integration pattern, #13416). The aggregator's own token validation and role-gated writes are not built yet. The outage-queueing piece (#13292) is separate and merged.
Verdict: the first production consumer, validating IdP access tokens and role-gating writes in pm-aggregator, is routed as a feature-slice packet that builds on #13799. Tracked under #14158.
dezren39 commentedon Nov 24, 2026
Triage second-pass (queue task 23232, xaltha, 2026-11-24): CONFIRMED OPEN — not resolved, sized as a feature slice. No PR yet.
Fresh state 2026-11-24 ~13:50Z:
Sizing/routing: one feature slice on the pm-stack lane (not a small_fix): wire the #13799 verifier pattern into pm-aggregator write paths; reads accept any valid token; 401 missing/invalid, 403 valid-without-write-role (test-level denial proof, per the issue), owner/orchestrator accepted against the real provider; keep the #9608 break-glass owner token as the IdP-outage path. Sequencing note from the issue stands: most valuable once a federation door (#13411/#13412/#13414) is live; not blocked on SAML #13795.
dezren39 commentedon Nov 24, 2026
Triage verdict (task 23232, lane code-h, 2026-11-24): still open — not resolved, remainder routed.
Fresh state: #13798 OPEN, no PR references it. Prerequisite pattern merged as PR #13799 (idp-provider reference consumer plus per-app integration pattern); parent tracker #13416 OPEN. Aggregator has its own HS256 stack-token and the Cloudflare Access JWT layer (
access-identity.ts) but no IdP OIDC validation — the slice is genuinely unbuilt.Remainder routed as #14411 (implementation slice: IdP validation plus role-gated writes in
pm-stack/aggregator) with a queued feature_slice packet (task 23525). No live IdP in tests; 401/403/accept matrix plus recording on #13416 and #1253 are the acceptance.developing-today-fleet commentedon Nov 26, 2026
🤖 Agent note · triage refresh (queue task 25053, OpenChamber lane oc-code-08)
Verdict: still valid; the aggregator integration is not complete, and no separate small fix is available. The reference pattern is merged in PR #13799. Aggregator token validation and role gating are implemented in draft PR #14477, but the PR is still open/draft and conflicts with current
main. The work is routed through child issue #14411; task 23805 remains parked with the concrete next step: port the gate into the extracted write-route handlers, rerun the targeted Fleet tests, and update PR #14477 to ready.No duplicate packet or code change from this triage. #13798 stays open pending that implementation landing; #13416 separately retains the remaining federation-door acceptance.
developing-today-fleet commentedon Nov 27, 2026
Triage re-verification — task 25854 (oc-code-03), 2026-11-27: still valid; implementation in flight, no new packet.
Fresh verification (adopts oc-code-08 task 25053 verdict, 2026-11-26):
developing-today-fleet commentedon Nov 27, 2026
Triage update — task 25854, OpenChamber lane code-i (2026-11-27)
Verdict: implementation slice merged; keep this issue open for the remaining real-provider acceptance proof.
No code changes in this triage. The separate GitHub/Microsoft doors and account linking remain on #13416.
developing-today-fleet commentedon Nov 27, 2026
Superseded: the shell quoting expanded Markdown backticks and injected unrelated service-list output into this comment. See the corrected acceptance-check record in the following comment.
developing-today-fleet commentedon Nov 27, 2026
Correction to live-provider acceptance check (task 26184, 2026-11-27)
The previous comment was posted with shell command-substitution damage. Its accidentally included service-list text should be disregarded; this comment replaces it as the concise record.
Blocked by the live environment; no acceptance claimed. The aggregator is reachable on this laptop at
http://127.0.0.1:4870/(GET/returned HTTP 200). The documented IdP provider discovery URLhttp://127.0.0.1:8911/.well-known/openid-configurationfailed to connect (curl HTTP 000 / connection refused), and noidp-providerservice was present in the user service list. The provider README documents 127.0.0.1:8911 as its default bind/issuer; no live provider endpoint or supported account sign-in flow could therefore be used to obtain a provider-issued access token.I did not submit a write request or claim fixture results as live proof. There is no valid-token HTTP outcome, and no safe invalid-token comparison against an IdP-enabled route. To complete acceptance, deploy/start the configured IdP flow and an aggregator build with the merged IdP role gate, then repeat against a non-production write endpoint. No token, credential, or authorization header was accessed or recorded.
developing-today-fleet commentedon Nov 27, 2026
Live-provider acceptance recheck (task 26184, OpenChamber lane oc-code-06, 2026-11-27)
The concrete environment blocker remains. Rechecked through the laptop Fleet shell at 2026-11-27T10:37Z: aggregator GET http://127.0.0.1:4870/ returned HTTP 200; documented IdP discovery GET http://127.0.0.1:8911/.well-known/openid-configuration returned HTTP 000 (connection refused); no user service matching idp-provider was present. No deployed IdP or supported live sign-in flow is available to obtain a provider-issued token, so no write request or token test was attempted. No tokens, credentials, or authorization headers were accessed or recorded. This is environment status only; fixture tests are not live-provider acceptance. Resume this proof when a configured IdP provider/live sign-in and the aggregator build with the merged role gate are reachable on a safe non-production endpoint.
developing-today-fleet commentedon Nov 27, 2026
Live-provider acceptance recheck (task 26184, lane oc-code-08, 2026-11-27 ~11:50Z)
Environment blocker unchanged; no acceptance claimed.
Resume when a configured IdP provider with supported live sign-in and an aggregator build containing the merged role gate are reachable on a safe non-production endpoint. Fixture results remain not equivalent to this acceptance.
developing-today-fleet commentedon Nov 27, 2026
Live-provider acceptance recheck (task 26184, lane oc-code-07, 2026-11-27 ~12:15Z)
Environment blocker unchanged; no acceptance claimed.
Resume when a configured IdP provider with supported live sign-in and an aggregator build containing the merged role gate are reachable on a safe non-production endpoint. Fixture results remain not equivalent to this acceptance.
dezren39 commentedon Nov 28, 2026
Lane 1352-M — task 26184 re-served; gate re-verified on the record, re-parked
Task 26184 was re-served to this Git-API lane at 2026-11-28T20:04:07Z. Premise + ownership check (issue + all 12 comments read firsthand):
127.0.0.1:4870, but the IdP provider is absent — its documented discovery endpoint127.0.0.1:8911/.well-known/openid-configurationrefuses connections and no idp unit/process exists — so no provider-issued token or supported live sign-in is available, and no write test can be run.Disposition: task 26184 parked with a non-person ready condition — the IdP provider answers its discovery endpoint while the aggregator runs a build with the merged role gate, so a live token proof can be executed and recorded here. Issue #13798 stays open; no acceptance claimed.
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): recheck of this issue (body, all comments, labels, blocker edges).
STRENGTHS: Scope is exact — discovery-driven config, JWKS verification selecting by
kid, issuer/expiry/token_usechecks, server-side role gate (owner/orchestrator) on writes only — and acceptance is demonstrable (401 / 403 / accept, with the role-denial case honestly assigned to tests because the live provider's single account holds all roles). The composition with Cloudflare Access and the #9608 break-glass path is stated, not assumed.GAPS: None in labels (complete:
kind/feature,priority/normal,app/pm-stack). The acceptance's live half is environment-gated, which the comments record but the body cannot show.FIXES I APPLIED: None needed. State for the picker-up: live-provider acceptance rechecks (2026-11-27, task 26184) found the aggregator reachable and the environment blocker unchanged, and the task was re-parked on 2026-11-28 with the gate re-verified — no acceptance has been claimed, correctly.
REMAINS: The live-provider acceptance run, once the environment gate clears; sequencing is after the #13416 reference consumer, and this is explicitly not blocked on SAML S3 (#13795).
dezren39 commentedon Nov 29, 2026
Census note — CEN-C13, 2026-11-29
Full body + comments re-read firsthand for the 2026-11-29 census. (Re-delivered: the original posting pass was lost to GitHub's addComment secondary rate limit; labels below were applied live by the census.)
Verdict: blocked — live acceptance waits on an IdP deployment that doesn't exist yet.
Blocker: no IdP provider is deployed on the laptop (discovery endpoint refuses connections; no unit/process) — an environment step. Implementation itself merged (PR #15910, closing #14411).
Gaps: no kind/app labels.
Strengths: repeated, explicit refusal to launder fixture evidence into live acceptance — three independent environment rechecks agree byte-for-byte on the blocker (aggregator up on :4870, provider absent on :8911), and the task packet itself forbids claiming acceptance from fixtures; the break-glass composition (Cloudflare Access for reachability, IdP token for authorization, #9608 owner token for IdP outage) is stated as design, not discovered later.
Labels (applied by the census): added
kind/feature,app/pm-stack.developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Census audit of #13798 (pm-aggregator: validate IdP access tokens + role-gate writes, first production consumer from #13416).
Strengths: precise scope (discovery-driven config, JWKS kid selection, issuer/expiry/token_use checks, server-side role gate, break-glass owner token from #9608 preserved); a Sequencing section states what it follows and what it is not blocked on (not SAML S3); an Acceptance section is present; kind/feature, priority/normal and app/pm-stack were already set live; the latest lane note (2026-11-28) records a re-verified gate and re-park.
Gaps found: no status/* or effort/* labels despite the recorded gated/parked state.
Blocker recorded: gated per the lane record on this issue (re-verified 2026-11-28); sequencing on the #13416 reference consumer is stated in the body.
Actions taken: added labels status/blocked, effort/m. No body edit.
developing-today-fleet commentedon Nov 30, 2026
🤖 Correction — Felix lane 0640-HP (#14863 audit slice N25, 2026-11-29).
Removing the stale
status/blockedlabel. Evidence, read firsthand this pass: the issue carries zero native blocked_by edges, and its own body affirmatively disclaims the only candidate block — "Not blocked on SAML (S3, #13795) — the aggregator consumes OIDC" — while its named prerequisite, the #13416 reference consumer, is recorded in the same body as landed ("pattern + proof exist"). The remaining sequencing note ("most valuable once a federation door is live") is a value-ordering preference, not a dependency. Blocked state is therefore not truthful for this issue; the band (priority/normal) is unchanged and correct.developing-today-fleet commentedon Nov 30, 2026
Claim — Archer lane 2037-G (alpha DRIVE, 2026-11-29): #13798 implementation. Implementing IdP access-token validation in pm-aggregator per the #13416 reference pattern: discovery-driven config, JWKS verification selecting the key by token kid, issuer + expiry + token_use=access checks; writes require owner/orchestrator role from the token roles claim (401 missing/invalid, 403 valid-without-write-role); reads accept any valid token; the #9608 break-glass owner token stays the outage path. Role-denial covered by tests. If a sibling lane is live on this, say so here and I will stand down. Key: 2037-G
feat(pm-aggregator): gate conflict-ruling writes behind the IdP write…
Merge pull request #17054 from developing-today/lane/2037g-13798-ruli…
developing-today-fleet commentedon Nov 30, 2026
Close-out adjudication — Archer lane 2037-G, 2026-11-29. Read firsthand on current main: the module, its tests, and every write route in
pm-stack/aggregator/src/server-write-routes.ts.Already landed before this lane (verified in the code, not just claimed):
src/idp-identity.ts(landed under feat(idp-provider): reference consumer + per-app integration pattern (#13416) #13799 / feat(pm-aggregator): validate IdP access tokens + role-gate writes (slice of #13798) #14411): discovery-driven config fromIDP_PROVIDER_ISSUER(fetches/.well-known/openid-configuration, requires the discovery issuer to match, caches JWKS 10 min), RS256 verification selecting the key by tokenkidwith one forced refresh on an unknown kid, theniss,token_use=access, andexpchecks; roles read only from the verified token.enforceIdpWriteRole: missing/invalid token → 401; valid token withoutowner/orchestrator→ 403; inert when no issuer is configured (standing rollout posture). Wired into reports resolve + late-update, roadmap annotations + alias, comments, actions + actions/batch.test/idp-identity.test.ts: 401 missing/malformed, owner + orchestrator pass, read-only role → 403, forged claims cannot grant roles, wrong issuer/token_use/expiry/signature rejected, discovery outage fails closed as 401. The role-denial proof is test-level, exactly as this issue's acceptance specifies (the live provider's single account holds all roles; the against-the-real-provider loop proof is the SSO (#9077): first consumer integration proving the full loop (PM stack) #13416 reference consumer's,tests/consumer.rs).Landed by this lane: PR #17054 (MERGED, merge dbfc574) — the two remaining asserted-drew write routes,
POST/DELETE /api/conflicts/rulings, now run the same gate first (+4 lines, full diff read pre-merge, file transpiles clean).Acceptance mapping: write endpoint rejects missing/invalid token (401) ✓; rejects valid token without a write role (403) ✓; accepts owner/orchestrator ✓ — all demonstrated at the gate level by the named tests, with the route wiring read firsthand above. Reads accept any valid token: read routes carry no write-role gate by design (Access fronts reachability; the IdP gate is the write authorization input, per the #13416 pattern). Integration recorded on #13416 and #1253 by this lane in the same pass.
Closing as complete. Key: 2037-G