Repository navigation
refactor(channels): adopt durable Nextcloud Talk and Nostr ingress - #110653
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 7:27 AM ET / 11:27 UTC. Summary PR surface: Source +888, Tests +869. Total +1757 across 39 files. Reproducibility: yes. source-level behavior is identifiable: the PR targets the gap between accepting an inbound event and durable terminal completion across a restart. A high-confidence live reproduction was not supplied for either actual transport. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Retain the shared durable-ingress design, complete owner review of each channel’s admission, terminal-completion, migration, and shutdown paths, then add redacted live restart/recovery proof for both transports before merging. Do we have a high-confidence way to reproduce the issue? Yes, source-level behavior is identifiable: the PR targets the gap between accepting an inbound event and durable terminal completion across a restart. A high-confidence live reproduction was not supplied for either actual transport. Is this the best way to solve the issue? Unclear. Reusing the shared durable-ingress contract is the right architectural direction, but the channel-specific migration and live recovery behavior still need owner validation before it can be called the best complete fix. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against efa7e1a85ad7. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +888, Tests +869. Total +1757 across 39 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53db423486
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| receivedAt: prepared.receivedAt, | ||
| laneKey: prepared.facts.laneKey, | ||
| }); | ||
| options.afterDurableAppend(prepared.event); |
There was a problem hiding this comment.
Advance the cursor only for the admitted row
When a relay sends an event ID that is already in the ingress queue, enqueue returns a duplicate and the current relay payload was not durably admitted, but this still records prepared.event.created_at as durable progress. Because signature/hash validation only happens later during drain dispatch, a malformed duplicate ID with a newer timestamp can advance the EOSE-gated cursor and make the next subscription skip valid DMs in that time range. Gate the cursor hook on a newly accepted row, or record progress from the already-persisted row rather than the unverified duplicate payload.
Useful? React with 👍 / 👎.
…penclaw#110653) Accepted Nextcloud Talk webhook and Nostr relay messages now use the shared durable channel-ingress queue. Claims stay owned until reply-lane terminal completion; bounded append and delivery retries fail closed into dead-letter handling; restart recovery owns redelivery; and Nostr cursors advance only after relay EOSE and durable progress. Related: openclaw#109657
…penclaw#110653) Accepted Nextcloud Talk webhook and Nostr relay messages now use the shared durable channel-ingress queue. Claims stay owned until reply-lane terminal completion; bounded append and delivery retries fail closed into dead-letter handling; restart recovery owns redelivery; and Nostr cursors advance only after relay EOSE and durable progress. Related: openclaw#109657
Related: #109657
What Problem This Solves
Nextcloud Talk webhooks and Nostr relay events could depend on process-local delivery and replay state, leaving accepted inbound messages vulnerable to restart gaps and incomplete terminal handling.
Why This Change Was Made
Adopts the core durable channel-ingress queue for both plugins. Claims remain owned through reply-lane terminal completion, append failures fail closed after bounded retries, terminal failures consume the retry budget before dead-letter, and restart recovery owns redelivery. Nostr cursor advancement is gated by relay EOSE and durable progress.
User Impact
Accepted Nextcloud Talk and Nostr inbound messages survive process restarts and are retried or dead-lettered through the shared durable-ingress contract instead of falling through volatile or dedupe-bypassing paths.
Evidence
pnpm test extensions/nextcloud-talk extensions/nostr src/channels/direct-dm.test.ts: 43 extension files / 361 tests and 2 focused core channel tests passed on the latest rebased head.pnpm deadcode:unused-filesandpnpm deadcode:exports: production, full-tree, and script scans passed with 0 entries.oxfmt --checkpassed for all 37 changed files;git diff --check origin/main...HEADpassed.