Repository navigation
feat(pm-service): mount surface C in worker.ts with H3-wired resolveOwnerSession (H4 #14262) - #17067
Merged
developing-today-fleet[bot] merged 2 commits intoNov 30, 2026
Conversation
…d mint, full loop (H4 #14262)
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
lane/2207j-surface-c-worker-wiring
branch
November 30, 2026 04:39
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #14262 (H4, child of #9086) — lands the wiring remainder named in CEN-C15's current-state record on that issue: the backend was merged (PRs #14996, #15037) but H3's session core was not wired as surface C's injected
resolveOwnerSession, andworker.tsdid not mount the handler.What
pm-stack/pm-service/src/worker.tsmountscreateSurfaceCHandlerfor the surface C routes (/api/agent-credentials,/api/agent-credentials/<jti>,/oauth/token,/api/agent/whoami) ahead of the browser-session gate — those routes carry their own auth, so the gate must not pre-empt them.resolveOwnerSessionis derived fromBROWSER_OAUTH: the H3 browser session cookie viaauthenticateBrowserSession, re-resolved against live roles on every mint/revoke — the exact seam surface-c-api.ts documents ("H1 front door + H3 cookie in the wired service").SURFACE_Cenv, mirroring theBROWSER_OAUTHpattern. Until supplied, the routes answer a structured 503 — no stub ever pretends to mint.What this does NOT do
Full #14262 acceptance still waits on the production token signer from #9077 (OPEN — the long pole CEN-C15 named). This PR removes the worker-wiring blocker only; the issue stays open.
Verification
New
test/worker-surface-c.test.ts(oracle: the CEN-C15 record + the H4 acceptance loop): 503-unconfigured, mint denied without the H3 cookie, and issue → exchange → act (with audit attribution) → revoke → next request denies, end to end throughhandlePmServiceFetch. Localbun teston the assembled pm-service tree: worker-surface-c (3) + worker-auth + agent-credentials suites — 19 pass, 0 fail. CI is not a gate per Drew's standing rule; the diff was read in full against the issue.Lane 2207-J (charlie ADVANCE programmes+author, 2026-11-29).
{ "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-30T04:39:10Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/hatch-personal", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/hatch-personal", "repo": "developing-today/code", "branch": "main", "sha": "a58b1cfc262b3e6935467ccdcb0a63da7bf7cf20" }, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.