GeezerVison is showing github.com — impl(pm-stack): SSO relying-party H4 — agent credentials + surface C integration (child of #9086) · Issue #14262 · developing-today/code
impl(pm-stack): SSO relying-party H4 — agent credentials + surface C integration (child of #9086) #14262DescriptionChild slice of #9086 (design: PR #14089, §4.5 + §5 slice H4). Depends on H1 (#14259); H2 (#14260) for the owner session that mints. Parallel-safe with H3/H5.
What
Agent credential issuance UI/API for #1253's agent role: recorded in tenancy credential table as metadata only (secret shown once, never stored); role=agent, single-tenant scope (never '*'\' at issuance), 30-day max TTL, rotation by re-issuance, revocation by jtieffective within one request. Surface C client-credentials flow with audience-bound 15-min tokens. Audit attribution: every agent action carriesjti+ owningaccount_id/binding_id`.
Acceptance
- Agent acts as agent role on exactly one tenant; revocation effective in one request; audit shows
jti + owner.
{
"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:42Z",
"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
Activitydeveloping-today commented on Nov 24, 2026 developing-today-fleet commented on Nov 25, 2026 Intake review
🤖 Agent note · filed
Notes: child of #9086 (SSO relying-party H4); depends on H1 #14259 and H2 #14260.
Merged PRs referencing this issue (search at intake): #7622 — 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.
developing-today-fleet commented on Nov 25, 2026
agent-note: triage verdict (queue task 22920, worker felix, 2026-11-25)
Verdict: VALID — dependencies now satisfied; routed to an implementation task.
- H1 impl(pm-stack): SSO relying-party H1 — claim-shape contract + front-door library (child of #9086) #14259 is CLOSED: the front-door library landed on main via PR pm-service: SSO relying-party front-door library (H1, #14259) #14323 (merged 2026-11-25T09:06:57Z;
pm-stack/pm-service/src/front-door.ts verified present on current main). The earlier park of this triage ("H1 must land first") no longer applies.
- H2 impl(pm-stack): SSO relying-party H2 — identity_link table + link/unlink API (child of #9086) #14260's code merged via PR feat(id): identity_link table + link/unlink API (H2 of #9086, #14260) #14418 (2026-11-24T14:33:28Z), so the owner-session/identity_link substrate H4 mints from is on main. (impl(pm-stack): SSO relying-party H2 — identity_link table + link/unlink API (child of #9086) #14260 itself stays open pending its own verify-and-close cycle; that does not block H4's build.)
- No open PR references impl(pm-stack): SSO relying-party H4 — agent credentials + surface C integration (child of #9086) #14262 and no live implementation task covered it, so an implementation task has been enqueued from this triage (task id in the follow-up comment once minted).
- Scope reminder for the implementing lane: this is security-adjacent work — credentials are metadata-only in the tenancy
credential table, secret shown exactly once, role=agent, single-tenant scope (never '*' at issuance), 30-day max TTL, revocation by jti effective within one request, surface C client-credentials tokens audience-bound at 15 min, audit attribution jti + account_id/binding_id on every agent action. Tests must cover issuance, one-tenant enforcement, revocation latency, and audit attribution end to end.
Refs #14262 developing-today-fleet commented on Nov 25, 2026 Routing follow-up to the triage verdict above: implementation of H4 is now queued as fleet task 23754 (queue repo-health-code-pilot, kind feature_slice, dedupe repo-health:v1:slice:developing-today/code:issue:14262:slice-1). A lane drawing it should start from the H1 front-door module on main and the acceptance criteria on this issue. Refs #14262 developing-today-fleet commented on Nov 25, 2026 Dedupe note (worker felix): the triage completion also auto-minted follow-on task 23755 (small_fix, now claimed by repo-worker-code). That is a duplicate route — implementation task 23754 (feature_slice, claimed) is the single implementation track for this issue. Whoever works 23755: please stand down / verify-close against 23754 rather than starting parallel work on #14262. Refs #14262 dezren39 commented on Nov 25, 2026 Progress: opened partial H4 request-acceptance slice in PR #14996. It adds the Surface C policy seam for H1 token verification, live role/owner checks, credential metadata scope/lifetime/revocation checks and audit attribution, with focused adversarial and boundary tests. It does not complete H4: issuance UI/API, metadata schema/adapter, client-credentials exchange and end-to-end HTTP integration remain. Focused Bun test run is pending: https://github.com/dezren39/fleet/actions/runs/45588459657. Refs #14262. dezren39 commented on Nov 25, 2026 Verification update for PR #14996: the focused remote command cd pm-stack/pm-service && bun test test/front-door.test.ts passed 18/18 tests, 287 assertions on Fleet run dezren39/fleet#45588459657 (GitHub Actions, fleet-personal): https://github.com/dezren39/fleet/actions/runs/45588459657. This confirms only the bounded request-acceptance slice; the issuance UI/API, credential schema adapter, client-credentials exchange and Surface C HTTP E2E work remain. dezren39 commented on Nov 25, 2026 agent-note:v1
state: triaged — duplicate route stand-down
task: 23755 (small_fix triage follow-on; triage source task 22920, lane oc-code-06)
finding: this packet is a duplicate route. The single implementation track for #14262 is fleet task 23754 (feature_slice), claimed by lane oc-code-08, with PR #14996 open (head 8d6bcf1) and focused remote tests running in dezren39/fleet run 45588459657.
verdict: VALID — H1 #14259 closed (front-door library on main via PR #14323) and H2 #14260's code merged (PR #14418); issue remains OPEN and is now covered by the implementation task above.
action: no parallel implementation started from 23755; H4 remains open pending verification of PR #14996 against #14262's acceptance criteria (single-tenant agent credentials, one-time-shown secret, 30-day max TTL, jti revocation within one request, audience-bound surface C client-credentials tokens, jti + account/binding audit attribution).
lane: oc-code-06 · 2026-11-25T10:01:37Z dezren39 commented on Nov 26, 2026 Progress (agent-next-23-local, task 23754): continued PR #15037 from current main via a merge commit, then added H4 hardening on the existing branch. The credential/token endpoints now set Cache-Control: no-store, the resource response exposes only agent role + tenant scope, and lifecycle audit callbacks are required and carry actor session id + timestamp.
Failing-first tests were pushed at 367406ec758; the exact-head remote run 45806460386 is queued on GitHub-hosted capacity. The implementation is pushed at 763b474f322; two Fleet placement sessions remain queued as the dispatcher currently rejects developing-today/code as an ineligible target despite the registry listing it. No tests were run locally.
Remaining for #14262: verify the queued focused tests and Workers typecheck, then wire the handler to the deployed Worker with the real session resolver and central tenancy store, and finish the browser issuance UI. H3 #14261 and the #9077 provider still have open work. dezren39 commented on Nov 26, 2026 Progress (xaltha lane, queue task 23754): reviewed the terminal results of the two queued verification runs for PR #15037.
- Red run 45806460386: failed as designed on the new hardening assertions —
cache-control: no-store was null (test line 247) and unaudited issuance returned ok: true instead of issuance_failed (test line 57). Red-first confirmed.
- Green run 45807922224: failed at
agent-credentials.test.ts:112 — the SQL credential-store round-trip fixture was the one issuance call site that did not supply the now-mandatory auditLifecycle (fail-closed in 763b474), so issuance returned issuance_failed.
Fix pushed to PR #15037 as 6aae29b29: the SQL fixture now supplies auditLifecycle (test-only, one line). Re-verification dispatched remotely via the fleet-command workflow fallback (fleet queue dispatch still blocked by TLS #13185): run 45813284794 — bun test test/agent-credentials.test.ts test/front-door.test.ts && bun run typecheck against head 6aae29b29. No tests run locally.
Remaining for #14262 acceptance after this run passes: browser issuance UI and wiring the surface C handler into the deployed Worker entry with the real H2 session resolver + provider signer. dezren39 commented on Nov 26, 2026 Verification correction — install dependencies before typecheck
Remote run 45813284794 passed the two test files (30 tests), then failed at tsc --noEmit because the command had not installed the package dependencies (tsc: command not found). No test assertion failed.
I’m rerunning the same focused tests and typecheck with bun install --frozen-lockfile first. The current code stays on PR #15037; no secret values are part of the test fixture.
dezren39 commented on Nov 26, 2026 Verification update — corrected remote command is running
The earlier attempt 45813284794 passed the two test files but failed because tsc was unavailable; the command omitted dependency installation. I dispatched a corrected command with bun install --frozen-lockfile first as run 45819183803.
The target command step completed with success, so the tests and bun run typecheck returned zero. The workflow is still in its post-execution cleanup step; test counts and final run status are not yet available. No code changed in this verification pass.
dezren39 commented on Nov 26, 2026 agent-note:v1 event: verified-slice-merged (lane RX, Muse sandbox seat, queue task 23754, 2026-11-26 ~06:45 CST)
Claim: drawn via fleet agent next, rung=queue (tried: push=empty). Direct curl to the broker tunnel 100.99.113.103:4801 returned 000 at lane start, but the fleet queue rung itself answered and claimed task 23754 — tunnel state: degraded for direct probes, functional via the fleet proxy path.
Premise + ownership check (all 15 comments read):
Verification of PR #15037 head 6aae29b:
- Ready-condition run 45813284794 is now terminal: completed failure ONLY at typecheck — its log shows the two test files passed (30 tests) and then
tsc: command not found (command had omitted dependency install; no assertion failed), exactly as correction comment 7191937417 recorded.
- Corrected run 45819183803 (developing-today/fleet, fleet-command route; command: cd pm-stack/pm-service && bun install --frozen-lockfile && bun test test/agent-credentials.test.ts test/front-door.test.ts && bun run typecheck) is now terminal SUCCESS (completed 2026-11-26T12:36:33Z). Log evidence read this lane: 30 pass, 0 fail, 352 expect() calls across the 2 files, including the surface C HTTP integration test "issue → exchange → act with audit attribution → revoke → next request denies", and
$ tsc --noEmit ran clean as the final chained step. Oracle: H4 design §§4.5/4.8 (metadata-only storage, secret shown once, one-tenant role=agent, jti revocation within one request, jti + account_id/binding_id audit, no-store credential/token responses).
- No tests run locally; no laptop build/test used. Verification route = repo/fleet Actions (fleet-command workflow), per execution-routes rule.
Merge: PR #15037 MERGED this lane under standing merge authority after the above verification — merge commit 764d745, mergedAt 2026-11-26T12:41:00Z (mergeable=clean; main 77-commit advance since the PR base touches no pm-stack/pm-service files).
REMAINING for #14262 acceptance (issue stays OPEN): browser issuance UI, and wiring the surface C handler into the deployed Worker entry with the real H2 session resolver + provider signer. Task 23754 is parked with that as its resume scope — not completed. developing-today-fleet commented on Nov 26, 2026 agent-note:v1 event: dependency-verified-park (lane TR, Muse sandbox seat, queue task 23754, 2026-11-26 ~07:35 CST)
Claim: drawn via fleet agent next, rung=queue (tried: push=empty). Exactly one item claimed this lane.
Premise + ownership check (all 16 comments read): single implementation track is task 23754 (duplicate route 23755 stood down); no held/user label; no Drew-decision gate. Prior slice verified + merged this morning: PR #15037 MERGED 2026-11-26T12:41:00Z, merge commit 764d745, remote run 45819183803 terminal SUCCESS (30 tests pass, typecheck clean). That evidence stands — not re-run this lane.
Remaining-scope dependency verification (this lane, via fleet gh code search + file reads on main):
Verdict: the remaining H4 acceptance (browser issuance UI + wiring surface C into the deployed Worker with the real H2/H3 session resolver and provider signer) is genuinely dependency-blocked — wiring it now would require inventing a session resolver and signer that H3/#9077 own. No code changed this lane; no tests run locally; no laptop build/test used.
Disposition: task 23754 parked with a dependency ready-condition (not a person): resume when #14261 lands the session cookie/resolver AND a provider signer from #9077 is available on main, then wire createSurfaceCHandler into worker.ts + add the browser issuance UI with end-to-end tests. Issue #14262 stays OPEN. developing-today-fleet commented on Nov 26, 2026 Fresh dependency check (2026-11-26): the H4 backend slice remains verified and merged as PR #15037 (remote Fleet run developing-today/fleet#45819183803: 30 tests passed and Workers typecheck succeeded; issue evidence #14262 comment 7192328515). Remaining H4 work is browser credential issuance UI plus mounting the handler in the deployed Worker with a real H3 owner-session resolver and production signer. H3 #14261 remains open; its callback/Worker-route slice is now actively queued as task 24494 (issue #14261 comment 7205206409). No independent H4 route can safely be wired until that production auth path exists. Keep H4 open/blocked; resume after H3 resolver and provider signer are available on main. developing-today-fleet commented on Nov 26, 2026
H4 dependency recheck (code-h, task 23754, 2026-11-26): PR #15037 remains merged and verified; H2 #14260 is now CLOSED. H4 still has no production owner-session resolver/provider signer on main. H3 #14261 remains OPEN; its callback/worker-route slice is PR #15799, currently OPEN (not merged), and the H3 issue still names linked-door same-account login plus live revocation as remaining acceptance. Provider-signing source #9077 also remains OPEN. No H4 code or secret issuance attempted; dependency gate remains real. Re-blocking on #14261; re-evaluate #9077 after the H3 path lands.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|