Skip to content

fix: retain deliberate ClickClack omissions on delivery retries - #169509

Merged
steipete merged 1 commit into
mainfrom
codex/clickclack-no-send-20261011
Oct 12, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/clickclack-no-send-20261011

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes false delivery uncertainty when ClickClack intentionally omits text containing only internal scaffolding: the initial send reported suppression, but its durable conversation operation was recorded as unknown.

User Impact

Intentional omissions remain suppressed on later retries of the same conversation operation instead of being reported as unconfirmed sends.

Why This Change Was Made

The sender now distinguishes its deliberate no-send decision from an accepted provider response without a message ID. Both the message and legacy outbound adapters preserve that decision through durable completion. Malformed accepted responses remain ambiguous. Production code shrinks by three lines.

Evidence

  • Both regression cases failed before the repair because the real Gateway conversation entrypoint persisted unknown instead of suppressed. The tests use the real ClickClack sender and SQLite queue/completion owners, and reject any HTTP request.
  • Before the test-loader correction below, all 38 focused tests passed across the conversation queue, ClickClack sender, and channel descriptor files. The repository test harness ran with --maxWorkers=1: 373.06 seconds wall time on a host running parallel checks; the conversation file took 171.41 seconds, and the two new boundary cases took 5.582 and 4.544 seconds. The filtered baseline took 83.63 seconds and failed both intended assertions.
  • Fresh isolated Codex review of the complete final diff found no actionable findings through P2. Formatting and git diff --check passed.
  • Native changed checks passed 21 preceding steps, including 10 mandatory plugin contract tests, then found that the regression statically imported plugin source into a core compiler graph. The test now uses the existing public-artifact loader. Both final boundary cases passed again: 148.60 seconds Vitest time, 180.92 seconds wall time, and 7.295/7.110 seconds per case on the loaded host. An interrupted native attempt produced no result; after its processes retired, one bounded supported retry passed the corrected compiler boundary and its only selected consumer graph, messaging (78.0 seconds for that type graph).
  • Final extension production/test types and typed lint for all four files passed. Coercion, database legacy-store, runtime-sidecar, import-cycle, deprecated-API, media-download, and UI translation guards passed; the final staged line-cap check found no growth violations. Earlier disjoint checks and unchanged sibling proof are retained.
  • The native dead-export gate ran once and exited 1: production reported 68 entries, full-tree 51, and the script scan passed with zero. All 50 finding files and the Knip configuration/runner are unchanged from the frozen base; no finding touches this patch. This is source-qualified attribution, with no separate baseline scan executed here. No complete local changed-check pass is claimed. Hosted CI and its test seconds have not been measured yet.

The no-effect sanitizer boundary needs no external API request or live credentials. No live ClickClack transport behavior is claimed by this proof.

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves ClickClack’s explicit no-send result through both adapters so durable conversation operations remain suppressed on retries.

Example: Send “⚠️ 🛠️ search repos (agent) failed” to dm:usr_synthetic.

  • Before: No HTTP request occurs, but the operation becomes unknown and later attempts report uncertainty.
  • After: No HTTP request occurs, and the operation is recorded as suppressed for later attempts.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused repair appears correct and has meaningful boundary regressions, while the supplied behavior evidence remains harness-based.
Proof confidence 🦐 gold shrimp (3/6) The maintainer-authored PR is outside the ordinary contributor proof gate; supplied evidence exercises the real Gateway function, ClickClack sender, and SQLite completion owners with HTTP blocked, rather than a shipped-entry-point run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An intentionally omitted ClickClack reply is retained as an uncertain conversation delivery.
Reason: This maintainer-directed repair restores accurate delivery outcomes while preserving the existing send policy.

Merge readiness

✅ Ready for maintainer review

Current main still misclassifies deliberate ClickClack omissions as uncertain deliveries, and this focused repair introduces no actionable defect.

Priority: P2
Reviewed head: 6112e69e2d036501e3c58b1037d61bb15f2e0d04

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied cases cover initial durable completion; no shipped-entry-point run or repeated request using the same operation ID is shown.
Agent review details

How this fits together

ClickClack’s private text sender sanitizes outgoing text and passes delivery evidence through channel adapters to the shared queue and conversation-completion owners.

flowchart TD
  A[Gateway conversation send] --> B[Durable delivery queue]
  B --> C[ClickClack adapter]
  C --> D[Private text sender]
  D --> E[ClickClack transport]
  D --> F[Explicit no-send result]
  F --> G[Suppressed conversation completion]
Loading

Technical review

Best possible solution:

Preserve explicit no-send evidence at the ClickClack sender and reuse the existing shared suppression and durable-completion contracts.

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

Source inspection establishes the missing no-send marker and its uncertainty classification; the body reports failing-before and passing-after Gateway-path regressions, which were not rerun during this read-only review.

Is this the best way to solve the issue?

The repair fixes evidence at its producer, updates both consuming adapters, and preserves uncertainty for accepted provider responses lacking a message ID.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f9d2ebefe12f.

Provenance checked

  • ClickClack sender sanitization and adapter results keeps the original intent (fix(clickclack): strip internal tool-trace banners from outbound text #103142: Suppress scaffold-only text at the private sender while allowing missing modern IDs and an empty legacy ID.)
  • Conversation queue fixture keeps the original intent (dec9fe0: Exercise captured conversation storage and durable queue completion; the added destination parameter retains existing fixture defaults.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 35b0816 adds extensions/clickclack/src/outbound.ts:184 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 35b08169d241; files: extensions/clickclack/src/outbound.ts)
  • Masato Hoshino: Raw commit 2a69149 adds extensions/clickclack/src/outbound.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2a691495668c; files: extensions/clickclack/src/outbound.ts)
  • Shakker: Raw commit 9b5cd4c adds extensions/clickclack/src/outbound.ts:169 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9b5cd4cd0d84; files: extensions/clickclack/src/outbound.ts)

PR surface

Source -3, Tests +76. Total +73 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 11 14 -3
Tests 2 80 4 +76
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 91 18 +73

Review metrics

Metric Value Why it matters
Production versus test changes Production +11/-14; tests +80/-4 Production shrinks while boundary regressions cover the distinct modern and legacy adapter paths through durable completion.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: False delivery uncertainty affects intentionally omitted ClickClack text, with a limited channel-specific blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-12T01:36:48.741Z sha 6112e69 :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 9:44 PM ET / October 12, 2026, 01:44 UTC (Revision 2).

@steipete
steipete marked this pull request as ready for review October 12, 2026 01:40
@steipete
steipete merged commit 372e20a into main Oct 12, 2026
182 checks passed
@steipete
steipete deleted the codex/clickclack-no-send-20261011 branch October 12, 2026 05:14
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

extensions: clickclack P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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.

1 participant