GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #14262

New issue
Copy link
New issue
Copy link
Backlog
Backlog
impl(pm-stack): SSO relying-party H4 — agent credentials + surface C integration (child of #9086)#14262
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation state

Description

@dezren39
dezren39
opened on Nov 24, 2026
Issue body actions

Child 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

  • Agent credential issuance UI/API works for design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253's agent role, minted from the H2 owner session
  • Credentials are recorded in the tenancy credential table as metadata only, with the secret shown exactly once
  • Surface C integration is exercised end to end and covered by tests

Activity

Next
  1. dezren39
    added
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    epic/pm-stackReprioritization program epic (2026-11-12)
    on Nov 24, 2026
  2. developing-today commented on Nov 24, 2026

    @developing-today
    developing-todayBot
    on Nov 24, 2026 – with developing.today
    Contributor
    More actions

    CODE-5260

  3. developing-today-fleet
    added
    kind/enhancement
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 25, 2026
  4. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    Intake review

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 01:14 CST
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: Intake pass — acceptance criteria appended to the body, labels normalized, meta/enriched applied.
    • Expectation: routed through the normal queue/sweep flow.
    • Links: related: child of design(pm-stack): SSO relying-party integration — hosted editions consume #9077; tenancy accounts aligned with #1253 roles #9086 (SSO relying-party H4); depends on H1 impl(pm-stack): SSO relying-party H1 — claim-shape contract + front-door library (child of #9086) #14259 and H2 impl(pm-stack): SSO relying-party H2 — identity_link table + link/unlink API (child of #9086) #14260.

    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.

  5. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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

  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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

  7. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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

  8. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    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.

  9. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    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.

  10. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    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

  11. 9 remaining items

  12. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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.

  13. dezren39
    added
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 26, 2026
  14. dezren39
    added a commit that references this issue on Nov 26, 2026

    test(pm-service): give SQL credential fixture its lifecycle audit (#1…

    6aae29b
  15. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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.

  16. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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.

  17. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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.

  18. dezren39
    added a commit that references this issue on Nov 26, 2026

    Merge pull request #15037 from developing-today/xaltha/14262-agent-cr…

    764d745
  19. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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):

    • No live claim other than task 23754 itself (single implementation track; duplicate route 23755 stood down 2026-11-25). No held/user label (labels are status/blocked + queue/blocked queue state only). No Drew-decision gate. H1 impl(pm-stack): SSO relying-party H1 — claim-shape contract + front-door library (child of #9086) #14259 closed, H2 impl(pm-stack): SSO relying-party H2 — identity_link table + link/unlink API (child of #9086) #14260 code on main — premise VALID.

    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.

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

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    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):

    • pm-stack/pm-service/src/worker.ts (deployed Worker entry) does NOT mount the surface C handler — it serves only dashboard + read-api, 503 when PM_TENANT_DB_URL is unset.
    • createSurfaceCHandler (src/surface-c-api.ts) requires injected resolveOwnerSession and mintAccessToken. Code search on main: both symbols occur ONLY in surface-c-api.ts itself and in test/agent-credentials.test.ts (stubs). No production owner-session resolver and no production token signer exist on main.
    • The owner session is H3's surface A browser login + session cookie: impl(pm-stack): SSO relying-party H3 — surface A browser login Code+PKCE + session cookie (child of #9086) #14261 is OPEN. The provider signer is the SSO for fleet services: GitHub/Google/Microsoft login gated to Drew + devtoday OIDC provider with roles + account linking #9077 OIDC provider: OPEN. H2 impl(pm-stack): SSO relying-party H2 — identity_link table + link/unlink API (child of #9086) #14260 also remains OPEN.

    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.

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

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

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

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

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-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.