Skip to content

[2743 by Claude Opus 5.5] Restricted network egress for agent containers via a per-run host proxy - #2847

Merged
integry merged 21 commits into
mainfrom
2743/claude-opus-5-5-restricted-network-egress-20261006-2103-yel
Oct 7, 2026
Merged

integry merged 21 commits into
mainfrom
2743/claude-opus-5-5-restricted-network-egress-20261006-2103-yel

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2743

Branch: 2743/claude-opus-5-5-restricted-network-egress-20261006-2103-yel
Commits: ✅ Changes committed (c0c6732)


AI Processing Completed

Execution Details:

Summary:
Restricted network mode for issue #2743 is implemented. Lint and typecheck pass, the unit, UI and e2e tests pass, and I ran the existing test files most likely to be affected. But Docker isn't available here, so it has never been run against a real agent container. The Docker integration test (test/egressProxyContainerSmoke.test.ts) skips without Docker and an agent image, and the full repository suite wasn't run.

How it works

  • When a run is restricted, the worker starts an allowlist proxy for each agent container. It listens on a Unix socket in its own directory (default /tmp/propr-egress/<id>/). Each container has its own socket, so there are no ports to collide.
  • The container gets --network none, the socket directory mounted read-only, and HTTP_PROXY/HTTPS_PROXY/NO_PROXY plus git's http.proxy set. There is no --privileged and no NET_ADMIN.
  • A small bridge inside the container makes the socket reachable at 127.0.0.1:3128 before setup hooks and the agent start. I ran it outside Docker against a live proxy: an allowed request went through, and a denied CONNECT got 403 and was recorded.
  • DNS is resolved by the proxy on the worker. Wildcards like *.example.com match subdomains only, entries can carry a port (otherwise only 80/443), and IP addresses are denied unless listed exactly.
  • Every Docker run goes through one place, so all agents are covered there. A proxy closes when its container exits, and running jobs drain before proxies shut down at worker stop. The worker also removes socket directories left by crashed workers at startup and every 10 minutes.

Policy

  • .propr/workflow.yml accepts network: { mode, allow }, validated in code and in the editor JSON schema.
  • Instance settings agent_network_mode, agent_network_mode_enforced and agent_network_allow default from the AGENT_NETWORK_* env vars. They're available in the API, a new Settings → Automation → Agent network section, the CLI and MCP.
  • A repository can tighten to restricted, or relax a non-enforced restricted default to open. When the instance enforces restricted, mode: open is ignored and the timeline says so; the repository's allow hosts still apply.
  • If the stored policy can't be read, the run fails rather than running open.

Agent compatibility. Claude Code, Codex, OpenCode and Vibe are marked as supported based on their documented or library proxy behaviour, not live runs. Antigravity's sign-in and API traffic couldn't be confirmed, so it falls back to open networking with a timeline warning. When restricted mode is enforced, Antigravity runs are refused instead. That goes beyond the issue's plain "fall back", because an enforced policy shouldn't be silently bypassed.

Observability. Each run ends with one timeline event showing the mode, any fallback or refusal, and every denied host with its count. After 100 distinct hosts, the rest are still counted rather than dropped. The task detail shows this event.

Limitations to know about

  • Restricted mode only applies to issue and PR-comment jobs. Goals, plan generation and indexing still run with open networking.
  • The proxy checks hostnames only and doesn't inspect TLS. SSH remotes and other non-HTTP traffic have no route out.
  • It needs a Linux Docker host that can see the socket directory at the same path. I added the /tmp/propr-egress mount to both Compose files and the launcher.

Other changes

  • scripts/init-firewall.sh and all the "Skipping firewall setup" lines are removed. The iptables package is still installed in the agent image; removing it would also mean editing the licence notices.
  • Docs are updated (execution safety, security overview, workflow file, agent runtime, config reference, generated settings locations), plus a CHANGELOG entry.
  • I updated @propr/core mocks or expected settings responses in five existing test files so they match the new exports and settings fields.

Previews of the timeline event (desktop and mobile) and the new settings section were captured.

Detailed Logs:

  • Conversation: 189 messages
  • Session: 4c0afeef-fb0f-4618-b4a7-4cb2d9bd4584

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2743-2026-10-06T21-43-56-444Z-conversation.json
  • output: /tmp/claude-logs/issue-2743-2026-10-06T21-43-56-444Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: Restricted network mode for issue #2743 is implemented. Lint and typecheck pass, the unit, UI and e2e tests pass, and I ran the existing test files most likely to be affected. But Docker isn't availab...


This PR was created automatically by ProPR after processing issue #2743.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Agent network settings

Agent network settings

New Settings → Automation → Agent network section: mode, enforcement and additional allowed hosts

Original unavailable: managed storage is unavailable or the upload has expired.

Restricted network timeline event (desktop)

Restricted network timeline event (desktop)

Task timeline with the end-of-run Restricted Network event: mode, its source (.propr/workflow.yml) and each denied host with its attempt count

Original unavailable: managed storage is unavailable or the upload has expired.

Restricted network timeline event (mobile)

Restricted network timeline event (mobile)

The same network egress event on a 390px phone viewport

Original unavailable: managed storage is unavailable or the upload has expired.

…check pass, the unit, UI and e2e tests pass, and I ran the existing test files most likely to be affected. But Docker isn't available here, so it has never been run against a real agent container. The Docker integration test (`test/egressProxyContainerSmoke.test.ts`) skips without Docker and an agent image, and the full repository suite wasn't run.

How it works
- When a run is restricted, the worker starts an allowlist proxy for each agent container. It listens on a Unix socket in its own directory (default `/tmp/propr-egress/<id>/`). Each container has its own socket, so there are no ports to collide.
- The container gets `--network none`, the socket directory mounted read-only, and `HTTP_PROXY`/`HTTPS_PROXY`/`NO_PROXY` plus git's `http.proxy` set. There is no `--privileged` and no `NET_ADMIN`.
- A small bridge inside the container makes the socket reachable at `127.0.0.1:3128` before setup hooks and the agent start. I ran it outside Docker against a live proxy: an allowed request went through, and a denied CONNECT got 403 and was recorded.
- DNS is resolved by the proxy on the worker. Wildcards like `*.example.com` match subdomains only, entries can carry a port (otherwise only 80/443), and IP addresses are denied unless listed exactly.
- Every Docker run goes through one place, so all agents are covered there. A proxy closes when its container exits, and running jobs drain before proxies shut down at worker stop. The worker also removes socket directories left by crashed workers at startup and every 10 minutes.

Policy
- `.propr/workflow.yml` accepts `network: { mode, allow }`, validated in code and in the editor JSON schema.
- Instance settings `agent_network_mode`, `agent_network_mode_enforced` and `agent_network_allow` default from the `AGENT_NETWORK_*` env vars. They're available in the API, a new Settings → Automation → Agent network section, the CLI and MCP.
- A repository can tighten to restricted, or relax a non-enforced restricted default to open. When the instance enforces restricted, `mode: open` is ignored and the timeline says so; the repository's `allow` hosts still apply.
- If the stored policy can't be read, the run fails rather than running open.

Agent compatibility. Claude Code, Codex, OpenCode and Vibe are marked as supported based on their documented or library proxy behaviour, not live runs. Antigravity's sign-in and API traffic couldn't be confirmed, so it falls back to open networking with a timeline warning. When restricted mode is enforced, Antigravity runs are refused instead. That goes beyond the issue's plain "fall back", because an enforced policy shouldn't be silently bypassed.

Observability. Each run ends with one timeline event showing the mode, any fallback or refusal, and every denied host with its count. After 100 distinct hosts, the rest are still counted rather than dropped. The task detail shows this event.

Limitations to know about
- Restricted mode only applies to issue and PR-comment jobs. Goals, plan generation and indexing still run with open networking.
- The proxy checks hostnames only and doesn't inspect TLS. SSH remotes and other non-HTTP traffic have no route out.
- It needs a Linux Docker host that can see the socket directory at the same path. I added the `/tmp/propr-egress` mount to both Compose files and the launcher.

Other changes
- `scripts/init-firewall.sh` and all the "Skipping firewall setup" lines are removed. The `iptables` package is still installed in the agent image; removing it would also mean editing the licence notices.
- Docs are updated (execution safety, security overview, workflow file, agent runtime, config reference, generated settings locations), plus a CHANGELOG entry.
- I updated `@propr/core` mocks or expected settings responses in five existing test files so they match the new exports and settings fields.

Previews of the timeline event (desktop and mobile) and the new settings section were captured.
@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=5

@propr-dev propr-dev Bot added the ultrafix label Oct 6, 2026
@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 5)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements restricted egress through isolated container networking and worker-side proxies, with settings and timeline reporting. It needs changes before merge: proxy cleanup is incomplete, the production Compose configuration omits the advertised policy variables, and sweeping can remove active proxies.

✅ Enforced policy resolution — An enforced restricted instance overrides a repository’s request for open networking and refuses unsupported agents.

✅ Container isolation — Supported restricted runs replace bridge networking with --network none, mount a dedicated proxy socket, and configure HTTP and Git proxy settings.

This was a static review; no commands were run. Current-head checks report 11 neutral/skipped results and no passed, failed, or pending checks.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Close plain HTTP upstream connections

  • Required behavior: A per-container proxy must release its upstream connections when the container exits or is cancelled.

  • Evidence: packages/core/src/network/egressProxy.ts, startEgressProxy HTTP request handler and close().

    1. A restricted container requests a long-running HTTP response from an allowed host.
    2. The HTTP handler creates an upstream request and pipes its response into the container’s response, but never adds that upstream socket to open.
    3. The container exits or is cancelled, and network.release() calls proxy.close().
    4. Cleanup destroys the tracked client sockets and closes the listening server, while the outbound HTTP connection remains open. A streaming response can remain blocked indefinitely after its destination is destroyed.

    The worker retains sockets and upstream work after the container and proxy directory are gone. Repeated cancelled runs can accumulate connections, and those connections can prevent clean process termination. CONNECT upstreams are explicitly tracked; plain HTTP upstreams have neither equivalent tracking nor cancellation on downstream closure. Closing the listening server does not close its outbound client requests.

    static trace: Followed both forwarding branches through close() and the executor’s finally release. Existing HTTP tests consume the entire response before closing, so they do not exercise this failure.

  • Minimum fix: Track and destroy plain HTTP upstream sockets during proxy shutdown, and destroy the corresponding upstream request/response when its downstream client disconnects. Cover cancellation during an unfinished response.

F2: 🔴 Pass policy variables into production services

  • Required behavior: The advertised environment configuration must select and enforce restricted networking in the bundled production deployment.

  • Evidence: docker-compose.prod.yml, services.worker.environment and services.api.environment.

    1. An operator sets AGENT_NETWORK_MODE=restricted and AGENT_NETWORK_MODE_ENFORCED=true in the deployment environment or Compose .env, with no stored overrides.
    2. Production Compose forwards only explicitly listed variables; neither service has an env_file, and neither environment block includes these policy variables or AGENT_NETWORK_ALLOW.
    3. The worker resolves its absent variables to open and false, then launches ordinary bridge-network containers. The API also reports the wrong environment defaults.

    This silently leaves networking unrestricted despite the operator’s configuration. The strict database reader cannot prevent it: absent stored overrides legitimately defer to the worker’s environment, where the requested values never arrive.

    static trace: Compared the complete production Compose environment blocks with resolveInstanceNetworkPolicyEnvDefault() and the new configuration documentation. Development Compose has an env_file; production Compose does not.

  • Minimum fix: Forward all three AGENT_NETWORK_* variables, with consistent defaults, to the production worker and API.

F3: 🔴 Preserve active proxies during sweeping

  • Required behavior: Orphan cleanup must preserve proxies belonging to active container executions.

  • Evidence: packages/core/src/network/egressExecution.ts, sweepOrphanedEgressProxies, the orphaned expression.

    1. An operator configures an agent execution timeout above 48 hours, and a restricted run remains active beyond that threshold.
    2. Its socket directory receives no periodic timestamp updates, although its ID remains in ownedDirectories.
    3. The periodic sweep evaluates the directory-age condition as true and removes the directory, regardless of its active ownership.
    4. Subsequent connections from the container’s bridge fail because proxy.sock has been unlinked, interrupting a still-authorized run.

    The ownership and process-liveness checks cannot protect this case because they are alternatives to the unconditional age test. The supplied runtime context exposes configurable execution timeouts; the implementation does not impose a 48-hour maximum.

    static trace: Followed directory creation, ownership registration, periodic sweeping, and release. The added sweep test verifies age-based deletion but does not cover an aged directory currently owned by an active proxy.

  • Minimum fix: Exclude actively owned directories before applying age-based cleanup. For other workers, use refreshed activity evidence or verified owner death so age does not delete a live proxy.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise actual agent connectivity

The Docker smoke test checks curl and is skipped without explicit image configuration. A follow-up compatibility test for each supported agent’s provider traffic would strengthen the support claims, particularly across HTTP and WebSocket transports. This is optional additional validation; the supplied code does not establish an agent-specific connectivity defect.

S2: 🟢 Align schema hostname validation

The editor schema accepts values such as example or example.com:70000 that runtime validation rejects. Tightening the schema and extending parity cases would improve authoring feedback. Runtime validation already rejects these entries before execution, so this is non-blocking.

Score

The isolation approach and integration are substantial, but lifecycle defects and a deployment configuration gap remain. The skipped checks provide no execution evidence to offset those findings.

Score: 5/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 20s
  • Tokens: 95,025 (92,687 in / 2,338 out)
  • Cost: $0.91

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 F2 F3 S1 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 35c3218

Addressed 1 AI review comment (IDs: 6026054095)

Addressed findings F1, F2, F3

Summary of Changes

I fixed all three findings. Each regression test fails on the old code and passes with the fix. The two core test files pass (15/15), the new Compose contract test passes, and the core typecheck passes. I didn't run the full repository suite, and as before there was no real agent container to run against.

F1 – plain HTTP upstream connections (packages/core/src/network/egressProxy.ts)

  • The upstream socket for a plain HTTP request is now tracked the same way as CONNECT upstreams, so close() destroys it.
  • If the container's client disconnects before the response finishes, the proxy now cancels the upstream request.
  • New test in packages/core/test/egressProxy.test.ts: an upstream server sends one chunk and never finishes. The test checks that the upstream connection closes both when the client disconnects and when the proxy is closed mid-response. The client-disconnect case is the one that fails on the old code. The proxy-close case already passed before the fix, because closing the client's socket now also cancels the upstream.

F2 – production Compose (docker-compose.prod.yml)

  • Both worker and api now forward AGENT_NETWORK_MODE (default open), AGENT_NETWORK_MODE_ENFORCED (default false) and AGENT_NETWORK_ALLOW (default empty). These defaults match the configuration reference.
  • New test test/agentNetworkDeploymentContract.test.mjs checks each service's block separately, following the pattern of the existing Web Push contract test.

F3 – sweeping active proxies (packages/core/src/network/egressExecution.ts)

  • The sweep now skips any directory this process still owns before it applies the age check.
  • Each sweep first resets the timestamp on this process's own directories. Workers on other hosts only have the age check to go on, so a live worker's directories now stay fresh however long its run lasts. Directories from dead or crashed workers still expire after 48 hours, as before.
  • Timing: a directory is marked as owned before it is created, and it stays marked until it has been removed. So a sweep running at the same time can't catch one half-made or half-released.
  • New test in packages/core/test/networkEgressExecution.test.ts: an active run's directory is backdated past 48 hours and then swept. The test checks that the socket is still there, that the timestamp was refreshed, and that releasing the run still removes the directory.

Separate finding, not fixed: running ESLint from packages/core reports no-useless-escape at egressProxy.ts:73 (the regex in parseAuthority). That line hasn't changed in this run, and the root lint script only covers src/, so it never sees this file.

This isn't a visual change, so there's no preview.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used; this task didn't need them.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 3m 47s
  • Tokens: 1,181,484 (1,171,363 in / 10,121 out)
  • Cost: $0.72

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…he old code and passes with the fix. The two core test files pass (15/15), the new Compose contract test passes, and the core typecheck passes. I didn't run the full repository suite, and as before there was no real agent container to run against.

I fixed all three findings. Each regression test fails on the old code and passes with the fix. The two core test files pass (15/15), the new Compose contract test passes, and the core typecheck passes. I didn't run the full repository suite, and as before there was no real agent container to run against.

**F1 – plain HTTP upstream connections** (`packages/core/src/network/egressProxy.ts`)
- The upstream socket for a plain HTTP request is now tracked the same way as CONNECT upstreams, so `close()` destroys it.
- If the container's client disconnects before the response finishes, the proxy now cancels the upstream request.
- New test in `packages/core/test/egressProxy.test.ts`: an upstream server sends one chunk and never finishes. The test checks that the upstream connection closes both when the client disconnects and when the proxy is closed mid-response. The client-disconnect case is the one that fails on the old code. The proxy-close case already passed before the fix, because closing the client's socket now also cancels the upstream.

**F2 – production Compose** (`docker-compose.prod.yml`)
- Both `worker` and `api` now forward `AGENT_NETWORK_MODE` (default `open`), `AGENT_NETWORK_MODE_ENFORCED` (default `false`) and `AGENT_NETWORK_ALLOW` (default empty). These defaults match the configuration reference.
- New test `test/agentNetworkDeploymentContract.test.mjs` checks each service's block separately, following the pattern of the existing Web Push contract test.

**F3 – sweeping active proxies** (`packages/core/src/network/egressExecution.ts`)
- The sweep now skips any directory this process still owns before it applies the age check.
- Each sweep first resets the timestamp on this process's own directories. Workers on other hosts only have the age check to go on, so a live worker's directories now stay fresh however long its run lasts. Directories from dead or crashed workers still expire after 48 hours, as before.
- Timing: a directory is marked as owned before it is created, and it stays marked until it has been removed. So a sweep running at the same time can't catch one half-made or half-released.
- New test in `packages/core/test/networkEgressExecution.test.ts`: an active run's directory is backdated past 48 hours and then swept. The test checks that the socket is still there, that the timestamp was refreshed, and that releasing the run still removes the directory.

**Separate finding, not fixed:** running ESLint from `packages/core` reports `no-useless-escape` at `egressProxy.ts:73` (the regex in `parseAuthority`). That line hasn't changed in this run, and the root `lint` script only covers `src/`, so it never sees this file.

This isn't a visual change, so there's no preview.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used; this task didn't need them.

PR: #2847
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements restricted egress through isolated container networking and a worker-side proxy, with settings and timeline reporting. It needs a localized correctness fix before merge.

✅ Network isolation — Supported restricted runs replace bridge networking with --network none, preventing direct connections from bypassing proxy settings.

✅ Policy precedence — Enforced instance restrictions override repository requests for open networking, and unsupported agents are refused under enforcement.

✅ Lifecycle integration — Proxy release runs in the Docker execution’s finally block, including execution failures.

No current-head check runs were reported. This review used static analysis only; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F4: 🔴 Derive upstream Host from the target URL

  • Required behavior: The new plain-HTTP proxy must forward requests to the allowlisted URL’s authority consistently, including the HTTP Host header.

  • Evidence: packages/core/src/network/egressProxy.ts, startEgressProxy HTTP handler — the outgoing headers retain request.headers.host.

    1. A client sends an absolute-form request targeting an allowed host, using the same http.request({ socketPath, path: absoluteUrl }) pattern introduced in packages/core/test/egressProxy.test.ts.
    2. The proxy validates the URL hostname and connects to that hostname, but forwards the client’s independently supplied Host header unchanged.
    3. If that header names the proxy or another virtual host, an upstream that routes by Host serves the wrong site or rejects the request despite the intended destination being allowed.

    The allowlist validates the connection target only; it does not correct the forwarded authority. The added HTTP test checks the path and removal of proxy credentials but its upstream ignores Host, so it misses this failure. static trace: the header-copy operation feeds http.request without replacing Host. proposed regression: use an upstream that accepts only the absolute URL’s authority and assert successful forwarding even when the incoming Host differs.

  • Minimum fix: Replace the outgoing Host header with the parsed target URL’s authority, including any non-default port, and add a virtual-host routing regression test.

Suggestions

These are optional follow-ups and are not sent to /fix.

S3: 🟢 Verify provider traffic through the proxy

The optional container smoke test exercises curl, while four agent CLIs are declared supported. Add compatibility coverage that exercises their actual provider transports, particularly streaming connections. This would strengthen the support claims; it is optional because the supplied code does not establish a specific provider failure.

Score

The isolation approach, policy handling, and tests are substantial, but plain-HTTP authority forwarding needs correction. Runtime validation remains unconfirmed because no current-head checks were reported and this review was static.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 4s
  • Tokens: 97,144 (95,510 in / 1,634 out)
  • Cost: $0.93

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F4 S3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit e52ace7

Addressed 1 AI review comment (IDs: 6026170993)

Addressed finding F4

Summary of Changes

I fixed F4: the proxy now sends the target URL's host and port as the Host header for plain-HTTP requests, instead of passing on whatever Host the client sent.

The fix (packages/core/src/network/egressProxy.ts:124): after the hop-by-hop headers are removed, the outgoing headers set host = url.host, where url is the address that was checked against the allowlist. url.host keeps a non-default port (vhost.example.com:8080) and drops the default port 80. So the proxy now connects to, and names, the same allowlisted site.

Regression test (packages/core/test/egressProxy.test.ts): the new test uses an upstream that routes by Host. It returns 421 for any Host other than the expected one. The client sends a wrong Host (proxy.invalid, other.example.org), and the test checks the request still reaches the right site in two cases:

  • with a non-default port, where Host must be vhost.example.com:<port>.
  • with the default port, where Host must be vhost.example.com.

Verification:

  • The new test fails on the old code: with the fix commented out, it is the only failure (8 passed, 1 failed).
  • With the fix, all 9 tests in the proxy test file pass.
  • The core typecheck passes.

Same-defect check: among the files this PR changes, this is the only place that forwards HTTP headers. CONNECT tunnels copy raw bytes and never rewrite headers, so they don't have this problem. I found nothing else outside F4's scope to report.

There are no visual changes, so I made no previews.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used. This task didn't need them.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 2m 30s
  • Tokens: 282,756 (279,694 in / 3,062 out)
  • Cost: $0.25

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…ort as the Host header for plain-HTTP requests, instead of passing on whatever Host the client sent.

I fixed F4: the proxy now sends the target URL's host and port as the Host header for plain-HTTP requests, instead of passing on whatever Host the client sent.

**The fix** (`packages/core/src/network/egressProxy.ts:124`): after the hop-by-hop headers are removed, the outgoing headers set `host = url.host`, where `url` is the address that was checked against the allowlist. `url.host` keeps a non-default port (`vhost.example.com:8080`) and drops the default port 80. So the proxy now connects to, and names, the same allowlisted site.

**Regression test** (`packages/core/test/egressProxy.test.ts`): the new test uses an upstream that routes by Host. It returns 421 for any Host other than the expected one. The client sends a wrong Host (`proxy.invalid`, `other.example.org`), and the test checks the request still reaches the right site in two cases:
- with a non-default port, where Host must be `vhost.example.com:<port>`.
- with the default port, where Host must be `vhost.example.com`.

**Verification:**
- The new test fails on the old code: with the fix commented out, it is the only failure (8 passed, 1 failed).
- With the fix, all 9 tests in the proxy test file pass.
- The core typecheck passes.

**Same-defect check:** among the files this PR changes, this is the only place that forwards HTTP headers. CONNECT tunnels copy raw bytes and never rewrite headers, so they don't have this problem. I found nothing else outside F4's scope to report.

There are no visual changes, so I made no previews.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used. This task didn't need them.

PR: #2847
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements restricted egress using isolated container networking and a worker-side Unix-socket proxy, with configuration, lifecycle management, and timeline reporting. Based on the supplied code, it is merge-ready within the documented scope; no verified merge blocker was found. No current-head checks were reported, and this review was static only.

✅ Network isolation — Supported restricted containers receive --network none; the mounted proxy checks destination hosts and ports before opening upstream connections.

✅ Explicit enforcement — Enforced restricted mode overrides repository requests for open networking and refuses unsupported agents, recording the refusal.

✅ Lifecycle and observability — The executor releases proxies in finally, while shared per-run statistics retain denial counts across containers and attach reports to failed executions.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S4: 🟢 Exercise actual agent connectivity

The container smoke test runs curl through a wrapper identified as Claude. It verifies the isolation mechanism, but does not exercise provider requests from the four CLIs marked supported in packages/core/src/network/egressAllowlist.ts. Optional integration coverage for their actual transports—including Codex’s configured WebSocket transport—would strengthen those compatibility claims. The supplied code does not establish a specific compatibility failure.

S5: 🟢 Align schema hostname validation

The pattern in docs/static/schemas/repository-workflow.schema.json accepts entries such as localhost, -bad.example.com, and example.com:70000, which parseEgressAllowEntry rejects. Tightening the editor schema and adding parity cases would give repository authors earlier feedback. This is optional because runtime validation already rejects these entries before execution, preserving the network boundary.

Score

The implementation has coherent isolation, enforcement, cleanup, and reporting paths, with substantial targeted test coverage in the diff. Actual test execution and provider compatibility remain unverified in this static review; no current-head check failure or actionable defect is established.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 21s
  • Tokens: 96,102 (94,366 in / 1,736 out)
  • Cost: $0.92

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S4 S5

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Oct 6, 2026
@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Local verification on head e52ace7 (clean npm ci, npm run test:prepare): root/api/cli/UI lint, build, root and UI typecheck, all 13 changed test files plus the executor live-output and watchdog suites, and the 18 UI tests pass.

Two packages/core lint findings will fail CI's zero-warning "Validate Changes" step; please fix them (no behaviour change):

  1. packages/core/src/claude/docker/dockerExecutor.ts — max-lines: 418 lines, limit 400. Move the network-egress wiring this PR added into a small helper module (e.g. next to dockerExecutionWatchdog.ts / dockerCostCap.ts, which did the same for their features) rather than raising the limit.
  2. packages/core/src/network/egressProxy.ts:73 — no-useless-escape: unnecessary \[ in the character class.

Run cd packages/core && npx eslint . --max-warnings 0 and confirm it is clean before pushing. The branch also needs a /merge from main (it is currently conflicting).

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f1bf018

Summary of Changes

I fixed both packages/core lint findings without changing behaviour. cd packages/core && npx eslint . --max-warnings 0 now passes with no errors or warnings. I couldn't merge main into the branch, so it still conflicts.

  1. max-lines in dockerExecutor.ts: I moved the network-egress wiring into a new helper module, packages/core/src/claude/docker/dockerNetworkPolicy.ts, next to dockerCostCap.ts and dockerExecutionWatchdog.ts. Its one function, startWithNetworkPolicy, takes a callback that starts the container. That way it doesn't import dockerExecutor.ts back. The executor's two call sites now use it. The logic is the same as before: it starts the per-run proxy when the run needs one, checks for an abort, swaps in the rewritten docker run arguments, and shuts the proxy down in a finally block. The limit is unchanged.
  2. no-useless-escape in egressProxy.ts:73: I removed the \[ escape from the character class: /^([^:[\]]+):(\d+)$/. It matches exactly the same input.

The core typecheck (tsc --noEmit) also passes. The five tests that cover this code passed (40/40): egressProxy, networkEgressExecution, dockerExecutorLiveOutput, dockerExecutorWatchdog and networkEgressTimeline. I didn't run the full suite.

Merge from main: git in this workspace is read-only (fetching failed with Read-only file system). Please run /merge on the PR. The files changed on main don't include dockerExecutor.ts or egressProxy.ts, so this fix shouldn't add to the conflict.

There's nothing visual to preview, so I didn't create one.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 2m 58s
  • Tokens: 277,900 (275,085 in / 2,815 out)
  • Cost: $0.24
  • Subscription usage: Session +2%, Fable +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6026336169✓

… behaviour. `cd packages/core && npx eslint . --max-warnings 0` now passes with no errors or warnings. I couldn't merge `main` into the branch, so it still conflicts.

I fixed both `packages/core` lint findings without changing behaviour. `cd packages/core && npx eslint . --max-warnings 0` now passes with no errors or warnings. I couldn't merge `main` into the branch, so it still conflicts.

1. **`max-lines` in `dockerExecutor.ts`:** I moved the network-egress wiring into a new helper module, `packages/core/src/claude/docker/dockerNetworkPolicy.ts`, next to `dockerCostCap.ts` and `dockerExecutionWatchdog.ts`. Its one function, `startWithNetworkPolicy`, takes a callback that starts the container. That way it doesn't import `dockerExecutor.ts` back. The executor's two call sites now use it. The logic is the same as before: it starts the per-run proxy when the run needs one, checks for an abort, swaps in the rewritten `docker run` arguments, and shuts the proxy down in a `finally` block. The limit is unchanged.
2. **`no-useless-escape` in `egressProxy.ts:73`:** I removed the `\[` escape from the character class: `/^([^:[\]]+):(\d+)$/`. It matches exactly the same input.

The core typecheck (`tsc --noEmit`) also passes. The five tests that cover this code passed (40/40): `egressProxy`, `networkEgressExecution`, `dockerExecutorLiveOutput`, `dockerExecutorWatchdog` and `networkEgressTimeline`. I didn't run the full suite.

**Merge from `main`:** git in this workspace is read-only (fetching failed with `Read-only file system`). Please run `/merge` on the PR. The files changed on `main` don't include `dockerExecutor.ts` or `egressProxy.ts`, so this fix shouldn't add to the conflict.

There's nothing visual to preview, so I didn't create one.

PR: #2847
Comment by: @integry (ID: 6026336169)
Model: Claude Opus 5.5
@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 2743/claude-opus-5-5-restricted-network-egress-20261006-2103-yel in commit 38a0fa1

Conflicting Files

  • packages/api/mcp/toolsManagement.ts

Resolution Summary

I resolved the merge conflict. packages/api/mcp/toolsManagement.ts was the only file with conflict markers, and none are left anywhere in the repo.

What the conflict was about: both branches had changed the same one-line settingsShape definition, which sets which instance settings the get_execution_settings and update_execution_settings MCP tools accept.

  • This PR added three settings for restricted network mode:
    • agent_network_mode: open or restricted
    • agent_network_mode_enforced: whether repositories are blocked from opting back into open mode
    • agent_network_allow: extra hostnames restricted runs may reach
  • main added a .describe(...) to auto_resolve_merge_conflicts. It explains that this is the instance default, and that a repository's autoResolveMergeConflicts setting overrides it.

How I resolved it: I kept the PR's version of the line, including the three new settings, and added main's description to auto_resolve_merge_conflicts. Nothing else in the file changed. The rest of main's merge-conflict auto-resolve work around it (imports, get_repository_configuration, update_repository_configuration) had already merged cleanly.

Why: the two changes touched different fields and don't conflict in meaning. Taking either side whole would have lost something real: the network-mode settings from the PR, or the description from main.

Checks:

  • packages/api typecheck (tsc --noEmit) passes.
  • settingsCatalog.test.ts and mcpRepositoryAutoResolve.test.ts pass, 8 of 8 tests. These are the tests that cover this schema. They only run with PROPR_DEMO_MODE=true, because without GitHub credentials the test file exits at startup.
  • I didn't run the full test suite.

The Gmail, Google Calendar and Google Drive connectors need authorizing in your claude.ai connector settings before they can be used. This task didn't need them.


🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 3m 48s

View Task Execution


System-triggered merge conflict resolution

…ed-network-egress-20261006-2103-yel

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/api/mcp/toolsManagement.ts

PR: #2847
Model: Claude Opus 5.5
@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 2743/claude-opus-5-5-restricted-network-egress-20261006-2103-yel in commit a7e7b63

Conflicting Files

  • CHANGELOG.md
  • packages/api/mcp/toolsManagement.ts
  • propr-ui/src/components/TaskDetails/TaskStatusTable.test.tsx
  • propr-ui/src/pages/SettingsPage/parseLoadedData.ts

Resolution Summary

All four conflicts are resolved and no conflict markers remain anywhere in the repo. While checking, I also found and fixed a fifth problem that git merged without flagging. Typecheck passes for the root, packages/api, core, shared, cli and propr-ui. The TaskDetails and SettingsPage UI tests pass (342/342).

The conflicts all came from the same cause: this PR adds restricted network egress, and main added automatic replacement runs. Both appended new code in the same places, so the right fix each time was to keep both sides.

  1. CHANGELOG.md: Both branches added a new entry at the same spot under [Unreleased] → Added. I kept both, with the PR's "Restricted network egress" entry first and main's "Automatic replacement runs" entry after it.

  2. packages/api/mcp/toolsManagement.ts: Both branches extended the same one-line settingsShape object. The PR added agent_network_mode, agent_network_mode_enforced and agent_network_allow; main added max_provider_replacements. I kept the PR's line and appended main's field, so the MCP get_execution_settings and update_execution_settings tools accept all four. The MAX_PROVIDER_REPLACEMENTS_LIMIT import from main was already merged in.

  3. propr-ui/src/pages/SettingsPage/parseLoadedData.ts: Both branches added helper functions after watchdogOverride. The PR added parseAllowlistDraft and networkOverrides; main added providerReplacements. They don't depend on each other, so I kept all three.

  4. propr-ui/src/components/TaskDetails/TaskStatusTable.test.tsx: Both branches added a new describe block at the end of the file. I kept both as separate blocks: the PR's "network egress events" and main's "TaskStatusTable replacement events". Main's tests use the file-level at() helper and the PR's block has its own local at(), so both still get the timestamps they expect.

  5. propr-ui/src/components/TaskDetails/TaskStatusTable.tsx (not on the conflict list): Git merged this file without a conflict, but both branches had added their own getEventLabel function, so the merged file declared it twice and the UI typecheck failed. I combined them into one function that checks in this order:

    • main's replacement-event labels.
    • repository-capacity waits.
    • the spend cap.
    • the PR's network-egress label.

    That keeps main's replacement labels and the PR's "Restricted Network…" rows working together. The UI tests for both features pass.

I couldn't run git add because the worktree's git index is on a read-only filesystem. So git status still lists the four files as unmerged even though their contents are resolved.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used. This task didn't need them.


🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 6m 17s

View Task Execution


System-triggered merge conflict resolution

…ed-network-egress-20261006-2103-yel

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md
- packages/api/mcp/toolsManagement.ts
- propr-ui/src/components/TaskDetails/TaskStatusTable.test.tsx
- propr-ui/src/pages/SettingsPage/parseLoadedData.ts

PR: #2847
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

packages/core/test/egressProxy.test.ts:89 — Incomplete URL substring sanitization
'api.anthropic.com' can be anywhere in the URL, and arbitrary hosts may come before or after it.

packages/core/test/egressProxy.test.ts:90 — Incomplete URL substring sanitization
'api.openai.com' can be anywhere in the URL, and arbitrary hosts may come before or after it.

packages/core/test/egressProxy.test.ts:139 — Reflected cross-site scripting
Cross-site scripting vulnerability due to a user-provided value.

@integry

integry commented Oct 7, 2026

Copy link
Copy Markdown
Owner

/review fable astra

@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 2 reviews:

View Task Details

@propr-dev

propr-dev Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — fable

Overall Evaluation

This PR implements issue #2743: a per-run, per-container HTTP/CONNECT allowlist proxy on the worker, reached from a --network none agent container through a bind-mounted Unix socket and an in-container loopback bridge, with instance/repository policy resolution, enforcement, settings/CLI/MCP surfaces, a timeline event, a sweeper for orphaned socket directories, and Docker-gated smoke tests that CI now runs. The old never-executed init-firewall.sh is removed. The approach matches the issue's "no privileged containers" requirement, and the implementation is unusually careful about the places where a proxy running from the worker's network position could be abused.

All current-head checks pass, including the new "Restricted network container smoke" job that runs real agent CLIs (Claude, Codex WebSocket/SSE, OpenCode, Vibe) behind the proxy. I traced the executor, native-goal spawn, review, goal and indexing entry points, proxy lifecycle on success/abort/timeout/spawn failure, and the sweeper's ownership rules, and found no demonstrable regression. The PR is merge-ready within scope; the items below are follow-ups.

✅ Private-address boundary is correct and tested — packages/core/src/network/egressProxy.ts resolves on the worker, refuses any allowed name that resolves to a loopback/RFC1918/CGNAT/link-local/IPv4-mapped address, connects to the vetted address (no second lookup), and only an instance IP-literal entry (instanceAllow) can open one; repository entries never can. egressProxyAddressPolicy.test.ts and networkEgressPolicyCoverage.test.ts cover the distinction end to end through a real socket.

✅ Proxy lifetime is bound to the container on every path — dockerNetworkPolicy.ts releases in finally for executeDockerCommand, on close (which Node also emits after a failed spawn) for direct spawn, on abort won during proxy startup, and startEgressProxySweeper + closeAllEgressProxies handle shutdown and dead-owner directories with PID-namespace-aware ownership rather than hostname alone.

✅ Fail-closed where it matters — loadInstanceNetworkPolicy uses getConfigStrict, an unreadable enforced policy fails the container rather than opening it (resolveUnscopedNetworkPolicy), and a missing socket mount leaves the container with no network and a clear stderr message instead of silently falling back.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S23: 🟢 Non-enforced restricted mode leaves unscoped agent launches open

src/jobs/repositoryWorkflow.ts:355 applies runWithNetworkPolicy only inside runRepositoryWorkflow, and the safety net in packages/core/src/network/egressExecution.ts (resolveUnscopedNetworkPolicy) deliberately returns a policy only when source === 'instance_enforced' (the coverage test asserts "a non-enforced default does not reach code paths outside a run"). src/jobs/prCommentAgentUtils.ts:332 calls execute() directly when params.applyRepositoryWorkflow is false, so any PR-comment path that takes that branch runs its agent container with open networking and no timeline record whenever the instance mode is restricted but not enforced. I could not verify which jobs pass applyRepositoryWorkflow: false, so this stays a follow-up, but the docs currently claim all PR comment commands are covered. A localized fix is to have the unscoped resolver apply the instance policy whenever policy.mode === 'restricted' (not only when enforced), or to wrap the execute() branch in prCommentAgentUtils with runWithNetworkPolicy({ taskId, correlatedLogger }).

S24: 🟢 Verify indexing summarization containers carry the wrapper

src/indexing_worker.ts wraps indexRepo in runWithNetworkPolicy, and the docs/CHANGELOG say summarization is covered. Inside a restricted scope, prepareDockerRunNetwork falls back (or, when enforced, throws NetworkPolicyError) for any docker run that lacks PROPR_AGENT_TYPE or --entrypoint … -lc. If summarization containers are started without wrapDockerRunArgsWithRepoSetup, an enforcing instance would refuse every indexing job, and a non-enforced one would silently summarize over the open network. The supplied context does not show the summarization launch path, so I could not confirm either way; a unit test asserting report.restrictedContainers === 1 for a summarization invocation would close the question.

S25: 🟢 executeWithNetworkPolicy assumes rejections are objects

packages/core/src/network/egressExecution.ts does (error as {...}).networkEgressReport = report() in the catch. In strict-mode ESM, assigning a property to a primitive or undefined rejection throws a TypeError, which would replace the original failure. Guarding with if (error && typeof error === 'object') is trivial; no current caller is known to reject with a primitive, so this is hardening only.

S26: 🟢 Transient settings-DB errors now fail every agent run

loadInstanceNetworkPolicy is read for every run via getConfigStrict, so a brief SQLite lock or I/O error (which the codebase otherwise retries in places) fails the issue/review/goal/indexing job before any container starts. Fail-closed is the right default; wrapping the read in the existing bounded SQLite retry would keep the guarantee while avoiding spurious job failures.

S27: 🟢 Allowlist textarea has no client-side validation

AgentNetworkSettingsSection.tsx commits whatever parseAllowlistDraft produces; an entry such as * or example is rejected by the API (validateAgentNetworkSetting), but handleAgentRunSettingChange has already stored the invalid array in local state, so the draft resyncs to it and later saves of unrelated settings resend the invalid list. Reusing parseEgressAllowEntry's rules (or a shared regex from the JSON schema) in the UI before committing would avoid that stuck state.

S28: 🟢 iptables is still installed in the agent image

Dockerfile.agent keeps IPTABLES_VERSION_PREFIX and installs iptables although init-firewall.sh, its only consumer, is removed. Dropping it would shrink the image slightly; it is left as-is presumably to avoid churning the bundle hash in this PR.

S29: 🟢 NAT64 prefix is not treated as non-public

isNonPublicAddress covers mapped (::ffff:) and compatible (::/96) forms, but not the well-known NAT64 prefix 64:ff9b::/96. On a worker behind NAT64, an allowed name resolving to 64:ff9b::7f00:1 or 64:ff9b::a00:1 would not be caught by the private-address rule. Adding that subnet to the block list is a one-line hardening.

Score

The implementation fulfils the issue's requirements without privileged containers, the security boundaries I could trace are correct and well tested, all checks including the new real-container smoke job pass, and the remaining items are verification gaps or hardening rather than demonstrated regressions.

Score: 8/10


🤖 Review Details

  • Model: Claude Fable 5.1
  • Time: 6m 54s
  • Tokens: 225,324 (194,166 in / 31,158 out)
  • Cost: $3.98

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S23 S24 S25 S26 S27 S28 S29

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The PR implements restricted egress through isolated container networking and worker-side proxies, with substantial configuration, reporting, and test coverage. It needs a localized connectivity correction before merge.

✅ Network isolation — Restricted containers use --network none; the mounted proxy socket provides controlled outbound access without additional capabilities.

✅ Address checks — Direct connections use vetted DNS results, and repository allowlist entries cannot independently authorize private addresses.

✅ Integration coverage — Tests cover policy precedence, cleanup, cancellation, native sessions, and real container/provider transports. The supplied current-head checks report no failures.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F7: 🔴 Try alternate vetted DNS addresses

  • Required behavior: Introducing restricted networking must preserve connectivity to allowed providers when a usable DNS address exists, including ordinary dual-stack deployments.

  • Evidence: packages/core/src/network/egressProxy.ts, route() and the direct HTTP/CONNECT connection paths.

    1. An allowed hostname resolves to multiple public addresses, with an IPv6 address first and a reachable IPv4 address afterward. The worker has no working outbound IPv6 route.
    2. route() validates every address but returns only addresses[0].address for a direct connection.
    3. Both HTTP forwarding and CONNECT call connect() with that single IP literal. The default net.connect therefore receives no hostname from which to discover or try the alternate family.
    4. The IPv6 connection fails or reaches the handshake deadline, and the proxy returns 502/504 despite the allowed service being reachable over IPv4. Provider requests can consequently fail throughout a restricted run.

    The private-address validation and handshake timeout do not provide address fallback. Retrying the request repeats the same first-address selection when DNS ordering remains stable. The supplied proxy tests use singleton successful DNS answers, so they do not exercise this case.

    static trace: Verified from the supplied defaultLookup, route(), default connect, and both forwarding branches; no commands were run. proposed regression: Return an unreachable public IPv6 address followed by a reachable public IPv4 address and verify successful HTTP and CONNECT forwarding.

  • Minimum fix: Retain the vetted address set and attempt alternate addresses or families within a bounded connection deadline in both direct forwarding paths. Preserve the existing private-address rejection and avoid an unchecked second DNS lookup.

Suggestions

These are optional follow-ups and are not sent to /fix.

S30: 🟢 Log indexing upstream failures

In src/jobs/networkEgress.ts, the report logging condition for runs without a task checks denials, fallbacks, and refusals, but omits failedConnections. Including it would make upstream proxy failures visible for indexing, as the new documentation describes. This is an optional diagnostic improvement; the connection itself already fails and its statistics are recorded.

S31: 🟢 Allow an explicit empty override

The settings UI converts an empty allowlist draft to null, although the policy resolver distinguishes [] from null: an empty array removes environment-provided additions, while null restores them. An explicit “use environment default” control would let dashboard users express both supported states. CLI/API users can already supply an empty list, so this is a usability follow-up.

Score

The implementation and passing checks provide strong coverage, but selecting only the first DNS address introduces an availability regression for restricted runs. The required correction is localized.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 2m 5s
  • Tokens: 130,051 (127,764 in / 2,287 out)
  • Cost: $1.33

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F7 S30 S31

🤖 Review by ProPR

@integry

integry commented Oct 7, 2026

Copy link
Copy Markdown
Owner

/fix all

@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 0993912

Addressed 2 AI review comments (IDs: 6038251310, 6038287578)

Addressed finding F7 · suggestions S23, S24, S25, S26, S27, S28, S29, S30, S31

Summary of Changes

I've applied F7 and S23–S31. The new F7 tests fail on the old proxy code and pass on the new. About 200 affected tests pass, but the 7 Docker tests skip here (the provider-egress and container-smoke suites), so none of this has run against a real agent container. Lint and typecheck are clean for core, root and UI, except one complexity warning in core's dockerResultProcessor.ts that was already there.

F7 – trying alternate DNS addresses

  • For a direct connection, the proxy now keeps every address it vetted, not just the first. A new egressConnect.ts tries them in turn for both HTTP and CONNECT. It alternates IPv6 and IPv4, starts the next attempt after 250 ms if the current one hasn't connected (or at once if it fails), and keeps the existing 30 s overall deadline.
  • It dials only the vetted addresses, with no second DNS lookup, and the private-address rejection is unchanged. It also won't dial another address once the proxy is shutting down.
  • New tests: an IPv6 address that is refused, or never answers, followed by a working IPv4 address now succeeds for both CONNECT and HTTP. Every address failing still gives a 502, and addresses that never answer still give a 504 at the deadline.
  • I checked for the same first-address shortcut elsewhere and found none; this is the only DNS lookup in the network code.

Suggestions

  • S23: the PR-comment path that skips the repository workflow now runs under runWithNetworkPolicy, using the repository's network settings and recording a timeline event. Nothing in production takes that path today (the only caller always uses the workflow), so this is hardening. Its test file had no settings database, so the test now stubs the policy and checks that the run is wrapped.
  • S24: confirmed with no code change. All five agents build their summarization containers through the ProPR wrapper. A new test shows Claude, Codex and OpenCode summarization containers each count as one restricted container, and an enforcing instance doesn't refuse them.
  • S25: a run that fails with a non-object value (a string, number, null or undefined) is now rethrown unchanged instead of turning into a TypeError.
  • S26: the four network-setting reads are now retried together while the database is locked, within one time budget. Each database query was already retried on a lock, so this mainly puts the four reads under one shared limit. Other errors, such as disk I/O, still fail the run, so it still fails closed.
  • S27: the settings page now checks allowlist entries before saving. An entry the API would reject stays in the box with a red "Not saved" reason. The checker is a browser copy of the API's rules, and a new parity test checks both give the same answers on about 40 entries.
  • S28: iptables is no longer installed in the agent image. I also removed it from NOTICE, THIRD_PARTY_LICENSES.md and generate-notices.sh, and added a test that the agent Dockerfile doesn't install it. This changes the agent image's contents.
  • S29: I did not block the whole 64:ff9b::/96 range as the suggestion proposed. Workers on IPv6-only networks reach every IPv4 site through addresses in that range, so blocking it would cut them off from all providers. Instead the proxy reads the IPv4 address inside a NAT64 address and blocks it only when that IPv4 address is private.
  • S30: indexing runs without a task now log failed upstream connections too. A new test fails without this change.
  • S31: a new "Allowed hosts list" setting chooses between the environment default and a custom list. An empty custom list is saved as [] and adds no hosts. One change in behaviour: clearing the box while a custom list is selected now saves an empty list rather than going back to the default. I captured preview screenshots of the default, invalid-entry and empty-custom-list states.

I updated execution-safety.md and the CHANGELOG to match. I found nothing new that needs a separate report.

Visual preview

Allowed hosts: environment default

Allowed hosts: environment default

Settings → Automation → Agent network with no stored list: the new Allowed hosts list control shows the environment default (2 hosts), whose hosts appear as the textarea placeholder.

Original unavailable: managed storage is unavailable or the upload has expired.

Explicit empty custom list

Explicit empty custom list

A stored empty list ([]) is shown as a Custom list, distinct from the environment default.

Original unavailable: managed storage is unavailable or the upload has expired.

Invalid allowlist entry kept unsaved

Invalid allowlist entry kept unsaved

An entry the API would reject ("*") stays in the draft with a red "Not saved" reason instead of being committed.

Original unavailable: managed storage is unavailable or the upload has expired.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 19m 36s
  • Tokens: 13,872,626 (13,809,638 in / 62,988 out)
  • Cost: $4.88
  • Subscription usage: Session +2%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6038358625✓

…ld proxy code and pass on the new. About 200 affected tests pass, but the 7 Docker tests skip here (the provider-egress and container-smoke suites), so none of this has run against a real agent container. Lint and typecheck are clean for core, root and UI, except one complexity warning in core's `dockerResultProcessor.ts` that was already there.

I've applied F7 and S23–S31. The new F7 tests fail on the old proxy code and pass on the new. About 200 affected tests pass, but the 7 Docker tests skip here (the provider-egress and container-smoke suites), so none of this has run against a real agent container. Lint and typecheck are clean for core, root and UI, except one complexity warning in core's `dockerResultProcessor.ts` that was already there.

**F7 – trying alternate DNS addresses**
- For a direct connection, the proxy now keeps every address it vetted, not just the first. A new `egressConnect.ts` tries them in turn for both HTTP and CONNECT. It alternates IPv6 and IPv4, starts the next attempt after 250 ms if the current one hasn't connected (or at once if it fails), and keeps the existing 30 s overall deadline.
- It dials only the vetted addresses, with no second DNS lookup, and the private-address rejection is unchanged. It also won't dial another address once the proxy is shutting down.
- New tests: an IPv6 address that is refused, or never answers, followed by a working IPv4 address now succeeds for both CONNECT and HTTP. Every address failing still gives a 502, and addresses that never answer still give a 504 at the deadline.
- I checked for the same first-address shortcut elsewhere and found none; this is the only DNS lookup in the network code.

**Suggestions**
- **S23:** the PR-comment path that skips the repository workflow now runs under `runWithNetworkPolicy`, using the repository's network settings and recording a timeline event. Nothing in production takes that path today (the only caller always uses the workflow), so this is hardening. Its test file had no settings database, so the test now stubs the policy and checks that the run is wrapped.
- **S24:** confirmed with no code change. All five agents build their summarization containers through the ProPR wrapper. A new test shows Claude, Codex and OpenCode summarization containers each count as one restricted container, and an enforcing instance doesn't refuse them.
- **S25:** a run that fails with a non-object value (a string, number, `null` or `undefined`) is now rethrown unchanged instead of turning into a `TypeError`.
- **S26:** the four network-setting reads are now retried together while the database is locked, within one time budget. Each database query was already retried on a lock, so this mainly puts the four reads under one shared limit. Other errors, such as disk I/O, still fail the run, so it still fails closed.
- **S27:** the settings page now checks allowlist entries before saving. An entry the API would reject stays in the box with a red "Not saved" reason. The checker is a browser copy of the API's rules, and a new parity test checks both give the same answers on about 40 entries.
- **S28:** `iptables` is no longer installed in the agent image. I also removed it from `NOTICE`, `THIRD_PARTY_LICENSES.md` and `generate-notices.sh`, and added a test that the agent Dockerfile doesn't install it. This changes the agent image's contents.
- **S29:** I did not block the whole `64:ff9b::/96` range as the suggestion proposed. Workers on IPv6-only networks reach every IPv4 site through addresses in that range, so blocking it would cut them off from all providers. Instead the proxy reads the IPv4 address inside a NAT64 address and blocks it only when that IPv4 address is private.
- **S30:** indexing runs without a task now log failed upstream connections too. A new test fails without this change.
- **S31:** a new "Allowed hosts list" setting chooses between the environment default and a custom list. An empty custom list is saved as `[]` and adds no hosts. One change in behaviour: clearing the box while a custom list is selected now saves an empty list rather than going back to the default. I captured preview screenshots of the default, invalid-entry and empty-custom-list states.

I updated `execution-safety.md` and the CHANGELOG to match. I found nothing new that needs a separate report.

PR: #2847
Comment by: @integry (ID: 6038358625)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

packages/core/src/network/egressProxy.ts:149 — Polynomial regular expression used on uncontrolled data
This regular expression that depends on library input may run slow on strings with many repetitions of '0'.

@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 7692324

Summary of Changes

I removed the regular expression CodeQL flagged in embeddedIpv4 (packages/core/src/network/egressProxy.ts:148).

The problem: /(\d+\.\d+\.\d+\.\d+)$/ isn't anchored at the start. On a long run of digits, the regex engine retries from every starting position, which makes it slow (polynomial time).

The fix: the function now takes the part after the last :. If that part contains a ., it is the dotted IPv4 address and is returned as is. Otherwise the existing hex-group path is used. This only runs on strings that net.isIP has already accepted as IPv6, and there the dotted form can only be the last segment, so the result is the same.

Checks:

  • The two egress proxy test files (egressProxyAddressPolicy and egressProxy) pass, 21 tests. They already cover NAT64 addresses in both the dotted and hex forms.
  • ESLint on the file is clean.
  • I also ran a few addresses by hand, including a long run of zeros. Private embedded addresses (64:ff9b::10.0.0.1, 64:ff9b::a00:1, ::ffff:127.0.0.1) are still refused, and public ones (64:ff9b::8.8.8.8, 64:ff9b::808:808) are still allowed.

There is nothing visual in this change, so I made no previews.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used. This task didn't need them.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @github-advanced-security[bot]
  • Time: 2m 1s
  • Tokens: 176,116 (174,374 in / 1,742 out)
  • Cost: $0.20

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 4207376540✓

…dIpv4` (`packages/core/src/network/egressProxy.ts:148`).

I removed the regular expression CodeQL flagged in `embeddedIpv4` (`packages/core/src/network/egressProxy.ts:148`).

**The problem:** `/(\d+\.\d+\.\d+\.\d+)$/` isn't anchored at the start. On a long run of digits, the regex engine retries from every starting position, which makes it slow (polynomial time).

**The fix:** the function now takes the part after the last `:`. If that part contains a `.`, it is the dotted IPv4 address and is returned as is. Otherwise the existing hex-group path is used. This only runs on strings that `net.isIP` has already accepted as IPv6, and there the dotted form can only be the last segment, so the result is the same.

**Checks:**
- The two egress proxy test files (`egressProxyAddressPolicy` and `egressProxy`) pass, 21 tests. They already cover NAT64 addresses in both the dotted and hex forms.
- ESLint on the file is clean.
- I also ran a few addresses by hand, including a long run of zeros. Private embedded addresses (`64:ff9b::10.0.0.1`, `64:ff9b::a00:1`, `::ffff:127.0.0.1`) are still refused, and public ones (`64:ff9b::8.8.8.8`, `64:ff9b::808:808`) are still allowed.

There is nothing visual in this change, so I made no previews.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used. This task didn't need them.

PR: #2847
Comment by: @github-advanced-security[bot] (ID: 4207376540)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

There's nothing new to change. The current branch head (7692324) already fixes this CodeQL alert, and the failed run was on the earlier commit 0993912.

  • What CodeQL flagged: at 0993912, embeddedIpv4 in packages/core/src/network/egressProxy.ts used /(\d+\.\d+\.\d+\.\d+)$/. That pattern isn't anchored at the start, so on a long run of 0s the regex engine retries from every position, which is the slow behaviour the alert describes.
  • Current code: the function no longer uses a regex. It splits the address on : and takes the last part. If that part contains a ., it is returned as the dotted IPv4 address; otherwise the address is decoded from the last two hex groups (packages/core/src/network/egressProxy.ts:148).
  • Tests: the two egress proxy test files (egressProxy.test.ts and egressProxyAddressPolicy.test.ts) pass, 21 tests with no failures.
  • Other regexes in the PR: I listed every quantified regex the PR adds outside test files. Each one is anchored at the start, and none has the overlapping repetition that triggered this alert.

The CodeQL alert should clear once CodeQL runs on the current head. This doesn't change anything visual, so I made no previews.

The Gmail, Google Calendar and Google Drive connectors need to be authorized in your claude.ai connector settings before they can be used. This task didn't need them.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 2m 11s
  • Tokens: 164,140 (162,446 in / 1,694 out)
  • Cost: $0.19

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6038802613✓

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Test shard (shard 4).

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: success
  • Hosted native Electron units: success
  • Shard 1/4: passed in 291.5s on GitHub Actions 1000071676
  • Shard 2/4: passed in 340.3s on GitHub Actions 1000071674
  • Shard 3/4: passed in 456.0s on GitHub Actions 1000071673
  • Shard 4/4: failed during Test shard in 708.2s on GitHub Actions 1000071675
    • test/processMergeConflictJob.test.ts: exit 1
View shard 4/4 output
...(truncated)

y advances the epoch and removes deferred work
    ok 5 - manual invalidation atomically advances the epoch and removes deferred work
      ---
      duration_ms: 0.414224
      type: 'test'
      ...
    # Subtest: manual invalidation is idempotent per comment revision and a later edit fences newer automatic work
    ok 6 - manual invalidation is idempotent per comment revision and a later edit fences newer automatic work
      ---
      duration_ms: 0.603788
      type: 'test'
      ...
    # Subtest: automatic work detection covers active state and deferred transitions
    ok 7 - automatic work detection covers active state and deferred transitions
      ---
      duration_ms: 1.069972
      type: 'test'
      ...
    # Subtest: manual takeover makes stale active state invisible to later commands
    ok 8 - manual takeover makes stale active state invisible to later commands
      ---
      duration_ms: 0.293839
      type: 'test'
      ...
    # Subtest: a superseded action cannot restore its deferred record
    ok 9 - a superseded action cannot restore its deferred record
      ---
      duration_ms: 0.334805
      type: 'test'
      ...
    # Subtest: a stale continuation cannot delete deferred work from a newer epoch
    ok 10 - a stale continuation cannot delete deferred work from a newer epoch
      ---
      duration_ms: 0.439762
      type: 'test'
      ...
    # Subtest: manual takeover fences a continuation that already claimed deferred work
    ok 11 - manual takeover fences a continuation that already claimed deferred work
      ---
      duration_ms: 0.56166
      type: 'test'
      ...
    1..11
ok 7 - deferred continuation persistence
  ---
  duration_ms: 6.305315
  type: 'suite'
  ...
# Subtest: defer and resume behavior
    # Subtest: checkReadiness blocks when checks are not passing
    ok 1 - checkReadiness blocks when checks are not passing
      ---
      duration_ms: 0.323555
      type: 'test'
      ...
    # Subtest: checkReadiness allows progression when checks turn green
    ok 2 - checkReadiness allows progression when checks turn green
      ---
      duration_ms: 0.22453
      type: 'test'
      ...
    # Subtest: deferred continuation is saved and can be loaded for resume
    ok 3 - deferred continuation is saved and can be loaded for resume
      ---
      duration_ms: 1.792109
      type: 'test'
      ...
    # Subtest: resume clears deferred record after successful wake
    ok 4 - resume clears deferred record after successful wake
      ---
      duration_ms: 0.309649
      type: 'test'
      ...
    # Subtest: resume keeps deferred record when still not ready
    ok 5 - resume keeps deferred record when still not ready
      ---
      duration_ms: 0.319958
      type: 'test'
      ...
    # Subtest: no overlap: blocks when competing ultrafix job exists
    ok 6 - no overlap: blocks when competing ultrafix job exists
      ---
      duration_ms: 0.159026
      type: 'test'
      ...
    # Subtest: cooldown is not a readiness condition (handled by enqueue delay)
    ok 7 - cooldown is not a readiness condition (handled by enqueue delay)
      ---
      duration_ms: 0.143518
      type: 'test'
      ...
    1..7
ok 8 - defer and resume behavior
  ---
  duration_ms: 3.53799
  type: 'suite'
  ...
# Subtest: parseDeferredKey
    # Subtest: parses a valid key
    ok 1 - parses a valid key
      ---
      duration_ms: 0.277869
      type: 'test'
      ...
    # Subtest: returns null for invalid key format
    ok 2 - returns null for invalid key format
      ---
      duration_ms: 0.084228
      type: 'test'
      ...
    # Subtest: returns null for key with too few parts
    ok 3 - returns null for key with too few parts
      ---
      duration_ms: 0.078647
      type: 'test'
      ...
    # Subtest: returns null for key with non-numeric PR
    ok 4 - returns null for key with non-numeric PR
      ---
      duration_ms: 0.079689
      type: 'test'
      ...
    1..4
ok 9 - parseDeferredKey
  ---
  duration_ms: 0.715868
  type: 'suite'
  ...
# Subtest: resume claim
    # Subtest: only one concurrent trigger acquires the claim
    ok 1 - only one concurrent trigger acquires the claim
      ---
      duration_ms: 0.549477
      type: 'test'
      ...
    # Subtest: claims are scoped per pull request
    ok 2 - claims are scoped per pull request
      ---
      duration_ms: 0.339534
      type: 'test'
      ...
    # Subtest: release only removes a claim held by the same token
    ok 3 - release only removes a claim held by the same token
      ---
      duration_ms: 0.425816
      type: 'test'
      ...
    # Subtest: an expired claim from a crashed holder can be re-acquired
    ok 4 - an expired claim from a crashed holder can be re-acquired
      ---
      duration_ms: 0.307695
      type: 'test'
      ...
    # Subtest: renewal extends only a claim still held by the same token
    ok 5 - renewal extends only a claim still held by the same token
      ---
      duration_ms: 0.446805
      type: 'test'
      ...
    # Subtest: an expired holder cannot renew a claim another trigger took over
    ok 6 - an expired holder cannot renew a claim another trigger took over
      ---
      duration_ms: 0.306182
      type: 'test'
      ...
    1..6
ok 10 - resume claim
  ---
  duration_ms: 2.695226
  type: 'suite'
  ...
# Subtest: stranded loop re-arming gate
    # Subtest: does not resume a missing or inactive loop
    ok 1 - does not resume a missing or inactive loop
      ---
      duration_ms: 0.403213
      type: 'test'
      ...
    # Subtest: re-arms an active loop within its cycle budget
    ok 2 - re-arms an active loop within its cycle budget
      ---
      duration_ms: 0.211004
      type: 'test'
      ...
    # Subtest: completes as failed once reviews reach maxCycles
    ok 3 - completes as failed once reviews reach maxCycles
      ---
      duration_ms: 0.144149
      type: 'test'
      ...
    # Subtest: completes as failed once fixes reach maxCycles and the next step would be a fix
    ok 4 - completes as failed once fixes reach maxCycles and the next step would be a fix
      ---
      duration_ms: 0.109776
      type: 'test'
      ...
    # Subtest: re-arms the verifying review after the final permitted fix, like the ordinary continuation
    ok 5 - re-arms the verifying review after the final permitted fix, like the ordinary continuation
      ---
      duration_ms: 0.2783
      type: 'test'
      ...
    # Subtest: derives legacy action counts when enforcing maxCycles
    ok 6 - derives legacy action counts when enforcing maxCycles
      ---
      duration_ms: 0.173074
      type: 'test'
      ...
    # Subtest: completes as succeeded when the goal was already reached
    ok 7 - completes as succeeded when the goal was already reached
      ---
      duration_ms: 0.179435
      type: 'test'
      ...
    # Subtest: a reached goal takes precedence over an exhausted cycle budget
    ok 8 - a reached goal takes precedence over an exhausted cycle budget
      ---
      duration_ms: 0.164939
      type: 'test'
      ...
    # Subtest: a score below the goal does not stop the loop
    ok 9 - a score below the goal does not stop the loop
      ---
      duration_ms: 0.124062
      type: 'test'
      ...
    1..9
ok 11 - stranded loop re-arming gate
  ---
  duration_ms: 2.113839
  type: 'suite'
  ...
# Subtest: stranded loop work epoch reservation
    # Subtest: hands a loop fenced by a follow-up to a freshly reserved epoch
    ok 1 - hands a loop fenced by a follow-up to a freshly reserved epoch
      ---
      duration_ms: 0.610751
      type: 'test'
      ...
    # Subtest: a later manual fence supersedes the re-armed epoch
    ok 2 - a later manual fence supersedes the re-armed epoch
      ---
      duration_ms: 0.234248
      type: 'test'
      ...
    # Subtest: cannot reserve from an epoch that was superseded in the meantime
    ok 3 - cannot reserve from an epoch that was superseded in the meantime
      ---
      duration_ms: 0.297736
      type: 'test'
      ...
    # Subtest: an older snapshot cannot replace a newer loop that took the current epoch
    ok 4 - an older snapshot cannot replace a newer loop that took the current epoch
      ---
      duration_ms: 0.293729
      type: 'test'
      ...
    # Subtest: rejects a same-epoch update or deletion made after the snapshot was read
    ok 5 - rejects a same-epoch update or deletion made after the snapshot was read
      ---
      duration_ms: 0.302716
      type: 'test'
      ...
    1..5
ok 12 - stranded loop work epoch reservation
  ---
  duration_ms: 1.913035
  type: 'suite'
  ...
1..12
# tests 60
# suites 12
# pass 60
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 355.272879
[175/184] passed test/ultrafixReadiness.test.ts in 0.5s

[176/184] test/ultrafixSettings.test.ts
TAP version 13
# Subtest: VALID_SETTING_KEYS includes new ultrafix keys
    # Subtest: should include pr_review_model
    ok 1 - should include pr_review_model
      ---
      duration_ms: 1.21451
      type: 'test'
      ...
    # Subtest: should include model_reasoning_level
    ok 2 - should include model_reasoning_level
      ---
      duration_ms: 0.168936
      type: 'test'
      ...
    # Subtest: should include ultrafix_rating_goal
    ok 3 - should include ultrafix_rating_goal
      ---
      duration_ms: 0.168565
      type: 'test'
      ...
    # Subtest: should include ultrafix_max_cycles
    ok 4 - should include ultrafix_max_cycles
      ---
      duration_ms: 0.154168
      type: 'test'
      ...
    # Subtest: should include ultrafix_pause_seconds
    ok 5 - should include ultrafix_pause_seconds
      ---
      duration_ms: 0.152054
      type: 'test'
      ...
    # Subtest: should include PR review context settings
    ok 6 - should include PR review context settings
      ---
      duration_ms: 0.16548
      type: 'test'
      ...
    # Subtest: should keep expected setting keys valid
    ok 7 - should keep expected setting keys valid
      ---
      duration_ms: 0.182531
      type: 'test'
      ...
    1..7
ok 1 - VALID_SETTING_KEYS includes new ultrafix keys
  ---
  duration_ms: 3.947386
  type: 'suite'
  ...
# Subtest: isValidSettingKey for new keys
    # Subtest: pr_review_model is valid
    ok 1 - pr_review_model is valid
      ---
      duration_ms: 0.363169
      type: 'test'
      ...
    # Subtest: model_reasoning_level is valid
    ok 2 - model_reasoning_level is valid
      ---
      duration_ms: 0.23538
      type: 'test'
      ...
    # Subtest: ultrafix_rating_goal is valid
    ok 3 - ultrafix_rating_goal is valid
      ---
      duration_ms: 0.337741
      type: 'test'
      ...
    # Subtest: ultrafix_max_cycles is valid
    ok 4 - ultrafix_max_cycles is valid
      ---
      duration_ms: 0.147365
      type: 'test'
      ...
    # Subtest: ultrafix_pause_seconds is valid
    ok 5 - ultrafix_pause_seconds is valid
      ---
      duration_ms: 0.121327
      type: 'test'
      ...
    # Subtest: unknown_key is not valid
    ok 6 - unknown_key is not valid
      ---
      duration_ms: 0.12332
      type: 'test'
      ...
    1..6
ok 2 - isValidSettingKey for new keys
  ---
  duration_ms: 1.88888
  type: 'suite'
  ...
# Subtest: parseSettingValue for pr_review_model
    # Subtest: should accept any string value
    ok 1 - should accept any string value
      ---
      duration_ms: 0.564285
      type: 'test'
      ...
    # Subtest: should accept empty string
    ok 2 - should accept empty string
      ---
      duration_ms: 0.133479
      type: 'test'
      ...
    1..2
ok 3 - parseSettingValue for pr_review_model
  ---
  duration_ms: 0.873863
  type: 'suite'
  ...
# Subtest: parseSettingValue for PR review context
    # Subtest: parses the enable switch
    ok 1 - parses the enable switch
      ---
      duration_ms: 0.255918
      type: 'test'
      ...
    # Subtest: accepts automatic and explicit context token limits
    ok 2 - accepts automatic and explicit context token limits
      ---
      duration_ms: 0.240239
      type: 'test'
      ...
    # Subtest: rejects context token limits below the supported explicit minimum
    ok 3 - rejects context token limits below the supported explicit minimum
      ---
      duration_ms: 0.551951
      type: 'test'
      ...
    # Subtest: accepts review context budget percentages in 10% increments
    ok 4 - accepts review context budget percentages in 10% increments
      ---
      duration_ms: 0.279302
      type: 'test'
      ...
    # Subtest: rejects unsupported review context budget percentages
    ok 5 - rejects unsupported review context budget percentages
      ---
      duration_ms: 0.321671
      type: 'test'
      ...
    1..5
ok 4 - parseSettingValue for PR review context
  ---
  duration_ms: 1.920749
  type: 'suite'
  ...
# Subtest: parseSettingValue for ultrafix_rating_goal
    # Subtest: should parse valid value 7
    ok 1 - should parse valid value 7
      ---
      duration_ms: 0.281787
      type: 'test'
      ...
    # Subtest: should accept minimum value 1
    ok 2 - should accept minimum value 1
      ---
      duration_ms: 0.1335
      type: 'test'
      ...
    # Subtest: should accept maximum value 10
    ok 3 - should accept maximum value 10
      ---
      duration_ms: 0.124894
      type: 'test'
      ...
    # Subtest: should reject value 0
    ok 4 - should reject value 0
      ---
      duration_ms: 0.178764
      type: 'test'
      ...
    # Subtest: should reject value 11
    ok 5 - should reject value 11
      ---
      duration_ms: 0.250598
      type: 'test'
      ...
    # Subtest: should reject non-numeric value
    ok 6 - should reject non-numeric value
      ---
      duration_ms: 0.177622
      type: 'test'
      ...
    # Subtest: should reject negative value
    ok 7 - should reject negative value
      ---
      duration_ms: 0.158737
      type: 'test'
      ...
    1..7
ok 5 - parseSettingValue for ultrafix_rating_goal
  ---
  duration_ms: 1.707701
  type: 'suite'
  ...
# Subtest: parseSettingValue for ultrafix_max_cycles
    # Subtest: should parse valid value 5
    ok 1 - should parse valid value 5
      ---
      duration_ms: 0.335597
      type: 'test'
      ...
    # Subtest: should accept minimum value 1
    ok 2 - should accept minimum value 1
      ---
      duration_ms: 0.137847
      type: 'test'
      ...
    # Subtest: should accept large values (no upper limit)
    ok 3 - should accept large values (no upper limit)
      ---
      duration_ms: 0.131415
      type: 'test'
      ...
    # Subtest: should reject value 0
    ok 4 - should reject value 0
      ---
      duration_ms: 2.223135
      type: 'test'
      ...
    # Subtest: should reject non-numeric value
    ok 5 - should reject non-numeric value
      ---
      duration_ms: 0.167593
      type: 'test'
      ...
    1..5
ok 6 - parseSettingValue for ultrafix_max_cycles
  ---
  duration_ms: 3.261765
  type: 'suite'
  ...
# Subtest: parseSettingValue for ultrafix_pause_seconds
    # Subtest: should parse valid value 60
    ok 1 - should parse valid value 60
      ---
      duration_ms: 0.216274
      type: 'test'
      ...
    # Subtest: should accept minimum value 0
    ok 2 - should accept minimum value 0
      ---
      duration_ms: 0.105367
      type: 'test'
      ...
    # Subtest: should accept large values (no upper limit)
    ok 3 - should accept large values (no upper limit)
      ---
      duration_ms: 0.098814
      type: 'test'
      ...
    # Subtest: should reject value -1
    ok 4 - should reject value -1
      ---
      duration_ms: 0.145973
      type: 'test'
      ...
    # Subtest: should reject non-numeric value
    ok 5 - should reject non-numeric value
      ---
      duration_ms: 0.151894
      type: 'test'
      ...
    1..5
ok 7 - parseSettingValue for ultrafix_pause_seconds
  ---
  duration_ms: 0.911062
  type: 'suite'
  ...
# Subtest: Ultrafix escalation CLI settings
    # Subtest: parses the instance toggle, ordered model list, patience, and N=0
    ok 1 - parses the instance toggle, ordered model list, patience, and N=0
      ---
      duration_ms: 1.082042
      type: 'test'
      ...
    1..1
ok 8 - Ultrafix escalation CLI settings
  ---
  duration_ms: 1.217125
  type: 'suite'
  ...
1..8
# tests 38
# suites 8
# pass 38
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 497.979412
[176/184] passed test/ultrafixSettings.test.ts in 0.6s

[177/184] test/userWhitelist.test.ts
TAP version 13
# Subtest: empty whitelist allows everyone (open access)
ok 1 - empty whitelist allows everyone (open access)
  ---
  duration_ms: 0.921972
  type: 'test'
  ...
# Subtest: non-empty whitelist gates by membership (case-insensitive)
ok 2 - non-empty whitelist gates by membership (case-insensitive)
  ---
  duration_ms: 0.752396
  type: 'test'
  ...
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 416.337041
[177/184] passed test/userWhitelist.test.ts in 0.5s

[178/184] test/vibeModelSelection.test.ts
TAP version 13
# Subtest: GLM labels and aliases resolve to the configured Vibe account
ok 1 - GLM labels and aliases resolve to the configured Vibe account
  ---
  duration_ms: 5.188204
  type: 'test'
  ...
# [2026-10-07 13:37:25.727 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-6PUsrF/178-vibeModelSelection.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-10-07 13:37:25.727 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 1
# suites 0
# pass 1
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 1299.605255
[178/184] passed test/vibeModelSelection.test.ts in 1.4s

[179/184] test/webhookReplayProtection.test.ts
TAP version 13
# [webhook] Missing x-github-delivery header
# Subtest: Webhook Replay Protection
    # Subtest: Missing delivery ID
        # Subtest: rejects request with no x-github-delivery header
        ok 1 - rejects request with no x-github-delivery header
          ---
          duration_ms: 25.335251
          type: 'test'
          ...
        1..1
    ok 1 - Missing delivery ID
      ---
      duration_ms: 26.114477
      type: 'suite'
      ...
# [webhook] Rejecting multi-valued x-github-delivery header
    # Subtest: Array-valued delivery ID
        # Subtest: rejects request with multi-valued x-github-delivery header
        ok 1 - rejects request with multi-valued x-github-delivery header
          ---
          duration_ms: 5.356218
          type: 'test'
          ...
        1..1
    ok 2 - Array-valued delivery ID
      ---
      duration_ms: 5.565129
      type: 'suite'
      ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: unique-delivery-001
    # Subtest: Duplicate delivery rejection
        # Subtest: accepts first delivery
        ok 1 - accepts first delivery
          ---
          duration_ms: 5.690182
          type: 'test'
          ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: unique-delivery-002
# [webhook] Duplicate delivery rejected: unique-delivery-002
        # Subtest: rejects second delivery with same ID
        ok 2 - rejects second delivery with same ID
          ---
          duration_ms: 5.695803
          type: 'test'
          ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: delivery-aaa
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: delivery-bbb
        # Subtest: accepts different delivery IDs with same body
        ok 3 - accepts different delivery IDs with same body
          ---
          duration_ms: 5.044746
          type: 'test'
          ...
        1..3
    ok 3 - Duplicate delivery rejection
      ---
      duration_ms: 16.814779
      type: 'suite'
      ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: test-delivery-123
    # Subtest: Redis key storage
        # Subtest: stores delivery ID with correct key prefix and TTL
        ok 1 - stores delivery ID with correct key prefix and TTL
          ---
          duration_ms: 4.691897
          type: 'test'
          ...
# [webhook] Missing x-github-delivery header
        # Subtest: does not store key when delivery ID is missing
        ok 2 - does not store key when delivery ID is missing
          ---
          duration_ms: 4.7903
          type: 'test'
          ...
        1..2
    ok 4 - Redis key storage
      ---
      duration_ms: 9.8149
      type: 'suite'
      ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: delivery-will-fail
# [webhook] Duplicate delivery rejected: delivery-will-fail
    # Subtest: Failure keeps delivery ID reserved
        # Subtest: retains Redis key when processing fails to prevent duplicate side effects
        ok 1 - retains Redis key when processing fails to prevent duplicate side effects
          ---
          duration_ms: 6.417803
          type: 'test'
          ...
# [webhook] Failed to parse JSON body for delivery delivery-bad-parse
        # Subtest: retains Redis key when body parsing fails and returns generic 400
        ok 2 - retains Redis key when body parsing fails and returns generic 400
          ---
          duration_ms: 3.832481
          type: 'test'
          ...
        1..2
    ok 5 - Failure keeps delivery ID reserved
      ---
      duration_ms: 10.442202
      type: 'suite'
      ...
# [webhook] No signature provided
    # Subtest: Signature verification
        # Subtest: rejects request with missing signature
        ok 1 - rejects request with missing signature
          ---
          duration_ms: 4.125749
          type: 'test'
          ...
# [webhook] Signature mismatch
        # Subtest: rejects request with invalid signature
        ok 2 - rejects request with invalid signature
          ---
          duration_ms: 3.156058
          type: 'test'
          ...
# [webhook] Signature mismatch
        # Subtest: rejects request with malformed signature of different length
        ok 3 - rejects request with malformed signature of different length
          ---
          duration_ms: 2.806434
          type: 'test'
          ...
# [webhook] Rejecting multi-valued x-hub-signature-256 header
        # Subtest: rejects request with multi-valued x-hub-signature-256 header
        ok 4 - rejects request with multi-valued x-hub-signature-256 header
          ---
          duration_ms: 2.484342
          type: 'test'
          ...
# [webhook] Signature mismatch
        # Subtest: does not store delivery ID when signature is invalid
        ok 5 - does not store delivery ID when signature is invalid
          ---
          duration_ms: 2.415814
          type: 'test'
          ...
        1..5
    ok 6 - Signature verification
      ---
      duration_ms: 15.302163
      type: 'suite'
      ...
# [webhook] Missing x-github-event header
    # Subtest: Missing x-github-event header
        # Subtest: rejects request with no x-github-event header
        ok 1 - rejects request with no x-github-event header
          ---
          duration_ms: 3.659227
          type: 'test'
          ...
        1..1
    ok 7 - Missing x-github-event header
      ---
      duration_ms: 3.820018
      type: 'suite'
      ...
# [webhook] GH_WEBHOOK_SECRET is not configured — rejecting request. Set GH_WEBHOOK_SECRET in the environment to accept webhooks. This is a security requirement: all webhook deliveries are rejected until a secret is provisioned.
    # Subtest: Webhook secret not configured (fail closed)
        # Subtest: rejects request when webhookSecret is undefined
        ok 1 - rejects request when webhookSecret is undefined
          ---
          duration_ms: 8.276387
          type: 'test'
          ...
        1..1
    ok 8 - Webhook secret not configured (fail closed)
      ---
      duration_ms: 8.47107
      type: 'suite'
      ...
# [webhook] Ignoring unsupported event type: unknown_event_type
    # Subtest: Unsupported event type
        # Subtest: ignores request with unsupported x-github-event value with 200
        ok 1 - ignores request with unsupported x-github-event value with 200
          ---
          duration_ms: 3.662795
          type: 'test'
          ...
        1..1
    ok 9 - Unsupported event type
      ---
      duration_ms: 3.849554
      type: 'suite'
      ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: delivery-for-forwarding
    # Subtest: Preview routing: delivery ID passed to processor
        # Subtest: processor receives the delivery ID for downstream forwarding
        ok 1 - processor receives the delivery ID for downstream forwarding
          ---
          duration_ms: 5.031081
          type: 'test'
          ...
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: delivery-original
# [webhook] Event received: issues, action: opened, repo: test/repo, delivery: fwd-delivery-original
        # Subtest: forwarded delivery with fwd- prefix is accepted as a distinct delivery
        ok 2 - forwarded delivery with fwd- prefix is accepted as a distinct delivery
          ---
          duration_ms: 3.938099
          type: 'test'
          ...
        1..2
    ok 10 - Preview routing: delivery ID passed to processor
      ---
      duration_ms: 9.277286
      type: 'suite'
      ...
    # Subtest: Redis adapter shape (server.ts integration path)
        # Subtest: adapter reshapes NX/EX options correctly
        ok 1 - adapter reshapes NX/EX options correctly
          ---
          duration_ms: 1.880905
          type: 'test'
          ...
        # Subtest: adapter passes through plain set without options
        ok 2 - adapter passes through plain set without options
          ---
          duration_ms: 0.860037
          type: 'test'
          ...
        # Subtest: adapter returns null when NX key already exists
        ok 3 - adapter returns null when NX key already exists
          ---
          duration_ms: 0.85636
          type: 'test'
          ...
        1..3
    ok 11 - Redis adapter shape (server.ts integration path)
      ---
      duration_ms: 3.761489
      type: 'suite'
      ...
    1..11
ok 1 - Webhook Replay Protection
  ---
  duration_ms: 114.77604
  type: 'suite'
  ...
# [2026-10-07 13:37:27.950 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-6PUsrF/179-webhookReplayProtection.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-10-07 13:37:28.058 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..1
# tests 22
# suites 12
# pass 22
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 2231.902364
[179/184] passed test/webhookReplayProtection.test.ts in 2.4s

[180/184] test/worker.integration.test.ts
TAP version 13
# Subtest: Worker Integration - Concurrent Model Execution
    # Subtest: concurrent jobs with different models create unique worktrees
    ok 1 - concurrent jobs with different models create unique worktrees
      ---
      duration_ms: 12.579126
      type: 'test'
      ...
    # Subtest: delay function prevents exact simultaneous execution
    ok 2 - delay function prevents exact simultaneous execution
      ---
      duration_ms: 280.645529
      type: 'test'
      ...
    # Subtest: worktree cleanup after concurrent execution
    ok 3 - worktree cleanup after concurrent execution
      ---
      duration_ms: 4.593179
      type: 'test'
      ...
    # Subtest: file system isolation between concurrent workers
    ok 4 - file system isolation between concurrent workers
      ---
      duration_ms: 5.317737
      type: 'test'
      ...
    # Subtest: error handling in concurrent execution
    ok 5 - error handling in concurrent execution
      ---
      duration_ms: 70.838027
      type: 'test'
      ...
    1..5
ok 1 - Worker Integration - Concurrent Model Execution
  ---
  duration_ms: 375.448614
  type: 'suite'
  ...
1..1
# tests 5
# suites 1
# pass 5
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 682.946431
[180/184] passed test/worker.integration.test.ts in 0.8s

[181/184] test/workerGitAuthentication.test.ts
TAP version 13
# (node:24529) ExperimentalWarning: Module mocking is an experimental feature and might change at any time
# (Use `node --trace-warnings ...` to show where the warning was created)
# Subtest: push refreshes once after could not read Username for 'https://github.com': No such device or address
ok 1 - push refreshes once after could not read Username for 'https://github.com': No such device or address
  ---
  duration_ms: 3.779512
  type: 'test'
  ...
# Subtest: push refreshes once after could not read Password for 'https://github.com': terminal prompts disabled
ok 2 - push refreshes once after could not read Password for 'https://github.com': terminal prompts disabled
  ---
  duration_ms: 1.274031
  type: 'test'
  ...
# Subtest: push refreshes once after Authentication failed
ok 3 - push refreshes once after Authentication failed
  ---
  duration_ms: 1.119973
  type: 'test'
  ...
# Subtest: unrelated push failures do not refresh credentials
ok 4 - unrelated push failures do not refresh credentials
  ---
  duration_ms: 4.908291
  type: 'test'
  ...
# Subtest: a second authentication failure is returned without an unbounded retry
ok 5 - a second authentication failure is returned without an unbounded retry
  ---
  duration_ms: 1.625147
  type: 'test'
  ...
# Subtest: push and merge authenticate the selected named remote or URL
ok 6 - push and merge authenticate the selected named remote or URL
  ---
  duration_ms: 1.474094
  type: 'test'
  ...
# Subtest: legacy URL snapshots still get process credentials if cleanup strips the stored token
ok 7 - legacy URL snapshots still get process credentials if cleanup strips the stored token
  ---
  duration_ms: 0.701441
  type: 'test'
  ...
1..7
# tests 7
# suites 0
# pass 7
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 377.765043
[181/184] passed test/workerGitAuthentication.test.ts in 0.5s

[182/184] test/workerTaskStateRecovery.test.ts
TAP version 13
# (node:24569) ExperimentalWarning: Module mocking is an experimental feature and might change at any time
# (Use `node --trace-warnings ...` to show where the warning was created)
# Subtest: coalesces overlapping runs and releases the distributed lease
ok 1 - coalesces overlapping runs and releases the distributed lease
  ---
  duration_ms: 2.931208
  type: 'test'
  ...
# Subtest: does not reconcile when another worker owns the lease
ok 2 - does not reconcile when another worker owns the lease
  ---
  duration_ms: 4.766747
  type: 'test'
  ...
# Subtest: contains lease acquisition failures instead of creating an unhandled rejection
ok 3 - contains lease acquisition failures instead of creating an unhandled rejection
  ---
  duration_ms: 1.008013
  type: 'test'
  ...
# Subtest: retains an unfinished page backlog across recovery runs
ok 4 - retains an unfinished page backlog across recovery runs
  ---
  duration_ms: 1.795194
  type: 'test'
  ...
# Subtest: bounds a stalled lease acquisition by the recovery budget
ok 5 - bounds a stalled lease acquisition by the recovery budget
  ---
  duration_ms: 11.328919
  type: 'test'
  ...
# Subtest: close aborts a stalled active recovery run
ok 6 - close aborts a stalled active recovery run
  ---
  duration_ms: 1.734521
  type: 'test'
  ...
# Subtest: runs once at startup and continues on the configured interval
ok 7 - runs once at startup and continues on the configured interval
  ---
  duration_ms: 21.157224
  type: 'test'
  ...
# Subtest: reconciles follow-up CI suspensions under the same lease
ok 8 - reconciles follow-up CI suspensions under the same lease
  ---
  duration_ms: 0.752005
  type: 'test'
  ...
1..8
# tests 8
# suites 0
# pass 8
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 675.355979
[182/184] passed test/workerTaskStateRecovery.test.ts in 0.8s

[183/184] test/workRefHelpers.test.ts
TAP version 13
# Subtest: buildTaskWorkRef — task execution flow
    # Subtest: produces correct workRef for a standard issue task
    ok 1 - produces correct workRef for a standard issue task
      ---
      duration_ms: 0.946909
      type: 'test'
      ...
    # Subtest: includes prNumber when provided (PR follow-up)
    ok 2 - includes prNumber when provided (PR follow-up)
      ---
      duration_ms: 2.682022
      type: 'test'
      ...
    # Subtest: handles undefined taskId gracefully
    ok 3 - handles undefined taskId gracefully
      ---
      duration_ms: 1.345634
      type: 'test'
      ...
    1..3
ok 1 - buildTaskWorkRef — task execution flow
  ---
  duration_ms: 6.759831
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — plan flow
    # Subtest: plan-generation produces plan workRef with planDraftId
    ok 1 - plan-generation produces plan workRef with planDraftId
      ---
      duration_ms: 0.307675
      type: 'test'
      ...
    # Subtest: plan-refinement produces plan workRef with planDraftId
    ok 2 - plan-refinement produces plan workRef with planDraftId
      ---
      duration_ms: 0.124212
      type: 'test'
      ...
    # Subtest: plan without taskId still has workType plan and undefined planDraftId
    ok 3 - plan without taskId still has workType plan and undefined planDraftId
      ---
      duration_ms: 0.111258
      type: 'test'
      ...
    # Subtest: plan ignores taskNumber and prNumber
    ok 4 - plan ignores taskNumber and prNumber
      ---
      duration_ms: 0.184686
      type: 'test'
      ...
    1..4
ok 2 - buildAnalysisWorkRef — plan flow
  ---
  duration_ms: 1.128809
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — repository flow
    # Subtest: repo-chat without taskId produces repository workRef
    ok 1 - repo-chat without taskId produces repository workRef
      ---
      duration_ms: 0.191959
      type: 'test'
      ...
    # Subtest: repo-improvements without taskId produces repository workRef
    ok 2 - repo-improvements without taskId produces repository workRef
      ---
      duration_ms: 0.165009
      type: 'test'
      ...
    # Subtest: summarization without taskId produces repository workRef
    ok 3 - summarization without taskId produces repository workRef
      ---
      duration_ms: 0.238766
      type: 'test'
      ...
    # Subtest: undefined executionType with taskId produces task workRef
    ok 4 - undefined executionType with taskId produces task workRef
      ---
      duration_ms: 0.117079
      type: 'test'
      ...
    # Subtest: undefined executionType without taskId produces repository workRef
    ok 5 - undefined executionType without taskId produces repository workRef
      ---
      duration_ms: 0.124222
      type: 'test'
      ...
    1..5
ok 3 - buildAnalysisWorkRef — repository flow
  ---
  duration_ms: 1.112569
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — task with taskNumber/prNumber
    # Subtest: carries taskNumber when provided
    ok 1 - carries taskNumber when provided
      ---
      duration_ms: 0.182672
      type: 'test'
      ...
    # Subtest: carries both taskNumber and prNumber when provided
    ok 2 - carries both taskNumber and prNumber when provided
      ---
      duration_ms: 0.144139
      type: 'test'
      ...
    1..2
ok 4 - buildAnalysisWorkRef — task with taskNumber/prNumber
  ---
  duration_ms: 0.450722
  type: 'suite'
  ...
# Subtest: PR follow-up workRef — insert row mapping
    # Subtest: maps prNumber to pr_number DB column
    ok 1 - maps prNumber to pr_number DB column
      ---
      duration_ms: 0.204692
      type: 'test'
      ...
    # Subtest: pr_number is null for non-PR tasks
    ok 2 - pr_number is null for non-PR tasks
      ---
      duration_ms: 0.184164
      type: 'test'
      ...
    1..2
ok 5 - PR follow-up workRef — insert row mapping
  ---
  duration_ms: 0.607927
  type: 'suite'
  ...
# Subtest: buildAnalysisWorkRef — edge cases
    # Subtest: all undefined inputs produce repository workRef with undefined fields
    ok 1 - all undefined inputs produce repository workRef with undefined fields
      ---
      duration_ms: 0.224159
      type: 'test'
      ...
    # Subtest: non-plan executionType with taskId produces task workRef
    ok 2 - non-plan executionType with taskId produces task workRef
      ---
      duration_ms: 0.095208
      type: 'test'
      ...
    # Subtest: taskNumber without taskId produces task workRef (issue-scoped analysis)
    ok 3 - taskNumber without taskId produces task workRef (issue-scoped analysis)
      ---
      duration_ms: 0.089597
      type: 'test'
      ...
    # Subtest: taskNumber without taskId for PR follow-up carries prNumber
    ok 4 - taskNumber without taskId for PR follow-up carries prNumber
      ---
      duration_ms: 0.092623
      type: 'test'
      ...
    1..4
ok 6 - buildAnalysisWorkRef — edge cases
  ---
  duration_ms: 0.638874
  type: 'suite'
  ...
# [2026-10-07 13:37:31.634 +0000] �[32mINFO�[39m: �[36mSQLite database connection established successfully�[39m
#     filename: "/tmp/propr-test-suite-6PUsrF/183-workRefHelpers.test.ts/propr.test.sqlite"
#     environment: "test"
# [2026-10-07 13:37:31.639 +0000] �[32mINFO�[39m: �[36mSQLite database connection closed�[39m
1..6
# tests 20
# suites 6
# pass 20
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 1298.105251
[183/184] passed test/workRefHelpers.test.ts in 1.4s

[184/184] propr-ui#2/4 (workspace test script)

> [email protected] test
> vitest run --shard=2/4


�[1m�[30m�[46m RUN �[49m�[39m�[22m �[36mv5.0.0 �[39m�[90m/home/runner/work/propr/propr/propr-ui�[39m

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mrefetches on task completion with initial HTTP pending=false
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mrefetches on task completion with initial HTTP pending=true
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstderr�[2m | src/config/runtimeConfig.test.ts�[2m > �[22m�[2mgetApiBaseUrl�[2m > �[22m�[2mblocks API client construction when the hosted UI has no selected stack
�[22m�[39m[propr] HOSTED_STACK_REQUIRED

�[90mstderr�[2m | src/config/runtimeConfig.test.ts�[2m > �[22m�[2mgetApiBaseUrl�[2m > �[22m�[2mblocks API client construction for a non-Connect hosted runtime URL
�[22m�[39m[propr] INVALID_RUNTIME_CONFIGURATION

�[90mstderr�[2m | src/config/runtimeConfig.test.ts�[2m > �[22m�[2mhosted tunnel query API base�[2m > �[22m�[2mdoes not let an encoded tunnel name fall through to valid runtime configuration
�[22m�[39m[propr] INVALID_RUNTIME_CONFIGURATION

�[90mstderr�[2m | src/config/runtimeConfig.test.ts�[2m > �[22m�[2mhosted tunnel query API base�[2m > �[22m�[2mdoes not let an encoded tunnel name fall through to a valid stored endpoint
�[22m�[39m[propr] INVALID_RUNTIME_CONFIGURATION

 �[32m✓�[39m src/config/runtimeConfig.test.ts �[2m(�[22m�[2m67 tests�[22m�[2m)�[22m�[33m 1257�[2mms�[22m�[39m
   �[32m✓�[39m getApiBaseUrl �[2m(16)�[22m
     �[33m�[2m✓�[22m�[39m uses the runtime-configured apiBaseUrl when present�[33m 473�[2mms�[22m�[39m
�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mtask page replays a large increment once during HTTP/completion
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mtask page orders growing messages: HTTP past socket
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mtask page orders growing messages: socket past HTTP
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mbuffered updates of an execution a newer read replaced�[2m > �[22m�[2mtask page discards a buffered old increment and its late deliveries after a new-execution read
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mbuffered updates of an execution a newer read replaced�[2m > �[22m�[2mtask page discards a buffered old full state and its late deliveries after a new-execution read
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mbuffered updates of an execution a newer read replaced�[2m > �[22m�[2mtask page keeps the newer HTTP execution over an intermediate execution received during the read
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

 �[32m✓�[39m src/components/TaskDetails/useTaskData.followup.test.ts �[2m(�[22m�[2m45 tests�[22m�[2m)�[22m�[33m 986�[2mms�[22m�[39m
   �[32m✓�[39m full history follow-up regressions �[2m(45)�[22m
     �[33m�[2m✓�[22m�[39m merges large full histories, including unshared prefixes and suffixes, without positional arguments�[33m 718�[2mms�[22m�[39m
�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mcreates one force-new scoped Manager on null-to-A activation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for scope rotation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for scope rotation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for same-origin A-to-B
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for same-origin A-to-B
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Cleaning up socket connection
[SocketContext] Connected to WebSocket server

�[90mstderr�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Connection error: not connected

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrotates the Manager when the effective API origin changes
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrotates the Manager when the effective API origin changes
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdisconnects on deactivate and creates no replacement
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mkeeps the hosted browser cookie socket without a desktop marker
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mclassifies authentication errors against the immutable activation scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreconnects the current Manager when authorization changes without invalidating its token
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnever reconnects a stale same-origin Manager after deferred authorization work resolves
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnever reconnects a stale same-origin Manager after deferred authorization work resolves
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops application events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection
[SocketContext] Received task update: { eventType: �[32m'task:update'�[39m }

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops application events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdelivers live events without logging their potentially large payload
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreference-counts the activity room and rejoins it after a reconnect
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Disconnected from WebSocket server: transport close
[SocketContext] Connected to WebSocket server
[SocketContext] Unsubscribed from activity

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreference-counts the activity room and rejoins it after a reconnect
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnegotiates direct snapshots without recreating the connection
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Disconnected from WebSocket server: transport close

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnegotiates direct snapshots without recreating the connection
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrefreshes browser authorization before reconnecting after a permission change
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdelivers activity, goal, notification and usage events without logging their payloads
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops activity events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops activity events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches listeners and disconnects on unmount
�[22m�[39m[SocketContext] Cleaning up socket connection

 �[32m✓�[39m src/contexts/SocketProvider.test.tsx �[2m(�[22m�[2m19 tests�[22m�[2m)�[22m�[32m 192�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositorySelector.test.tsx �[2m(�[22m�[2m26 tests�[22m�[2m)�[22m�[33m 1342�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/NewTaskPage.test.tsx �[2m(�[22m�[2m15 tests�[22m�[2m)�[22m�[33m 3238�[2mms�[22m�[39m
   �[32m✓�[39m New Task issue launcher �[2m(15)�[22m
     �[33m�[2m✓�[22m�[39m opens a modal with collapsed settings and no promotional cards�[33m 357�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m reopens unresolved work after starting another request and reloading, preserving its key and files�[33m 517�[2mms�[22m�[39m
 �[32m✓�[39m src/serviceWorker.test.ts �[2m(�[22m�[2m24 tests�[22m�[2m)�[22m�[32m 52�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useBrowserPush.test.tsx �[2m(�[22m�[2m20 tests�[22m�[2m)�[22m�[33m 491�[2mms�[22m�[39m
 �[32m✓�[39m src/api/demoMode.test.ts �[2m(�[22m�[2m21 tests�[22m�[2m)�[22m�[32m 51�[2mms�[22m�[39m
�[90mstderr�[2m | src/desktop/DesktopExperience.transport.test.tsx�[2m > �[22m�[2mDesktopExperience transport and fencing�[2m > �[22m�[2mignores a delayed access-invalid event from A after B has connected
�[22m�[39mAn update to DesktopExperience inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/desktop/DesktopExperience.transport.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[33m 706�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useGenerationPolling.test.tsx �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 58�[2mms�[22m�[39m
�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Connected to WebSocket server

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Received task update: { id: �[32m'101'�[39m, username: �[32m'alice'�[39m, avatarUrl: �[1mnull�[22m }

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Connected to WebSocket server

�[90mstderr�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39mAn update to SocketProvider inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Received task update: { id: �[32m'202'�[39m, username: �[32m'bob'�[39m, avatarUrl: �[1mnull�[22m }

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Cleaning up socket connection

 �[32m✓�[39m src/desktop/account-switching.integration.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 1024�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m pairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload�[33m 1021�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/inboxUtils.test.ts �[2m(�[22m�[2m25 tests�[22m�[2m)�[22m�[32m 36�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.deep-link-presentation.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 941�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m preserves the warm Open account after tunnel presentation with cold delivery after profile loading�[33m 479�[2mms�[22m�[39m
 �[32m✓�[39m src/components/PreviewLightbox.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 785�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeader.desktop.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[33m 1175�[2mms�[22m�[39m
   �[32m✓�[39m GlobalHeader desktop toolbar �[2m(16)�[22m
     �[33m�[2m✓�[22m�[39m uses the route action and remaining menu options on /�[33m 380�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.recovery.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[33m 802�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Layout.desktop.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 1120�[2mms�[22m�[39m
   �[32m✓�[39m Layout desktop instance selector �[2m(8)�[22m
     �[33m�[2m✓�[22m�[39m keeps version and copyright on web but out of the desktop sidebar�[33m 387�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.discovery.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 679�[2mms�[22m�[39m
   �[32m✓�[39m DesktopExperience production Connect discovery pipeline �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m prefills through main discovery, IPC, preload, and the MacIntel Electron adapter before explicit confirmation�[33m 342�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.authentication.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 694�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/rowModel.test.ts �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[32m 23�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useContextRefresh.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 52�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AIModelSelectionSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 504�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsNavigation.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 616�[2mms�[22m�[39m
   �[32m✓�[39m SettingsNavigation �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m organizes settings into category tabs�[33m 319�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Mcp/McpConnectedAppRow.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 589�[2mms�[22m�[39m
 �[32m✓�[39m src/api/voiceApi.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 111�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/reviewPromptOverview.test.ts �[2m(�[22m�[2m18 tests�[22m�[2m)�[22m�[32m 33�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.oauthUrl.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeaderComponents.status.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 325�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.scope.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 338�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/UsageTipsSection.test.tsx �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[33m 1392�[2mms�[22m�[39m
   �[32m✓�[39m usage tips �[2m(10)�[22m
     �[33m�[2m✓�[22m�[39m removes immediately, reuses event ID on bounded retries, and fetches replacements�[33m 301�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m restores a failed dismissal with a retry control using the original event�[33m 811�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/windowChromeStyles.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.hostedOAuthLifecycle.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 316�[2mms�[22m�[39m
 �[32m✓�[39m src/serviceWorkerRegistration.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/api/notificationApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/api/agentHealthApi.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 17�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsLayout.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 207�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.desktopAuthentication.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 222�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ui/loadingStates.guard.test.ts �[2m(�[22m�[2m38 tests�[22m�[2m)�[22m�[32m 20�[2mms�[22m�[39m
 �[32m✓�[39m src/api/goals.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 15�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/ManagedPreviewStorageSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 274�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AIActivityMonitor.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 410�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/GlobalSearch.loading.test.tsx�[2m > �[22m�[2mGlobalSearch loading states�[2m > �[22m�[2mrenders a search failure as an error rather than an empty result
�[22m�[39mSearch failed: Error: Search unavailable
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/GlobalSearch.loading.test.tsx:49:44
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:1628:35
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:2783:26
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3319:20
    at new Promise (<anonymous>)
    at runWithCancel (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3314:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3299:20
    at new Promise (<anonymous>)
    at runWithTimeout (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3257:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.CQOUYP-x.js:3876:64

 �[32m✓�[39m src/components/GlobalSearch.loading.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 862�[2mms�[22m�[39m
   �[32m✓�[39m GlobalSearch loading states �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m waits for successful task and plan reads before showing no results�[33m 516�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m renders a search failure as an error rather than an empty result�[33m 343�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/sectionState.visibility.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 35�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/preloadWindowFrame.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 19�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/electronAdapters.localSetup.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/App.invalidConfiguration.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 1151�[2mms�[22m�[39m
   �[32m✓�[39m invalid eager API configuration �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m renders a bounded safe connection screen without leaking configured input�[33m 982�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/thoughtContent.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AgentTankDetectionBanner.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 72�[2mms�[22m�[39m
 �[32m✓�[39m src/api/taskPathEncoding.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskHeader.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 171�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/headerStatsRequestCoordinator.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/ReferenceChips.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 55�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useDesktopLayout.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 22�[2mms�[22m�[39m
 �[32m✓�[39m src/api/previewStorageApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/AgentModelSelectorParts.responsive.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 76�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ui/SystemAlert.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 189�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/apiDataGuards.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/components/creationActions.test.ts �[2m(�[22m�[2m20 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m58 passed�[39m�[22m�[90m (58)�[39m
�[2m      Tests �[22m �[1m�[32m600 passed�[39m�[22m�[90m (600)�[39m
�[2m   Start at �[22m 13:37:32
�[2m   Duration �[22m 50.96s�[2m (environment 51%, tests 25%, setup 10%, import 9%, transform 4%)�[22m

�[2mEnvironment �[22m �[33mjsdom was created 58 times�[39m�[2m · 48.25s total, 51% of tracked time�[22m
�[2m            �[22m �[2mcreate it once per worker with �[22m�[33mpool: 'vmThreads'�[39m�[2m (keeps per-file isolation) or �[22m�[33misolate: false�[39m�[2m (shares it across files)�[22m
�[2m            �[22m �[2mlearn more: https://vitest.dev/guide/improving-performance#test-environments�[22m


> [email protected] posttest
> npm run test:docker-context


> [email protected] test:docker-context
> node --test scripts/docker-context-inputs.test.mjs

TAP version 13
# Subtest: focused UI selectors are forwarded only to Vitest
ok 1 - focused UI selectors are forwarded only to Vitest
  ---
  duration_ms: 0.961828
  type: 'test'
  ...
# Subtest: the UI Docker context contains its complete non-type external source import closure
ok 2 - the UI Docker context contains its complete non-type external source import closure
  ---
  duration_ms: 57.504508
  type: 'test'
  ...
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 119.27975
[184/184] passed propr-ui#2/4 (workspace test script) in 51.8s

### Shard 4/4: 183/184 passed in 708.2s

Assigned 184 of 738 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 155.8s | passed | `test/taskIntentWithdrawal.test.ts` |
| 64.1s | passed | `packages/api/test/mcpAccessLog.test.ts` |
| 51.8s | passed | `propr-ui#2/4` (workspace) |
| 51.4s | passed | `packages/api/test/mcpBrowser.test.ts` |
| 31.5s | passed | `apps/desktop/src/profile-store.crash-recovery.test.ts` |
| 26.8s | passed | `packages/api/test/mcpPublishPlan.test.ts` |
| 11.9s | passed | `test/previewAgentImage.test.mjs` |
| 11.6s | passed | `packages/api/test/openapiResponseConformance.test.ts` |
| 11.5s | passed | `packages/cli/src/projectOptions.cli.test.ts` |
| 11.4s | passed | `apps/desktop/src/saved-accounts.test.ts` |
| 8.9s | passed | `test/buildImages.test.mjs` |
| 7.9s | passed | `packages/api/test/webPushDispatcher.test.ts` |
| 7.6s | passed | `packages/core/test/repositoryRetrievalService.test.ts` |
| 7.0s | passed | `packages/api/test/goalWait.test.ts` |
| 6.1s | passed | `test/reviewContextBudget.test.ts` |

Passing units at or above 60% of the 180.0s per-unit timeout. Split or speed these up before they fail:

- `test/taskIntentWithdrawal.test.ts` used 87% (155.8s)

::warning title=Test unit near the per-unit timeout::test/taskIntentWithdrawal.test.ts used 87% (155.8s) of the 180.0s per-unit timeout

1/184 test runs failed in shard 4/4 after 708.2s:
- test/processMergeConflictJob.test.ts: exit 1

Details truncated; see the uploaded artifacts for complete failure rows and logs.

View Workflow
View uploaded artifacts

@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit eace5c4

Summary of Changes

I fixed the shard 4 failure in test/processMergeConflictJob.test.ts. The failure came from the test's setup, not from the merge-conflict code, and the file now passes locally (22 of 22). I ran only this file, not the full suite.

Cause: this PR added src/jobs/networkEgress.ts, and prCommentAgentUtils.js imports it. processMergeConflictJob.ts imports prCommentAgentUtils.js, so loading the job now loads networkEgress.ts too. That file imports executeWithNetworkPolicy and other network-policy functions from @propr/core. The test replaces @propr/core with a fixed list of fake exports that doesn't include them. So the file crashed while loading with SyntaxError: The requested module '@propr/core' does not provide an export named 'executeWithNetworkPolicy', before any test ran.

Fix: the test now replaces ../src/jobs/networkEgress.js too, with a runWithNetworkPolicy that just runs the work it's given (test/processMergeConflictJob.test.ts, after the prPublication.js mock). test/prCommentAgentUtils.test.ts already handles that module the same way.

ESLint isn't set up for root test/ files, so I couldn't lint this one.

There are no visual changes, so I didn't make previews.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @github-actions[bot]
  • Time: 2m 15s
  • Tokens: 612,631 (610,098 in / 2,533 out)
  • Cost: $0.47

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6039169194✓

…b.test.ts`. The failure came from the test's setup, not from the merge-conflict code, and the file now passes locally (22 of 22). I ran only this file, not the full suite.

I fixed the shard 4 failure in `test/processMergeConflictJob.test.ts`. The failure came from the test's setup, not from the merge-conflict code, and the file now passes locally (22 of 22). I ran only this file, not the full suite.

**Cause:** this PR added `src/jobs/networkEgress.ts`, and `prCommentAgentUtils.js` imports it. `processMergeConflictJob.ts` imports `prCommentAgentUtils.js`, so loading the job now loads `networkEgress.ts` too. That file imports `executeWithNetworkPolicy` and other network-policy functions from `@propr/core`. The test replaces `@propr/core` with a fixed list of fake exports that doesn't include them. So the file crashed while loading with `SyntaxError: The requested module '@propr/core' does not provide an export named 'executeWithNetworkPolicy'`, before any test ran.

**Fix:** the test now replaces `../src/jobs/networkEgress.js` too, with a `runWithNetworkPolicy` that just runs the work it's given (`test/processMergeConflictJob.test.ts`, after the `prPublication.js` mock). `test/prCommentAgentUtils.test.ts` already handles that module the same way.

ESLint isn't set up for root `test/` files, so I couldn't lint this one.

There are no visual changes, so I didn't make previews.

PR: #2847
Comment by: @github-actions[bot] (ID: 6039169194)
Model: Claude Opus 5.5
@integry

integry commented Oct 7, 2026

Copy link
Copy Markdown
Owner

/review astra fable

@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 2 reviews:

View Task Details

@propr-dev

propr-dev Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The PR implements restricted container networking through a worker-side proxy and Unix socket, with policy settings, lifecycle cleanup, and timeline reporting. It needs a localized correction before merge: equivalent IPv6 address spellings do not match consistently.

✅ Container isolation — Supported restricted runs use --network none, with the proxy bridge started before repository hooks and agent execution.

✅ Private-address protection — Direct connections use vetted DNS results, and repository entries cannot independently authorize private addresses.

✅ Validation coverage — Tests cover proxying, refusals, cancellation, cleanup, and real container transports. The supplied current-head status reports 42 passed checks and no failures.

This review is based on static inspection; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F8: 🔴 Normalize equivalent IPv6 address spellings

  • Required behavior: Accepted IP-literal allowlist entries must authorize the specified address consistently, including the documented administrator exception for private addresses.

  • Evidence: packages/core/src/network/egressAllowlist.ts, normalizeEgressHost and compileEgressAllowlist; packages/core/src/network/egressProxy.ts, reachable and the plain HTTP handler.

    1. An administrator allows registry.internal.example.com:5000 and [fd00:0:0:0:0:0:0:5]:5000. Both entries pass validation.
    2. A restricted container requests the registry, whose DNS lookup returns fd00::5.
    3. The hostname check passes, but reachable() checks the resolved private address against the administrator’s address allowlist.
    4. Normalization only lowercases and removes brackets or a trailing dot. The comparison therefore evaluates fd00::5 === fd00:0:0:0:0:0:0:5 as false, and the proxy returns 403 despite explicit administrator authorization.

    The same mismatch affects literal HTTP URLs: new URL() compresses an expanded IPv6 hostname before the initial allowlist comparison. Validation accepts both representations, while the existing tests use matching spellings and do not exercise address equivalence.

    static trace: Followed parsing, string comparison, DNS address authorization, and HTTP URL normalization in the supplied code. proposed regression: Allow an expanded private IPv6 literal, return its compressed equivalent from the lookup seam, and verify that the authorized connection proceeds; also cover an absolute-form IPv6 HTTP URL.

  • Minimum fix: Canonicalize IP literals consistently when compiling entries and comparing request or resolved addresses. Add regression coverage for expanded versus compressed IPv6 representations in both authorization paths.

Suggestions

These are optional follow-ups and are not sent to /fix.

S32: 🟢 Test the candidate agent image

The smoke workflow pulls propr/agent:latest, even when triggered by Dockerfile or entrypoint changes. Consider testing an image built from the reviewed commit so those changes receive container-level validation too. This is optional here because the new proxy and bridge come from the checkout, and the supplied current-head smoke check passes.

Score

The implementation has substantial coverage and passing current checks, but an accepted IPv6 configuration can incorrectly block an explicitly authorized registry. The correction is localized.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 2m 22s
  • Tokens: 144,717 (142,094 in / 2,623 out)
  • Cost: $1.49

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F8 S32

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — fable

Overall Evaluation

This PR implements issue #2743: restricted network egress for agent containers through a per-run, per-container allowlist proxy on the worker, without privileged containers. The design is sound: the container gets --network none, a read-only bind mount of a Unix socket directory, an in-container TCP→socket bridge on 127.0.0.1:3128, and the standard proxy variables (plus Git's http.proxy via GIT_CONFIG_*). The proxy resolves DNS on the worker, vets every resolved address against non-public ranges (including IPv4-mapped and NAT64 forms), dials only the vetted addresses with RFC 8305-style interleaving, chains through the worker's own proxy when present, bounds the handshake but not the established stream, and records denials/failures into a per-run report that becomes a network.egress timeline event. Policy resolution (instance env → stored settings → repository network block, with enforcement and ignoreRepositoryAllow) is clean, fails closed on an unreadable settings read (with bounded SQLite-contention retry), and a safety-net resolver covers agent containers started outside any run scope. The dead init-firewall.sh/iptables material is removed consistently across image, bundle hashes, notices and docs.

Coverage is extensive and real: unit tests for allowlist parsing (with a UI parity test), proxy behaviour (CONNECT, absolute-form HTTP, Host rewriting, hop-by-hop stripping, upstream chaining with credentials, 502/504 accounting, mid-body drop), address policy, orphan sweeping across PID namespaces, argument rewriting in every Docker env/network form, a Docker-gated container smoke test, and a live provider transport test run by a new CI workflow. All current-head checks pass, including the restricted-network container smoke.

✅ Address vetting closes the worker-position SSRF hole — egressProxy.ts refuses any allowed name that resolves to a non-public address unless an instance IP-literal entry names it (addressAllowlist is policy.instanceAllow, never repository entries), checks every resolved address, and connects only to those addresses (no second lookup); egressProxyAddressPolicy.test.ts proves repository entries cannot open loopback/private targets.

✅ Cleanup and lifetime are tied to the container, with a correct sweeper — prepareDockerRunNetwork releases the proxy and directory in a finally for executeDockerCommand and on close for directly spawned goal sessions; cancellation after the proxy started still releases it; the sweeper judges PIDs only inside the same boot+PID namespace and refreshes live directories so a long run on a shared root is never reaped.

✅ Fail-closed policy reads — loadInstanceNetworkPolicy uses getConfigStrict, retries only SQLite contention within one shared budget, and the unscoped resolver path refuses the container when the settings database is unavailable (networkEgressPolicyCoverage.test.ts).

I found no PR-introduced defect that I could drive from a reachable trigger to an incorrect observable outcome. The PR is merge-ready within scope; the items below are optional follow-ups.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S33: 🟢 Expect denied telemetry hosts on every Claude/Codex run

AGENT_EGRESS_BASE_HOSTS lists only API/sign-in hosts. Claude Code's non-essential traffic (Statsig, Sentry, update checks) and Codex's telemetry are not listed, so in production restricted runs those connections will be denied and every run will be labelled "Restricted Network: Connections Denied" with the amber attention icon. The live provider test avoids this by setting CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, but prepareDockerRunNetwork does not inject it. Consider adding CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 (and the Codex equivalent) alongside the proxy variables in restricted mode, or listing the known telemetry hosts as expected-denied so the attention signal stays meaningful. Behaviour is correct either way, so this is UX hardening, not a blocker.

S34: 🟢 Verify the indexing worker's socket mount in production Compose

The dev docker-compose.yml and the launcher mount /tmp/propr-egress into both the worker and the indexing worker, but the docker-compose.prod.yml diff adds the env and volume only to the worker service, and test/agentNetworkDeploymentContract.test.mjs checks only worker and api. I could not see whether the production Compose file defines a separate indexing-worker service. If it does, restricted-mode summarization containers would mount an empty host directory, the bridge prelude would report the missing socket, and indexing would run with no network at all (failing closed but silently from the operator's view). Extending the contract test to every service that runs agent containers would settle this.

S35: 🟢 Audit non-agent docker runs inside enforced run scopes, and the API process

Inside a restricted run, any docker run whose container does not identify a supported agent falls back to open (non-enforced) or is refused with NetworkPolicyError (enforced) — by design, per egressExecution.ts. If any worker code path starts a helper container inside the execute closure of runWithNetworkPolicy (preview capture, hook runners, etc.), enforced mode would fail that step with "container does not identify a supported agent". I did not find such a path in the supplied context, but a grep of executeDockerCommand callers reachable from within agent execution would confirm it. Separately, the API process registers neither the sweeper nor the unscoped resolver, so plan generation and login containers run open even when the instance enforces restricted mode; the docs say so, but an enforcing operator may not expect it.

S36: 🟢 Make the PR-triggered smoke workflow less dependent on live externals and the published image

restricted-network-smoke.yml runs on pull requests touching the proxy and executes agentProviderEgress.test.ts against real provider endpoints, asserting failedConnections === 0, using propr/agent:latest rather than an image built from the PR. A provider outage, models.dev hiccup, or a published-image/entrypoint skew will fail unrelated PRs, and the job does not exercise this PR's own entrypoint/Dockerfile changes. Building the agent image in the job (or at least scoping the provider test to the nightly schedule) would make the signal more reliable.

S37: 🟢 Preflight for hosts where Unix sockets cannot be bind-mounted

The docs note that Docker Desktop file sharing does not support Unix sockets, yet the launcher unconditionally mounts /tmp/propr-egress. On such a host a restricted run ends with a container that has no network at all and only a stderr line from the bridge prelude. A worker-side preflight (create a socket under the root and confirm a throwaway container can connect to it) or a one-time warning when restricted mode is first resolved would turn a confusing run failure into an actionable message.

S38: 🟢 Nested runWithNetworkPolicy scopes would double-record

executeWithNetworkPolicy always creates a fresh context, so if a code path inside a runWithNetworkPolicy closure ever calls resolveAndExecuteAgent/runRepositoryWorkflow again (for example a review routing outcome that reuses the comment-agent utilities), the inner scope would write a second network.egress event with a separate recorder. Nothing in the diff does this today; reusing an existing store when the policy matches would make the helper safe to compose.

S39: 🟢 Consider Git LFS and media hosts in the base list

media.githubusercontent.com and *.lfs.github.com-style endpoints are not in COMMON_HOSTS, so repositories using Git LFS will see their fetches denied until they add entries. Not a correctness issue, just a likely first-day allowlist addition worth pre-empting in the docs or base list.

Score

A large, security-sensitive feature delivered with a careful threat model (worker-position address vetting, fail-closed policy reads, per-container proxies with sound cleanup), strong unit and container-level test coverage, consistent docs, and all current-head checks green; the remaining items are operational hardening and verification gaps rather than defects.

Score: 8/10


🤖 Review Details

  • Model: Claude Fable 5.1
  • Time: 7m 31s
  • Tokens: 248,099 (213,900 in / 34,199 out)
  • Cost: $4.38

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S33 S34 S35 S36 S37 S38 S39

🤖 Review by ProPR

@integry

integry commented Oct 7, 2026

Copy link
Copy Markdown
Owner

/fix all

@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c946eaa

Addressed 2 AI review comments (IDs: 6040410612, 6040556131)

Addressed finding F8 · suggestions S32, S33, S34, S35, S36, S37, S38, S39

Summary of Changes

All nine records are applied and verified locally. Nothing is left to fetch.

F8, fixed. Every IP literal now passes through one canonical spelling in normalizeEgressHost, using Node's SocketAddress, with any zone suffix kept. That covers allowlist entries, CONNECT authorities, the plain HTTP URL host that new URL() compresses, and the resolved addresses checked against the administrator's address allowlist. I checked the siblings: bypassesUpstreamProxy and deniedTarget go through the same normalization, and the settings UI's parity copy only validates, so its error messages are unchanged. New tests cover an expanded administrator entry with a compressed DNS answer, three CONNECT spellings, an absolute-form IPv6 URL, and IPv4-mapped forms. Those tests fail on the old allowlist code and pass now.

Suggestions:

  • S32 and S36. The smoke workflow now builds propr/agent:<sha> from the checkout with the same build script the preview pipeline uses, unless a dispatch names a published image. The live provider test runs only nightly and on dispatch, so a provider outage cannot fail a pull request. The job moved to the amd64 runner with a longer timeout, and the build script was added to the trigger paths.
  • S33. A restricted Claude container gets CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 unless the run's configuration already sets it. I did not find a documented Codex equivalent in the bundled docs, so the docs note that Codex exports telemetry only when its config enables an exporter.
  • S34. The legacy production Compose file defines no indexing worker, so no Compose change was needed. The contract test now checks every service that runs a worker process for the socket directory env and mount, and holds any future indexing service to it.
  • S35. Audit result: inside worker run scopes, the only non-agent docker run sites are the exempt Agent Tank probe and the runtime package inspection, which already uses --network none. The package catalog queries and image builds happen in the API or outside runs. The docs now say plainly that plan generation and login containers in the API process run open even under enforcement.
  • S37. Before its first restricted container, each worker process runs one throwaway container with the run's own image and mount and checks for the socket. Failure logs one warning naming both directory settings and the Docker Desktop limitation. It is enabled from the existing worker safety-net helper, so the two worker entry files are unchanged.
  • S38. A nested executeWithNetworkPolicy with the same policy now joins the enclosing record and reports nested: true, and runWithNetworkPolicy skips recording in that case. A nested scope with a different policy keeps its own record. Tests cover both, including the failure path.
  • S39. Added media.githubusercontent.com and github-cloud.githubusercontent.com to the base list, with a docs note for repositories whose LFS objects live elsewhere.

Verification. The three core egress suites (40 tests) and the four root suites (16 tests) pass. Root lint, core lint and the root typecheck are clean, except the pre-existing complexity warning in core's dockerResultProcessor.ts. The Docker-gated suites skip here, so the rebuilt workflow and the preflight have not run against a real daemon. No preview files were created because none of this is visible in the UI.


🤖 Implementation Details

  • Model: Claude Fable 5.1 (medium)
  • Requested By: @integry
  • Time: 13m 5s
  • Tokens: 4,625,033 (4,573,809 in / 51,224 out)
  • Cost: $5.92
  • Subscription usage: Session +8%, Weekly +1%, Fable +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6041416135✓

…is left to fetch.

All nine records are applied and verified locally. Nothing is left to fetch.

**F8, fixed.** Every IP literal now passes through one canonical spelling in `normalizeEgressHost`, using Node's `SocketAddress`, with any zone suffix kept. That covers allowlist entries, CONNECT authorities, the plain HTTP URL host that `new URL()` compresses, and the resolved addresses checked against the administrator's address allowlist. I checked the siblings: `bypassesUpstreamProxy` and `deniedTarget` go through the same normalization, and the settings UI's parity copy only validates, so its error messages are unchanged. New tests cover an expanded administrator entry with a compressed DNS answer, three CONNECT spellings, an absolute-form IPv6 URL, and IPv4-mapped forms. Those tests fail on the old allowlist code and pass now.

**Suggestions:**
- **S32 and S36.** The smoke workflow now builds `propr/agent:<sha>` from the checkout with the same build script the preview pipeline uses, unless a dispatch names a published image. The live provider test runs only nightly and on dispatch, so a provider outage cannot fail a pull request. The job moved to the amd64 runner with a longer timeout, and the build script was added to the trigger paths.
- **S33.** A restricted Claude container gets `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1` unless the run's configuration already sets it. I did not find a documented Codex equivalent in the bundled docs, so the docs note that Codex exports telemetry only when its config enables an exporter.
- **S34.** The legacy production Compose file defines no indexing worker, so no Compose change was needed. The contract test now checks every service that runs a worker process for the socket directory env and mount, and holds any future indexing service to it.
- **S35.** Audit result: inside worker run scopes, the only non-agent `docker run` sites are the exempt Agent Tank probe and the runtime package inspection, which already uses `--network none`. The package catalog queries and image builds happen in the API or outside runs. The docs now say plainly that plan generation and login containers in the API process run open even under enforcement.
- **S37.** Before its first restricted container, each worker process runs one throwaway container with the run's own image and mount and checks for the socket. Failure logs one warning naming both directory settings and the Docker Desktop limitation. It is enabled from the existing worker safety-net helper, so the two worker entry files are unchanged.
- **S38.** A nested `executeWithNetworkPolicy` with the same policy now joins the enclosing record and reports `nested: true`, and `runWithNetworkPolicy` skips recording in that case. A nested scope with a different policy keeps its own record. Tests cover both, including the failure path.
- **S39.** Added `media.githubusercontent.com` and `github-cloud.githubusercontent.com` to the base list, with a docs note for repositories whose LFS objects live elsewhere.

**Verification.** The three core egress suites (40 tests) and the four root suites (16 tests) pass. Root lint, core lint and the root typecheck are clean, except the pre-existing complexity warning in core's `dockerResultProcessor.ts`. The Docker-gated suites skip here, so the rebuilt workflow and the preflight have not run against a real daemon. No preview files were created because none of this is visible in the UI.

PR: #2847
Comment by: @integry (ID: 6041416135)
Model: Claude Fable 5.1
@integry

integry commented Oct 7, 2026

Copy link
Copy Markdown
Owner

/review fable astra

@propr-dev

propr-dev Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 2 reviews:

View Task Details

@propr-dev

propr-dev Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — fable

Overall Evaluation

This PR implements issue #2743: a per-run, worker-side HTTP/HTTPS CONNECT proxy behind a Unix socket, with agent containers started under --network none and the socket bind-mounted in, so restricted egress needs no privileged containers or NET_ADMIN. The policy is layered (env defaults → stored instance settings → .propr/workflow.yml network block, with instance enforcement), wired through every job entry point in the worker and indexing worker (runWithNetworkPolicy in repositoryWorkflow.ts, prCommentAgentUtils.ts, processGoalJob.ts, prCommentReviewJob.ts, indexing_worker.ts), plus a process-level safety net for agent containers started outside any scope. Settings UI/CLI/MCP, docs, schema, CHANGELOG and a dedicated Docker-backed CI workflow are included. The dead iptables script is removed cleanly.

The current head is green on all 42 checks, including the new "Restricted network container smoke" job, which exercises the socket mount, in-container bridge and allow/deny decisions against a real agent image built from this checkout. I traced the argument rewriting (prepareDockerRunNetwork), the proxy's CONNECT/plain-HTTP paths, scope nesting, failure propagation, cleanup/sweeping and the settings persistence path and did not find a demonstrable merge blocker. The code quality is high and the tests are unusually thorough for this kind of feature.

✅ Resolve-then-dial with private-address refusal — egressProxy.ts resolves hostnames once on the worker, vets every returned address against isNonPublicAddress (including IPv4-mapped and NAT64 forms), and dials only the vetted addresses (connectToFirstAddress), so DNS rebinding and SSRF into the worker's loopback/Compose network are closed; only an administrator's IP-literal entry (addressAllowlist) opens a non-public address, and repository entries never do. egressProxyAddressPolicy.test.ts covers each path.

✅ Fail-closed policy read and single timeline record — loadInstanceNetworkPolicy uses getConfigStrict under a shared SQLite contention budget, so an unreadable policy fails the run rather than silently opening it, and executeWithNetworkPolicy joins same-policy nested scopes (nested: true) so a job reusing another job's helpers produces exactly one network.egress event, with the report still attached to a failed run via networkEgressReportFromError.

✅ Argument rewriting handles every Docker env/network spelling — dockerEnvOptions/dockerRunNetworkOptions cover -e K=V, -e K, --env=K=V, -eK=V, --network x, --network=x, --net, and the inherited-variable form, replacing caller proxy variables rather than duplicating them and extending GIT_CONFIG_COUNT correctly (networkEgressPolicyCoverage.test.ts, networkEgressExecution.test.ts).

The PR is merge-ready within scope. The one material caveat is that the live provider-transport test (test/agentProviderEgress.test.ts, which proves each CLI actually honours the proxy variables) runs only nightly or on dispatch and has not yet run on this head; a failure there would make restricted runs fail closed (visibly), not open, so it is a verification gap rather than a safety regression.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S40: 🟢 A nested scope with a different policy can relax an enclosing restricted scope

In packages/core/src/network/egressExecution.ts (executeWithNetworkPolicy), a nested call whose policy differs from the enclosing one runs networkEgressExecution.run(context, execute) with its own context, which fully replaces the enclosing one for everything started inside. If an inner helper resolves its policy with workflow: undefined (e.g. resolveAndExecuteAgent or processGoalJob-style callers) while the outer scope was restricted from a repository network.mode: restricted on an open instance, the inner containers would run open. I could not find a reachable caller in the supplied context that does this (the review job passes the same state.repositoryWorkflow, and the timeline test exercises same-policy nesting), so this is not a blocker, but the invariant "a nested scope never relaxes an enclosing restricted scope" is cheap to enforce: when the enclosing policy is restricted and the new one is open, join the enclosing scope (or run the enclosing policy) instead of replacing it. This would also avoid two network.egress events for one run when the allowlists merely differ.

S41: 🟢 Run the provider-transport test on this head before relying on restricted mode

AGENT_EGRESS_PROXY_SUPPORT marks Claude Code, Codex (including its WebSocket stream), OpenCode (Bun) and Vibe (httpx) as supported, but the only test that proves those clients route through the proxy (test/agentProviderEgress.test.ts) is gated to github.event_name != 'pull_request' in .github/workflows/restricted-network-smoke.yml. The PR-time smoke test proves the socket/bridge/allowlist mechanism with curl, not the agents. A wrong supported: true would make every restricted run of that agent fail closed (no DNS, no route) rather than open, so this is availability, not security, but a workflow_dispatch run against this branch before merge (or before enabling restricted mode in production) would close the gap.

S42: 🟢 Safety net and docs leave non-enforced restricted instances partially uncovered

resolveUnscopedNetworkPolicy only applies the instance policy when source === 'instance_enforced', so an instance with agent_network_mode: restricted but agent_network_mode_enforced: false still lets any agent container started outside a runWithNetworkPolicy scope run open and silently. The docs state this for the enforced case; it would help to either apply a non-enforced restricted default to unscoped containers too (fallback semantics for unsupported agents already exist), or list the known unscoped paths explicitly. In particular I could not verify from the supplied context whether the merge-conflict auto-resolution job and Ultrafix continuation paths enter a scope (the processMergeConflictJob.test.ts change shows the job imports networkEgress.js transitively, but not that its agent run is wrapped).

S43: 🟢 Reviews now fail on any workflow read error, even without a spend cap

prepareReviewRepositoryWorkflow in src/jobs/prCommentReviewJob.ts always loads the workflow, whereas applyReviewWorkflowCostCap previously returned early when no cost guard was active. A transient GitHub error reading .propr/workflow.yml now fails a /review that previously would have run. This is a deliberate fail-closed choice (the file may restrict the review's network), and withRetry already covers transient errors upstream, but it is a behavior change worth a line in the CHANGELOG, and a repository without a workflow file is unaffected.

S44: 🟢 Audit helper containers inside enforced restricted scopes

Under instance_enforced, any networked docker run inside the scope that does not carry PROPR_AGENT_TYPE is refused with NetworkPolicyError ("container does not identify a supported agent"), per networkEgressExecution.test.ts. The docs say the usage probe is exempted and package inspection already uses --network none; if any other helper container (e.g. a preview-capture or diagnostics container) is ever started inside agent.executeTask, it would hard-fail the run. A grep-based test asserting that every executeDockerCommand('docker', ['run', ...]) call site reachable from a run either carries PROPR_AGENT_TYPE, --network none, or networkPolicyExempt would keep this from regressing silently.

S45: 🟢 Validate the socket path length at startup

server.listen(socketPath) is bound by the 108-byte sun_path limit. The default /tmp/propr-egress/<uuid>/proxy.sock is 66 bytes, but an operator-supplied PROPR_EGRESS_SOCKET_DIR deeper than ~42 bytes would make every restricted run fail at startEgressProxy with an opaque EINVAL/ENAMETOOLONG. A one-time check in enforceInstanceNetworkPolicyOutsideRuns or startEgressProxySweeper that logs an actionable warning would mirror the mount preflight already added.

S46: 🟢 Settings API reports defaults when the stored policy is unreadable

agentNetworkSettingsResponse in packages/api/routes/configRoutesSettings.ts uses the non-strict configStore.getConfig, so a corrupt or unreadable stored value renders as "environment default" in the UI, while the worker's strict loadInstanceNetworkPolicy fails the run. Surfacing read failures in invalid_settings (as the integer settings do) would make the two views agree.

Score

The implementation satisfies the original objective end to end with fail-closed defaults, strong SSRF protections, exhaustive unit/integration tests and a passing Docker-backed smoke job on the current head; no PR-introduced correctness or safety regression was demonstrated, with only the untriggered nightly provider test and a few hardening items left as follow-ups.

Score: 8/10


🤖 Review Details

  • Model: Claude Fable 5.1
  • Time: 6m 25s
  • Tokens: 239,814 (211,262 in / 28,552 out)
  • Cost: $4.07

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S40 S41 S42 S43 S44 S45 S46

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

Ready to merge within scope. The PR implements restricted egress through worker-side proxies and isolated container networking, with configuration, cleanup, and reporting integrated across the supported execution paths. The authoritative current-head checks report 42 passed, none failed, and none pending.

✅ Enforced network isolation — Supported containers receive --network none; unsupported agents are refused when instance enforcement applies.

✅ Address validation — Direct connections use vetted DNS results, and private addresses require instance-authorized IP entries.

✅ Lifecycle coverage — Both executor-managed containers and directly spawned goal sessions release their proxies, with orphan cleanup and regression coverage.

This assessment is based on static review of the supplied code; no commands were run.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S47: 🟢 Distinguish provider and proxy rejection

In test/agentProviderEgress.test.ts, PROVIDER_REJECTED accepts any 403, including the egress proxy’s own denial. An invocation that successfully contacts an auxiliary allowed endpoint but receives a proxy-generated 403 for its provider could satisfy the current assertions. Consider checking provider-specific connection evidence and excluding proxy denial messages from authentication evidence. This strengthens the transport test; the supplied code does not demonstrate that any currently supported agent actually encounters this failure.

Score

The implementation addresses the objective with substantial boundary, lifecycle, and integration coverage, and current checks are green. No verified merge blocker remains.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 58s
  • Tokens: 141,801 (139,618 in / 2,183 out)
  • Cost: $1.39

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S47

🤖 Review by ProPR

@integry
integry merged commit 2f381fa into main Oct 7, 2026
51 checks passed
@integry
integry deleted the 2743/claude-opus-5-5-restricted-network-egress-20261006-2103-yel branch October 7, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restricted network egress for agent containers via a per-run host proxy

2 participants