reply-cli 0.17.2 → 0.19.0

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.
Files changed (64) hide show
  1. package/README.md +102 -56
  2. package/dist/commands/skills.js +13 -14
  3. package/dist/commands/skills.js.map +1 -1
  4. package/dist/operations/commands.js +76 -37
  5. package/dist/operations/commands.js.map +1 -1
  6. package/dist/operations/direct-send.d.ts +6 -1
  7. package/dist/operations/direct-send.js +47 -2
  8. package/dist/operations/direct-send.js.map +1 -1
  9. package/dist/operations/direct-sends.js +6 -5
  10. package/dist/operations/direct-sends.js.map +1 -1
  11. package/dist/skills/adapter-flat.d.ts +7 -18
  12. package/dist/skills/adapter-flat.js +69 -165
  13. package/dist/skills/adapter-flat.js.map +1 -1
  14. package/dist/skills/detect.js +2 -3
  15. package/dist/skills/detect.js.map +1 -1
  16. package/dist/skills/hosts.js +16 -16
  17. package/dist/skills/hosts.js.map +1 -1
  18. package/dist/skills/journal.d.ts +1 -1
  19. package/dist/skills/journal.js.map +1 -1
  20. package/dist/skills/orchestrate.d.ts +3 -8
  21. package/dist/skills/orchestrate.js +80 -73
  22. package/dist/skills/orchestrate.js.map +1 -1
  23. package/dist/skills/packs.d.ts +11 -15
  24. package/dist/skills/packs.js +66 -138
  25. package/dist/skills/packs.js.map +1 -1
  26. package/dist/skills/plugins.d.ts +19 -0
  27. package/dist/skills/plugins.js +67 -0
  28. package/dist/skills/plugins.js.map +1 -0
  29. package/dist/skills/report.d.ts +1 -2
  30. package/dist/skills/report.js +75 -20
  31. package/dist/skills/report.js.map +1 -1
  32. package/dist/skills/types.d.ts +18 -22
  33. package/package.json +2 -1
  34. package/skills/reply-adapter/reply-api/SKILL.md +231 -0
  35. package/skills/reply-adapter/reply-auth/SKILL.md +111 -0
  36. package/skills/reply-adapter/reply-cli/SKILL.md +178 -0
  37. package/skills/reply-adapter/reply-mcp/SKILL.md +115 -0
  38. package/skills/reply-adapter/reply-operations-mapping/SKILL.md +469 -0
  39. package/skills/reply-adapter/reply-operations-mapping/fulfilment.yaml +2986 -0
  40. package/skills/reply-adapter/reply-operations-mapping/references/fulfilment.md +872 -0
  41. package/skills/reply-adapter/reply-operations-mapping/references/mapping-01-discovery.md +35 -0
  42. package/skills/reply-adapter/reply-operations-mapping/references/mapping-02-contacts.md +46 -0
  43. package/skills/reply-adapter/reply-operations-mapping/references/mapping-03-audiences.md +39 -0
  44. package/skills/reply-adapter/reply-operations-mapping/references/mapping-04-import.md +28 -0
  45. package/skills/reply-adapter/reply-operations-mapping/references/mapping-05-campaigns.md +49 -0
  46. package/skills/reply-adapter/reply-operations-mapping/references/mapping-06-steps.md +41 -0
  47. package/skills/reply-adapter/reply-operations-mapping/references/mapping-07-messages.md +28 -0
  48. package/skills/reply-adapter/reply-operations-mapping/references/mapping-08-enrollment.md +30 -0
  49. package/skills/reply-adapter/reply-operations-mapping/references/mapping-09-conversations.md +32 -0
  50. package/skills/reply-adapter/reply-operations-mapping/references/mapping-10-tasks.md +35 -0
  51. package/skills/reply-adapter/reply-operations-mapping/references/mapping-11-meetings.md +40 -0
  52. package/skills/reply-adapter/reply-operations-mapping/references/mapping-12-signals.md +33 -0
  53. package/skills/reply-adapter/reply-operations-mapping/references/mapping-13-inbound.md +34 -0
  54. package/skills/reply-adapter/reply-operations-mapping/references/mapping-14-privacy.md +46 -0
  55. package/skills/reply-adapter/reply-operations-mapping/references/mapping-15-sending.md +57 -0
  56. package/skills/reply-adapter/reply-operations-mapping/references/mapping-16-social.md +36 -0
  57. package/skills/reply-adapter/reply-operations-mapping/references/mapping-17-oversight.md +55 -0
  58. package/skills/reply-adapter/reply-operations-mapping/references/mapping-18-team.md +38 -0
  59. package/skills/reply-adapter/reply-operations-mapping/references/mapping-19-accounts.md +35 -0
  60. package/skills/reply-adapter/reply-operations-mapping/references/mapping-20-measurement.md +33 -0
  61. package/skills/reply-adapter/reply-operations-mapping/references/mapping-21-introspection.md +38 -0
  62. package/dist/skills/adapter-native.d.ts +0 -22
  63. package/dist/skills/adapter-native.js +0 -335
  64. package/dist/skills/adapter-native.js.map +0 -1
@@ -0,0 +1,469 @@
1
+ ---
2
+ name: reply-operations-mapping
3
+ description: >
4
+ Maps the vendor-neutral SDR operation contract onto Reply.io execution: which API v3 endpoint
5
+ group and doc page performs an operation, which scope it needs, how far Reply keeps the
6
+ operation's promise, and how Reply's errors translate back into operation outcomes. Use when a
7
+ plan names an operation and you need to perform it against Reply, when a Reply response needs
8
+ interpreting in business terms, or when you need to know whether Reply can do a thing at all
9
+ before promising it to a user.
10
+ metadata:
11
+ version: 2.3.0
12
+ pack: reply-adapter
13
+ category: execution
14
+ maturity: draft
15
+ status: active
16
+ owner: skills-maintainers
17
+ tags: [mapping, operations, endpoints, scopes, adapter, coverage]
18
+ tools: [reply-cli, reply-mcp]
19
+ api: [contacts, contact-lists, contact-blacklist-rules, custom-fields, sequences, sequence-steps, sequence-contacts, sequence-email-accounts, sequence-linkedin-accounts, sequence-folders, sequence-templates, email-templates, inbox, tasks, reports, email-accounts, linkedin-accounts, accounts, schedules, holiday-calendars, webhooks, live-data, direct-outreach, contact-enrichment, email-validations, background-jobs, user-account, industries, ai-sdr-sequences, ai-sdr-pending-approvals]
20
+ relations:
21
+ depends-on: [reply-api, reply-cli, sdr-operations]
22
+ recommends: [reply-auth, reply-mcp]
23
+ ---
24
+
25
+ # Reply operations mapping
26
+
27
+ ## Purpose
28
+
29
+ `sdr-operations` says what `campaign.enroll` *means*. This skill says how to make it happen
30
+ against Reply.io — which endpoint group owns it, which scope it needs, what must be true first,
31
+ and what the response says in business terms. It also says, for most of the contract, that Reply
32
+ does not perform the operation at all. **Both halves are the job.** A map that showed only the
33
+ reachable parts would read as complete and would be worth less than one that admits its edges,
34
+ because the edges are where an agent invents something.
35
+
36
+ The per-operation answer is not written here by hand. It lives in the coverage register
37
+ `fulfilment.yaml` in this skill, from which the per-family mapping tables and
38
+ [fulfilment.md](references/fulfilment.md) are generated. What is written here is everything that
39
+ does not fit in a table: how to read a fulfilment claim, the Reply-specific facts that change a
40
+ plan before any endpoint is chosen, and how a Reply response translates back into an operation
41
+ outcome.
42
+
43
+ ## When to use / when NOT to use
44
+
45
+ - Use when executing a plan written in operation names against Reply.
46
+ - Use when a Reply response or error needs translating back into "what happened to the business
47
+ intent".
48
+ - Use **before promising a capability**. The honest answer for most operations is that Reply does
49
+ not have one, and finding that out at planning time costs a sentence, while finding it out
50
+ mid-run costs the run.
51
+ - Do NOT use it as an endpoint reference. It names the **endpoint group and doc page**; exact
52
+ paths, parameters and body schemas come from the documentation at call time — see `reply-api`
53
+ for the discovery-first workflow. Paths written from memory are how agents invent endpoints
54
+ that do not exist.
55
+ - Do NOT take the ordering from here. The neutral ordering lives in the contract's worked chains
56
+ and only there; this skill adds what is Reply-specific about it and nothing else.
57
+ - Do NOT put business judgement here. Whether to dedupe by skipping or updating is a decision
58
+ owned by the core pack; this skill only knows how to carry it out.
59
+
60
+ ## Prerequisites
61
+
62
+ - A working credential — `reply auth whoami` succeeds (see `reply-cli`).
63
+ - The scopes the operation's row names, in the per-family mapping table (see `reply-auth` for the
64
+ scope grammar).
65
+ - The operation you intend to perform, taken from the `sdr-operations` contract by name.
66
+
67
+ ## Planning guidance
68
+
69
+ ### Mapping never changes a classification
70
+
71
+ **Read the operation's classification first, then map it.** The contract already told you what the
72
+ operation reaches, whether it can be undone, what it costs, what to read before repeating it, and
73
+ what approval it needs. Knowing which endpoint performs it changes none of that.
74
+
75
+ An operation that is `confirm_once` with a mandatory preview in the contract is still
76
+ `confirm_once` with a mandatory preview after you know the endpoint. `campaign.enroll` mapped onto
77
+ *Bulk add contacts to sequence* is still one decision over a named population, and the preview is
78
+ still the approval artefact. This is the guardrail this layer is most tempted to erode — an
79
+ endpoint that returns quickly and cleanly feels safer than one that does not, and it is not — so
80
+ the mapping tables reproduce the contract's own reach and approval columns unchanged, precisely so
81
+ a reader can see for themselves that nothing was softened in transit.
82
+
83
+ The traffic runs one way: the contract may tighten what this adapter does, and this adapter may
84
+ never loosen what the contract requires.
85
+
86
+ ### The fulfilment vocabulary
87
+
88
+ Every one of the contract's 325 operations carries exactly one of four claims about Reply.
89
+
90
+ | Claim | What it means | What you do on meeting it |
91
+ |---|---|---|
92
+ | `direct` | One documented surface performs the operation. | Fetch its doc page, call it, report the operation. |
93
+ | `composed` | Several calls in a stated order realise it. | Follow the stated order. Report the **operation**, not the calls — a composed operation that reports three call results has reported nothing a user can read. |
94
+ | `partial` | Reply performs it, but not to the contract's full promise. The register names the unkept part. | Say which part is missing **before** the user commits to a route that depends on it, and carry the missing half yourself — usually in whatever holds durable context across sessions. A partial reported as done is the most expensive mistake in this file. |
95
+ | `absent` | Not performable here today. The register names the evidence. | Say so, name what the documentation says, and stop. **Never substitute an adjacent endpoint.** Something that returns approximately the right shape is worse than a missing capability, because the user cannot see that it is wrong. |
96
+
97
+ An operation shown as *not assessed* has no entry at all. That is a different statement from
98
+ `absent`: nobody has answered for it yet, and it must be reported as an unanswered question.
99
+
100
+ ### An `absent` is a gap in this adapter, not in the contract
101
+
102
+ **An operation marked `absent` is a gap in THIS ADAPTER, not in the contract.** The contract
103
+ describes the job; this file describes one product's coverage of it. The inverse mistake —
104
+ deleting an operation from the contract because this API lacks it — would undo the reason the
105
+ vendor-neutral layer exists.
106
+
107
+ The layer earns its keep exactly here. `meeting.book`, `privacy_request.fulfill`,
108
+ `inbound_lead.record` and `frequency_policy.define` are things an SDR organisation genuinely does;
109
+ Reply not having a surface for them makes them unmet needs, visible and nameable, rather than
110
+ things that quietly stop being part of the job. A contract shaped around one product's endpoints
111
+ would be a product manual with a neutral vocabulary painted on it.
112
+
113
+ ### The shape of the coverage, stated honestly
114
+
115
+ <!-- BEGIN GENERATED adapter-coverage -->
116
+
117
+ <!-- Generated. Do not edit by hand. -->
118
+
119
+ All 325 operations carry an entry: **43 direct, 6 composed, 84 partial, 192 absent.**
120
+
121
+ <!-- END GENERATED adapter-coverage -->
122
+
123
+ Reaching about a sixth of the contract directly is the true picture, and it is worth stating in
124
+ those terms rather than in the terms a mapping is usually written in. A mapping listing only what
125
+ it can do would read as complete while being less useful — the reader would have no way to
126
+ distinguish "not in this document" from "not possible", which is the one distinction they need
127
+ when a plan is being written. The 192 absences are the most informative part of the register, and
128
+ [fulfilment.md](references/fulfilment.md) is long for that reason rather than in spite of it.
129
+
130
+ **One part of this register has not been researched as thoroughly as the rest, and it is worth
131
+ knowing which.** The endpoint groups covering *resources* were worked through page by page — 29 of
132
+ them are named across the entries. The **settings** groups were not: no entry in the register claims
133
+ a `settings:` scope, and that correlates exactly with where the claims are weakest. Every stored
134
+ policy object lands `absent` or `partial` — enrichment, contactability, frequency, response,
135
+ identity, assignment, workload, review, signal and content policies — and that is one missed pass
136
+ rather than fifteen independent judgements. Treat those entries as the least trustworthy in the file
137
+ until the settings pages have been read; `warmup_plan.set` first, because its own entry says the
138
+ absence it records is the one that costs the most in its family.
139
+
140
+ Nothing about these figures is a criticism of the product. Reply is strong exactly where an
141
+ outbound programme spends most of its time — contacts, lists, sequences, steps, enrolment, the
142
+ inbox and tasks. The absences cluster in oversight and review, which is the largest cluster in the
143
+ register, then deliverability, then privacy machinery, meetings, inbound queues, signals and the
144
+ policy objects that live in other systems or in nobody's system yet. Measurement belongs with the
145
+ absences rather than the strengths: the family is mostly absent, because the contract asks for a
146
+ measure set with the grouping as an argument and a stated envelope around every figure, which is a
147
+ different thing from a report.
148
+
149
+ ### Where the order comes from
150
+
151
+ **The order is not in this skill and must not be copied into it.** The contract's worked chains —
152
+ `references/chains.md` in `sdr-operations` — carry the ordering, the gate at each step and the
153
+ failure each step prevents. Chain 1, *Launching outreach to two hundred people from a raw file*,
154
+ is the launch and import order that this skill used to restate. Read it there and follow it there.
155
+ An order written in two places drifts, and the copy that drifts is always the one further from the
156
+ contract.
157
+
158
+ What is genuinely Reply-specific about the order, and therefore belongs here:
159
+
160
+ 1. **A bulk write is not finished when the call returns.** Large writes answer `202 Accepted` with
161
+ a background-job reference. The operation completes when the job reaches a **terminal state**,
162
+ so the chain step that follows a bulk write is a poll, and the figures that go into the report
163
+ are the job's counts and never the `202`.
164
+ 2. **Enrolment answers per contact, and the reconciliation is a step of its own.** *Bulk add
165
+ contacts to sequence* returns a result per person — added, already in sequence, not found,
166
+ forbidden, limit exceeded. Reading them is part of performing the operation, not part of
167
+ writing it up afterwards.
168
+ 3. **Two calls where the contract has one.** Attaching a schedule is create-or-update the schedule
169
+ and then update the sequence; changing a campaign's owner is its own endpoint. Where a mapping
170
+ row names more than one page, that is the shape of the work, and each call is a place the
171
+ sequence can be left half-configured.
172
+ 4. **Some protective moves are one level up.** Reply has no pause for a mailbox, so on email the
173
+ protective move is `campaign.pause` or unbinding the sender. Say which one you used: they are
174
+ not the same blast radius.
175
+
176
+ ### Two Reply facts that shape almost every plan
177
+
178
+ 1. **Bulk work is asynchronous**, as above. Plan the poll before you plan the write.
179
+ 2. **Measurement is rate-limited harder than the rest of the surface.** Reporting and
180
+ sequence-stats endpoints carry stricter limits than general endpoints. Sequential calls,
181
+ cached within the session, **never polled**. An agent that parallelises a measurement pass gets
182
+ `429`, and an agent that responds by retrying harder gets a longer one.
183
+
184
+ ## Execution guidance
185
+
186
+ ### Discovery-first, always
187
+
188
+ Every mapping row means: *use the `reply api` command with the path taken from that doc page*.
189
+ Fetch `https://docs.reply.io/llms.txt` once per session, then the specific page as raw markdown —
190
+ append `.md` to its URL — before the first call of that kind.
191
+
192
+ The register names an **endpoint group and a documentation page**, never a path, a parameter or a
193
+ body field. That is deliberate: a path written from memory is the single most common way an agent
194
+ fails against this API, and a path written into this file would be that mistake made once and then
195
+ trusted forever.
196
+
197
+ ### The per-family tables
198
+
199
+ One table per contract family, generated from the register, in this skill's references:
200
+
201
+ - Families 1–4, people and audience: [discovery](references/mapping-01-discovery.md),
202
+ [contacts](references/mapping-02-contacts.md), [audiences](references/mapping-03-audiences.md),
203
+ [import](references/mapping-04-import.md).
204
+ - Families 5–8, the programme: [campaigns](references/mapping-05-campaigns.md),
205
+ [steps](references/mapping-06-steps.md), [messages](references/mapping-07-messages.md),
206
+ [enrollment](references/mapping-08-enrollment.md).
207
+ - Families 9–13, the conversation and the day:
208
+ [conversations](references/mapping-09-conversations.md), [tasks](references/mapping-10-tasks.md),
209
+ [meetings](references/mapping-11-meetings.md), [signals](references/mapping-12-signals.md),
210
+ [inbound](references/mapping-13-inbound.md).
211
+ - Families 14–16, permission and capability: [privacy](references/mapping-14-privacy.md),
212
+ [sending](references/mapping-15-sending.md), [social](references/mapping-16-social.md).
213
+ - Families 17–21, the organisation around the work:
214
+ [oversight](references/mapping-17-oversight.md), [team](references/mapping-18-team.md),
215
+ [accounts](references/mapping-19-accounts.md),
216
+ [measurement](references/mapping-20-measurement.md),
217
+ [introspection](references/mapping-21-introspection.md).
218
+
219
+ Read the **one** family that owns the operation in front of you. Everything this adapter does not
220
+ reach, with the evidence for each, is collected in [fulfilment.md](references/fulfilment.md).
221
+
222
+ ### The runtime path beats any table
223
+
224
+ A static table goes stale, and it answers for the product rather than for this login. Where the
225
+ runtime can answer, prefer it:
226
+
227
+ - `capability.list` — what **this credential** may actually do. A table says what the API offers;
228
+ a key with narrower scopes cannot do it.
229
+ - `adapter.describe` — the ceilings, batch sizes and page sizes **this installation** works
230
+ within, and whether work of this size runs inline or queues.
231
+ - `adapter.verify` — proves by test which operations resolve here, rather than by assertion.
232
+
233
+ Against Reply today, all three are themselves incomplete, and that is the honest answer rather
234
+ than a reason to skip them. Identity and team membership are readable, but no endpoint returns the
235
+ granted scope set — what a key may do is discovered by making a call and reading an
236
+ `insufficient_scope` refusal back. The ceilings are documented in prose rather than returned per
237
+ installation. Nothing tests fulfilment at all: **this register is a claim made from documentation,
238
+ and it is the thing a verification would check rather than a substitute for one.** Treat every row
239
+ in it as needing confirmation the first time it is used against a real account, and report a row
240
+ that turns out to be wrong rather than working around it.
241
+
242
+ ### Async work
243
+
244
+ A `202` response carries a background-job reference. Poll it to a terminal state, then report that
245
+ job's counts. A job that ends `failed` gets its body fetched for the reason — **never blind-retry
246
+ a bulk write**, because the first attempt may have partially succeeded. The job's result payload
247
+ is opaque and its shape varies by job kind, so where the contract wants one outcome per item,
248
+ reconcile against the entities themselves rather than trusting the job to carry the ledger.
249
+
250
+ ### Sourcing prospects — Live Data, and its one hard constraint
251
+
252
+ The contract's discovery family — `candidate.search`, `candidate.get`, `candidate.promote` — is
253
+ `partial` here, on Reply's Live Data surface. Three rules, in order of how expensive it is to get
254
+ them wrong:
255
+
256
+ 1. **Preview before Start, always.** Preview costs nothing and adds nobody. Start buys the people
257
+ and creates them as contacts, spending the user's allowance, and **the mistake is only visible
258
+ once it is already paid for**. Show the user who came back and let them approve the filter
259
+ before it is run for real.
260
+ 2. **Say "beta" as part of the plan, not as a footnote.** Live Data, the intent-signal typeaheads
261
+ and the AI-SDR cluster are documented Beta or Coming soon. That belongs in the sentence where
262
+ the user chooses the route, before they commit to it — not in a caveat after the work. Fetch
263
+ the doc page and confirm the endpoint is callable, exactly as with any other surface.
264
+ 3. **One Live Data search runs per team at a time.** This is a Reply fact and it belongs nowhere
265
+ else. An agent that does not know it will plan several searches in parallel and stall, or read
266
+ the refusal as a failure and retry it. Plan searches in series, and if one is already running,
267
+ the honest report is that the queue is occupied and by what.
268
+
269
+ Build the filter from the typeahead values — departments, industries, job titles, locations,
270
+ seniorities — rather than guessing accepted ones. Check the existing searches before starting a
271
+ near-identical one: a repeat spends again and returns a different world. Whatever comes back then
272
+ enters the normal path — `contact.create` or `import.apply` into a named list, with the same
273
+ mapping, dedupe policy and approval gate as any other import. Start can optionally drop the found
274
+ people straight into a sequence; treat that as `campaign.enroll` and hold it to the enrolment
275
+ gate rather than letting it ride along.
276
+
277
+ **Contact enrichment is documented as available late August 2026 and is not callable today.**
278
+ `contact.enrich`, `company.enrich` and `phone_number.verify` are `absent` for that reason. Say
279
+ that, name the date the documentation gives, and never substitute an unrelated endpoint: an
280
+ enrichment that silently returns something else is worse than a missing capability.
281
+
282
+ The core-side view of all this — the routes a user without a list can take, of which Live Data is
283
+ one — is `audience-building` → *Where an audience comes from*.
284
+
285
+ ### Error translation
286
+
287
+ | Reply signal | What it means for the operation | What to do |
288
+ |---|---|---|
289
+ | `400` + `errors[]` with JSON Pointers | The request was malformed, the intent was fine | Fix the indicated field, retry once |
290
+ | `401`, empty body | Credential invalid or expired — not an operation failure | Re-authenticate; see `reply-cli` |
291
+ | `403 insufficient_scope` | The credential may not perform this class of operation | Name the missing scope to the user; do not retry. This is also how a capability is discovered here, since no endpoint reports the granted scope set |
292
+ | `403`/`401` `TEAM_REQUIRED` · `TEAM_NOT_ACCESSIBLE` · `USER_REQUIRED` · `USER_NOT_FOUND` | The call could not be attributed to one team or acting user | See `reply-auth`; the CLI prints the exact fix |
293
+ | `404` | The identifier is wrong or stale, so the precondition never held | Re-resolve the entity; never invent an identifier |
294
+ | A bare `404` — no `code` of Reply's own — on a direct send, `direct-send get` or `direct-send cancel` | The account's Reply does not have the route yet; nothing was done | Say the capability is not offered here; never re-resolve or retry it as a stale identifier |
295
+ | `direct_send.not_found` · `direct_send.not_owned` (from reply-cli 0.17.0) | No send this account holds under the reference | Take the reference from the record of the send; never guess one |
296
+ | `direct_send.already_sent` · `direct_send.already_failed` (from reply-cli 0.17.0) | A cancel that came after the send went, or after it failed | Report the send as gone or as failed, never as cancelled; the cancel is not retried |
297
+ | `idempotency_key.in_use` (from reply-cli 0.17.0) | The first send under the key is still being made, and this one sent nothing | Wait, then repeat under the same key |
298
+ | `idempotency_key.reused` (from reply-cli 0.17.0) | The key was taken for another request, and Reply sent nothing for this one; `details` names the send the key holds — its `reference`, `state` and `send_after` | Where the key is the operation's own, that send is the operation's; never send again under a new key |
299
+ | `429` | The operation is fine, the pace is not | Honour `Retry-After`, go sequential. On a measurement pass, cache instead of re-reading |
300
+ | `5xx`, or a dropped connection | Unknown whether the operation took effect | Read the operation's **`before_repeating`** state from the contract first, and let that decide. A retry is only safe because a caller-supplied idempotency key was sent with the original call |
301
+ | Per-contact `not processed` in a bulk result | Partial success — a normal outcome, not an error | Report each reason; offer the corresponding fix |
302
+
303
+ **The idempotency key is what makes the last row survivable, and it is the caller's to supply.**
304
+ The contract requires one on every act, every collection write, every durable-object write and
305
+ every metered call, precisely so that a lost response is a lookup rather than a gamble. In the
306
+ contract that lookup is `invocation.get`, which distinguishes "never seen" from "seen and failed"
307
+ — and the two must never be collapsed, because a timed-out send may already have arrived.
308
+
309
+ Reply has no lookup-by-key surface: `invocation.get` is `absent` here. So on a dropped connection
310
+ the recovery is the operation's own `before_repeating` read against the entity itself — re-read
311
+ the contact, the participation, the thread — and a blind retry is never the answer. Send the key
312
+ anyway and record it: it is what makes the run reconstructable, and it is what a future adapter
313
+ with such a surface would resolve against.
314
+
315
+ The direct sends are the one exception. From reply-cli 0.17.0 they take `--idempotency-key`, and
316
+ Reply answers a repeat of the same request under the same key with the send it took, so a lost
317
+ answer there — a timeout, a dropped connection, a CLI that died, an exit 0 cut off or unreadable,
318
+ or a 5xx — is repeated under the key, and a send Reply answered with a failure, a 4xx, never is,
319
+ since Reply keeps no key for it; `idempotency_key.in_use` and a rate limit sent nothing and are
320
+ waited out. The repeat comes after `reply direct-send get` of a reference the earlier
321
+ try returned has said nothing of the send, and only within 23 hours of the first try, since Reply
322
+ keeps a key for a day. That holds only where the account's Reply has the
323
+ direct-send routes, which `reply direct-send get` of a reference tells (from reply-cli 0.17.0): a
324
+ bare 404 there means a key sent to a send protects nothing.
325
+
326
+ ### A provider object inside the arguments
327
+
328
+ Where the runtime carrying the work passes the reserved `provider` key inside the operation's
329
+ arguments, `args.provider`, `message.send` performed as a direct send by email reads it as
330
+ `{"schedule_id": "<id>"}` and nothing else: the `id` of one of the account's schedules from
331
+ `reply schedule list` (from reply-cli 0.16.0), written as a string of its digits. It becomes the send's `--schedule-id` (from reply-cli 0.17.0), and
332
+ Reply holds the send until the schedule's first opening, at or after `send_after` where both are
333
+ given. Every other operation leaves the object unread. Another shape or another key is refused
334
+ before anything is sent, with a message that names the shape and quotes nothing of what was given:
335
+ write the object in that shape and ask again. Reply refuses a schedule on every LinkedIn direct
336
+ send in this version (scheduleId is not supported for LinkedIn sends in this version, a 400 on
337
+ each LinkedIn route), so a schedule on a LinkedIn message is refused before any call. When a
338
+ schedule serves better than a moment is `reply-api`'s to say.
339
+
340
+ ### Choosing CLI or MCP
341
+
342
+ `reply api` reaches the whole API, so it reaches every operation this register marks reachable.
343
+ The MCP tool catalog is a curated **subset** of that API — convenient where no shell exists, but a
344
+ subset of a surface that already covers a minority of the contract. When an operation has no
345
+ matching tool, fall back to the CLI rather than approximating it with a different tool. See
346
+ `reply-mcp`.
347
+
348
+ ## Validation
349
+
350
+ After every operation whose reach is `control` or `act`, perform the contract's
351
+ **`before_repeating`** read for that operation as a read-back: re-read the entity and confirm
352
+ identifiers, counts and status. An operation is reported complete only when that read agrees. For
353
+ async work: terminal job state plus reconciled counts.
354
+
355
+ Where the operation is `partial`, the read-back also has to establish the half Reply does not
356
+ enforce. Reply accepts a resume from any state, so the check that the participation was actually
357
+ held is the caller's; Reply records no reason on a stop, so the reason lives in the run's own
358
+ record or it is lost.
359
+
360
+ ## Reporting
361
+
362
+ Report in operation terms, with Reply identifiers attached and marked as Reply's —
363
+ `campaign.enroll → campaign "Q3 SaaS founders" (Reply sequence id 12345), 214 requested,
364
+ 211 enrolled, 3 already in the campaign`. A durable artefact names the entity the way the contract
365
+ names it, always; the product's own word survives only inside the identifier it labels, where a
366
+ reader can see it is an identifier and not a claim about what the entity is. Include
367
+ background-job identifiers, the
368
+ idempotency key sent, the endpoint groups used for writes, and any scope or team change the run
369
+ required.
370
+
371
+ Where an operation was `partial`, say which part was performed and which was carried outside the
372
+ product. Where one was `absent`, name it as a gap in this adapter and say what the documentation
373
+ says — never let it disappear from the report because nothing was called.
374
+
375
+ ## Failure modes
376
+
377
+ - **Inventing a path** instead of fetching the doc page. The single most common way an agent fails
378
+ against Reply.
379
+ - **Substituting an adjacent endpoint for an `absent` operation.** Deleting contacts is not
380
+ fulfilling a privacy request; moving a list is not removing from one; marking a thread read is
381
+ not closing it. Each returns approximately the right shape and answers a different question.
382
+ - **Reporting a `partial` as done**, without naming the half the product does not keep.
383
+ - **Reporting the `202`** as the result of a bulk operation.
384
+ - **Treating a partial bulk result as success**, hiding the per-contact reasons.
385
+ - **Reading `absent` as a defect in the contract** and proposing the operation be dropped. It is a
386
+ fact about this product on this date, and the register is the place it is recorded.
387
+ - **Treating this register as a capability read.** It is documentation-derived and per-product;
388
+ what *this credential* may do is `capability.list`, and here that is answered by an
389
+ `insufficient_scope` refusal rather than by a listing.
390
+ - **Parallelising measurement** reads and hitting `429`, then retrying harder.
391
+ - **Planning two Live Data searches at once.** One runs per team at a time; the second stalls.
392
+ - **Starting a Live Data search without previewing it.** Start spends the user's allowance; the
393
+ mistake is only visible once it is already paid for.
394
+ - **Presenting a beta surface as settled**, or a *coming soon* one as callable. Contact enrichment
395
+ is documented for late August 2026 and is not available before then.
396
+ - **Telling a user Reply cannot source prospects.** It can, in beta — see *Sourcing prospects*.
397
+
398
+ ## Safety
399
+
400
+ **Mapping an operation never changes its approval requirement.** `campaign.activate` mapped onto
401
+ *Start a sequence* still requires the user to have approved the population and the literal first
402
+ message, and the preview the contract demands is still the approval artefact. `reply api` has no
403
+ dry-run: any POST/PATCH/DELETE is live the moment it is issued.
404
+
405
+ The protective actions — `campaign.pause`, `enrollment.pause`, `outreach.hold` where it can be
406
+ composed, lowering a sender's limits — are the ones that may be performed first and reported
407
+ immediately. See `approval-boundaries` in the core pack for the full rule, which this skill does
408
+ not restate or override.
409
+
410
+ Two Reply-specific safety notes. A schedule is a shared object, so editing one silently rewrites
411
+ every future date on every campaign pointing at it — check who else uses it first. And a delete
412
+ here is a delete: Reply documents no restore for a contact, a template or a custom field, so treat
413
+ those as irreversible with no window and say so before acting rather than after.
414
+
415
+ ## Related skills
416
+
417
+ - `sdr-operations` (core pack) — what each operation means, and the worked chains that carry the
418
+ ordering. This skill is its Reply implementation and states, per operation, how far that
419
+ implementation reaches.
420
+ - `reply-api` — discovery-first endpoint workflow, error conventions, rate limits.
421
+ - `reply-cli` — how to actually issue the calls.
422
+ - `reply-auth` — scopes, key types, team and acting-user resolution.
423
+ - `approval-boundaries` (core pack) — the approval rules this skill reads and never lowers.
424
+
425
+ ## Changelog
426
+
427
+ - 2.3.0 (2026-10-30): `message.send` in the fulfilment register says that a message composed as a
428
+ template goes by the same command and that Reply fills it in, before anything goes or when it
429
+ goes, and points to reply-api's *Templates* for the rest.
430
+ - 2.2.0 (2026-10-29): *A provider object inside the arguments* says what `message.send` reads
431
+ there — `{"schedule_id": "<id>"}`, a schedule from `reply schedule list`, by email only — and
432
+ that it becomes `--schedule-id` from reply-cli 0.17.0; `message.send` and `message.schedule` in
433
+ the fulfilment register name it too.
434
+ - 2.1.0 (2026-10-29): `message.schedule` and `scheduled_message.cancel` move from `absent` to
435
+ `partial`: from reply-cli 0.17.0 a direct send takes `--send-after` and `--idempotency-key`, and
436
+ `reply direct-send cancel` cancels one by its reference, where the account's Reply has the
437
+ routes. `scheduled_message.list` stays `absent`, since `reply direct-send get` reads one send by
438
+ reference and lists nothing. *Error translation* gains the bare 404 of these routes, the
439
+ `direct_send.*` codes and the two `idempotency_key.*` codes, and the idempotency paragraph names
440
+ the direct sends as the one place a key settles a lost answer, read back by reference first and
441
+ repeated under the key only within 23 hours.
442
+ - 2.0.0 (2026-08-10): rewritten against contract 2.0.0. The six hand-written family tables are
443
+ **deleted**: every operation now has an entry in the coverage register `fulfilment.yaml`, from
444
+ which the twenty-one per-family mapping tables and `fulfilment.md` are generated, and this file
445
+ points at them instead of restating a subset. The **Composite ordering** section is deleted —
446
+ the launch and import orders it stated now live once, in the contract's worked chains, and what
447
+ survives here is only what is Reply-specific about the order. New: the fulfilment vocabulary
448
+ (`direct` · `composed` · `partial` · `absent`) with what an agent does on meeting each; the rule
449
+ that an `absent` is a gap in this adapter and never a reason to shrink the contract; the
450
+ coverage figures stated in the body, generated from the register itself, so that a reader is not
451
+ left to infer completeness from a table's length; the runtime path
452
+ (`capability.list`, `adapter.describe`, `adapter.verify`) as preferable to any static table; and
453
+ the Reply limit of one Live Data search per team at a time, which an agent that does not know it
454
+ will plan around wrongly. The `5xx` error row now points at the contract's `before_repeating`
455
+ property rather than at a 1.x "check first" field, and says that the caller-supplied idempotency
456
+ key is what makes a retry safe at all. Every operation name in the file was renamed to the 2.0.0
457
+ contract — `sequence.*` to `campaign.*`, `enrollment.create` to `campaign.enroll`,
458
+ `conversation.read` to `conversation.get`, `conversation.reply` to `message.send`, `metrics.*`
459
+ to `engagement.summarize`, and the three-segment and hyphenated names to their two-segment
460
+ replacements.
461
+ - 1.1.0 (2026-08-02): added *Sourcing prospects* — Live Data search and AI SDR intent
462
+ signals, both beta, with Preview-before-Start as a hard rule, and Contact Enrichment
463
+ recorded as not yet callable. Until now the only mention of Live Data in this skill was a
464
+ warning in Failure modes, so an agent reading it could conclude Reply has no prospect
465
+ search at all.
466
+ - 1.0.0 (2026-07-30): initial mapping of the six operation families onto Reply API v3,
467
+ including composite launch/import ordering, async handling and error translation.
468
+ Consolidates the Reply-specific execution detail previously embedded in the business
469
+ skills, which are now vendor-neutral.