Skip to content

fix: share Pier provider proxy across concurrent attempts - #1502

Merged
Astro-Han merged 1 commit into
mainfrom
fix/pier-shared-provider-proxy
Jul 26, 2026
Merged

Astro-Han merged 1 commit into
mainfrom
fix/pier-shared-provider-proxy

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

Pier's offline task containers can reach the host provider proxy only through Squid-safe ports 80/443. The previous per-attempt listener therefore serialized every attempt sharing port 443, preventing the DeepSWE harness from running four task pairs with both arms in parallel.

This change gives each Pier benchmark run one fixed-port provider proxy hub. Every attempt receives an independent token-routed lease with its own upstream credential resolver, usage and telemetry accumulators, and abort lifecycle. The benchmark runner shares the hub across both arms and closes it at run completion. Direct runner callers that do not provide a hub keep the existing fixed-port serialization fallback.

The hub also preserves each provider's upstream base path from #1499 while sharing only the listener authority, so a lease token remains scoped to its own provider mount.

Verification

  • node --test packages/headless/dist/__tests__/provider-auth-proxy.test.js packages/headless/dist/__tests__/pier-task-runner.test.js — 71 passed
  • npm --workspace @maka/headless test — 1346 passed
  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run format:check
  • git diff --check

No real-provider benchmark was run while developing this change.

Remaining evidence

  • Run a real DeepSWE canary from the exact PR commit with pairConcurrency=4 and armExecution=parallel (up to 8 concurrent cells), then attach the manifest, attempt journal, results, provider telemetry, and cost attribution.

Review focus

  • Per-lease token routing and credential/usage isolation on one listener.
  • Lease-local abort versus run-wide hub shutdown.
  • Interaction with provider base-path preservation and the no-hub compatibility fallback.

@Astro-Han
Astro-Han marked this pull request as ready for review July 26, 2026 10:23
@Astro-Han
Astro-Han merged commit 92c486a into main Jul 26, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the fix/pier-shared-provider-proxy branch July 26, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant