Skip to content

[2735 by Claude Opus 5.5] ## Add a stall and degenerate-output watchdog for running agent containers - #2757

Merged
integry merged 10 commits into
mainfrom
2735/claude-opus-5-5-add-a-stall-and-degenerat-20261005-2330-eo3
Oct 6, 2026
Merged

integry merged 10 commits into
mainfrom
2735/claude-opus-5-5-add-a-stall-and-degenerat-20261005-2330-eo3

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2735

Branch: 2735/claude-opus-5-5-add-a-stall-and-degenerat-20261005-2330-eo3
Commits: ✅ Changes committed (d809ddc)


AI Processing Completed

Execution Details:

Summary:
I've added the watchdog for issue #2735. A running agent that goes silent, or that only emits whitespace, is now stopped instead of holding its worker slot and capacity lease for up to 24 hours. Typecheck, lint and all the affected test suites pass. Two suites didn't run (see the end).

How it works

  • One place for all agents. The watchdog lives in the shared Docker executor (dockerExecutionWatchdog.ts, agentActivityWatchdog.ts), not in any agent's parser. It covers Claude, Codex, Antigravity, OpenCode and Vibe.
    • What counts as activity: any stdout or stderr output. For Vibe, a changed transcript snapshot also counts, since Vibe may print nothing to stdout.
    • Recognising text and tools: each stdout line is read for text deltas, tool starts and tool ends in each provider's format.
  • Rules:
    • Silence: no output for AGENT_STALL_TIMEOUT_MS (default 10 min) stops the run.
    • Silent tool calls: after a tool starts without streaming output, the limit becomes AGENT_TOOL_STALL_TIMEOUT_MS (default 30 min). A tool that keeps printing never trips it.
    • Whitespace output: AGENT_DEGENERATE_OUTPUT_LIMIT (default 50) consecutive whitespace-only deltas stop the run. Empty deltas don't count, and real text resets the count.
    • 0 disables a rule. For the tool limit, 0 means a running tool call is never cut off.
  • Stopping: it uses the same stop path as the execution deadline, so partial work is published exactly like a timed-out run. Runs get the new reasons stalled / degenerate_output, and the task ends with matching new terminalReason values. The stop happens at most once, and an outcome that is already in progress (deadline, user cancel, lost ownership) wins.
  • Settings: three new instance settings can be changed in the Settings UI (Automation → Agent watchdog), propr setting update … and MCP update_execution_settings. They are read at the start of each run, so no restart is needed. The env var is the default, null / "default" clears the override, and invalid values fall back to the default with a warning.
  • Observability:
    • Timeline: a task timeline entry records the rule, threshold, and seconds silent or whitespace-delta count.
    • Metrics: GET /api/llm-metrics now has a per-rule watchdogTrips count.
    • Inbox and comment: these come through the existing completion path. The termination description and the Inbox text now explain the watchdog stop.
  • Recovery:
    • Capacity lease: released as soon as the stopped container exits, as with any finished run.
    • Reconciler: when it replays a terminal state from Redis it now keeps terminalReason, so a watchdog-stopped task stays terminal rather than being treated as orphaned.
    • Usage-limit waits: a task parked for a usage limit has no running container, so it is never watched.

Things to know

  • The task-to-terminal-reason mapping is in src/jobs/agentTerminalReason.ts rather than @propr/core. Several existing tests mock @propr/core with a fixed export list, and a new core export broke them.
  • The Settings API now also returns agent_watchdog_defaults and agent_watchdog_effective. I updated the four exact-match getSettings expectations in test/configRoutes.followup.test.ts to include them.
  • Vibe exposes its transcript only as snapshots, so for Vibe only the silence rules apply, not the whitespace-output rule.

Tests

  • New:
    • watchdog state-machine and per-provider format tests
    • executor tests: stop on silence with partial output kept, output keeping a run alive, the tool threshold, whitespace stop, disabled never stops, stop called exactly once, capacity lease released
    • a reconciler test showing a stalled / degenerate_output task isn't re-marked orphaned
    • UI unit tests and a Playwright Settings test
  • Results: tsc is clean for the repo and the CLI. The UI's only errors are two existing ones from the unbuilt CLI package. Lint shows no errors. About 40 affected suites pass, including the full Settings UI suite (136 tests).
  • Not verified:
    • test/llmMetrics.test.ts produced no result in this environment; it probably needs a Redis server, which isn't installed here.
    • packages/api/test/notificationProjectionService.test.ts failed until I built better-sqlite3's native module and rebuilt core, then passed. That was a sandbox setup problem, not a code issue.

Docs are updated in worker.md (the "No inactivity timeout" line is replaced by a watchdog section), execution-safety.md, the configuration reference, the regenerated settings-locations page, metrics.md, the CLI docs and the CHANGELOG. I captured a screenshot of the new Settings section for the PR.

Detailed Logs:

  • Conversation: 217 messages
  • Session: 74ac3f77-2455-4a8b-83d7-6f2a619e77c3

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2735-2026-10-06T00-13-44-244Z-conversation.json
  • output: /tmp/claude-logs/issue-2735-2026-10-06T00-13-44-244Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've added the watchdog for issue #2735. A running agent that goes silent, or that only emits whitespace, is now stopped instead of holding its worker slot and capacity lease for up to 24 hours. Typec...


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


💡 Need changes?

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


Visual preview

Agent watchdog settings

Agent watchdog settings

New Settings → Automation → Agent watchdog section: a stall timeout override (15 minutes) and empty fields showing the environment defaults as placeholders

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

…lent, or that only emits whitespace, is now stopped instead of holding its worker slot and capacity lease for up to 24 hours. Typecheck, lint and all the affected test suites pass. Two suites didn't run (see the end).

How it works
- One place for all agents. The watchdog lives in the shared Docker executor (`dockerExecutionWatchdog.ts`, `agentActivityWatchdog.ts`), not in any agent's parser. It covers Claude, Codex, Antigravity, OpenCode and Vibe.
  - What counts as activity: any stdout or stderr output. For Vibe, a changed transcript snapshot also counts, since Vibe may print nothing to stdout.
  - Recognising text and tools: each stdout line is read for text deltas, tool starts and tool ends in each provider's format.
- Rules:
  - Silence: no output for `AGENT_STALL_TIMEOUT_MS` (default 10 min) stops the run.
  - Silent tool calls: after a tool starts without streaming output, the limit becomes `AGENT_TOOL_STALL_TIMEOUT_MS` (default 30 min). A tool that keeps printing never trips it.
  - Whitespace output: `AGENT_DEGENERATE_OUTPUT_LIMIT` (default 50) consecutive whitespace-only deltas stop the run. Empty deltas don't count, and real text resets the count.
  - `0` disables a rule. For the tool limit, `0` means a running tool call is never cut off.
- Stopping: it uses the same stop path as the execution deadline, so partial work is published exactly like a timed-out run. Runs get the new reasons `stalled` / `degenerate_output`, and the task ends with matching new `terminalReason` values. The stop happens at most once, and an outcome that is already in progress (deadline, user cancel, lost ownership) wins.
- Settings: three new instance settings can be changed in the Settings UI (Automation → Agent watchdog), `propr setting update …` and MCP `update_execution_settings`. They are read at the start of each run, so no restart is needed. The env var is the default, `null` / `"default"` clears the override, and invalid values fall back to the default with a warning.
- Observability:
  - Timeline: a task timeline entry records the rule, threshold, and seconds silent or whitespace-delta count.
  - Metrics: `GET /api/llm-metrics` now has a per-rule `watchdogTrips` count.
  - Inbox and comment: these come through the existing completion path. The termination description and the Inbox text now explain the watchdog stop.
- Recovery:
  - Capacity lease: released as soon as the stopped container exits, as with any finished run.
  - Reconciler: when it replays a terminal state from Redis it now keeps `terminalReason`, so a watchdog-stopped task stays terminal rather than being treated as orphaned.
  - Usage-limit waits: a task parked for a usage limit has no running container, so it is never watched.

Things to know
- The task-to-terminal-reason mapping is in `src/jobs/agentTerminalReason.ts` rather than `@propr/core`. Several existing tests mock `@propr/core` with a fixed export list, and a new core export broke them.
- The Settings API now also returns `agent_watchdog_defaults` and `agent_watchdog_effective`. I updated the four exact-match `getSettings` expectations in `test/configRoutes.followup.test.ts` to include them.
- Vibe exposes its transcript only as snapshots, so for Vibe only the silence rules apply, not the whitespace-output rule.

Tests
- New:
  - watchdog state-machine and per-provider format tests
  - executor tests: stop on silence with partial output kept, output keeping a run alive, the tool threshold, whitespace stop, disabled never stops, stop called exactly once, capacity lease released
  - a reconciler test showing a `stalled` / `degenerate_output` task isn't re-marked orphaned
  - UI unit tests and a Playwright Settings test
- Results: `tsc` is clean for the repo and the CLI. The UI's only errors are two existing ones from the unbuilt CLI package. Lint shows no errors. About 40 affected suites pass, including the full Settings UI suite (136 tests).
- Not verified:
  - `test/llmMetrics.test.ts` produced no result in this environment; it probably needs a Redis server, which isn't installed here.
  - `packages/api/test/notificationProjectionService.test.ts` failed until I built `better-sqlite3`'s native module and rebuilt core, then passed. That was a sandbox setup problem, not a code issue.

Docs are updated in `worker.md` (the "No inactivity timeout" line is replaced by a watchdog section), `execution-safety.md`, the configuration reference, the regenerated settings-locations page, `metrics.md`, the CLI docs and the CHANGELOG. I captured a screenshot of the new Settings section for the PR.
@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=5
Triggered automatically by the requested execution settings.

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

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 5998a96

Summary of Changes

I fixed the CodeQL "Improper code sanitization" alert in test/dockerExecutorWatchdog.test.ts. All 9 tests in that file pass.

Cause: the test helper runAgent builds a small script and runs it with node -e. Several tests wrote their fake agent output into that script's source with JSON.stringify(...), which is the pattern CodeQL flags.

Fix: runAgent now takes an extra data: string[] parameter and passes those strings to the child process as arguments. The scripts are now fixed text and read the output from process.argv[1], process.argv[2], and so on. Three tests changed:

  • the silent-agent test
  • the tool-threshold test
  • the whitespace-output test (line 77, the one CodeQL flagged)

The tests still check the same behaviour, and no production code changed.

Checks: dependencies weren't installed in this workspace, so I ran npm ci --ignore-scripts first. ESLint skips this file because the lint config doesn't cover it, so there was nothing to lint.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @github-advanced-security[bot]
  • Time: 1m 46s
  • Tokens: 337,438 (334,707 in / 2,731 out)
  • Cost: $0.26
  • Subscription usage: Session +1%, 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 Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 4190224753✓

…est/dockerExecutorWatchdog.test.ts`. All 9 tests in that file pass.

I fixed the CodeQL "Improper code sanitization" alert in `test/dockerExecutorWatchdog.test.ts`. All 9 tests in that file pass.

**Cause:** the test helper `runAgent` builds a small script and runs it with `node -e`. Several tests wrote their fake agent output into that script's source with `JSON.stringify(...)`, which is the pattern CodeQL flags.

**Fix:** `runAgent` now takes an extra `data: string[]` parameter and passes those strings to the child process as arguments. The scripts are now fixed text and read the output from `process.argv[1]`, `process.argv[2]`, and so on. Three tests changed:
- the silent-agent test
- the tool-threshold test
- the whitespace-output test (line 77, the one CodeQL flagged)

The tests still check the same behaviour, and no production code changed.

**Checks:** dependencies weren't installed in this workspace, so I ran `npm ci --ignore-scripts` first. ESLint skips this file because the lint config doesn't cover it, so there was nothing to lint.

PR: #2757
Comment by: @github-advanced-security[bot] (ID: 4190224753)
Model: claude-opus-5-5
@propr-dev

propr-dev Bot commented Oct 6, 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.

.github:401 — 🎭 Playwright Run Summary
194 passed (8.7m)

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Checks Failed

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

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

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

--- Release shell script lint ---

--- Toolchain ---
v22.23.3
10.9.9

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

added 1120 packages, and audited 1129 packages in 20s

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

8 high severity vulnerabilities

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

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

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

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


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


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

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

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 26.3kB 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 11.7kB dist/api/client.js
npm notice 5.0kB dist/api/errors.js
npm notice 16.6kB dist/api/goals.js
npm notice 5.4kB dist/api/implement.js
npm notice 2.4kB 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 12.2kB 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 66.7kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 57.9kB dist/commands/goalCommands.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 7.2kB dist/commands/implementCommands.js
npm notice 1.7kB dist/commands/index.js
npm notice 6.9kB 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.9kB 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 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.4kB dist/commands/startCommand.js
npm notice 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.7kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 13.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 118.3kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.7kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.1kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.2kB dist/tui/StartApp.js
npm notice 3.6kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 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 27.0kB 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 1.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 2.0kB dist/vendor/shared/antigravityCompatibility.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 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 11.6kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 4.9kB dist/vendor/shared/goalWait.js
npm notice 11.7kB 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 16.6kB 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.6kB 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.5kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 1.7kB dist/vendor/shared/reviewPrompt.js
npm notice 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 1.7kB dist/vendor/shared/taskLifecycle.js
npm notice 957B dist/vendor/shared/text.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 622B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.0
npm notice filename: propr-cli-0.9.0.tgz
npm notice package size: 424.0 kB
npm notice unpacked size: 1.8 MB
npm notice shasum: 7f79d8a03943b8a8ad376355eaf00dcd55f9cb4f
npm notice integrity: sha512-SGpeEgaK6nXB9[...]8XgzQW4EC9r+g==
npm notice total files: 167
npm notice
propr-cli-0.9.0.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 passed
✅ UI Build passed

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed

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

/home/runner/work/propr/propr/packages/core/src/claude/docker/dockerExecutor.ts
  471:1  warning  File has too many lines (433). Maximum allowed is 400  max-lines

✖ 1 problem (0 errors, 1 warning)

ESLint found too many warnings (maximum: 0).

--- 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 Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 4306f2a

Processed 2 comments:

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

Summary of Changes

I fixed the CI failure. The Core Package Lint step was failing because packages/core/src/claude/docker/dockerExecutor.ts had grown to 433 lines of code with the watchdog changes. The max-lines limit is 400, and CI treats any lint warning as a failure.

To fix it, I moved the live-output streaming code out of dockerExecutor.ts into a new file, packages/core/src/claude/docker/dockerLiveOutputStreaming.ts. That covers startLiveOutputStreaming, the LiveOutputStreaming interface, and the ANSI-stripping helper, which nothing else in the executor used. I only moved the code; it doesn't change what the code does. The executor now imports the function from the new file.

Checks I ran:

  • Typecheck for packages/core passes.
  • eslint . --max-warnings 0 in packages/core, the same check that failed in CI, now passes.
  • test/dockerExecutorWatchdog.test.ts and test/dockerExecutorLiveOutput.test.ts both pass.

There's nothing to preview, since this change isn't visible in the UI.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot], @github-actions[bot]
  • Time: 1m 48s
  • Tokens: 598,519 (595,208 in / 3,311 out)
  • Cost: $0.37

Undo Changes • View Task Execution


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

🤖 Generated by ProPR
Processing comment IDs: 6006592532✓, 6006592936✓

…ing because `packages/core/src/claude/docker/dockerExecutor.ts` had grown to 433 lines of code with the watchdog changes. The `max-lines` limit is 400, and CI treats any lint warning as a failure.

I fixed the CI failure. The Core Package Lint step was failing because `packages/core/src/claude/docker/dockerExecutor.ts` had grown to 433 lines of code with the watchdog changes. The `max-lines` limit is 400, and CI treats any lint warning as a failure.

To fix it, I moved the live-output streaming code out of `dockerExecutor.ts` into a new file, `packages/core/src/claude/docker/dockerLiveOutputStreaming.ts`. That covers `startLiveOutputStreaming`, the `LiveOutputStreaming` interface, and the ANSI-stripping helper, which nothing else in the executor used. I only moved the code; it doesn't change what the code does. The executor now imports the function from the new file.

**Checks I ran:**
- Typecheck for `packages/core` passes.
- `eslint . --max-warnings 0` in `packages/core`, the same check that failed in CI, now passes.
- `test/dockerExecutorWatchdog.test.ts` and `test/dockerExecutorLiveOutput.test.ts` both pass.

There's nothing to preview, since this change isn't visible in the UI.

PR: #2757
Comment by: @propr-dev[bot] (ID: 6006592532)
Comment by: @github-actions[bot] (ID: 6006592936)
Model: claude-opus-5-5
@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds a shared watchdog, configurable thresholds, termination propagation, and observability. It is not ready to merge: three runtime gaps can terminate legitimate silent tool executions prematurely.

✅ Shared termination handling — Watchdog stops reuse the subprocess teardown path and preserve partial output for normal publication.

✅ Terminal reason propagation — The new reasons flow through agent results, task completion, reconciliation, and user-facing descriptions.

The supplied current-head status shows 41 passed checks and no failures or pending checks. This review uses static analysis of the supplied code; no commands or tests were run.

Merge blockers

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

F1: 🔴 Preserve activity during watchdog initialization

  • Required behavior: Tool executions must receive the configured tool timeout, including tools started while watchdog settings are loading.

  • Evidence: packages/core/src/claude/docker/dockerExecutionWatchdog.ts, startExecutionWatchdog and resolveSettings; packages/core/src/claude/docker/dockerExecutor.ts, stdout handler.

    1. A normal implementation execution starts with implicit watchdog settings, requiring the asynchronous module import and loadAgentWatchdogSettings() reads.
    2. While those operations are pending, the child emits its tool-start record and begins a silent tool execution.
    3. The stdout handler calls observeLine, but watchdog is still null, so the record is discarded.
    4. Settings resolve and construct a watchdog with zero open tools. With default settings, it stops the still-running tool after ten minutes instead of allowing thirty minutes.

    The initialization await and child stdout delivery run independently; no readiness barrier or replay buffer protects this interval. The explicit-settings integration tests bypass the database-loading interval and therefore do not cover this sequence. static trace: initialization assigns watchdog only after resolving settings, while both observation methods use optional chaining that silently drops earlier events.

  • Minimum fix: Initialize the watchdog before starting the child, or retain and replay activity observed during settings loading, preserving timestamps and tool state.

F2: 🔴 Track every tool in message blocks

  • Required behavior: The longer tool timeout must remain active while a reported tool execution is still running.

  • Evidence: packages/core/src/claude/docker/agentOutputActivity.ts, classifyContentBlocks; packages/core/src/claude/docker/agentActivityWatchdog.ts, recordToolStart and recordToolEnd.

    1. A Claude assistant message contains two tool_use blocks, starting two tools.
    2. classifyContentBlocks returns immediately for the first block, so the watchdog increments openTools only once.
    3. The first tool finishes and emits a user message containing its tool_result; recordToolEnd reduces the count to zero.
    4. The second tool continues silently. After ten minutes, the watchdog applies ordinary inactivity and terminates it despite the configured thirty-minute tool allowance.

    The classifier accepts arrays but produces only one activity per record. The counter cannot recover the discarded second start, and clamping it to zero does not protect outstanding tools. Existing tests exercise single-tool messages only. static trace: the early return in the block loop directly causes the undercount; the threshold selection then uses openTools === 0.

  • Minimum fix: Process all tool transitions in each record, preferably tracking tool identifiers so starts and matching completions preserve the outstanding-tool set. Add a regression covering a multi-tool message followed by separately arriving results.

F3: 🔴 Observe tool state in transcript snapshots

  • Required behavior: Supported snapshot-based agent executions must receive the silent-tool allowance, rather than always using ordinary inactivity.

  • Evidence: packages/core/src/claude/docker/dockerLiveOutputStreaming.ts, publish; packages/core/src/claude/docker/dockerExecutor.ts, recordWatchdogActivity and inspectSessionLines.

    1. Vibe reports a tool invocation through its session transcript, the snapshot source explicitly supported by this streaming path, without a corresponding stdout tool-start record.
    2. The next snapshot poll notices the changed transcript and calls onActivity.
    3. That callback only invokes watchdog.recordActivity(); snapshot records never reach observeLine or any tool-state observer.
    4. The tool then runs silently for more than ten minutes but less than thirty. The watchdog still has zero open tools and stops the legitimate execution at the ordinary inactivity threshold.

    Polling keeps reading the unchanged snapshot but produces no further activity. The implementation therefore supports snapshot liveness without supporting the tool state needed for its timeout decision. static trace: snapshot publication exposes only a parameterless activity callback, whereas classification occurs exclusively on stdout. The supplied Vibe helper reads messages.jsonl as the snapshot source.

  • Minimum fix: Feed newly observed snapshot records through provider-appropriate tool-state classification, avoiding recounting records on subsequent polls. Verify that a snapshot-only tool start grants the longer timeout and its completion restores ordinary inactivity.

Suggestions

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

No suggestions.

Score

The shared integration and passing checks are strong, but tool-state observation gaps undermine the default watchdog’s correctness. These require localized runtime fixes and targeted regression coverage before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 14s
  • Tokens: 78,365 (76,182 in / 2,183 out)
  • Cost: $0.76

View Task


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

Copy and edit to choose records from this review:

/fix F1 F2 F3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 261822c

Addressed 1 AI review comment (IDs: 6006925825)

Addressed findings F1, F2, F3

Summary of Changes

I fixed all three findings. The two watchdog test files pass (27 tests), and core typecheck and lint for src/claude/docker/ are clean. I ran the three new end-to-end regressions against the previous code and all three failed there.

F1 – tool start lost while settings load. The watchdog now exists from the start of the run, with thresholds that never trip until the real settings are loaded. Output that arrives while they load is recorded at the moment it arrives, including any tool that starts. When the settings come in, the new configure() method applies them without losing that state, and a run of whitespace-only output seen during loading still counts toward the limit. If loading fails or the watchdog is disabled, it stops watching. This is in dockerExecutionWatchdog.ts.

F2 – only the first tool in a message was counted. One output line can now report several things in order, for example some text followed by two tool starts. The watchdog tracks running tools by the provider's call id rather than a plain counter, using whichever id field each provider sends. Two cases are handled explicitly:

  • Results seen twice: if the same result is reported again (on stdout and in a transcript), it is ignored, and a repeated start for a finished tool doesn't reopen it.
  • No call id: tools without an id fall back to a simple count.

Checking other providers for the same problem turned up OpenCode. It repeats "running" updates for a single tool, and each one used to add to the count; the ids now prevent that.

F3 – tools that only appear in the Vibe transcript. Each transcript poll now passes only the new, complete records to the watchdog's line classifier. If the transcript gets shorter (a new session file), reading starts again from the top, and the id tracking makes that re-read harmless. The classifier also understands Vibe's record format: an assistant message listing tool calls starts them, and a tool record ends one. The other agents' records are classified as before.

New tests:

  • Unit tests (packages/core/test/agentActivityWatchdog.test.ts): reporting every tool in one line with its id; Vibe's record format; a two-tool message whose results arrive separately, including a duplicate result; replayed starts; output observed before the settings apply.
  • End-to-end tests (test/dockerExecutorWatchdog.test.ts):
    • A tool starts while settings are still loading (with the settings load mocked to take 400ms) and runs past the normal stall limit.
    • A two-tool message where the second tool stays silent after the first result arrives.
    • A tool seen only in the transcript: it gets the longer tool limit, and once its result appears the normal limit applies again. This test takes about 8.5 seconds because transcripts are polled every 2 seconds.

Limits:

  • Tool state from the transcript is recorded when the poll runs, up to 2 seconds after the record was written. That delay comes from polling and can't be avoided without changing how Vibe output is read.
  • The root-level typecheck still reports one error: @propr/local-setup can't be found because that package hasn't been built in this container. It isn't related to these changes.
  • I installed dependencies with npm ci and built the shared, client and core packages to run these checks. No setup files were changed.

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


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 1s
  • Tokens: 2,076,481 (2,052,023 in / 24,458 out)
  • Cost: $1.28

View Task Execution


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

🤖 Generated by ProPR

…s (27 tests), and core typecheck and lint for `src/claude/docker/` are clean. I ran the three new end-to-end regressions against the previous code and all three failed there.

I fixed all three findings. The two watchdog test files pass (27 tests), and core typecheck and lint for `src/claude/docker/` are clean. I ran the three new end-to-end regressions against the previous code and all three failed there.

**F1 – tool start lost while settings load.** The watchdog now exists from the start of the run, with thresholds that never trip until the real settings are loaded. Output that arrives while they load is recorded at the moment it arrives, including any tool that starts. When the settings come in, the new `configure()` method applies them without losing that state, and a run of whitespace-only output seen during loading still counts toward the limit. If loading fails or the watchdog is disabled, it stops watching. This is in `dockerExecutionWatchdog.ts`.

**F2 – only the first tool in a message was counted.** One output line can now report several things in order, for example some text followed by two tool starts. The watchdog tracks running tools by the provider's call id rather than a plain counter, using whichever id field each provider sends. Two cases are handled explicitly:
- **Results seen twice:** if the same result is reported again (on stdout and in a transcript), it is ignored, and a repeated start for a finished tool doesn't reopen it.
- **No call id:** tools without an id fall back to a simple count.

Checking other providers for the same problem turned up OpenCode. It repeats "running" updates for a single tool, and each one used to add to the count; the ids now prevent that.

**F3 – tools that only appear in the Vibe transcript.** Each transcript poll now passes only the new, complete records to the watchdog's line classifier. If the transcript gets shorter (a new session file), reading starts again from the top, and the id tracking makes that re-read harmless. The classifier also understands Vibe's record format: an assistant message listing tool calls starts them, and a tool record ends one. The other agents' records are classified as before.

**New tests:**
- Unit tests (`packages/core/test/agentActivityWatchdog.test.ts`): reporting every tool in one line with its id; Vibe's record format; a two-tool message whose results arrive separately, including a duplicate result; replayed starts; output observed before the settings apply.
- End-to-end tests (`test/dockerExecutorWatchdog.test.ts`):
  - A tool starts while settings are still loading (with the settings load mocked to take 400ms) and runs past the normal stall limit.
  - A two-tool message where the second tool stays silent after the first result arrives.
  - A tool seen only in the transcript: it gets the longer tool limit, and once its result appears the normal limit applies again. This test takes about 8.5 seconds because transcripts are polled every 2 seconds.

**Limits:**
- Tool state from the transcript is recorded when the poll runs, up to 2 seconds after the record was written. That delay comes from polling and can't be avoided without changing how Vibe output is read.
- The root-level typecheck still reports one error: `@propr/local-setup` can't be found because that package hasn't been built in this container. It isn't related to these changes.
- I installed dependencies with `npm ci` and built the shared, client and core packages to run these checks. No setup files were changed.

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

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

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds a shared execution watchdog, configurable thresholds, termination reasons, and reporting across agent implementations. It needs localized corrections before merge: Vibe transcript text bypasses degenerate-output detection, and the settings UI can silently disable a valid timeout.

✅ Shared stop path — Watchdog trips reuse subprocess-scoped teardown and preserve partial output for existing publication paths.

✅ Terminal reason propagation — Watchdog reasons flow through agent results, issue completion, and terminal-state reconciliation.

The supplied current-head checks report 41 passed, none failed or pending, and nine neutral/skipped. This review used static analysis only; no commands were run.

Merge blockers

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

F4: 🔴 Classify Vibe assistant text without tool calls

  • Required behavior: The degenerate-output watchdog must detect consecutive whitespace-only agent output for supported Vibe runs.

  • Evidence: packages/core/src/claude/docker/agentOutputActivity.ts, classifyChatMessage; packages/core/src/claude/docker/dockerLiveOutputStreaming.ts, publish.

    1. A Vibe transcript receives assistant records such as {"role":"assistant","content":" "}, without tool_calls. The added classifier test explicitly recognizes this message shape.
    2. classifyChatMessage returns null because tool_calls is absent. The fallback classifier receives no event type and returns ordinary activity.
    3. Each new transcript record therefore leaves the whitespace counter unchanged. Each changed snapshot also refreshes the inactivity clock.
    4. A run continually appending whitespace-only assistant messages can exceed the configured degenerate-output limit indefinitely while avoiding both watchdog rules, retaining its execution resources until the overall timeout.

    The existing test explicitly expects an ordinary Vibe assistant reply to classify as activity, so current coverage preserves this omission. static trace: followed transcript observation through classification and AgentActivityWatchdog.observeLine; no execution was performed.

  • Minimum fix: Classify string content on untyped assistant chat messages as text whether or not tool_calls exists; append any tool transitions separately. Add coverage for consecutive whitespace messages and meaningful text resetting the counter.

F5: 🔴 Preserve timeout values when displaying minutes

  • Required behavior: Viewing or focusing a saved watchdog setting must not change its value or silently disable protection.

  • Evidence: propr-ui/src/pages/SettingsPage/AgentWatchdogSettingsSection.tsx, toDisplay and commit.

    1. An operator saves a valid positive timeout of 100 milliseconds through the API or CLI, both of which accept non-negative integer milliseconds.
    2. The settings component converts that value to minutes and rounds it to two decimal places, displaying "0".
    3. The operator focuses and blurs the field without editing it. commit converts the displayed draft back to 0 milliseconds, detects that it differs from the stored 100, and invokes onCommit.
    4. handleAgentWatchdogChange saves the zero override, disabling the rule for subsequent runs without an intentional setting change.

    Input validation permits zero, and the component does not track whether the user edited the field. The same conversion affects both timeout fields. static trace: evaluated the supplied conversion and blur/save path; no execution was performed.

  • Minimum fix: Avoid committing untouched drafts and preserve millisecond precision when displaying saved timeout values. Cover both timeout fields with a focus/blur regression using a value that does not round-trip through two decimal places.

Suggestions

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

No suggestions.

Score

The shared execution integration and passing checks provide a strong foundation, but the provider coverage gap and unintended settings mutation require correction before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 53s
  • Tokens: 80,961 (79,416 in / 1,545 out)
  • Cost: $0.76

View Task


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

Copy and edit to choose records from this review:

/fix F4 F5

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 6248155

Addressed 1 AI review comment (IDs: 6007356507)

Addressed findings F4, F5

Summary of Changes

I fixed both findings. All affected tests pass, and each new regression fails against the previous code. Core and UI typecheck are clean, and lint is clean on the changed source files.

F4: whitespace-only Vibe assistant messages now count

  • In packages/core/src/claude/docker/agentOutputActivity.ts, classifyChatMessage now treats the text of any untyped assistant message as agent text, whether or not it has tool_calls. Tool calls are still reported after the text, in order. An assistant message with empty content still counts only as activity. Messages from other roles, like user, are unaffected.
  • I checked the other parsers in the same file, and they already treated assistant text as text. The Vibe chat format was the only one with this gap.
  • Tests:
    • In packages/core/test/agentActivityWatchdog.test.ts, the old expectation that { role: 'assistant', content: 'plain reply' } is plain activity is now an expectation that it is text. I also added cases for whitespace text combined with a tool call, empty content, and user messages.
    • A new watchdog test checks that consecutive whitespace messages trip the rule and that real text resets the count.
    • A new end-to-end test in test/dockerExecutorWatchdog.test.ts keeps appending " " assistant messages to a Vibe-style transcript. The run now stops with degenerate_output after 3 messages. Before the fix it kept running, because each new snapshot reset the silence timer.

F5: saved timeouts no longer change when you click in and out of a field

  • In propr-ui/src/pages/SettingsPage/AgentWatchdogSettingsSection.tsx, two changes:
    • Display: toDisplay now shows minutes with the fewest decimal places that still convert back to the exact saved milliseconds. For example, 100 ms now shows as 0.00167 instead of 0.
    • Saving: the component remembers which fields you actually typed in. Leaving a field you didn't edit saves nothing, and the record of edits resets whenever the saved values change.
  • A new test in AgentWatchdogSettingsSection.test.tsx uses 100 ms and 1,234 ms for the two timeout fields. It checks that neither displays as 0 and that clicking in and out of all three fields saves nothing. It also checks that re-entering the displayed minutes saves nothing, because they convert back to the exact stored value.

Verification: the watchdog test files pass (29 tests), and so do all 19 SettingsPage test files (137 tests). To run them I had to install dependencies with npm ci and npm run test:prepare, the same steps .propr/setup.sh runs. No setup files changed.

I didn't make a visual preview. The only visible change is the number shown for timeouts that don't come out to a round number of minutes.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 4m 18s
  • Tokens: 1,081,614 (1,072,259 in / 9,355 out)
  • Cost: $0.65

View Task Execution


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

🤖 Generated by ProPR

…w regression fails against the previous code. Core and UI typecheck are clean, and lint is clean on the changed source files.

I fixed both findings. All affected tests pass, and each new regression fails against the previous code. Core and UI typecheck are clean, and lint is clean on the changed source files.

**F4: whitespace-only Vibe assistant messages now count**
- In `packages/core/src/claude/docker/agentOutputActivity.ts`, `classifyChatMessage` now treats the text of any untyped assistant message as agent text, whether or not it has `tool_calls`. Tool calls are still reported after the text, in order. An assistant message with empty content still counts only as activity. Messages from other roles, like `user`, are unaffected.
- I checked the other parsers in the same file, and they already treated assistant text as text. The Vibe chat format was the only one with this gap.
- Tests:
  - In `packages/core/test/agentActivityWatchdog.test.ts`, the old expectation that `{ role: 'assistant', content: 'plain reply' }` is plain activity is now an expectation that it is text. I also added cases for whitespace text combined with a tool call, empty content, and `user` messages.
  - A new watchdog test checks that consecutive whitespace messages trip the rule and that real text resets the count.
  - A new end-to-end test in `test/dockerExecutorWatchdog.test.ts` keeps appending `" "` assistant messages to a Vibe-style transcript. The run now stops with `degenerate_output` after 3 messages. Before the fix it kept running, because each new snapshot reset the silence timer.

**F5: saved timeouts no longer change when you click in and out of a field**
- In `propr-ui/src/pages/SettingsPage/AgentWatchdogSettingsSection.tsx`, two changes:
  - **Display:** `toDisplay` now shows minutes with the fewest decimal places that still convert back to the exact saved milliseconds. For example, 100 ms now shows as `0.00167` instead of `0`.
  - **Saving:** the component remembers which fields you actually typed in. Leaving a field you didn't edit saves nothing, and the record of edits resets whenever the saved values change.
- A new test in `AgentWatchdogSettingsSection.test.tsx` uses 100 ms and 1,234 ms for the two timeout fields. It checks that neither displays as 0 and that clicking in and out of all three fields saves nothing. It also checks that re-entering the displayed minutes saves nothing, because they convert back to the exact stored value.

**Verification:** the watchdog test files pass (29 tests), and so do all 19 SettingsPage test files (137 tests). To run them I had to install dependencies with `npm ci` and `npm run test:prepare`, the same steps `.propr/setup.sh` runs. No setup files changed.

I didn't make a visual preview. The only visible change is the number shown for timeouts that don't come out to a round number of minutes.

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

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=3

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds a shared execution watchdog, configurable thresholds, terminal reasons, and operational reporting. It needs changes before merge: tool inactivity can be unintentionally disabled, and tool tracking can discard calls that have not finished.

✅ Shared teardown — Watchdog stops reuse the existing subprocess-scoped termination path and preserve partial output.

✅ Reason propagation — The new termination reasons flow through agent adapters, issue completion, and terminal-state reconciliation.

✅ Focused coverage — Added tests cover silence, whitespace, delayed settings loading, multiple tools, and capacity release. 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.

F6: 🔴 Disabling ordinary inactivity also disables tool inactivity

  • Required behavior: The settings contract says zero disables the corresponding rule; a positive tool inactivity threshold must remain effective when ordinary inactivity is disabled.

  • Evidence: packages/core/src/claude/docker/agentActivityWatchdog.ts:enabled, currentThresholdMs

    1. An operator saves agent_stall_timeout_ms=0, agent_tool_stall_timeout_ms=1800000, and agent_degenerate_output_limit=0. These are accepted configuration values.
    2. enabled returns false because it checks only ordinary inactivity and degenerate output. startExecutionWatchdog consequently stops observing the execution.
    3. A tool starts and hangs silently. Its configured 30-minute threshold never applies, leaving the execution running until the outer timeout.

    Keeping degenerate detection enabled does not prevent the defect: currentThresholdMs returns zero immediately when stallTimeoutMs is zero, even with an outstanding tool and a positive tool threshold. Existing tests cover all rules disabled and a disabled tool threshold, but not this independently enabled rule. Verification provenance: static trace of configuration resolution, watchdog startup, and threshold selection; no commands executed.

  • Minimum fix: Include the tool threshold in enablement and select the tool threshold for outstanding calls even when ordinary inactivity is disabled. Add coverage for this settings combination.

F7: 🔴 Text within a tool-call message closes unfinished tools

  • Required behavior: A reported tool call must receive the tool inactivity allowance while it remains outstanding; text accompanying its declaration does not establish tool completion.

  • Evidence: packages/core/src/claude/docker/agentActivityWatchdog.ts:recordTextDelta, packages/core/src/claude/docker/agentOutputActivity.ts:classifyContentBlocks

    1. A Claude assistant message contains a tool_use block followed by a text block in the same content array. The classifier accepts this ordering and emits tool_start, then text.
    2. Processing the text immediately clears the newly opened tool and adds its ID to finishedToolIds, although no tool result has arrived. Both transitions describe the same assistant message announcing work.
    3. The declared tool runs silently for longer than the ordinary 10-minute threshold but less than the configured 30-minute tool threshold. The watchdog terminates that healthy execution as ordinary inactivity.

    The finished-ID protection makes a subsequent repeated start unable to restore the call. The multi-tool tests put text before every tool declaration and therefore miss this ordering. Verification provenance: static trace through content-block classification and watchdog state transitions; proposed regression: feed [tool_use, text], advance past ordinary inactivity, and assert the outstanding tool retains its allowance.

  • Minimum fix: Preserve tool declarations across text blocks within their declaring message. Process message transitions with enough context to distinguish accompanying text from subsequent model activity, and test interleaved text/tool blocks.

Suggestions

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

S1: 🟢 Exercise transcript replacement boundaries

dockerLiveOutputStreaming.ts identifies newly observed transcript records by character offset and resets only when the transcript becomes shorter. Tests for equal-length replacement and rolling transcript windows would clarify that assumption. This is optional because the supplied context does not establish that production transcript readers perform those replacements.

Score

The implementation has substantial integration and passing checks, but two tool-state correctness defects require localized fixes. This review used static tracing only, as requested.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 11s
  • Tokens: 83,980 (82,012 in / 1,968 out)
  • Cost: $0.81

View Task


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

Copy and edit to choose records from this review:

/fix F6 F7 S1

🤖 Review by ProPR

@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/fix F6 F7

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 4e8579f

Addressed 1 AI review comment (IDs: 6009309289)

Addressed findings F6, F7

Summary of Changes

I fixed F6 and F7 in agentActivityWatchdog.ts and agentOutputActivity.ts. The two watchdog test files pass (34 tests). I swapped the old source back in temporarily and all four new regressions failed against it. Core typecheck and lint on the changed files are clean.

F6: a tool threshold alone now works

  • The watchdog now counts as enabled when only the tool threshold is positive. Before, turning off ordinary inactivity and degenerate detection stopped observation entirely.
  • When ordinary inactivity is 0, a running tool call now uses the tool threshold. Silence with no tool running still never trips. When both thresholds are positive, nothing changes: a running tool still gets the larger of the two.
  • I checked the related code paths. The poll interval already took the tool threshold into account, and startup still observes output that arrives while settings are loading.

F7: text in the message that declares a tool no longer ends that tool

  • Each running tool call now remembers which message declared it. Text only ends calls declared by an earlier message.
    • For Claude, the message is identified by message.id. Claude sends a message's blocks as separate lines that share this id. The partial text deltas between them are tied to the id from the stream_event message_start. So the case is covered whether the tool and its text are in one line or spread across several.
    • Output with no message id (Codex, Vibe, OpenCode and others) treats each output line as one message. Text in a later line still ends running calls, as before.
  • Text recorded directly through recordTextDelta without a message context still ends every running call, as before.

New tests

  • Settings: ordinary inactivity off and the tool threshold on, with degenerate detection both on and off. Ordinary silence never trips, and a silent tool trips at the tool threshold. There is also an end-to-end Docker run with only the tool threshold set, where a silent tool is stopped.
  • Same line: a tool call followed by text in one line, with and without a message id. The tool keeps its 5s allowance past the 1s ordinary threshold.
  • Separate lines: a tool call and text from the same Claude message arriving in separate lines, including partial deltas. The call stays open, and text from the next message closes it.
  • No message ids: text in a later line without message ids still closes running calls.

To run the tests I had to install dependencies with npm ci and build the shared and local-setup packages, since node_modules was empty. No setup files changed.

There's no visual change, so I made no preview.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 4m 32s
  • Tokens: 1,221,766 (1,207,376 in / 14,390 out)
  • Cost: $0.83
  • Subscription usage: Session +1%

Undo Changes • View Task Execution


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

🤖 Generated by ProPR
Processing comment ID: 6009323846✓

…utputActivity.ts`. The two watchdog test files pass (34 tests). I swapped the old source back in temporarily and all four new regressions failed against it. Core typecheck and lint on the changed files are clean.

I fixed F6 and F7 in `agentActivityWatchdog.ts` and `agentOutputActivity.ts`. The two watchdog test files pass (34 tests). I swapped the old source back in temporarily and all four new regressions failed against it. Core typecheck and lint on the changed files are clean.

**F6: a tool threshold alone now works**
- The watchdog now counts as enabled when only the tool threshold is positive. Before, turning off ordinary inactivity and degenerate detection stopped observation entirely.
- When ordinary inactivity is 0, a running tool call now uses the tool threshold. Silence with no tool running still never trips. When both thresholds are positive, nothing changes: a running tool still gets the larger of the two.
- I checked the related code paths. The poll interval already took the tool threshold into account, and startup still observes output that arrives while settings are loading.

**F7: text in the message that declares a tool no longer ends that tool**
- Each running tool call now remembers which message declared it. Text only ends calls declared by an earlier message.
  - For Claude, the message is identified by `message.id`. Claude sends a message's blocks as separate lines that share this id. The partial text deltas between them are tied to the id from the `stream_event` `message_start`. So the case is covered whether the tool and its text are in one line or spread across several.
  - Output with no message id (Codex, Vibe, OpenCode and others) treats each output line as one message. Text in a later line still ends running calls, as before.
- Text recorded directly through `recordTextDelta` without a message context still ends every running call, as before.

**New tests**
- **Settings:** ordinary inactivity off and the tool threshold on, with degenerate detection both on and off. Ordinary silence never trips, and a silent tool trips at the tool threshold. There is also an end-to-end Docker run with only the tool threshold set, where a silent tool is stopped.
- **Same line:** a tool call followed by text in one line, with and without a message id. The tool keeps its 5s allowance past the 1s ordinary threshold.
- **Separate lines:** a tool call and text from the same Claude message arriving in separate lines, including partial deltas. The call stays open, and text from the next message closes it.
- **No message ids:** text in a later line without message ids still closes running calls.

To run the tests I had to install dependencies with `npm ci` and build the shared and local-setup packages, since `node_modules` was empty. No setup files changed.

There's no visual change, so I made no preview.

PR: #2757
Comment by: @integry (ID: 6009323846)
Model: claude-opus-5-5
propr-dev Bot pushed a commit that referenced this pull request Oct 6, 2026
…ng whether the next `/review` can run. On a head like #2755/#2757, where only the `Validate unsigned *` and `Finalize unsigned validation checksums` checks fail, the review now runs. Lint and typecheck pass, and 828 tests across the affected suites pass, including the new ones. I haven't run a live loop on a real PR, so the posted comments and the timeout have only been exercised in tests.

1–2. Readiness respects non-blocking checks (`packages/core/src/webhook/checkRunHelpers.ts`)
- `getCheckRunsStatus` takes an optional list of non-blocking patterns, so other callers behave as before. A new `getCheckRunsStatusForRepo` loads the repository's patterns the same way `checkRunHandler.ts` does. If that lookup fails, every check is treated as blocking.
- Matching check runs and matching legacy commit statuses are ignored whether they failed or are still queued. Legacy statuses are now judged per check rather than by GitHub's single combined state. The result also lists which blocking checks failed and which are still pending.
- All three Ultrafix readiness callers (daemon, worker and API) and the pre-review check in `ultrafixReviewExecutionGate.ts` now use the repository-aware version.
- `areAllChecksPassing`, used for Epic queue advance and auto-merge, already skipped non-blocking check runs. It now skips non-blocking legacy statuses too. The auto-merge re-enable after Ultrafix doesn't look at checks, so it needed no change.

3–4. Deferral comment and bounded wait (new `src/jobs/ultrafixCiWait.ts`)
- When CI defers a review, Ultrafix posts one PR comment listing the blocking checks and whether each failed or hasn't finished. That's one comment per head commit and loop run, not one per re-check. Nothing extra is posted when CI turns green.
- If the review stays deferred longer than the timeout, the loop stops. It posts the existing "⚠️ Ultrafix stopped before reaching its goal" comment with the reason "CI did not settle". This applies at all three places a review gets deferred.
- The timeout is a new instance setting, `ultrafix_ci_wait_timeout_ms`, defaulting to 2 hours. It can be changed through the settings API, MCP `update_execution_settings` and `propr setting update`. I also added an `ULTRAFIX_CI_WAIT_TIMEOUT_MS` environment override, which the issue didn't ask for. I didn't add it to the Settings UI.

5. `start_ultrafix` / `run_ultrafix` no longer reports `COMMAND_NOT_PICKED_UP` for a CI stall
- A deferred review now shows as "waiting for CI" with the reason and the blocking checks. If the loop was stopped by the timeout, the operation shows as failed.
- This also covers the case where no task picked up the command yet: the status is read from the loop's Redis records. `/ultrafix` gets the PR comment.

Tests and docs
- New tests cover:
  - the readiness cases the issue listed (all passing, failing and pending checks on either side of the patterns, legacy statuses mixed in).
  - the single deferral comment and the timeout stop.
  - the deferral path in the pre-review check.
  - the MCP receipt.
- I updated a few existing test mocks and expected responses for the new export and setting.
- Docs: added the Ultrafix wording in `pr-commands.md`, the environment variable in the configuration reference, a regenerated `settings-locations.md`, and a CHANGELOG entry under Unreleased.

No visual preview, since nothing in the app's UI changed.
@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds a shared watchdog, configurable thresholds, and propagation of watchdog termination reasons through task completion. It needs a localized correctness fix before merge.

✅ Shared execution integration — Watchdog stops reuse the existing subprocess teardown path and preserve partial output for eligible executions.

✅ Terminal reason propagation — The new reasons flow through agent adapters, issue completion, and terminal-state reconciliation.

✅ Focused coverage — Tests cover silence, whitespace output, delayed settings loading, concurrent tools, and capacity release. Current-head checks report 41 passed and no failures.

This review is a static analysis of the supplied code; no commands were run.

Merge blockers

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

F8: 🔴 Close identified tools by key

  • Required behavior: A tool completion without an ID must close the oldest outstanding identified call, restoring the ordinary inactivity threshold when no tools remain.

  • Evidence: packages/core/src/claude/docker/agentActivityWatchdog.ts:recordToolEnd, specifically this.openToolIds.values().next().

    1. observeLine receives a supported tool-start record such as {"type":"tool_use","id":"t1"}. It stores the map entry "t1" → "line:1".
    2. It then receives {"type":"tool_result"}. The classifier accepts this as an unidentified tool completion and calls recordToolEnd(undefined).
    3. With no anonymous tools outstanding, the fallback reads the map’s value, "line:1", and calls recordToolEnd("line:1").
    4. That string is a scope, not the tool ID. Deleting it fails, leaving "t1" open after its completion.
    5. Subsequent silence uses the tool threshold instead of the ordinary threshold. With toolStallTimeoutMs: 0, the watchdog never stops this now-idle run, leaving the overall execution deadline as the backstop.

    Both records are accepted by the newly added classifier; the fallback explicitly promises to support unidentified completions. Finished-ID deduplication does not remove the surviving entry. Existing tests cover anonymous starts and matched identified completions, but not this identified-start/unidentified-end sequence.

    static trace: Followed the records through agentOutputActivity.ts into observeLine, recordToolEnd, and currentThresholdMs. proposed regression: Feed these two records, assert openTools === 0, then assert ordinary inactivity trips even when the tool threshold is disabled.

  • Minimum fix: Select the oldest entry with this.openToolIds.keys().next() and pass that key to recordToolEnd. Add the identified-start/unidentified-end regression.

Suggestions

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

No suggestions.

Score

The shared integration, lifecycle propagation, and passing checks provide good confidence overall. One deterministic tool-tracking defect still undermines inactivity enforcement and requires correction before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 2s
  • Tokens: 84,771 (83,258 in / 1,513 out)
  • Cost: $0.80

View Task


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

Copy and edit to choose records from this review:

/fix F8

🤖 Review by ProPR

@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/fix F8

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 5a34bb5

Addressed 1 AI review comment (IDs: 6009548953)

Addressed finding F8

Summary of Changes

I fixed F8. When a tool completion arrived without an ID, the watchdog passed the oldest open call's scope string where it needed the call's ID. Nothing got closed, so the call stayed open after it had finished.

Fix (packages/core/src/claude/docker/agentActivityWatchdog.ts:117): the fallback in recordToolEnd now reads the oldest map key (this.openToolIds.keys().next()) instead of its value. That key goes back into recordToolEnd, which closes the call and marks it finished.

Regression (packages/core/test/agentActivityWatchdog.test.ts, "a completion without an id closes the oldest identified call"): the test turns the tool threshold off (toolStallTimeoutMs: 0) and sends these records:

  • {"type":"tool_use","id":"t1"}, then {"type":"tool_use","id":"t2"}, then {"type":"tool_result"}: only t1 closes, so one tool stays open.
  • A late {"type":"tool_result","id":"t1"}: this is treated as a duplicate and does not close t2.
  • A second {"type":"tool_result"}: no tools are open, and one second of silence now stops the run as ordinary inactivity.

The test failed against the old code (2 tools still open where 1 was expected) and passes with the fix.

Same-mistake check: this was the only place that looks up a tool by reading from the map, in agentActivityWatchdog.ts and the rest of src/claude/docker/. The other loops over the map already use the [id, scope] pairs correctly.

Verification:

  • agentActivityWatchdog.test.ts: 21 of 21 pass.
  • test/dockerExecutorWatchdog.test.ts (end-to-end, run through scripts/run-test-suite.mjs, which mocks the modules it needs): 14 of 14 pass.
  • tsc --noEmit for core is clean.
  • ESLint passes on agentActivityWatchdog.ts. It skips the test file because no ESLint config covers it, same as before this change.

To run these I had to install dependencies with .propr/setup.sh and build packages/shared. I didn't change any setup files.

I found nothing else outside F8's scope worth reporting.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 2m 49s
  • Tokens: 579,075 (575,195 in / 3,880 out)
  • Cost: $0.34
  • Subscription usage: Session +1%

Undo Changes • View Task Execution


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

🤖 Generated by ProPR
Processing comment ID: 6009566721✓

…he watchdog passed the oldest open call's scope string where it needed the call's ID. Nothing got closed, so the call stayed open after it had finished.

I fixed F8. When a tool completion arrived without an ID, the watchdog passed the oldest open call's scope string where it needed the call's ID. Nothing got closed, so the call stayed open after it had finished.

**Fix** (`packages/core/src/claude/docker/agentActivityWatchdog.ts:117`): the fallback in `recordToolEnd` now reads the oldest map key (`this.openToolIds.keys().next()`) instead of its value. That key goes back into `recordToolEnd`, which closes the call and marks it finished.

**Regression** (`packages/core/test/agentActivityWatchdog.test.ts`, "a completion without an id closes the oldest identified call"): the test turns the tool threshold off (`toolStallTimeoutMs: 0`) and sends these records:
- `{"type":"tool_use","id":"t1"}`, then `{"type":"tool_use","id":"t2"}`, then `{"type":"tool_result"}`: only `t1` closes, so one tool stays open.
- A late `{"type":"tool_result","id":"t1"}`: this is treated as a duplicate and does not close `t2`.
- A second `{"type":"tool_result"}`: no tools are open, and one second of silence now stops the run as ordinary inactivity.

The test failed against the old code (2 tools still open where 1 was expected) and passes with the fix.

**Same-mistake check:** this was the only place that looks up a tool by reading from the map, in `agentActivityWatchdog.ts` and the rest of `src/claude/docker/`. The other loops over the map already use the `[id, scope]` pairs correctly.

**Verification:**
- `agentActivityWatchdog.test.ts`: 21 of 21 pass.
- `test/dockerExecutorWatchdog.test.ts` (end-to-end, run through `scripts/run-test-suite.mjs`, which mocks the modules it needs): 14 of 14 pass.
- `tsc --noEmit` for core is clean.
- ESLint passes on `agentActivityWatchdog.ts`. It skips the test file because no ESLint config covers it, same as before this change.

To run these I had to install dependencies with `.propr/setup.sh` and build `packages/shared`. I didn't change any setup files.

I found nothing else outside F8's scope worth reporting.

PR: #2757
Comment by: @integry (ID: 6009566721)
Model: claude-opus-5-5
@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR implements a shared execution watchdog, configurable thresholds, explicit termination reasons, and reporting across task state and metrics. The supplied diff supports merge readiness within scope, conditional on the pending checks completing successfully.

✅ Shared stop path — Watchdog trips reuse subprocess-scoped teardown and preserve partial output for implementation callers.

✅ Stateful tool tracking — Identified tool calls are tracked separately, and duplicate completion records do not close other outstanding calls.

✅ Termination propagation — The new reasons flow through agent adapters, issue completion, partial-work explanations, and terminal-state reconciliation.

This was a static review of the supplied diff and context; no commands or tests were run. Current checks report 0 failures and 18 pending.

Merge blockers

No merge blockers.

Suggestions

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

S2: 🟢 Bound observability completion

dockerExecutor.ts awaits watchdog.settled() before returning, while reporting awaits metrics and database writes. Consider bounding that reporting wait so delayed observability cannot substantially postpone task completion and capacity release. This is optional hardening: the supplied context does not establish an actual unbounded production reporting operation.

S3: 🟢 Add captured protocol fixtures

The classifier tests cover many useful cases, but their records are constructed examples. Sanitized fixtures captured from each supported runtime would strengthen confidence that tool starts, completions, and whitespace output match actual emitted records—especially for snapshot-based Vibe output. This is additional compatibility coverage, not a demonstrated defect in the current implementation.

Score

The implementation is cohesive, with substantial focused coverage and no verified merge blocker in the supplied code. Pending checks still need to complete successfully.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 48s
  • Tokens: 83,589 (82,375 in / 1,214 out)
  • Cost: $0.77

View Task


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

Copy and edit to choose records from this review:

/fix S2 S3

🤖 Review by ProPR

@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 2735/claude-opus-5-5-add-a-stall-and-degenerat-20261005-2330-eo3 in commit 65c9e06

Conflicting Files

  • CHANGELOG.md

Resolution Summary

I resolved the only conflict, in CHANGELOG.md, and no conflict markers are left anywhere in the repository. I couldn't stage the file: git add failed because the .git worktree is on a read-only file system.

What the conflict was: Both branches added new entries at the top of ## [Unreleased] → ### Added, in the same spot.

  • This PR added the Agent stall and degenerate-output watchdog entry.
  • main added two entries: Managed agent in Linux desktop previews and Complete bundled third-party notices.

How I resolved it: I kept all three entries word for word, with the PR's watchdog entry first and main's two entries after it. Below them is the existing Bounded goal waits entry and everything else, unchanged. I also dropped a stray blank line that came from main's side, so the list stays tight like the rest of the file.

Why: The entries describe separate features and don't overlap, so this was purely a position clash. Keeping all of them preserves the PR's intent and main's updates, and nothing was dropped.

Check: I searched every tracked file for <<<<<<<, ======= and >>>>>>> and found none. CHANGELOG.md is Markdown, so there's no syntax to check beyond the list layout, which I confirmed is correct.


🤖 Resolution Details

  • Model: claude-opus-5-5
  • Time: 29s

View Task Execution


System-triggered merge conflict resolution

…all-and-degenerat-20261005-2330-eo3

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md

PR: #2757
Model: claude-opus-5-5
@integry

integry commented Oct 6, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 2735/claude-opus-5-5-add-a-stall-and-degenerat-20261005-2330-eo3 in commit 018075b

Conflicting Files

  • CHANGELOG.md
  • docs/docs/operations/settings-locations.md
  • packages/api/mcp/settingsCatalog.ts
  • packages/api/mcp/toolsManagement.ts
  • packages/api/routes/configHelpers.ts
  • packages/api/routes/configRoutes.ts
  • packages/api/routes/configRoutesSettings.ts
  • packages/api/routes/configSettings.ts
  • packages/cli/src/api/settings.ts
  • packages/cli/src/commands/settingCommands.ts
  • src/jobs/issueJob/completion.ts

Resolution Summary

I resolved all 11 conflicted files, and no conflict markers remain anywhere in the repository. I couldn't run a full typecheck because TypeScript isn't installed in this workspace. Instead I parsed the 9 TypeScript files with the TypeScript compiler, and all of them parse cleanly. That confirms the syntax is valid but does not check types, so I also confirmed by reading the code that ultrafixCiWait in configRoutes.ts and the new helper functions in completion.ts are defined.

Why every conflict looked the same: this PR adds three agent watchdog settings (agent_stall_timeout_ms, agent_tool_stall_timeout_ms, agent_degenerate_output_limit). Meanwhile, main added an ultrafix_ci_wait_timeout_ms setting and a push-salvage feature. Both sides added lines at the same spot, right after ultrafix_pause_seconds. They are separate features with nothing contradicting each other, so in every case I kept both. Main's ultrafix setting goes first, right after the other ultrafix settings, followed by the PR's watchdog settings.

File Conflict Resolution
CHANGELOG.md Both added an "Added" entry: the PR's "Agent stall and degenerate-output watchdog" and main's "Push salvage and rejection diagnosis". Kept both entries.
docs/.../settings-locations.md Both added rows to the settings table. Kept main's "Ultrafix CI wait timeout" row, then the PR's three watchdog rows.
packages/api/mcp/settingsCatalog.ts Both added catalog entries. Kept main's ultrafix.ci_wait_timeout_ms entry, then the PR's three execution.agent_* entries.
packages/api/mcp/toolsManagement.ts Both edited the same one-line settingsShape object. Merged into one object: main's ultrafix_ci_wait_timeout_ms validator plus the PR's three watchdog validators, which accept null to mean "use the environment default".
packages/api/routes/configHelpers.ts Both appended to the list of setting keys. Kept all four keys and fixed the commas.
packages/api/routes/configRoutes.ts Both added to the GET settings response. Kept ultrafix_ci_wait_timeout_ms: ultrafixCiWait.value and the PR's ...await agentWatchdogSettingsResponse(configStore).
packages/api/routes/configRoutesSettings.ts (2 conflicts) Both added fields to the destructuring and to the extractSettingSaves call. Kept all four fields in both places and fixed the commas.
packages/api/routes/configSettings.ts (3 conflicts) Both edited SettingFields, the SettingSaveName type and extractSettingSaves. Added the new field to SettingFields. The type now includes 'ultrafix_ci_wait_timeout_ms' as well as AgentWatchdogSettingName, and the PR's AGENT_WATCHDOG_SETTING_NAMES constant is kept. Main's CI-wait check runs before the PR's watchdog check, then the existing escalation step runs.
packages/cli/src/api/settings.ts (3 conflicts) Both added fields to SystemSettings, UpdateSettingsOptions and VALID_SETTING_KEYS. Kept main's field and doc comment, then the PR's watchdog fields (including agent_watchdog_defaults and agent_watchdog_effective). Added all four CLI keys.
packages/cli/src/commands/settingCommands.ts Both added CLI help descriptions. Kept all four descriptions.
src/jobs/issueJob/completion.ts The PR added a terminalReasonFields() helper; main added markPushFailure() in the same place. Main also split markTaskTerminalState so it checks for a push failure before marking the normal terminal state. Kept both functions. Main's split is unchanged, and the PR's helper is still used in markAgentTerminalState. A push failure takes priority, which is what main intended. Otherwise the PR's stalled / degenerate_output reason is still recorded on the task.

Why I resolved it this way: both sides add independent settings or behaviour, so keeping everything preserves the PR's watchdog feature and main's CI-wait timeout and push salvage. The only real logic overlap was completion.ts, and the two paths there fit together without changes.

I tried to mark the files as resolved with git add, but it failed because the worktree's git index is on a read-only filesystem. The resolved files are saved in the workspace.


🤖 Resolution Details

  • Model: claude-opus-5-5
  • Time: 1m 8s

View Task Execution


System-triggered merge conflict resolution

…all-and-degenerat-20261005-2330-eo3

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md
- docs/docs/operations/settings-locations.md
- packages/api/mcp/settingsCatalog.ts
- packages/api/mcp/toolsManagement.ts
- packages/api/routes/configHelpers.ts
- packages/api/routes/configRoutes.ts
- packages/api/routes/configRoutesSettings.ts
- packages/api/routes/configSettings.ts
- packages/cli/src/api/settings.ts
- packages/cli/src/commands/settingCommands.ts
- src/jobs/issueJob/completion.ts

PR: #2757
Model: claude-opus-5-5
@propr-dev

propr-dev Bot commented Oct 6, 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.

.github:446 — 🎭 Playwright Run Summary
210 passed (9.9m)

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Checks Failed

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

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

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

--- Release shell script lint ---

--- Toolchain ---
v22.23.3
10.9.9

--- Dependency installation ---
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: 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 1120 packages, and audited 1129 packages in 26s

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

8 high severity vulnerabilities

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

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

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

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


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


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

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

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 26.3kB 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 11.7kB dist/api/client.js
npm notice 5.0kB dist/api/errors.js
npm notice 16.6kB dist/api/goals.js
npm notice 5.5kB dist/api/implement.js
npm notice 2.4kB 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 12.3kB 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.4kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 29.5kB dist/commands/agentValidation.js
npm notice 66.6kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 57.9kB dist/commands/goalCommands.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 7.2kB dist/commands/implementCommands.js
npm notice 1.7kB dist/commands/index.js
npm notice 6.9kB 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 17.1kB dist/commands/settingCommands.js
npm notice 4.0kB 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 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.4kB dist/commands/startCommand.js
npm notice 13.5kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 44.4kB 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.7kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 13.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 119.1kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.7kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.1kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.2kB dist/tui/StartApp.js
npm notice 3.6kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 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 27.0kB 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 1.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 2.0kB dist/vendor/shared/antigravityCompatibility.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 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 11.6kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 4.9kB dist/vendor/shared/goalWait.js
npm notice 11.7kB 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 16.6kB 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.6kB 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.5kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 1.7kB dist/vendor/shared/reviewPrompt.js
npm notice 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 1.7kB dist/vendor/shared/taskLifecycle.js
npm notice 957B dist/vendor/shared/text.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 622B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.0
npm notice filename: propr-cli-0.9.0.tgz
npm notice package size: 425.0 kB
npm notice unpacked size: 1.8 MB
npm notice shasum: 4a09d7e4ed9b32a94d833391bff5d571f29b26bb
npm notice integrity: sha512-aOKtOiQL67DnP[...]LiOq0s6OHcoqg==
npm notice total files: 167
npm notice
propr-cli-0.9.0.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 passed
✅ UI Build passed

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

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


/home/runner/work/propr/propr/packages/api/routes/configRoutes.ts
  425:1  warning  File has too many lines (402). Maximum allowed is 400  max-lines

/home/runner/work/propr/propr/packages/api/routes/configSettings.ts
  93:8  warning  Async function 'extractSettingSaves' has a complexity of 21. Maximum allowed is 20  complexity

✖ 2 problems (0 errors, 2 warnings)

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

--- 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 Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 134eb9a

Summary of Changes

I fixed the Validate Changes failure. Both problems came from code this PR added. The API lint now passes with zero warnings and @propr/api builds; CI hasn't re-run on the change yet.

Cause: The Playwright tests all passed (210). The job failed in the "Run Checks" step because the API lint allows no warnings, and it found two:

  1. packages/api/routes/configRoutes.ts was 402 lines, over the 400-line limit, after the watchdog settings helper was added.
  2. In packages/api/routes/configSettings.ts, the function extractSettingSaves had a complexity of 21, over the limit of 20, after the watchdog settings check was added.

Fix (no change in behaviour):

  • I moved agentWatchdogSettingsResponse from configRoutes.ts into configRoutesSettings.ts, next to the similar reviewContextBudgetSettingsResponse. configRoutes.ts now imports it from there.
  • I moved the final watchdog and escalation checks out of extractSettingSaves into a small helper, extractTrailingSettingSaves. Settings are still checked and saved in the same order.

Tests: The tests for the settings routes, follow-up, usage tips and reasoning level all pass.

To run these checks locally I had to install dependencies and build a few packages first. None of that shows up in the changes; only the three files above changed.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 3m 32s
  • Tokens: 1,113,538 (1,107,145 in / 6,393 out)
  • Cost: $0.60

Undo Changes • View Task Execution


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

🤖 Generated by ProPR
Processing comment ID: 6013371259✓

…e from code this PR added. The API lint now passes with zero warnings and `@propr/api` builds; CI hasn't re-run on the change yet.

I fixed the **Validate Changes** failure. Both problems came from code this PR added. The API lint now passes with zero warnings and `@propr/api` builds; CI hasn't re-run on the change yet.

**Cause:** The Playwright tests all passed (210). The job failed in the "Run Checks" step because the API lint allows no warnings, and it found two:
1. `packages/api/routes/configRoutes.ts` was 402 lines, over the 400-line limit, after the watchdog settings helper was added.
2. In `packages/api/routes/configSettings.ts`, the function `extractSettingSaves` had a complexity of 21, over the limit of 20, after the watchdog settings check was added.

**Fix (no change in behaviour):**
- I moved `agentWatchdogSettingsResponse` from `configRoutes.ts` into `configRoutesSettings.ts`, next to the similar `reviewContextBudgetSettingsResponse`. `configRoutes.ts` now imports it from there.
- I moved the final watchdog and escalation checks out of `extractSettingSaves` into a small helper, `extractTrailingSettingSaves`. Settings are still checked and saved in the same order.

**Tests:** The tests for the settings routes, follow-up, usage tips and reasoning level all pass.

To run these checks locally I had to install dependencies and build a few packages first. None of that shows up in the changes; only the three files above changed.

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

propr-dev Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @github-actions[bot]

Analysis Summary

I made no changes, because the branch already contains the fix for this failure.

The failed run (37441571757) tested the merge commit 018075b. The commit after it, 134eb9a, fixed both warnings in that log:

  • configRoutes.ts was 402 lines, over the 400 limit: agentWatchdogSettingsResponse was moved into configRoutesSettings.ts.
  • extractSettingSaves had a complexity of 21, over the limit of 20: the watchdog and escalation checks were moved out into a helper, extractTrailingSettingSaves.

To check, I installed dependencies and ran the API lint on the current branch. eslint routes/ --max-warnings 0 and npm run lint in packages/api both pass with no warnings. I didn't re-run the API build; the fix commit reports that it builds.

CI hasn't run on 134eb9a yet, so the next run will confirm it.

No preview was needed, since nothing changed that a user would see.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 1m 1s
  • Tokens: 282,417 (280,841 in / 1,576 out)
  • Cost: $0.24

View Task Execution


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

🤖 Generated by ProPR
Processing comment ID: 6013372338✓

@integry
integry merged commit 4baa13b into main Oct 6, 2026
50 checks passed
@integry
integry deleted the 2735/claude-opus-5-5-add-a-stall-and-degenerat-20261005-2330-eo3 branch October 6, 2026 10:18
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.

## Add a stall and degenerate-output watchdog for running agent containers

2 participants