Skip to content

fix(agents): expire poll vote echo at TTL - #133996

Merged
steipete merged 2 commits into
openclaw:mainfrom
qingminglong:codex/code-bug-poll-vote-echo-expiry-20260831
Aug 31, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
qingminglong:codex/code-bug-poll-vote-echo-expiry-20260831

Conversation

@qingminglong

@qingminglong qingminglong commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A same-route poll-vote follow-up at exactly 30 seconds could still be suppressed even though the echo guard had reached its expiry boundary.

Why This Change Was Made

Use inclusive expiry in both the pre-dispatch lookup and the write-time pruning loop. Preserve the existing session/agent/route/account scope, one-shot consumption, and text matching. Production remains net zero; no configuration, persistence, or channel API changes.

User Impact

An echo at 29,999 ms stays suppressed. At 30,000 ms and afterward, the follow-up reaches outbound delivery.

Evidence

Independently authored tests first ran against unchanged trusted main 37db48c3e93cef9330bad6de67fd7d77183e05da: the 30,000 ms case failed because the result was suppressed, while 29,999 ms and 30,001 ms controls passed. The equivalent two-comparator repair passes all ten existing and authored poll-guard cases, covering fresh tool instances across turns, conversation/route/account isolation, emoji identity, and one-shot consumption. Only Date.now is controlled in the boundary regression; unrelated timers retain normal behavior.

The retained inspectable harness below proves the changed delivery boundary through the real createMessageTool and default runMessageAction, a loopback WebSocket mock Gateway, the production server-side action runner, and an HTTP synthetic channel API. The vote is handled through the channel's local action path, and follow-up sends use its Gateway execution path. Each follow-up uses a fresh tool and turn capability for the same session and route. The same unchanged harness records baseline suppression at exactly 30,000 ms and repaired delivery at 30,000 and 30,001 ms, while retaining suppression at 29,999 ms. Both socket servers are closed and the isolated state is removed in finally.

This is actual mock-Gateway/channel transport proof. It does not start the complete production Gateway, use a model, or deliver an external iMessage; the action runner and tool results are not mocked. The original temporary direct-adapter trace is superseded by this retained harness and its explicit transport observations, addressing the latest ClawSweeper proof request.

Node 24.20.0: the baseline regression command took 27.50 seconds; the repaired ten-case poll group took 26.86 seconds. The initial harness calibration failed before actions because the synthetic plugin lacked its required outbound surface; the retained harness includes that surface and then reproduced the intended baseline failure. No production workaround, deadline change, or assertion weakening was made. Production +2/-2 (net0), tests +29/-0. Thanks @qingminglong; contributor ancestry is preserved.

The incoming branch's CI failed in checkout authentication before tests began. Final published-head CI and native landing validation remain pending; runtime results above come from the independently authored equivalent on trusted main.

Changed-scope validation passed formatting, core and core-test typechecks, targeted lint, and the required repository guards. The temporary gate checkout initially lacked the UI workspace dependency link and resolved an older root pako without declarations; linking the existing pinned UI installation corrected that checkout layout, with no dependency or source change.

Inspectable synthetic proof harness

Run from the reviewed, dependency-complete checkout with Node 24:

node --import ./scripts/tsx.mjs /path/to/probe.mts "$PWD"
// Retained synthetic proof: real tool + outbound runner, loopback WebSocket mock
// Gateway, production server-side action runner, and an HTTP mock channel API.
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import { createServer } from "node:http";
import { createRequire } from "node:module";
import path from "node:path";
import { performance } from "node:perf_hooks";
import { pathToFileURL } from "node:url";
const repo = process.argv[2];
if (!repo) throw new Error("usage: tools-poll-gateway-probe.mts <trusted-checkout>");
const load = (file: string) => import(pathToFileURL(path.join(repo, file)).href);
const { WebSocketServer } = createRequire(path.join(repo, "package.json"))("ws");
const [{ createOpenClawTestState }, registry, fixtures, configRuntime, capabilities, gatewayFrames] =
  await Promise.all([
    load("src/test-utils/openclaw-test-state.ts"), load("src/plugins/runtime.ts"),
    load("src/test-utils/channel-plugins.ts"), load("src/config/runtime-snapshot.ts"),
    load("src/gateway/message-action-turn-capability.ts"), load("src/gateway/minimal-gateway.test-helpers.ts"),
  ]);
const state = await createOpenClawTestState({ prefix: "poll-ttl-proof-", layout: "home" });
const originalNow = Date.now;
const started = performance.now();
const channelRecords: Array<Record<string, unknown>> = [];
const gatewayRecords: Array<Record<string, unknown>> = [];
const minted: string[] = [];
const results: Array<Record<string, unknown>> = [];
let clock = 100_000;
const channel = "ttl-proof";
const target = "user:synthetic-recipient";
const token = "synthetic-loopback-proof-token";
let runMessageAction: any;
let config: any;
const http = createServer(async (req, res) => {
  if (req.method !== "POST" || req.url !== "/channel") { res.writeHead(404).end(); return; }
  try {
    let body = "";
    for await (const chunk of req) body += chunk.toString();
    const record = JSON.parse(body);
    channelRecords.push(record);
    res.setHeader("content-type", "application/json");
    res.end(JSON.stringify({
      ok: true, messageId: `synthetic-${channelRecords.length}`,
      ...(record.action === "poll-vote" ? { pollVotedOption: "Black" } : {}),
    }));
  } catch (error) { res.writeHead(500).end(String(error)); }
});
const wss = new WebSocketServer({ server: http });
wss.on("connection", (ws: any) => {
  gatewayFrames.sendMinimalGatewayConnectChallenge(ws);
  ws.on("message", async (raw: any) => {
    const request = gatewayFrames.parseMinimalGatewayRequestFrame(raw);
    try {
      if (request.method === "connect") {
        assert.equal(request.params.auth.token, token);
        gatewayFrames.sendMinimalGatewayResponse(ws, request.id,
          gatewayFrames.buildMinimalGatewayHelloOkPayload({ methods: ["message.action"] }));
        return;
      }
      assert.equal(request.method, "message.action");
      const envelope = request.params;
      gatewayRecords.push({ action: envelope.action, channel: envelope.channel, params: envelope.params });
      // The mock Gateway owns this synthetic channel and delegates to the actual
      // outbound action runner. No network operation or tool result is mocked.
      const result = await runMessageAction({
        cfg: config, action: envelope.action,
        params: { ...envelope.params, channel: envelope.channel },
        defaultAccountId: envelope.accountId,
        conversationReadOrigin: "direct-operator",
      });
      gatewayFrames.sendMinimalGatewayResponse(ws, request.id, result.payload);
    } catch (error) {
      ws.send(JSON.stringify({ type: "res", id: request.id, ok: false,
        error: { code: "UNAVAILABLE", message: String(error) } }));
    }
  });
});
try {
  await new Promise<void>((resolve) => http.listen(0, "127.0.0.1", resolve));
  const address = http.address();
  assert(address && typeof address !== "string");
  const url = `ws://127.0.0.1:${address.port}`;
  const channelApi = `http://127.0.0.1:${address.port}/channel`;
  config = { gateway: { port: address.port, auth: { mode: "token", token } },
    channels: { [channel]: { enabled: true } }, agents: { entries: { main: { default: true } } } };
  configRuntime.setRuntimeConfigSnapshot(config, config);
  const plugin = {
    ...fixtures.createChannelTestPluginBase({ id: channel,
      config: { listAccountIds: () => ["default"], resolveAccount: () => ({ enabled: true }) } }),
    outbound: { deliveryMode: "gateway" },
    messaging: { normalizeTarget: (value: string) => value, targetResolver: { looksLikeId: () => true } },
    actions: {
      describeMessageTool: () => ({ actions: ["send", "poll-vote"] }),
      resolveExecutionMode: ({ action }: { action: string }) => action === "send" ? "gateway" : "local",
      handleAction: async ({ action, params, accountId }: any) => {
        const response = await fetch(channelApi, { method: "POST", headers: { "content-type": "application/json" },
          body: JSON.stringify({ action, target: params.to ?? params.target, accountId,
            message: params.message, pollId: params.pollId }) });
        assert.equal(response.status, 200);
        const details = await response.json();
        return { content: [{ type: "text", text: JSON.stringify(details) }], details };
      },
    },
  };
  registry.setActivePluginRegistry(fixtures.createTestRegistry([
    { pluginId: channel, plugin, source: "test", origin: "config" },
  ]));
  const { createMessageTool } = await load("src/agents/tools/message-tool-execution.ts");
  ({ runMessageAction } = await load("src/infra/outbound/message-action-runner.ts"));
  Date.now = () => clock;
  for (const elapsedMs of [29_999, 30_000, 30_001]) {
    clock = 100_000;
    const sessionKey = `agent:main:${channel}:direct:ttl-${elapsedMs}`;
    const toolForRun = (runId: string) => {
      const capability = capabilities.mintMessageActionTurnCapability({
        agentId: "main", runId, sessionKey, requesterAccountId: "default", expiresWithRun: true,
        toolContext: { currentChannelProvider: channel, currentChannelId: target, currentChatType: "direct" },
      });
      minted.push(capability);
      return createMessageTool({ config, agentId: "main", runId, agentSessionKey: sessionKey,
        agentAccountId: "default", currentChannelProvider: channel, currentChannelId: target,
        sourceReplyDeliveryMode: "message_tool_only", messageActionTurnCapability: capability,
        getScopedChannelsCommandSecretTargets: () => ({ targetIds: new Set<string>() }),
        resolveCommandSecretRefsViaGateway: async ({ config: cfg }: any) => ({ resolvedConfig: cfg, diagnostics: [] }),
      });
    };
    const from = channelRecords.length;
    await toolForRun(`vote-${elapsedMs}`).execute(`vote-${elapsedMs}`, {
      action: "poll-vote", channel, target, pollId: "synthetic-poll", pollOptionIndex: 2,
      gatewayUrl: url, gatewayToken: token,
    });
    capabilities.revokeMessageActionTurnCapability(minted.pop());
    clock += elapsedMs;
    const result = await toolForRun(`followup-${elapsedMs}`).execute(`send-${elapsedMs}`, {
      action: "send", channel, target, message: "🦞 Black.", gatewayUrl: url, gatewayToken: token,
    });
    capabilities.revokeMessageActionTurnCapability(minted.pop());
    const records = channelRecords.slice(from);
    const suppressed = result.details?.status === "suppressed";
    results.push({ elapsedMs, suppressed, channelRecords: records,
      expected: elapsedMs < 30_000 ? "suppressed" : "delivered" });
  }
  const passed = results.every((result) => result.suppressed === (Number(result.elapsedMs) < 30_000) &&
    (result.channelRecords as unknown[]).length === (Number(result.elapsedMs) < 30_000 ? 1 : 2));
  console.log(JSON.stringify({ passed, sourceSha256: createHash("sha256").update(await readFile(
    path.join(repo, "src/agents/tools/message-tool-execution.ts"))).digest("hex"),
    node: process.version, transport: "loopback WebSocket mock Gateway + HTTP synthetic channel API",
    realGatewayServer: false, mockActionRunner: false, externalDelivery: false,
    results, gatewayRecords, wallMs: performance.now() - started, rssBytes: process.memoryUsage().rss }, null, 2));
  if (!passed) process.exitCode = 1;
} finally {
  Date.now = originalNow;
  for (const capability of minted) capabilities.revokeMessageActionTurnCapability(capability);
  await gatewayFrames.closeMinimalGatewayServer(wss);
  await new Promise<void>((resolve) => http.close(() => resolve()));
  registry.resetPluginRuntimeStateForTest();
  configRuntime.clearRuntimeConfigSnapshot();
  await state.cleanup();
}
Before proof result
{
  "passed": false,
  "sourceSha256": "76dbcc332bb46fb2cf24944beeeaa7a1a349ad98a39d8ffb995095328df5a2fd",
  "node": "v24.20.0",
  "transport": "loopback WebSocket mock Gateway + HTTP synthetic channel API",
  "realGatewayServer": false,
  "mockActionRunner": false,
  "externalDelivery": false,
  "results": [
    {
      "elapsedMs": 29999,
      "suppressed": true,
      "channelRecords": [
        {
          "action": "poll-vote",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "pollId": "synthetic-poll"
        }
      ],
      "expected": "suppressed"
    },
    {
      "elapsedMs": 30000,
      "suppressed": true,
      "channelRecords": [
        {
          "action": "poll-vote",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "pollId": "synthetic-poll"
        }
      ],
      "expected": "delivered"
    },
    {
      "elapsedMs": 30001,
      "suppressed": false,
      "channelRecords": [
        {
          "action": "poll-vote",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "pollId": "synthetic-poll"
        },
        {
          "action": "send",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "message": "🦞 Black."
        }
      ],
      "expected": "delivered"
    }
  ],
  "gatewayRecords": [
    {
      "action": "send",
      "channel": "ttl-proof",
      "params": {
        "action": "send",
        "channel": "ttl-proof",
        "target": "user:synthetic-recipient",
        "message": "🦞 Black.",
        "idempotencyKey": "followup-30001:message-tool:-LdJxFPey48gLnmhZfEyOkpm:send-30001",
        "bestEffort": true,
        "to": "user:synthetic-recipient",
        "accountId": "default",
        "__sessionKey": "agent:main:main",
        "__agentId": "main"
      }
    }
  ],
  "wallMs": 3374.4456249999994,
  "rssBytes": 759595008
}
After proof result
{
  "passed": true,
  "sourceSha256": "f518a930ee6f785f032648a4ee14a62ddd38220e025e2f3a4df4a3215ad6a58a",
  "node": "v24.20.0",
  "transport": "loopback WebSocket mock Gateway + HTTP synthetic channel API",
  "realGatewayServer": false,
  "mockActionRunner": false,
  "externalDelivery": false,
  "results": [
    {
      "elapsedMs": 29999,
      "suppressed": true,
      "channelRecords": [
        {
          "action": "poll-vote",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "pollId": "synthetic-poll"
        }
      ],
      "expected": "suppressed"
    },
    {
      "elapsedMs": 30000,
      "suppressed": false,
      "channelRecords": [
        {
          "action": "poll-vote",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "pollId": "synthetic-poll"
        },
        {
          "action": "send",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "message": "🦞 Black."
        }
      ],
      "expected": "delivered"
    },
    {
      "elapsedMs": 30001,
      "suppressed": false,
      "channelRecords": [
        {
          "action": "poll-vote",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "pollId": "synthetic-poll"
        },
        {
          "action": "send",
          "target": "user:synthetic-recipient",
          "accountId": "default",
          "message": "🦞 Black."
        }
      ],
      "expected": "delivered"
    }
  ],
  "gatewayRecords": [
    {
      "action": "send",
      "channel": "ttl-proof",
      "params": {
        "action": "send",
        "channel": "ttl-proof",
        "target": "user:synthetic-recipient",
        "message": "🦞 Black.",
        "idempotencyKey": "followup-30000:message-tool:-LdJxFPey48gLnmhZfEyOkpm:send-30000",
        "bestEffort": true,
        "to": "user:synthetic-recipient",
        "accountId": "default",
        "__sessionKey": "agent:main:main",
        "__agentId": "main"
      }
    },
    {
      "action": "send",
      "channel": "ttl-proof",
      "params": {
        "action": "send",
        "channel": "ttl-proof",
        "target": "user:synthetic-recipient",
        "message": "🦞 Black.",
        "idempotencyKey": "followup-30001:message-tool:-LdJxFPey48gLnmhZfEyOkpm:send-30001",
        "bestEffort": true,
        "to": "user:synthetic-recipient",
        "accountId": "default",
        "__sessionKey": "agent:main:main",
        "__agentId": "main"
      }
    }
  ],
  "wallMs": 3949.3650829999997,
  "rssBytes": 760463360
}

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Aug 31, 2026
@qingminglong
qingminglong marked this pull request as ready for review August 31, 2026 09:11
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. 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 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 3:34 PM ET / 19:34 UTC.

ClawSweeper review

What this changes

The PR expires a session-scoped poll-vote echo record at its exact 30-second TTL and adds cross-run boundary coverage.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking findings. The PR remains necessary because current main retains the exclusive TTL checks; the inclusive checks correctly make a matching follow-up deliver at exactly 30 seconds while retaining session, route, and one-shot safeguards.

Priority: P2
Reviewed head: b01c912e483fb83bcc65cef3dde05eb5e85e18da

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, owner-boundary repair with credible boundary proof; exact-head CI remains the final landing gate.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The changed owner is the Message tool’s poll-echo guard, and the supplied before/after loopback Gateway plus synthetic channel run records its real action-runner outcome: exact-TTL delivery after the repair, with 29,999 ms still suppressed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed owner is the Message tool’s poll-echo guard, and the supplied before/after loopback Gateway plus synthetic channel run records its real action-runner outcome: exact-TTL delivery after the repair, with 29,999 ms still suppressed.
Evidence reviewed 7 items Introduced expiry repair: The exact PR head changes both expiration decisions from exclusive to inclusive, so a record at the TTL is deleted before it can suppress a follow-up.
Current-main behavior remains unfixed: The fetched current-main source still uses > at both the pre-dispatch lookup and write-time prune, so this PR is not redundant.
Observable boundary coverage: The added table uses a fresh tool instance for the same session and asserts suppression at 29,999 ms and outbound execution at 30,000 and 30,001 ms.
Findings None None.
Security None None.

How this fits together

The agent Message tool records a successful poll vote for the current session and route, then suppresses one matching text echo before outbound delivery. Non-suppressed messages continue into the message-action runner, which resolves and sends through the selected channel.

flowchart LR
  Vote[Poll vote action] --> Record[Recent vote record]
  Send[Follow-up send] --> Guard[Session and route echo guard]
  Record --> Guard
  Guard -->|within TTL and matching| Suppress[Suppress duplicate echo]
  Guard -->|expired or different route| Runner[Message-action runner]
  Runner --> Delivery[Channel delivery]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still pending, so the PR should not land until required checks finish successfully.
  • Complete next step (P2) - No repair lane is needed: the current branch contains the coherent fix and only awaits normal exact-head CI completion.
Agent review details

Security

None.

PR surface

Source 0, Tests +29. Total +29 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 2 0
Tests 1 29 0 +29
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 31 2 +29

Review metrics

Metric Value Why it matters
Production versus test LOC production +2/-2 (net 0); tests +29/-0 The bug repair changes two existing predicates without production growth, while the added table covers all adjacent TTL boundary outcomes.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the paired inclusive expiry checks and land only after exact-head CI confirms the focused boundary behavior remains clean.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the paired inclusive expiry checks and land only after exact-head CI confirms the focused boundary behavior remains clean.

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

Yes—source-reproducible with high confidence: a matching same-session, same-route echo exactly 30,000 ms after a recorded vote reaches the exclusive check and is suppressed on current main.

Is this the best way to solve the issue?

Yes. Both state-owner expiry paths define the same TTL, and making both inclusive is the smallest coherent repair; moving the rule into the channel plugin would duplicate core session-state policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0820b89d3b20.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed owner is the Message tool’s poll-echo guard, and the supplied before/after loopback Gateway plus synthetic channel run records its real action-runner outcome: exact-TTL delivery after the repair, with 29,999 ms still suppressed.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed owner is the Message tool’s poll-echo guard, and the supplied before/after loopback Gateway plus synthetic channel run records its real action-runner outcome: exact-TTL delivery after the repair, with 29,999 ms still suppressed.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 message-delivery: Current PR review selected no merge-risk labels.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a focused outbound-message correctness repair with limited scope.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed owner is the Message tool’s poll-echo guard, and the supplied before/after loopback Gateway plus synthetic channel run records its real action-runner outcome: exact-TTL delivery after the repair, with 29,999 ms still suppressed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed owner is the Message tool’s poll-echo guard, and the supplied before/after loopback Gateway plus synthetic channel run records its real action-runner outcome: exact-TTL delivery after the repair, with 29,999 ms still suppressed.

Evidence

What I checked:

  • Introduced expiry repair: The exact PR head changes both expiration decisions from exclusive to inclusive, so a record at the TTL is deleted before it can suppress a follow-up. (src/agents/tools/message-tool-execution.ts:495, b01c912e483f)
  • Current-main behavior remains unfixed: The fetched current-main source still uses > at both the pre-dispatch lookup and write-time prune, so this PR is not redundant. (src/agents/tools/message-tool-execution.ts:495, 0820b89d3b20)
  • Observable boundary coverage: The added table uses a fresh tool instance for the same session and asserts suppression at 29,999 ms and outbound execution at 30,000 and 30,001 ms. (src/agents/tools/message-tool.test.ts:1018, b01c912e483f)
  • Caller and callee boundary: Agent tool construction supplies the session and source-route context; a non-suppressed send reaches the outbound message-action runner, whose route preparation ultimately selects channel delivery. (src/agents/openclaw-tools.ts:238, b01c912e483f)
  • Production poll result contract: The iMessage poll-vote implementation returns the nonempty pollVotedOption that the Message tool uses to arm its echo record; the PR does not alter that plugin boundary. (extensions/imessage/src/actions.ts:879, b01c912e483f)
  • Real-behavior proof: The supplied PR-body before/after harness uses the real Message tool and server-side action runner behind a loopback Gateway and synthetic channel API; its recorded result changes exactly the 30,000 ms case from suppressed to delivered while retaining 29,999 ms suppression. (b01c912e483f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Wait for the required exact-head checks to finish green before landing.

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 (4 earlier review cycles)
  • reviewed 2026-08-31T09:17:36.548Z sha dc7e5247d294da4dc7ff05cec0a794effefc4571 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T10:21:57.223Z sha 5be01b4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T16:48:50.373Z sha 5be01b4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T16:57:31.300Z sha 5be01b4 :: needs real behavior proof before merge. :: none

@qingminglong
qingminglong force-pushed the codex/code-bug-poll-vote-echo-expiry-20260831 branch from dc7e524 to 5be01b4 Compare August 31, 2026 10:12
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 31, 2026
@qingminglong

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 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:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 31, 2026
@steipete steipete self-assigned this Aug 31, 2026
Expire both read and write-time records at the same inclusive TTL boundary. Cover adjacent times and retain inspectable Gateway/channel transport proof.

Co-authored-by: qingminlong <[email protected]>
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Both expiry predicates now use the same boundary. The updated body includes the complete inspectable synthetic mock-Gateway/channel harness and before/after results at29999,30000,and30001ms, plus focused tests and full changed-file checks. New-head CI is required before landing.

@clawsweeper

clawsweeper Bot commented Aug 31, 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:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 31, 2026
@steipete
steipete merged commit 72aae21 into openclaw:main Aug 31, 2026
270 of 272 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
* fix(agents): expire poll vote echo at TTL

* fix(agents): align poll echo pruning with expiry

Expire both read and write-time records at the same inclusive TTL boundary. Cover adjacent times and retain inspectable Gateway/channel transport proof.

Co-authored-by: qingminlong <[email protected]>

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: qingminlong <[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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants