Skip to content

fix(agents): strip external-content nonce so loop detection blocks repeated wrapped failures - #130261

Merged
steipete merged 3 commits into
openclaw:mainfrom
ruel225:fix/loop-detection-wrapper-nonce-130210
Aug 27, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
ruel225:fix/loop-detection-wrapper-nonce-130210

Conversation

@ruel225

@ruel225 ruel225 commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #130210.

What Problem This Solves

Fixes an issue where agents with rolling loop detection enabled repeatedly execute the same failing browser action without reaching the no-progress block threshold. Fresh external-content boundary nonces made equivalent tool outcomes look different, including protected thrown browser errors.

Why This Change Was Made

Normalize complete matching external-content envelope nonces only in the shared private outcome hash. This covers thrown errors, returned text, and structured JSON details, instead of changing only extracted result text. The existing stable serializer owns traversal; the shared SHA-256 helper replaces the local duplicate digest implementation.

Argument hashes and model-visible security envelopes remain unchanged. This is syntactic comparison, not authentication: literal or copied text matching the complete raw or JSON-escaped wrapper grammar also ignores nonce-only changes. Malformed pairs, empty IDs, invalid escaping, JSON field boundaries, and meaningful payload or metadata changes remain significant. Requiring a complete JSON document around an escaped envelope was considered and rejected: JSON parsing cannot establish provenance and would exclude valid serialized fragments in joined result text.

Thanks @ruel225 for the original diagnosis and contribution. The maintainer rewrite also fixes the protected thrown-error path and structured-result siblings that the initial text-only change missed.

User Impact

Equivalent wrapped failures now reach the existing no-progress limit while meaningful changes still count as progress. No defaults or configuration keys change: rolling-history detection requires tools.loopDetection.enabled: true; the post-compaction guard remains enabled when that setting is unset, and explicit false disables both. The documentation now states those existing defaults and the normalized-outcome contract accurately.

Evidence

  • Real isolated Chrome through the production browser tool, browser bridge, before-tool wrapper, and outcome recorder: trusted baseline executed all 39 identical invalid-key failures, yielding 39 different hashes and no block. The repaired runtime completes 20 genuine failures with 20 fresh paired model-visible nonce IDs and one outcome hash; attempt 21 is blocked. Equivalent returned page results behave the same way.
  • Real changing page results and changing page-thrown errors each remain 39 distinct outcome hashes with no block. Explicitly disabled detection permits all 25 repeated failures. The post-compaction guard stops the third equivalent recorded outcome but not changing outcomes or explicitly disabled runs.
  • 178 focused tests pass across loop detection, before-tool network errors, admission, post-compaction behavior, and error protection. New regressions were observed failing before each corresponding repair. Scoped type-aware lint, formatting, and the real Chrome proof pass on the final runtime revision.
  • Production jsonResult, wrapWebContent, and outcome-recording contract checks pass at nested JSON depths 0 through 4 with fixed metadata. This is deterministic sibling proof, not a live web_fetch run; the complete web-fetch loader was blocked by an existing unicorn-magic package-exports error. Fresh fetchedAt or tookMs values remain meaningful, so this PR does not claim that every repeated fetch with the same body is blocked.

One browser-proof attempt timed out during setup before reaching the changed code; a fresh run with the unchanged standard timeout passed. The complete proof was repeated successfully after the runtime grammar refinements. No operator browser or running gateway was used.

Production LOC is +31/-15 (net +16), tests +262, plus focused documentation and one changelog line. The added production lines implement the single private envelope-comparison boundary, including paired-marker and JSON-string-boundary preservation; there is no new parser, object walker, configuration, dependency, or delivered-content transformation. Full exact-head hosted CI is green on 32cdc548b00676471d537bb226281ba319efdf4d: CI, Workflow Sanity.

Inspectable isolated-Chrome proof: captured logs and result fields

The proof launched its own managed headless Chrome, local fixture server, browser bridge, and isolated temporary state. It invoked the real browser tool through the production before-tool wrapper and outcome recorder. The error case used an invalid key; the progress controls read a changing page counter and throw changing page errors. This is live local Chrome, not a mocked browser or an authenticated external-site test.

Baseline source: 2d386c2ea6e86404d779c5cfea97b2ca958499d7. Selected captured result fields:

{"name":"identical-thrown","calls":39,"thrown":39,"blocked":0,"uniqueMarkerIds":39,"uniqueOutcomeHashes":39,"firstBlocked":null}
{"name":"identical-returned","calls":39,"thrown":0,"blocked":0,"uniqueMarkerIds":39,"uniqueOutcomeHashes":39,"firstBlocked":null}

After-fix command: node --import tsx .artifacts/browser-loop-proof.mts --fixed (exit 0). Production source SHA-256: 74a156483b012ed9ec4dd4bab01e882d8a824d55729168152dd9c3e9a1f516df; the subsequent CI test-typing correction does not change these runtime bytes. Captured production diagnostics:

[agents/loop-detection] Critical generic loop detected: browser repeated 20 times
[agents/tools] Blocking browser due to critical loop: CRITICAL: Called browser with identical outcomes 20 times. Session execution blocked to prevent runaway loops.
[diagnostic] tool loop: sessionId=unknown sessionKey=browser-loop-proof:identical-thrown tool=browser level=critical action=block detector=generic_repeat count=20 message="CRITICAL: Called browser with identical outcomes 20 times. Session execution blocked to prevent runaway loops."

Selected captured after-fix result fields:

{"name":"identical-thrown","calls":39,"thrown":20,"blocked":19,"uniqueMarkerIds":20,"uniqueOutcomeHashes":1,"firstBlocked":21}
{"name":"identical-returned","calls":39,"thrown":0,"blocked":19,"uniqueMarkerIds":20,"uniqueOutcomeHashes":1,"firstBlocked":21}
{"name":"changing-returned","calls":39,"thrown":0,"blocked":0,"uniqueMarkerIds":39,"uniqueOutcomeHashes":39,"firstBlocked":null}
{"name":"changing-thrown","calls":39,"thrown":39,"blocked":0,"uniqueMarkerIds":39,"uniqueOutcomeHashes":39,"firstBlocked":null}
{"name":"disabled-identical","calls":25,"thrown":25,"blocked":0,"uniqueMarkerIds":25,"uniqueOutcomeHashes":1,"firstBlocked":null}

Thus attempts 1–20 execute and retain fresh model-visible marker pairs; attempt 21 is the first blocked execution. Later blocked attempts eventually reach the separate global circuit-breaker count of 30. Changing outcomes still receive the pre-existing generic warning, but are not blocked.

CI repair and review disposition

The first exact-head CI run caught a test-only string | undefined capture passed to Set<string> in the new boundary regression. The correction explicitly checks that capture before comparison and insertion, without a cast or weakened assertion. The 11 affected tests, owning agents-root test-type graph, scoped type-aware lint, and fresh independent reviews pass. All other selected lanes on that run passed; the complete revised-head CI run linked above now passes too.

Exact local commands:

node scripts/run-vitest.mjs src/agents/agent-tools.before-tool-call.network-error.test.ts
node scripts/run-tsgo.mjs -b test/tsconfig/tsconfig.core.test.agents-root.json --builders 1
node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/agents/agent-tools.before-tool-call.network-error.test.ts

The latest ClawSweeper review found no patch-correctness or security issue. Its inspectable-proof request is addressed by the captured output above. The single changelog entry is retained under explicit maintainer direction; no released version is changed. The automated stored-data warning is not a schema or migration change: this patch changes the private comparison digest and does not add or modify a storage schema, migration, or persistence API.

…tHash

External-content wrappers carry a fresh anti-forgery nonce per result
(createExternalContentMarkerId). The loop detector hashed the wrapper text
including the nonce, so identical failing wrapped tool calls never reached
the no-progress block threshold — the detector warned but never blocked,
leaving the agent to loop until it gave up (openclaw#130210).

Strip the wrapper nonce before hashing in extractTextContent, mirroring
the existing stripVolatileSendIds treatment of per-call send ids (openclaw#89090).
Only the hash is normalized; the delivered wrapper keeps its nonce, so
anti-forgery is unaffected.

Closes openclaw#130210

Co-Authored-By: Claude <[email protected]>
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@ruel225
ruel225 marked this pull request as ready for review August 26, 2026 17:26
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Aug 26, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 27, 2026, 12:00 AM ET / 04:00 UTC.

ClawSweeper review

What this changes

The PR canonicalizes only external-content wrapper nonce IDs in private tool-outcome hashes so repeated equivalent wrapped errors and results reach the existing loop-block threshold.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Needs maintainer review before merge - 4 items remain

Keep open: the runtime repair is well-targeted and has inspectable after-fix local Chrome logs, but the branch contains a release-owned CHANGELOG.md edit that should be removed before merge.

Priority: P1
Reviewed head: 32cdc548b00676471d537bb226281ba319efdf4d

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The runtime repair and real behavior evidence are strong, with one mechanical release-owned metadata correction remaining.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The PR body contains redacted after-fix diagnostics and result fields from a real isolated Chrome run through the production browser wrapper and outcome recorder, showing the block on attempt 21 while changing results continue.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The PR body contains redacted after-fix diagnostics and result fields from a real isolated Chrome run through the production browser wrapper and outcome recorder, showing the block on attempt 21 while changing results continue.
Evidence reviewed 7 items Current main still has the reported hash behavior: Current main hashes the raw stable serialization through digestStable, so a fresh wrapper ID remains part of the outcome hash.
Repair is at the outcome-hash owner boundary: The PR head replaces only private outcome hashing with a stable-string normalizer that recognizes paired, valid wrapper IDs; arguments and delivered content are untouched.
Caller carries protected failures into the recorder: The before-tool wrapper protects network errors, then records the thrown error through the same loop-outcome path used for returned tool results.
Findings 1 actionable finding [P2] Remove the release-owned changelog entry
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs src/agents/agent-tools.before-tool-call.network-error.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs src/agents/agent-tools.before-tool-call.network-error.test.ts: previous terminal command was still running after 30 seconds: "node scripts/run-vitest.mjs src/agents/agent-tools.before-tool-call.network-error.test.ts"

[test] starting test/vitest/vitest.agents-core.config.ts

 RUN  v4.1.11 /tmp/clawsweeper-live-proof-130261-9mE5QO/target

 ✓  agents-core  src/agents/agent-tools.before-tool-call.network-error.test.ts (11 tests) 243ms

 Test Files  1 passed (1)
      Tests  11 passed (11)
   Start at  04:01:45
   Duration  11.33s (transform 8.88s, setup 959ms, import 9.77s, tests 243ms, environment 0ms)

[test] passed 1 Vitest shard in 17.85s

Assertions:

  • FAIL expect_output: Test Files

How this fits together

Agent tool execution records an outcome hash after each call; loop detection uses that private history to distinguish real progress from repeated failures. Network-originated errors are wrapped before model delivery, and their randomized wrapper IDs previously made identical failures appear different to the detector.

flowchart LR
A[Agent tool call] --> B[Network result or error]
B --> C[External-content security wrapper]
C --> D[Private outcome hash]
D --> E[Loop detector]
E --> F{Repeated normalized outcome}
F -->|Yes| G[Block runaway execution]
F -->|No| H[Continue tool run]
Loading

Before merge

  • Remove the release-owned changelog entry (P2) - Release generation owns CHANGELOG.md, and the PR body already contains the needed user-impact context. Keeping this normal-PR entry creates release-train churn contrary to the repository policy; remove it and preserve the release note in the PR body.
  • Resolve merge risk (P1) - The change deliberately makes the post-compaction guard and enabled rolling detector block formerly unblocked wrapped failures; malformed boundaries and meaningful fields are covered, but exact-head CI must complete before merge.
  • Resolve merge risk (P1) - Production code grows by 16 net lines for the escaped-envelope grammar; moving that normalization into shared stableStringify would widen semantics for unrelated hash consumers.
  • Complete next step (P2) - One mechanical removal resolves the only actionable finding without changing the runtime fix or requiring product judgment.

Findings

  • [P2] Remove the release-owned changelog entry — CHANGELOG.md:315
Agent review details

Security

None.

PR surface

Source +16, Tests +262, Docs +8. Total +286 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 31 15 +16
Tests 2 262 0 +262
Docs 2 13 5 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 306 20 +286

Review metrics

Metric Value Why it matters
Production versus regression coverage production +31/-15 (net +16); tests +262; docs/changelog +13/-5 The new private comparison grammar is bounded to one owner module and is accompanied by coverage for error, text, JSON, malformed-marker, and compaction paths.

Stored data model

Persistent data-model change detected: serialized state: src/agents/tool-loop-detection.test.ts, serialized state: src/agents/tool-loop-detection.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #130210
Summary: The linked issue is the canonical report; this PR explicitly proposes and source-aligns with its fix.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Keep the tested bounded-block behavior (recommended)
    Merge after exact-head checks pass, accepting the intended effect that equivalent wrapped failures now stop at the existing threshold while changing outcomes continue.
  2. Pause for broader rollout evidence
    Hold the PR if maintainers want production traces beyond the supplied isolated Chrome proof before changing default post-compaction blocking.

Technical review

Best possible solution:

Remove the release-owned CHANGELOG.md entry, then retain the local private-outcome normalization and merge only after exact-head checks are green.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: current main includes each fresh external-wrapper ID in the raw outcome digest, while the wrapper generates a random 16-hex ID per result. The PR body also supplies an after-fix production-browser trace, but this review did not execute the external branch.

Is this the best way to solve the issue?

No as submitted: the private outcome-hash boundary is the best repair location, but the release-owned CHANGELOG.md edit should be removed because the PR body already carries the release context.

Full review comments:

  • [P2] Remove the release-owned changelog entry — CHANGELOG.md:315
    Release generation owns CHANGELOG.md, and the PR body already contains the needed user-impact context. Keeping this normal-PR entry creates release-train churn contrary to the repository policy; remove it and preserve the release note in the PR body.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8dac217ce94e.

Labels

Label changes:

  • add merge-risk: 🚨 availability: The PR intentionally changes repeated wrapped outcomes from continuing execution to blocking at the loop-detection threshold.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body contains redacted after-fix diagnostics and result fields from a real isolated Chrome run through the production browser wrapper and outcome recorder, showing the block on attempt 21 while changing results continue.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (logs): The PR body contains redacted after-fix diagnostics and result fields from a real isolated Chrome run through the production browser wrapper and outcome recorder, showing the block on attempt 21 while changing results continue.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: This repairs a runaway agent-tool loop that can continue spending resources instead of reaching the existing safety block.
  • merge-risk: 🚨 availability: The PR intentionally changes repeated wrapped outcomes from continuing execution to blocking at the loop-detection threshold.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (logs): The PR body contains redacted after-fix diagnostics and result fields from a real isolated Chrome run through the production browser wrapper and outcome recorder, showing the block on attempt 21 while changing results continue.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body contains redacted after-fix diagnostics and result fields from a real isolated Chrome run through the production browser wrapper and outcome recorder, showing the block on attempt 21 while changing results continue.

Evidence

Acceptance criteria:

  • [P1] git diff --check.

What I checked:

Likely related people:

  • steipete: Authored the current head’s test correction and has repeatedly maintained the loop-detection file, including the adjacent terminal-failure repair. (role: recent area contributor; confidence: high; commits: 32cdc548b006, e92a98c77d6a, f0371e8d88f9; files: src/agents/tool-loop-detection.ts, src/agents/agent-tools.before-tool-call.network-error.test.ts)
  • WhatsSkiLL: Authored the prior argument-churn loop-detection repair in the same owner module. (role: adjacent detector contributor; confidence: medium; commits: 79c517df8942; files: src/agents/tool-loop-detection.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the CHANGELOG.md entry; keep the existing release context in the PR body.
  • Allow the required checks for the exact current head to complete successfully.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-26T17:34:51.205Z sha 5d19340 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-27T03:27:38.514Z sha c7bd4a6 :: needs real behavior proof before merge. :: none

Reconcile the original contribution with the reviewed main baseline and
normalize complete external-content envelopes only in private outcome hashes.
Cover protected thrown errors, returned text, and structured results while
preserving delivered content, argument hashes, and meaningful progress.

This maintainer-reviewed rewrite retains the original PR as its first parent
and the frozen trusted-main baseline as its second parent.

Closes openclaw#130210

Co-authored-by: ruel225 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M and removed size: S labels Aug 27, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Updated the existing PR with a maintainer-reviewed rewrite, preserving the original contributor and branch ancestry. The shared private outcome hash now covers protected thrown errors, returned text, and structured JSON results. Real isolated Chrome proof and configuration-default corrections are in the PR body; 178 focused tests and scoped type-aware lint pass. Full exact-head CI is still required before landing.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Narrow the generated marker capture before recording it so the real network-error loop regression also passes its owning test-type graph.
@steipete
steipete merged commit cd32193 into openclaw:main Aug 27, 2026
263 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 27, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…peated wrapped failures (openclaw#130261)

* fix(agents): strip external-content nonce before loop-detection resultHash

External-content wrappers carry a fresh anti-forgery nonce per result
(createExternalContentMarkerId). The loop detector hashed the wrapper text
including the nonce, so identical failing wrapped tool calls never reached
the no-progress block threshold — the detector warned but never blocked,
leaving the agent to loop until it gave up (openclaw#130210).

Strip the wrapper nonce before hashing in extractTextContent, mirroring
the existing stripVolatileSendIds treatment of per-call send ids (openclaw#89090).
Only the hash is normalized; the delivered wrapper keeps its nonce, so
anti-forgery is unaffected.

Closes openclaw#130210

Co-Authored-By: Claude <[email protected]>

* test(agents): validate protected error marker capture

Narrow the generated marker capture before recording it so the real network-error loop regression also passes its owning test-type graph.

---------

Co-authored-by: ruel225 <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tool-loop detection never blocks repeated identical tool failures: the EXTERNAL_UNTRUSTED_CONTENT wrapper's random id makes every result hash unique

2 participants