@synap-core/workspace-templates 0.40.0 → 0.43.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.
package/src/crm.yaml CHANGED
@@ -1024,9 +1024,7 @@ playbooks:
1024
1024
  params:
1025
1025
  - { name: target, type: entity, label: Lead or company, required: true }
1026
1026
  executor: is-agent
1027
- grants:
1028
- - apify_run_actor
1029
- - entity.create
1027
+ tools: [update_entity, apify_run_actor, entity.create]
1030
1028
  status: active
1031
1029
 
1032
1030
  # ── Qualify a lead — a ROLE-subject process ─────────────────────────────
@@ -1057,9 +1055,10 @@ playbooks:
1057
1055
  client, set the ICP score, qualification notes and outreach channels,
1058
1056
  and write the step you recommend as the lead's next action: `nextAction`
1059
1057
  one imperative line (e.g. "Send the first message on LinkedIn") and
1060
- `nextActionAt` its date. DECIDE: ask the person to `choose` pursue,
1061
- nurture or drop, your recommendation first; that answer is the
1062
- decision. NURTURE: set the lead to nurturing, with `nextAction` to check
1058
+ `nextActionAt` its date, and say in the qualification notes whether you
1059
+ recommend pursuing, nurturing or dropping it. Stop there: the pod asks
1060
+ the person to pick pursue, nurture or drop and wakes you with their
1061
+ answer, which is the decision. DECIDE: record it on the lead. NURTURE: set the lead to nurturing, with `nextAction` to check
1063
1062
  in again and `nextActionAt` the date they gave (three months out when
1064
1063
  they gave none). DROP: write their reason in `disqualificationReason`
1065
1064
  and move the lead to disqualified; that move is the person's
@@ -1081,7 +1080,7 @@ playbooks:
1081
1080
  - { name: lead, type: entity, label: Lead, required: true }
1082
1081
  executor: is-agent
1083
1082
  status: active
1084
- requiredIntents: [enrich_entity, search_external]
1083
+ tools: [enrich_entity, search_external]
1085
1084
  stages:
1086
1085
  - key: research
1087
1086
  name: Research
@@ -1095,7 +1094,7 @@ playbooks:
1095
1094
  - key: score
1096
1095
  name: Score
1097
1096
  category: started
1098
- goal: Set the ICP score, qualification notes and outreach channels, and the recommended step as the lead's nextAction and nextActionAt.
1097
+ goal: Set the ICP score, qualification notes (with whether you recommend pursuing, nurturing or dropping it) and outreach channels, and the recommended step as the lead's nextAction and nextActionAt.
1099
1098
  criteria:
1100
1099
  - key: lead-score-set
1101
1100
  statement: The lead has an ICP score and a written reason for it.
@@ -1103,10 +1102,22 @@ playbooks:
1103
1102
  - key: lead-next-action
1104
1103
  statement: The lead's nextAction is one imperative line and its nextActionAt is set.
1105
1104
  check: { kind: judge }
1105
+ # Raised by the pod when the turn ends this stage (plan 08e4fba7
1106
+ # decision 5): a run has no ask tool. The answer wakes the run at Decide.
1107
+ endAsk:
1108
+ label: Pursue, nurture or drop
1109
+ why: The lead is researched and scored; its qualification notes say which the run recommends.
1110
+ unblocks: The run sets the lead from your answer
1111
+ ask:
1112
+ mode: choose
1113
+ options:
1114
+ - { label: Pursue, value: pursue, description: "Qualified, with booking a meeting as its next action" }
1115
+ - { label: Nurture, value: nurture, description: The run sets a date to check in again }
1116
+ - { label: Drop, value: drop, description: Disqualified once you approve the move }
1106
1117
  - key: decide
1107
1118
  name: Decide
1108
1119
  category: started
1109
- goal: Ask the person to choose pursue, nurture or drop, your recommendation first, and record the answer on the lead; a nurtured lead gets a nextAction to check in and its nextActionAt, a dropped one its disqualificationReason and a proposed move to disqualified.
1120
+ goal: Record the person's answer (pursue, nurture or drop) on the lead; a nurtured lead gets a nextAction to check in and its nextActionAt, a dropped one its disqualificationReason and a proposed move to disqualified.
1110
1121
  criteria:
1111
1122
  - key: lead-decision-chosen
1112
1123
  statement: The person chose pursue, nurture or drop, and the lead records the choice.
@@ -1166,8 +1177,7 @@ playbooks:
1166
1177
  governance:
1167
1178
  forceProposeWrites: true
1168
1179
  executor: is-agent
1169
- grants:
1170
- - apify_run_actor
1180
+ tools: [update_entity, enrich_entity, apify_run_actor]
1171
1181
  status: active
1172
1182
 
1173
1183
  - name: Win a deal
@@ -1201,7 +1211,7 @@ playbooks:
1201
1211
  - { name: deal, type: entity, label: Deal, required: true }
1202
1212
  executor: is-agent
1203
1213
  status: active
1204
- requiredIntents: [enrich_entity, search_external, list_records]
1214
+ tools: [enrich_entity, search_external, list_records, send_message]
1205
1215
  expectedOutputs:
1206
1216
  - { kind: person, label: Decision maker, relationToSubject: linked_to_deal }
1207
1217
  - { kind: document, label: Proposal }
@@ -1337,7 +1347,7 @@ playbooks:
1337
1347
  - { name: pool, type: choice, label: Where to look, options: [public, network], defaultValue: public }
1338
1348
  executor: is-agent
1339
1349
  status: active
1340
- requiredIntents: [search_external]
1350
+ tools: [search_external]
1341
1351
  stages:
1342
1352
  - key: read
1343
1353
  name: Read the foundation
@@ -1427,7 +1437,7 @@ playbooks:
1427
1437
  - { name: rescoreAfterDays, type: number, label: Rescore leads scored more than this many days ago, defaultValue: 30 }
1428
1438
  executor: is-agent
1429
1439
  status: active
1430
- requiredIntents: [search_external]
1440
+ tools: [search_external]
1431
1441
  stages:
1432
1442
  - key: read
1433
1443
  name: Read the list
@@ -1505,7 +1515,7 @@ playbooks:
1505
1515
  them through the entity door with only their own fields, such as name,
1506
1516
  role and LinkedIn URL, never the company's website, domain or email),
1507
1517
  text = the message, and provider linkedin or email. Read their channel
1508
- first (synap_get_channel, mode person) for what was already said. The
1518
+ first (channel.resolve, then feed.read) for what was already said. The
1509
1519
  pod files it for a person to review in that channel; it goes out only
1510
1520
  once they approve it. Never call a tool's own send verb (Unipile,
1511
1521
  Gmail), never create an outreach touch, a note or a task holding the
@@ -1541,7 +1551,7 @@ playbooks:
1541
1551
  proposed message, so it is an outbound message in the channel), set
1542
1552
  its lead's lastContactedAt to the sent day, count the messages sent to
1543
1553
  the lead (the outbound messages in its channels, read with
1544
- synap_get_channel mode person: for a company lead, the channels of the
1554
+ channel.resolve and feed.read: for a company lead, the channels of the
1545
1555
  person written to there), and set the lead's next action: after the
1546
1556
  first message, nextAction "Follow up with <name> if no reply" and
1547
1557
  nextActionAt the sent day + 3 days; after the first follow-up,
@@ -1575,7 +1585,7 @@ playbooks:
1575
1585
  guidance:
1576
1586
  - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
1577
1587
  - { ref: "kind:outreach-angle", label: By kind of lead }
1578
- grants: [entity.create]
1588
+ tools: [messaging.send, channel.resolve, feed.read, linkedin_find_profile, linkedin_send_invite, entity.create]
1579
1589
  stages:
1580
1590
  - key: draft
1581
1591
  name: Draft the first message
@@ -1653,7 +1663,7 @@ playbooks:
1653
1663
  - { name: person, type: entity, label: Person, required: true }
1654
1664
  executor: is-agent
1655
1665
  status: active
1656
- requiredIntents: [enrich_entity]
1666
+ tools: [enrich_entity, unipile_list_accounts]
1657
1667
  stages:
1658
1668
  - key: find
1659
1669
  name: Find the profile
@@ -1750,8 +1760,7 @@ playbooks:
1750
1760
  - { name: audience, type: entity, label: Audience (ICP) the company came from }
1751
1761
  executor: is-agent
1752
1762
  status: active
1753
- requiredIntents: [find_people, enrich_entity]
1754
- grants: [entity.create]
1763
+ tools: [find_people, enrich_entity, web.read, unipile_list_accounts, entity.create]
1755
1764
  stages:
1756
1765
  - key: read
1757
1766
  name: Read the company and the roles
@@ -1824,7 +1833,7 @@ playbooks:
1824
1833
  description: Each weekday, read the channels of the leads in outreach; summarise a reply and propose the next step, or, when the follow-up is due with no reply, draft the next message in the angle of its outreach campaign as a proposed message for a person to approve; the agent never sends.
1825
1834
  goalTemplate: >-
1826
1835
  Follow up on the leads in outreach. For each, read its channels
1827
- (synap_get_channel, mode person: for a company lead, the channels of
1836
+ (channel.resolve and feed.read: for a company lead, the channels of
1828
1837
  the person who decides there) and its notes. A REPLY is an inbound
1829
1838
  message after our last outbound one in a channel. With a reply, draft
1830
1839
  nothing: summarise it for a person; when they show interest, propose
@@ -1852,7 +1861,7 @@ playbooks:
1852
1861
  with only their own fields, such as name, role and LinkedIn URL, never
1853
1862
  the company's website, domain or email), text = the message, and
1854
1863
  provider linkedin or email. Read their channel first
1855
- (synap_get_channel, mode person) for what was already said. The pod
1864
+ (channel.resolve, then feed.read) for what was already said. The pod
1856
1865
  files it for a person to review in that channel; it goes out only once
1857
1866
  they approve it. Never call a tool's own send verb (Unipile, Gmail),
1858
1867
  never create an outreach touch, a note or a task holding the message,
@@ -1885,7 +1894,7 @@ playbooks:
1885
1894
  approved its proposed message, so it is an outbound message in the
1886
1895
  channel), set its lead's lastContactedAt to the sent day, count the
1887
1896
  messages sent to the lead (the outbound messages in its channels, read
1888
- with synap_get_channel mode person: for a company lead, the channels of
1897
+ with channel.resolve and feed.read: for a company lead, the channels of
1889
1898
  the person written to there), and set the lead's next action: after
1890
1899
  the first message, nextAction "Follow up with <name> if no reply" and
1891
1900
  nextActionAt the sent day + 3 days; after the first follow-up,
@@ -1906,6 +1915,7 @@ playbooks:
1906
1915
  - { on: schedule, cron: "0 7 * * 1-5", status: outreach, mode: propose }
1907
1916
  - { on: manual, mode: propose }
1908
1917
  executor: is-agent
1918
+ tools: [messaging.send, channel.resolve, feed.read, linkedin_find_profile, linkedin_send_invite]
1909
1919
  status: active
1910
1920
  # The rules it writes by (design b199a3a4, backend#924): every run renders
1911
1921
  # the CURRENT, person-approved versions under "Rules this playbook
@@ -1982,7 +1992,7 @@ playbooks:
1982
1992
  is not in the pod, create them through the entity door with only their
1983
1993
  own fields, such as name, role and LinkedIn URL, never the company's
1984
1994
  website, domain or email), text = the message, and provider linkedin
1985
- or email. Read their channel first (synap_get_channel, mode person) for
1995
+ or email. Read their channel first (channel.resolve, then feed.read) for
1986
1996
  what was already said. The pod files it for a person to review in that
1987
1997
  channel; it goes out only once they approve it. Never call a tool's own
1988
1998
  send verb (Unipile, Gmail), never create an outreach touch, a note or a
@@ -2017,7 +2027,7 @@ playbooks:
2017
2027
  person approved its proposed message, so it is an outbound message in
2018
2028
  the channel), set its lead's lastContactedAt to the sent day, count
2019
2029
  the messages sent to the lead (the outbound messages in its channels,
2020
- read with synap_get_channel mode person: for a company lead, the
2030
+ read with channel.resolve and feed.read: for a company lead, the
2021
2031
  channels of the person written to there), and set the lead's next
2022
2032
  action: after the first message, nextAction "Follow up with <name> if
2023
2033
  no reply" and nextActionAt the sent day + 3 days; after the first
@@ -2054,8 +2064,7 @@ playbooks:
2054
2064
  guidance:
2055
2065
  - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
2056
2066
  - { ref: "kind:outreach-angle", label: By kind of lead }
2057
- requiredIntents: [find_people, enrich_entity]
2058
- grants: [entity.create]
2067
+ tools: [find_people, enrich_entity, messaging.send, channel.resolve, feed.read, linkedin_send_invite, entity.create]
2059
2068
  expectedOutputs:
2060
2069
  # Proposed messages on the members' channels (see "Draft a first message").
2061
2070
  - { kind: messaging, label: Proposed first messages, relationToSubject: none }
@@ -2151,6 +2160,7 @@ playbooks:
2151
2160
  params:
2152
2161
  - { name: touch, type: entity, label: Outreach message, required: true }
2153
2162
  executor: is-agent
2163
+ tools: [channel.resolve, feed.read]
2154
2164
  status: active
2155
2165
  stages:
2156
2166
  - key: wait
@@ -2222,7 +2232,7 @@ playbooks:
2222
2232
  - { name: formAnswers, type: text, label: What they wrote in the website form (empty for outbound), default: "" }
2223
2233
  executor: is-agent
2224
2234
  status: active
2225
- requiredIntents: [search_external]
2235
+ tools: [search_external]
2226
2236
  stages:
2227
2237
  - key: research
2228
2238
  name: Research
@@ -2272,7 +2282,8 @@ playbooks:
2272
2282
  # communication page or in the pod. A draft of something that already has a
2273
2283
  # current version is a NEW record that `revises` it, never an edit of it.
2274
2284
  # No subject and no activator: the person starts it, as "Propose a Health
2275
- # cell". grants entity.create: it creates the draft records.
2285
+ # cell". tools: entity.create creates the draft records; channel.resolve
2286
+ # and feed.read read the sent messages.
2276
2287
  - name: Propose my rules from my sent messages
2277
2288
  description: Propose the first rules your drafts follow, the voice (say, don't say) and what to lead with by kind of lead, from the rules your drafters held until now and the messages you sent; they stay drafts until you make them current.
2278
2289
  goalTemplate: >-
@@ -2281,7 +2292,7 @@ playbooks:
2281
2292
  (synap_get_entities profileSlug brand-voice-guide) and By kind of lead
2282
2293
  rows (profileSlug outreach-angle), the audiences and offers, and the
2283
2294
  messages already sent: for the leads with a lastContactedAt, newest
2284
- first, at most 20, their channels (synap_get_channel, mode person) and
2295
+ first, at most 20, their channels (channel.resolve, then feed.read) and
2285
2296
  the outbound messages they show. SEED: the drafters' rules until now,
2286
2297
  word for word: "Its message is personal: it cites the buying signal and
2287
2298
  what it showed, or a past exchange, never a generic template; short; in
@@ -2305,7 +2316,7 @@ playbooks:
2305
2316
  FINISH: list each draft with the messages it came from.
2306
2317
  executor: is-agent
2307
2318
  status: active
2308
- grants: [entity.create]
2319
+ tools: [channel.resolve, feed.read, entity.create]
2309
2320
  expectedOutputs:
2310
2321
  - { kind: brand-voice-guide, label: Draft outreach voice, relationToSubject: none }
2311
2322
  - { kind: outreach-angle, label: "Draft \"By kind of lead\" rows", relationToSubject: none }
@@ -370,10 +370,7 @@ playbooks:
370
370
  # competitor. Disabled by default so installing the workspace never silently
371
371
  # starts paid AI runs — the user turns it on when they want the watch.
372
372
  schedule: { cron: "0 9 * * 1", enabled: false }
373
- grants:
374
- - exa_search
375
- - apify_run_actor
376
- - entity.create
373
+ tools: [update_entity, exa_search, apify_run_actor, entity.create]
377
374
  status: active
378
375
 
379
376
  # A radar DISCOVERY run: the self-generating half. No subjectProfile → a single
@@ -401,9 +398,7 @@ playbooks:
401
398
  required: true,
402
399
  }
403
400
  executor: is-agent
404
- grants:
405
- - exa_search
406
- - entity.create
401
+ tools: [exa_search, entity.create]
407
402
  status: active
408
403
 
409
404
  # Exa powers the discovery radar (find companies we don't track yet); Apify
package/src/finance.yaml CHANGED
@@ -597,7 +597,7 @@ playbooks:
597
597
  - { name: invoice, type: entity, label: Invoice, required: true }
598
598
  executor: is-agent
599
599
  status: active
600
- requiredIntents: [fetch_record, list_records, send_message]
600
+ tools: [fetch_record, list_records, send_message]
601
601
  expectedOutputs:
602
602
  - { kind: document, label: Invoice sent to the client }
603
603
  stages:
@@ -680,7 +680,7 @@ playbooks:
680
680
  metadata:
681
681
  governance:
682
682
  forceProposeWrites: true
683
- requiredIntents: [list_records]
683
+ tools: [create_entity, create_relation, list_records]
684
684
  expectedOutputs:
685
685
  - { kind: invoice, label: This month's invoice, relationToSubject: relates_to }
686
686
 
@@ -733,9 +733,12 @@ playbooks:
733
733
  description: Once a month, reconcile the accounts, chase what is owed, and record runway, burn and revenue for a person to review.
734
734
  goalTemplate: >-
735
735
  Close the month. RECONCILE: compare each account's balance with the bank
736
- or payment provider and list every difference; when an account has no
737
- bank or payment-provider connection, ask the person to `provide` it (a
738
- connection, never a password in a form). RECEIVABLES: list unpaid
736
+ or payment provider and list every difference, and every account with
737
+ no bank or payment-provider connection. Stop there: the pod asks the
738
+ person whether to go on or to connect those accounts first (a
739
+ connection, never a password in a form) and wakes you with their
740
+ answer; when they connected them, reconcile those accounts again.
741
+ RECEIVABLES: list unpaid
739
742
  and overdue invoices and propose a reminder for each overdue one.
740
743
  PAYABLES: list expenses still pending or approved but unpaid. METRICS:
741
744
  record this month's cash in bank, net burn, runway in months and monthly
@@ -746,7 +749,7 @@ playbooks:
746
749
  executor: is-agent
747
750
  status: active
748
751
  schedule: { cron: "0 9 1 * *", enabled: false, mode: appointment }
749
- requiredIntents: [fetch_record, list_records]
752
+ tools: [fetch_record, list_records]
750
753
  expectedOutputs:
751
754
  - { kind: financial-metric, label: Month-end metrics, relationToSubject: none }
752
755
  - { kind: document, label: Month-end note, relationToSubject: none }
@@ -754,11 +757,23 @@ playbooks:
754
757
  - key: reconcile
755
758
  name: Reconcile
756
759
  category: started
757
- goal: Compare every account with the bank or payment provider and list differences.
760
+ goal: Compare every account with the bank or payment provider and list differences, and every account with no connection.
758
761
  criteria:
759
762
  - key: accounts-reconciled
760
763
  statement: Every active account has a balance compared with its source, and every difference is listed.
761
764
  check: { kind: judge }
765
+ # Raised by the pod when the turn ends this stage (plan 08e4fba7
766
+ # decision 5): a run has no ask tool. The answer wakes the run at
767
+ # Receivables.
768
+ endAsk:
769
+ label: Unconnected accounts
770
+ why: The reconciliation above lists every difference and every account with no bank or payment-provider connection.
771
+ unblocks: The run goes on with the close
772
+ ask:
773
+ mode: choose
774
+ options:
775
+ - { label: Go on with the close, value: continue, recommended: true, description: Unconnected accounts stay listed in the month-end note }
776
+ - { label: "I connected them: reconcile again", value: reconcile_again, description: The run reconciles the newly connected accounts first }
762
777
  - key: receivables
763
778
  name: Receivables
764
779
  category: started
@@ -408,7 +408,7 @@ playbooks:
408
408
  - { name: campaign, type: entity, label: Campaign, required: true }
409
409
  executor: is-agent
410
410
  status: active
411
- requiredIntents: [publish_post, send_message, list_records]
411
+ tools: [publish_post, send_message, list_records]
412
412
  expectedOutputs:
413
413
  - { kind: post, label: Campaign pieces, relationToSubject: relates_to }
414
414
  - { kind: person, label: Leads from the campaign, relationToSubject: relates_to }
@@ -214,11 +214,7 @@ playbooks:
214
214
  defaultValue: "a summary note, action-item tasks, and updated attendee records",
215
215
  }
216
216
  executor: is-agent
217
- grants:
218
- - fireflies_import_last_meeting
219
- - fireflies_search
220
- - calendar_list
221
- - entity.create
217
+ tools: [update_entity, resolve_identity, fireflies_import_last_meeting, fireflies_search, calendar_list, entity.create]
222
218
  status: active
223
219
 
224
220
  # Transcript import via Fireflies, calendar/attendee context via Google
@@ -936,8 +936,8 @@ playbooks:
936
936
  contract only when none is linked.
937
937
  START: a person confirms the contract is signed and the work may start.
938
938
  DELIVER: track every deliverable to accepted (or cancelled by a person),
939
- post a short weekly status in this session's room, and flag any
940
- deliverable past its due date.
939
+ flag any deliverable past its due date, and end with your answer: a
940
+ short status of what moved and what is late.
941
941
  CLOSE: once every deliverable is accepted or cancelled, write the closing review
942
942
  (what was delivered, what slipped, what the client said), create the
943
943
  closing invoice in Finance at the draft status for the engagement value
@@ -954,7 +954,7 @@ playbooks:
954
954
  - { name: engagement, type: entity, label: Engagement, required: true }
955
955
  executor: is-agent
956
956
  status: active
957
- requiredIntents: [list_records, send_message]
957
+ tools: [list_records, send_message]
958
958
  expectedOutputs:
959
959
  - { kind: deliverable, label: Deliverables, relationToSubject: relates_to }
960
960
  - { kind: contract, label: Contract, relationToSubject: contract_for_engagement }
@@ -988,14 +988,14 @@ playbooks:
988
988
  - key: deliver
989
989
  name: Deliver
990
990
  category: started
991
- goal: Track every deliverable to accepted or cancelled and post a weekly status in the room.
991
+ goal: Track every deliverable to accepted or cancelled, and end with a short status of what moved and what is late as your answer.
992
992
  indefinite: true
993
993
  criteria:
994
994
  - key: deliver-all-accepted
995
995
  statement: Every deliverable of the engagement is accepted or cancelled.
996
996
  check: { kind: judge }
997
997
  - key: deliver-weekly-status
998
- statement: A status was posted in the room for every week the engagement was active.
998
+ statement: Each turn of this stage ended with a short status of what moved and what is late.
999
999
  check: { kind: judge }
1000
1000
  - key: close
1001
1001
  name: Close
@@ -1096,8 +1096,9 @@ playbooks:
1096
1096
  DRAFT: fill the contract from the engagement's scope, value, dates and
1097
1097
  the agency's standard terms, and list every term that differs from the
1098
1098
  standard. SEND: a person approves the contract before it goes to the
1099
- client. SIGNED: ask the person to `provide` the signed file; their
1100
- approval confirms both sides signed. ACTIVE: set the start and end dates and link the signed
1099
+ client; once it went, the pod asks the person for the signed file and
1100
+ wakes you with it. SIGNED: link the signed file on the contract; the
1101
+ person's approval confirms both sides signed. ACTIVE: set the start and end dates and link the signed
1101
1102
  document. Expiry and termination are a person's call.
1102
1103
  subjectProfile:
1103
1104
  profileSlug: contract
@@ -1129,11 +1130,20 @@ playbooks:
1129
1130
  goal: A person approves the contract before it goes to the client.
1130
1131
  gate: { kind: human }
1131
1132
  onFail: { toStage: draft }
1133
+ # Raised by the pod when a turn ends this stage (plan 08e4fba7
1134
+ # decision 5): a run has no ask tool. The file wakes the run at Signed.
1135
+ endAsk:
1136
+ label: Signed contract file
1137
+ why: The contract went to the client for signature.
1138
+ unblocks: The run links the signed file on the contract
1139
+ ask:
1140
+ mode: provide
1141
+ provide: { kind: file, accept: [".pdf", "image/*"] }
1132
1142
  - key: signed
1133
1143
  name: Signed
1134
1144
  category: started
1135
1145
  subjectStatus: signed
1136
- goal: Ask the person to provide the signed file; their approval confirms both sides signed.
1146
+ goal: Link the signed file the person provided on the contract; their approval confirms both sides signed.
1137
1147
  gate: { kind: human }
1138
1148
  onFail: { toStage: send }
1139
1149
  - key: active
@@ -85,9 +85,9 @@ describe("Postiz contract — the keys the webhook and the capability share", ()
85
85
 
86
86
  it("Produce Content requires publish_post and queues at Scheduled", () => {
87
87
  const pb = (contentOs?.playbooks ?? []).find((p: { name?: string }) => p.name === "Produce Content") as
88
- | { requiredIntents?: string[]; stages?: Array<{ key: string; subjectStatus?: string; goal?: string }> }
88
+ | { tools?: string[]; stages?: Array<{ key: string; subjectStatus?: string; goal?: string }> }
89
89
  | undefined;
90
- expect(pb?.requiredIntents).toContain("publish_post");
90
+ expect(pb?.tools).toContain("publish_post");
91
91
  const schedule = pb?.stages?.find((s) => s.key === "schedule");
92
92
  expect(schedule?.subjectStatus).toBe("Scheduled");
93
93
  expect(schedule?.goal).toContain("postiz_schedule_post");
@@ -435,14 +435,8 @@ playbooks:
435
435
  params:
436
436
  - { name: question, type: entity, label: Question, required: true }
437
437
  executor: is-agent
438
- grants:
439
- - source-triage
440
- - evidence-synthesis
441
- - concept-cartography
442
- - exa_search
443
- - entity.create
438
+ tools: [search_external, source-triage, evidence-synthesis, concept-cartography, exa_search, entity.create]
444
439
  status: active
445
- requiredIntents: [search_external]
446
440
  expectedOutputs:
447
441
  - { kind: research, label: Research record, relationToSubject: investigates }
448
442
  - { kind: hypothesis, label: Candidate answers, relationToSubject: answers }
@@ -500,6 +494,7 @@ playbooks:
500
494
  params:
501
495
  - { name: finding, type: entity, label: Finding, required: true }
502
496
  executor: is-agent
497
+ tools: [create_entity, create_relation]
503
498
  status: active
504
499
  expectedOutputs:
505
500
  - { kind: post, label: Post idea, relationToSubject: derived_from }
@@ -167,11 +167,7 @@ playbooks:
167
167
  params:
168
168
  - { name: question, type: entity, label: Question, required: true }
169
169
  executor: is-agent
170
- grants:
171
- - ibis-decision-analysis
172
- - source-triage
173
- - exa_search
174
- - entity.create
170
+ tools: [create_relation, ibis-decision-analysis, source-triage, exa_search, entity.create]
175
171
  status: active
176
172
  expectedOutputs:
177
173
  - { kind: decision, label: Recommended decision, relationToSubject: resolves }