Skip to content

[2547 by Claude Opus 5] Bundle Agent Tank into the unified agent image and add a three-state (disabled / bundled / external) integration mode - #2555

Merged
integry merged 27 commits into
mainfrom
2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18
Sep 30, 2026
Merged

integry merged 27 commits into
mainfrom
2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2547

Branch: 2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18
Commits: ✅ Changes committed (ef92288)


AI Processing Completed

Execution Details:

Summary:
Implementation complete. Summary of what I built for #2547:

Three-state mode

  • packages/shared/src/agentTank.ts (new): AGENT_TANK_MODES, normalizeAgentTankMode, isAgentTankMode, agentTankModeFromLegacyEnabled — one vocabulary for core/API/CLI/UI.
  • configManagerAgents.ts: AgentTankSettings gains mode; enabled stays as a derived read-only field so all existing call sites keep working. loadAgentTankSettings reads the persisted value as unknown and normalizes, so a legacy {enabled:true,url} loads as {mode:'external',url} and {enabled:false} as disabled. AGENT_TANK_MODE is an env fallback only when no record exists.

Bundled runner

  • agentTankBundledRunner.ts (new): builds the config, runs agent-tank --once --json --config … in the configured agent image with each enabled agent's credential dir bind-mounted :ro at CONTAINER_CONFIG_PATHS, parses output, and owns the 60s TTL cache + in-flight coalescing. Every failure path returns undefined and leaves the prior snapshot intact.
  • I verified the config/output schema against integry/agent-tank rather than using the issue's speculative one. Upstream takes agents: [{ provider, id, configPath }] (not name/home), where configPath becomes CLAUDE_CONFIG_DIR/CODEX_HOME/GEMINI_CLI_HOME; --once --json prints a bare status map. Published version is 0.9.10, so that's the pin (not 1.4.0). OpenCode/Vibe are excluded — upstream rejects unknown providers, which would fail the whole run.
  • agentTankTypes.ts (new): the provider-key mapping and AgentStatusResponse moved here so the runner and the transport router don't import each other in a cycle; agentTankService re-exports them unchanged.

Surfaces

agentTankService routes by mode (bundled refreshAgent only schedules; getStatus is cache-only bounded by a 90s delta-freshness window) and gains getAllStatuses. API routes read/write mode and still accept legacy {enabled} bodies, preserving a saved URL when none is sent. propr tank bundled|external|off with on as a deprecated alias for external. MCP update_provider_policy takes mode, requiring url only for external. Settings UI is a radio group; the URL field exists only in external mode and bundled gets its own "ready/unavailable" wording.

Image

Dockerfile.agent gets an agent-tank-cli stage pinned at ARG AGENT_TANK_CLI_VERSION=0.9.10 (so it feeds the bundle content hash), a label, the bin link and a --version check. agent-entrypoint.sh dispatches agent-tank directly — skipping every per-agent ownership repair — and drops to node if root. build-images.sh passes the matching build arg.

Verification

  • New tests: settings migration (9), bundled runner incl. 10-concurrent-refresh → 1 container (9), mode routing (9), API routes (2), CLI (5), UI section (6), plus supply-chain and bundle-tag-changes assertions. 58 pass across the agent-tank suites.
  • npx tsc --noEmit clean in root, api, cli, propr-ui; lint clean in root, core, api, cli, propr-ui. Full UI vitest suite: 1411 passed.
  • Docs rewritten: agent-tank.md restructured around the three modes, configuration-reference.md documents the new env vars, plus propr-cli.md, observability.md, mcp-coverage.md, dockerhub/agent.md.
  • I captured Playwright previews of the new settings section in all three states (a new e2e/agent-tank-modes.pw.ts follows the repo's existing PROPR_CAPTURE_PREVIEWS pattern).

One thing I could not verify: docker run --rm propr/agent:<tag> agent-tank --version needs an actual image build, which isn't possible here. The Dockerfile RUN itself asserts agent-tank --version in both the install stage and the final stage, so a build failure would surface at build time.

Also worth flagging: test/ciRunnerRouting.test.mjs fails on this branch, but it's unrelated to this work — it hard-codes two apps/desktop/scripts/*electron*.test.mjs files while a third (published-preview-electron.test.mjs, added in commit b59b10c6) now exists. My changes touch nothing under apps/ or .github/.

Detailed Logs:

  • Conversation: 289 messages
  • Session: 5f8b3aa7-f046-4296-913d-9a40c5db94fe

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2547-2026-09-26T19-26-45-505Z-conversation.json
  • output: /tmp/claude-logs/issue-2547-2026-09-26T19-26-45-505Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: Implementation complete. Summary of what I built for #2547:

## Three-state mode
- **`packages/shared/src/agentTank.ts`** (new): `AGENT_TANK_MODES`, `normalizeAgentTankMode`, `isAgentTankMode`, `agent...


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


💡 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

Settings — Agent Tank bundled mode

Settings — Agent Tank bundled mode

Bundled mode selected. The Daemon URL field is hidden because no URL is used, and the status reads "Bundled Agent Tank ready" rather than talking about an unreachable daemon.

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

Settings — Agent Tank disabled (default)

Settings — Agent Tank disabled (default)

The LLM Usage Tracking section on a fresh install: a three-mode radio group with Disabled selected and no Daemon URL field.

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

Settings — Agent Tank external mode

Settings — Agent Tank external mode

External mode selected. Only here does the Daemon URL field appear, pre-filled with the saved endpoint an upgraded installation migrates over.

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

Three-state mode
- `packages/shared/src/agentTank.ts` (new): `AGENT_TANK_MODES`, `normalizeAgentTankMode`, `isAgentTankMode`, `agentTankModeFromLegacyEnabled` — one vocabulary for core/API/CLI/UI.
- `configManagerAgents.ts`: `AgentTankSettings` gains `mode`; `enabled` stays as a derived read-only field so all existing call sites keep working. `loadAgentTankSettings` reads the persisted value as `unknown` and normalizes, so a legacy `{enabled:true,url}` loads as `{mode:'external',url}` and `{enabled:false}` as `disabled`. `AGENT_TANK_MODE` is an env fallback only when no record exists.

Bundled runner
- `agentTankBundledRunner.ts` (new): builds the config, runs `agent-tank --once --json --config …` in the configured agent image with each enabled agent's credential dir bind-mounted `:ro` at `CONTAINER_CONFIG_PATHS`, parses output, and owns the 60s TTL cache + in-flight coalescing. Every failure path returns `undefined` and leaves the prior snapshot intact.
- I verified the config/output schema against `integry/agent-tank` rather than using the issue's speculative one. Upstream takes `agents: [{ provider, id, configPath }]` (not `name`/`home`), where `configPath` becomes `CLAUDE_CONFIG_DIR`/`CODEX_HOME`/`GEMINI_CLI_HOME`; `--once --json` prints a bare status map. Published version is 0.9.10, so that's the pin (not `1.4.0`). OpenCode/Vibe are excluded — upstream rejects unknown providers, which would fail the whole run.
- `agentTankTypes.ts` (new): the provider-key mapping and `AgentStatusResponse` moved here so the runner and the transport router don't import each other in a cycle; `agentTankService` re-exports them unchanged.

Surfaces
`agentTankService` routes by mode (bundled `refreshAgent` only *schedules*; `getStatus` is cache-only bounded by a 90s delta-freshness window) and gains `getAllStatuses`. API routes read/write `mode` and still accept legacy `{enabled}` bodies, preserving a saved URL when none is sent. `propr tank bundled|external|off` with `on` as a deprecated alias for `external`. MCP `update_provider_policy` takes `mode`, requiring `url` only for external. Settings UI is a radio group; the URL field exists only in external mode and bundled gets its own "ready/unavailable" wording.

Image
`Dockerfile.agent` gets an `agent-tank-cli` stage pinned at `ARG AGENT_TANK_CLI_VERSION=0.9.10` (so it feeds the bundle content hash), a label, the bin link and a `--version` check. `agent-entrypoint.sh` dispatches `agent-tank` directly — skipping every per-agent ownership repair — and drops to `node` if root. `build-images.sh` passes the matching build arg.

Verification
- New tests: settings migration (9), bundled runner incl. 10-concurrent-refresh → 1 container (9), mode routing (9), API routes (2), CLI (5), UI section (6), plus supply-chain and bundle-tag-changes assertions. 58 pass across the agent-tank suites.
- `npx tsc --noEmit` clean in root, api, cli, propr-ui; lint clean in root, core, api, cli, propr-ui. Full UI vitest suite: 1411 passed.
- Docs rewritten: `agent-tank.md` restructured around the three modes, `configuration-reference.md` documents the new env vars, plus `propr-cli.md`, `observability.md`, `mcp-coverage.md`, `dockerhub/agent.md`.
- I captured Playwright previews of the new settings section in all three states (a new `e2e/agent-tank-modes.pw.ts` follows the repo's existing `PROPR_CAPTURE_PREVIEWS` pattern).

One thing I could not verify: `docker run --rm propr/agent:<tag> agent-tank --version` needs an actual image build, which isn't possible here. The Dockerfile `RUN` itself asserts `agent-tank --version` in both the install stage and the final stage, so a build failure would surface at build time.

Also worth flagging: `test/ciRunnerRouting.test.mjs` fails on this branch, but it's unrelated to this work — it hard-codes two `apps/desktop/scripts/*electron*.test.mjs` files while a third (`published-preview-electron.test.mjs`, added in commit b59b10c6) now exists. My changes touch nothing under `apps/` or `.github/`.
@propr-dev

propr-dev Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=9 max=3
Triggered automatically by Planner execution settings.

@propr-dev propr-dev Bot added the ultrafix label Sep 26, 2026
@propr-dev

propr-dev Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 9/10, max cycles: 3)

First action: /review

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

@propr-dev

propr-dev Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: ef92288e45f3 (ef92288e45f3bb636a711435f65ff6e65d5e4e3d)
  • Details: View CI failure

Failure evidence

.github:21
Process completed with exit code 1.

.github:17621
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 Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 2deac23

Summary of Changes

Cause of the shard 4 failure

Shard 4 reported 138 passed / 1 failed; the only failing unit was test/ciRunnerRouting.test.mjs → "requires real hosted native Electron assertions on both routes":

+   'apps/desktop/scripts/published-preview-electron.test.mjs'   (actual)

The native-electron job in .github/workflows/pr-test-on-label.yml:396 discovers its units dynamically (grep -l 'prepareNativeElectronTest(' apps/desktop/scripts/*.test.mjs, minus the harness's own unit), but the test pinned that discovery to a two-file literal. Commit b59b10c56 (on main, merged into this branch's base) added a third native probe, apps/desktop/scripts/published-preview-electron.test.mjs, without updating the literal — so the assertion went stale. Nothing in this PR's Agent Tank work is involved; the job's own Electron run (Full Test Suite Native Electron (hosted)) passed with all three units.

Fix (test/ciRunnerRouting.test.mjs:533)

Derive the expectation from the repository the same way the workflow does, instead of a hand-maintained list: collect every apps/desktop/scripts/*.test.mjs that calls prepareNativeElectronTest(, assert the harness's own unit is discoverable and excluded from the hosted route, and compare the remainder against the workflow's mapfile output. The guard still fails if discovery stops picking up a native probe or starts pulling in the harness unit, but a newly added probe no longer breaks it.

Verification

  • test/ciRunnerRouting.test.mjs: 44 tests, 44 pass (was failing on this commit).
  • Sibling CI-contract suites ciFullSuiteSelection, ciWorkflowDeduplication, ciChangeClassification, testSuiteRunner: 170 tests, all pass.
  • This branch's Agent Tank units (agentTankBundledRunner, agentTankService, agentTankSettingsMigration, agentDockerfileSupplyChain, configRoutesAgentTank, tankCommands): 6/6 units pass.

Shards 1–3 and the docs job were still queued in that run, so only shard 4's result was available to diagnose; no other failures were reported. No preview files were created — this is a CI test-assertion fix with no user-visible surface.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @propr-dev[bot]
  • Time: 6m 42s
  • Tokens: 1,412,669 (1,401,865 in / 10,804 out)
  • Cost: $1.29
  • Subscription usage: Session +6%, Weekly +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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5849359335✓

**Cause of the shard 4 failure**

Shard 4 reported 138 passed / 1 failed; the only failing unit was `test/ciRunnerRouting.test.mjs` → *"requires real hosted native Electron assertions on both routes"*:

```
+   'apps/desktop/scripts/published-preview-electron.test.mjs'   (actual)
```

The `native-electron` job in `.github/workflows/pr-test-on-label.yml:396` discovers its units dynamically (`grep -l 'prepareNativeElectronTest(' apps/desktop/scripts/*.test.mjs`, minus the harness's own unit), but the test pinned that discovery to a two-file literal. Commit `b59b10c56` (on `main`, merged into this branch's base) added a third native probe, `apps/desktop/scripts/published-preview-electron.test.mjs`, without updating the literal — so the assertion went stale. Nothing in this PR's Agent Tank work is involved; the job's own Electron run (`Full Test Suite Native Electron (hosted)`) passed with all three units.

**Fix** (`test/ciRunnerRouting.test.mjs:533`)

Derive the expectation from the repository the same way the workflow does, instead of a hand-maintained list: collect every `apps/desktop/scripts/*.test.mjs` that calls `prepareNativeElectronTest(`, assert the harness's own unit is discoverable and excluded from the hosted route, and compare the remainder against the workflow's `mapfile` output. The guard still fails if discovery stops picking up a native probe or starts pulling in the harness unit, but a newly added probe no longer breaks it.

**Verification**

- `test/ciRunnerRouting.test.mjs`: 44 tests, 44 pass (was failing on this commit).
- Sibling CI-contract suites `ciFullSuiteSelection`, `ciWorkflowDeduplication`, `ciChangeClassification`, `testSuiteRunner`: 170 tests, all pass.
- This branch's Agent Tank units (`agentTankBundledRunner`, `agentTankService`, `agentTankSettingsMigration`, `agentDockerfileSupplyChain`, `configRoutesAgentTank`, `tankCommands`): 6/6 units pass.

Shards 1–3 and the docs job were still queued in that run, so only shard 4's result was available to diagnose; no other failures were reported. No preview files were created — this is a CI test-assertion fix with no user-visible surface.

PR: #2555
Comment by: @propr-dev[bot] (ID: 5849359335)
Model: claude-opus-5
@integry

integry commented Sep 26, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18 in commit f2f10e6

Conflicting Files

  • test/ciRunnerRouting.test.mjs

Resolution Summary

Resolved the single conflict in test/ciRunnerRouting.test.mjs.

  • Conflict: Both branches updated native Electron test discovery and its assertions.
  • Resolution: Preserved the PR’s dynamic discovery, harness discovery check, and harness exclusion. Added main’s explicit checks that the frame-semantics and pairing-zstd probes are included.
  • Reason: This preserves automatic discovery of future native tests while retaining both branches’ regression safeguards.

Verification: syntax check passed, all 44 tests passed, and git diff --check passed. The repository-wide scan found no remaining merge conflicts; matching separator lines in dependency documentation are ordinary Markdown.


🤖 Resolution Details

  • Model: gpt-6-astra
  • Time: 4m 20s

View Task Execution


System-triggered merge conflict resolution

…nt-tank-into-th-20260926-1849-t18

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- test/ciRunnerRouting.test.mjs

PR: #2555
Model: gpt-6-astra
@propr-dev

propr-dev Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: f2f10e67c272 (f2f10e67c272384f805c9cb9d94ea9b4b13554d5)
  • Details: View CI failure

Failure evidence

.github:23
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 Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit db58429

Summary of Changes

What failed

Shard 4/4 passed all 139 of its 139 test units (Shard 4/4: 139/139 passed in 459.8s, every suite reporting # fail 0). The job failed in the teardown step afterwards:

Run ./scripts/ci-redis.sh stop
Error response from daemon: cannot remove container "8dc535d37f1d…": could not kill
container: container 8dc535d37f1d PID 2029746 is zombie and can not be killed.
Use the --init option when creating containers…
##[error]Process completed with exit code 1.

Two defects, both fixed:

1. The zombie was manufactured by the container's own health check. ci-redis.sh starts Redis with a redis-cli ping health check every 2s and no init process. Each health-check process is reparented to PID 1 in the container's namespace when its runc parent exits, and redis-server does not reap children — so a ~7.5 minute shard accumulated hundreds of zombies against a --pids-limit 64, ending with a PID 1 the rootless daemon could not kill.

scripts/ci-redis.sh:186 now passes --init, making tini PID 1 so it reaps them. --init is already used throughout this repo's Docker invocations, so runner support is established.

2. Teardown failing an otherwise-green shard. stop runs after the tests have already decided the job result, and no step in the job can reap a zombie PID. remove_container now returns a distinct status (UNREMOVABLE_STATUS=3) when ownership verifies fully but the daemon still refuses removal, and a new stop_for_teardown turns only that case into a ::warning:: annotation and exit 0, leaving the container for host cleanup. The state file is kept so a later teardown of the same owner retries. Ownership violations, and removal failures during start (where reusing the name would collide), still fail as before.

I also added an init-binary check to scripts/ci-rootless-preflight.sh, so a daemon that cannot run --init containers names that prerequisite instead of failing every shard's Redis start with an opaque OCI error.

Verification

  • node --test test/ciRunnerRouting.test.mjs test/testSuiteRunner.test.mjs — 66/66 pass.
  • Negative-checked each new assertion by restoring the original scripts: the two new ci-redis.sh tests and the extended preflight case fail without the fix (# fail 2 and # fail 1 respectively), then pass with it.
  • shellcheck --exclude=SC2016 (the same exclusion pr-build-check.yml uses) clean on both scripts; eslint clean on the test file.

Three new/extended tests cover it, using the existing Docker CLI double: teardown tolerates an unkillable owned container and retries on the next stop; start and ownership violations still fail; and --init is asserted in the run arguments. docs/ci-runners.md documents the cause, the --init remedy and the precise scope of the teardown tolerance.

The change is CI-only (shell scripts, tests, docs) with nothing visually perceptible, so I did not generate preview files.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @propr-dev[bot]
  • Time: 16m 16s
  • Tokens: 3,056,051 (3,032,465 in / 23,586 out)
  • Cost: $2.64

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5850397831✓

@propr-dev

propr-dev Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:52
Process completed with exit code 1.

.github:51
Full test suite shards finished with result 'failure'.

.github:4
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, actions/download-artifact@018cc2c. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation did not complete successfully (shards: failure, docs: success, native Electron: success).

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: success
  • Hosted native Electron units: success
  • Shard 1/4: passed in 351.6s on gitfix-rootless-4
  • Shard 2/4: passed in 495.5s on gitfix-rootless-4
  • Shard 3/4: passed in 431.6s on gitfix-rootless-1
  • Shard 4/4: passed in 459.8s on gitfix-rootless-4

View Workflow
View uploaded artifacts

@integry

integry commented Sep 26, 2026

Copy link
Copy Markdown
Owner

/merge

## What failed

Shard 4/4 passed **all 139 of its 139 test units** (`Shard 4/4: 139/139 passed in 459.8s`, every suite reporting `# fail 0`). The job failed in the *teardown* step afterwards:

```
Run ./scripts/ci-redis.sh stop
Error response from daemon: cannot remove container "8dc535d37f1d…": could not kill
container: container 8dc535d37f1d PID 2029746 is zombie and can not be killed.
Use the --init option when creating containers…
##[error]Process completed with exit code 1.
```

Two defects, both fixed:

**1. The zombie was manufactured by the container's own health check.** `ci-redis.sh` starts Redis with a `redis-cli ping` health check every 2s and no init process. Each health-check process is reparented to PID 1 in the container's namespace when its runc parent exits, and `redis-server` does not reap children — so a ~7.5 minute shard accumulated hundreds of zombies against a `--pids-limit 64`, ending with a PID 1 the rootless daemon could not kill.

`scripts/ci-redis.sh:186` now passes `--init`, making tini PID 1 so it reaps them. `--init` is already used throughout this repo's Docker invocations, so runner support is established.

**2. Teardown failing an otherwise-green shard.** `stop` runs after the tests have already decided the job result, and no step in the job can reap a zombie PID. `remove_container` now returns a distinct status (`UNREMOVABLE_STATUS=3`) when ownership verifies fully but the daemon still refuses removal, and a new `stop_for_teardown` turns only that case into a `::warning::` annotation and exit 0, leaving the container for host cleanup. The state file is kept so a later teardown of the same owner retries. Ownership violations, and removal failures during `start` (where reusing the name would collide), still fail as before.

I also added an init-binary check to `scripts/ci-rootless-preflight.sh`, so a daemon that cannot run `--init` containers names that prerequisite instead of failing every shard's Redis start with an opaque OCI error.

## Verification

- `node --test test/ciRunnerRouting.test.mjs test/testSuiteRunner.test.mjs` — 66/66 pass.
- Negative-checked each new assertion by restoring the original scripts: the two new `ci-redis.sh` tests and the extended preflight case fail without the fix (`# fail 2` and `# fail 1` respectively), then pass with it.
- `shellcheck --exclude=SC2016` (the same exclusion `pr-build-check.yml` uses) clean on both scripts; `eslint` clean on the test file.

Three new/extended tests cover it, using the existing Docker CLI double: teardown tolerates an unkillable owned container and retries on the next stop; `start` and ownership violations still fail; and `--init` is asserted in the run arguments. `docs/ci-runners.md` documents the cause, the `--init` remedy and the precise scope of the teardown tolerance.

The change is CI-only (shell scripts, tests, docs) with nothing visually perceptible, so I did not generate preview files.

PR: #2555
Comment by: @propr-dev[bot] (ID: 5850397831)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

❌ Failed to resolve merge conflicts from main into 2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18

Cannot create worktree: branch '2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18' is locked by another worktree

System-triggered merge conflict resolution

@propr-dev

propr-dev Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18 in commit 398dd90

Conflicting Files

  • test/ciRunnerRouting.test.mjs

Resolution Summary

Resolved the single conflict in test/ciRunnerRouting.test.mjs.

  • Conflict: Both branches updated native Electron test discovery. The PR explicitly excluded the mocked harness unit; main added required published-preview coverage.
  • Resolution: Preserved the PR’s discovery and harness-exclusion assertions, and retained main’s published-preview-electron.test.mjs assertion.
  • Reason: Both changes are compatible and together verify correct routing while protecting the additional coverage.

Verification: syntax check passed, all 46 tests passed, and git diff --check passed. The full-worktree scan found no remaining merge conflicts; remaining marker-like text is legitimate documentation or test content.


🤖 Resolution Details

  • Model: gpt-6-astra
  • Time: 5m 36s

View Task Execution


System-triggered merge conflict resolution

…nt-tank-into-th-20260926-1849-t18

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- test/ciRunnerRouting.test.mjs

PR: #2555
Model: gpt-6-astra
@propr-dev

propr-dev Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

❌ Failed to apply follow-up changes requested by @propr-dev[bot], @github-actions[bot]

An error occurred while processing your request:

Cannot create worktree: branch '2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18' is locked by another worktree

Comment IDs: 5850399048✓, 5850399435✓
Please check the logs for more details.

@integry

integry commented Sep 26, 2026

Copy link
Copy Markdown
Owner

/ultrafix

@propr-dev

propr-dev Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Sep 26, 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 Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR implements the three integration modes across configuration, API, CLI, and UI, but needs changes before merge: the final agent image cannot build as written, and generated configuration permissions can prevent bundled execution.

✅ Compatible migration — Legacy enabled: true becomes external, preserving the saved endpoint.

✅ Bounded container creation — The bundled runner coalesces concurrent refreshes and reuses recent snapshots.

The supplied checks show 36 passed, one pending, and no failures. This review uses static analysis only; no commands were run.

Merge blockers

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

F1: 🔴 Link Agent Tank’s executable in the final image

  • Required behavior: The unified agent image must build successfully and expose the bundled agent-tank command.

  • Evidence: Dockerfile.agent:final — package copy and executable verification.

    1. The agent-tank-cli stage installs Agent Tank globally, creating its executable link in that stage’s /usr/local/bin.
    2. The final stage starts independently from agent-base and copies only /usr/local/lib/node_modules/agent-tank.
    3. Its executable-linking block links Claude, Codex, and OpenCode, but never Agent Tank.
    4. The newly added agent-tank --version therefore fails with command not found, preventing publication of the unified image.

    static trace: The supplied complete Dockerfile contains neither a copy of Agent Tank’s executable link nor a link_npm_bin invocation for it. The new regex tests check installation and verification text, so they do not detect this missing connection between stages.

  • Minimum fix: Add link_npm_bin agent-tank agent-tank to the final-stage executable-linking chain before verification.

F2: 🔴 Make generated configuration readable by the container user

  • Required behavior: Bundled Agent Tank must be able to read the configuration ProPR generates while running as the image’s unprivileged user.

  • Evidence: packages/core/src/services/agentTankBundledRunner.ts:runBundledAgentTank, scripts/agent-entrypoint.sh:agent-tank — generated-file ownership and runtime identity.

    1. Run a bundled refresh from a backend process whose UID differs from the image’s node user—for example, a root process—with an eligible agent and a daemon-visible temporary-file path.
    2. fs.writeFileSync creates config.json with mode 0600, owned by that backend UID.
    3. Docker bind-mounts the file without changing its ownership or permissions.
    4. The image runs Agent Tank as node; the new entrypoint also drops root to node if necessary. Agent Tank cannot read the configuration, so the refresh cannot produce the intended usage snapshot.

    static trace: The supplied code explicitly combines owner-only permissions with a different runtime identity and contains no ownership or readability adjustment. Read-only mounting prevents writes but does not grant reads. The runner tests mock Docker execution, so they never exercise this permission boundary.

  • Minimum fix: Make the non-secret configuration file readable by the container user, for example with mode 0444, while retaining the read-only mount.

Suggestions

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

S1: 🟢 Verify temporary-file visibility across containers

The runner creates its configuration under backend-local os.tmpdir() and passes that absolute path to Docker. For a containerized backend, the daemon must see the same file at that path. The supplied context does not establish whether temporary directories are shared, so this remains a deployment verification gap rather than a demonstrated blocker. Exercise bundled refresh from the shipped backend deployment and use a daemon-visible staging directory if necessary.

S2: 🟢 Verify snapshot identity before recording deltas

getBundledStatusesForDelta() checks snapshot age, while scheduled refreshes reuse the cache within its TTL. Consequently, pre-call and post-call reads can return the same snapshot. Add a regression proving that this records no delta, as documented. The supplied wrapper excerpt does not show the subtraction and persistence path, so this review cannot establish whether downstream code already rejects identical snapshots.

Score

The migration and transport separation are sound, but image construction and configuration readability block reliable bundled execution. Passing checks do not cover these demonstrated boundaries.

Score: 4/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 2s
  • Tokens: 79,251 (77,483 in / 1,768 out)
  • Cost: $0.86

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ea4599e

Addressed 1 AI review comment (IDs: 5850980558)

Summary of Changes

Both selected findings are fixed, each with a regression that fails without the fix.

F1 — agent-tank executable link (Dockerfile.agent:262)
Added link_npm_bin agent-tank agent-tank to the final stage's linking chain, before the agent-tank --version verification. Confirmed against the registry that [email protected] declares bin: { "agent-tank": "bin/agent-tank.js" }, so the helper resolves a valid target. Completeness sweep of the final stage: claude, codex, opencode use link_npm_bin, vibe/vibe-acp/uv are copied as /usr/local/bin binaries, agy is symlinked from /home/node/.local/bin — Agent Tank was the only verified command with no executable in that stage.

F2 — config readable by the container user (packages/core/src/services/agentTankBundledRunner.ts:238)
The generated config.json is now written 0o444 with an explicit chmodSync after the write (the writeFileSync mode alone is umask-dependent), so the node user inside the image can read it regardless of the backend process UID. The mount stays :ro, and the mode itself carries no write bits. The temp directory is also chmodded 0o755, matching the sibling pattern in writeVibePromptFile, which matters for rootless/userns daemons that resolve the bind source as a non-root user. The file contains only provider keys and container paths — no secrets — and cleanup still removes it after every run. This runner is the only place in the PR's changed behavior that generates a bind-mounted file; configRoutesAgentTank.ts, agentTankService.ts and tankCommands.ts write nothing.

Tests

  • test/agentDockerfileSupplyChain.test.ts: new test extracts every --version check in the final stage and asserts each command has a link/copy in that same stage — it reports agent-tank is verified in the final stage but nothing links its executable there when the new line is removed.
  • test/agentTankBundledRunner.test.ts: the docker mock now captures the config file's mode at run time (the runner deletes it afterwards); one test asserts world-readable and non-writable, another asserts the file and its directory are removed after the run. The permission test fails when the mode is reverted to 0o600.

Verification: npx tsx --experimental-test-module-mocks --test test/agentTankBundledRunner.test.ts → 11/11 pass; npx tsx --test test/agentDockerfileSupplyChain.test.ts → 11/11 pass; tsc --noEmit -p packages/core/tsconfig.json clean. I did not build the image (no Docker daemon here), so the agent-tank --version step in the final stage is verified statically, not by an actual build. No preview files: both changes are a Dockerfile link and file permission bits, with nothing visually perceptible.


🤖 Implementation Details

  • Model: Claude Opus 5 (high)
  • Requested By: @propr-ultrafix
  • Time: 6m 54s
  • Tokens: 1,218,986 (1,205,743 in / 13,243 out)
  • Cost: $1.26
  • Subscription usage: Session +3%, Weekly +1%

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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

…at fails without the fix.

Both selected findings are fixed, each with a regression that fails without the fix.

**F1 — `agent-tank` executable link (`Dockerfile.agent:262`)**
Added `link_npm_bin agent-tank agent-tank` to the final stage's linking chain, before the `agent-tank --version` verification. Confirmed against the registry that `[email protected]` declares `bin: { "agent-tank": "bin/agent-tank.js" }`, so the helper resolves a valid target. Completeness sweep of the final stage: `claude`, `codex`, `opencode` use `link_npm_bin`, `vibe`/`vibe-acp`/`uv` are copied as `/usr/local/bin` binaries, `agy` is symlinked from `/home/node/.local/bin` — Agent Tank was the only verified command with no executable in that stage.

**F2 — config readable by the container user (`packages/core/src/services/agentTankBundledRunner.ts:238`)**
The generated `config.json` is now written `0o444` with an explicit `chmodSync` after the write (the `writeFileSync` mode alone is umask-dependent), so the `node` user inside the image can read it regardless of the backend process UID. The mount stays `:ro`, and the mode itself carries no write bits. The temp directory is also chmodded `0o755`, matching the sibling pattern in `writeVibePromptFile`, which matters for rootless/userns daemons that resolve the bind source as a non-root user. The file contains only provider keys and container paths — no secrets — and cleanup still removes it after every run. This runner is the only place in the PR's changed behavior that generates a bind-mounted file; `configRoutesAgentTank.ts`, `agentTankService.ts` and `tankCommands.ts` write nothing.

**Tests**
- `test/agentDockerfileSupplyChain.test.ts`: new test extracts every `--version` check in the final stage and asserts each command has a link/copy in that same stage — it reports `agent-tank is verified in the final stage but nothing links its executable there` when the new line is removed.
- `test/agentTankBundledRunner.test.ts`: the docker mock now captures the config file's mode at run time (the runner deletes it afterwards); one test asserts world-readable and non-writable, another asserts the file and its directory are removed after the run. The permission test fails when the mode is reverted to `0o600`.

Verification: `npx tsx --experimental-test-module-mocks --test test/agentTankBundledRunner.test.ts` → 11/11 pass; `npx tsx --test test/agentDockerfileSupplyChain.test.ts` → 11/11 pass; `tsc --noEmit -p packages/core/tsconfig.json` clean. I did not build the image (no Docker daemon here), so the `agent-tank --version` step in the final stage is verified statically, not by an actual build. No preview files: both changes are a Dockerfile link and file permission bits, with nothing visually perceptible.

PR: #2555
Comment by: @propr-ultrafix (ID: 0)
Model: claude-opus-5
@propr-dev

propr-dev Bot commented Sep 26, 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 Sep 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit b8ba253

Addressed 2 AI review comments (IDs: 5889748149, 5889827420)

Addressed findings F13, F14, F15

Summary of Changes

Implemented F13, F14, and F15 only.

  • Both observers use the shared transport router, detecting bundled usage changes without HTTP requests.
  • All six provider tracking callers pass account aliases; bundled probes verify provenance before and after execution.
  • Added regressions for account isolation, refresh interleavings, disabled mode, and shutdown.

Validation: 72 focused tests passed, core build passed, and repository typecheck passed. Captured sidebar previews showing an event-driven usage update.

Visual preview

Bundled usage before update

Bundled usage before update

Real sidebar with fixture bundled usage at 42% session consumption.

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

Bundled usage after server trigger

Bundled usage after server trigger

The same sidebar rereads usage after a usage:update socket event and shows 58%, without manual refresh. Fixture transport; backend sampler behavior is covered by focused regressions.

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


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @integry
  • Time: 10m 1s
  • Tokens: 2,843,182 (2,829,431 in / 13,751 out)
  • Cost: $4.46

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5891440464✓

Implemented F13, F14, and F15 only.

- Both observers use the shared transport router, detecting bundled usage changes without HTTP requests.
- All six provider tracking callers pass account aliases; bundled probes verify provenance before and after execution.
- Added regressions for account isolation, refresh interleavings, disabled mode, and shutdown.

Validation: 72 focused tests passed, core build passed, and repository typecheck passed. Captured sidebar previews showing an event-driven usage update.

PR: #2555
Comment by: @integry (ID: 5891440464)
Model: gpt-6-astra
@propr-dev

propr-dev Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix

@propr-dev

propr-dev Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Analysis Summary

No remaining blockers found; no code changes were needed.

  • Agent Tank 0.9.11 and F13–F15 fixes are already present.
  • All 117 focused tests across nine files passed.
  • Latest CI passes all four shards and Validate Changes.

Authenticated container verification could not run locally because Docker is unavailable.

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


🤖 Analysis Details

  • Model: GPT-6 Astra (high)
  • Time: 2m 50s
  • Tokens: 464,568 (462,008 in / 2,560 out)
  • Cost: $1.19
  • Subscription usage: Weekly +1%

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5894191552✓

@integry

integry commented Sep 29, 2026

Copy link
Copy Markdown
Owner

/review fable astra

@propr-dev

propr-dev Bot commented Sep 29, 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 Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — fable

Overall Evaluation

This PR delivers the issue's three-state Agent Tank integration end to end: a shared AgentTankMode vocabulary, legacy { enabled, url } migration to external/disabled, a bundled transport that runs agent-tank --once --json inside the pinned propr/agent image with read-only credential mounts, an entrypoint branch that bypasses provider entrypoints, a UI radio group with an optimistic write queue, CLI/MCP updates, version-pin guards in the build script, and an authenticated image verification script wired into the integration and release workflows. The design is thoughtful about the hard cases (per-alias provenance when two accounts share a provider, same-snapshot delta suppression, backend-container vs. host filesystem namespaces, pre-mode backend compatibility). All current-head checks pass.

✅ Bundled runner isolation and cache discipline — agentTankBundledRunner.ts mounts credentials with --mount type=bind,...,readonly, carries the generated config in an env var (never a backend-local bind source), coalesces concurrent refreshes onto one container, never replaces a good snapshot with a failed run, and drops daemon-rejected bind sources one at a time instead of failing the whole run. The tests exercise each of these paths against a Docker double, and the bootstrap is executed for real in test/agentTankBundledRunner.test.ts.

✅ Per-alias provenance prevents cross-account attribution — getBundledStatusForAlias answers only for the alias whose credentials were mounted, and getStatusForAlias renames the answer to that alias. usageTrackingBundledDelta.test.ts and agentTankService.test.ts cover both the primary and secondary orderings, plus post-call re-check after execution yields.

✅ Legacy-backend safety on every client — buildAgentTankSettingsRequest sends the derived enabled flag so a pre-mode handler never stores the opposite state, and bundled is refused (UI, CLI, banner) rather than silently persisted as external. This is verified in revertApi.test.ts, tankCommands.test.ts, and the Playwright spec.

One PR-introduced regression in the Settings URL editing flow needs a localized fix before merge. Verification limitation: the authenticated AGY run of verify-agent-tank-image.sh only executes in the release workflow / slow integration path, so I could not confirm from this head's checks that agy actually reports usage through a read-only ~/.gemini mount.

Merge blockers

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

F16: 🔴 Clearing the Daemon URL in external mode now rolls the field back and flags a save error

  • Required behavior: Changed behavior must remain internally consistent: the Settings UI must let an operator edit the external daemon URL without the section rejecting an intermediate keystroke, reverting their input, and marking the whole settings page as failed to save.

  • Evidence: packages/api/routes/configRoutesAgentTank.ts:52 (resolvedMode === 'external' && typeof url === 'string' && url.trim() === '' → 400) together with propr-ui/src/pages/SettingsPage/useAgentTankSettings.ts:82-118 (change posts on every keystroke and rolls back on rejection) and propr-ui/src/pages/SettingsPage/AgentTankSection.tsx:57 (handleUrlChange calls onChange per input event).

    Static trace:

    1. Mode is external, saved URL http://host.docker.internal:3456. Operator focuses the Daemon URL field and selects all + Delete (or backspaces to empty) to type a new address.
    2. handleUrlChange → onChange({ mode: 'external', url: '' }) → change enqueues updateAgentTankSettings({ mode: 'external', url: '' }); buildAgentTankSettingsRequest includes url: '' because it is not undefined.
    3. The new backend check rejects it with 400 url is required when mode is "external"; handleApiResponse throws.
    4. The operator has paused for more than the request round-trip (tens of ms), so selection === selectionRef.current still holds; the catch branch runs setSettings(persistedRef.current) and reportError(message), which in useSettingsState.ts:89-92 sets globalError and saveStatus('error').
    5. Observable outcome: the field snaps back to the previously persisted value (in the backspace case, the last single character that was successfully saved, e.g. h), a red error banner appears, and the page reports a failed save — for an ordinary edit. Continued typing appends to the restored text.

    Before this PR the route accepted an empty URL (url || 'http://0.0.0.0:3456') and the hook only console.errored failures with no rollback, so this sequence produced no visible error. The existing e2e test uses Playwright fill(), which never produces an intermediate empty value, and the hook tests only exercise mode changes, so neither guards this path. proposed regression: in useAgentTankSettings.test.tsx, adopt external with a URL, call change with url: '', and assert no POST is made / no error is reported and the shown settings keep the empty URL.

  • Minimum fix: In useAgentTankSettings.change, do not enqueue a write (and do not treat it as an error) when mode === 'external' and url.trim() === ''; keep the optimistic local state and let the next non-empty keystroke (or blur) write. Equivalently, have AgentTankSection commit URL edits on blur/enter instead of per keystroke. Either keeps the backend validation intact for API/MCP callers.

Suggestions

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

S12: 🟢 find -printf makes the verify script Linux-only

scripts/verify-agent-tank-image.sh builds the credential immutability manifest with find "$host_path" -printf ..., which BSD find on macOS rejects; the 2>/dev/null then yields the empty manifest and the script exits with "Could not read the contents of …" before running anything. CI runners are Linux so this is not a blocker, but the docs point operators at this script from a source checkout, and a portable manifest (find -exec stat or a small Node walker) would let macOS operators use it.

S13: 🟢 reportError(null) clears unrelated settings errors

useAgentTankSettings.change calls reportError(null) on every Agent Tank change, which in useSettingsState is setGlobalError(null). A global error raised by a different section (e.g. a failed whitelist save) disappears as soon as the operator touches the Agent Tank radio or URL. Scoping the error to the Agent Tank section, or only clearing an error the hook itself reported, would avoid this.

S14: 🟢 Legacy callers pass no alias into bundled per-call tracking

packages/core/src/claude/claudeService.ts:130 and the OpenCode/Vibe agents still call executeWithUsageTracking without an alias, so the new default alias = agent is used. In bundled mode getBundledStatusForAlias('claude') only answers when the configured Claude agent's alias is literally claude; a custom alias silently records no deltas on that path. This is safe (no wrong number is recorded) but worth threading the real alias through for consistency with the four updated agents.

S15: 🟢 Forced refresh joins an already-running non-forced run

refreshBundledStatuses({ force: true }) bypasses the cache check but still awaits an existing inFlight promise. An operator pressing the sidebar refresh a moment after the watcher started a TTL refresh gets that run's result rather than a run started after their click. Given the coalescing intent this is acceptable; if "refresh means a run started now" matters, queue a follow-up run when force arrives during an in-flight one.

S16: 🟢 Authenticated AGY verification is not exercised on PR checks

The read-only ~/.gemini mount for agy (the one provider that keeps its original mount instead of a private copy) is proven only by scripts/verify-agent-tank-image.sh in the release workflow and the slow path of integration-test-images.sh. The unit coverage mocks Docker. Consider running the script once against the current pin on the authenticated runner before merge, or adding a PR-side opt-in, so a CLI that needs to write to its home does not surface first during a release.

S17: 🟢 isSameSnapshot also changes external-mode semantics

The same-snapshot suppression is motivated by bundled cache reads but applies to the HTTP transport too: an external daemon that returns an identical lastUpdated and usage after /refresh now yields no metric record instead of a zero delta. This is arguably more correct, but the docs only describe it for bundled mode; a sentence in the external section would keep operator expectations aligned.

Score

The implementation is broad, carefully reasoned, and well tested, and all current-head checks pass, but the per-keystroke URL write combined with the new empty-URL rejection and rollback introduces a user-visible regression in the changed Settings flow that needs a small fix.

Score: 6/10


🤖 Review Details

  • Model: Claude Fable 5.1
  • Time: 4m 26s
  • Tokens: 215,040 (194,131 in / 20,909 out)
  • Cost: $3.47

View Task


💡 Next step: Comment /fix to address every F# merge blocker, 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, and they never relax a merge blocker.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The PR implements the three integration modes across configuration, API, CLI, MCP, UI, and the agent image. It is merge-ready within the supplied review scope. No merge blocker was verified.

✅ Upgrade compatibility — Legacy enabled settings retain external mode and their URL; newer clients explicitly reject bundled mode against older backends.

✅ Credential isolation — Credential mounts are read-only, and Claude/Codex receive private authentication copies without host sessions, plugins, or MCP configuration.

✅ Usage attribution — Bundled snapshots retain the inspected alias, and repeated snapshots produce no fabricated zero delta.

The supplied current-head status reports 41 passed checks, no failures, and no pending checks. This was a static review; no commands or tests were run.

Merge blockers

No merge blockers.

Suggestions

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

S18: 🟢 Require bundled runtime in release verification

Set AGENT_TANK_RUNTIME: bundled in the release workflow’s authenticated verification step. Currently, scripts/verify-agent-tank-image.sh defaults to auto, allowing an unexpected image version to trigger source verification instead. Explicit bundled selection would make the release check prove that the shipped binary returns usage. This is additional verification protection; the supplied Dockerfile already installs the pinned version.

S19: 🟢 Back off failed container refreshes

Consider a short retry cooldown in packages/core/src/services/agentTankBundledRunner.ts, refreshBundledStatuses. Successful results receive TTL caching, but failed runs immediately become eligible for another attempt once inFlight clears. Sequential usage probes can therefore repeatedly launch failing containers during an outage. Existing coalescing handles concurrent requests correctly; failure backoff would improve operational behavior without changing the best-effort contract.

Score

The implementation covers the intended integration thoroughly, with substantial regression coverage and green current-head checks. Static review found no verified correction required before merge.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 2m 9s
  • Tokens: 133,824 (129,930 in / 3,894 out)
  • Cost: $1.39

View Task


💡 Next step: Comment /fix to address every F# merge blocker, 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, and they never relax a merge blocker.

🤖 Review by ProPR

@integry

integry commented Sep 29, 2026

Copy link
Copy Markdown
Owner

/fix

@propr-dev

propr-dev Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit fdd7b1d

Addressed 1 AI review comment (IDs: 5897826370)

Addressed finding F16

Summary of Changes

Fixed F16 only. Blank or whitespace-only external URLs now remain local drafts without saving, reverting input, or reporting errors. Non-empty edits resume saving; backend validation remains intact.

Added regressions for pending saves and stale status responses. All 21 focused tests, the UI build, and browser verification passed. Captured the corrected empty-field state.

Visual preview

External daemon URL draft

External daemon URL draft

Daemon URL remains empty after select-all and Backspace followed by a pause, without a save error or connection spinner.

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


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @integry
  • Time: 4m 10s
  • Tokens: 525,513 (520,368 in / 5,145 out)
  • Cost: $1.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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5897912022✓

…remain local drafts without saving, reverting input, or reporting errors. Non-empty edits resume saving; backend validation remains intact.

Fixed F16 only. Blank or whitespace-only external URLs now remain local drafts without saving, reverting input, or reporting errors. Non-empty edits resume saving; backend validation remains intact.

Added regressions for pending saves and stale status responses. All 21 focused tests, the UI build, and browser verification passed. Captured the corrected empty-field state.

PR: #2555
Comment by: @integry (ID: 5897912022)
Model: gpt-6-astra
@integry

integry commented Sep 29, 2026

Copy link
Copy Markdown
Owner

/review opus astra

@propr-dev

propr-dev Bot commented Sep 29, 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 Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — opus

Overall Evaluation

This PR adds a three-state Agent Tank integration mode (disabled / bundled / external). It bundles a pinned agent-tank CLI into propr/agent and adds a bundled transport that runs agent-tank --once --json in a short-lived container with read-only credential mounts. Mode handling is threaded through core, API, MCP, CLI and UI, with legacy migration and compatibility guards. The mode plumbing, migration and UI/CLI compatibility work is careful and well tested.

The main problem is in the bundled per-call usage path. For real task executions it structurally cannot record a delta, while the new docs say bundled mode supports per-call deltas. The PR needs one targeted fix before merge.

✅ Lossless legacy migration — normalizeAgentTankSettings maps a record with no mode key to external/disabled from the old boolean. saveAgentTankSettings keeps writing a derived enabled so an older build can still read it after rollback. test/agentTankSettingsMigration.test.ts pins this.

✅ Honest mode writes against older backends — buildAgentTankSettingsRequest always sends the derived enabled flag. The UI (assertModeSupported) and CLI (setAgentTank) refuse bundled against a pre-mode backend instead of letting it be stored as something else. useAgentTankSettings serializes writes and rolls back rejected selections, with thorough race tests.

✅ Per-alias provenance in bundled snapshots — BundledRunResult.aliases and getBundledStatusForAlias stop one account's usage from being handed to another alias of the same provider. This covers both synthetic routing and per-call tracking.

Merge blockers

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

F17: 🔴 Bundled per-call deltas are never recorded for task-length LLM calls

  • Required behavior: In bundled mode, per-call usage deltas around each agent run must work. The PR's own docs/docs/operations/agent-tank.md ("What You See Once Enabled") promises this, and limits the no-delta case only to calls that start and finish between two refreshes. As shipped, bundled mode silently records no delta for essentially every real task run.

  • Evidence: packages/core/src/services/agentTankService.ts (refreshAgent bundled branch, getStatus bundled branch); packages/core/src/services/agentTankBundledRunner.ts (DELTA_FRESHNESS_MS = 90_000, getBundledStatusForAlias, scheduleBundledRefresh); packages/core/src/agents/impl/utils/usageTrackingWrapper.ts (executeWithUsageTracking, fetchStatusBestEffort)

    Static trace. The trigger is bundled mode, with a Claude/Codex/Antigravity task run executed in the worker process via executeWithUsageTracking(..., this.config.alias), lasting longer than 90 s.

    1. Pre-call: refreshAgent only calls scheduleBundledRefresh(). getStatus then reads getBundledStatusForAlias(alias) immediately, bounded by DELTA_FRESHNESS_MS.
    2. The worker process has its own in-memory cached, and nothing else in that process keeps it warm. The API's AgentTankUsageWatcher and ShellActivityBroadcaster warm only the API process's cache. So on a cold or stale cache the pre-call read throws, preCall is null, and the wrapper returns usageMetrics: null.
    3. Even when a pre-call snapshot exists, post-call again only schedules a refresh and reads the cache synchronously. After a call longer than 90 s, the newest snapshot is at least that old.
    4. getBundledStatusForAlias therefore returns undefined, getStatus throws No fresh bundled Agent Tank snapshot, and fetchStatusBestEffort returns null. Result: usageMetrics: null.
    5. The scheduled refresh lands after the measurement has already been abandoned.

    The observable impact is that no LLM log entry for a normal task run gets a session/weekly delta chip in bundled mode. That is the mode the UI labels "recommended" and the detection banner offers by default.

    Existing protections do not catch this:

    • test/usageTrackingBundledDelta.test.ts mocks getBundledStatusesForDelta/getBundledStatusForAlias without any freshness bound, and swaps the cache inside the call.
    • The runner test forces a refresh during the call.
    • Neither exercises a call longer than the freshness window, or a process without a warm cache.

    Proposed regression: with the real runner, simulate a 91 s+ call (fake clock) and assert that the post-call phase can still obtain a snapshot captured after the call ended.

  • Minimum fix: In the bundled post-call phase, obtain a snapshot captured after the call finished instead of only scheduling one. One option is to have the wrapper (or a phase-aware bundled refreshAgent) await refreshBundledStatuses({ force: true }), bounded by a bundled-specific timeout, before reading. The pre-call snapshot should be checked for freshness relative to the call's start time, not a fixed 90 s window at read time. If an awaited post-call refresh is unacceptable, document in agent-tank.md that bundled mode records deltas only opportunistically, and stop presenting bundled per-call deltas as supported.

Suggestions

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

S20: 🟢 Check OAuth refresh-token rotation for copied credentials

scripts/agent-tank-runtime.mjs copies .credentials.json / auth.json into a private writable home and explicitly lets the CLI refresh them there, then discards the writes. If a provider rotates refresh tokens on use (Codex's refresh_token_reused behavior suggests it may), a refresh inside the Agent Tank container could invalidate the token held in the host copy. The real agent would then be logged out even though the mount was read-only. I could not verify each provider's rotation semantics, so this is not a blocker. It is worth confirming, and if needed, preventing refresh inside the container, for example by skipping inspection when the access token is expired.

S21: 🟢 Pin the release verification to the bundled runtime

.github/workflows/docker-images.yml and scripts/integration-test-images.sh call verify-agent-tank-image.sh in the default auto runtime. If the agent-tank --version probe ever fails or its output format changes, the script silently builds Agent Tank from source and passes, without exercising the binary the image ships. Setting AGENT_TANK_RUNTIME=bundled in the release and integration steps would make the gate prove what it claims.

S22: 🟢 Per-process caches multiply container churn

Each backend process (api, worker, analysis worker) holds its own cached/inFlight state. While any UI is connected, the API's watcher and shell sampler also trigger a container run roughly every 60 s. A shared snapshot, for example in Redis, would cut duplicate PTY-driven /usage runs and would also help F1.

S23: 🟢 External status probes now use a 25 s timeout

AgentTankUsageWatcher and ShellActivityBroadcaster used to probe /status with a 5 s timeout. They now go through getAllStatuses, which uses DEFAULT_TIMEOUT_MS (25 s). An unreachable external daemon therefore takes much longer to surface, and slow reads hold the watcher's overlap guard longer. Passing a short timeout for these observers would restore the previous behavior.

S24: 🟢 Skip bundled refresh scheduling for unsupported providers

VibeAgent/OpenCodeAgent still call executeWithUsageTracking. In bundled mode, refreshAgent('vibe') schedules a container run even though these providers are never inspected. Short-circuiting unsupported providers before scheduleBundledRefresh avoids needless runs.

Score

The mode plumbing, migration, compatibility guards and image pinning are solid and well tested. However, the bundled transport's per-call delta path cannot produce a measurement for real task runs, so one targeted correction is required; current-head checks are still pending.

Score: 6/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 2m 6s
  • Tokens: 205,603 (194,784 in / 10,819 out)
  • Cost: $1.19

View Task


💡 Next step: Comment /fix to address every F# merge blocker, 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, and they never relax a merge blocker.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The PR implements the three-state integration across configuration, transports, image packaging, CLI, UI, and MCP. It needs a localized settings-state correction before merge.

✅ Backward compatibility — Legacy enabled settings retain external mode and their saved URL; newer clients explicitly reject bundled mode against older backends.

✅ Credential isolation — Credential mounts are read-only, provider entrypoints are bypassed, and Claude/Codex receive private authentication copies.

✅ Account-aware measurements — Bundled reads check alias provenance, and repeated snapshots produce no fabricated zero delta.

This review is based on static tracing only; no commands or tests were run. The supplied current-head status reports no failures and 21 pending checks.

Merge blockers

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

F18: 🔴 Preserve the URL across draft mode changes

  • Required behavior: Switching integration modes must preserve the saved external URL, and a successful save must leave the UI’s confirmed state consistent with the backend.

  • Evidence: propr-ui/src/pages/SettingsPage/useAgentTankSettings.ts, change; packages/api/routes/configRoutesAgentTank.ts, postAgentTankSettings.

    1. Start with external mode and a saved URL such as http://saved:3456.
    2. Clear the URL field. The hook correctly keeps this empty value as a local draft without saving.
    3. Select Disabled. The hook sends { mode: 'disabled', url: '' }. The backend preserves http://saved:3456, but the hook records the submitted empty URL in persistedRef as though the backend confirmed it.
    4. Select External again. The radio passes the empty URL retained in UI state. The hook’s blank-URL branch returns before enqueueing a write.

    The backend remains disabled while External is selected, and the previously saved URL is absent from the field. Restoring external mode now requires re-entering the address or reloading settings, despite the backend retaining it. Serializing writes does not prevent this: the failure occurs with completely sequential interactions. The added tests cover leaving a blank draft but not returning to external mode afterward.

    static trace: followed the URL draft, mode-save, backend URL-preservation, and subsequent external-selection branches in the supplied diff.

  • Minimum fix: Preserve the last confirmed external URL when leaving an empty draft, or adopt the backend’s canonical settings after saving. Add coverage for clearing the URL, selecting Disabled or Bundled, and returning to External.

Suggestions

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

S25: 🟢 Require bundled runtime in release verification

The release workflow invokes verify-agent-tank-image.sh with its default auto runtime. A version mismatch therefore verifies a source checkout instead of the packaged binary. Set AGENT_TANK_RUNTIME: bundled in release verification while retaining source mode for development. This would strengthen artifact validation; the supplied diff does not demonstrate that the correctly pinned image currently ships a mismatched binary.

Score

The implementation has substantial focused coverage and careful compatibility handling, but the demonstrated UI/backend state mismatch needs correction. Current checks remain pending without reported failures.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 59s
  • Tokens: 132,025 (130,302 in / 1,723 out)
  • Cost: $1.29

View Task


💡 Next step: Comment /fix to address every F# merge blocker, 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, and they never relax a merge blocker.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:360
Process completed with exit code 1.

propr-ui/e2e/agent-tank-modes.pw.ts:152 — e2e/agent-tank-modes.pw.ts:147:1 › bundled mode is refused on a legacy backend instead of reported as applied

  1. e2e/agent-tank-modes.pw.ts:147:1 › bundled mode is refused on a legacy backend instead of reported as applied
    Error: locator.check: Clicking the checkbox did not change its state
    Call log:

    • waiting for getByRole('radio', { name: /Bundled/ })
      • locator resolved to
    • attempting click action
      • waiting for element to be visible, enabled and stable
      • element is visible, enabled and stable
      • scrolling into view if needed
      • done scrolling
      • performing click action
      • click action done
      • waiting for scheduled navigations to finish
      • navigations have finished

    150 | await page.goto('/settings?tab=integrations');
    151 |

    152 | await page.getByRole('radio', { name: /Bundled/ }).check();
    | ^
    153 |
    154 | await expect(page.getByRole('status').filter({ hasText: 'too old' })).toBeVisible();
    155 | // Nothing was written, and the radio shows the mode that is really stored.
    at /home/runner/work/propr/propr/propr-ui/e2e/agent-tank-modes.pw.ts:152:54

@github-actions

Copy link
Copy Markdown

Checks Failed

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

View Logs
Build check diagnostics for run 36625449609, 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
c09af8888d6a: Pull complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download 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.2
10.9.8

--- 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]: 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]
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 1119 packages, and audited 1128 packages in 23s

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

found 0 vulnerabilities

--- 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 25.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 10.9kB dist/api/client.js
npm notice 4.7kB dist/api/errors.js
npm notice 5.4kB dist/api/implement.js
npm notice 2.0kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 5.7kB dist/api/plans.js
npm notice 4.2kB dist/api/relay.js
npm notice 10.4kB dist/api/repos.js
npm notice 11.1kB dist/api/settings.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.8kB 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 26.1kB dist/assets/env.example.txt
npm notice 5.7kB dist/auth/githubLogin.js
npm notice 19.5kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 28.7kB dist/commands/agentValidation.js
npm notice 65.2kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 7.2kB dist/commands/implementCommands.js
npm notice 1.6kB dist/commands/index.js
npm notice 6.0kB 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 30.1kB dist/commands/repoCommands.js
npm notice 7.5kB dist/commands/runtimeCommands.js
npm notice 16.1kB dist/commands/settingCommands.js
npm notice 4.1kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.5kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 15.3kB dist/commands/setup/hostActions.js
npm notice 25.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 13.5kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 43.2kB dist/commands/taskCommands.js
npm notice 29.6kB 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 20.0kB 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 42.9kB 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 12.4kB dist/desktopLocalSetup.js
npm notice 16.3kB 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 307B dist/orchestrator/manifest.json
npm notice 117.7kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 6.1kB 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 29.9kB dist/tui/SetupApp.js
npm notice 12.6kB 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 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 62.7kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 9.1kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 25.1kB 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 3.4kB dist/vendor/shared/agentLogin.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.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 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 11.0kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 18.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 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 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 2.3kB 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.7kB dist/vendor/shared/repositoryPresentation.js
npm notice 9.4kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.3kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 1.7kB dist/vendor/shared/reviewPrompt.js
npm notice 861B dist/vendor/shared/sessionSecret.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 647B dist/vendor/shared/taskLifecycle.js
npm notice 5.6kB dist/vendor/shared/usageTips.js
npm notice 503B 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 623B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.8.15
npm notice filename: propr-cli-0.8.15.tgz
npm notice package size: 379.5 kB
npm notice unpacked size: 1.6 MB
npm notice shasum: 34be9f729ae7ec483a93bb3fadb24376a0f6f098
npm notice integrity: sha512-6K6notdgx1MnM[...]UUBkg4d0wq5UQ==
npm notice total files: 155
npm notice
propr-cli-0.8.15.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/pages/SettingsPage/useAgentTankSettings.test.tsx
  86:23  error  '_status' is defined but never used  @typescript-eslint/no-unused-vars

✖ 1 problem (1 error, 0 warnings)

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

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

--- 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 Sep 29, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Processed 2 comments:

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

Summary of Changes

Fixed both reported failures:

  • Replaced .check() with .click() in the legacy-backend test and verified External remains selected after rejection.
  • Removed the unused callback parameter causing lint failure.

Validation passed: UI lint, typecheck, build, 19 focused unit/API tests, and all 7 Agent Tank browser tests.

Only tests changed; no visual preview was needed.


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @propr-dev[bot], @github-actions[bot]
  • Time: 2m 58s
  • Tokens: 399,160 (396,907 in / 2,253 out)
  • Cost: $0.85

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5898221468✓, 5898222898✓

Fixed both reported failures:

- Replaced `.check()` with `.click()` in the legacy-backend test and verified External remains selected after rejection.
- Removed the unused callback parameter causing lint failure.

Validation passed: UI lint, typecheck, build, 19 focused unit/API tests, and all 7 Agent Tank browser tests.

Only tests changed; no visual preview was needed.

PR: #2555
Comment by: @propr-dev[bot] (ID: 5898221468)
Comment by: @github-actions[bot] (ID: 5898222898)
Model: gpt-6-astra
@integry

integry commented Sep 30, 2026

Copy link
Copy Markdown
Owner

/fix

@propr-dev

propr-dev Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit e906287

Addressed 2 AI review comments (IDs: 5898088704, 5898107832)

Addressed findings F17, F18

Summary of Changes

Implemented F17 and F18 only.

  • Bundled usage tracking now awaits bounded refreshes, handles cold caches and long calls, and requires a new post-call refresh.
  • Mode changes preserve the saved URL when leaving an empty draft, including queued saves.

Passed 62 core tests, 27 UI tests, 2 browser regressions, core build, and UI typecheck. Captured focused visual previews.

Visual preview

External URL restored after Bundled

External URL restored after Bundled

Agent Tank settings after clearing the URL, selecting Bundled, and returning to External. The saved daemon URL is restored and External mode is saved.

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

External URL restored after Disabled

External URL restored after Disabled

Agent Tank settings after clearing the URL, selecting Disabled, and returning to External. The saved daemon URL is restored and External mode is saved.

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


🤖 Implementation Details

  • Model: GPT-6 Astra (high)
  • Requested By: @integry
  • Time: 7m 27s
  • Tokens: 907,544 (897,644 in / 9,900 out)
  • Cost: $2.24
  • Subscription usage: Weekly +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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5905812283✓

Implemented F17 and F18 only.

- Bundled usage tracking now awaits bounded refreshes, handles cold caches and long calls, and requires a new post-call refresh.
- Mode changes preserve the saved URL when leaving an empty draft, including queued saves.

Passed 62 core tests, 27 UI tests, 2 browser regressions, core build, and UI typecheck. Captured focused visual previews.

PR: #2555
Comment by: @integry (ID: 5905812283)
Model: gpt-6-astra
@integry

integry commented Sep 30, 2026

Copy link
Copy Markdown
Owner

/review astra fable

@propr-dev

propr-dev Bot commented Sep 30, 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 Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The PR implements the three integration modes across configuration, API, CLI, UI, and the bundled image. It needs a targeted correctness fix before merge: cached provenance identifies an alias, but does not distinguish different credential sources assigned to that alias.

✅ Upgrade compatibility — Legacy enabled settings remain external, and newer clients reject bundled mode against older backends.

✅ Credential isolation — Credential mounts are read-only; Claude and Codex receive private authentication copies without host sessions or plugin configuration.

✅ Focused coverage — Tests cover concurrent refreshes, timeouts, repeated snapshots, and rejected UI writes. The supplied current-head status reports 36 passed checks and no blocking failures.

Merge blockers

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

F19: 🔴 Preserve credential identity across snapshots

  • Required behavior: Bundled per-call usage must compare snapshots from the same account; alias provenance must not permit another account’s usage to be attributed to the executing task.

  • Evidence: packages/core/src/services/agentTankBundledRunner.ts, collectBundledAgents, BundledRunResult.aliases, and getBundledStatusForAlias; packages/core/src/agents/impl/utils/usageTrackingWrapper.ts, executeWithUsageTracking.

    1. An enabled alias claude-primary points to account A’s credential directory. A task starts using that configuration and obtains a baseline of 20% session usage.
    2. While the wrapper awaits executeFn(), the operator changes that alias’s configured credential directory to account B’s directory, retaining the alias.
    3. After execution finishes, the forced post-call refresh invokes collectBundledAgents(), which reloads configuration and mounts account B’s credentials. Suppose B reports 70%.
    4. Both snapshots pass the alias check because their recorded provenance is only claude-primary. Their timestamps and usage differ, so the repeated-snapshot guard also passes. The wrapper records a 50-point delta by subtracting two different accounts.

    The in-flight coalescing guard serializes container refreshes, not agent configuration changes. Neither the cached provenance nor the wrapper carries the credential source identity needed to reject this comparison. Existing tests change the inspected alias between snapshots; they do not cover retaining the alias while changing its credential directory.

    static trace: This sequence follows the supplied configuration reload, provider-to-alias mapping, post-call forced refresh, and delta calculation paths. No commands or tests were executed.

  • Minimum fix: Retain a credential-source identity alongside each bundled snapshot and require matching identities before computing a delta. Add a regression where the alias remains unchanged but its resolved credential directory changes during execution.

Suggestions

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

S26: 🟢 Require bundled runtime in release verification

Set AGENT_TANK_RUNTIME=bundled in the release workflow. The verifier currently defaults to auto, which substitutes a source checkout when the image reports a missing or mismatched version. Strict selection would make the release check prove the shipped binary works. This is optional strengthening: the supplied Dockerfile already installs and verifies the pinned package, and no incorrect release artifact is demonstrated here.

S27: 🟢 Align documentation with runtime behavior

Update configuration-reference.md, which still says per-call probes only read the cache, and narrow the UI’s “no networking required” wording to “no daemon networking configuration.” Post-call probes now force a refresh, and the runner explicitly permits outbound provider API requests. These are documentation corrections rather than runtime blockers.

Score

The implementation has substantial coverage and passing current-head checks, but account provenance must survive configuration changes before its per-call measurements are reliable.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 15s
  • Tokens: 138,084 (135,959 in / 2,125 out)
  • Cost: $1.36

View Task


💡 Next step: Comment /fix to address every F# merge blocker, 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, and they never relax a merge blocker.

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — fable

Overall Evaluation

This PR replaces the boolean Agent Tank toggle with a three-state disabled | bundled | external mode, installs the pinned agent-tank CLI into the unified agent image, and adds a bundled transport (agentTankBundledRunner.ts) that runs agent-tank --once --json in a throw-away container with each enabled agent's credential directory bind-mounted read-only. The mode vocabulary is shared through @propr/shared, legacy { enabled, url } records and request bodies are migrated in both directions (older clients against a new backend, newer clients against a pre-mode backend), and the per-call delta logic now refuses to subtract a snapshot from itself. The follow-up requests from the comment history — an authenticated container smoke test and repeated-snapshot delta handling — are both present (scripts/verify-agent-tank-image.sh wired into the integration script and the release workflow; isSameSnapshot in the wrapper with test/usageTrackingBundledDelta.test.ts).

I traced the bundled hot path (pre-call cache read → LLM call → post-call forced refresh → alias-scoped status read), the settings migration/save paths, the route readiness rules, the UI write queue, and the version-pin guards, and did not find a demonstrable correctness or safety regression. All current-head checks pass. The PR is merge-ready within scope; the remaining items are throughput, verification-breadth, and hygiene follow-ups.

✅ Credential isolation is done carefully — --mount type=bind,...,readonly (not -v) so a missing host directory fails the run rather than mounting an empty one; the entrypoint's agent-tank branch never runs a provider entrypoint or its chown; and scripts/agent-tank-runtime.mjs copies only .credentials.json/auth.json into a 0700 private home so Claude/Codex never write to the host directories. The verifier proves this from inside the container (write probe as node, plus a before/after manifest of the host directories).

✅ Per-account provenance for bundled snapshots — BundledRunResult.aliases records which configured alias produced each provider snapshot, and getBundledStatusForAlias/getStatusForAlias refuse to hand one account's numbers to a second alias of the same provider. test/agentTankBundledRunner.test.ts covers both configuration orders and test/agentTankService.test.ts covers the synthetic-routing consumer.

✅ Image tag integrity for the new pin — the Agent Tank version only reaches the bundle content hash through the ARG literal, and assert_agent_tank_version_matches_pin in scripts/build-images.sh refuses an env override or a drifted final-stage ARG; test/agentVersionManagement.test.ts runs the real script against a sandbox to prove all three outcomes.

Merge blockers

No merge blockers.

Suggestions

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

S28: 🟢 Bundled post-call wait ignores the analysis timeout

packages/core/src/agents/impl/utils/usageTrackingWrapper.ts now awaits fetchStatusBestEffort(agent, 'post-call', ...) before returning the result, and in bundled mode refreshBundledStatuses({ phase: 'post-call' }) always forces a fresh container run bounded by AGENT_TANK_BUNDLED_TIMEOUT_MS (120 s default) — the timeoutMs argument (ANALYSIS_AGENT_TANK_TIMEOUT_MS, 2 s) is ignored on that transport. For indexing analysis batches whose pre-call snapshot settles from a fresh cache, every short call therefore waits for one agent-tank container (a cold CLI /usage can take 15–60 s) before the result is returned. Runs coalesce across concurrent workers, so it does not multiply, but sequential batch throughput in bundled mode drops sharply compared with external mode. The wrapper JSDoc says this, but docs/docs/operations/configuration-reference.md and the "Environment Variables" list in docs/docs/operations/agent-tank.md still describe ANALYSIS_AGENT_TANK_TIMEOUT_MS as the bound that "never slows a task". Consider honouring a caller-supplied short timeout on the post-call bundled probe (schedule the refresh, record the delta on the next observation) or at least aligning the docs. Optional because it is an opt-in mode and the trade-off is documented in the wrapper.

S29: 🟢 Skip bundled runs for providers Agent Tank cannot inspect

OpenCodeAgent.ts and VibeAgent.ts (unchanged callers) still call executeWithUsageTracking('opencode' | 'vibe', ...). In bundled mode the pre-call refreshAgent(..., 'pre-call') will start a container whenever the delta cache is older than 90 s, and the subsequent getStatus then throws because no alias snapshot can exist for those providers. In external mode the equivalent /refresh/opencode request is rejected by the daemon in milliseconds; here it costs a container spawn per stale-cache call for a provider that can never yield a delta. A short-circuit in refreshAgent/getStatus for providers outside BUNDLED_SUPPORTED_TANK_AGENTS would remove the churn. Non-blocking: the calls are fire-and-forget on the pre-call side and produce no incorrect data.

S30: 🟢 Claude and Codex bundled paths are only verified indirectly

Both CI consumers of scripts/verify-agent-tank-image.sh pin AGENT_TANK_PROVIDERS=agy, so the claudeApi: true rewrite and the .credentials.json/auth.json private-home strategy in scripts/agent-tank-runtime.mjs — the two provider paths that actually depend on the copy-and-relocate trick — are never exercised against a real CLI in CI, and I could not verify from the supplied context that agent-tank 0.9.11 reads claudeApi/dockerAccess from a --config file. The verifier itself already supports these providers; a nightly or a runner with Claude/Codex credentials would close the gap. This is a coverage follow-up, not a demonstrated defect.

S31: 🟢 Bound request-path waits on a cold bundled cache

getAgentTankUsage, getAgentTankStatus, ShellActivityBroadcaster.readUsage and the usage watcher all go through getAgentTankStatuses() → refreshBundledStatuses(), which on a cold or expired cache awaits the container run (up to AGENT_TANK_BUNDLED_TIMEOUT_MS). The previous external path bounded the same HTTP requests at 3–5 s. Returning the stale-but-present snapshot (or undefined immediately) while a refresh runs in the background would keep the sidebar and Settings probe responsive; the coalescing already in place makes this a small change.

S32: 🟢 Timed-out agent-tank containers are not stopped

runBundledAgentTank names the container but passes no onContainerId/kill hook to executeDockerCommand. If the executor's timeout fires, the client is killed while the --rm container keeps running until agent-tank --once finishes on its own. Since every post-call probe forces a new run, a slow provider could accumulate a few concurrent containers. A docker rm -f <name> on timeout (the verifier script already does this via trap) would tidy that up.

S33: 🟢 Image selection for the bundled run is incidental

resolveAgentImage() uses AgentRegistry.getInstance().getAllAgents()[0]?.config.dockerImage, i.e. whichever agent happens to be first, even if disabled or not one of the inspected providers. Custom bundle images built before this PR (older content hash) would not contain agent-tank. Preferring the image of an agent that is actually being inspected, or the default bundle tag, would make the choice deterministic.

S34: 🟢 Unrelated CI and desktop fixes ride along

scripts/ci-redis.sh (--init, teardown tolerance), scripts/ci-rootless-preflight.sh, test/ciRunnerRouting.test.mjs, and apps/desktop/scripts/packaged-connect-journey-fixture.mjs are self-contained fixes with their own tests and docs but have nothing to do with Agent Tank. Landing them separately would keep the revert/bisect surface of this feature clean. Purely organisational.

S35: 🟢 reportAgentTankError(null) clears unrelated global errors

useSettingsState.reportAgentTankError calls setGlobalError(null) at the start of every Agent Tank write, which also dismisses an error raised by an unrelated settings save that is still on screen. Scoping the clear to Agent Tank-originated messages would avoid the flicker. Cosmetic.

Score

No verified blockers, every current-head check is green, and the two review-requested items (authenticated container verification and same-snapshot delta suppression) are implemented with tests; the remaining points are throughput and verification-breadth follow-ups in an opt-in mode.

Score: 8/10


🤖 Review Details

  • Model: Claude Fable 5.1
  • Time: 5m 3s
  • Tokens: 227,288 (202,806 in / 24,482 out)
  • Cost: $3.76

View Task


💡 Next step: Comment /fix to address every F# merge blocker, 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, and they never relax a merge blocker.

🤖 Review by ProPR

@integry
integry merged commit 423f11b into main Sep 30, 2026
45 of 50 checks passed
@integry
integry deleted the 2547/claude-opus-5-bundle-agent-tank-into-th-20260926-1849-t18 branch September 30, 2026 14:51
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.

Bundle Agent Tank into the unified agent image and add a three-state (disabled / bundled / external) integration mode

2 participants