@sellable/mcp 0.1.537 → 0.1.538

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ async function postSchedulerFillCapacity(body, workspaceId) {
10
10
  export const schedulerFillCapacityToolDefinitions = [
11
11
  {
12
12
  name: "get_scheduler_fill_capacity",
13
- description: "read-only scheduler capacity query for refill-sends before any refill mutation. It asks the product scheduler model how many additional cells the scheduler will try to place for exact sender/action requests, using the default scheduler-forward horizon or one exact targetDate. It returns scheduler-fillable slots, occupied scheduled/processing slots, sender sendability gates, cooldowns, Sales Navigator status for paid InMail, cached paid-InMail credit feasibility, threshold source, blockers, warnings, and explicit sideEffects false. This tool does not create rows, import leads, prepare messages, approve messages, does not schedule sends, does not refresh paid InMail credits, mutate thresholds, start campaigns, launch, or send. Use exact senderId values only; never pass sender names.",
13
+ description: "read-only scheduler capacity query for refill-sends before any refill mutation. It asks the product scheduler model how many additional cells the scheduler will try to place for exact sender/action requests, using the default scheduler-forward horizon or one exact targetDate. Use get_refill_target_plan for multi-day untilDate or horizonSendDays planning. It returns scheduler-fillable slots, occupied scheduled/processing slots, sender sendability gates, cooldowns, Sales Navigator status for paid InMail, cached paid-InMail credit feasibility, threshold source, blockers, warnings, and explicit sideEffects false. This tool does not create rows, import leads, prepare messages, approve messages, does not schedule sends, does not refresh paid InMail credits, mutate thresholds, start campaigns, launch, or send. Use exact senderId values only; never pass sender names.",
14
14
  inputSchema: {
15
15
  type: "object",
16
16
  properties: {
@@ -2,6 +2,7 @@ type SchedulerRunAction = "run" | "status";
2
2
  type RunSchedulerSweepInput = {
3
3
  workspaceId: string;
4
4
  action?: SchedulerRunAction;
5
+ targetDate?: string | null;
5
6
  };
6
7
  export declare const schedulerRunToolDefinitions: {
7
8
  name: string;
@@ -18,6 +19,10 @@ export declare const schedulerRunToolDefinitions: {
18
19
  enum: string[];
19
20
  description: string;
20
21
  };
22
+ targetDate: {
23
+ type: string;
24
+ description: string;
25
+ };
21
26
  };
22
27
  required: string[];
23
28
  additionalProperties: boolean;
@@ -10,7 +10,7 @@ async function postSchedulerRun(body, workspaceId) {
10
10
  export const schedulerRunToolDefinitions = [
11
11
  {
12
12
  name: "run_scheduler_sweep",
13
- description: 'Trigger the product scheduler placement sweep for one explicit workspace now, or read the last on-demand scheduler run status with action "status". A run is workspace-wide, not a scoped run for one campaign/table, and returns a synchronous envelope with status ran, attached, backoff, window_closed_noop, or failed; retryAfterMs for backoff replays; and a backward-compatible receipt. In v2 receipts, readyCellsFound is total scheduler-ready supply found before filters, cellsConsidered is the allocation-attempt count that survived prefilters, prefiltered means ready cells removed before allocation such as no capacity, stale paid InMail credit facts, or sender mismatch, skipped means considered cells rejected by hard scheduler gates, and deferred means considered cells waiting on windows/capacity/cooldown. campaignScopeSummary lists bounded tables/campaigns the workspace-wide run inspected; absence there is not a scoped-run guarantee that the target was ready. The receipt can include readyCellsByType, consideredCellsByType, prefilterReasons, skippedReasons, deferredReasons, summary, and nextAction. It places cells within existing scheduler gates only: it can move placement earlier, but it cannot bypass sending windows, daily limits, cooldowns, sender gates, billing, or credit thresholds, and it never sends messages directly. Repeated calls inside the backoff window replay the last receipt verbatim. Status is read-only and scoped to the last on-demand run only; cron sweeps are not recorded here.',
13
+ description: 'Trigger the product scheduler placement sweep for one explicit workspace now, or read the last on-demand scheduler run status with action "status". By default a run is workspace-wide, not a scoped run for one campaign/table. Pass targetDate to scope placement to one exact sender-local date while still remaining workspace-wide inside that date. Multi-day untilDate or horizonSendDays planning should come from get_refill_target_plan, then use exact per-date run_scheduler_sweep calls only for dates that still need scheduler placement. The synchronous envelope includes status ran, attached, backoff, window_closed_noop, or failed; retryAfterMs for matching-scope backoff replays; and a backward-compatible receipt with public scope metadata. In v2 receipts, readyCellsFound is total scheduler-ready supply found before filters, cellsConsidered is the allocation-attempt count that survived prefilters, prefiltered means ready cells removed before allocation such as no capacity, stale paid InMail credit facts, or sender mismatch, skipped means considered cells rejected by hard scheduler gates, and deferred means considered cells waiting on windows/capacity/cooldown. campaignScopeSummary lists bounded tables/campaigns the workspace-wide run inspected; absence there is not a scoped-run guarantee that the target was ready. The receipt can include readyCellsByType, consideredCellsByType, prefilterReasons, skippedReasons, deferredReasons, summary, and nextAction. It places cells within existing scheduler gates only: it can move placement earlier, but it cannot bypass sending windows, daily limits, cooldowns, sender gates, billing, or credit thresholds, and it never sends messages directly. Repeated calls inside the backoff window replay the last receipt only when the recorded public scope matches this request. Status is read-only and scoped to the last on-demand run only; cron sweeps are not recorded here.',
14
14
  inputSchema: {
15
15
  type: "object",
16
16
  properties: {
@@ -23,12 +23,33 @@ export const schedulerRunToolDefinitions = [
23
23
  enum: ["run", "status"],
24
24
  description: 'Use "run" to trigger a placement sweep now. Use "status" for a read-only view of the last on-demand run. Defaults to "run".',
25
25
  },
26
+ targetDate: {
27
+ type: "string",
28
+ description: "Optional one exact sender-local date (YYYY-MM-DD) to scope scheduler placement/status. The run remains workspace-wide inside that date.",
29
+ },
26
30
  },
27
31
  required: ["workspaceId"],
28
32
  additionalProperties: false,
29
33
  },
30
34
  },
31
35
  ];
36
+ function isValidDateKey(value) {
37
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value))
38
+ return false;
39
+ const [year, month, day] = value.split("-").map(Number);
40
+ const date = new Date(Date.UTC(year, month - 1, day));
41
+ return (date.getUTCFullYear() === year &&
42
+ date.getUTCMonth() === month - 1 &&
43
+ date.getUTCDate() === day);
44
+ }
45
+ function normalizeTargetDate(value) {
46
+ if (value === undefined)
47
+ return undefined;
48
+ if (typeof value !== "string" || !isValidDateKey(value)) {
49
+ throw new Error("targetDate must be a valid YYYY-MM-DD calendar date.");
50
+ }
51
+ return value;
52
+ }
32
53
  export async function runSchedulerSweep(input) {
33
54
  const workspaceId = normalizeExplicitWorkspaceId(input.workspaceId);
34
55
  if (!workspaceId) {
@@ -38,8 +59,10 @@ export async function runSchedulerSweep(input) {
38
59
  if (action !== "run" && action !== "status") {
39
60
  throw new Error('action must be "run" or "status" for run_scheduler_sweep.');
40
61
  }
62
+ const targetDate = normalizeTargetDate(input.targetDate);
41
63
  return postSchedulerRun({
42
64
  workspaceId,
43
65
  action,
66
+ targetDate,
44
67
  }, workspaceId);
45
68
  }
@@ -52,22 +52,16 @@ export type PaidInmailCreditStatus = {
52
52
  };
53
53
  export type RefreshPaidInmailCreditsResponse = {
54
54
  senderId: string;
55
- refreshed: boolean;
56
- error?: string | null;
55
+ refreshed: true;
57
56
  credits: PaidInmailCreditStatus;
58
- receipt?: {
59
- status?: string;
60
- refreshed?: boolean;
61
- error?: string;
62
- [key: string]: unknown;
63
- } | null;
57
+ receipt?: unknown;
64
58
  sideEffects: {
65
- refreshedLinkedInDerivedCreditFacts: boolean;
66
- updatedSenderCreditCache: boolean;
67
- campaignMutation: boolean;
68
- schedulerMutation: boolean;
69
- thresholdMutation: boolean;
70
- sendMutation: boolean;
59
+ refreshedLinkedInDerivedCreditFacts: true;
60
+ updatedSenderCreditCache: true;
61
+ campaignMutation: false;
62
+ schedulerMutation: false;
63
+ thresholdMutation: false;
64
+ sendMutation: false;
71
65
  };
72
66
  };
73
67
  export declare const senderToolDefinitions: ({
@@ -237,21 +237,6 @@ function normalizeCreditStatus(raw) {
237
237
  needsRefresh: raw?.needsRefresh === true,
238
238
  };
239
239
  }
240
- function normalizeRefreshReceipt(raw) {
241
- if (!raw || typeof raw !== "object")
242
- return null;
243
- return raw;
244
- }
245
- function normalizeCreditRefreshSideEffects(raw, receiptRefreshed) {
246
- return {
247
- refreshedLinkedInDerivedCreditFacts: raw?.refreshedLinkedInDerivedCreditFacts === true || receiptRefreshed,
248
- updatedSenderCreditCache: raw?.updatedSenderCreditCache === true || receiptRefreshed,
249
- campaignMutation: raw?.campaignMutation === true,
250
- schedulerMutation: raw?.schedulerMutation === true,
251
- thresholdMutation: raw?.thresholdMutation === true,
252
- sendMutation: raw?.sendMutation === true,
253
- };
254
- }
255
240
  export async function refreshPaidInmailCredits(input) {
256
241
  const senderId = input.senderId?.trim();
257
242
  if (!senderId) {
@@ -283,14 +268,18 @@ export async function refreshPaidInmailCredits(input) {
283
268
  if (threshold !== null)
284
269
  body.threshold = threshold;
285
270
  const result = await api.post(`/api/v3/mcp/senders/${encodeURIComponent(senderId)}/refresh-inmail-credits`, body, requestOptions);
286
- const receipt = normalizeRefreshReceipt(result?.receipt);
287
- const receiptRefreshed = result?.refreshed === true || receipt?.refreshed === true;
288
271
  return {
289
272
  senderId,
290
- refreshed: receiptRefreshed,
291
- error: pickString(result?.error, receipt?.error),
273
+ refreshed: true,
292
274
  credits: normalizeCreditStatus(result?.credits),
293
- receipt,
294
- sideEffects: normalizeCreditRefreshSideEffects(result?.sideEffects, receiptRefreshed),
275
+ receipt: result?.receipt,
276
+ sideEffects: {
277
+ refreshedLinkedInDerivedCreditFacts: true,
278
+ updatedSenderCreditCache: true,
279
+ campaignMutation: false,
280
+ schedulerMutation: false,
281
+ thresholdMutation: false,
282
+ sendMutation: false,
283
+ },
295
284
  };
296
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.537",
3
+ "version": "0.1.538",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code, Codex, and Hermes campaign workflows",
6
6
  "main": "dist/index.js",
@@ -87,6 +87,12 @@ Accepted invocation flags in the same user request:
87
87
  preserves natural-language arguments better than shell-style flags.
88
88
  - `targetDate: YYYY-MM-DD`: exact-date selector alternative when the host
89
89
  preserves natural-language arguments better than shell-style flags.
90
+ - `horizonSendDays: N`: compatibility selector for the next N sender-local send
91
+ days when no exact or through-date selector is present.
92
+
93
+ Date selector precedence is `targetDate > untilDate > horizonSendDays`. Use
94
+ `targetDate` for one exact sender-local date, `untilDate` for an inclusive
95
+ through-date, and `horizonSendDays` for the next N sender-local send days.
90
96
 
91
97
  When the host can call typed MCP tools, start with:
92
98
 
@@ -272,7 +278,9 @@ same sender/action/date; it tells the MCP how many cells the product scheduler
272
278
  will try to place and does not import, approve, schedule, refresh credits, or
273
279
  mutate.
274
280
  When the refill loop has ready rows and needs scheduler pickup now, use
275
- `run_scheduler_sweep` with the same explicit `workspaceId`; it can place cells
281
+ `run_scheduler_sweep({ workspaceId, targetDate })` for exact-date requests. For
282
+ `untilDate` or `horizonSendDays` requests, sweep each planner-selected
283
+ `targetDate` with the same explicit `workspaceId`. The sweep can place cells
276
284
  within existing scheduler gates and returns the receipt, but it never sends or
277
285
  bypasses limits.
278
286
  Scheduler-run receipt interpretation: `cellsConsidered is allocation-attempt
@@ -37,16 +37,21 @@ active workspace readback. Scheduled or autonomous usage must carry
37
37
  `workspaceId` on every tool call. If the workspace is missing or ambiguous, stop
38
38
  with `WORKSPACE_REQUIRED`; do not switch the shared active workspace.
39
39
 
40
+ Date selectors are sender-local and mutually exclusive by precedence:
41
+ `targetDate > untilDate > horizonSendDays`. Use `targetDate` for one exact sender-local date, `untilDate` for an inclusive through-date, and `horizonSendDays` for the next N sender-local send days. If none is provided, the planner uses the default scheduler-forward 48-hour behavior.
42
+
40
43
  For a real refill run:
41
44
 
42
45
  ```text
43
- refill_sends_v2({ workspaceId, intent:"auto", senderIds?, approvalMode? })
46
+ refill_sends_v2({ workspaceId, intent:"auto", senderIds?, approvalMode?, targetDate?, untilDate?, horizonSendDays? })
47
+ refill_sends_v2({ workspaceId, targetDate:"2026-07-07" })
48
+ refill_sends_v2({ workspaceId, untilDate:"2026-07-09" })
44
49
  ```
45
50
 
46
51
  For read-only inspection:
47
52
 
48
53
  ```text
49
- refill_sends_v2({ workspaceId, dryRun:true, intent:"auto", senderIds? })
54
+ refill_sends_v2({ workspaceId, dryRun:true, intent:"auto", senderIds?, targetDate?, untilDate?, horizonSendDays? })
50
55
  ```
51
56
 
52
57
  To resume an in-progress run, pass the handle back exactly:
@@ -55,6 +60,11 @@ To resume an in-progress run, pass the handle back exactly:
55
60
  refill_sends_v2({ workspaceId, runId, fence })
56
61
  ```
57
62
 
63
+ The original run's date window is stored in the run record. On resume, the
64
+ stored window is reused and conflicting resume input is blocked; do not add,
65
+ change, or remove `targetDate`, `untilDate`, or `horizonSendDays` while passing
66
+ an existing `{ runId, fence }`.
67
+
58
68
  If a stale handle loses the lease, the tool reports the holder status and the
59
69
  approximately 10 minute lockout window. Reinvoke with the current handle or wait
60
70
  for lease expiry; never guess a fence.
@@ -125,9 +135,12 @@ host guard, heartbeats the run lease, and may return:
125
135
  ```
126
136
 
127
137
  Reinvoke with that handle. The approximately five minute scheduler budget is at
128
- the run level, not one tool call. A window-closed or loaded-awaiting scheduler
129
- report must include remaining-ready count, exact expected pickup time, and the
130
- resume handle; never treat bare "awaiting scheduler" copy as a final answer.
138
+ the run level, not one tool call. Exact-date runs request pickup with
139
+ `run_scheduler_sweep({ workspaceId, targetDate })`; `untilDate` and
140
+ `horizonSendDays` runs sweep each planner-selected exact target date. A
141
+ window-closed or loaded-awaiting scheduler report must include remaining-ready
142
+ count, exact expected pickup time, and the resume handle; never treat bare
143
+ "awaiting scheduler" copy as a final answer.
131
144
  Scheduler-run receipt interpretation still applies to terminal progress:
132
145
  `cellsConsidered is allocation-attempt count`, not total ready supply, while
133
146
  `readyCellsFound` is ready inventory found before prefilters. Inspect
@@ -33,10 +33,16 @@ local files or memory.
33
33
  Resolve request-scoped `workspaceId` using read-only auth and workspace tools.
34
34
  Scheduled or autonomous runs must not rely on implicit workspace state.
35
35
 
36
+ Carry the request date selector through bootstrap, planning, execution, and
37
+ resume. Date selector precedence is `targetDate > untilDate > horizonSendDays`:
38
+ `targetDate` is one exact sender-local date, `untilDate` is an inclusive
39
+ through-date, and `horizonSendDays` is the next N sender-local send days. If no
40
+ selector is present, use the default scheduler-forward 48-hour behavior.
41
+
36
42
  Start or resume the execution loop:
37
43
 
38
44
  ```text
39
- refill_sends_v2({ workspaceId, intent:"auto", senderIds?, approvalMode?, runId?, fence? })
45
+ refill_sends_v2({ workspaceId, intent:"auto", senderIds?, approvalMode?, targetDate?, untilDate?, horizonSendDays?, runId?, fence? })
40
46
  ```
41
47
 
42
48
  Use `dryRun:true` only when the user asked for read-only inspection. A dry run
@@ -44,6 +50,11 @@ writes a journal only. A real run creates or resumes a run record, refreshes
44
50
  paid-credit trust only when packet facts require it, and returns a resume handle
45
51
  when the current invocation must pause.
46
52
 
53
+ The run record stores the selected date window. On resume, reuse that stored
54
+ window and block conflicting resume input; do not accept a changed
55
+ `targetDate`, `untilDate`, or `horizonSendDays` with an existing `{ runId,
56
+ fence }`.
57
+
47
58
  ## G1 Plan
48
59
 
49
60
  The loop reads `get_refill_plan_v2` with runState fed back from the run record.
@@ -116,7 +127,10 @@ outcome, then verifies before replanning.
116
127
  Scheduler wait is cross-invocation. If the tool returns `in_progress` with
117
128
  sweep guidance, re-invoke `refill_sends_v2` with `{runId, fence}`. The scheduler
118
129
  budget is cumulative at the run level. Zero pickup after a confirmed sweep is
119
- debugged from `pipelineDiagnosis`; it is not waited out forever.
130
+ debugged from `pipelineDiagnosis`; it is not waited out forever. Exact-date
131
+ runs request pickup with `run_scheduler_sweep({ workspaceId, targetDate })`;
132
+ `untilDate` and `horizonSendDays` runs sweep each planner-selected exact target
133
+ date.
120
134
  Scheduler-run receipt interpretation still applies to terminal progress:
121
135
  `cellsConsidered is allocation-attempt count`, not total ready supply, while
122
136
  `readyCellsFound` is ready inventory found before prefilters. Inspect
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "v1.0",
3
3
  "workflow": "refill-sends-v2-workflow",
4
- "principle": "Execute refill sends v2 through a fenced run record: bootstrap, plan, execute, verify, and report. Dry runs stay read-only; real runs execute only packet-named bounded work.",
4
+ "principle": "Execute refill sends v2 through a fenced run record: bootstrap, plan, execute, verify, and report. Dry runs stay read-only; real runs execute only packet-named bounded work. Date selectors use targetDate > untilDate > horizonSendDays precedence.",
5
5
  "laneSources": [
6
6
  "managed_waterfall",
7
7
  "dashboard_evergreen",
@@ -50,6 +50,9 @@
50
50
  "repair rungs come from the plan packet; the loop bounds and refuses, never self-emits repair actions",
51
51
  "capped_by_scheduler is complete, never poll",
52
52
  "awaiting scheduler is not an end state; window-closed reports name remaining-ready, expected pickup time, and resume handle",
53
+ "date selectors resolve by targetDate > untilDate > horizonSendDays; targetDate is one exact sender-local date, untilDate is an inclusive through-date, and horizonSendDays means next N sender-local send days",
54
+ "dateWindow is stored on the run record and conflicting resume input is blocked",
55
+ "exact-date scheduler pickup uses run_scheduler_sweep({ workspaceId, targetDate }); untilDate and horizonSendDays runs sweep each planner-selected exact targetDate",
53
56
  "honest-rubric-fail means a human updates the rubric or changes lead source",
54
57
  "source replenishment beyond same-source-automatic is a scoped create-campaign handoff, never refill-owned provider search",
55
58
  "no campaign creation, provider-family switch, threshold lowering, scheduler writes, sends, archives, deletes, or brief/filter/message/sequence/sender mutation without a separate approval packet"
@@ -143,7 +146,16 @@
143
146
  },
144
147
  {
145
148
  "tool": "refill_sends_v2",
146
- "requiredFields": ["workspaceId"]
149
+ "requiredFields": ["workspaceId"],
150
+ "optionalFields": [
151
+ "senderIds",
152
+ "approvalMode",
153
+ "targetDate",
154
+ "untilDate",
155
+ "horizonSendDays",
156
+ "runId",
157
+ "fence"
158
+ ]
147
159
  },
148
160
  {
149
161
  "tool": "get_subskill_prompt",
@@ -176,6 +188,9 @@
176
188
  "optionalFields": [
177
189
  "intent",
178
190
  "senderIds",
191
+ "targetDate",
192
+ "untilDate",
193
+ "horizonSendDays",
179
194
  "runState",
180
195
  "journal",
181
196
  "journalNote"
@@ -311,7 +326,7 @@
311
326
  },
312
327
  {
313
328
  "id": "verify",
314
- "description": "Verify whole-row outcomes before another plan read. Reattach to an own active prep job by requestSource/requestHash; never re-dispatch prep while a matching job is active. Foreign prep waits until clear or blocks foreign_prep_active. wait_for_active_work and wait_for_source_import reread the plan on bounded cadence. wait_for_scheduler is cross-invocation: each tool call polls briefly under the host guard, heartbeats the lease, and returns in_progress sweep guidance so the agent re-invokes refill_sends_v2 with {runId,fence}. The approximately five minute scheduler budget is cumulative at the run level.",
329
+ "description": "Verify whole-row outcomes before another plan read. Reattach to an own active prep job by requestSource/requestHash; never re-dispatch prep while a matching job is active. Foreign prep waits until clear or blocks foreign_prep_active. wait_for_active_work and wait_for_source_import reread the plan on bounded cadence. wait_for_scheduler is cross-invocation: each tool call polls briefly under the host guard, heartbeats the lease, and returns in_progress sweep guidance so the agent re-invokes refill_sends_v2 with {runId,fence}. Exact-date scheduler pickup uses run_scheduler_sweep({ workspaceId, targetDate }); untilDate and horizonSendDays runs sweep each planner-selected exact targetDate. The approximately five minute scheduler budget is cumulative at the run level.",
315
330
  "allowedTools": ["refill_sends_v2", "get_refill_plan_v2"],
316
331
  "onEnter": [
317
332
  {
@@ -322,6 +337,7 @@
322
337
  "hardRules": [
323
338
  "do not re-dispatch prep when an own active job exists; reattach and poll status",
324
339
  "capped_by_scheduler is complete",
340
+ "resume uses the stored dateWindow; conflicting resume input is blocked",
325
341
  "replan-driven repair: the planner names rerun_errored_cells, approve_messages, start_campaign, or source work; the loop bounds and refuses",
326
342
  "conversion verdict is journaled from packet facts after the first prep batch; the plan gate withholds a second unproven prep batch",
327
343
  "zero pickup after a confirmed sweep is debugged from pipelineDiagnosis, not waited out forever",
@@ -189,9 +189,11 @@ files or memory.
189
189
  does not create rows, import, approve, schedule, refresh paid-InMail credits,
190
190
  or mutate thresholds.
191
191
  When ready rows exist and the wait is for scheduler pickup, call
192
- `run_scheduler_sweep` with the same explicit `workspaceId` to request the
193
- product scheduler placement pass now and read its receipt. This may place
194
- cells within existing gates, never sends messages, and never bypasses limits.
192
+ `run_scheduler_sweep({ workspaceId, targetDate })` for exact-date requests
193
+ to request the product scheduler placement pass now and read its receipt. For
194
+ `untilDate` or `horizonSendDays` requests, sweep each planner-selected
195
+ `targetDate` with the same explicit `workspaceId`. This may place cells
196
+ within existing gates, never sends messages, and never bypasses limits.
195
197
  Scheduler-run receipt interpretation: `cellsConsidered is
196
198
  allocation-attempt count`, not total ready supply, while `readyCellsFound`
197
199
  is ready inventory found before prefilters. Inspect `campaignScopeSummary`
@@ -202,7 +202,7 @@
202
202
  ],
203
203
  "rules": [
204
204
  "Poll every 60-120 seconds or on the host continuation interval.",
205
- "Use run_scheduler_sweep with the explicit workspaceId when ready rows need scheduler pickup now; it places cells only inside existing gates and never sends.",
205
+ "Use run_scheduler_sweep({ workspaceId, targetDate }) for exact-date scheduler pickup; for untilDate or horizonSendDays requests, sweep each planner-selected targetDate with the explicit workspaceId. It places cells only inside existing gates and never sends.",
206
206
  "cellsConsidered is allocation-attempt count; inspect campaignScopeSummary before assuming the selected refill campaign/table was included or ready-but-blocked.",
207
207
  "Read prefiltered, skipped, and deferred separately: prefiltered ready closed-InMail cells with stale paid-credit facts require refresh_paid_inmail_credits_then_rerun once, then rerun/status.",
208
208
  "wait_for_capacity_or_window means report loaded/capped/waiting and do not source or prep more rows; no_ready_cells_continue_refill_prep means return to the refill/prep ladder.",