@synap-core/workspace-templates 0.36.0 → 0.38.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
@@ -700,6 +700,92 @@ profiles:
700
700
  valueType: string
701
701
  inputType: textarea
702
702
 
703
+ # ── Outreach angle: one row of "By kind of lead" (design b199a3a4, 8 Nov 2026) ─
704
+ # What to lead with, depending on the lead: IF the lead is X (a condition in
705
+ # words, optionally an audience it was found for and an offer it is about),
706
+ # lead with an angle, put an offer forward, show a proof, avoid something,
707
+ # in a tone, on a channel. The rows are ORDERED (`order`): the drafters take
708
+ # the first row whose condition fits the lead, else the last one, so the
709
+ # catch-all row ("Anything else") carries the highest order.
710
+ # A RULE, not an output: the CRM drafters ("Draft a first message", "Follow
711
+ # up on leads in outreach", "Personalized Outreach") declare
712
+ # `guidance: kind:outreach-angle`, and every run renders the CURRENT rows into
713
+ # the AI's instructions (backend#924: only rows whose status category is
714
+ # done render). So `current` is a person's call (trust (a)): an agent writes
715
+ # a draft, a person makes it current. A new version of a row is a new row in
716
+ # draft that `revises` the current one (entityLinks below); making it current
717
+ # and retiring the old one is the person's act, and the retired chain is the
718
+ # row's history. The fields render in this order; `order` and the status do
719
+ # not. The CRM's Brand & communication page reads and writes these rows.
720
+ - slug: outreach-angle
721
+ displayName: Outreach angle
722
+ icon: compass
723
+ color: violet
724
+ description: "One row of \"By kind of lead\": if the lead is X, lead with this angle, offer, proof, tone and channel. The first row that fits the lead wins; a person makes a row current."
725
+ # The ONE lifecycle (work model L1): every option's category.
726
+ lifecycle:
727
+ property: angle-status
728
+ options:
729
+ - { key: draft, category: open }
730
+ - { key: current, category: done, humanOnly: true }
731
+ - { key: retired, category: lost, humanOnly: true }
732
+ properties:
733
+ - slug: angle-status
734
+ label: Status
735
+ valueType: string
736
+ inputType: select
737
+ enumValues: [draft, current, retired]
738
+ constraints: { defaultValue: draft }
739
+ # The match: the condition in words, plus the audience it was found for
740
+ # and the offer it is about, when they apply.
741
+ - slug: angle-if
742
+ label: If the lead
743
+ valueType: string
744
+ inputType: textarea
745
+ placeholder: e.g. Posted a small automation project on Codeur or Malt
746
+ - slug: angle-audience
747
+ label: Audience
748
+ valueType: entity_id
749
+ targetProfileSlug: audience
750
+ inputType: entity_select
751
+ - slug: angle-about-offer
752
+ label: About the offer
753
+ valueType: entity_id
754
+ targetProfileSlug: offer
755
+ inputType: entity_select
756
+ - slug: angle-lead-with
757
+ label: Lead with
758
+ valueType: string
759
+ inputType: textarea
760
+ - slug: angle-offer
761
+ label: Offer
762
+ valueType: string
763
+ inputType: textarea
764
+ placeholder: e.g. Fixed small set-up, tool costs listed apart
765
+ - slug: angle-proof
766
+ label: Proof
767
+ valueType: string
768
+ inputType: textarea
769
+ - slug: angle-avoid
770
+ label: Avoid
771
+ valueType: string
772
+ inputType: textarea
773
+ - slug: angle-tone
774
+ label: Tone
775
+ valueType: string
776
+ inputType: text
777
+ - slug: angle-channel
778
+ label: Channel
779
+ valueType: string
780
+ inputType: text
781
+ placeholder: e.g. LinkedIn, else email
782
+ # The row's place: the first row that fits wins (the pod's renderer
783
+ # sorts by the property named exactly `order`).
784
+ - slug: order
785
+ label: Order
786
+ valueType: number
787
+ inputType: number
788
+
703
789
  # `linked_to_deal` is the GENERIC counterparty edge and stays the SSOT for "who
704
790
  # is on this deal" — the handoff flow's `find-party` node reads exactly it and
705
791
  # requires exactly one match, so nothing below may replace it.
@@ -789,6 +875,12 @@ entityLinks:
789
875
  targetProfileSlug: audience
790
876
  type: targets
791
877
  label: Targets
878
+ # A new version of a "By kind of lead" row is a draft that `revises` the
879
+ # current one (design b199a3a4): the retired chain is the row's history.
880
+ - sourceProfileSlug: outreach-angle
881
+ targetProfileSlug: outreach-angle
882
+ type: revises
883
+ label: Revises
792
884
 
793
885
  # Views folded from Outreach & Comms (2026-10-23). The CRM's own surface is the
794
886
  # website (layout.primarySurface); these are the workbench lenses on the same
@@ -1440,11 +1532,11 @@ playbooks:
1440
1532
  them; ignored, draft by email instead when they have an email address.
1441
1533
  While the draft waits for them to connect, set the lead's nextAction to
1442
1534
  "Wait for <name> to accept the LinkedIn request" and its nextActionAt 7
1443
- days later. An email message needs none of this. Its message
1444
- is personal: it cites the buying signal and what it showed, or a past
1445
- exchange, never a generic template; short; in the person's language,
1446
- French by default, and in French it says vous. It offers one useful
1447
- next step, never pressure. Draft one message only: a person reviews
1535
+ days later. An email message needs none of this.
1536
+ RULES: follow the rules this process follows, in order: Voice, then By
1537
+ kind of lead (the first row that fits the lead; a given campaign's angle
1538
+ comes first). A rule shown as not available is left out: say so. Draft
1539
+ one message only: a person reviews
1448
1540
  it in the channel, edits it if needed and approves it. NEXT ACTION:
1449
1541
  set the lead's nextAction to "Send the first message to <name> on
1450
1542
  LinkedIn" ("Send the first message to <name> by email" on email),
@@ -1479,6 +1571,16 @@ playbooks:
1479
1571
  - { name: channel, type: choice, label: Channel, options: [linkedin, email], defaultValue: linkedin }
1480
1572
  executor: is-agent
1481
1573
  status: active
1574
+ # The rules it writes by (design b199a3a4, backend#924): every run renders
1575
+ # the CURRENT, person-approved versions under "Rules this playbook
1576
+ # follows", in this order. The style lines this goal held (personal, cites
1577
+ # the signal, short, the person's language, French with vous, one useful
1578
+ # next step, never pressure) seed the Voice now, through "Propose my rules
1579
+ # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
1580
+ # process. Foundation's positioning joins once its kind has a lifecycle.
1581
+ guidance:
1582
+ - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
1583
+ - { ref: "kind:outreach-angle", label: By kind of lead }
1482
1584
  grants: [entity.create]
1483
1585
  stages:
1484
1586
  - key: draft
@@ -1499,8 +1601,10 @@ playbooks:
1499
1601
  - key: first-message-no-capture
1500
1602
  statement: No tool's own send verb was called, no outreach touch, note or task holds the message, no record was made with synap_capture, and a decider created for a company lead carries only the person's own fields, never the company's website, domain or email.
1501
1603
  check: { kind: judge }
1502
- - key: first-message-personal
1503
- statement: The message cites the lead's buying signal or a past exchange, is in the person's language (French by default, with vous), and is not a generic template.
1604
+ # The style it is judged by is the rules it follows (guidance), not
1605
+ # lines of this goal (design b199a3a4).
1606
+ - key: first-message-rules
1607
+ statement: The message follows the rules this process follows, as its instructions showed them (the approved Voice, then the first By kind of lead row that fits the lead, or the campaign's angle when one was given).
1504
1608
  check: { kind: judge }
1505
1609
  - key: first-message-not-rescored
1506
1610
  statement: The lead's icpScore, buyingSignal and scoredAt are unchanged, and its stage was not moved.
@@ -1519,37 +1623,40 @@ playbooks:
1519
1623
  # CRM Messages contract (decision b603d75e, build map ca310f27): the first of
1520
1624
  # the steps a LinkedIn lead walks (Find their LinkedIn, Ask to connect,
1521
1625
  # Waiting, Send). The CRM app runs linkedin_find_profile itself through the
1522
- # actions door (enrich_entity, input { name, company }; founder 7 Nov 2026:
1626
+ # actions door (enrich_entity, input { name, company? }; founder 7 Nov 2026:
1523
1627
  # "no need for ai" for a tool with a parameter), and offers this process
1524
1628
  # only as "Ask Synap AI to search" when the lookup finds nothing, for one
1525
- # lead (`params.lead`, as "Draft a first message"). On a strict match
1526
- # it PROPOSES linkedinUrl and linkedinProviderId on the person; on none or
1527
- # several it hands the person up to 3 candidates. The reach fields stay the
1629
+ # person (`params.person`: a contact of a company lead is looked up as
1630
+ # themselves, no lead role needed). On a strict match it PROPOSES
1631
+ # linkedinUrl and linkedinProviderId on the person; on none, several or a
1632
+ # name-only search it hands the person up to 5 candidates. The reach fields stay the
1528
1633
  # pod's (backend#786). A lifecycle READER of leadStage: no stage moves.
1529
1634
  - name: Find their LinkedIn
1530
- description: Find one lead's LinkedIn profile by their full name and company and propose its URL and member id on the person for a person to approve, or offer up to 3 candidates to choose from; nothing is sent.
1635
+ description: Find one person's LinkedIn profile by their full name and, when known, their company, and propose its URL and member id on the person for a person to approve, or offer up to 5 candidates to choose from; nothing is sent. The person need not be a lead.
1531
1636
  goalTemplate: >-
1532
- Find the LinkedIn profile of the lead {lead}. WHO: a person lead is
1533
- looked up themselves; for a company lead, the person who decides there,
1534
- from the pod; when no decider is known, ask the person who it is. When
1535
- that person already has a linkedinUrl, say so and stop. FIND: run
1536
- linkedin_find_profile with their full name, their company and the
1537
- LinkedIn account unipile_list_accounts lists (when several are
1538
- connected, ask the person which one reads). On a match, propose its
1539
- linkedinUrl and linkedinProviderId on the person through the entity
1540
- door, for a person to approve; never write them directly, and never set
1541
- linkedinConnection or linkedinInvitedAt, which only the pod writes. On
1542
- none, several or more results than it read, ask the person to choose
1543
- among its candidates (at most 3, each with its name, headline and
1544
- profile URL) or to give the URL themselves, then propose the one chosen
1545
- the same way. Never send a message or a connection request, never draft
1546
- one, and never move the lead's stage.
1637
+ Find the LinkedIn profile of {person}. WHO: the person themselves,
1638
+ whether or not they are a lead (a contact of a company lead is looked up
1639
+ as themselves). When they already have a linkedinUrl, say so and stop.
1640
+ COMPANY: use where they work when it is known (their own company field,
1641
+ else the company they work at); when none is known, search by their name
1642
+ alone. FIND: run linkedin_find_profile with their full name, their
1643
+ company when known, and the LinkedIn account unipile_list_accounts lists
1644
+ (when several are connected, ask the person which one reads). On a
1645
+ strict match, propose its linkedinUrl and linkedinProviderId on the
1646
+ person through the entity door, for a person to approve; never write
1647
+ them directly, and never set linkedinConnection or linkedinInvitedAt,
1648
+ which only the pod writes. On none, several, more results than it read,
1649
+ or a name-only search, ask the person to choose among its candidates (at
1650
+ most 5, each with its name, headline, location and profile URL) or to
1651
+ give the URL themselves, then propose the one chosen the same way. Never
1652
+ send a message or a connection request, never draft one, and never move
1653
+ a lead's stage.
1547
1654
  subjectProfile:
1548
- profileSlug: lead
1655
+ profileSlug: person
1549
1656
  activators:
1550
1657
  - { on: manual, mode: propose }
1551
1658
  params:
1552
- - { name: lead, type: entity, label: Lead, required: true }
1659
+ - { name: person, type: entity, label: Person, required: true }
1553
1660
  executor: is-agent
1554
1661
  status: active
1555
1662
  requiredIntents: [enrich_entity]
@@ -1557,13 +1664,13 @@ playbooks:
1557
1664
  - key: find
1558
1665
  name: Find the profile
1559
1666
  category: started
1560
- goal: Run linkedin_find_profile for the lead (a company lead's decider) with their full name and company; on a match propose linkedinUrl and linkedinProviderId on the person, otherwise ask the person to choose among up to 3 candidates or give the URL.
1667
+ goal: Run linkedin_find_profile for the person with their full name and company when known; on a strict match propose linkedinUrl and linkedinProviderId on the person, otherwise ask the person to choose among up to 5 candidates or give the URL.
1561
1668
  criteria:
1562
1669
  - key: find-linkedin-proposed
1563
- statement: The person's linkedinUrl and linkedinProviderId are proposed on them for a person to approve (a strict match, or the candidate the person chose), or the person was asked to choose among at most 3 candidates; nothing was written directly.
1670
+ statement: The person's linkedinUrl and linkedinProviderId are proposed on them for a person to approve (a strict match, or the candidate the person chose), or the person was asked to choose among at most 5 candidates; nothing was written directly.
1564
1671
  check: { kind: judge }
1565
1672
  - key: find-linkedin-reader-only
1566
- statement: No message or connection request was sent or drafted, linkedinConnection and linkedinInvitedAt were not set, and the lead's stage was not moved.
1673
+ statement: No message or connection request was sent or drafted, linkedinConnection and linkedinInvitedAt were not set, and no lead's stage was moved.
1567
1674
  check: { kind: judge }
1568
1675
  - key: confirm
1569
1676
  name: Person confirms
@@ -1737,10 +1844,10 @@ playbooks:
1737
1844
  only when the lead's next action date is today or past and no
1738
1845
  proposed message to it is still waiting, draft the next message, to
1739
1846
  the lead (for a company, the person who decides there) and in the
1740
- angle of the lead's outreach campaign: follow its value proposition
1741
- and call to action, short and in the lead's language, offering the
1742
- next useful step, never pressure. For a lead with no campaign, ask the
1743
- person which one. Draft at most two follow-ups per lead: a lead
1847
+ angle of the lead's outreach campaign: follow its value proposition and
1848
+ call to action. With no campaign and no By kind of lead row that fits,
1849
+ ask the person which campaign. Draft at most two follow-ups per lead: a
1850
+ lead
1744
1851
  already sent two follow-ups gets no draft, never a third follow-up;
1745
1852
  when its last date passes in silence, propose moving it to nurturing
1746
1853
  through the status door, with its expected status. DRAFT RULES: each
@@ -1772,8 +1879,12 @@ playbooks:
1772
1879
  them; ignored, draft by email instead when they have an email address.
1773
1880
  While the draft waits for them to connect, set the lead's nextAction to
1774
1881
  "Wait for <name> to accept the LinkedIn request" and its nextActionAt 7
1775
- days later. An email message needs none of this. For each draft, set
1776
- the lead's `nextAction` to send it (e.g. "Send the drafted message to
1882
+ days later. An email message needs none of this.
1883
+ RULES: follow the rules this process follows, in order: Voice, then By
1884
+ kind of lead (the first row that fits the lead; a given campaign's angle
1885
+ comes first). A rule shown as not available is left out: say so. For
1886
+ each draft, set the
1887
+ lead's `nextAction` to send it (e.g. "Send the drafted message to
1777
1888
  Ana on LinkedIn") and `nextActionAt` to today. The person reviews each
1778
1889
  proposed message in its channel, edits it if needed and approves it;
1779
1890
  the agent never sends. CADENCE: when a message is sent (a person
@@ -1802,6 +1913,16 @@ playbooks:
1802
1913
  - { on: manual, mode: propose }
1803
1914
  executor: is-agent
1804
1915
  status: active
1916
+ # The rules it writes by (design b199a3a4, backend#924): every run renders
1917
+ # the CURRENT, person-approved versions under "Rules this playbook
1918
+ # follows", in this order. The style lines this goal held (personal, cites
1919
+ # the signal, short, the person's language, French with vous, one useful
1920
+ # next step, never pressure) seed the Voice now, through "Propose my rules
1921
+ # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
1922
+ # process. Foundation's positioning joins once its kind has a lifecycle.
1923
+ guidance:
1924
+ - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
1925
+ - { ref: "kind:outreach-angle", label: By kind of lead }
1805
1926
  expectedOutputs:
1806
1927
  # Proposed messages on the people's channels (see "Draft a first message").
1807
1928
  - { kind: messaging, label: Proposed follow-ups, relationToSubject: none }
@@ -1815,7 +1936,7 @@ playbooks:
1815
1936
  statement: Each draft reflects what was already sent to that lead and any reply, read from its channels.
1816
1937
  check: { kind: judge }
1817
1938
  - key: followup-angle
1818
- statement: Each draft follows the angle of the lead's outreach campaign and its call to action.
1939
+ statement: Each draft follows the angle of the lead's outreach campaign and its call to action, or, with no campaign, the first By kind of lead row that fits the lead, and the approved Voice.
1819
1940
  check: { kind: judge }
1820
1941
  - key: followup-no-draft-after-reply
1821
1942
  statement: No message is drafted for a lead who replied (its reply is summarised and a next step proposed, no deal opened), nor a third follow-up for a lead already sent two.
@@ -1854,13 +1975,13 @@ playbooks:
1854
1975
  goalTemplate: >-
1855
1976
  Run this outreach campaign ({campaign}) on {channel}; each stage moves
1856
1977
  its status. If its type is not outreach, stop and say so. PREPARE: write
1857
- the target audience, the value proposition and the call to action. Pick
1978
+ the target audience, the value proposition and the call to action (from
1979
+ the By kind of lead row that fits the audience, when one does). Pick
1858
1980
  the people to reach from the pod (and public sources when the pod has
1859
1981
  too few), resolving each one before creating anything, link each as a
1860
1982
  member of the campaign with the lead role (lead source cold-outreach
1861
1983
  when it has none), and for each draft one first message to that person
1862
- in this campaign's angle, specific to them — their company, role and
1863
- any past message — never a generic template. DRAFT RULES: each draft is
1984
+ in this campaign's angle. DRAFT RULES: each draft is
1864
1985
  one proposed message in the channel of the person it is written to,
1865
1986
  filed through the pod's send door: run messaging.send with to = that
1866
1987
  person's entity id (for a company lead, its decider: when that person
@@ -1889,7 +2010,11 @@ playbooks:
1889
2010
  them; ignored, draft by email instead when they have an email address.
1890
2011
  While the draft waits for them to connect, set the lead's nextAction to
1891
2012
  "Wait for <name> to accept the LinkedIn request" and its nextActionAt 7
1892
- days later. An email message needs none of this. START: a person approves the audience, the offer and
2013
+ days later. An email message needs none of this.
2014
+ RULES: follow the rules this process follows, in order: Voice, then By
2015
+ kind of lead (the first row that fits the lead; a given campaign's angle
2016
+ comes first). A rule shown as not available is left out: say so. START:
2017
+ a person approves the audience, the offer and
1893
2018
  the list,
1894
2019
  then reviews each proposed message in its channel and approves it;
1895
2020
  nothing goes out before they approve it, and the agent never sends.
@@ -1925,6 +2050,16 @@ playbooks:
1925
2050
  - { name: channel, type: choice, label: Channel, options: [linkedin, email], defaultValue: linkedin }
1926
2051
  executor: is-agent
1927
2052
  status: active
2053
+ # The rules it writes by (design b199a3a4, backend#924): every run renders
2054
+ # the CURRENT, person-approved versions under "Rules this playbook
2055
+ # follows", in this order. The style lines this goal held (personal, cites
2056
+ # the signal, short, the person's language, French with vous, one useful
2057
+ # next step, never pressure) seed the Voice now, through "Propose my rules
2058
+ # from my sent messages"; DRAFT RULES and CADENCE stay here: they are
2059
+ # process. Foundation's positioning joins once its kind has a lifecycle.
2060
+ guidance:
2061
+ - { ref: "kind:brand-voice-guide", label: Voice, where: { voice-context: [general, outreach] } }
2062
+ - { ref: "kind:outreach-angle", label: By kind of lead }
1928
2063
  requiredIntents: [find_people, enrich_entity]
1929
2064
  grants: [entity.create]
1930
2065
  expectedOutputs:
@@ -1940,8 +2075,8 @@ playbooks:
1940
2075
  - key: outreach-offer
1941
2076
  statement: The target audience, value proposition and call to action are written on the campaign.
1942
2077
  check: { kind: judge }
1943
- - key: outreach-personal
1944
- statement: Every drafted message names something specific to its person.
2078
+ - key: outreach-rules
2079
+ statement: Every drafted message follows the rules this process follows, as its instructions showed them (the approved Voice, in this campaign's angle).
1945
2080
  check: { kind: judge }
1946
2081
  - key: start
1947
2082
  name: Person approves the list
@@ -2132,6 +2267,76 @@ playbooks:
2132
2267
  statement: The lead records the date and the channel the estimate was sent on.
2133
2268
  check: { kind: judge }
2134
2269
 
2270
+ # ── Propose my rules from my sent messages — the first rules ────────────
2271
+ # Design b199a3a4 Question 1, slice 2 (8 Nov 2026). The drafters write by
2272
+ # their `guidance` (Voice, By kind of lead) and no longer carry style lines
2273
+ # in their goals. This process seeds those rules as DRAFTS: from the lines
2274
+ # the drafters' goals held until now (quoted below, word for word the seed)
2275
+ # and from the messages the person actually sent. It writes drafts only,
2276
+ # never a current version: `approved` (voice) and `current` (angle) are
2277
+ # humanOnly, so a person makes each one current, on the CRM's Brand &
2278
+ # communication page or in the pod. A draft of something that already has a
2279
+ # current version is a NEW record that `revises` it, never an edit of it.
2280
+ # No subject and no activator: the person starts it, as "Propose a Health
2281
+ # cell". grants entity.create: it creates the draft records.
2282
+ - name: Propose my rules from my sent messages
2283
+ 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.
2284
+ goalTemplate: >-
2285
+ Propose the rules the CRM drafters write by, as drafts for a person to
2286
+ make current. READ: the current and draft voice guides
2287
+ (synap_get_entities profileSlug brand-voice-guide) and By kind of lead
2288
+ rows (profileSlug outreach-angle), the audiences and offers, and the
2289
+ messages already sent: for the leads with a lastContactedAt, newest
2290
+ first, at most 20, their channels (synap_get_channel, mode person) and
2291
+ the outbound messages they show. SEED: the drafters' rules until now,
2292
+ word for word: "Its message is personal: it cites the buying signal and
2293
+ what it showed, or a past exchange, never a generic template; short; in
2294
+ the person's language, French by default, and in French it says vous.
2295
+ It offers one useful next step, never pressure." VOICE: one voice
2296
+ guide, context outreach, status draft, in the Brand Library space: its
2297
+ Do lines (what to say) and Don't lines (what never to say), one per
2298
+ line, start from the seed and add only what at least two sent messages
2299
+ show; Source IDs lists the messages' channel or entity ids. BY KIND OF
2300
+ LEAD: one row per kind of lead the sent messages show, status draft:
2301
+ If the lead (the condition in words), its audience and offer when one
2302
+ fits, Lead with, Offer, Proof, Avoid, Tone, Channel and an order, the
2303
+ most specific first; end with an "Anything else" row with the highest
2304
+ order. Never invent a proof: leave it empty and say so. When a current
2305
+ version exists, the draft is a new record that revises it (a revises
2306
+ edge to it) and says what changed; never edit or retire a current one.
2307
+ DRAFTS ONLY: never set a voice guide to approved or deprecated, nor a
2308
+ row to current or retired; a person does, on the Brand and
2309
+ communication page. With fewer than three sent messages, propose the
2310
+ voice from the seed alone and one "Anything else" row, and say so.
2311
+ FINISH: list each draft with the messages it came from.
2312
+ executor: is-agent
2313
+ status: active
2314
+ grants: [entity.create]
2315
+ expectedOutputs:
2316
+ - { kind: brand-voice-guide, label: Draft outreach voice, relationToSubject: none }
2317
+ - { kind: outreach-angle, label: "Draft \"By kind of lead\" rows", relationToSubject: none }
2318
+ stages:
2319
+ - key: draft
2320
+ name: Propose the drafts
2321
+ category: started
2322
+ goal: Read the current rules, the audiences and offers and the sent messages; write one draft outreach voice guide from the seed and the messages, and one draft By kind of lead row per kind of lead, ending with an "Anything else" row.
2323
+ criteria:
2324
+ - key: rules-drafts-only
2325
+ statement: Every voice guide and By kind of lead row this run wrote is a draft (voice status draft, angle status draft), and no approved voice guide or current row was edited, approved or retired.
2326
+ check: { kind: judge }
2327
+ - key: rules-seeded
2328
+ statement: The draft voice holds the seed lines (cite the signal or a past exchange, never a generic template, short, the person's language, French by default with vous, one useful next step, never pressure) as Do and Don't lines, plus only what at least two sent messages show.
2329
+ check: { kind: judge }
2330
+ - key: rules-rows-sourced
2331
+ statement: Each By kind of lead row names the sent messages it came from, has an order, and the last one is an "Anything else" row; no proof is invented.
2332
+ check: { kind: judge }
2333
+ - key: review
2334
+ name: Person makes them current
2335
+ category: completed
2336
+ goal: The person reads the drafts, edits them if needed and makes each one current (a voice guide approved, a row current) on the Brand and communication page or in the pod, or drops it.
2337
+ gate: { kind: human }
2338
+ onFail: { toStage: draft }
2339
+
2135
2340
  # ── Propose a Health cell — one tile of the Health view ─────────────────
2136
2341
  # Design b199a3a4 Question 2, slice 5. The person asks a question of their
2137
2342
  # sales ("reply rate by audience, weekly"); the AI writes ONE HTML cell that
@@ -161,10 +161,13 @@ describe("lifecycle declarations — coverage (derived from the playbooks)", ()
161
161
  * this ledger makes any change to one a deliberate, reviewed edit. Founder
162
162
  * decisions among them: ui-design.approved (design review, DESIGN-DEV-XP-PLAN
163
163
  * P6, 2026-10-12), outreach-touch.sent (a person sends, 2026-10-20),
164
- * devplane_feature.cancelled / devplane_story.dropped (homes, 2026-10-13).
164
+ * devplane_feature.cancelled / devplane_story.dropped (homes, 2026-10-13),
165
+ * brand-voice-guide.approved and outreach-angle.current / retired (rules a
166
+ * playbook renders into the AI's instructions, design b199a3a4, 8 Nov 2026).
165
167
  */
166
168
  const HUMAN_ONLY = [
167
169
  "brand-library:brand-asset.deprecated",
170
+ "brand-library:brand-voice-guide.approved",
168
171
  "brand-library:brand-voice-guide.deprecated",
169
172
  "brand-library:content-guideline.deprecated",
170
173
  "builder-workspace:devplane_feature.cancelled",
@@ -181,6 +184,8 @@ describe("lifecycle declarations — coverage (derived from the playbooks)", ()
181
184
  "crm:campaign.cancelled",
182
185
  "crm:campaign.paused",
183
186
  "crm:deal.lost",
187
+ "crm:outreach-angle.current",
188
+ "crm:outreach-angle.retired",
184
189
  "crm:outreach-touch.replaced",
185
190
  "crm:outreach-touch.sent",
186
191
  "finance:expense.reimbursed",