@sellable/mcp 0.1.404 → 0.1.406

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.
@@ -252,6 +252,35 @@ must read like final create-campaign/generate-messages output.
252
252
  samples. If two samples would still read the same after replacing names and
253
253
  companies, revise or rerun.
254
254
 
255
+ ### Shared Evergreen Signal Discovery hard gate
256
+
257
+ For Shared Signal Discovery and other shared evergreen lanes, signal-led copy
258
+ must be safer than the legacy weak-signal examples. These lanes are reused by
259
+ multiple senders, so the first line cannot sound like a scraped-activity excuse
260
+ or a founder self-intro.
261
+
262
+ - `hope this is relevant`, `might be interested`, and `saw you in a few conversations` are blocked openers for shared evergreen lanes.
263
+ - do not write first-person singular founder language such as `I'm building`,
264
+ `I've mapped`, `my company`, or `my team` unless exactly one sender can
265
+ credibly say it and the lane is not shared.
266
+ - Do not put internal workflow vocabulary in buyer-facing copy: `Codex`, `MCP`,
267
+ `Claude-style agent workflows`, `agent workflows`, `workflow table`, `lead
268
+ source`, or `signal discovery`.
269
+ - Write a concrete signal/problem bridge instead of a relevance hedge. Good
270
+ shapes are `the AI-assisted GTM conversations keep coming back to [buyer
271
+ problem]`, `teams trying to turn LinkedIn signal into pipeline usually hit
272
+ [problem]`, or `when [observable business moment] is live, [buyer workflow]
273
+ gets harder to run consistently`.
274
+ - If the row evidence is too weak to write a concrete bridge, omit the source
275
+ line and start from a buyer problem, event, role, or company observation.
276
+ - Shared evergreen lanes must pass this gate before `confirmed`, before saving a
277
+ reusable template, and before any route-proof approval.
278
+
279
+ Short form: shared evergreen copy cannot use `hope this is relevant`.
280
+ Short form: shared evergreen copy cannot use `might be interested`.
281
+ Short form: shared evergreen copy cannot use `I'm building`.
282
+ Short form: write a concrete signal/problem bridge instead of a relevance hedge.
283
+
255
284
  ### Rich Personalization Contract
256
285
 
257
286
  The `create-campaign` asset `references/ai-native-tokens.md` is the canonical
@@ -269,12 +298,15 @@ conditional good/bad fill reference.
269
298
  - Use this shape for any hook, bridge, or row-specific relevance line:
270
299
  `[PERSONALIZATION_LINE — Intent: write one short sentence that anchors the
271
300
  note to why this might matter now. DO: connect one observable role/company/
272
- activity signal to the buyer problem or offer with low-certainty language like
273
- "hope this is relevant if...", "saw you might be interested in...", "saw you in
274
- a few conversations around...", or "figured this might matter if...". DON'T: recap
275
- their resume, list companies, compliment their background, name a product their
276
- company sells, use source-citation phrasing, or use generic nouns like "your
277
- work".
301
+ activity signal to the buyer problem or offer with a permissioned bridge. For
302
+ shared evergreen lanes, do not use `hope this is relevant`, `might be
303
+ interested`, or `saw you in a few conversations`; use a concrete
304
+ signal/problem bridge instead. For non-evergreen weak-signal campaigns only,
305
+ legacy low-certainty language like "hope this is relevant if..." or "so may be
306
+ off, but this seemed relevant" can be considered when the source is otherwise
307
+ awkward. DON'T: recap their resume, list companies, compliment their
308
+ background, name a product their company sells, use source-citation phrasing, or
309
+ use generic nouns like "your work".
278
310
  FALLBACK: if unsupported, omit the entire line.]`
279
311
  - The rendered personalization line should usually be 6-14 words. If it needs
280
312
  two clauses, multiple companies, or abstract tags like `GTM`, `international
@@ -433,9 +465,9 @@ artifact.**
433
465
 
434
466
  Safer shapes:
435
467
 
436
- - `hope this is relevant if {{signal_topic}} is part of the plan`
437
- - `saw you might be interested in {{signal_topic}}, so hope this is relevant`
438
- - `saw you in a few conversations around {{signal_topic}}, so hope this is relevant`
468
+ - `hope this is relevant if {{signal_topic}} is part of the plan` for non-evergreen weak-signal campaigns only
469
+ - `saw you might be interested in {{signal_topic}}, so hope this is relevant` for non-evergreen weak-signal campaigns only
470
+ - `saw you in a few conversations around {{signal_topic}}, so hope this is relevant` for non-evergreen weak-signal campaigns only
439
471
  - `saw you in a few conversations about {{signal_topic}}, so may be off, but this seemed relevant`
440
472
  - `appreciate you showing some love on my post about {{signal_topic}}` only when the sender/client authored the source post and the row proves a reaction or comment
441
473
  - `thanks for showing support on my {{signal_topic}} post` only when the sender/client authored the source post and the row proves a reaction or comment
@@ -499,20 +531,22 @@ artifact.**
499
531
  magnet replies, or scraped conversations), it is acceptable to reference the
500
532
  conversation when it explains why the note exists. Keep it topic-level, not
501
533
  activity-log-level: `saw you in a few conversations around
502
- {{signal_topic}}, so hope this is relevant` is acceptable; `saw you
503
- commented on {{post_context}}` and `your LinkedIn activity around...` are
504
- not. Reserve `raise your hand` phrasing for explicit lead-magnet comments,
505
- replies, or opt-ins. For ordinary thread discovery, use `saw you in a few
506
- conversations around {{signal_topic}}...` or `found you in a thread about
507
- {{signal_topic}}...`.
534
+ {{signal_topic}}, so hope this is relevant` is acceptable only for
535
+ non-evergreen weak-signal campaigns; it is blocked for Shared Evergreen
536
+ Signal Discovery. `saw you commented on {{post_context}}` and `your LinkedIn
537
+ activity around...` are not acceptable. Reserve `raise your hand` phrasing
538
+ for explicit lead-magnet comments, replies, or opt-ins. For ordinary shared
539
+ evergreen thread discovery, either translate the topic into a concrete
540
+ buyer/problem bridge or omit the source line.
508
541
 
509
542
  Keep the apologetic nature, but aim it at uncertainty, not surveillance.
510
- Good: `saw you in a few conversations about outbound, so may be off, but
511
- this seemed relevant`, `may be off, but if outbound is relevant to what
512
- you're working on...`, `if this is not relevant to your outbound workflow,
513
- ignore me`, `hope
514
- this is relevant if...`. Bad: `your role at {{company}} looked close...`,
515
- because it asserts fit from a title and tells the buyer about themselves.
543
+ Good for non-evergreen weak-signal campaigns: `saw you in a few
544
+ conversations about outbound, so may be off, but this seemed relevant`, `may
545
+ be off, but if outbound is relevant to what you're working on...`, or `hope
546
+ this is relevant if...`. For shared evergreen lanes, these hedges are not
547
+ enough; use a concrete signal/problem bridge or omit the source line. Bad:
548
+ `your role at {{company}} looked close...`, because it asserts fit from a
549
+ title and tells the buyer about themselves.
516
550
 
517
551
  Block wordier source narration such as `you might not remember the thread,
518
552
  but I found you through a {{signal_topic}} discussion and your
@@ -1509,7 +1543,10 @@ Before `confirmed`, run the selected winner against these gates:
1509
1543
  the lead sample. If desire is inferred, use tentative framing like
1510
1544
  `hope this is relevant if...`, `saw you might be interested in...`,
1511
1545
  `saw you in a few conversations around...`, `figured this might matter if...`,
1512
- or `if you've ever wanted...`.
1546
+ or `if you've ever wanted...`. Exception: for Shared Signal Discovery and
1547
+ other shared evergreen lanes, `hope this is relevant`, `might be interested`,
1548
+ and `saw you in a few conversations` are blocked; use a concrete
1549
+ signal/problem bridge or omit the source line.
1513
1550
  - **Buyer-first opener:** after the greeting, the first substantive line
1514
1551
  should usually enter the buyer's world: a real signal, current-state
1515
1552
  pain, buyer-owned priority, or useful artifact. Sender-origin can come
@@ -1810,8 +1847,11 @@ about`, or `clearly relevant` are BLOCKED. Source-y phrases such as
1810
1847
  `saw you might be interested in [topic], so hope this is relevant`, `saw you
1811
1848
  in a few conversations around [topic], so hope this is relevant`, `found you
1812
1849
  in a few conversations about [topic], so may be off, but this seemed
1813
- relevant`, `figured this might matter if [workflow] is live at [company]`, or a similarly natural
1814
- line. Longer source-recap forms such as `you might not remember the thread,
1850
+ relevant`, `figured this might matter if [workflow] is live at [company]`, or
1851
+ a similarly natural line. For shared evergreen lanes, skip the `hope this is
1852
+ relevant` / `might be interested` / `saw you in a few conversations` versions
1853
+ and use the concrete bridge version. Longer source-recap forms such as `you
1854
+ might not remember the thread,
1815
1855
  but I found you through a [topic] discussion...` are BLOCKED; they narrate
1816
1856
  the scrape path instead of creating buyer relevance.
1817
1857
  - **Engagement reference is opt-in, not the default opener:** do not
@@ -1956,9 +1996,9 @@ matters to the buyer, why this might be relevant, or the operator-reality that
1956
1996
  led to it. Acceptable openers:
1957
1997
 
1958
1998
  - `Hey {{first_name}}, [one plain sentence about what we built].`
1959
- - `Hey {{first_name}}, hope this is relevant if [buyer context] is still on your plate.`
1960
- - `Hey {{first_name}}, saw you might be interested in [topic], so hope this is relevant.`
1961
- - `Hey {{first_name}}, saw you in a few conversations around [topic], so hope this is relevant.`
1999
+ - `Hey {{first_name}}, hope this is relevant if [buyer context] is still on your plate.` Not for shared evergreen lanes.
2000
+ - `Hey {{first_name}}, saw you might be interested in [topic], so hope this is relevant.` Not for shared evergreen lanes.
2001
+ - `Hey {{first_name}}, saw you in a few conversations around [topic], so hope this is relevant.` Not for shared evergreen lanes.
1962
2002
  - `Hey {{first_name}}, found you in a thread about [topic], so may be off, but this seemed relevant.`
1963
2003
  - `Hey {{first_name}}, saw you raise your hand for [topic], so figured this was (hopefully) worth sending.` Only use this for explicit lead-magnet comments, replies, or opt-ins.
1964
2004
  - `Hey {{first_name}}, saw you raise your hand for [topic] (creepy to reach out based on that, i know) - but this felt too on the nose to ignore.` Only use this for explicit lead-magnet comments, replies, or opt-ins.
@@ -2219,9 +2259,9 @@ Rules:
2219
2259
  - if `lead-sample.json` carries **any** per-lead signal for this lead — a recent post, a recent hire, a visible tool in the headline, a topic engagement, a public initiative — the **message must reference it specifically**. Category-level copy is rejected.
2220
2260
  - default placement is **Block 3**, not Block 1. Keep Block 1 substance-first unless the archived motion clearly earns a signal-led opener without falling into source-citation / talk-at phrasing.
2221
2261
  - acceptable signal use by default:
2222
- - `"Hope this is relevant if [topic] is part of the plan."`
2223
- - `"Saw you might be interested in [topic], so hope this is relevant."`
2224
- - `"Saw you in a few conversations around [topic], so hope this is relevant."`
2262
+ - `"Hope this is relevant if [topic] is part of the plan."` Non-evergreen weak-signal only; blocked for shared evergreen lanes.
2263
+ - `"Saw you might be interested in [topic], so hope this is relevant."` Non-evergreen weak-signal only; blocked for shared evergreen lanes.
2264
+ - `"Saw you in a few conversations around [topic], so hope this is relevant."` Non-evergreen weak-signal only; blocked for shared evergreen lanes.
2225
2265
  - `"Saw you in a few conversations about [topic], so may be off, but this seemed relevant."`
2226
2266
  - `"Found you in a thread about [topic], so may be off, but this seemed relevant."`
2227
2267
  - `"Thought of {{company}} because [observable signal] points at [problem]."`
@@ -2239,6 +2279,11 @@ Rules:
2239
2279
  - `"Saw you raise your hand for [topic], so figured this was worth sending."`
2240
2280
  - `"Figured this was worth sending."`
2241
2281
  - signal-led opener shape is a **special case**, not the default. Use it only when the archived motion truly depends on it and the line can stay natural. For LinkedIn-post-sourced campaigns, prefer `"saw you in a few conversations around [topic], so hope this is relevant"` or `"found you in a thread about [topic], so may be off, but this seemed relevant"` when referencing the source makes the outreach feel less random. Avoid activity-log phrasing such as `"you commented on..."`, `"you reacted to..."`, or `"your LinkedIn activity..."` unless the approved motion is the deliberately self-aware raise-hand line for an explicit lead-magnet comment, reply, or opt-in.
2282
+ - For Shared Evergreen Signal Discovery, do not use the weak signal-led opener
2283
+ shapes above. Translate the source into a concrete problem bridge, e.g.
2284
+ `"The AI-assisted GTM conversations keep coming back to one problem: turning
2285
+ good LinkedIn signal into review-ready pipeline without another dashboard."`
2286
+ Then connect the product in buyer language.
2242
2287
  - tokenized engagement-source opener shape is BLOCKED by default:
2243
2288
  `{{first_name}}, saw you {{engagement_context}} on {{post_context}}` reads
2244
2289
  like surveillance unless the filled line is explicitly self-aware and
@@ -2247,7 +2292,9 @@ Rules:
2247
2292
  this is relevant`, `saw you in a few conversations around [topic], so hope this
2248
2293
  is relevant`, `saw you in a few conversations about [topic], so may be off,
2249
2294
  but this seemed relevant`, or `found you in a thread about [topic], so may be
2250
- off, but this seemed relevant`. Use the self-aware raise-hand shapes only when
2295
+ off, but this seemed relevant`. For shared evergreen lanes, those weak signal
2296
+ bridges are blocked; use a concrete signal/problem bridge instead. Use the
2297
+ self-aware raise-hand shapes only when
2251
2298
  the source was an explicit lead-magnet comment, reply, or opt-in: `saw you raise
2252
2299
  your hand for [topic], so figured this was (hopefully) worth sending` or `saw you
2253
2300
  raise your hand for [topic] (creepy to reach out based on that, i know) - but
@@ -5,9 +5,6 @@ visibility: public
5
5
  allowed-tools:
6
6
  - mcp__sellable__get_subskill_prompt
7
7
  - mcp__sellable__search_subskill_prompts
8
- - mcp__sellable__list_senders
9
- - mcp__sellable__get_sender_routing
10
- - mcp__sellable__get_campaign_waterfall
11
8
  - mcp__sellable__resolve_campaign_fill_route
12
9
  - mcp__sellable__get_campaign_refill_state
13
10
  - mcp__sellable__fill_campaign_horizon
@@ -38,7 +35,6 @@ allowed-tools:
38
35
  - mcp__sellable__get_table_rows
39
36
  - mcp__sellable__get_campaign_table_schema
40
37
  - mcp__sellable__select_campaign_cells
41
- - mcp__sellable__queue_campaign_cells
42
38
  - mcp__sellable__wait_for_campaign_processing
43
39
  - mcp__sellable__get_sender
44
40
  ---
@@ -55,39 +51,10 @@ get_subskill_prompt({ subskillName: "refill-sends-workflow" })
55
51
  ```
56
52
 
57
53
  Then follow that workflow exactly. The default path is read-only research:
58
- resolve the route, identify the sender-relevant campaign that most recently had
59
- scheduler-owned sends, read refill state for that target, report the next safe
60
- step using campaign names first, and stop before mutation unless the user has
61
- explicitly approved the exact workspace, campaign/table/source ids, caps/dates,
62
- approval mode, expected side effects, and stop/rollback condition.
63
-
64
- For interactive Codex or Claude Code sessions, that approval must use the
65
- host-native structured question gate, not plain chat:
66
-
67
- - Codex: use `request_user_input`.
68
- - Claude Code: use `AskUserQuestion`.
69
-
70
- The approval question must present the final refill step with exactly two
71
- choices: `Accept` and `Decline`. Treat `Accept` as permission for only the
72
- rendered target, caps, mode, and side effects. Treat `Decline` as a hard stop
73
- with no mutation.
74
-
75
- If Christian includes `--yolo` in the same refill request, treat that flag as
76
- auto-accept for the rendered bounded refill packet after the required fresh state
77
- reread. `--yolo` only covers the exact target, caps, approval mode, and side
78
- effects in the packet. It does not authorize launch/start, sending, archive or
79
- delete cleanup, direct scheduler writes, sender reassignment, or any expanded
80
- target set. Stop and re-plan if the route, ids, caps, blockers, or side-effect
81
- class drift before mutation.
82
-
83
- In `--yolo`, the default two-day fill horizon is two send days. The workflow must pick
84
- the best recent-send campaign first, not every active campaign, and compute the
85
- bounded gap from healthy sender daily capacity, existing future scheduled sends,
86
- and rows already ready to schedule. If a same-source copy hits the campaign-table
87
- row cap, split the current source into a bounded LinkedIn profile source list,
88
- confirm only that smaller list into the same campaign, and operate on the copied
89
- review batch. Do not fall back to on-demand campaigns or broad active-campaign
90
- fills.
54
+ resolve the route, read target refill state, report the next safe step, and stop
55
+ before mutation unless the user has explicitly approved the exact workspace,
56
+ campaign/table/source ids, caps/dates, approval mode, expected side effects,
57
+ and stop/rollback condition.
91
58
 
92
59
  Public concepts are regular campaign and evergreen campaign. Internal direct
93
60
  campaign types are unsupported refill targets. `fill_campaign_horizon` is only a
@@ -3,9 +3,6 @@ name: refill-sends-workflow
3
3
  description: Internal skill-led refill sends workflow for regular campaigns and evergreen campaigns.
4
4
  visibility: internal
5
5
  allowed-tools:
6
- - mcp__sellable__list_senders
7
- - mcp__sellable__get_sender_routing
8
- - mcp__sellable__get_campaign_waterfall
9
6
  - mcp__sellable__resolve_campaign_fill_route
10
7
  - mcp__sellable__get_campaign_refill_state
11
8
  - mcp__sellable__fill_campaign_horizon
@@ -36,7 +33,6 @@ allowed-tools:
36
33
  - mcp__sellable__get_table_rows
37
34
  - mcp__sellable__get_campaign_table_schema
38
35
  - mcp__sellable__select_campaign_cells
39
- - mcp__sellable__queue_campaign_cells
40
36
  - mcp__sellable__wait_for_campaign_processing
41
37
  - mcp__sellable__get_sender
42
38
  ---
@@ -56,27 +52,11 @@ Plain phrases that enter here include "fill", "refill sends", "max out sends",
56
52
  fill/load language, `intent:"active"` only when the user explicitly narrowed
57
53
  to active regular campaigns, and `intent:"evergreen"` only when the user
58
54
  explicitly asked for evergreen or horizon work.
59
- 2. Resolve sender context before choosing a target. Call `list_senders`; when a
60
- managed program is involved, also call `get_campaign_waterfall`, and call
61
- `get_sender_routing` when territory rules may constrain sender eligibility.
62
- If the user named senders, map those names to exact sender ids. If the user
63
- did not name senders, infer the relevant senders from the most recent
64
- scheduler-owned sends in refill-state readbacks and report that inference.
65
- Short form: infer from the most recent scheduler-owned sends when the sender set is not explicit.
66
- 3. Read `get_campaign_refill_state` for candidate campaigns from the resolver
67
- result. For a broad `active_campaigns` route, inspect enough candidates to
68
- identify the campaign or small campaign set that most recently had
69
- scheduler-owned sends for the relevant sender set. Do not stop after the
70
- first resolver target unless it is also the most recent sender-relevant send
71
- lane.
72
- Short form: Do not stop after the first resolver target unless recent-send evidence supports it.
73
- In `--yolo` mode, selecting every active campaign is a scope error. Pick the
74
- single highest-ranked recent-send campaign unless the refill-state evidence
75
- proves multiple distinct sender lanes need separate two-day fills.
76
- Short form: `--yolo` selects the best recent-send campaign first, not all active campaigns.
77
- 4. Pick exact ids from the selected refill-state response. Do not use campaign
78
- names or table names as target identifiers for tool calls.
79
- 5. Classify the target from refill state:
55
+ 2. Pick exact ids from the resolver result. Do not use campaign names or table
56
+ names as target identifiers.
57
+ 3. Call `get_campaign_refill_state` for the selected `campaignId` or `tableId`.
58
+ This must be the next target-specific research primitive.
59
+ 4. Classify the target from refill state:
80
60
  - regular campaign: campaign-backed workflow table with normal source,
81
61
  sequence, senders, and send/refill stages.
82
62
  - evergreen campaign: managed always-on lane with current source evidence.
@@ -97,10 +77,7 @@ Use the refill-state response as the current facts receipt:
97
77
  approved, ready to schedule, scheduled;
98
78
  - active message prep job;
99
79
  - scheduler-owned scheduled counts by date/action from cells with non-null
100
- `scheduledFor`; treat these as the last sends/continuation signal;
101
- - latest scheduled send date, latest scheduled-cell update when present,
102
- sender overlap with the requested or inferred sender set, and whether future
103
- scheduled sends already exist;
80
+ `scheduledFor`;
104
81
  - `freshness.stateHash` and exact campaign/table/workspace ids.
105
82
 
106
83
  Empty or unsafe states stop with the blocker: no fillable target, missing or deleted campaign,
@@ -112,61 +89,9 @@ scheduler, or unsupported direct campaign type.
112
89
 
113
90
  For regular campaign workspaces, rank regular campaigns from route and
114
91
  `get_campaign_refill_state` evidence. Choose the best existing refill target.
115
- The default refill interpretation is "continue the campaign that was actually
116
- sending most recently for the relevant available senders", not "touch every
117
- active campaign".
118
-
119
- Default `--yolo` horizon is two send days when the user asks to fill, refill,
120
- load, or max sends without naming a different horizon. Compute the target from
121
- the selected campaign's healthy sender daily capacity for the next two send
122
- days, minus already scheduler-owned future scheduled sends for those days and
123
- minus rows already ready to schedule. If `readyToSchedule` already covers the
124
- two-day gap, do not add rows or prep; report that the selected campaign is loaded
125
- and awaiting the scheduler. If the gap is positive, prepare only the gap and keep
126
- all source-copy/prep caps tied to that two-day packet.
127
- Short form: default `--yolo` refill target is the selected campaign's two-day send gap.
128
-
129
- Rank candidates in this order:
130
-
131
- 1. **Sender match**: campaigns whose healthy sender ids match the user-named
132
- senders, or the inferred sender set when the user said only "fill sends" or
133
- "load senders". Do not include campaigns merely because they are active when
134
- their sender set is unrelated.
135
- 2. **Recent sends**: campaigns with the newest scheduler-owned scheduled counts
136
- and non-null `scheduledFor` cells for those senders. Future scheduled sends
137
- are stronger continuation evidence than old historical sends; otherwise use
138
- the latest scheduled send date / newest scheduled-cell update from refill
139
- state.
140
- 3. **Continuation capacity**: campaigns with healthy senders, remaining daily
141
- capacity, and a gap between current ready-to-schedule rows and the desired
142
- sender capacity.
143
- 4. **Same-campaign source health**: prefer campaigns whose current source has
144
- enough `sourceAvailable` inventory to prepare the gap. If source inventory
145
- is low or exhausted, choose same-campaign row replenishment before switching
146
- campaigns.
147
- 5. **Campaign scope**: keep the selected set small. Normally choose one
148
- campaign; choose multiple only when the recent-send evidence shows multiple
149
- distinct sender lanes are actively being filled.
150
-
151
92
  Do not create side campaigns, warm-post-engager side campaigns, on-demand campaigns,
152
93
  or unrelated campaigns as the default answer to a fill request.
153
94
 
154
- For each selected campaign, decide the next action by the smallest sufficient
155
- step:
156
-
157
- - **Enrich/prep more rows in the same campaign** when sender health is good,
158
- recent sends point to this campaign, and `sourceAvailable` can cover the
159
- ready-to-schedule gap.
160
- - **Add/import more rows to the same campaign/source path** when the campaign is
161
- the right recent-send lane but source inventory or viable rows cannot cover
162
- the gap.
163
- - **Use a different existing campaign** only when the recent-send campaign is
164
- blocked, archived, missing sequence/source/senders, disconnected, exhausted
165
- with no viable same-campaign replenishment path, or the user explicitly asks
166
- to move to another campaign.
167
- - **Ask what to create** only after resolver/state evidence shows there is no
168
- suitable existing campaign for the requested sender set.
169
-
170
95
  When the best regular campaign is source-exhausted, recommend same-campaign source-ladder replenishment.
171
96
  Keep `selectedLeadListId` source identity distinct
172
97
  from the campaign `workflowTableId`.
@@ -184,30 +109,6 @@ Source replenishment choices:
184
109
  source prospects into the same campaign/source-list path, then confirm
185
110
  readiness.
186
111
 
187
- When reusing an existing source list on an already-large campaign, handle the
188
- campaign-table row cap automatically in `--yolo` mode. If `confirm_lead_list`
189
- fails with `USER_ADDED_ROWS_LIMIT_EXCEEDED`, parse `remainingRows`,
190
- `currentRows`, `requestedRows`, and `maxRows`; do not stop just because the full
191
- source list is too large. Instead, create a bounded same-source split:
192
-
193
- 1. choose a split size no larger than `remainingRows`, the two-day refill row
194
- budget, and the first-pass processing cap unless the packet named a higher
195
- cap;
196
- 2. read compact rows from the current `selectedLeadListId` with
197
- `get_rows_minimal`;
198
- 3. create a temporary bounded LinkedIn profile source list with
199
- `load_csv_linkedin_leads`, preserving useful source columns such as post URL,
200
- post author, engagement type/text, keyword, confidence, and why;
201
- 4. call `confirm_lead_list` with that bounded source-list id, the same campaign
202
- id, and `currentStep:"running"` for ACTIVE campaigns;
203
- 5. verify the campaign table row count and review batch with
204
- `get_campaign_table_schema` before any prep/approval.
205
-
206
- Do not use `add_on_demand_leads` or create an on-demand table as the automatic
207
- regular-campaign fallback. The fallback must stay same-campaign and
208
- source-list-backed.
209
- Short form: row-cap fallback means bounded same-source split, not stop or on-demand.
210
-
211
112
  ### Running Campaign Signal Discovery Recovery
212
113
 
213
114
  For an already-running regular campaign that needs same-campaign Signal
@@ -245,10 +146,10 @@ returns to Running after same-campaign source rows are copied. Do not call
245
146
  post-copy state transition.
246
147
 
247
148
  Before any source mutation, show exact approval evidence: workspace id,
248
- campaign name, campaign id, workflow table id, source/provider id, source-list
249
- id when known, import caps, target dates/caps, dedupe/DNC/provider exclusion expectations, and expected row side effects. Present the campaign name and plain-English reason first; include ids only as proof and execution targets.
250
- Then reread `get_campaign_refill_state`; if `freshness.stateHash` or exact ids
251
- changed, stop and ask for a fresh approval.
149
+ campaign id, workflow table id, source/provider id, source-list id when known,
150
+ import caps, target dates/caps, dedupe/DNC/provider exclusion expectations, and
151
+ expected row side effects. Then reread `get_campaign_refill_state`; if
152
+ `freshness.stateHash` or exact ids changed, stop and ask for a fresh approval.
252
153
 
253
154
  After source import, call `wait_for_lead_list_ready` and `confirm_lead_list`
254
155
  with the source-list id and campaign id. Imports append to the existing
@@ -278,71 +179,18 @@ Before prep or approval mutation, reread `get_campaign_refill_state` and compare
278
179
  If they changed, stop. A second concurrent refill run must see the first run's
279
180
  import/prep state on reread and avoid duplicate work.
280
181
 
281
- After the final reread and before the first mutating refill primitive, render
282
- one final approval packet in campaign-name-first language, then ask a
283
- host-native structured question with exactly two choices: `Accept` and
284
- `Decline`. The question is the execution boundary.
285
- Short form: exactly two choices: `Accept` and `Decline`.
286
-
287
- - In Codex interactive sessions, use `request_user_input`.
288
- - In Claude Code interactive sessions, use `AskUserQuestion`.
289
- - The `Accept` choice must name the exact campaign, workspace id, campaign id,
290
- workflow table id, source/action ids when relevant, caps/dates, approval mode,
291
- expected side effects, and stop/rollback condition.
292
- - The `Decline` choice must stop with no mutation.
293
- - Do not proceed from a plain chat "ok", "yes", "go", or "do it" when the
294
- structured question tool is available. If the structured question tool is not
295
- available in an interactive session, stop and tell the user the quick question
296
- panel is required for refill approvals. In non-interactive exec/automation,
297
- print the approval packet and stop before mutation.
298
-
299
- `--yolo` mode is explicit auto-accept. If Christian includes `--yolo` in the
300
- same refill request, do not ask the `Accept` / `Decline` question. Instead:
301
-
302
- 1. render the same final approval packet;
303
- 2. reread `get_campaign_refill_state`;
304
- 3. verify the route, workspace id, campaign id, table id, source/action ids,
305
- caps/dates, approval mode, blockers, and side-effect class still match the
306
- packet;
307
- 4. execute only the exact packet.
308
-
309
- `--yolo` never authorizes launch/start, sending, archive/delete cleanup, raw
310
- scheduler writes, sender reassignment, unrelated campaigns, expanded campaign
311
- sets, or higher caps than the packet named. If any state or scope drifts, stop
312
- and re-plan instead of auto-accepting the changed action.
313
- Short form: expanded campaign sets are not covered by `--yolo`.
314
- Short form: direct scheduler writes are not covered by `--yolo`.
315
- Short form: stop and re-plan instead of auto-accepting the changed action.
316
-
317
182
  After same-campaign source copy, inspect the actual campaign-table position of
318
183
  the copied rows before starting prep. Newly copied rows often land after the first 100 table rows. Use `get_campaign_table_schema` to read the `reviewBatch`,
319
184
  then use `select_campaign_cells` diagnostics against
320
185
  `rowSelector:{ type:"reviewBatch" }` for `enrich`, `generateMessage`, and
321
186
  `approved` roles when needed.
322
187
 
323
- For bounded split refills, operate on the review batch first. Queue
324
- `queue_campaign_cells` for `columnRole:"enrich"` on
325
- `rowSelector:{ type:"reviewBatch" }`, wait for campaign processing, then queue
326
- `columnRole:"generateMessage"` for the same review batch or
327
- `needsGeneratedMessage` rows. If the bounded packet explicitly uses
328
- `approvalMode:"approve"` because the user asked to fill/schedule sends or
329
- provided `--yolo` for a two-day send fill, approve only the bounded review-batch
330
- cohort after current generated messages exist. Do not broad approve existing
331
- table rows.
332
-
333
188
  If review-batch enrich cells are pending or Generate Message cells are
334
189
  dependency-blocked, omit `maxRowsToCheck` so the adaptive prep job can cover the
335
190
  bounded table scan, or set a bounded cap high enough to include appended rows
336
191
  when row count evidence requires it. Do not run a fixed `maxRowsToCheck:100` prep pass after appending rows to a larger existing campaign table; it can spend
337
192
  the whole budget on older rows and miss the refill batch.
338
193
 
339
- Bound `targetPreparedMessages` to the actual ready-to-schedule gap for the
340
- selected campaign and sender set. If `readyToSchedule` already covers the gap,
341
- do not start prep; report that the campaign is already loaded and awaiting the
342
- scheduler. If source inventory is available and the gap is small, prepare only
343
- the gap instead of filling every active campaign.
344
- Short form: prepare only the gap instead of filling every active campaign.
345
-
346
194
  Scheduled success requires a post-action reread proving scheduler-owned cells
347
195
  with non-null `scheduledFor`. Prepared, approved, and ready-to-schedule rows are
348
196
  intermediate states; report them as awaiting scheduler unless scheduled cells
@@ -377,24 +225,9 @@ the current source or ask for more research instead of walking the ladder.
377
225
  - No mutation in production unless Christian explicitly approves exact
378
226
  workspace, campaign/table ids, source/action ids, caps/dates, approval mode,
379
227
  expected side effects, and rollback/stop condition.
380
- - In interactive Codex or Claude Code, that explicit approval must be collected
381
- through the host-native `Accept` / `Decline` question gate.
382
- - `--yolo` in the current refill request is explicit auto-accept for the
383
- rendered bounded refill packet only; it does not loosen the launch/send,
384
- scheduler-write, archive/delete, or drift rules above.
385
228
 
386
229
  ## Report
387
230
 
388
- Report in campaign-name-first language:
389
-
390
- - selected campaign name(s), target type, and sender names;
391
- - why they were selected, including last scheduled send date/future scheduled
392
- send evidence and sender overlap;
393
- - whether the smallest next step is enrich/prep more in that campaign, add rows
394
- to that campaign/source, use a different existing campaign, or ask what to
395
- create;
396
- - source state, blockers, exact next primitive, approval required, and the
397
- freshness hash used.
398
-
399
- Keep ids visible but secondary: show them under "Exact target" or "Proof", not
400
- as the main decision text. Say explicitly: nothing was launched and nothing was sent.
231
+ Report the selected target, target type, source state, blockers, exact next
232
+ primitive, approval required, and the freshness hash used. Say explicitly that
233
+ nothing was launched and nothing was sent.