@synap-core/workspace-templates 0.75.0 → 0.76.1

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/dist/index.js CHANGED
@@ -2864,7 +2864,8 @@ var DATA = {
2864
2864
  },
2865
2865
  {
2866
2866
  "key": "approved",
2867
- "category": "done"
2867
+ "category": "done",
2868
+ "humanOnly": true
2868
2869
  },
2869
2870
  {
2870
2871
  "key": "deprecated",
@@ -10433,6 +10434,133 @@ var DATA = {
10433
10434
  }
10434
10435
  ]
10435
10436
  }
10437
+ },
10438
+ {
10439
+ "key": "merged-pull-request-settles-change",
10440
+ "name": "A merged pull request settles its change",
10441
+ "description": "A dev.pr_merged fact into the default branch moves the pull request's change to Merged when GitHub's own event did not: a change already Merged, or a pull request with no change, moves nothing.",
10442
+ "triggerType": "event",
10443
+ "triggerConfig": {
10444
+ "eventPattern": "dev.pr_merged"
10445
+ },
10446
+ "status": "active",
10447
+ "flow": {
10448
+ "nodes": [
10449
+ {
10450
+ "id": "t",
10451
+ "type": "trigger",
10452
+ "position": {
10453
+ "x": 0,
10454
+ "y": 0
10455
+ },
10456
+ "data": {
10457
+ "label": "A pull request merged",
10458
+ "triggerType": "event",
10459
+ "config": {
10460
+ "eventPattern": "dev.pr_merged"
10461
+ }
10462
+ }
10463
+ },
10464
+ {
10465
+ "id": "into-default",
10466
+ "type": "condition",
10467
+ "position": {
10468
+ "x": 0,
10469
+ "y": 120
10470
+ },
10471
+ "data": {
10472
+ "label": "It merged into the default branch",
10473
+ "expression": 'trigger.payload.data.intoDefault == "true"'
10474
+ }
10475
+ },
10476
+ {
10477
+ "id": "find",
10478
+ "type": "query",
10479
+ "position": {
10480
+ "x": 0,
10481
+ "y": 240
10482
+ },
10483
+ "data": {
10484
+ "label": "Its change",
10485
+ "profileSlug": "change",
10486
+ "limit": 1,
10487
+ "filter": '{"prRef": "{{trigger.payload.data.repo}}#{{trigger.payload.data.number}}"}'
10488
+ }
10489
+ },
10490
+ {
10491
+ "id": "has-change",
10492
+ "type": "condition",
10493
+ "position": {
10494
+ "x": 0,
10495
+ "y": 360
10496
+ },
10497
+ "data": {
10498
+ "label": "It has a change",
10499
+ "expression": "steps.find.output.count >= 1"
10500
+ }
10501
+ },
10502
+ {
10503
+ "id": "not-merged",
10504
+ "type": "condition",
10505
+ "position": {
10506
+ "x": 0,
10507
+ "y": 480
10508
+ },
10509
+ "data": {
10510
+ "label": "Its change is not Merged yet",
10511
+ "expression": 'steps.find.output.entities[0].properties.changeStatus != "merged"'
10512
+ }
10513
+ },
10514
+ {
10515
+ "id": "settle",
10516
+ "type": "output",
10517
+ "position": {
10518
+ "x": 0,
10519
+ "y": 600
10520
+ },
10521
+ "data": {
10522
+ "label": "The change is Merged",
10523
+ "outputType": "entity_update",
10524
+ "config": {
10525
+ "entityId": "{{steps.find.output.entities[0].id}}",
10526
+ "properties": {
10527
+ "changeStatus": "merged"
10528
+ }
10529
+ }
10530
+ }
10531
+ }
10532
+ ],
10533
+ "edges": [
10534
+ {
10535
+ "id": "t--into-default",
10536
+ "source": "t",
10537
+ "target": "into-default"
10538
+ },
10539
+ {
10540
+ "id": "into-default--find",
10541
+ "source": "into-default",
10542
+ "target": "find",
10543
+ "sourceHandle": "yes"
10544
+ },
10545
+ {
10546
+ "id": "find--has-change",
10547
+ "source": "find",
10548
+ "target": "has-change"
10549
+ },
10550
+ {
10551
+ "id": "has-change--not-merged",
10552
+ "source": "has-change",
10553
+ "target": "not-merged",
10554
+ "sourceHandle": "yes"
10555
+ },
10556
+ {
10557
+ "id": "not-merged--settle",
10558
+ "source": "not-merged",
10559
+ "target": "settle",
10560
+ "sourceHandle": "yes"
10561
+ }
10562
+ ]
10563
+ }
10436
10564
  }
10437
10565
  ],
10438
10566
  "skills": [
@@ -12379,7 +12507,8 @@ var DATA = {
12379
12507
  "options": [
12380
12508
  {
12381
12509
  "key": "Idea",
12382
- "category": "open"
12510
+ "category": "open",
12511
+ "humanOnly": true
12383
12512
  },
12384
12513
  {
12385
12514
  "key": "Briefed",
@@ -12399,12 +12528,17 @@ var DATA = {
12399
12528
  },
12400
12529
  {
12401
12530
  "key": "Scheduled",
12402
- "category": "active"
12531
+ "category": "active",
12532
+ "humanOnly": true
12403
12533
  },
12404
12534
  {
12405
12535
  "key": "Published",
12406
12536
  "category": "done"
12407
12537
  },
12538
+ {
12539
+ "key": "Measured",
12540
+ "category": "done"
12541
+ },
12408
12542
  {
12409
12543
  "key": "Archived",
12410
12544
  "category": "lost",
@@ -12429,6 +12563,7 @@ var DATA = {
12429
12563
  "Review",
12430
12564
  "Scheduled",
12431
12565
  "Published",
12566
+ "Measured",
12432
12567
  "Archived"
12433
12568
  ]
12434
12569
  },
@@ -12491,6 +12626,7 @@ var DATA = {
12491
12626
  "label": "Pillar",
12492
12627
  "valueType": "entity_id",
12493
12628
  "targetProfileSlug": "pillar",
12629
+ "relation": "belongs_to_pillar",
12494
12630
  "inputType": "entity_select"
12495
12631
  },
12496
12632
  {
@@ -12498,6 +12634,7 @@ var DATA = {
12498
12634
  "label": "Campaign",
12499
12635
  "valueType": "entity_id",
12500
12636
  "targetProfileSlug": "campaign",
12637
+ "relation": "part_of_campaign",
12501
12638
  "inputType": "entity_select"
12502
12639
  },
12503
12640
  {
@@ -12519,6 +12656,7 @@ var DATA = {
12519
12656
  "label": "Series",
12520
12657
  "valueType": "entity_id",
12521
12658
  "targetProfileSlug": "series",
12659
+ "relation": "part_of_series",
12522
12660
  "inputType": "entity_select"
12523
12661
  },
12524
12662
  {
@@ -12783,6 +12921,7 @@ var DATA = {
12783
12921
  "label": "Pillar",
12784
12922
  "valueType": "entity_id",
12785
12923
  "targetProfileSlug": "pillar",
12924
+ "relation": "belongs_to_pillar",
12786
12925
  "inputType": "entity_select"
12787
12926
  },
12788
12927
  {
@@ -12790,6 +12929,7 @@ var DATA = {
12790
12929
  "label": "Campaign",
12791
12930
  "valueType": "entity_id",
12792
12931
  "targetProfileSlug": "campaign",
12932
+ "relation": "part_of_campaign",
12793
12933
  "inputType": "entity_select"
12794
12934
  },
12795
12935
  {
@@ -13949,6 +14089,7 @@ var DATA = {
13949
14089
  "label": "Campaign",
13950
14090
  "valueType": "entity_id",
13951
14091
  "targetProfileSlug": "campaign",
14092
+ "relation": "part_of_campaign",
13952
14093
  "inputType": "entity_select"
13953
14094
  }
13954
14095
  ]
@@ -14720,8 +14861,8 @@ var DATA = {
14720
14861
  "playbooks": [
14721
14862
  {
14722
14863
  "name": "Produce Content",
14723
- "description": "Take a briefed post from brief to script to published in any format \u2014 text, visual or video (HyperFrames) \u2014 from the pod's brand kit, one stage per post status, with a person approving the script before anything is generated.",
14724
- "goalTemplate": "Produce content for {platform} from this idea ({post}) in the {format} format. Read the brand first from the pod's brand kit (GET /api/hub/brand/kit) \u2014 never re-derive it from a website capture \u2014 and load the creative-director skill (linked to this space) to pick the approved brand-template (layout and recipe), references and assets for this format and style; drafts never feed generation. Work the stages in order; a stage's approved work moves the post's status. SCRIPT before anything is made: write the script or outline for the format (carousel slide outline, deck outline, video script and storyboard, or the text draft) by filling the narrative frame for the post's goal \u2014 the approved content-guideline of type frame for that goal, else the default frame (sell: story, example, lesson, link; hot-take: claim, tension, reason, invitation; tutorial: promise, steps, result, next; product-demo: problem, real screen, outcome, try it). A person approves the script before the draft; nothing is generated from an unapproved script. At the draft, run the creative-director readiness check first (approved references, an approved base guideline, an approved brand-template for this format); if anything is missing, stop and route to the content-taste skill or brand onboarding instead of improvising. Then branch on the format. TEXT (article, thread, newsletter section, caption): draft it with a scroll-stopping hook and a clear CTA. VISUAL: build it pass by pass through the edit-loop skill, a person answering each pass \u2014 a carousel, LinkedIn PDF or image post as a layered composition saved on the post (carousel-format), a deck, PDF document or presentation in Open Design (open-design-edit). VIDEO (short or long video): first pick the route \u2014 FROM SCRATCH (script, storyboard, frames), FROM A VOICE (an existing voice-over or talk: transcribe it, cut on its beats, build the frames under it) or RE-EDIT (existing footage plus a voice: cut, caption, add music and motion); takes ({takes}) mean RE-EDIT, and the Draft stage says how takes, transcripts and passes are handled. Then run the HyperFrames workflow on your own agent with HYPERFRAMES_NO_TELEMETRY=1, from the kit's frame.md (format=frame-md), with GSAP vendored locally \u2014 never `hyperframes publish`, never a cloud render. For a visual or video format, record a content-composition made for this post (for a video: the brief and storyboard documents, the project zip, the MP4, key-frame stills and the brand-kit hash). Keep every format on the post's pillar and the brand voice. A human approves the script before the draft, each pass as it is built, and the draft on the preview at Review. At Schedule, a post whose account is a Postiz channel is queued through the capability that serves publish_post (postiz_schedule_post); that queueing is itself a proposal a person approves. Nothing publishes itself, and the post reads Published only once it went live: written by Publish due posts, reported by Postiz, or moved by a person once it is live. The gate at Publish approves the schedule (the post reads Scheduled).",
14864
+ "description": "Take a briefed post from brief to script to published in any format \u2014 text, visual or video (HyperFrames) \u2014 from the pod's brand kit, one stage per post status, with the person deciding at Review and at Scheduled, and a draft that stays private until then.",
14865
+ "goalTemplate": "Produce content for {platform} from this idea ({post}) in the {format} format. Read the brand first from the pod's brand kit (GET /api/hub/brand/kit) \u2014 never re-derive it from a website capture \u2014 and load the creative-director skill (linked to this space) to pick the approved brand-template (layout and recipe), references and assets for this format and style; drafts never feed generation. Work the stages in order; a stage's approved work moves the post's status. SCRIPT before anything is made: write the script or outline for the format (carousel slide outline, deck outline, video script and storyboard, or the text draft) by filling the narrative frame for the post's goal \u2014 the approved content-guideline of type frame for that goal, else the default frame (sell: story, example, lesson, link; hot-take: claim, tension, reason, invitation; tutorial: promise, steps, result, next; product-demo: problem, real screen, outcome, try it). The script comes before the draft; the draft is private and reversible, so it needs no approval and the person decides at Review. At the draft, run the creative-director readiness check first (approved references, an approved base guideline, an approved brand-template for this format); if anything is missing, stop and route to the content-taste skill or brand onboarding instead of improvising. Then branch on the format. TEXT (article, thread, newsletter section, caption): draft it with a scroll-stopping hook and a clear CTA. VISUAL: build it pass by pass through the edit-loop skill, a person answering each pass \u2014 a carousel, LinkedIn PDF or image post as a layered composition saved on the post (carousel-format), a deck, PDF document or presentation in Open Design (open-design-edit). VIDEO (short or long video): first pick the route \u2014 FROM SCRATCH (script, storyboard, frames), FROM A VOICE (an existing voice-over or talk: transcribe it, cut on its beats, build the frames under it) or RE-EDIT (existing footage plus a voice: cut, caption, add music and motion); takes ({takes}) mean RE-EDIT, and the Draft stage says how takes, transcripts and passes are handled. Then run the HyperFrames workflow on your own agent with HYPERFRAMES_NO_TELEMETRY=1, from the kit's frame.md (format=frame-md), with GSAP vendored locally \u2014 never `hyperframes publish`, never a cloud render. For a visual or video format, record a content-composition made for this post (for a video: the brief and storyboard documents, the project zip, the MP4, key-frame stills and the brand-kit hash). Keep every format on the post's pillar and the brand voice. A person approves each pass as it is built and the draft on the preview at Review. At Schedule, a post whose account is a Postiz channel is queued through the capability that serves publish_post (postiz_schedule_post); that queueing is itself a proposal a person approves. Nothing publishes itself, and the post reads Published only once it went live: written by Publish due posts, reported by Postiz, or moved by a person once it is live. The gate at Publish approves the schedule (the post reads Scheduled).",
14725
14866
  "subjectProfile": {
14726
14867
  "profileSlug": "post"
14727
14868
  },
@@ -14763,6 +14904,16 @@ var DATA = {
14763
14904
  ],
14764
14905
  "executor": "is-agent",
14765
14906
  "status": "active",
14907
+ "guidance": [
14908
+ {
14909
+ "ref": "kind:brand-voice-guide",
14910
+ "label": "Voice of the account's brand"
14911
+ },
14912
+ {
14913
+ "ref": "kind:content-guideline",
14914
+ "label": "Base and per-format guidelines (open the topic before the product, hooks and closes)"
14915
+ }
14916
+ ],
14766
14917
  "tools": [
14767
14918
  "publish_post",
14768
14919
  "generate_media",
@@ -14784,7 +14935,7 @@ var DATA = {
14784
14935
  "name": "Brief",
14785
14936
  "category": "planned",
14786
14937
  "onApproved": "Briefed",
14787
- "goal": "Pin down the post's angle, platform, format, pillar and journey stage before anything is drafted. A run starts at this stage without moving the post. Once the brief is set, move the post to Briefed if it still reads Idea (synap_update_entity, post-status Briefed, expectedStatus Idea): Briefed means the brief is done. Then advance the run through every stage in order (currentStage), never skipping one, takes included. A stage moves the post when its work is APPROVED, not when it is entered: the approved Script moves it to Scripted, the Draft gate's approval to In Draft, the Publish gate's approval to Scheduled; a reply that says proposed is success.",
14938
+ "goal": "Pin down the post's angle, platform, format, pillar and journey stage before anything is drafted. A run starts at this stage without moving the post. Once the brief is set, move the post to Briefed if it still reads Idea (synap_update_entity, post-status Briefed, expectedStatus Idea): Briefed means the brief is done. Then advance the run through every stage in order (currentStage), never skipping one, takes included. A stage moves the post when its work is APPROVED, not when it is entered: the delivered Script moves it to Scripted, entering Draft moves it to In Draft (no approval), the person's approval at the Publish gate moves it to Scheduled; a reply that says proposed is success.",
14788
14939
  "criteria": [
14789
14940
  {
14790
14941
  "key": "brief-has-hook",
@@ -14837,13 +14988,7 @@ var DATA = {
14837
14988
  "name": "Draft",
14838
14989
  "category": "started",
14839
14990
  "subjectStatus": "In Draft",
14840
- "goal": `Entering Draft waits on the person: this stage's gate asks them to approve the script, and that approval moves the post to In Draft. Build nothing before it passes. Run the creative-director readiness check, then produce the draft in the post's format from the approved script, the brand kit and the approved brand-template (layout and recipe) for the format. A visual or video format is built pass by pass through the edit-loop skill and its engine's skill: carousel, LinkedIn PDF or image post, a layered composition saved on the post (carousel-format; passes layer-structure, layer-visual, layer-polish, an image the last two); deck, PDF document or presentation, Open Design (open-design-edit, same passes); video, HyperFrames. Takes given (the run's takes param, on the run session at metadata.params.takes: comma-separated file ids of recorded footage) mean the RE-EDIT video route, with the facecam-edit skill. A take's transcript is ONE content-asset, Kind script, whose File ID is the take's file; its body holds the readable text under a "## Transcript" heading, then a "## Words" heading followed by exactly one \`\`\`json fenced block with the word-level JSON in HyperFrames' shape [{"text","start","end"}] (seconds; [] until the precise pass fills it). Find it before transcribing: if it exists, reuse it and only fill the word timings; if not, create it and link it to the take's file with a references relation. Never a separate document per take. A VIDEO is built in passes, in this order, each one non-destructive (changing a pass never redoes an approved one): cut and order, background, colour, captions, graphics and animation. Skip a pass the route does not use. A run started in the older order builds the passes it has not done in this order, background first. When a pass starts, declare its slot as yours first (an outcome with the pass's key, kind file, no owner, no ask). After each pass, render its preview into the pod and hand the person ONE slot for it (an outcome) on the same key, layer-<pass> (a video: layer-cut, layer-background, layer-colour, layer-captions or layer-graphics): owner human, ref the preview, ask choose with allowOther, options Approve (recommended), Rework and Use my edit, answered as the edit-loop skill spells out (Approve claims the slot: completeOutput). Build the next pass only after the answer. Use my edit: their edit is the pass; never overwrite or redo their changes. Before each of your passes record a version, work from the diff to the current work (never regenerate from the prompt), never write while a pass is the person's, and acknowledge each answer in the room. With takes, every pass is built in ONE HyperFrames project, the folder edit in the run's work folder (~/synap-work/<this run's session id>/edit), shown live in HyperFrames Studio, whose address is the run's studio outcome, retired (retireOutput studio) whenever Studio stops, as the facecam-edit skill spells out. Every render the person hears, a preview included, carries the cut's audio copied (a remux, never the render's own encode), and a re-encode for size touches the video only, as the facecam-edit skill spells out. A LOOK given (the run's look param, at metadata.params.look: a JSON string {"background": {"assetId","fileId"} or {"mode":"blur"} or null, "colour": {"assetId","fileId","intensity"} or null}, picked in the booth before recording) means the Background pass and the Colour pass START from it, as the facecam-edit skill spells out. Background: matte the raw take with the best matte here, in the skill's order (Mac synap-matte, local RVM, the person's edit_video tool (synap_list_capabilities with intent edit_video) if installed, handing it the take's pod file id ({"videoFile": id}; the pod signs it at run time)); gate the matte (its frame count and duration match the take, no flicker); defocus the background once; composite with ffmpeg (choke, feather, clean edge, light wrap); then grain on the background and a light match on the person. The background is the background file (from the pod by its fileId), or, for mode blur, a blurred copy of the raw take. No matte, a failed run or gate: matte with npx hyperframes remove-background instead and composite the same way over the same background, saying: low quality; that failing too: the raw take, and the pass's question says "background not applied". Colour: download the .cube by its fileId and apply it as the grading block grading.lut (src the .cube, intensity the look's intensity). Each is still its own pass, with its own slot (layer-background, layer-colour) and its own question, asked like every other pass; for these two the options add Remove this pass (the raw take shows through: drop the pass, retire its slot with retireOutput, build the next). A null part of the look leaves its pass as it is without a look. The raw take is never overwritten: a pass writes new files beside it.`,
14841
- "gate": {
14842
- "kind": "human"
14843
- },
14844
- "onFail": {
14845
- "toStage": "script"
14846
- },
14991
+ "goal": `Entering Draft moves the post to In Draft and asks nobody: a draft is private and reversible, and the person decides at Review. Run the creative-director readiness check, then produce the draft in the post's format from the approved script, the brand kit and the approved brand-template (layout and recipe) for the format. A visual or video format is built pass by pass through the edit-loop skill and its engine's skill: carousel, LinkedIn PDF or image post, a layered composition saved on the post (carousel-format; passes layer-structure, layer-visual, layer-polish, an image the last two); deck, PDF document or presentation, Open Design (open-design-edit, same passes); video, HyperFrames. Takes given (the run's takes param, on the run session at metadata.params.takes: comma-separated file ids of recorded footage) mean the RE-EDIT video route, with the facecam-edit skill. A take's transcript is ONE content-asset, Kind script, whose File ID is the take's file; its body holds the readable text under a "## Transcript" heading, then a "## Words" heading followed by exactly one \`\`\`json fenced block with the word-level JSON in HyperFrames' shape [{"text","start","end"}] (seconds; [] until the precise pass fills it). Find it before transcribing: if it exists, reuse it and only fill the word timings; if not, create it and link it to the take's file with a references relation. Never a separate document per take. A VIDEO is built in passes, in this order, each one non-destructive (changing a pass never redoes an approved one): cut and order, background, colour, captions, graphics and animation. Skip a pass the route does not use. A run started in the older order builds the passes it has not done in this order, background first. When a pass starts, declare its slot as yours first (an outcome with the pass's key, kind file, no owner, no ask). After each pass, render its preview into the pod and hand the person ONE slot for it (an outcome) on the same key, layer-<pass> (a video: layer-cut, layer-background, layer-colour, layer-captions or layer-graphics): owner human, ref the preview, ask choose with allowOther, options Approve (recommended), Rework and Use my edit, answered as the edit-loop skill spells out (Approve claims the slot: completeOutput). Build the next pass only after the answer. Use my edit: their edit is the pass; never overwrite or redo their changes. Before each of your passes record a version, work from the diff to the current work (never regenerate from the prompt), never write while a pass is the person's, and acknowledge each answer in the room. With takes, every pass is built in ONE HyperFrames project, the folder edit in the run's work folder (~/synap-work/<this run's session id>/edit), shown live in HyperFrames Studio, whose address is the run's studio outcome, retired (retireOutput studio) whenever Studio stops, as the facecam-edit skill spells out. Every render the person hears, a preview included, carries the cut's audio copied (a remux, never the render's own encode), and a re-encode for size touches the video only, as the facecam-edit skill spells out. A LOOK given (the run's look param, at metadata.params.look: a JSON string {"background": {"assetId","fileId"} or {"mode":"blur"} or null, "colour": {"assetId","fileId","intensity"} or null}, picked in the booth before recording) means the Background pass and the Colour pass START from it, as the facecam-edit skill spells out. Background: matte the raw take with the best matte here, in the skill's order (Mac synap-matte, local RVM, the person's edit_video tool (synap_list_capabilities with intent edit_video) if installed, handing it the take's pod file id ({"videoFile": id}; the pod signs it at run time)); gate the matte (its frame count and duration match the take, no flicker); defocus the background once; composite with ffmpeg (choke, feather, clean edge, light wrap); then grain on the background and a light match on the person. The background is the background file (from the pod by its fileId), or, for mode blur, a blurred copy of the raw take. No matte, a failed run or gate: matte with npx hyperframes remove-background instead and composite the same way over the same background, saying: low quality; that failing too: the raw take, and the pass's question says "background not applied". Colour: download the .cube by its fileId and apply it as the grading block grading.lut (src the .cube, intensity the look's intensity). Each is still its own pass, with its own slot (layer-background, layer-colour) and its own question, asked like every other pass; for these two the options add Remove this pass (the raw take shows through: drop the pass, retire its slot with retireOutput, build the next). A null part of the look leaves its pass as it is without a look. The raw take is never overwritten: a pass writes new files beside it.`,
14847
14992
  "expectedOutputs": [
14848
14993
  {
14849
14994
  "kind": "content-composition",
@@ -14902,7 +15047,7 @@ var DATA = {
14902
15047
  "name": "Schedule",
14903
15048
  "category": "started",
14904
15049
  "onApproved": "Scheduled",
14905
- "goal": "Set the publish date and queue the post on its account: its post-account, else the Personal account (account-owner) of its network (founder, 4 Nov). When that platform carries unipile-account-id (Unipile, the default; decision A, 3 Nov: approving is the yes, nothing asks again), arm it for Publish due posts in one write: post-account set to that platform, publish-account-id to its unipile-account-id, publish-as-organization to its linkedin-organization-id when it is a LinkedIn company page, publish-text to the approved caption or text, publish-media to the approved pictures or video as pod file ids in order (at most 10), publish-at-ms to 09:00 Europe/Paris on the publish date in epoch milliseconds, and publish-outcome queued. Publish due posts sends it through unipile_publish_post on that day and writes the result back. For each other account in post-copy-to (the same post) or post-reshare-on (a LinkedIn repost), create one Scheduled post armed the same way on that account, with post-copy-of set to this post and post-send-mode copy or reshare; a repost has empty publish-text and no media, and waits (publish-outcome waiting) until this post is out. When the account is a Postiz channel (it carries postiz-integration-id and postiz-provider), queue it with postiz_schedule_post: type schedule, the publish date, the approved text, the media links in order, and postEntityId set to this post. When a person approves that run, the pod records the returned postId on the post as postiz-post-id. Any other account: queue it where the account lives and say how.",
15050
+ "goal": "Scheduled is the person's status (humanOnly): you propose the date and arm the post, and it reads Scheduled when the person approves at the Publish gate, never because you moved it. Set the publish date and queue the post on its account: its post-account, else the Personal account (account-owner) of its network (founder, 4 Nov). When that platform carries unipile-account-id (Unipile, the default; decision A, 3 Nov: approving is the yes, nothing asks again), arm it for Publish due posts in one write: post-account set to that platform, publish-account-id to its unipile-account-id, publish-as-organization to its linkedin-organization-id when it is a LinkedIn company page, publish-text to the approved caption or text, publish-media to the approved pictures or video as pod file ids in order (at most 10), publish-at-ms to 09:00 Europe/Paris on the publish date in epoch milliseconds, and publish-outcome queued. Publish due posts sends it through unipile_publish_post on that day and writes the result back. For each other account in post-copy-to (the same post) or post-reshare-on (a LinkedIn repost), create one Scheduled post armed the same way on that account, with post-copy-of set to this post and post-send-mode copy or reshare; a repost has empty publish-text and no media, and waits (publish-outcome waiting) until this post is out. When the account is a Postiz channel (it carries postiz-integration-id and postiz-provider), queue it with postiz_schedule_post: type schedule, the publish date, the approved text, the media links in order, and postEntityId set to this post. When a person approves that run, the pod records the returned postId on the post as postiz-post-id. Any other account: queue it where the account lives and say how.",
14906
15051
  "criteria": [
14907
15052
  {
14908
15053
  "key": "schedule-date-set",
@@ -15110,6 +15255,12 @@ var DATA = {
15110
15255
  "mode": "propose"
15111
15256
  }
15112
15257
  ],
15258
+ "guidance": [
15259
+ {
15260
+ "ref": "kind:content-guideline",
15261
+ "label": "Base guidelines (open the topic before the product)"
15262
+ }
15263
+ ],
15113
15264
  "stages": [
15114
15265
  {
15115
15266
  "key": "read",
@@ -15181,24 +15332,6 @@ var DATA = {
15181
15332
  ],
15182
15333
  "status": "active"
15183
15334
  },
15184
- {
15185
- "name": "Package ideas",
15186
- "description": "Read the idea bank, group the ideas that belong together, and propose a set of posts, each linked to the ideas that feed it, as one batch to approve.",
15187
- "goalTemplate": "Package the idea bank of this space. Read every idea (kind idea) at New or Shaped: its words, its pillar, its journey stage and its age. Group the ideas that belong in one piece (the same claim, the same story, or the same question from the audience); one idea may feed several posts. Then propose one to five posts: each with a working title, a format, a pillar and the one sentence it is about, at the Idea status. Never a script, a hook to publish or a finished text: the person writes the post. File the whole set as ONE synap_capture graph (each post a new entity, each source idea by existingEntityId, linked idea feeds post), so the person approves it in one review. Every post has at least one idea; an idea with no cousin that is not a piece on its own is left out. Once the batch is approved, move each idea that feeds a post to Used (synap_update_entity, expectedStatus its status). Nothing is briefed, scheduled or published, and no Produce Content run starts.",
15188
- "expectedOutputs": [
15189
- {
15190
- "kind": "post",
15191
- "label": "Packaged post",
15192
- "relationToSubject": "none"
15193
- }
15194
- ],
15195
- "executor": "is-agent",
15196
- "tools": [
15197
- "propose_entity_graph",
15198
- "update_entity"
15199
- ],
15200
- "status": "active"
15201
- },
15202
15335
  {
15203
15336
  "name": "Write the caption",
15204
15337
  "description": "Draft the caption of one post from its brief and its script, filed as a proposal of its script's Caption that the person approves.",
@@ -15247,8 +15380,8 @@ var DATA = {
15247
15380
  },
15248
15381
  {
15249
15382
  "name": "Repurpose",
15250
- "description": "Turn a published post into new posts for other formats and platforms, each linked to the original.",
15251
- "goalTemplate": "Repurpose this published post ({post}). Read what it says and how it performed, then propose one to three new pieces in other formats or on other platforms where the same idea travels (a thread from an article, a short video from a thread, a newsletter section from a series). Create each as a new post at the Idea status, on the same pillar, with its own hook, and link it derived_from the original. Never republish the original as is.",
15383
+ "description": "Measure a published post, then turn it into new posts for other formats and platforms, each linked to the original.",
15384
+ "goalTemplate": "Work this published post ({post}); {mode} picks what to do (both when empty). MEASURE: wait until the post has been live 48 hours (read published-at; when it is younger, pause the run with a hold on that date and resume then), read how it performed on its platform, write the numbers on the post (or say plainly that none were readable), and move the post to Measured through the status door (synap_update_entity, expectedStatus Published; a reply that says proposed is success). REPURPOSE: read what the post says and how it performed, then propose one to three new pieces in other formats or on other platforms where the same idea travels (a thread from an article, a short video from a thread, a newsletter section from a series). Create each as a new post at the Idea status, on the same pillar, with its own hook, and link it derived_from the original. Never republish the original as is.",
15252
15385
  "subjectProfile": {
15253
15386
  "profileSlug": "post"
15254
15387
  },
@@ -15263,11 +15396,18 @@ var DATA = {
15263
15396
  }
15264
15397
  }
15265
15398
  ],
15399
+ "guidance": [
15400
+ {
15401
+ "ref": "kind:content-guideline",
15402
+ "label": "Base and per-format guidelines (open the topic before the product, hooks and closes)"
15403
+ }
15404
+ ],
15266
15405
  "expectedOutputs": [
15267
15406
  {
15268
15407
  "kind": "post",
15269
15408
  "label": "Repurposed post",
15270
- "relationToSubject": "derived_from"
15409
+ "relationToSubject": "derived_from",
15410
+ "optional": true
15271
15411
  }
15272
15412
  ],
15273
15413
  "params": [
@@ -15276,14 +15416,50 @@ var DATA = {
15276
15416
  "type": "entity",
15277
15417
  "label": "Post",
15278
15418
  "required": true
15419
+ },
15420
+ {
15421
+ "name": "mode",
15422
+ "type": "choice",
15423
+ "label": "What to do: measure, repurpose or both",
15424
+ "options": [
15425
+ "measure",
15426
+ "repurpose",
15427
+ "both"
15428
+ ],
15429
+ "default": "both"
15279
15430
  }
15280
15431
  ],
15281
15432
  "executor": "is-agent",
15282
15433
  "tools": [
15283
15434
  "create_entity",
15284
- "create_relation"
15435
+ "create_relation",
15436
+ "update_entity"
15285
15437
  ],
15286
- "status": "active"
15438
+ "status": "active",
15439
+ "stages": [
15440
+ {
15441
+ "key": "measure",
15442
+ "name": "Measure",
15443
+ "category": "started",
15444
+ "goal": "Skip this stage when mode is repurpose. Wait until the post has been live 48 hours (read published-at; when it is younger, pause with a hold on that date), read its numbers on its platform, write them on the post, and move it to Measured through the status door (synap_update_entity, expectedStatus Published). If no numbers can be read, say so on the post and still move it to Measured.",
15445
+ "onApproved": "Measured",
15446
+ "criteria": [
15447
+ {
15448
+ "key": "measured-recorded",
15449
+ "statement": "The post's numbers (or a plain note that none were readable) are written on it and it reads Measured.",
15450
+ "check": {
15451
+ "kind": "judge"
15452
+ }
15453
+ }
15454
+ ]
15455
+ },
15456
+ {
15457
+ "key": "repurpose",
15458
+ "name": "Repurpose",
15459
+ "category": "completed",
15460
+ "goal": "Skip this stage when mode is measure. Propose one to three new posts at Idea in other formats or on other platforms, each linked derived_from the original, never a republication."
15461
+ }
15462
+ ]
15287
15463
  },
15288
15464
  {
15289
15465
  "name": "Newsletter issue",
@@ -15443,9 +15619,9 @@ var DATA = {
15443
15619
  ]
15444
15620
  },
15445
15621
  {
15446
- "name": "Thinking session",
15447
- "description": "A timeboxed session of thinking on one piece. The AI gathers what you already have, asks you questions, and stitches your own answers, in your order, into a thesis and a first draft. It never writes the piece for you.",
15448
- "goalTemplate": "Run a thinking session of {minutes} minutes on this piece ({piece}), counted from the session's start. The person thinks; you prepare, ask and stitch. You never write the piece: every sentence of the thesis and the draft is the person's, from their answers, in the order they chose. GATHER: read the piece (its document, its board) and what it already links: inspirations (inspired_by), ideas and captures (used_in, notes with a capture-source), earlier pieces (references), its chapters (part_of). Search the pod for what the person already thought about this subject (synap_ask) and post a short list of those sources in the session room, each a link, with one line on why it matters. Link a source the person keeps to the piece (inspired_by for an inspiration, used_in for an idea or a note, references for an earlier piece). QUESTIONS: ask one question at a time in the session room, each short and open, built on the sources and the person's last answer; never suggest the answer. Keep every answer verbatim. Stop asking when the person says so or when the timebox is near its end, leaving time to stitch. THESIS: ask the person to say, in one or two sentences, what the piece claims; offer their own strongest lines to choose from, never a line of yours. DRAFT: lay the person's answers out in the order they pick (ask for it), with the thesis first, as a proposal of the piece's document; only joining words may be added, marked as yours. The person approves the draft; then the piece reads Drafting.",
15622
+ "name": "Derive outputs",
15623
+ "description": "Make posts from a piece or from the idea bank. From a piece, spread over two weeks on the accounts you pick (several per account, never two on one account the same day), each linked to the piece, and optionally a newsletter issue.",
15624
+ "goalTemplate": "Derive posts from one of two sources, picked by {source} (piece when a piece is given, else idea-bank). IDEA-BANK: package the idea bank of this space. Read every idea (kind idea) at New or Shaped: its words, its pillar, its journey stage and its age. Group the ideas that belong in one piece (the same claim, the same story, or the same question from the audience); one idea may feed several posts. Then propose one to five posts: each with a working title, a format, a pillar and the one sentence it is about, at the Idea status. Never a script, a hook to publish or a finished text: the person writes the post. File the whole set as ONE synap_capture graph (each post a new entity, each source idea by existingEntityId, linked idea feeds post), so the person approves it in one review, one batch per campaign (else per series, else per pillar). Every post has at least one idea; an idea with no cousin that is not a piece on its own is left out. Once the batch is approved, move each idea that feeds a post to Used (synap_update_entity, expectedStatus its status). Nothing is briefed, scheduled or published, and no Produce Content run starts. PIECE: derive outputs from this piece ({piece}). Read the piece's body (its document) first. Then create {posts} posts (six when that is empty), each a `post` at Idea (post-status Idea), linked derived_from the piece. Accounts: {accounts} (each a platform entity's id and name; when empty, ask the person which accounts, offering first those whose default-project-id is a project the piece is filed in). Give each post its account (post-account, the platform's id) and a publish-date, spread over the two weeks starting {from} (today when it is empty): several posts per account, never two posts on one account the same day, and skip any day an account already has a post (read that account's posts first). Each post gets its own post-hook and its own text (in `content`), taken from the piece's own words, cut and shaped for the account's platform; never a claim the piece does not make, and no two posts with the same angle. Set post-platform from the account's platform-type. When the piece has a campaign (composition-campaign), give each post that campaign (post-campaign). Optionally, when the piece reads as one, add ONE newsletter issue at Idea (newsletter-status Idea, and its newsletter-campaign when the piece has one) linked derived_from the piece. Create each post and the issue (create_entity), then link each one derived_from the piece (create_relation); each write is a proposal the person approves. The piece's own status is not moved by this run. Nothing is scheduled or published.",
15449
15625
  "subjectProfile": {
15450
15626
  "profileSlug": "content-composition"
15451
15627
  },
@@ -15455,136 +15631,36 @@ var DATA = {
15455
15631
  "mode": "propose"
15456
15632
  }
15457
15633
  ],
15458
- "params": [
15634
+ "guidance": [
15459
15635
  {
15460
- "name": "piece",
15461
- "type": "entity",
15462
- "label": "Piece",
15463
- "required": true
15636
+ "ref": "kind:brand-voice-guide",
15637
+ "label": "Voice",
15638
+ "where": {
15639
+ "voice-context": [
15640
+ "general",
15641
+ "social"
15642
+ ]
15643
+ }
15464
15644
  },
15465
15645
  {
15466
- "name": "minutes",
15467
- "type": "number",
15468
- "label": "Minutes",
15469
- "default": 60
15646
+ "ref": "kind:content-guideline",
15647
+ "label": "Base and per-format guidelines (open the topic before the product, hooks and closes)"
15470
15648
  }
15471
15649
  ],
15472
- "executor": "is-agent",
15473
- "status": "active",
15474
- "tools": [
15475
- "update_entity",
15476
- "create_relation"
15477
- ],
15478
- "stages": [
15479
- {
15480
- "key": "gather",
15481
- "name": "Gather context",
15482
- "category": "planned",
15483
- "goal": "Read the piece and what it links, search the pod for what the person already thought about its subject, and post the sources in the room, each a link with one line on why it matters. Nothing is written into the piece. A run starts here without moving the piece.",
15484
- "criteria": [
15485
- {
15486
- "key": "gather-sources-posted",
15487
- "statement": "The room lists the piece's linked sources and what the pod already holds on its subject, each as a link.",
15488
- "check": {
15489
- "kind": "judge"
15490
- }
15491
- }
15492
- ]
15493
- },
15494
- {
15495
- "key": "questions",
15496
- "name": "Questions",
15497
- "category": "started",
15498
- "goal": "Ask one open question at a time in the session room, built on the sources and the last answer, and keep each answer verbatim. Never suggest an answer and never write a sentence of the piece. Stop when the person says so or the timebox nears its end.",
15499
- "criteria": [
15500
- {
15501
- "key": "questions-one-at-a-time",
15502
- "statement": "Each question was asked alone and none contains its answer.",
15503
- "check": {
15504
- "kind": "judge"
15505
- }
15506
- },
15507
- {
15508
- "key": "questions-answers-kept",
15509
- "statement": "Every answer is kept verbatim in the session room.",
15510
- "check": {
15511
- "kind": "judge"
15512
- }
15513
- }
15514
- ]
15515
- },
15650
+ "params": [
15516
15651
  {
15517
- "key": "thesis",
15518
- "name": "Thesis",
15519
- "category": "started",
15520
- "goal": "Ask the person for the piece's claim in one or two sentences, offering only their own strongest lines to choose from.",
15521
- "criteria": [
15522
- {
15523
- "key": "thesis-own-words",
15524
- "statement": "The thesis is in the person's own words, from their answers.",
15525
- "check": {
15526
- "kind": "judge"
15527
- }
15528
- }
15652
+ "name": "source",
15653
+ "type": "choice",
15654
+ "label": "Source: a piece, or the idea bank (idea-bank when no piece is given)",
15655
+ "options": [
15656
+ "piece",
15657
+ "idea-bank"
15529
15658
  ]
15530
15659
  },
15531
- {
15532
- "key": "draft",
15533
- "name": "Draft",
15534
- "category": "started",
15535
- "subjectStatus": "drafting",
15536
- "goal": "Ask the person the order of their answers, then lay them out with the thesis first as a proposal of the piece's document. Only joining words may be added, marked as yours. The person approves the draft; a rejected draft goes back to the questions.",
15537
- "gate": {
15538
- "kind": "human"
15539
- },
15540
- "onFail": {
15541
- "toStage": "questions"
15542
- },
15543
- "expectedOutputs": [
15544
- {
15545
- "kind": "document",
15546
- "label": "Draft (the person's answers, in their order)",
15547
- "relationToSubject": "none"
15548
- }
15549
- ],
15550
- "criteria": [
15551
- {
15552
- "key": "draft-is-answers",
15553
- "statement": "Every sentence of the draft comes from the person's answers, apart from marked joining words.",
15554
- "check": {
15555
- "kind": "judge"
15556
- }
15557
- },
15558
- {
15559
- "key": "draft-approved",
15560
- "statement": "The person approved the draft.",
15561
- "check": {
15562
- "kind": "human"
15563
- }
15564
- }
15565
- ]
15566
- }
15567
- ]
15568
- },
15569
- {
15570
- "name": "Derive outputs",
15571
- "description": "Make posts from a piece, spread over two weeks on the accounts you pick (several per account, never two on one account the same day), each linked to the piece, and optionally a newsletter issue.",
15572
- "goalTemplate": "Derive outputs from this piece ({piece}). Read the piece's body (its document) first. Then create {posts} posts (six when that is empty), each a `post` at Idea (post-status Idea), linked derived_from the piece. Accounts: {accounts} (each a platform entity's id and name; when empty, ask the person which accounts, offering first those whose default-project-id is a project the piece is filed in). Give each post its account (post-account, the platform's id) and a publish-date, spread over the two weeks starting {from} (today when it is empty): several posts per account, never two posts on one account the same day, and skip any day an account already has a post (read that account's posts first). Each post gets its own post-hook and its own text (in `content`), taken from the piece's own words, cut and shaped for the account's platform; never a claim the piece does not make, and no two posts with the same angle. Set post-platform from the account's platform-type. When the piece has a campaign (composition-campaign), give each post that campaign (post-campaign). Optionally, when the piece reads as one, add ONE newsletter issue at Idea (newsletter-status Idea, and its newsletter-campaign when the piece has one) linked derived_from the piece. Create each post and the issue (create_entity), then link each one derived_from the piece (create_relation); each write is a proposal the person approves. The piece's own status is not moved by this run. Nothing is scheduled or published.",
15573
- "subjectProfile": {
15574
- "profileSlug": "content-composition"
15575
- },
15576
- "activators": [
15577
- {
15578
- "on": "manual",
15579
- "mode": "propose"
15580
- }
15581
- ],
15582
- "params": [
15583
15660
  {
15584
15661
  "name": "piece",
15585
15662
  "type": "entity",
15586
- "label": "Piece",
15587
- "required": true
15663
+ "label": "Piece (source piece)"
15588
15664
  },
15589
15665
  {
15590
15666
  "name": "accounts",
@@ -15606,13 +15682,22 @@ var DATA = {
15606
15682
  "status": "active",
15607
15683
  "tools": [
15608
15684
  "create_entity",
15609
- "create_relation"
15685
+ "create_relation",
15686
+ "propose_entity_graph",
15687
+ "update_entity"
15610
15688
  ],
15611
15689
  "expectedOutputs": [
15612
15690
  {
15613
15691
  "kind": "post",
15614
15692
  "label": "Derived post",
15615
- "relationToSubject": "derived_from"
15693
+ "relationToSubject": "derived_from",
15694
+ "optional": true
15695
+ },
15696
+ {
15697
+ "kind": "post",
15698
+ "label": "Packaged post",
15699
+ "relationToSubject": "none",
15700
+ "optional": true
15616
15701
  },
15617
15702
  {
15618
15703
  "kind": "newsletter",
@@ -15621,6 +15706,1047 @@ var DATA = {
15621
15706
  "optional": true
15622
15707
  }
15623
15708
  ]
15709
+ },
15710
+ {
15711
+ "name": "Unfold a thought",
15712
+ "description": "The one door for ideas: a raw thought, the weekly interview or a timeboxed thinking session becomes ideas in the person's own words, linked to a series or a pillar and to the graph, never a finished piece. The `source` param picks the route: thought, interview or session.",
15713
+ "goalTemplate": 'Unfold what the person has in their head into linked ideas, in their own words, never a finished piece. {source} picks the route (when empty: THOUGHT if a thought is given, else INTERVIEW): THOUGHT takes one raw thought ({thought}: a note, a capture or a document) and unfolds it into ideas linked to the graph that exists, then proposes what can be made of it; INTERVIEW (the weekly ritual) interviews the person: it prepares 3 to 5 short, opinionated questions from their recent notes, the last 7 days of signal and the gaps between pillars and journey stages, each answerable in 1 to 3 minutes and linked to its source; never write a script; they answer on camera, one take per question, in the Record page of their content app (takes already recorded arrive here as file ids: {takes}), and the answers become ideas that quote their exact sentences, linked `references` to the take they came from; SESSION is a timeboxed thinking session of {minutes} minutes on one piece ({piece}), counted from the session\'s start: the person thinks, you prepare, ask and stitch, and you never write the piece. Run ONLY the stages of your route: set currentStage straight to its first stage (thought-read, interview-prepare or session-gather) and skip the others. A take\'s transcript is ONE content-asset, Kind script, whose File ID is the take\'s file: its body holds the readable text under a "## Transcript" heading, then a "## Words" heading followed by exactly one ```json block of [{"text","start","end"}] in seconds ([] until the precise pass fills it). Find it before transcribing, reuse it, never transcribe twice, never a separate document. If the person keeps a skill describing how they think, load it first. Every idea is a real idea entity filed on a series or a pillar, never a loose document; never invent a claim or a number; the person approves, edits or drops each.',
15714
+ "activators": [
15715
+ {
15716
+ "on": "schedule",
15717
+ "cron": "0 8 * * 1",
15718
+ "mode": "propose"
15719
+ }
15720
+ ],
15721
+ "params": [
15722
+ {
15723
+ "name": "source",
15724
+ "type": "choice",
15725
+ "label": "Source: thought, interview or session (empty: thought if one is given, else interview)",
15726
+ "options": [
15727
+ "thought",
15728
+ "interview",
15729
+ "session"
15730
+ ]
15731
+ },
15732
+ {
15733
+ "name": "thought",
15734
+ "type": "entity",
15735
+ "label": "The raw thought to unfold (a note, a capture or a document), for the thought route"
15736
+ },
15737
+ {
15738
+ "name": "takes",
15739
+ "type": "text",
15740
+ "label": "Takes already recorded (file ids, comma-separated), for the interview route; empty to record during the session"
15741
+ },
15742
+ {
15743
+ "name": "piece",
15744
+ "type": "entity",
15745
+ "label": "The piece to think on, for the session route"
15746
+ },
15747
+ {
15748
+ "name": "minutes",
15749
+ "type": "number",
15750
+ "label": "Minutes of the thinking session",
15751
+ "default": 60
15752
+ }
15753
+ ],
15754
+ "executor": "is-agent",
15755
+ "status": "active",
15756
+ "tools": [
15757
+ "create_entity",
15758
+ "update_entity",
15759
+ "create_relation"
15760
+ ],
15761
+ "stages": [
15762
+ {
15763
+ "key": "thought-read",
15764
+ "name": "Read the thought and what exists",
15765
+ "category": "started",
15766
+ "tier": "standard",
15767
+ "goal": "Route thought only. Understand the thought whole and know what already exists. Load any skill the person keeps on how they think. Read the thought in full, the existing ideas (kind idea, above all the Thesis level), the fields and concepts of the space that holds their research, and the pillars. Use ask with detail sources for each subject of the thought to find what the person already said."
15768
+ },
15769
+ {
15770
+ "key": "thought-unfold",
15771
+ "name": "Unfold into ideas",
15772
+ "category": "started",
15773
+ "tier": "deep",
15774
+ "goal": "Route thought only. Every distinct idea of the thought exists once in the graph, in the person's words. Split the thought into atomic ideas (one claim, one story or one question each). For each: if an existing idea says the same thing, enrich or link it rather than create a twin; otherwise create an idea whose `content` is their words (a faithful quote, cleaned), with its idea-level (Spark, Idea, or Thesis when it is a conviction that returns from one thought to the next) and idea-evidence (Unsourced by default, To source when the claim is factual and fragile), at status New. Link each idea to the thought it came from with `derived_from`, and to its series or pillar. Send it all in ONE capture (entities plus relations).",
15775
+ "expectedOutputs": [
15776
+ {
15777
+ "kind": "idea",
15778
+ "label": "Unfolded ideas",
15779
+ "relationToSubject": "none"
15780
+ }
15781
+ ]
15782
+ },
15783
+ {
15784
+ "key": "thought-connect",
15785
+ "name": "Link to the graph",
15786
+ "category": "started",
15787
+ "tier": "deep",
15788
+ "goal": "Route thought only. Every idea hangs on a field or a concept, and the links between ideas are laid. For each idea: `about` to 1 to 3 concepts or fields (create the concept if it is missing, attached to its field by part_of); `supports` or `contradicts` towards the existing ideas it concerns, and towards the thesis it serves. Then look for INDIRECT links (two distant ideas that obey the same rule, or that one concept joins in two steps): list them, they are the findings the person likes."
15789
+ },
15790
+ {
15791
+ "key": "thought-source",
15792
+ "name": "Open the research questions",
15793
+ "category": "started",
15794
+ "tier": "standard",
15795
+ "goal": "Route thought only. Every fragile claim has its research question. For each idea at To source that carries a factual claim (a number, a date, a cause, a scientific consensus), create a `question` linked to the idea (relates_to). Creating a question starts the playbook that looks for the evidence and the counter-evidence, when the pod has one. Create no question for an opinion or an assumed vision.",
15796
+ "expectedOutputs": [
15797
+ {
15798
+ "kind": "question",
15799
+ "label": "Research questions",
15800
+ "optional": true,
15801
+ "relationToSubject": "none"
15802
+ }
15803
+ ]
15804
+ },
15805
+ {
15806
+ "key": "thought-transmit",
15807
+ "name": "Propose what to make of it",
15808
+ "category": "completed",
15809
+ "tier": "deep",
15810
+ "goal": "Route thought only. The person sees on one page what their thought gave and what they can do with it. Post a short synthesis in the session room: ideas created and enriched, indirect links found, open questions, and 1 to 3 possible pieces, each ONE thesis plus ONE analogy plus the advised format (post, article, video, deck), with the list of branches that go to the parking lot. Name the weak points they will have to defend plainly. Write nothing in full unless they ask.",
15811
+ "expectedOutputs": [
15812
+ {
15813
+ "kind": "document",
15814
+ "label": "Synthesis: links and possible pieces",
15815
+ "relationToSubject": "none"
15816
+ }
15817
+ ]
15818
+ },
15819
+ {
15820
+ "key": "interview-prepare",
15821
+ "name": "Prepare the questions",
15822
+ "category": "planned",
15823
+ "goal": "Route interview only. Prepare 3 to 5 short, opinionated questions from the person's recent notes, the last 7 days of signal and the gaps between pillars and journey stages. Each is answerable in 1 to 3 minutes and linked to its source. Never write a script.",
15824
+ "expectedOutputs": [
15825
+ {
15826
+ "kind": "document",
15827
+ "label": "Questions",
15828
+ "relationToSubject": "none"
15829
+ }
15830
+ ]
15831
+ },
15832
+ {
15833
+ "key": "interview-ask",
15834
+ "name": "The person answers on camera",
15835
+ "category": "started",
15836
+ "goal": "Route interview only. The person answers on camera, one take per question, or the takes arrive as file ids (<takes>). Wait for them."
15837
+ },
15838
+ {
15839
+ "key": "interview-transcribe",
15840
+ "name": "Transcribe the answers",
15841
+ "category": "started",
15842
+ "goal": "Route interview only. For each take, find its ONE transcript content-asset (Kind script, File ID the take's file) and reuse it; only fill the word timings (local Whisper or HyperFrames' Parakeet on the person's computer). If none exists, create it and link it `references` the take's file.",
15843
+ "expectedOutputs": [
15844
+ {
15845
+ "kind": "document",
15846
+ "label": "Transcripts",
15847
+ "relationToSubject": "none"
15848
+ }
15849
+ ]
15850
+ },
15851
+ {
15852
+ "key": "interview-extract",
15853
+ "name": "Propose ideas from the answers",
15854
+ "category": "started",
15855
+ "goal": "Route interview only. For each strong answer, propose ideas at Idea status that quote the person's exact sentences; never invent claims or numbers. Link each idea to the take it came from with a `references` relation (the take's content-asset of Kind recording when it exists, else the take's file), so the take shows what was made from it.",
15856
+ "expectedOutputs": [
15857
+ {
15858
+ "kind": "idea",
15859
+ "label": "Ideas",
15860
+ "relationToSubject": "none"
15861
+ }
15862
+ ]
15863
+ },
15864
+ {
15865
+ "key": "interview-review",
15866
+ "name": "The person reviews the ideas",
15867
+ "category": "completed",
15868
+ "goal": "Route interview only. The person approves, edits or drops each idea. Report what was asked, what they said and what was proposed."
15869
+ },
15870
+ {
15871
+ "key": "session-gather",
15872
+ "name": "Gather context",
15873
+ "category": "planned",
15874
+ "goal": "Route session only. Read the piece and what it links, search the pod for what the person already thought about its subject, and post the sources in the room, each a link with one line on why it matters. Nothing is written into the piece. A run starts here without moving the piece.",
15875
+ "criteria": [
15876
+ {
15877
+ "key": "session-sources-posted",
15878
+ "statement": "The room lists the piece's linked sources and what the pod already holds on its subject, each as a link.",
15879
+ "check": {
15880
+ "kind": "judge"
15881
+ }
15882
+ }
15883
+ ]
15884
+ },
15885
+ {
15886
+ "key": "session-questions",
15887
+ "name": "Questions",
15888
+ "category": "started",
15889
+ "goal": "Route session only. Ask one open question at a time in the session room, built on the sources and the last answer, and keep each answer verbatim. Never suggest an answer and never write a sentence of the piece. Stop when the person says so or the timebox (<minutes> minutes) nears its end.",
15890
+ "criteria": [
15891
+ {
15892
+ "key": "session-answers-kept",
15893
+ "statement": "Each question was asked alone, none contains its answer, and every answer is kept verbatim in the room.",
15894
+ "check": {
15895
+ "kind": "judge"
15896
+ }
15897
+ }
15898
+ ]
15899
+ },
15900
+ {
15901
+ "key": "session-thesis",
15902
+ "name": "Thesis",
15903
+ "category": "started",
15904
+ "goal": "Route session only. Ask the person for the piece's claim in one or two sentences, offering only their own strongest lines to choose from."
15905
+ },
15906
+ {
15907
+ "key": "session-draft",
15908
+ "name": "Draft",
15909
+ "category": "started",
15910
+ "gate": {
15911
+ "kind": "human"
15912
+ },
15913
+ "onFail": {
15914
+ "toStage": "session-questions"
15915
+ },
15916
+ "goal": "Route session only. Ask the person the order of their answers, then lay them out with the thesis first as a proposal of the piece's document. Only joining words may be added, marked as yours. The person approves the draft; a rejected draft goes back to the questions. Once it is approved, move the piece to Drafting through the status door (synap_update_entity, expectedStatus its current one).",
15917
+ "expectedOutputs": [
15918
+ {
15919
+ "kind": "document",
15920
+ "label": "Draft (the person's answers, in their order)",
15921
+ "relationToSubject": "none"
15922
+ }
15923
+ ]
15924
+ }
15925
+ ],
15926
+ "criteria": [
15927
+ {
15928
+ "key": "no-twins",
15929
+ "statement": "No idea created duplicates an existing one: the ideas already there are enriched or linked.",
15930
+ "check": {
15931
+ "kind": "judge"
15932
+ }
15933
+ },
15934
+ {
15935
+ "key": "own-words",
15936
+ "statement": "Each idea's content keeps the person's own words, with no slogan and no embellished rewording.",
15937
+ "check": {
15938
+ "kind": "judge"
15939
+ }
15940
+ },
15941
+ {
15942
+ "key": "every-idea-linked",
15943
+ "statement": "Every idea created is linked to its source (the thought or the take) and to a series or a pillar.",
15944
+ "check": {
15945
+ "kind": "judge"
15946
+ }
15947
+ },
15948
+ {
15949
+ "key": "fragile-claims-questioned",
15950
+ "statement": "Every fragile factual claim has a research question; no assumed opinion has one.",
15951
+ "check": {
15952
+ "kind": "judge"
15953
+ }
15954
+ },
15955
+ {
15956
+ "key": "one-thesis-one-analogy",
15957
+ "statement": "Each piece proposed fits in one thesis and one analogy, the rest being listed in the parking lot.",
15958
+ "check": {
15959
+ "kind": "human"
15960
+ }
15961
+ },
15962
+ {
15963
+ "key": "person-writes-the-piece",
15964
+ "statement": "In a session, every sentence of the thesis and the draft is the person's own, from their answers, apart from marked joining words.",
15965
+ "check": {
15966
+ "kind": "judge"
15967
+ }
15968
+ }
15969
+ ]
15970
+ },
15971
+ {
15972
+ "name": "Make the stills (from a board)",
15973
+ "description": "The one recipe of the stills: SHAPE a composition with the person from their own words, make the STILLS sets of its approved board (one per format: deck 16:9, carousel 4:5, square 1:1), propose what to make NEXT from them, and POST an approved set as a carousel or a deck. The `step` param picks the step; a stills set is an output of the piece with its own status, and the board stays editable. An app finds the stills maker as the recipe that declares the param `formats`, the shaper as the one that declares `intent`.",
15974
+ "goalTemplate": "This recipe has four steps, picked by {step} (stills when empty): SHAPE helps the person shape a composition from their own words to a script and a board (the desk's companion); STILLS makes the stills sets of an approved board in the formats asked; NEXT proposes what to make next from the stills; POST posts an approved stills set as a carousel or a deck. Run ONLY the stages of your step: set currentStage straight to the first stage of that step (shape-desk, sets, next-read or post-board) and skip every other step's stages, then finish with learn. The rules of the shape, next and post steps are the first words of their first stage (shape-desk, next-read, post-board). STEP STILLS: Make the stills of the composition {composition} in these formats: {formats} (comma-separated keys among deck-16x9 = 1920x1080, aspect-ratio 16:9; carousel-4x5 = 1080x1350, aspect-ratio 4:5; square-1x1 = 1080x1080, aspect-ratio 1:1). IN PLACE ON A CAROUSEL PIECE (v5; Content Studio design I, person 19 Nov 2026, spec 6395a4ef \xA72 rule 3): read {composition}'s properties once (synap_get_entity). When its content-format is carousel-linkedin, carousel-instagram or carousel-both, {composition} IS the one stills set, at carousel-4x5 whatever {formats} says: fill THAT piece's slides in place (their meaning, candidates, pictures and layout, in its own document) and create no new composition and no derived_from edge. Below, read 'the set' as {composition} itself and 'the board' as the piece {composition} is derived_from (read only: never written, its status never moved); {composition}'s own status moves as a set's does (generating, then in_review); What next is not started in place (the carousel's page offers its next step). Otherwise (no content-format, or any other) {composition} is a board and everything below applies as written. EVERY PICTURE SERVES ITS FRAME: before proposing anything for a slide, read what the frame says and shows (its onScreen words, voice, sentence and sketch) and write its `meaning`, one line on what this frame must make the viewer feel or understand; every candidate is chosen for that meaning and says why in its note. A generic brand object is proposed only when the frame is about the brand itself. WORK IN SMALL STEPS: a turn holds only a handful of tool calls, so do one unit (one set, or one or two slides) per step, write it, then go on; never redo a step whose result is already in a set's document. RESUME FROM THE DOCUMENTS, NEVER FROM A SEARCH: the stills sets are found with synap_get_relations on {composition} (content-compositions --derived_from--> it), never by searching or listing compositions; where a slide stands is read from its fields (sketchSummary, meaning, laidOutAt, variantsAt, chosen, generatedAt, review). READ EACH SOURCE ONCE: the board's document in stage Open the sets only; the brand kit and identity document in stage Brand only (its values go into each set's `brand` block); never read the kind's schema. The person creates, you help: their board is the source and is never overwritten, and its status is never moved by this run (the board stays where the person left it, and stays editable): only each stills SET's status moves. ONE stills set per format: a content-composition named \"<board title> \xB7 Deck 16:9\" (or Carousel 4:5, Square 1:1), linked --derived_from--> the board, properties exactly aspect-ratio, render-engine layered and status generating; its document holds the JSON Content Studio reads: size (w, h), format, script and intent copied from the board, recipe (playbookId = this playbook, name), source (compositionId, documentId, revision), brand, and slides[] with per slide n, sentence, onScreen, voice, sketch with its fileId only (never copy the drawing), sketchSummary and meaning. Each format is laid out on its own grid: never crop one format from another. Candidates use the existing contract (id, source library|openverse|generated, entityId, fileId, url https only, thumbUrl, title, licence, attribution, landingUrl, note = why it fits THIS frame, prompt). You never write chosen, kept, textOnly or an approved/redo review: those are the person's. After each stage, advance this run's currentStage and claim its outputs.",
15975
+ "subjectProfile": {
15976
+ "profileSlug": "content-composition"
15977
+ },
15978
+ "activators": [
15979
+ {
15980
+ "on": "manual",
15981
+ "mode": "propose"
15982
+ }
15983
+ ],
15984
+ "params": [
15985
+ {
15986
+ "name": "composition",
15987
+ "type": "entity",
15988
+ "label": "Composition (the board, the stills set, or the piece to shape)",
15989
+ "required": true
15990
+ },
15991
+ {
15992
+ "name": "step",
15993
+ "type": "choice",
15994
+ "label": "Step: shape, stills, next or post",
15995
+ "options": [
15996
+ "shape",
15997
+ "stills",
15998
+ "next",
15999
+ "post"
16000
+ ],
16001
+ "default": "stills"
16002
+ },
16003
+ {
16004
+ "name": "formats",
16005
+ "type": "text",
16006
+ "label": "Formats (step stills), comma-separated: deck-16x9, carousel-4x5, square-1x1",
16007
+ "default": "deck-16x9"
16008
+ },
16009
+ {
16010
+ "name": "intent",
16011
+ "type": "text",
16012
+ "label": "What you want to make, in your words (step shape, optional)"
16013
+ },
16014
+ {
16015
+ "name": "makes",
16016
+ "type": "text",
16017
+ "label": "What you already want to make, in your words (step next, optional)"
16018
+ },
16019
+ {
16020
+ "name": "stills",
16021
+ "type": "entity",
16022
+ "label": "Stills set to post (step post, optional)"
16023
+ },
16024
+ {
16025
+ "name": "platform",
16026
+ "type": "text",
16027
+ "label": "Platform it is meant for (step post, optional)"
16028
+ }
16029
+ ],
16030
+ "executor": "is-agent",
16031
+ "status": "active",
16032
+ "stages": [
16033
+ {
16034
+ "key": "shape-desk",
16035
+ "name": "On the desk",
16036
+ "category": "started",
16037
+ "tier": "deep",
16038
+ "goal": "Step shape only. Rules of this step: Help the person shape the composition <composition>. Their words: <intent>. The person creates, you help: the composition page is their desk (the document's `script`, its frames with sketches and on-screen/voice text, takes linked to it, ideas pulled in). Talk with them in this run's room. Never overwrite their words; suggestions are marked and live next to their text. Read the brand kit, the content guidelines and the brand's identity document. Everything you decide with them is a pod write (a room message, a decision, a document revision). Read what is on the desk (script text, frames, linked takes and their transcripts, ideas linked used_in the composition). Look through the idea bank (posts at the post lifecycle's first open option) and recent captures for what fits; propose which ideas to use or merge and why, in the room. Answer the person's questions (what should I start, what goes together). Nothing is generated.",
16039
+ "subjectStatus": "intent"
16040
+ },
16041
+ {
16042
+ "key": "shape-script",
16043
+ "name": "Reach a script",
16044
+ "category": "started",
16045
+ "tier": "deep",
16046
+ "goal": "Step shape only. With the person, turn the desk into a script in the composition document's `script` and, when they want, one frame per beat on the board (their text stays theirs; your draft is a suggestion they accept, edit or reject). Ask them to confirm the script (confirm ask).",
16047
+ "gate": {
16048
+ "kind": "human"
16049
+ },
16050
+ "onFail": {
16051
+ "toStage": "shape-desk"
16052
+ },
16053
+ "subjectStatus": "board"
16054
+ },
16055
+ {
16056
+ "key": "shape-handover",
16057
+ "name": "Hand over to Make the stills",
16058
+ "category": "completed",
16059
+ "tier": "quick",
16060
+ "goal": "Step shape only. This composition is the board and stays the source. Ask which formats to make (choose ask, allowOther, one recommended from the script: a pitch or talk gives deck-16x9, a social piece carousel-4x5, both are fine). Then start the recipe that declares the param formats (Make the stills) on THIS composition with run_playbook (composition = this composition, formats = their pick, parentSessionId = this run). If the person only recorded a take and wants it edited, start the recipe that declares take instead. Post the run link in the room and close. Pieces (videos, posts) are proposed later by What next, from the stills."
16061
+ },
16062
+ {
16063
+ "key": "sets",
16064
+ "name": "Open the stills sets",
16065
+ "category": "started",
16066
+ "tier": "quick",
16067
+ "goal": "Step stills only. IN PLACE (the composition this run is on carries a carousel content-format, see the goal): (1) read its own document once; if it already holds slides[] (the person's plan: words and a sketch per slide), keep them and add only what the set JSON lacks (size 1080x1350, format carousel-4x5, recipe, source = the piece it is derived_from, a sketchSummary per slide); if it holds none, find the piece it is derived_from (synap_get_relations), read that board's document once and seed slides[] from its frames as step (3) below does for a new set; write it in ONE revision of the composition's own document; (2) set aspect-ratio 4:5 and render-engine layered on it when missing and move its status to generating through the status door. Create no composition and link nothing. Post its link in the room, then advance currentStage to brand. OTHERWISE (a board): Steps: (1) read the board's document once (synap_get_document by the board's documentId); while its frames are in front of you, write for each frame a `sketchSummary`: one line naming what the drawing shows (shapes and their arrangement, arrows, the words written in it and where), e.g. 'three overlapping circles labelled simple, secure, 100% personalisable'; (2) synap_get_relations on the board: a content-composition --derived_from--> it whose document recipe.playbookId is this playbook and whose format matches is that format's set; (3) per missing format, create the set as the goal says, in ONE call with its document, and link it --derived_from--> the board; per existing set, sync the text of slides the person has not approved, add new frames, mark sourceGone on a slide whose frame left the board, drop any copied drawing (keep sketch.fileId), and add sketchSummary where missing. Post the sets' links in the room in one message, then advance currentStage to brand.",
16068
+ "expectedOutputs": [
16069
+ {
16070
+ "kind": "content-composition",
16071
+ "label": "Stills sets (one per format)",
16072
+ "optional": true,
16073
+ "relationToSubject": "derived_from"
16074
+ }
16075
+ ]
16076
+ },
16077
+ {
16078
+ "key": "brand",
16079
+ "name": "Brand",
16080
+ "category": "started",
16081
+ "tier": "quick",
16082
+ "goal": "Step stills only. Skip when every set already has a `brand` block. Once per run: read the brand kit (the pod's brand kit for the board's project) and only the colour, type and ground parts of the brand's identity document (read it with a limit; the kit wins on a conflict). Write into each set's document a `brand` block: grounds (name and hex), accent (hex, at most two uses per slide), title, body and mono fonts, minimum sizes for that format, kit hash. Later stages read this block and never these sources again. Advance currentStage to meaning."
16083
+ },
16084
+ {
16085
+ "key": "meaning",
16086
+ "name": "Read each frame",
16087
+ "category": "started",
16088
+ "tier": "deep",
16089
+ "goal": "Step stills only. One or two slides per step, resuming at the first slide without `meaning`. For the slide: read its onScreen words, voice and sentence, and its sketch: look at the sketch image (the file entity of sketch.fileId) when your tools can show you an image, else use its sketchSummary. Then write the slide's `meaning`: ONE line saying what this frame must make the viewer feel or understand, in the frame's own terms (e.g. for a frame titled 'Your data, your rules': 'your data stays yours, whoever hosts it'). Also write `pictureRole`: what a picture should do on this frame (show the idea, give an example, set the mood, or none: the words carry it alone). The same slide n in every set gets the same meaning: write it to each set in the same step. A slide whose words already carry it fully gets pictureRole none and a one-line note proposing text only (the person decides). Advance currentStage to layout when every slide has a meaning."
16090
+ },
16091
+ {
16092
+ "key": "layout",
16093
+ "name": "Lay out the slides (pass 1)",
16094
+ "category": "started",
16095
+ "tier": "standard",
16096
+ "goal": "Step stills only. Skip slides that already have laidOutAt. Set by set (the first format first), a few slides per step: from the set's `brand` block, the slide's words and its meaning, write the slide's ground, layers (text layers, and the picture area sized for its pictureRole, whose `tells` restates the meaning; none when pictureRole is none; layer shapes per the carousel kit spec, read once if not already in the set) and laidOutAt, in one revision of that set's document per step. A preview still is written only when a render capability is in reach; otherwise the slide editor draws the layers. Advance currentStage to variants when every slide of every set has laidOutAt."
16097
+ },
16098
+ {
16099
+ "key": "variants",
16100
+ "name": "Propose pictures for each frame (pass 2)",
16101
+ "category": "started",
16102
+ "tier": "deep",
16103
+ "goal": "Step stills only. ONE slide per step (two when both are short), resuming at the first slide with a meaning, a pictureRole other than none and no `variantsAt`. A slide whose candidates were written before it had a meaning (no variantsAt) is redone: replace the agent's candidates, keep any with addedBy person and any the person chose or kept. For the slide, from its meaning only: (1) write ONE generated direction: a prompt built from the meaning and the sketch (the scene, the objects, the metaphor the frame needs; brand look: the set's brand grounds and accent; blank where a mark goes); generate it as a draft (fal_generate_image, one image, draft resolution) when that action is in reach, else keep it as a prompt-only candidate; (2) ONE library search whose query is the meaning's key nouns (brand-assets, then content-assets); keep a hit only if it shows what the meaning says; a generic brand object (the Pod, the mark, a logo poster) only when the frame is about the brand itself; (3) at most one Openverse query, only when the meaning names a real-world thing, with licence, attribution and landingUrl. Then SELF-CHECK each candidate: 'would the person see the link between this picture and these words?' Drop every candidate that fails; never pad. Write 1 to 3 candidates, each with a `note` of one line saying why it fits THIS frame and naming the words or the sketch element it serves; the generated one first. Write them, with variantsAt (ISO), to the same slide in every set in one step (the fit per aspect happens at generation). Never write chosen, kept or textOnly; a slide with wantsMore gets new candidates in that direction (leave the note). When every slide is done, post ONE room message listing the slides waiting for a pick, advance currentStage to generate and end the turn: do not poll for picks."
16104
+ },
16105
+ {
16106
+ "key": "next-read",
16107
+ "name": "Read the stills",
16108
+ "category": "started",
16109
+ "tier": "standard",
16110
+ "goal": "Step next only. Rules of this step: Propose what to make next from the composition <composition>. The person's own words, if any: <makes>. The board is the SOURCE; its stills sets are the content-compositions --derived_from--> it whose document recipe.playbookId is the playbook that declares the param formats; what was already made is everything --derived_from--> the board or one of its sets (pieces, posts). Write your proposals into the board's document as `next`, a list ranked best first, each item: id (stable, e.g. n1), rank, make (a short slug: export-pdf, post-carousel, post-deck, motion-video, record-presentation, or a new one), label (the words the person reads), reason (one line, specific to this composition: campaign, platform, audience, effort), from (stillsId and format of the set it starts from), postFormat and platform when it ends as a post, and EITHER recipe (playbookId plus the params to pass: stills = the set, platform, format; composition = 'new' when the app must first create a piece derived_from the set, or the set id when the recipe works on the set itself) OR action (kind file with fileId: a file that already exists, e.g. the deck's PDF; or kind booth with stillsId: record with the deck as prompter, then the recorded-video recipe). Also write nextAt (ISO) and nextBy (this run's session id). Keep the items the person already picked or dismissed (their picked or dismissed fields are theirs, written by the app); replace only the others. Never propose a make that already exists for the same set and platform unless it is a new version, and say so. Read the brand kit, the content guidelines, the campaign calendar and the brand's identity document. Each proposal is a suggestion: nothing is made until the person picks it. Read the board and each of its stills sets: format, status, slide count, approved slides, exports (pdfFileId, slideFileIds). Read what was already made from it (pieces and posts --derived_from--> the board or a set, with their recipe and status), the campaign calendar's open dates and the platforms in use. Nothing is written."
16111
+ },
16112
+ {
16113
+ "key": "next-propose",
16114
+ "name": "Propose the makes",
16115
+ "category": "started",
16116
+ "tier": "deep",
16117
+ "goal": "Step next only. Write the ranked `next` list on the board's document (one new revision) as the goal says. The usual makes, only where they fit: a deck-16x9 set gives export-pdf (action file = its exports.pdfFileId; if no PDF yet, recipe = Post the stills to build it) and record-presentation (action booth, then the recipe that declares the param take, with stills = the deck); a carousel-4x5 or square-1x1 set gives post-carousel (recipe = the recipe that declares stills and posts: Post the stills, composition = the set); any set gives motion-video (recipe = Make an animated video, composition 'new', stills = the set, format from the set). A deck may also be posted as a document post (post-deck, postFormat Deck when that value exists). Rank by fit with the campaign calendar and platform, then by effort; one line of reason each. If the person's words name a make no recipe covers, draft a NEW recipe as a playbook proposal on content-composition (stages reusing the shared units and the same document contracts), list it with recipe.proposalId instead of playbookId, and ask them to approve it. Post the list in this run's room."
16118
+ },
16119
+ {
16120
+ "key": "post-board",
16121
+ "name": "Board",
16122
+ "category": "started",
16123
+ "goal": "Step post only. Rules of this step: Post the stills of <composition> (stills set: <stills>) for <platform>, with the person. WITH A STILLS SET (the stills param, or <composition> itself when its document has a source and a format and its recipe declares the param formats): the set's approved slides and its exports ARE the draft; nothing is regenerated; start at the Post stage. WITHOUT ONE (an older composition): run the frame-by-frame carousel flow from the Board stage, on the same contracts as before: the composition document is the board (slides[] with sketch, onScreen, voice, candidates, chosen, kept, wantsMore, review, preview); never replace the person's words or sketches; never write chosen, kept, textOnly or an approved/redo review. Read the brand kit and the carousel-format skill first. Save every change as a new revision; every pick, rejection and comment is a pod write. Older compositions only (skip with a stills set). The person writes, draws or does both. Nothing is generated here."
16124
+ },
16125
+ {
16126
+ "key": "post-read",
16127
+ "name": "Read the board",
16128
+ "category": "started",
16129
+ "tier": "deep",
16130
+ "goal": "Step post only. Older compositions only (skip with a stills set). Read every frame (sketch image, onScreen, voice) and write back a clean frame list with flags for what is missing; fill only gaps, marked as suggestions; ask the person to confirm (confirm ask).",
16131
+ "gate": {
16132
+ "kind": "human"
16133
+ },
16134
+ "onFail": {
16135
+ "toStage": "post-board"
16136
+ }
16137
+ },
16138
+ {
16139
+ "key": "post-assets",
16140
+ "name": "Choose assets",
16141
+ "category": "started",
16142
+ "tier": "standard",
16143
+ "goal": "Step post only. Older compositions only (skip with a stills set). Per frame, candidates before anything is generated, in the exact contract Content Studio reads: library first, then Openverse (licence, attribution, landingUrl), then 2-3 generated directions. Never write chosen, kept or textOnly; follow wantsMore notes. Done when every frame has chosen.",
16144
+ "gate": {
16145
+ "kind": "human"
16146
+ }
16147
+ },
16148
+ {
16149
+ "key": "post-generate",
16150
+ "name": "Generate frame by frame",
16151
+ "category": "started",
16152
+ "tier": "standard",
16153
+ "goal": "Step post only. Older compositions only (skip with a stills set). One frame at a time with the carousel kit (spec 578e0974-a5e4-4856-89f7-7ff940c5725c): write layers, generatedAt and review state waiting in one revision; re-read before going on; redo frames following their note; leave frames the person approved or edited."
16154
+ },
16155
+ {
16156
+ "key": "post-review",
16157
+ "name": "Review the whole",
16158
+ "category": "started",
16159
+ "goal": "Step post only. Older compositions only (skip with a stills set). The person presses Review the whole; the slides are exported and linked; take final comments; a frame sent back returns to Generate.",
16160
+ "gate": {
16161
+ "kind": "human"
16162
+ },
16163
+ "onFail": {
16164
+ "toStage": "post-generate"
16165
+ }
16166
+ },
16167
+ {
16168
+ "key": "post-approved",
16169
+ "name": "Approved",
16170
+ "category": "completed",
16171
+ "goal": "Step post only. Older compositions only (a stills set is already approved). The person approves the composition (their own move).",
16172
+ "gate": {
16173
+ "kind": "human"
16174
+ }
16175
+ },
16176
+ {
16177
+ "key": "post",
16178
+ "name": "Post",
16179
+ "category": "completed",
16180
+ "tier": "standard",
16181
+ "goal": "Step post only. From the approved set (refuse and say why if it is not approved). Pick the post format from the set's format: carousel-4x5 or square-1x1 gives Carousel (a single slide gives Image Post); deck-16x9 gives Deck when post-format offers it, else Carousel with the PDF as a LinkedIn document, said in the room. Check the set against the platform's limits (slide count, cover, text size); propose fixes on the set as notes, never silently. Create one post (post-format, post-platform, hook from slide 1) --derived_from--> the set, --references--> each slide file and the PDF from the set's exports, and the set --made_for--> the post. Ask the person to confirm the post (confirm ask). Then start Produce Content on it (run_playbook: post, platform, format, composition = the set, parentSessionId = this run): the set's approved slides are the draft and the slides' sentences are the script. Post the links in the room. The set's status does not move: the post carries its own.",
16182
+ "gate": {
16183
+ "kind": "human"
16184
+ }
16185
+ },
16186
+ {
16187
+ "key": "learn",
16188
+ "name": "Learn from the run",
16189
+ "category": "completed",
16190
+ "tier": "deep",
16191
+ "goal": "Whatever the step, compare what you proposed with what the person kept, changed, redid or dismissed (their picks, redo notes, own edits, the order of the `next` list). File proposals only (guideline, skill or recipe changes), one line of evidence each. Nothing to learn is a valid result: say so."
16192
+ }
16193
+ ],
16194
+ "expectedOutputs": [
16195
+ {
16196
+ "kind": "content-composition",
16197
+ "label": "Stills sets (one per format)",
16198
+ "optional": true,
16199
+ "relationToSubject": "derived_from"
16200
+ }
16201
+ ],
16202
+ "criteria": [
16203
+ {
16204
+ "key": "sets-open",
16205
+ "statement": "One stills set per requested format exists, derived_from the board, with no sketch drawings copied; in place, the carousel piece itself holds the set and no new composition was made.",
16206
+ "check": {
16207
+ "hint": "synap_get_relations on the board; each set's slides carry sketch.fileId only",
16208
+ "kind": "judge"
16209
+ }
16210
+ },
16211
+ {
16212
+ "key": "frames-read",
16213
+ "statement": "Every slide has a sketchSummary and a one-line meaning that a reader of the frame's words and sketch would agree with.",
16214
+ "check": {
16215
+ "hint": "compare each slide's meaning with its onScreen words and sketchSummary",
16216
+ "kind": "judge"
16217
+ }
16218
+ },
16219
+ {
16220
+ "key": "candidates-fit",
16221
+ "statement": "Every slide that needs a picture has 1 to 3 candidates, each with a note naming the frame's words or sketch it serves, at least one a generated draft whose prompt comes from the meaning; no generic brand object on a frame that is not about the brand.",
16222
+ "check": {
16223
+ "hint": "for each candidate: would the person see the link between this picture and these words?",
16224
+ "kind": "judge"
16225
+ }
16226
+ },
16227
+ {
16228
+ "key": "slides-laid-out",
16229
+ "statement": "Every slide of every set has laidOutAt and layers built from the set's brand block.",
16230
+ "check": {
16231
+ "kind": "judge"
16232
+ }
16233
+ }
16234
+ ]
16235
+ },
16236
+ {
16237
+ "name": "Make a film (from the board)",
16238
+ "description": "The one film recipe: an animated film from an approved board (shot by shot), a presenter explainer (the person on camera, graphics that carry every claim) or the enhancement of a recorded video. The `kind` param picks the route. No motion counts as validated until the person approves it, per shot or per moment, as a slot answer; the board is the law. An app finds the film recipe as the one that declares the param `stills`.",
16239
+ "goalTemplate": "This recipe makes one film, in the way `kind` says (animated when empty): ANIMATED is a film from an approved board, shot by shot; PRESENTER is the person on camera with graphics that carry every claim; RECORDED enhances the person's recording with overlays, captions and cuts they approve one by one. Run ONLY the stages of your kind: set currentStage straight to the first stage of that kind (open, presenter-direct or recorded-read) and skip every other kind's stages. KIND ANIMATED: Make the film {composition} from its approved board ({board}), shot by shot, with the person (stills set: {stills}; frame format: {format}; platform: {platform}; brief: {brief}). THE BOARD IS THE LAW: every shot reproduces its board frame's copy, theme, elements and layout, never redesigned; a stills set, when given, is the board. NO MOTION IS VALIDATED until the person approves it per shot. The person creates, you help: never replace their words or sketches. Load the video-direction skill and the skills each stage names first; the brand kit and the brand's identity document. ANCHOR EVERYTHING ON THE FILM: this session's subject is the composition (templateId + subjectEntityId); pass sessionId on every write; every render, sheet, animatic, clip and cut is a pod file linked to the composition; each shot's clip is referenced from shots[n]; the final cut's file id goes in the composition's render-mp4; stage moves move the composition's status (approved is the person's move only); every approval is a session slot answer whose ref is the file, never a chat message. FILM MOTION: each act is one continuous timeline. Shots hand over by carry, content morph, zoom-through or match cut, never through plain ground (0.5 s clip handles are for standalone clips only). A camera move may end a shot. Each act has one hero hold of 2 s or more; reading time governs the other holds. The 2D UI acts are flat and crisp on the board's paper or ink; glass and depth appear only in the Blender depth moments. A film shot renders in its board theme and the film's format only. VOICE: one the person records, or none (music + SFX); never synthesized. Renders run on the devbox (Render on the devbox); Blender runs only through the media-blender capability, never over a tunnel. Every pick, verdict and change is a pod write; save each change as a new document revision. The review contract for frames stays: you write review state waiting with generatedAt and a preview fileId (kind still or clip); the person approves, or asks for a redo with a note. The rules of the presenter and recorded kinds are the first words of their first stage (presenter-direct, recorded-read).",
16240
+ "subjectProfile": {
16241
+ "profileSlug": "content-composition"
16242
+ },
16243
+ "activators": [
16244
+ {
16245
+ "on": "manual",
16246
+ "mode": "propose"
16247
+ }
16248
+ ],
16249
+ "params": [
16250
+ {
16251
+ "name": "composition",
16252
+ "type": "entity",
16253
+ "label": "Composition (the film)",
16254
+ "required": true
16255
+ },
16256
+ {
16257
+ "name": "kind",
16258
+ "type": "choice",
16259
+ "label": "Kind: animated, presenter or recorded",
16260
+ "options": [
16261
+ "animated",
16262
+ "presenter",
16263
+ "recorded"
16264
+ ],
16265
+ "default": "animated"
16266
+ },
16267
+ {
16268
+ "name": "board",
16269
+ "type": "entity",
16270
+ "label": "Approved board: the file or the board knowledge entity (kind animated, optional if the composition already links it)"
16271
+ },
16272
+ {
16273
+ "name": "brief",
16274
+ "type": "text",
16275
+ "label": "Brief or sketch link (optional)"
16276
+ },
16277
+ {
16278
+ "name": "platform",
16279
+ "type": "text",
16280
+ "label": "Platform it is first meant for (optional)"
16281
+ },
16282
+ {
16283
+ "name": "format",
16284
+ "type": "text",
16285
+ "label": "Frame format (optional, e.g. 16x9, 9x16, 1x1, 4x5; presenter default 9x16)"
16286
+ },
16287
+ {
16288
+ "name": "stills",
16289
+ "type": "entity",
16290
+ "label": "Stills set to animate or presented in the recording (optional; for animated it then is the board)"
16291
+ },
16292
+ {
16293
+ "name": "take",
16294
+ "type": "entity",
16295
+ "label": "The recording (kind recorded: a take or a piece of one; kind presenter: if it already exists)"
16296
+ }
16297
+ ],
16298
+ "executor": "is-agent",
16299
+ "status": "active",
16300
+ "guidance": [
16301
+ {
16302
+ "ref": "skill:video-direction"
16303
+ }
16304
+ ],
16305
+ "stages": [
16306
+ {
16307
+ "key": "open",
16308
+ "name": "0 \xB7 Open on the film",
16309
+ "category": "planned",
16310
+ "tier": "quick",
16311
+ "goal": "Kind animated only. Anchor the run on the composition before any work. Open (or resume) the focus session with templateId = this playbook and subjectEntityId = the composition. Pass sessionId on every write from now on: a write without it creates a stray receipt session. Check that the composition lives in Content OS. If its workspace is null, file a finding; do not move it yourself. Recall first: synap_ask the film's gotchas, the person's verdicts and decisions. WRITES ON THE COMPOSITION: the session\u2192composition edge; status \u2192 board. Measured by the check gate on stage 1.",
16312
+ "subjectStatus": "board",
16313
+ "criteria": [
16314
+ {
16315
+ "key": "session-on-subject",
16316
+ "statement": "The session's subject is the composition and every write of this run carries its sessionId",
16317
+ "check": {
16318
+ "hint": "synap_get_session: subjectEntityId = composition; no receipt sessions minted by this run",
16319
+ "kind": "evidence",
16320
+ "evidenceKey": "session-on-subject"
16321
+ }
16322
+ }
16323
+ ]
16324
+ },
16325
+ {
16326
+ "key": "story",
16327
+ "name": "0.5 \xB7 Story \u2605",
16328
+ "category": "planned",
16329
+ "tier": "deep",
16330
+ "goal": "Kind animated only. The person approves what the film says before any board is drawn. Write the story from the film's creative direction document: one promise in one sentence, the arc (pain \u2192 turn with the product named \u2192 proof with one protagonist \u2192 scale \u2192 promise; tagline and brand mark last), and for each beat its need, the general feature, the on-screen headline, the picture and the one-sentence meaning of the transition into it (no meaning \u2192 a cut). List the product components each beat needs with their state (shipped / to build / concept) and the marketplace connectors shown. The person approves it as a slot answer; only then are boards drawn from it.",
16331
+ "gate": {
16332
+ "kind": "human"
16333
+ },
16334
+ "onFail": {
16335
+ "toStage": "open"
16336
+ },
16337
+ "expectedOutputs": [
16338
+ {
16339
+ "kind": "document",
16340
+ "label": "Story (approved by the person)"
16341
+ }
16342
+ ],
16343
+ "criteria": [
16344
+ {
16345
+ "key": "story-approved",
16346
+ "statement": "A story document (promise, arc, one protagonist, per-beat need/feature/headline/transition meaning, component states) exists and the person approved it as a slot answer before any board was drawn",
16347
+ "check": {
16348
+ "kind": "human"
16349
+ }
16350
+ }
16351
+ ]
16352
+ },
16353
+ {
16354
+ "key": "board",
16355
+ "name": "1 \xB7 Board is law",
16356
+ "category": "planned",
16357
+ "tier": "standard",
16358
+ "goal": "Kind animated only. Every approved board frame is on the pod, linked to the composition, and seeds one shot. ENTRY GATE (check): stage 0's criteria (session-on-subject). Skill: film/shot-design. File the approved board as pod files (sheet + one page per frame) and a knowledge entity stating the law: a shot reproduces its board frame's copy, theme, elements and layout. Link both to the composition. If it already exists, link it and do not refile. Then seed shots[] in the composition document, one entry per frame, in one revision: {n, boardRef (file + page), act, theme (paper|ink), copy (exact), elements (the board's own vocabulary: pills, beads hu/ai/tool/plain, the chain line, the network, the components StepsStrip, NextMoveRow\u2026), layout}. List the person's objects and verbs from his brief or sketch: the his-language criterion checks them at review. A board that only lives on a computer is how v2 drifted. WRITES ON THE COMPOSITION: board files with relation references; the knowledge entity linked; shots[] seeded. Boards are drawn FROM the approved story (stage story); board-is-law applies only after the story check passes on the boards.",
16359
+ "gate": {
16360
+ "kind": "check"
16361
+ },
16362
+ "onFail": {
16363
+ "toStage": "open"
16364
+ },
16365
+ "subjectStatus": "board",
16366
+ "expectedOutputs": [
16367
+ {
16368
+ "kind": "file",
16369
+ "label": "Board (pod file, one page per frame)",
16370
+ "relationToSubject": "references"
16371
+ },
16372
+ {
16373
+ "kind": "document",
16374
+ "label": "Board knowledge: the law",
16375
+ "relationToSubject": "references"
16376
+ },
16377
+ {
16378
+ "kind": "document",
16379
+ "label": "shots[] seeded in the composition document"
16380
+ }
16381
+ ],
16382
+ "criteria": [
16383
+ {
16384
+ "key": "board-linked",
16385
+ "statement": "Every board frame (N/N, 15/15 for the launch film) is a pod file linked to the composition and has a shots[n] entry with theme and exact copy",
16386
+ "check": {
16387
+ "hint": "get_relations on the composition + the document's shots[]",
16388
+ "kind": "evidence",
16389
+ "evidenceKey": "board-linked"
16390
+ }
16391
+ }
16392
+ ]
16393
+ },
16394
+ {
16395
+ "key": "presenter-direct",
16396
+ "name": "Script and direction",
16397
+ "category": "started",
16398
+ "tier": "deep",
16399
+ "goal": "Kind presenter only. Rules of this kind: Make the presenter explainer <composition> with the person (recording: <take>; platform: <platform>; format: <format>). The person presents; the graphics carry every claim. The person creates, you help: their words and their recording are the source and are never altered (graphics, captions and cuts are added on top or proposed). Load the video-direction and facecam-edit skills first; the brand kit and the brand's identity document. WORK IN SMALL STEPS: a turn holds only a handful of tool calls, so do one stage's unit of work per step (one beat, one graphic), write it into the composition document, then go on; resume from the document's fields, never redo a step whose result is already there; find the take and assets by relation, never by search. Quote only words the person said or approved; never invent a claim or a number: every number on screen has a source the person gave. Same candidates and review contracts as the other recipes (review state waiting, approved or redo with a note; you never write chosen, kept, textOnly or approved). Renders run on the devbox (Render on the devbox) or the person's computer, never a cloud render. Every pick, rejection and comment is a pod write. From the composition's board or brief (read once), write in ONE revision of its document: the script as beats (n, the line the person says, the claim it makes, its source), a hook in the first 2 s (a line that shows something, repeated with rising stakes when the content allows, e.g. 'Look at this' three times), a `direction` block (logline, named style, palette, the one moment, ending: the only close-up for the last line, avoid list, least sure), and per beat a graphic: type (number as object with a tag, counter, comparison bars or scale, magnifier, source document with highlighter, lower third, map pin, word roll, product screen card, caption only), placement (in the scene beside the person, full-screen cutaway, or side card) and duration. Aim for graphics on screen at least half the runtime. Ask the person to confirm the script and the beats (the gate).",
16400
+ "gate": {
16401
+ "kind": "human"
16402
+ },
16403
+ "subjectStatus": "board"
16404
+ },
16405
+ {
16406
+ "key": "presenter-shoot",
16407
+ "name": "Plan the shoot",
16408
+ "category": "started",
16409
+ "tier": "quick",
16410
+ "goal": "Kind presenter only. Skip when a take is given. Write a one-screen framing plan into the document and post it in the room: wide, locked camera; the person in one third, the empty side where in-scene graphics will land; eyeline; the band layout of the format (footage band, subtitle band, room for graphics above and below); 4K if possible so the last line can be a punch-in close-up; the lines per beat as a prompter list. Hand the person ONE slot (an outcome, key take, owner human, blockedReason physical, ask act: record the take in the booth, then link it), and end the turn: the run resumes when the take exists."
16411
+ },
16412
+ {
16413
+ "key": "presenter-read",
16414
+ "name": "Align the take",
16415
+ "category": "started",
16416
+ "tier": "standard",
16417
+ "goal": "Kind presenter only. Get the take's word-level transcript in the ONE transcript shape (Work a take's contract: a content-asset of kind script whose File ID is the take's file; reuse it if it exists). If it reads as no speech (music only, repeated lines), stop and ask. Align each beat to the words (start and end on word boundaries, in the take's seconds), mark lines said differently from the script, and propose cuts for flubs and pauses (proposed, never applied). Write the beats' times into the document in one revision and ask the person to confirm the alignment and cuts.",
16418
+ "gate": {
16419
+ "kind": "human"
16420
+ }
16421
+ },
16422
+ {
16423
+ "key": "presenter-graphics",
16424
+ "name": "Make the graphics",
16425
+ "category": "started",
16426
+ "tier": "standard",
16427
+ "goal": "Kind presenter only. One beat per step, in order, with the scene-by-scene method and the reusable motion blocks when one fits: build the beat's graphic at the format's size (transparent for in-scene and side placements, full frame for a cutaway), numbers bound from the beat's source, never typed from memory; write its preview (a still or short clip over the take's frame), generatedAt and review state waiting in one revision. Re-read the document and the room before each beat; redo beats following their note. Resume at the first beat without generatedAt.",
16428
+ "subjectStatus": "generating"
16429
+ },
16430
+ {
16431
+ "key": "presenter-animatic",
16432
+ "name": "Animatic over the take",
16433
+ "category": "started",
16434
+ "tier": "quick",
16435
+ "goal": "Kind presenter only. Entered once every beat has an approved graphic preview. Build a low-resolution (540p) cut: the take with the approved cuts, each beat's graphic preview placed at its time and placement, burned-in captions, the band layout; no final motion. Render it where this run renders, store it linked to the composition, write `animatic` {fileId, at, total} in the document and post it in the room. The person approves the timing (the next stage's gate) or moves beats in the document.",
16436
+ "gate": {
16437
+ "kind": "human"
16438
+ }
16439
+ },
16440
+ {
16441
+ "key": "presenter-assemble",
16442
+ "name": "Assemble",
16443
+ "category": "started",
16444
+ "tier": "standard",
16445
+ "goal": "Kind presenter only. Entered only after the animatic is approved. On the devbox: the take as the base layer in the band layout (matte the person only where a graphic must sit behind them, Produce Content's matte order), every graphic at its beat in final motion, captions, the approved cuts, the closing punch-in; render one MP4 and store it linked to the composition. Read one contact sheet of it (1 frame per second) and grade: hook by 2 s, graphics on screen at least half the runtime, every number with its source, nothing from the avoid list.",
16446
+ "gate": {
16447
+ "kind": "human"
16448
+ }
16449
+ },
16450
+ {
16451
+ "key": "presenter-sound",
16452
+ "name": "Sound",
16453
+ "category": "started",
16454
+ "tier": "standard",
16455
+ "goal": "Kind presenter only. Light SFX with real-sfx under the voice (mix.py --voice-safe): a cue on each graphic's entrance and each counter's landing, never covering speech; a music bed ducked about 10 dB under the voice when the style calls for one. Store the MP4 and WAV linked to the composition."
16456
+ },
16457
+ {
16458
+ "key": "presenter-review",
16459
+ "name": "Review the whole",
16460
+ "category": "started",
16461
+ "goal": "Kind presenter only. Watch the whole with the person; a beat sent back returns to Make the graphics.",
16462
+ "gate": {
16463
+ "kind": "human"
16464
+ },
16465
+ "onFail": {
16466
+ "toStage": "presenter-graphics"
16467
+ },
16468
+ "subjectStatus": "in_review",
16469
+ "onApproved": "approved"
16470
+ },
16471
+ {
16472
+ "key": "presenter-approved",
16473
+ "name": "Approved",
16474
+ "category": "completed",
16475
+ "goal": "Kind presenter only. The person approves the composition (their own move). It can now be posted (Produce Content, a post derived_from this composition).",
16476
+ "gate": {
16477
+ "kind": "human"
16478
+ }
16479
+ },
16480
+ {
16481
+ "key": "presenter-learn",
16482
+ "name": "Learn from the run",
16483
+ "category": "completed",
16484
+ "tier": "deep",
16485
+ "goal": "Kind presenter only. Compare the script, beats, graphic types and framing plan you proposed with what the person changed, kept and redid; how the shoot went against the framing plan; how many turns each stage took. File proposals only, one line of evidence each. Nothing to learn is a valid result."
16486
+ },
16487
+ {
16488
+ "key": "recorded-read",
16489
+ "name": "Read the take",
16490
+ "category": "started",
16491
+ "tier": "deep",
16492
+ "goal": "Kind recorded only. Rules of this kind: Enhance the recording <take> into the composition <composition>, with the person (stills set presented: <stills>; platform: <platform>). The recording is the base and is never altered: everything is added on top (overlays, captions, cuts proposed, never applied without a yes). The person creates, you help: propose moments, they decide. Load the video-direction and facecam-edit skills first; the brand kit and the brand's identity document. Link the composition --derived_from--> the take, and --derived_from--> the stills set when one is given. The composition document's frames are MOMENTS: per slide moment (start, end in seconds of the take, on word boundaries), voice = the words said in that range, onScreen = the proposed overlay or caption text, a one-line note on the graphic type; the same candidates contract for assets and the same review contract (review state waiting, approved or redo with a note; generatedAt; preview fileId and kind still or clip) as the other recipes. WITH A STILLS SET: the person presented those slides; align each slide to the moment it is talked about (its sentence and onScreen against the transcript) and propose it as a full-screen cutaway or a side-by-side, its approved preview being the first candidate. Renders run on the devbox, never a cloud render. Every pick, rejection and comment is a pod write. Get the take's word-level transcript (hyperframes transcribe on the devbox if none is stored; store it as a content-asset of kind script linked to the take). If the transcript looks like no speech (music only: the same line repeated, or only 'Music' or 'Thank you'), stop and ask the person instead of finding moments in it. Find the moments that would gain from motion and give each an intent (one line: what the viewer must get) and ONE graphic type from this vocabulary: title card or kinetic phrase; number as an object (a counter with a tag that pops next to the thing it measures); comparison (bars with a delta, a scale, before and after); magnifier on a detail; source shown (the document, with the cited line highlighted); lower third (who is speaking); map or place pin; list as a word roll; product screen card; caption only; a cut (a pause worth removing). Mark at most one moment as the signature moment, and check the hook: what is on screen in the first 2 s, readable muted. Captions for the whole when the platform plays muted. With a stills set: one moment per slide where it is talked about, in slide order, plus the others above. Write one frame per moment (moment, voice, onScreen, intent, graphic type, note) plus a clip preview of the moment (cut to a new file, the take untouched). Ask the person to confirm, drop or adjust each moment.",
16493
+ "gate": {
16494
+ "kind": "human"
16495
+ },
16496
+ "onApproved": "board"
16497
+ },
16498
+ {
16499
+ "key": "recorded-assets",
16500
+ "name": "Choose assets",
16501
+ "category": "started",
16502
+ "tier": "standard",
16503
+ "goal": "Kind recorded only. Same as the other recipes: per moment, the matching still first when a stills set is given (source library, entityId or fileId of its preview), then library, then Openverse, then 2-3 generated directions; write candidates in the exact contract Content Studio reads; never write chosen, kept or textOnly; follow wantsMore notes. Done when every frame has chosen (text only is common here: a caption needs no picture).",
16504
+ "gate": {
16505
+ "kind": "human"
16506
+ },
16507
+ "subjectStatus": "generating"
16508
+ },
16509
+ {
16510
+ "key": "recorded-cues",
16511
+ "name": "Sound bed and cues",
16512
+ "category": "started",
16513
+ "tier": "standard",
16514
+ "goal": "Kind recorded only. SOUND FIRST: before any overlay is made, lock the sound. The recording is the audio anchor. With the person, choose the music bed (a library or licensed music file under the voice, or none: the person decides; never a synthesized voice). Then extract the cue map from the take and the bed (`npx hyperframes beats` or equivalent, plus the word-level transcript): voice onsets, sentence ends and pauses, and the bed's beats, hits, risers and silences, each with its timestamp in the take. Store the cue map as a pod file linked to the composition (or a `cues` block in the document) and the bed's file id in the document, in one revision. Ask the person to lock the bed and the cues; the overlays are then timed to them.",
16515
+ "expectedOutputs": [
16516
+ {
16517
+ "kind": "file",
16518
+ "label": "Music bed (or none) and cue map",
16519
+ "relationToSubject": "made_for"
16520
+ },
16521
+ {
16522
+ "ask": {
16523
+ "no": {
16524
+ "label": "Change the bed or the cues, with a note"
16525
+ },
16526
+ "yes": {
16527
+ "label": "Lock the sound",
16528
+ "recommended": true
16529
+ },
16530
+ "mode": "confirm",
16531
+ "prompt": "Lock the music bed (or no music) and the cue map the overlays will be timed to?",
16532
+ "stakes": "routine",
16533
+ "reversible": true,
16534
+ "consequence": "The overlays are made and timed to these cues; the Mix stage only mixes."
16535
+ },
16536
+ "kind": "approval",
16537
+ "label": "Person locks the sound bed and cues",
16538
+ "owner": "human"
16539
+ }
16540
+ ]
16541
+ },
16542
+ {
16543
+ "key": "recorded-generate",
16544
+ "name": "Make the overlays",
16545
+ "category": "started",
16546
+ "tier": "standard",
16547
+ "goal": "Kind recorded only. One overlay at a time (Make a scene method, transparent background, the take's frame size; a still is placed as a cutaway or side-by-side, not redrawn): time it to the locked cue map: it enters and leaves on a cue (a voice onset, a pause or a beat of the bed); write its preview (still or clip over the take's frame), generatedAt and review state waiting in one revision. Re-read the document and this run's room before going on; redo frames following their note. Next when the current one is approved."
16548
+ },
16549
+ {
16550
+ "key": "recorded-assemble",
16551
+ "name": "Assemble over the take",
16552
+ "category": "started",
16553
+ "tier": "standard",
16554
+ "goal": "Kind recorded only. On the devbox: the take as the base layer, the locked music bed (if any) under it, each approved overlay at its moment, captions if confirmed, the proposed cuts the person said yes to; render one MP4, store it linked to the composition."
16555
+ },
16556
+ {
16557
+ "key": "recorded-sound",
16558
+ "name": "Mix",
16559
+ "category": "started",
16560
+ "tier": "standard",
16561
+ "goal": "Kind recorded only. Mix only: no sound choice is made here (the bed and the cues were locked at Sound bed and cues; a change goes back there). Duck the music bed under the voice and master the loudness, then a short SFX polish with real-sfx under the voice (mix.py --voice-safe) for the sounds that must match exact picture events (the overlay entrances), never covering speech; store the MP4 and WAV linked to the composition."
16562
+ },
16563
+ {
16564
+ "key": "recorded-review",
16565
+ "name": "Review the whole",
16566
+ "category": "started",
16567
+ "goal": "Kind recorded only. Watch the whole with the person; a moment sent back returns to Make the overlays.",
16568
+ "gate": {
16569
+ "kind": "human"
16570
+ },
16571
+ "onFail": {
16572
+ "toStage": "recorded-generate"
16573
+ },
16574
+ "subjectStatus": "in_review",
16575
+ "onApproved": "approved"
16576
+ },
16577
+ {
16578
+ "key": "recorded-approved",
16579
+ "name": "Approved",
16580
+ "category": "completed",
16581
+ "goal": "Kind recorded only. The person approves the composition (their own move). It can now be posted (Produce Content, a post derived_from this composition).",
16582
+ "gate": {
16583
+ "kind": "human"
16584
+ }
16585
+ },
16586
+ {
16587
+ "key": "recorded-learn",
16588
+ "name": "Learn from the run",
16589
+ "category": "completed",
16590
+ "tier": "deep",
16591
+ "goal": "Kind recorded only. Compare the moments you proposed with the ones the person kept, dropped or moved, their asset picks, redo notes and own edits. File proposals only (guideline, skill or playbook changes, one line of evidence each). Nothing to learn is a valid result."
16592
+ }
16593
+ ],
16594
+ "criteria": [
16595
+ {
16596
+ "key": "direction-written",
16597
+ "statement": "Before any motion is specified, the composition document holds a direction block (logline, look, sound bed, signature move with its second, avoid list) and a beat sheet with one hero hold of 2 s or more per act",
16598
+ "check": {
16599
+ "hint": "composition document: direction block + beat sheet",
16600
+ "kind": "judge"
16601
+ }
16602
+ },
16603
+ {
16604
+ "key": "motion-approved-per-shot",
16605
+ "statement": "Every shot has a 13-field motion spec at shots[n].motion with the person's verdict as a slot answer before it was built; no move ships without a cited rule or his approval",
16606
+ "check": {
16607
+ "kind": "human"
16608
+ }
16609
+ },
16610
+ {
16611
+ "key": "clip-verdicts",
16612
+ "statement": "Every shot's clip is a pod file referenced from shots[n].clipFileId with the person's verdict as a slot answer whose ref is the file, never in chat",
16613
+ "check": {
16614
+ "hint": "shots[n].clipFileId + slot answers",
16615
+ "kind": "evidence",
16616
+ "evidenceKey": "clip-verdicts"
16617
+ }
16618
+ },
16619
+ {
16620
+ "key": "his-language",
16621
+ "statement": "Every object and verb of the person's brief appears in the film",
16622
+ "check": {
16623
+ "kind": "human"
16624
+ }
16625
+ },
16626
+ {
16627
+ "key": "story-check",
16628
+ "statement": "At every gate from boards to review, an agent re-read the current artefact against the approved story and answered per beat \xAB does it say this? \xBB before the craft checks ran; every no is fixed or approved as a change",
16629
+ "check": {
16630
+ "hint": "per-beat story check notes in the session room or composition document",
16631
+ "kind": "judge"
16632
+ }
16633
+ },
16634
+ {
16635
+ "key": "presenter-script-before-graphics",
16636
+ "statement": "The person approved the script, beats and per-beat graphic plan before any graphic was made.",
16637
+ "check": {
16638
+ "kind": "human"
16639
+ }
16640
+ },
16641
+ {
16642
+ "key": "presenter-numbers-sourced",
16643
+ "statement": "Every number or claim shown on screen comes from a source the person gave, recorded on its beat.",
16644
+ "check": {
16645
+ "hint": "each beat's claim and source in the composition document",
16646
+ "kind": "judge"
16647
+ }
16648
+ },
16649
+ {
16650
+ "key": "presenter-graphics-carry",
16651
+ "statement": "Graphics are on screen at least half the runtime and the hook is readable by 2 s.",
16652
+ "check": {
16653
+ "hint": "the grades written at Assemble against the film's contact sheet",
16654
+ "kind": "judge"
16655
+ }
16656
+ },
16657
+ {
16658
+ "key": "recorded-moments-have-intent",
16659
+ "statement": "Every proposed moment carries an intent and one graphic type from the vocabulary, at most one is marked as the signature moment, and the first 2 s were checked as a hook.",
16660
+ "check": {
16661
+ "hint": "read the composition document's frames",
16662
+ "kind": "judge"
16663
+ }
16664
+ }
16665
+ ]
16666
+ },
16667
+ {
16668
+ "name": "Improve a recipe (from its runs)",
16669
+ "description": "The learning loop for any recipe (playbook): read how its recent runs went, find what keeps failing or getting redone, and propose the smallest change to the recipe and its skills. The person approves; the next runs are measured against the change.",
16670
+ "goalTemplate": `Improve the recipe {recipe} from its last {runs} runs. Keep each turn small (an in-pod turn fits about 6-8 tool calls; knowledge ad60e66d): read by id, never search for what you can read by id, and never re-read a source you already summarised in the room. READ: synap_list_playbooks with playbookId {recipe} (its definition, version and scorecard: closed, evaluated, reopened, overrides, escalations, pass rate per criterion); synap_list_sessions with playbookId {recipe}, kind run, status all, limit {runs}; for each run, synap_get_session detail lean (verdict, failed or escalated criteria, owed slots left, how it closed) and its room's last messages only for runs that failed, were reopened, redone, cancelled, or stopped at a token budget. Also read the lessons its runs captured (synap_ask detail sources on the recipe's name) and the person's rejections and redo notes on its outputs. DIAGNOSE: write in the room a table of recurring problems, each with how many runs it hit, the evidence (run ids, quoted notes), and its cause in the recipe (a stage too big, a missing read, an unclear instruction, a criterion nobody checks, a missing guideline). Ignore one-offs. PROPOSE: for the top 1-3 causes only, the smallest fix \u2014 a revision of the recipe with synap_update_playbook (pass only the fields that change; never rewrite what works), a skill or guideline change with synap_update_skill, or a missing criterion so the problem is measured next time. Every change is a proposal the person approves; say in its reasoning which runs it fixes and how the next runs will show it worked. If nothing recurs, say so and propose nothing. MEASURE: note the recipe's current version and pass rate in the room so the next improvement run compares against it. Say "agent", never "AI".`,
16671
+ "params": [
16672
+ {
16673
+ "name": "recipe",
16674
+ "type": "text",
16675
+ "label": "The recipe to improve: its playbook id (not its name; the read tools take an id)",
16676
+ "required": true
16677
+ },
16678
+ {
16679
+ "name": "runs",
16680
+ "type": "number",
16681
+ "label": "How many recent runs to read",
16682
+ "default": 10,
16683
+ "required": false
16684
+ }
16685
+ ],
16686
+ "executor": "is-agent",
16687
+ "status": "active",
16688
+ "stages": [
16689
+ {
16690
+ "key": "read",
16691
+ "name": "Read the runs",
16692
+ "category": "started",
16693
+ "tier": "quick",
16694
+ "goal": "The recipe, its scorecard and the last runs' verdicts; rooms only for runs that went wrong."
16695
+ },
16696
+ {
16697
+ "key": "diagnose",
16698
+ "name": "Find what recurs",
16699
+ "category": "started",
16700
+ "tier": "deep",
16701
+ "goal": "A table of recurring problems with evidence and their cause in the recipe."
16702
+ },
16703
+ {
16704
+ "key": "propose",
16705
+ "name": "Propose the smallest fix",
16706
+ "category": "started",
16707
+ "tier": "deep",
16708
+ "goal": "1-3 proposals: recipe revision, skill or guideline change, or a missing criterion."
16709
+ },
16710
+ {
16711
+ "key": "measure",
16712
+ "name": "Set the baseline",
16713
+ "category": "completed",
16714
+ "tier": "quick",
16715
+ "goal": "The version and pass rate the next improvement run compares against."
16716
+ }
16717
+ ],
16718
+ "criteria": [
16719
+ {
16720
+ "key": "evidence-based",
16721
+ "statement": "Every proposed change cites the runs it fixes (run ids or quoted notes).",
16722
+ "check": {
16723
+ "hint": "Read the room's diagnosis and the proposals' reasoning.",
16724
+ "kind": "judge"
16725
+ }
16726
+ },
16727
+ {
16728
+ "key": "smallest-change",
16729
+ "statement": "Each proposal changes only the fields involved; nothing that works was rewritten.",
16730
+ "check": {
16731
+ "hint": "Compare each proposal's changed fields with the diagnosis.",
16732
+ "kind": "judge"
16733
+ }
16734
+ },
16735
+ {
16736
+ "key": "baseline-noted",
16737
+ "statement": "The recipe's version and pass rate are written in the room as the next baseline.",
16738
+ "check": {
16739
+ "kind": "judge"
16740
+ }
16741
+ }
16742
+ ],
16743
+ "expectedOutputs": [
16744
+ {
16745
+ "kind": "document",
16746
+ "label": "Diagnosis of recurring problems",
16747
+ "relationToSubject": "none"
16748
+ }
16749
+ ]
15624
16750
  }
15625
16751
  ],
15626
16752
  "automations": [
@@ -16119,7 +17245,41 @@ var DATA = {
16119
17245
  "Which platforms do you actually publish on, and what cadence can you genuinely sustain on each?",
16120
17246
  "Do you run (or want) a newsletter \u2014 the audience you own outright \u2014 and what's the first post you'd place in the system?"
16121
17247
  ],
16122
- "doneWhen": "at least one pillar + one platform with a cadence + a first post placed on a pillar."
17248
+ "doneWhen": "at least one pillar + one platform with a cadence + a first post placed on a pillar.",
17249
+ "intents": [
17250
+ {
17251
+ "phrase": "write a LinkedIn post",
17252
+ "locale": "en"
17253
+ },
17254
+ {
17255
+ "phrase": "r\xE9diger un post LinkedIn",
17256
+ "locale": "fr"
17257
+ },
17258
+ {
17259
+ "phrase": "plan the editorial calendar",
17260
+ "locale": "en"
17261
+ },
17262
+ {
17263
+ "phrase": "planifier le calendrier \xE9ditorial",
17264
+ "locale": "fr"
17265
+ },
17266
+ {
17267
+ "phrase": "write our brand story",
17268
+ "locale": "en"
17269
+ },
17270
+ {
17271
+ "phrase": "\xE9crire l\u2019histoire de notre marque",
17272
+ "locale": "fr"
17273
+ },
17274
+ {
17275
+ "phrase": "turn a raw thought into ideas",
17276
+ "locale": "en"
17277
+ },
17278
+ {
17279
+ "phrase": "d\xE9plier une pens\xE9e en id\xE9es",
17280
+ "locale": "fr"
17281
+ }
17282
+ ]
16123
17283
  },
16124
17284
  "skills": [
16125
17285
  {
@@ -18848,7 +20008,7 @@ var DATA = {
18848
20008
  {
18849
20009
  "name": "Propose a Health cell",
18850
20010
  "description": "Answer one question about your sales with a tile on the Health dashboard; the AI writes the tile and you approve it before it shows. Run by one of your agents for now (Synap AI cannot place a tile yet).",
18851
- "goalTemplate": `Propose one Health tile that answers: {question}. FIND THE VIEW: in the CRM space, the bento view named Health (synap_list_views with the space's workspaceId, type bento). When the space has none, stop and say so: never create another dashboard. READ FIRST: what already sits on Health (its config.blocks: each widget tile names a cell by widgetType) and the space's cells (synap_list_cells); when a tile already answers the question, say which one and stop. DATA: decide where each number comes from. A cell reads the pod ONLY through the cell bridge, at render time: window.synap.query(op, params), with an op of the bridge table (entities.list, entities.get, views.list, profiles.list, lifecycle.board, flow.of, lifecycle.throughput, attention.needsYou, attention.count, sessions.list, lifecycle.home, lifecycle.moving, documents.get, lens.page, sessions.get, playbook.process, playbook.scorecard, project.pillars, views.get, views.execute, profiles.get, propertyDefs.list, lifecycle.get, graph.of, automations.list, automations.runs, playbooks.list, surfaces.of) and only that op's params; the host stamps the space, so never put a workspaceId, a token, a pod URL or a fetch in the page. What the bridge reads stays live: query it in the page, never paste its rows. What it cannot read yet (messages, replies, sends: the bridge has no message op) you read now with your own tools (synap_get_channel, synap_get_entities) and write into the page as a snapshot, with the date it was taken shown on the tile (for example "au 8 novembre") and how it was counted. Never invent a number: a figure you cannot source is left out and the tile says what is missing. THE PAGE: one self-contained HTML page, inline script and style only (no CDN, no remote font or image: the frame's CSP refuses them), that answers the question in one glance (a number, a short table or a small chart), in the person's language (French by default), readable in light and dark, and that shows an error, never an empty tile, when a query fails. FILE IT: synap_create_cell with name = a short title of the question, rendererSource = the page, workspaceId = the CRM space (never pod-wide: the CRM app reads only its space's cells), contentKind widget, placeOn = {viewId: the Health view's id}, and reasoning = the question in the person's words. It comes back proposed: that is success, never retry it; the person approves it in the CRM or the pod, which defines the cell and puts its tile on Health in one act. One cell per run.`,
20011
+ "goalTemplate": `Propose one Health tile that answers: {question}. FIND THE VIEW: in the CRM space, the bento view named Health (synap_list_views with the space's workspaceId, type bento). When the space has none, stop and say so: never create another dashboard. READ FIRST: what already sits on Health (its config.blocks: each widget tile names a cell by widgetType) and the space's cells (synap_list_cells); when a tile already answers the question, say which one and stop. DATA: decide where each number comes from. A cell reads the pod ONLY through the cell bridge, at render time: window.synap.query(op, params), with an op of the bridge table (entities.list, entities.get, views.list, profiles.list, lifecycle.board, flow.of, lifecycle.throughput, attention.needsYou, attention.count, sessions.list, lifecycle.home, lifecycle.moving, documents.get, lens.page, sessions.get, playbook.process, playbook.scorecard, project.pillars, views.get, views.execute, profiles.get, propertyDefs.list, lifecycle.get, graph.of, automations.list, automations.runs, playbooks.list, surfaces.of, connections.list, capabilities.list) and only that op's params; the host stamps the space, so never put a workspaceId, a token, a pod URL or a fetch in the page. What the bridge reads stays live: query it in the page, never paste its rows. What it cannot read yet (messages, replies, sends: the bridge has no message op) you read now with your own tools (synap_get_channel, synap_get_entities) and write into the page as a snapshot, with the date it was taken shown on the tile (for example "au 8 novembre") and how it was counted. Never invent a number: a figure you cannot source is left out and the tile says what is missing. THE PAGE: one self-contained HTML page, inline script and style only (no CDN, no remote font or image: the frame's CSP refuses them), that answers the question in one glance (a number, a short table or a small chart), in the person's language (French by default), readable in light and dark, and that shows an error, never an empty tile, when a query fails. FILE IT: synap_create_cell with name = a short title of the question, rendererSource = the page, workspaceId = the CRM space (never pod-wide: the CRM app reads only its space's cells), contentKind widget, placeOn = {viewId: the Health view's id}, and reasoning = the question in the person's words. It comes back proposed: that is success, never retry it; the person approves it in the CRM or the pod, which defines the cell and puts its tile on Health in one act. One cell per run.`,
18852
20012
  "params": [
18853
20013
  {
18854
20014
  "name": "question",
@@ -35694,7 +36854,8 @@ counter-evidence: research that only kept what agreed with it isn't research.
35694
36854
  "options": [
35695
36855
  {
35696
36856
  "key": "Idea",
35697
- "category": "open"
36857
+ "category": "open",
36858
+ "humanOnly": true
35698
36859
  },
35699
36860
  {
35700
36861
  "key": "Briefed",
@@ -35714,12 +36875,17 @@ counter-evidence: research that only kept what agreed with it isn't research.
35714
36875
  },
35715
36876
  {
35716
36877
  "key": "Scheduled",
35717
- "category": "active"
36878
+ "category": "active",
36879
+ "humanOnly": true
35718
36880
  },
35719
36881
  {
35720
36882
  "key": "Published",
35721
36883
  "category": "done"
35722
36884
  },
36885
+ {
36886
+ "key": "Measured",
36887
+ "category": "done"
36888
+ },
35723
36889
  {
35724
36890
  "key": "Archived",
35725
36891
  "category": "lost",
@@ -35744,6 +36910,7 @@ counter-evidence: research that only kept what agreed with it isn't research.
35744
36910
  "Review",
35745
36911
  "Scheduled",
35746
36912
  "Published",
36913
+ "Measured",
35747
36914
  "Archived"
35748
36915
  ]
35749
36916
  },
@@ -37679,6 +38846,8 @@ var vocabularyFr = {
37679
38846
  "action.ask_admin.past": "Demand\xE9 \xE0 un admin",
37680
38847
  "action.fix_payment.imperative": "Corriger le paiement",
37681
38848
  "action.fix_payment.past": "Paiement corrig\xE9",
38849
+ "action.raise_limit.imperative": "Relever la limite",
38850
+ "action.raise_limit.past": "Limite relev\xE9e",
37682
38851
  "action.reopen.imperative": "Rouvrir",
37683
38852
  "action.reopen.past": "Rouvert",
37684
38853
  "action.track.reopen.imperative": "Ouvrir une nouvelle version",
@@ -37935,6 +39104,7 @@ var vocabularyFr = {
37935
39104
  "status.public": "Public",
37936
39105
  "status.credits_low": "Cr\xE9dits faibles",
37937
39106
  "status.credits_empty": "Plus de cr\xE9dits",
39107
+ "status.limit_reached": "Limite mensuelle atteinte",
37938
39108
  "status.not_entitled": "Pas de forfait IA",
37939
39109
  "status.account_inactive": "IA d\xE9sactiv\xE9e",
37940
39110
  "status.suspended": "Paiement requis",
@@ -38949,6 +40119,8 @@ var ACTION_VERB_ROWS = {
38949
40119
  upgrade: { imperative: "Upgrade", past: "Upgraded" },
38950
40120
  ask_admin: { imperative: "Ask an admin", past: "Asked an admin" },
38951
40121
  fix_payment: { imperative: "Fix payment", past: "Fixed payment" },
40122
+ // The pod reached the monthly AI spending limit its owner set.
40123
+ raise_limit: { imperative: "Raise the limit", past: "Raised the limit" },
38952
40124
  // Put a REJECTED proposal back in the queue — the inverse of reject. Without
38953
40125
  // a row `resolveActionLabel("reopen", …)` fell through to `humanizeToken`,
38954
40126
  // which has no tense and only spelled "Reopen" by luck.
@@ -39612,6 +40784,7 @@ var STATUS_LABEL_ROWS = {
39612
40784
  // when AI was switched off rather than left out of the plan.
39613
40785
  credits_low: "Low credits",
39614
40786
  credits_empty: "Out of credits",
40787
+ limit_reached: "Monthly limit reached",
39615
40788
  not_entitled: "No AI plan",
39616
40789
  account_inactive: "AI turned off",
39617
40790
  suspended: "Payment needed",
@@ -40577,6 +41750,57 @@ function goalNamesStatus(goal, value, labels) {
40577
41750
  ).test(goal)
40578
41751
  );
40579
41752
  }
41753
+ var EXPOSURE_RELATIONS = /* @__PURE__ */ new Set(["visible_to", "belongs_to_project"]);
41754
+ function checkPropertyRelations(tpl, resolveDep, corpus, add) {
41755
+ let known = null;
41756
+ for (const p of tpl.profiles || []) {
41757
+ const claimed = /* @__PURE__ */ new Map();
41758
+ for (const pr of p.properties || []) {
41759
+ if (pr.relation === void 0) continue;
41760
+ const at = `profiles.${p.slug}.${pr.slug}.relation`;
41761
+ const rel = pr.relation;
41762
+ if (typeof rel !== "string" || !rel) {
41763
+ add(
41764
+ "property-relation-invalid",
41765
+ at,
41766
+ `property ${p.slug}.${pr.slug} has an empty or non-string relation`
41767
+ );
41768
+ continue;
41769
+ }
41770
+ if (EXPOSURE_RELATIONS.has(rel)) {
41771
+ add(
41772
+ "property-relation-exposure",
41773
+ at,
41774
+ `property ${p.slug}.${pr.slug} declares "${rel}", an exposure relation set through its own door (sharing or project filing), never from a property`
41775
+ );
41776
+ continue;
41777
+ }
41778
+ if (pr.valueType !== "entity_id") {
41779
+ add(
41780
+ "property-relation-not-entity-id",
41781
+ at,
41782
+ `property ${p.slug}.${pr.slug} declares relation "${rel}" but is "${pr.valueType}", not entity_id: only an entity reference can link`
41783
+ );
41784
+ }
41785
+ known ??= knownRelationTypes(tpl, resolveDep, corpus);
41786
+ if (!known.has(rel)) {
41787
+ add(
41788
+ "property-relation-unknown",
41789
+ at,
41790
+ `property ${p.slug}.${pr.slug} declares relation "${rel}", which no entityLinks[].type / relationDefs[].slug of this template (or its dependencies) defines`
41791
+ );
41792
+ }
41793
+ const first = claimed.get(rel);
41794
+ if (first) {
41795
+ add(
41796
+ "property-relation-duplicate",
41797
+ at,
41798
+ `property ${p.slug}.${pr.slug} declares relation "${rel}", already created by ${first}: one property per relation per kind`
41799
+ );
41800
+ } else claimed.set(rel, `${p.slug}.${pr.slug}`);
41801
+ }
41802
+ }
41803
+ }
40580
41804
  function checkProcessContract(tpl, resolveDep, corpus, add) {
40581
41805
  let relations = null;
40582
41806
  const relationsOnce = () => relations ??= knownRelationTypes(tpl, resolveDep, corpus);
@@ -41112,7 +42336,10 @@ function checkPresentationDeclarations(tpl, resolveDep, corpus, add) {
41112
42336
  );
41113
42337
  }
41114
42338
  }
41115
- var SERVER_DERIVED_PROPERTY_KEYS = ["workedIn", "workedInAll"];
42339
+ var SERVER_DERIVED_PROPERTY_KEYS = [
42340
+ "workedIn",
42341
+ "workedInAll"
42342
+ ];
41116
42343
  var SERVER_DERIVED_GROUP_KEYS = ["workedIn"];
41117
42344
  function checkServerDerivedProperties(tpl, add) {
41118
42345
  for (const p of tpl.profiles || [])
@@ -41443,6 +42670,15 @@ function checkStart(tpl, resolveDep, corpus, add) {
41443
42670
  function hasCorpus(resolveDep) {
41444
42671
  return resolveDep(SHARED_ROLE_SSOT_SLUG) !== void 0;
41445
42672
  }
42673
+ var SPACE_INTENT_COUNT_CAP = 8;
42674
+ var SPACE_INTENT_PHRASE_CAP = 80;
42675
+ var INTENT_LOCALE = /^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})?$/;
42676
+ var INTENT_GLUE_WORDS = new Set(
42677
+ "a about an and are as at be by can could do does for from help how i in into is it like me my need of on or our please should some that the this to us want we what when where which with would you your au aux avec ce ces cet cette ci dans de des du elle en es est et il ils c d j je m l la le les leur leurs ma mes merci mon n nos notre nous on ou par peut peux peuvent plait pour qu que qui s sa ses son stp sur svp t ta te tes toi ton tu un une voudrais veux votre vos vous y aimerais aimerai faut falloir besoin aide moi pouvez pourrais pourriez".split(" ")
42678
+ );
42679
+ function intentMeaningfulWords(phrase) {
42680
+ return phrase.normalize("NFD").replace(/\p{M}+/gu, "").toLowerCase().split(/[^\p{L}\p{N}]+/u).filter((w) => w !== "" && !INTENT_GLUE_WORDS.has(w)).length;
42681
+ }
41446
42682
  function validateTemplate(authored, authoredOpts = {}) {
41447
42683
  const errors = [];
41448
42684
  const add = (rule, path, message) => errors.push({ rule, path, message });
@@ -41815,6 +43051,63 @@ function validateTemplate(authored, authoredOpts = {}) {
41815
43051
  "onboarding.expertise.bar must be a non-empty string"
41816
43052
  );
41817
43053
  }
43054
+ const intents = onboarding.intents;
43055
+ if (intents !== void 0) {
43056
+ if (!Array.isArray(intents)) {
43057
+ add(
43058
+ "onboarding-intents-invalid",
43059
+ "onboarding.intents",
43060
+ "onboarding.intents must be a list of { phrase, locale? }"
43061
+ );
43062
+ } else {
43063
+ if (intents.length > SPACE_INTENT_COUNT_CAP)
43064
+ add(
43065
+ "onboarding-intents-too-many",
43066
+ "onboarding.intents",
43067
+ `onboarding.intents has ${intents.length} phrases; the pod keeps the first ${SPACE_INTENT_COUNT_CAP} and drops the rest`
43068
+ );
43069
+ const seenIntent = /* @__PURE__ */ new Set();
43070
+ intents.forEach((raw, i) => {
43071
+ const where = `onboarding.intents.${i}`;
43072
+ const phrase = raw && typeof raw === "object" ? raw.phrase : void 0;
43073
+ if (typeof phrase !== "string" || phrase.trim() === "") {
43074
+ add(
43075
+ "onboarding-intent-invalid",
43076
+ where,
43077
+ "an intent is an object with a non-empty `phrase` (a bare string is read by the pod but never authored)"
43078
+ );
43079
+ return;
43080
+ }
43081
+ if (Array.from(phrase).length > SPACE_INTENT_PHRASE_CAP)
43082
+ add(
43083
+ "onboarding-intent-too-long",
43084
+ `${where}.phrase`,
43085
+ `intent "${phrase.slice(0, 30)}\u2026" is over ${SPACE_INTENT_PHRASE_CAP} characters: the pod clips it`
43086
+ );
43087
+ if (intentMeaningfulWords(phrase) < 2)
43088
+ add(
43089
+ "onboarding-intent-words",
43090
+ `${where}.phrase`,
43091
+ `intent "${phrase}" has fewer than two meaningful words (glue words like "the", "to", "for", "le", "de" do not count): one word routes nothing`
43092
+ );
43093
+ const locale = raw.locale;
43094
+ if (locale !== void 0 && (typeof locale !== "string" || !INTENT_LOCALE.test(locale)))
43095
+ add(
43096
+ "onboarding-intent-locale",
43097
+ `${where}.locale`,
43098
+ `intent locale ${JSON.stringify(locale)} is not a BCP 47 language (en, fr, pt-BR): the pod drops it`
43099
+ );
43100
+ const key = phrase.trim().toLowerCase();
43101
+ if (seenIntent.has(key))
43102
+ add(
43103
+ "onboarding-intent-duplicate",
43104
+ `${where}.phrase`,
43105
+ `intent "${phrase}" repeats an earlier one: the pod keeps the first`
43106
+ );
43107
+ seenIntent.add(key);
43108
+ });
43109
+ }
43110
+ }
41818
43111
  if (onboarding.openingQuestions !== void 0 && (!Array.isArray(onboarding.openingQuestions) || onboarding.openingQuestions.some(
41819
43112
  (question) => typeof question !== "string" || question.trim() === ""
41820
43113
  ))) {
@@ -42066,6 +43359,7 @@ function validateTemplate(authored, authoredOpts = {}) {
42066
43359
  checkSharedRoleReferences(tpl, resolveDepFrom(opts), add);
42067
43360
  checkStageDomains(tpl, resolveDepFrom(opts), add);
42068
43361
  checkProcessContract(tpl, resolveDepFrom(opts), opts.corpus, add);
43362
+ checkPropertyRelations(tpl, resolveDepFrom(opts), opts.corpus, add);
42069
43363
  checkKanbanGrouping(tpl, resolveDepFrom(opts), opts.corpus, add);
42070
43364
  checkServerDerivedProperties(tpl, add);
42071
43365
  checkLifecycleDeclarations(tpl, resolveDepFrom(opts), opts.corpus, add);