Skip to content

feat: partition gateway dispatches per guild and harden the pipeline - #95

Merged
RedStar071 merged 2 commits into
feat/cache-hardeningfrom
feat/gateway-hardening
Sep 25, 2026
Merged

RedStar071 merged 2 commits into
feat/cache-hardeningfrom
feat/gateway-hardening

Conversation

@RedStar071

Copy link
Copy Markdown
Member

Stacked on #94.

🔗 Linked issue

Related to #54 (phase 4, dispatch hardening from the September addendum).

🧭 Context

The status update on #54 left five addendum items open. Each is covered below.

  • Ordering: order was preserved per shard, not per guild. One slow guild on Redis held back every other guild on that shard.
  • Stuck queue: nothing reported a queue that had stopped moving.
  • Cache failures: the only policy for a failing cache was dropping the event.
  • fetch options: the fetch(id, { force, cache }) shape from discord.js#11426 was missing.
  • Stale guilds: guilds the bot left while disconnected stayed in the cache forever, the problem discord.js#11546 reports.

📚 Description

Partitioned queue. Dispatches now run in order per guild, or per channel for direct messages, and different guilds run concurrently. Dispatches that belong to no guild are barriers: they wait for everything already queued on their shard, and everything after them waits for them. Examples are READY and USER_UPDATE. Without that, READY's unavailable placeholders could land after a GUILD_CREATE on an async store and mark a live guild unavailable.

Timeouts. A dispatch still running after dispatchTimeout (30s by default) is reported as a DispatchTimeoutError. It is deliberately not cancelled, because releasing the partition early would break the ordering this queue exists for. client.queueStats exposes pending dispatches and partitions.

Cache failures. A new cacheFailure option picks what happens when the cache fails:

  • "skip" (the default, and the current behaviour) drops the event;
  • "emitUncached" emits it anyway, built from the payload, with null as the previous state.

The two builds that re-read the merged cache entry fall back to the payload when that read fails too.

fetch options. Managers' fetch takes { force, cache } after the IDs. refresh stays, as fetch with force: true.

READY reconciliation. On READY, the cached guilds of that shard that READY no longer lists are dropped and emitted as guildDelete. This also covers a restart with a persistent Redis cache. The shard count comes from the payload, the options, or the gateway. When none of them is available, reconciliation is skipped and reported, instead of failing READY. An existing test caught that case: my first version made client.user stay null.

Still open for #54: a test with simultaneous HTTP interactions, and exposing latency rather than just a timeout. I'm not sure a latency metric belongs in the client rather than in a logger or metrics plugin; happy to hear a preference.

Key changes

Area Change
util/DispatchQueue.ts DispatchQueue + dispatchPartition: per-guild/channel partitions, per-shard barriers, stats
GatewayClient cacheFailure, dispatchTimeout, queueStats, READY reconciliation
util/errors.ts DispatchTimeoutError
CachedManager fetch(...ids, { force, cache }), storeRaw hook (threads routing moved there)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation change
  • Workflow / CI change

Pre-flight Checklist

  • I have read the Contributing Guidelines (if applicable)
  • My code follows the code style of this project
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly
  • I added a changeset with pnpm changeset (or pnpm changeset add --empty if no release is needed). See .changeset/README.md.

🤖 AI disclosure: Wolfstar Agent Kit modified this description. My AI open-source policy.

@coldtea-pr-lens

coldtea-pr-lens Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

◈ PR Lens

🟢 +2 new · 🟠 ~3 changed · 🔴 -0 removed · 3 flows · 8 files · commit 908b961


Architecture

Architecture diagram for wolfstar-project/plugins at 908b961

5 components touched across 3 lanes.

Play the interactive walkthrough


Inside the changed components — 2 views

Component view — Partitioned Dispatch Pipeline

Dispatches are queued per guild or channel partition with timeout detection and cache failure recovery.

Architecture view of Component view — Partitioned Dispatch Pipeline in wolfstar-project/plugins

Component view — Cached Entity Managers

Managers provide cached reads with force and cache options for REST fallbacks and thread cache routing.

Architecture view of Component view — Cached Entity Managers in wolfstar-project/plugins

Data flow

Data flow diagram for wolfstar-project/plugins at 908b961

Partitioned dispatch processing and timeout tracking · Fetching entities with force and cache options · READY guild reconciliation

Follow each request, response and payload


The other flows — 2 sequences

Fetching entities with force and cache options

Sequence diagram of Fetching entities with force and cache options in wolfstar-project/plugins

READY guild reconciliation

Sequence diagram of READY guild reconciliation in wolfstar-project/plugins

View

  • Architecture lens
  • Data flow lens
  • Expand every detail

Tip

The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change

🪧 More tips
  • Run npx skills add coldteadotai/pr-lens, then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Run npx @coldtea/pr-lens-cli analyze --base origin/main on a branch, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json. Same lenses, your own model key, before the pull request exists
  • Untick Architecture lens or Data flow lens under View to hide a diagram, or tick Expand every detail to open every section. The comment redraws in a few seconds
  • Click the link under each diagram to open it on a canvas you can zoom, pan and step through
  • Open a diagram on the canvas, then press W or click play to walk through the change one step at a time
  • The CLI's render reads .github/pr-lens.yml and applies your renames, exclusions and lane pins at draw time
  • Set github.comment.collapsed: true in .github/pr-lens.yml to fold the comment behind one View architecture and data flow row. Drawing still runs on every push
  • Set github.draw: on-demand in .github/pr-lens.yml and PR Lens stops drawing every push. Comment @pr-lens draw on a pull request when you want that one drawn
  • Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and your model provider's key as its api-key to run PR Lens from your own CI. Any /chat/completions endpoint works
  • Push a commit and the comment redraws for the new head. A slow older run never overwrites a newer one
  • Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion

Thanks for using PR Lens! It's built by Coldtea, free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Cache failures during READY reconciliation can silently drop the whole READY dispatch under the default cacheFailure setting — see inline comment.

Reviewed changes

Reviewed the full diff: a new per-partition DispatchQueue replacing the per-shard queue, a dispatchTimeout watchdog, a cacheFailure policy, CachedManager.fetch's new { force, cache } options, and READY guild reconciliation.

  • DispatchQueue / dispatchPartition (util/DispatchQueue.ts, new) — dispatches now partition by guild or DM channel and run concurrently across partitions, staying ordered within a partition; dispatches with no guild/channel (READY, USER_UPDATE, ...) act as barriers that wait for, and are waited on by, everything else on their shard.
  • dispatchTimeout (GatewayClient.runDispatch) — a non-cancelling watchdog that reports a DispatchTimeoutError if a dispatch is still running past the deadline (default 30s).
  • cacheFailure (GatewayClient.handleDispatch) — "skip" (default) rethrows and drops the dispatch's event on a cache read/write failure; "emitUncached" swallows it and still builds/emits the event from the payload. The two build functions that do their own post-catch cache reads (GuildCreate, GuildMemberUpdate) wrap them with cachedOrUndefined so "emitUncached" doesn't rethrow a second time.
  • CachedManager.fetch(...ids, options?) — { force, cache } options now follow the id args; refresh is fetch(..., { force: true }); storing a fetched value moved into an overridable storeRaw hook, which ChannelManager uses to route threads into the thread cache.
  • READY reconciliation (GatewayClient.reconcileGuilds) — diffs the cache's guild keys for the shard against data.guilds (via (id >> 22) % shardCount) and drops/emits guildDelete for guilds the bot left while disconnected.

ℹ️ Nitpicks

  • tests/hardening.test.ts:247 asserts errors.length with toBeGreaterThanOrEqual(2). The count is actually deterministic here (one error from the GuildCreate cache write failing, one from GuildUpdate's before read failing) — toBe(2) would also catch an accidental double-report regression that the loose bound wouldn't.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using Claude Sonnet | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@wolfstar/plugin-api

pnpm add https://pkg.pr.new/wolfstar-project/plugins/@wolfstar/plugin-api@95

@wolfstar/plugin-cache

pnpm add https://pkg.pr.new/wolfstar-project/plugins/@wolfstar/plugin-cache@95

@wolfstar/plugin-gateway

pnpm add https://pkg.pr.new/wolfstar-project/plugins/@wolfstar/plugin-gateway@95

@wolfstar/plugin-i18next

pnpm add https://pkg.pr.new/wolfstar-project/plugins/@wolfstar/plugin-i18next@95

@wolfstar/plugin-logger

pnpm add https://pkg.pr.new/wolfstar-project/plugins/@wolfstar/plugin-logger@95

@wolfstar/plugin-subcommands-advanced

pnpm add https://pkg.pr.new/wolfstar-project/plugins/@wolfstar/plugin-subcommands-advanced@95

commit: 908b961

@RedStar071
RedStar071 added this pull request to stack #96 September 24, 2026 14:56
@codecov

codecov Bot commented Sep 24, 2026

Copy link
Copy Markdown

❌ 6 Tests Failed:

Tests completed Failed Passed Skipped
160 6 154 0
View the top 3 failed test(s) by shortest run time
packages/plugin-gateway/tests/EventGatewayListener.test.ts > packages/plugin-gateway/tests/EventGatewayListener.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@wolfstar/plugin-cache". The package may have incorrect main/module/exports specified in its package.json.
  Plugin: vite:import-analysis
  File: .../plugin-gateway/src/GatewayClient.ts:8:49
  5  |  } from "@discordjs/ws";
  6  |  import { Client, container } from "@wolfstar/http-framework";
  7  |  import { applyGatewayDispatch } from "@wolfstar/plugin-cache";
     |                                        ^
  8  |  import {
  9  |    GatewayDispatchEvents,
 ❯ packageEntryFailure node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16198:15
 ❯ resolvePackageEntry node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16195:3
 ❯ tryNodeResolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16060:18
 ❯ ResolveIdContext.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:15831:19
 ❯ EnvironmentPluginContainer.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42372:17
 ❯ TransformPluginContext.resolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42579:15
 ❯ normalizeUrl node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40622:26
 ❯ node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40753:37
packages/plugin-gateway/tests/GatewayClient.test.ts > packages/plugin-gateway/tests/GatewayClient.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@wolfstar/plugin-cache". The package may have incorrect main/module/exports specified in its package.json.
  Plugin: vite:import-analysis
  File: .../plugin-gateway/tests/GatewayClient.test.ts:3:48
  2  |  import { WebSocketShardEvents } from "@discordjs/ws";
  3  |  import { container } from "@wolfstar/http-framework";
  4  |  import { createInMemoryCache } from "@wolfstar/plugin-cache";
     |                                       ^
  5  |  import {
  6  |    ChannelType,
 ❯ packageEntryFailure node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16198:15
 ❯ resolvePackageEntry node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16195:3
 ❯ tryNodeResolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16060:18
 ❯ ResolveIdContext.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:15831:19
 ❯ EnvironmentPluginContainer.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42372:17
 ❯ TransformPluginContext.resolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42579:15
 ❯ normalizeUrl node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40622:26
 ❯ node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40753:37
packages/plugin-gateway/tests/events.test.ts > packages/plugin-gateway/tests/events.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@wolfstar/plugin-cache". The package may have incorrect main/module/exports specified in its package.json.
  Plugin: vite:import-analysis
  File: .../plugin-gateway/tests/events.test.ts:2:36
  1  |  "use strict";
  2  |  import { WebSocketShardEvents } from "@discordjs/ws";
  3  |  import { createInMemoryCache } from "@wolfstar/plugin-cache";
     |                                       ^
  4  |  import {
  5  |    GatewayDispatchEvents,
 ❯ packageEntryFailure node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16198:15
 ❯ resolvePackageEntry node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16195:3
 ❯ tryNodeResolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16060:18
 ❯ ResolveIdContext.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:15831:19
 ❯ EnvironmentPluginContainer.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42372:17
 ❯ TransformPluginContext.resolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42579:15
 ❯ normalizeUrl node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40622:26
 ❯ node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40753:37
packages/plugin-gateway/tests/hardening.test.ts > packages/plugin-gateway/tests/hardening.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@wolfstar/plugin-cache". The package may have incorrect main/module/exports specified in its package.json.
  Plugin: vite:import-analysis
  File: .../plugin-gateway/tests/hardening.test.ts:3:48
  2  |  import { WebSocketShardEvents } from "@discordjs/ws";
  3  |  import { container } from "@wolfstar/http-framework";
  4  |  import { createInMemoryCache } from "@wolfstar/plugin-cache";
     |                                       ^
  5  |  import {
  6  |    ChannelType,
 ❯ packageEntryFailure node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16198:15
 ❯ resolvePackageEntry node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16195:3
 ❯ tryNodeResolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16060:18
 ❯ ResolveIdContext.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:15831:19
 ❯ EnvironmentPluginContainer.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42372:17
 ❯ TransformPluginContext.resolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42579:15
 ❯ normalizeUrl node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40622:26
 ❯ node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40753:37
packages/plugin-gateway/tests/stores.test.ts > packages/plugin-gateway/tests/stores.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@wolfstar/plugin-cache". The package may have incorrect main/module/exports specified in its package.json.
  Plugin: vite:import-analysis
  File: .../plugin-gateway/tests/stores.test.ts:3:66
  2  |  import { WebSocketShardEvents } from "@discordjs/ws";
  3  |  import { container } from "@wolfstar/http-framework";
  4  |  import { createInMemoryCache, createRedisCache } from "@wolfstar/plugin-cache";
     |                                                         ^
  5  |  import {
  6  |    ChannelType,
 ❯ packageEntryFailure node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16198:15
 ❯ resolvePackageEntry node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16195:3
 ❯ tryNodeResolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16060:18
 ❯ ResolveIdContext.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:15831:19
 ❯ EnvironmentPluginContainer.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42372:17
 ❯ TransformPluginContext.resolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42579:15
 ❯ normalizeUrl node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40622:26
 ❯ node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40753:37
packages/plugin-gateway/tests/structures.test.ts > packages/plugin-gateway/tests/structures.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@wolfstar/plugin-cache". The package may have incorrect main/module/exports specified in its package.json.
  Plugin: vite:import-analysis
  File: .../plugin-gateway/src/GatewayClient.ts:8:49
  5  |  } from "@discordjs/ws";
  6  |  import { Client, container } from "@wolfstar/http-framework";
  7  |  import { applyGatewayDispatch } from "@wolfstar/plugin-cache";
     |                                        ^
  8  |  import {
  9  |    GatewayDispatchEvents,
 ❯ packageEntryFailure node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16198:15
 ❯ resolvePackageEntry node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16195:3
 ❯ tryNodeResolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:16060:18
 ❯ ResolveIdContext.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:15831:19
 ❯ EnvironmentPluginContainer.resolveId node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42372:17
 ❯ TransformPluginContext.resolve node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:42579:15
 ❯ normalizeUrl node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40622:26
 ❯ node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]..../node/chunks/dep-Dm0c1Wj2.js:40753:37

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Reviewed commit 1b11001, which fixes the "Important" issue from the prior review: READY could still be silently dropped by a cache failure during guild reconciliation.

  • Moved reconcileGuilds (its body renamed to dropUnlistedGuilds) outside handleDispatch's outer try/catch, wrapped in its own try/catch that reports and never rethrows — a cache failure anywhere in reconciliation can no longer propagate and drop the dispatch.
  • Exempted READY from the cacheFailure: "skip" rethrow, so a cache write failure while processing READY's own payload (e.g. the write that sets client.user) also falls through to handler.build instead of dropping the dispatch.
  • Extracted a shared reportError helper used by handleDispatch, reconcileGuilds, and the dispatch-timeout watchdog.
  • Added a test asserting shardReady still fires and client.user is still set when both the guild-key lookup and the READY cache write reject, with an exact toHaveLength(2) on the reported errors.
  • Updated the README and changeset to document that READY is always emitted regardless of cache failures.

I traced the full control flow (not just the diff) and confirmed the fix is structurally sound: reconcileGuilds's own try/catch can no longer throw, and the outer catch's !isReady guard covers the remaining path. Replied to and resolved the prior review's inline thread on GatewayClient.ts:273.

Pullfrog  | View workflow run | Using Claude Sonnet | 𝕏

@pullfrog

pullfrog Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Your Claude subscription has hit its usage limit. It resets at 7:20pm (UTC). Re-trigger Pullfrog after the reset, or add an ANTHROPIC_API_KEY repo secret — Pullfrog routes around an exhausted subscription automatically when one is present.

Add repo secret → · Model settings → · Setup docs → · Ask in Discord →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using Claude Sonnet | 𝕏

…ipeline

Dispatches run in order per guild (or DM channel) instead of per shard,
with guild-less dispatches as barriers. Slow dispatches are reported as a
DispatchTimeoutError, cache failures follow a configurable policy,
managers' fetch takes { force, cache }, and READY drops the cached guilds
it no longer lists.

Refs #54
Reconciliation is best effort and reports its own errors, and READY is
emitted even under cacheFailure "skip", since it sets client.user from
the payload alone.
@RedStar071
RedStar071 force-pushed the feat/gateway-hardening branch from b60f575 to 908b961 Compare September 25, 2026 17:56
@pullfrog

pullfrog Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Your Claude subscription has hit its usage limit. It resets at 7:20pm (UTC). Re-trigger Pullfrog after the reset, or add an ANTHROPIC_API_KEY repo secret — Pullfrog routes around an exhausted subscription automatically when one is present.

Add repo secret → · Model settings → · Setup docs → · Ask in Discord →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using Claude Sonnet | 𝕏

@RedStar071
RedStar071 merged commit c525730 into main Sep 25, 2026
16 of 17 checks passed
@RedStar071
RedStar071 deleted the feat/gateway-hardening branch September 25, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant