@synap-core/workspace-templates 0.74.1 → 0.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/{define-gpV3Inzh.d.ts → define-BkLLS_UL.d.ts} +14 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1480 -167
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/src/__fixtures__/dev-facts.pull-request-opened.json +72 -0
- package/src/brand-library.yaml +4 -1
- package/src/builder.yaml +83 -0
- package/src/content-os.piece-model.template.test.ts +52 -31
- package/src/content-os.space-contract.template.test.ts +158 -0
- package/src/content-os.template.test.ts +21 -8
- package/src/content-os.video-takes.template.test.ts +2 -2
- package/src/content-os.yaml +1624 -178
- package/src/crm.yaml +3 -1
- package/src/dev-flow-change.template.test.ts +170 -0
- package/src/frame-host-modules.d.mts +1 -1
- package/src/frame-host-modules.mjs +5 -2
- package/src/lifecycle-declarations.test.ts +5 -0
- package/src/onboarding-intents.validate.test.ts +85 -0
- package/src/property-relation.validate.test.ts +218 -0
- package/src/social.yaml +5 -2
- package/src/templates.ts +1349 -165
- package/src/types.ts +14 -0
- package/src/validate.ts +181 -2
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",
|
|
@@ -10289,6 +10290,150 @@ var DATA = {
|
|
|
10289
10290
|
}
|
|
10290
10291
|
]
|
|
10291
10292
|
}
|
|
10293
|
+
},
|
|
10294
|
+
{
|
|
10295
|
+
"key": "pull-request-names-change-session",
|
|
10296
|
+
"name": "A pull request names its change's session",
|
|
10297
|
+
"description": "A dev fact about a pull request (opened, reopened, queued, merged or closed) that names one session fills its change's Session, once: a change that already names a session keeps it, and a pull request that names no session, or several, leaves it empty.",
|
|
10298
|
+
"triggerType": "event",
|
|
10299
|
+
"triggerConfig": {
|
|
10300
|
+
"eventPattern": "dev.*"
|
|
10301
|
+
},
|
|
10302
|
+
"status": "active",
|
|
10303
|
+
"flow": {
|
|
10304
|
+
"nodes": [
|
|
10305
|
+
{
|
|
10306
|
+
"id": "t",
|
|
10307
|
+
"type": "trigger",
|
|
10308
|
+
"position": {
|
|
10309
|
+
"x": 0,
|
|
10310
|
+
"y": 0
|
|
10311
|
+
},
|
|
10312
|
+
"data": {
|
|
10313
|
+
"label": "A dev fact is recorded",
|
|
10314
|
+
"triggerType": "event",
|
|
10315
|
+
"config": {
|
|
10316
|
+
"eventPattern": "dev.*"
|
|
10317
|
+
}
|
|
10318
|
+
}
|
|
10319
|
+
},
|
|
10320
|
+
{
|
|
10321
|
+
"id": "names-session",
|
|
10322
|
+
"type": "condition",
|
|
10323
|
+
"position": {
|
|
10324
|
+
"x": 0,
|
|
10325
|
+
"y": 120
|
|
10326
|
+
},
|
|
10327
|
+
"data": {
|
|
10328
|
+
"label": "It names one session",
|
|
10329
|
+
"expression": 'trigger.payload.data.sessionId != ""'
|
|
10330
|
+
}
|
|
10331
|
+
},
|
|
10332
|
+
{
|
|
10333
|
+
"id": "wait",
|
|
10334
|
+
"type": "delay",
|
|
10335
|
+
"position": {
|
|
10336
|
+
"x": 0,
|
|
10337
|
+
"y": 240
|
|
10338
|
+
},
|
|
10339
|
+
"data": {
|
|
10340
|
+
"label": "Wait for its change to exist",
|
|
10341
|
+
"duration": "5m"
|
|
10342
|
+
}
|
|
10343
|
+
},
|
|
10344
|
+
{
|
|
10345
|
+
"id": "find",
|
|
10346
|
+
"type": "query",
|
|
10347
|
+
"position": {
|
|
10348
|
+
"x": 0,
|
|
10349
|
+
"y": 360
|
|
10350
|
+
},
|
|
10351
|
+
"data": {
|
|
10352
|
+
"label": "Its change",
|
|
10353
|
+
"profileSlug": "change",
|
|
10354
|
+
"limit": 1,
|
|
10355
|
+
"filter": '{"prRef": "{{trigger.payload.data.repo}}#{{trigger.payload.data.number}}"}'
|
|
10356
|
+
}
|
|
10357
|
+
},
|
|
10358
|
+
{
|
|
10359
|
+
"id": "has-change",
|
|
10360
|
+
"type": "condition",
|
|
10361
|
+
"position": {
|
|
10362
|
+
"x": 0,
|
|
10363
|
+
"y": 480
|
|
10364
|
+
},
|
|
10365
|
+
"data": {
|
|
10366
|
+
"label": "It has a change",
|
|
10367
|
+
"expression": "steps.find.output.count >= 1"
|
|
10368
|
+
}
|
|
10369
|
+
},
|
|
10370
|
+
{
|
|
10371
|
+
"id": "no-session-yet",
|
|
10372
|
+
"type": "condition",
|
|
10373
|
+
"position": {
|
|
10374
|
+
"x": 0,
|
|
10375
|
+
"y": 600
|
|
10376
|
+
},
|
|
10377
|
+
"data": {
|
|
10378
|
+
"label": "Its change names no session yet",
|
|
10379
|
+
"expression": 'steps.find.output.entities[0].properties.session == ""'
|
|
10380
|
+
}
|
|
10381
|
+
},
|
|
10382
|
+
{
|
|
10383
|
+
"id": "name-session",
|
|
10384
|
+
"type": "output",
|
|
10385
|
+
"position": {
|
|
10386
|
+
"x": 0,
|
|
10387
|
+
"y": 720
|
|
10388
|
+
},
|
|
10389
|
+
"data": {
|
|
10390
|
+
"label": "The change names its session",
|
|
10391
|
+
"outputType": "entity_update",
|
|
10392
|
+
"config": {
|
|
10393
|
+
"entityId": "{{steps.find.output.entities[0].id}}",
|
|
10394
|
+
"properties": {
|
|
10395
|
+
"session": "{{trigger.payload.data.sessionId}}"
|
|
10396
|
+
}
|
|
10397
|
+
}
|
|
10398
|
+
}
|
|
10399
|
+
}
|
|
10400
|
+
],
|
|
10401
|
+
"edges": [
|
|
10402
|
+
{
|
|
10403
|
+
"id": "t--names-session",
|
|
10404
|
+
"source": "t",
|
|
10405
|
+
"target": "names-session"
|
|
10406
|
+
},
|
|
10407
|
+
{
|
|
10408
|
+
"id": "names-session--wait",
|
|
10409
|
+
"source": "names-session",
|
|
10410
|
+
"target": "wait",
|
|
10411
|
+
"sourceHandle": "yes"
|
|
10412
|
+
},
|
|
10413
|
+
{
|
|
10414
|
+
"id": "wait--find",
|
|
10415
|
+
"source": "wait",
|
|
10416
|
+
"target": "find"
|
|
10417
|
+
},
|
|
10418
|
+
{
|
|
10419
|
+
"id": "find--has-change",
|
|
10420
|
+
"source": "find",
|
|
10421
|
+
"target": "has-change"
|
|
10422
|
+
},
|
|
10423
|
+
{
|
|
10424
|
+
"id": "has-change--no-session-yet",
|
|
10425
|
+
"source": "has-change",
|
|
10426
|
+
"target": "no-session-yet",
|
|
10427
|
+
"sourceHandle": "yes"
|
|
10428
|
+
},
|
|
10429
|
+
{
|
|
10430
|
+
"id": "no-session-yet--name-session",
|
|
10431
|
+
"source": "no-session-yet",
|
|
10432
|
+
"target": "name-session",
|
|
10433
|
+
"sourceHandle": "yes"
|
|
10434
|
+
}
|
|
10435
|
+
]
|
|
10436
|
+
}
|
|
10292
10437
|
}
|
|
10293
10438
|
],
|
|
10294
10439
|
"skills": [
|
|
@@ -12235,7 +12380,8 @@ var DATA = {
|
|
|
12235
12380
|
"options": [
|
|
12236
12381
|
{
|
|
12237
12382
|
"key": "Idea",
|
|
12238
|
-
"category": "open"
|
|
12383
|
+
"category": "open",
|
|
12384
|
+
"humanOnly": true
|
|
12239
12385
|
},
|
|
12240
12386
|
{
|
|
12241
12387
|
"key": "Briefed",
|
|
@@ -12255,12 +12401,17 @@ var DATA = {
|
|
|
12255
12401
|
},
|
|
12256
12402
|
{
|
|
12257
12403
|
"key": "Scheduled",
|
|
12258
|
-
"category": "active"
|
|
12404
|
+
"category": "active",
|
|
12405
|
+
"humanOnly": true
|
|
12259
12406
|
},
|
|
12260
12407
|
{
|
|
12261
12408
|
"key": "Published",
|
|
12262
12409
|
"category": "done"
|
|
12263
12410
|
},
|
|
12411
|
+
{
|
|
12412
|
+
"key": "Measured",
|
|
12413
|
+
"category": "done"
|
|
12414
|
+
},
|
|
12264
12415
|
{
|
|
12265
12416
|
"key": "Archived",
|
|
12266
12417
|
"category": "lost",
|
|
@@ -12285,6 +12436,7 @@ var DATA = {
|
|
|
12285
12436
|
"Review",
|
|
12286
12437
|
"Scheduled",
|
|
12287
12438
|
"Published",
|
|
12439
|
+
"Measured",
|
|
12288
12440
|
"Archived"
|
|
12289
12441
|
]
|
|
12290
12442
|
},
|
|
@@ -12347,6 +12499,7 @@ var DATA = {
|
|
|
12347
12499
|
"label": "Pillar",
|
|
12348
12500
|
"valueType": "entity_id",
|
|
12349
12501
|
"targetProfileSlug": "pillar",
|
|
12502
|
+
"relation": "belongs_to_pillar",
|
|
12350
12503
|
"inputType": "entity_select"
|
|
12351
12504
|
},
|
|
12352
12505
|
{
|
|
@@ -12354,6 +12507,7 @@ var DATA = {
|
|
|
12354
12507
|
"label": "Campaign",
|
|
12355
12508
|
"valueType": "entity_id",
|
|
12356
12509
|
"targetProfileSlug": "campaign",
|
|
12510
|
+
"relation": "part_of_campaign",
|
|
12357
12511
|
"inputType": "entity_select"
|
|
12358
12512
|
},
|
|
12359
12513
|
{
|
|
@@ -12375,6 +12529,7 @@ var DATA = {
|
|
|
12375
12529
|
"label": "Series",
|
|
12376
12530
|
"valueType": "entity_id",
|
|
12377
12531
|
"targetProfileSlug": "series",
|
|
12532
|
+
"relation": "part_of_series",
|
|
12378
12533
|
"inputType": "entity_select"
|
|
12379
12534
|
},
|
|
12380
12535
|
{
|
|
@@ -12639,6 +12794,7 @@ var DATA = {
|
|
|
12639
12794
|
"label": "Pillar",
|
|
12640
12795
|
"valueType": "entity_id",
|
|
12641
12796
|
"targetProfileSlug": "pillar",
|
|
12797
|
+
"relation": "belongs_to_pillar",
|
|
12642
12798
|
"inputType": "entity_select"
|
|
12643
12799
|
},
|
|
12644
12800
|
{
|
|
@@ -12646,6 +12802,7 @@ var DATA = {
|
|
|
12646
12802
|
"label": "Campaign",
|
|
12647
12803
|
"valueType": "entity_id",
|
|
12648
12804
|
"targetProfileSlug": "campaign",
|
|
12805
|
+
"relation": "part_of_campaign",
|
|
12649
12806
|
"inputType": "entity_select"
|
|
12650
12807
|
},
|
|
12651
12808
|
{
|
|
@@ -13805,6 +13962,7 @@ var DATA = {
|
|
|
13805
13962
|
"label": "Campaign",
|
|
13806
13963
|
"valueType": "entity_id",
|
|
13807
13964
|
"targetProfileSlug": "campaign",
|
|
13965
|
+
"relation": "part_of_campaign",
|
|
13808
13966
|
"inputType": "entity_select"
|
|
13809
13967
|
}
|
|
13810
13968
|
]
|
|
@@ -14576,8 +14734,8 @@ var DATA = {
|
|
|
14576
14734
|
"playbooks": [
|
|
14577
14735
|
{
|
|
14578
14736
|
"name": "Produce Content",
|
|
14579
|
-
"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
|
|
14580
|
-
"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).
|
|
14737
|
+
"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.",
|
|
14738
|
+
"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).",
|
|
14581
14739
|
"subjectProfile": {
|
|
14582
14740
|
"profileSlug": "post"
|
|
14583
14741
|
},
|
|
@@ -14619,6 +14777,16 @@ var DATA = {
|
|
|
14619
14777
|
],
|
|
14620
14778
|
"executor": "is-agent",
|
|
14621
14779
|
"status": "active",
|
|
14780
|
+
"guidance": [
|
|
14781
|
+
{
|
|
14782
|
+
"ref": "kind:brand-voice-guide",
|
|
14783
|
+
"label": "Voice of the account's brand"
|
|
14784
|
+
},
|
|
14785
|
+
{
|
|
14786
|
+
"ref": "kind:content-guideline",
|
|
14787
|
+
"label": "Base and per-format guidelines (open the topic before the product, hooks and closes)"
|
|
14788
|
+
}
|
|
14789
|
+
],
|
|
14622
14790
|
"tools": [
|
|
14623
14791
|
"publish_post",
|
|
14624
14792
|
"generate_media",
|
|
@@ -14640,7 +14808,7 @@ var DATA = {
|
|
|
14640
14808
|
"name": "Brief",
|
|
14641
14809
|
"category": "planned",
|
|
14642
14810
|
"onApproved": "Briefed",
|
|
14643
|
-
"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
|
|
14811
|
+
"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.",
|
|
14644
14812
|
"criteria": [
|
|
14645
14813
|
{
|
|
14646
14814
|
"key": "brief-has-hook",
|
|
@@ -14693,13 +14861,7 @@ var DATA = {
|
|
|
14693
14861
|
"name": "Draft",
|
|
14694
14862
|
"category": "started",
|
|
14695
14863
|
"subjectStatus": "In Draft",
|
|
14696
|
-
"goal": `Entering Draft
|
|
14697
|
-
"gate": {
|
|
14698
|
-
"kind": "human"
|
|
14699
|
-
},
|
|
14700
|
-
"onFail": {
|
|
14701
|
-
"toStage": "script"
|
|
14702
|
-
},
|
|
14864
|
+
"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.`,
|
|
14703
14865
|
"expectedOutputs": [
|
|
14704
14866
|
{
|
|
14705
14867
|
"kind": "content-composition",
|
|
@@ -14758,7 +14920,7 @@ var DATA = {
|
|
|
14758
14920
|
"name": "Schedule",
|
|
14759
14921
|
"category": "started",
|
|
14760
14922
|
"onApproved": "Scheduled",
|
|
14761
|
-
"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.",
|
|
14923
|
+
"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.",
|
|
14762
14924
|
"criteria": [
|
|
14763
14925
|
{
|
|
14764
14926
|
"key": "schedule-date-set",
|
|
@@ -14966,6 +15128,12 @@ var DATA = {
|
|
|
14966
15128
|
"mode": "propose"
|
|
14967
15129
|
}
|
|
14968
15130
|
],
|
|
15131
|
+
"guidance": [
|
|
15132
|
+
{
|
|
15133
|
+
"ref": "kind:content-guideline",
|
|
15134
|
+
"label": "Base guidelines (open the topic before the product)"
|
|
15135
|
+
}
|
|
15136
|
+
],
|
|
14969
15137
|
"stages": [
|
|
14970
15138
|
{
|
|
14971
15139
|
"key": "read",
|
|
@@ -15037,24 +15205,6 @@ var DATA = {
|
|
|
15037
15205
|
],
|
|
15038
15206
|
"status": "active"
|
|
15039
15207
|
},
|
|
15040
|
-
{
|
|
15041
|
-
"name": "Package ideas",
|
|
15042
|
-
"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.",
|
|
15043
|
-
"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.",
|
|
15044
|
-
"expectedOutputs": [
|
|
15045
|
-
{
|
|
15046
|
-
"kind": "post",
|
|
15047
|
-
"label": "Packaged post",
|
|
15048
|
-
"relationToSubject": "none"
|
|
15049
|
-
}
|
|
15050
|
-
],
|
|
15051
|
-
"executor": "is-agent",
|
|
15052
|
-
"tools": [
|
|
15053
|
-
"propose_entity_graph",
|
|
15054
|
-
"update_entity"
|
|
15055
|
-
],
|
|
15056
|
-
"status": "active"
|
|
15057
|
-
},
|
|
15058
15208
|
{
|
|
15059
15209
|
"name": "Write the caption",
|
|
15060
15210
|
"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.",
|
|
@@ -15103,8 +15253,8 @@ var DATA = {
|
|
|
15103
15253
|
},
|
|
15104
15254
|
{
|
|
15105
15255
|
"name": "Repurpose",
|
|
15106
|
-
"description": "
|
|
15107
|
-
"goalTemplate": "
|
|
15256
|
+
"description": "Measure a published post, then turn it into new posts for other formats and platforms, each linked to the original.",
|
|
15257
|
+
"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.",
|
|
15108
15258
|
"subjectProfile": {
|
|
15109
15259
|
"profileSlug": "post"
|
|
15110
15260
|
},
|
|
@@ -15119,11 +15269,18 @@ var DATA = {
|
|
|
15119
15269
|
}
|
|
15120
15270
|
}
|
|
15121
15271
|
],
|
|
15272
|
+
"guidance": [
|
|
15273
|
+
{
|
|
15274
|
+
"ref": "kind:content-guideline",
|
|
15275
|
+
"label": "Base and per-format guidelines (open the topic before the product, hooks and closes)"
|
|
15276
|
+
}
|
|
15277
|
+
],
|
|
15122
15278
|
"expectedOutputs": [
|
|
15123
15279
|
{
|
|
15124
15280
|
"kind": "post",
|
|
15125
15281
|
"label": "Repurposed post",
|
|
15126
|
-
"relationToSubject": "derived_from"
|
|
15282
|
+
"relationToSubject": "derived_from",
|
|
15283
|
+
"optional": true
|
|
15127
15284
|
}
|
|
15128
15285
|
],
|
|
15129
15286
|
"params": [
|
|
@@ -15132,14 +15289,50 @@ var DATA = {
|
|
|
15132
15289
|
"type": "entity",
|
|
15133
15290
|
"label": "Post",
|
|
15134
15291
|
"required": true
|
|
15292
|
+
},
|
|
15293
|
+
{
|
|
15294
|
+
"name": "mode",
|
|
15295
|
+
"type": "choice",
|
|
15296
|
+
"label": "What to do: measure, repurpose or both",
|
|
15297
|
+
"options": [
|
|
15298
|
+
"measure",
|
|
15299
|
+
"repurpose",
|
|
15300
|
+
"both"
|
|
15301
|
+
],
|
|
15302
|
+
"default": "both"
|
|
15135
15303
|
}
|
|
15136
15304
|
],
|
|
15137
15305
|
"executor": "is-agent",
|
|
15138
15306
|
"tools": [
|
|
15139
15307
|
"create_entity",
|
|
15140
|
-
"create_relation"
|
|
15308
|
+
"create_relation",
|
|
15309
|
+
"update_entity"
|
|
15141
15310
|
],
|
|
15142
|
-
"status": "active"
|
|
15311
|
+
"status": "active",
|
|
15312
|
+
"stages": [
|
|
15313
|
+
{
|
|
15314
|
+
"key": "measure",
|
|
15315
|
+
"name": "Measure",
|
|
15316
|
+
"category": "started",
|
|
15317
|
+
"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.",
|
|
15318
|
+
"onApproved": "Measured",
|
|
15319
|
+
"criteria": [
|
|
15320
|
+
{
|
|
15321
|
+
"key": "measured-recorded",
|
|
15322
|
+
"statement": "The post's numbers (or a plain note that none were readable) are written on it and it reads Measured.",
|
|
15323
|
+
"check": {
|
|
15324
|
+
"kind": "judge"
|
|
15325
|
+
}
|
|
15326
|
+
}
|
|
15327
|
+
]
|
|
15328
|
+
},
|
|
15329
|
+
{
|
|
15330
|
+
"key": "repurpose",
|
|
15331
|
+
"name": "Repurpose",
|
|
15332
|
+
"category": "completed",
|
|
15333
|
+
"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."
|
|
15334
|
+
}
|
|
15335
|
+
]
|
|
15143
15336
|
},
|
|
15144
15337
|
{
|
|
15145
15338
|
"name": "Newsletter issue",
|
|
@@ -15299,9 +15492,9 @@ var DATA = {
|
|
|
15299
15492
|
]
|
|
15300
15493
|
},
|
|
15301
15494
|
{
|
|
15302
|
-
"name": "
|
|
15303
|
-
"description": "
|
|
15304
|
-
"goalTemplate": "
|
|
15495
|
+
"name": "Derive outputs",
|
|
15496
|
+
"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.",
|
|
15497
|
+
"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.",
|
|
15305
15498
|
"subjectProfile": {
|
|
15306
15499
|
"profileSlug": "content-composition"
|
|
15307
15500
|
},
|
|
@@ -15311,136 +15504,36 @@ var DATA = {
|
|
|
15311
15504
|
"mode": "propose"
|
|
15312
15505
|
}
|
|
15313
15506
|
],
|
|
15314
|
-
"
|
|
15507
|
+
"guidance": [
|
|
15315
15508
|
{
|
|
15316
|
-
"
|
|
15317
|
-
"
|
|
15318
|
-
"
|
|
15319
|
-
|
|
15509
|
+
"ref": "kind:brand-voice-guide",
|
|
15510
|
+
"label": "Voice",
|
|
15511
|
+
"where": {
|
|
15512
|
+
"voice-context": [
|
|
15513
|
+
"general",
|
|
15514
|
+
"social"
|
|
15515
|
+
]
|
|
15516
|
+
}
|
|
15320
15517
|
},
|
|
15321
15518
|
{
|
|
15322
|
-
"
|
|
15323
|
-
"
|
|
15324
|
-
"label": "Minutes",
|
|
15325
|
-
"default": 60
|
|
15519
|
+
"ref": "kind:content-guideline",
|
|
15520
|
+
"label": "Base and per-format guidelines (open the topic before the product, hooks and closes)"
|
|
15326
15521
|
}
|
|
15327
15522
|
],
|
|
15328
|
-
"
|
|
15329
|
-
"status": "active",
|
|
15330
|
-
"tools": [
|
|
15331
|
-
"update_entity",
|
|
15332
|
-
"create_relation"
|
|
15333
|
-
],
|
|
15334
|
-
"stages": [
|
|
15335
|
-
{
|
|
15336
|
-
"key": "gather",
|
|
15337
|
-
"name": "Gather context",
|
|
15338
|
-
"category": "planned",
|
|
15339
|
-
"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.",
|
|
15340
|
-
"criteria": [
|
|
15341
|
-
{
|
|
15342
|
-
"key": "gather-sources-posted",
|
|
15343
|
-
"statement": "The room lists the piece's linked sources and what the pod already holds on its subject, each as a link.",
|
|
15344
|
-
"check": {
|
|
15345
|
-
"kind": "judge"
|
|
15346
|
-
}
|
|
15347
|
-
}
|
|
15348
|
-
]
|
|
15349
|
-
},
|
|
15350
|
-
{
|
|
15351
|
-
"key": "questions",
|
|
15352
|
-
"name": "Questions",
|
|
15353
|
-
"category": "started",
|
|
15354
|
-
"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.",
|
|
15355
|
-
"criteria": [
|
|
15356
|
-
{
|
|
15357
|
-
"key": "questions-one-at-a-time",
|
|
15358
|
-
"statement": "Each question was asked alone and none contains its answer.",
|
|
15359
|
-
"check": {
|
|
15360
|
-
"kind": "judge"
|
|
15361
|
-
}
|
|
15362
|
-
},
|
|
15363
|
-
{
|
|
15364
|
-
"key": "questions-answers-kept",
|
|
15365
|
-
"statement": "Every answer is kept verbatim in the session room.",
|
|
15366
|
-
"check": {
|
|
15367
|
-
"kind": "judge"
|
|
15368
|
-
}
|
|
15369
|
-
}
|
|
15370
|
-
]
|
|
15371
|
-
},
|
|
15523
|
+
"params": [
|
|
15372
15524
|
{
|
|
15373
|
-
"
|
|
15374
|
-
"
|
|
15375
|
-
"
|
|
15376
|
-
"
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
"key": "thesis-own-words",
|
|
15380
|
-
"statement": "The thesis is in the person's own words, from their answers.",
|
|
15381
|
-
"check": {
|
|
15382
|
-
"kind": "judge"
|
|
15383
|
-
}
|
|
15384
|
-
}
|
|
15525
|
+
"name": "source",
|
|
15526
|
+
"type": "choice",
|
|
15527
|
+
"label": "Source: a piece, or the idea bank (idea-bank when no piece is given)",
|
|
15528
|
+
"options": [
|
|
15529
|
+
"piece",
|
|
15530
|
+
"idea-bank"
|
|
15385
15531
|
]
|
|
15386
15532
|
},
|
|
15387
|
-
{
|
|
15388
|
-
"key": "draft",
|
|
15389
|
-
"name": "Draft",
|
|
15390
|
-
"category": "started",
|
|
15391
|
-
"subjectStatus": "drafting",
|
|
15392
|
-
"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.",
|
|
15393
|
-
"gate": {
|
|
15394
|
-
"kind": "human"
|
|
15395
|
-
},
|
|
15396
|
-
"onFail": {
|
|
15397
|
-
"toStage": "questions"
|
|
15398
|
-
},
|
|
15399
|
-
"expectedOutputs": [
|
|
15400
|
-
{
|
|
15401
|
-
"kind": "document",
|
|
15402
|
-
"label": "Draft (the person's answers, in their order)",
|
|
15403
|
-
"relationToSubject": "none"
|
|
15404
|
-
}
|
|
15405
|
-
],
|
|
15406
|
-
"criteria": [
|
|
15407
|
-
{
|
|
15408
|
-
"key": "draft-is-answers",
|
|
15409
|
-
"statement": "Every sentence of the draft comes from the person's answers, apart from marked joining words.",
|
|
15410
|
-
"check": {
|
|
15411
|
-
"kind": "judge"
|
|
15412
|
-
}
|
|
15413
|
-
},
|
|
15414
|
-
{
|
|
15415
|
-
"key": "draft-approved",
|
|
15416
|
-
"statement": "The person approved the draft.",
|
|
15417
|
-
"check": {
|
|
15418
|
-
"kind": "human"
|
|
15419
|
-
}
|
|
15420
|
-
}
|
|
15421
|
-
]
|
|
15422
|
-
}
|
|
15423
|
-
]
|
|
15424
|
-
},
|
|
15425
|
-
{
|
|
15426
|
-
"name": "Derive outputs",
|
|
15427
|
-
"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.",
|
|
15428
|
-
"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.",
|
|
15429
|
-
"subjectProfile": {
|
|
15430
|
-
"profileSlug": "content-composition"
|
|
15431
|
-
},
|
|
15432
|
-
"activators": [
|
|
15433
|
-
{
|
|
15434
|
-
"on": "manual",
|
|
15435
|
-
"mode": "propose"
|
|
15436
|
-
}
|
|
15437
|
-
],
|
|
15438
|
-
"params": [
|
|
15439
15533
|
{
|
|
15440
15534
|
"name": "piece",
|
|
15441
15535
|
"type": "entity",
|
|
15442
|
-
"label": "Piece"
|
|
15443
|
-
"required": true
|
|
15536
|
+
"label": "Piece (source piece)"
|
|
15444
15537
|
},
|
|
15445
15538
|
{
|
|
15446
15539
|
"name": "accounts",
|
|
@@ -15462,13 +15555,22 @@ var DATA = {
|
|
|
15462
15555
|
"status": "active",
|
|
15463
15556
|
"tools": [
|
|
15464
15557
|
"create_entity",
|
|
15465
|
-
"create_relation"
|
|
15558
|
+
"create_relation",
|
|
15559
|
+
"propose_entity_graph",
|
|
15560
|
+
"update_entity"
|
|
15466
15561
|
],
|
|
15467
15562
|
"expectedOutputs": [
|
|
15468
15563
|
{
|
|
15469
15564
|
"kind": "post",
|
|
15470
15565
|
"label": "Derived post",
|
|
15471
|
-
"relationToSubject": "derived_from"
|
|
15566
|
+
"relationToSubject": "derived_from",
|
|
15567
|
+
"optional": true
|
|
15568
|
+
},
|
|
15569
|
+
{
|
|
15570
|
+
"kind": "post",
|
|
15571
|
+
"label": "Packaged post",
|
|
15572
|
+
"relationToSubject": "none",
|
|
15573
|
+
"optional": true
|
|
15472
15574
|
},
|
|
15473
15575
|
{
|
|
15474
15576
|
"kind": "newsletter",
|
|
@@ -15477,6 +15579,1047 @@ var DATA = {
|
|
|
15477
15579
|
"optional": true
|
|
15478
15580
|
}
|
|
15479
15581
|
]
|
|
15582
|
+
},
|
|
15583
|
+
{
|
|
15584
|
+
"name": "Unfold a thought",
|
|
15585
|
+
"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.",
|
|
15586
|
+
"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.',
|
|
15587
|
+
"activators": [
|
|
15588
|
+
{
|
|
15589
|
+
"on": "schedule",
|
|
15590
|
+
"cron": "0 8 * * 1",
|
|
15591
|
+
"mode": "propose"
|
|
15592
|
+
}
|
|
15593
|
+
],
|
|
15594
|
+
"params": [
|
|
15595
|
+
{
|
|
15596
|
+
"name": "source",
|
|
15597
|
+
"type": "choice",
|
|
15598
|
+
"label": "Source: thought, interview or session (empty: thought if one is given, else interview)",
|
|
15599
|
+
"options": [
|
|
15600
|
+
"thought",
|
|
15601
|
+
"interview",
|
|
15602
|
+
"session"
|
|
15603
|
+
]
|
|
15604
|
+
},
|
|
15605
|
+
{
|
|
15606
|
+
"name": "thought",
|
|
15607
|
+
"type": "entity",
|
|
15608
|
+
"label": "The raw thought to unfold (a note, a capture or a document), for the thought route"
|
|
15609
|
+
},
|
|
15610
|
+
{
|
|
15611
|
+
"name": "takes",
|
|
15612
|
+
"type": "text",
|
|
15613
|
+
"label": "Takes already recorded (file ids, comma-separated), for the interview route; empty to record during the session"
|
|
15614
|
+
},
|
|
15615
|
+
{
|
|
15616
|
+
"name": "piece",
|
|
15617
|
+
"type": "entity",
|
|
15618
|
+
"label": "The piece to think on, for the session route"
|
|
15619
|
+
},
|
|
15620
|
+
{
|
|
15621
|
+
"name": "minutes",
|
|
15622
|
+
"type": "number",
|
|
15623
|
+
"label": "Minutes of the thinking session",
|
|
15624
|
+
"default": 60
|
|
15625
|
+
}
|
|
15626
|
+
],
|
|
15627
|
+
"executor": "is-agent",
|
|
15628
|
+
"status": "active",
|
|
15629
|
+
"tools": [
|
|
15630
|
+
"create_entity",
|
|
15631
|
+
"update_entity",
|
|
15632
|
+
"create_relation"
|
|
15633
|
+
],
|
|
15634
|
+
"stages": [
|
|
15635
|
+
{
|
|
15636
|
+
"key": "thought-read",
|
|
15637
|
+
"name": "Read the thought and what exists",
|
|
15638
|
+
"category": "started",
|
|
15639
|
+
"tier": "standard",
|
|
15640
|
+
"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."
|
|
15641
|
+
},
|
|
15642
|
+
{
|
|
15643
|
+
"key": "thought-unfold",
|
|
15644
|
+
"name": "Unfold into ideas",
|
|
15645
|
+
"category": "started",
|
|
15646
|
+
"tier": "deep",
|
|
15647
|
+
"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).",
|
|
15648
|
+
"expectedOutputs": [
|
|
15649
|
+
{
|
|
15650
|
+
"kind": "idea",
|
|
15651
|
+
"label": "Unfolded ideas",
|
|
15652
|
+
"relationToSubject": "none"
|
|
15653
|
+
}
|
|
15654
|
+
]
|
|
15655
|
+
},
|
|
15656
|
+
{
|
|
15657
|
+
"key": "thought-connect",
|
|
15658
|
+
"name": "Link to the graph",
|
|
15659
|
+
"category": "started",
|
|
15660
|
+
"tier": "deep",
|
|
15661
|
+
"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."
|
|
15662
|
+
},
|
|
15663
|
+
{
|
|
15664
|
+
"key": "thought-source",
|
|
15665
|
+
"name": "Open the research questions",
|
|
15666
|
+
"category": "started",
|
|
15667
|
+
"tier": "standard",
|
|
15668
|
+
"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.",
|
|
15669
|
+
"expectedOutputs": [
|
|
15670
|
+
{
|
|
15671
|
+
"kind": "question",
|
|
15672
|
+
"label": "Research questions",
|
|
15673
|
+
"optional": true,
|
|
15674
|
+
"relationToSubject": "none"
|
|
15675
|
+
}
|
|
15676
|
+
]
|
|
15677
|
+
},
|
|
15678
|
+
{
|
|
15679
|
+
"key": "thought-transmit",
|
|
15680
|
+
"name": "Propose what to make of it",
|
|
15681
|
+
"category": "completed",
|
|
15682
|
+
"tier": "deep",
|
|
15683
|
+
"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.",
|
|
15684
|
+
"expectedOutputs": [
|
|
15685
|
+
{
|
|
15686
|
+
"kind": "document",
|
|
15687
|
+
"label": "Synthesis: links and possible pieces",
|
|
15688
|
+
"relationToSubject": "none"
|
|
15689
|
+
}
|
|
15690
|
+
]
|
|
15691
|
+
},
|
|
15692
|
+
{
|
|
15693
|
+
"key": "interview-prepare",
|
|
15694
|
+
"name": "Prepare the questions",
|
|
15695
|
+
"category": "planned",
|
|
15696
|
+
"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.",
|
|
15697
|
+
"expectedOutputs": [
|
|
15698
|
+
{
|
|
15699
|
+
"kind": "document",
|
|
15700
|
+
"label": "Questions",
|
|
15701
|
+
"relationToSubject": "none"
|
|
15702
|
+
}
|
|
15703
|
+
]
|
|
15704
|
+
},
|
|
15705
|
+
{
|
|
15706
|
+
"key": "interview-ask",
|
|
15707
|
+
"name": "The person answers on camera",
|
|
15708
|
+
"category": "started",
|
|
15709
|
+
"goal": "Route interview only. The person answers on camera, one take per question, or the takes arrive as file ids (<takes>). Wait for them."
|
|
15710
|
+
},
|
|
15711
|
+
{
|
|
15712
|
+
"key": "interview-transcribe",
|
|
15713
|
+
"name": "Transcribe the answers",
|
|
15714
|
+
"category": "started",
|
|
15715
|
+
"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.",
|
|
15716
|
+
"expectedOutputs": [
|
|
15717
|
+
{
|
|
15718
|
+
"kind": "document",
|
|
15719
|
+
"label": "Transcripts",
|
|
15720
|
+
"relationToSubject": "none"
|
|
15721
|
+
}
|
|
15722
|
+
]
|
|
15723
|
+
},
|
|
15724
|
+
{
|
|
15725
|
+
"key": "interview-extract",
|
|
15726
|
+
"name": "Propose ideas from the answers",
|
|
15727
|
+
"category": "started",
|
|
15728
|
+
"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.",
|
|
15729
|
+
"expectedOutputs": [
|
|
15730
|
+
{
|
|
15731
|
+
"kind": "idea",
|
|
15732
|
+
"label": "Ideas",
|
|
15733
|
+
"relationToSubject": "none"
|
|
15734
|
+
}
|
|
15735
|
+
]
|
|
15736
|
+
},
|
|
15737
|
+
{
|
|
15738
|
+
"key": "interview-review",
|
|
15739
|
+
"name": "The person reviews the ideas",
|
|
15740
|
+
"category": "completed",
|
|
15741
|
+
"goal": "Route interview only. The person approves, edits or drops each idea. Report what was asked, what they said and what was proposed."
|
|
15742
|
+
},
|
|
15743
|
+
{
|
|
15744
|
+
"key": "session-gather",
|
|
15745
|
+
"name": "Gather context",
|
|
15746
|
+
"category": "planned",
|
|
15747
|
+
"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.",
|
|
15748
|
+
"criteria": [
|
|
15749
|
+
{
|
|
15750
|
+
"key": "session-sources-posted",
|
|
15751
|
+
"statement": "The room lists the piece's linked sources and what the pod already holds on its subject, each as a link.",
|
|
15752
|
+
"check": {
|
|
15753
|
+
"kind": "judge"
|
|
15754
|
+
}
|
|
15755
|
+
}
|
|
15756
|
+
]
|
|
15757
|
+
},
|
|
15758
|
+
{
|
|
15759
|
+
"key": "session-questions",
|
|
15760
|
+
"name": "Questions",
|
|
15761
|
+
"category": "started",
|
|
15762
|
+
"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.",
|
|
15763
|
+
"criteria": [
|
|
15764
|
+
{
|
|
15765
|
+
"key": "session-answers-kept",
|
|
15766
|
+
"statement": "Each question was asked alone, none contains its answer, and every answer is kept verbatim in the room.",
|
|
15767
|
+
"check": {
|
|
15768
|
+
"kind": "judge"
|
|
15769
|
+
}
|
|
15770
|
+
}
|
|
15771
|
+
]
|
|
15772
|
+
},
|
|
15773
|
+
{
|
|
15774
|
+
"key": "session-thesis",
|
|
15775
|
+
"name": "Thesis",
|
|
15776
|
+
"category": "started",
|
|
15777
|
+
"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."
|
|
15778
|
+
},
|
|
15779
|
+
{
|
|
15780
|
+
"key": "session-draft",
|
|
15781
|
+
"name": "Draft",
|
|
15782
|
+
"category": "started",
|
|
15783
|
+
"gate": {
|
|
15784
|
+
"kind": "human"
|
|
15785
|
+
},
|
|
15786
|
+
"onFail": {
|
|
15787
|
+
"toStage": "session-questions"
|
|
15788
|
+
},
|
|
15789
|
+
"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).",
|
|
15790
|
+
"expectedOutputs": [
|
|
15791
|
+
{
|
|
15792
|
+
"kind": "document",
|
|
15793
|
+
"label": "Draft (the person's answers, in their order)",
|
|
15794
|
+
"relationToSubject": "none"
|
|
15795
|
+
}
|
|
15796
|
+
]
|
|
15797
|
+
}
|
|
15798
|
+
],
|
|
15799
|
+
"criteria": [
|
|
15800
|
+
{
|
|
15801
|
+
"key": "no-twins",
|
|
15802
|
+
"statement": "No idea created duplicates an existing one: the ideas already there are enriched or linked.",
|
|
15803
|
+
"check": {
|
|
15804
|
+
"kind": "judge"
|
|
15805
|
+
}
|
|
15806
|
+
},
|
|
15807
|
+
{
|
|
15808
|
+
"key": "own-words",
|
|
15809
|
+
"statement": "Each idea's content keeps the person's own words, with no slogan and no embellished rewording.",
|
|
15810
|
+
"check": {
|
|
15811
|
+
"kind": "judge"
|
|
15812
|
+
}
|
|
15813
|
+
},
|
|
15814
|
+
{
|
|
15815
|
+
"key": "every-idea-linked",
|
|
15816
|
+
"statement": "Every idea created is linked to its source (the thought or the take) and to a series or a pillar.",
|
|
15817
|
+
"check": {
|
|
15818
|
+
"kind": "judge"
|
|
15819
|
+
}
|
|
15820
|
+
},
|
|
15821
|
+
{
|
|
15822
|
+
"key": "fragile-claims-questioned",
|
|
15823
|
+
"statement": "Every fragile factual claim has a research question; no assumed opinion has one.",
|
|
15824
|
+
"check": {
|
|
15825
|
+
"kind": "judge"
|
|
15826
|
+
}
|
|
15827
|
+
},
|
|
15828
|
+
{
|
|
15829
|
+
"key": "one-thesis-one-analogy",
|
|
15830
|
+
"statement": "Each piece proposed fits in one thesis and one analogy, the rest being listed in the parking lot.",
|
|
15831
|
+
"check": {
|
|
15832
|
+
"kind": "human"
|
|
15833
|
+
}
|
|
15834
|
+
},
|
|
15835
|
+
{
|
|
15836
|
+
"key": "person-writes-the-piece",
|
|
15837
|
+
"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.",
|
|
15838
|
+
"check": {
|
|
15839
|
+
"kind": "judge"
|
|
15840
|
+
}
|
|
15841
|
+
}
|
|
15842
|
+
]
|
|
15843
|
+
},
|
|
15844
|
+
{
|
|
15845
|
+
"name": "Make the stills (from a board)",
|
|
15846
|
+
"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`.",
|
|
15847
|
+
"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.",
|
|
15848
|
+
"subjectProfile": {
|
|
15849
|
+
"profileSlug": "content-composition"
|
|
15850
|
+
},
|
|
15851
|
+
"activators": [
|
|
15852
|
+
{
|
|
15853
|
+
"on": "manual",
|
|
15854
|
+
"mode": "propose"
|
|
15855
|
+
}
|
|
15856
|
+
],
|
|
15857
|
+
"params": [
|
|
15858
|
+
{
|
|
15859
|
+
"name": "composition",
|
|
15860
|
+
"type": "entity",
|
|
15861
|
+
"label": "Composition (the board, the stills set, or the piece to shape)",
|
|
15862
|
+
"required": true
|
|
15863
|
+
},
|
|
15864
|
+
{
|
|
15865
|
+
"name": "step",
|
|
15866
|
+
"type": "choice",
|
|
15867
|
+
"label": "Step: shape, stills, next or post",
|
|
15868
|
+
"options": [
|
|
15869
|
+
"shape",
|
|
15870
|
+
"stills",
|
|
15871
|
+
"next",
|
|
15872
|
+
"post"
|
|
15873
|
+
],
|
|
15874
|
+
"default": "stills"
|
|
15875
|
+
},
|
|
15876
|
+
{
|
|
15877
|
+
"name": "formats",
|
|
15878
|
+
"type": "text",
|
|
15879
|
+
"label": "Formats (step stills), comma-separated: deck-16x9, carousel-4x5, square-1x1",
|
|
15880
|
+
"default": "deck-16x9"
|
|
15881
|
+
},
|
|
15882
|
+
{
|
|
15883
|
+
"name": "intent",
|
|
15884
|
+
"type": "text",
|
|
15885
|
+
"label": "What you want to make, in your words (step shape, optional)"
|
|
15886
|
+
},
|
|
15887
|
+
{
|
|
15888
|
+
"name": "makes",
|
|
15889
|
+
"type": "text",
|
|
15890
|
+
"label": "What you already want to make, in your words (step next, optional)"
|
|
15891
|
+
},
|
|
15892
|
+
{
|
|
15893
|
+
"name": "stills",
|
|
15894
|
+
"type": "entity",
|
|
15895
|
+
"label": "Stills set to post (step post, optional)"
|
|
15896
|
+
},
|
|
15897
|
+
{
|
|
15898
|
+
"name": "platform",
|
|
15899
|
+
"type": "text",
|
|
15900
|
+
"label": "Platform it is meant for (step post, optional)"
|
|
15901
|
+
}
|
|
15902
|
+
],
|
|
15903
|
+
"executor": "is-agent",
|
|
15904
|
+
"status": "active",
|
|
15905
|
+
"stages": [
|
|
15906
|
+
{
|
|
15907
|
+
"key": "shape-desk",
|
|
15908
|
+
"name": "On the desk",
|
|
15909
|
+
"category": "started",
|
|
15910
|
+
"tier": "deep",
|
|
15911
|
+
"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.",
|
|
15912
|
+
"subjectStatus": "intent"
|
|
15913
|
+
},
|
|
15914
|
+
{
|
|
15915
|
+
"key": "shape-script",
|
|
15916
|
+
"name": "Reach a script",
|
|
15917
|
+
"category": "started",
|
|
15918
|
+
"tier": "deep",
|
|
15919
|
+
"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).",
|
|
15920
|
+
"gate": {
|
|
15921
|
+
"kind": "human"
|
|
15922
|
+
},
|
|
15923
|
+
"onFail": {
|
|
15924
|
+
"toStage": "shape-desk"
|
|
15925
|
+
},
|
|
15926
|
+
"subjectStatus": "board"
|
|
15927
|
+
},
|
|
15928
|
+
{
|
|
15929
|
+
"key": "shape-handover",
|
|
15930
|
+
"name": "Hand over to Make the stills",
|
|
15931
|
+
"category": "completed",
|
|
15932
|
+
"tier": "quick",
|
|
15933
|
+
"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."
|
|
15934
|
+
},
|
|
15935
|
+
{
|
|
15936
|
+
"key": "sets",
|
|
15937
|
+
"name": "Open the stills sets",
|
|
15938
|
+
"category": "started",
|
|
15939
|
+
"tier": "quick",
|
|
15940
|
+
"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.",
|
|
15941
|
+
"expectedOutputs": [
|
|
15942
|
+
{
|
|
15943
|
+
"kind": "content-composition",
|
|
15944
|
+
"label": "Stills sets (one per format)",
|
|
15945
|
+
"optional": true,
|
|
15946
|
+
"relationToSubject": "derived_from"
|
|
15947
|
+
}
|
|
15948
|
+
]
|
|
15949
|
+
},
|
|
15950
|
+
{
|
|
15951
|
+
"key": "brand",
|
|
15952
|
+
"name": "Brand",
|
|
15953
|
+
"category": "started",
|
|
15954
|
+
"tier": "quick",
|
|
15955
|
+
"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."
|
|
15956
|
+
},
|
|
15957
|
+
{
|
|
15958
|
+
"key": "meaning",
|
|
15959
|
+
"name": "Read each frame",
|
|
15960
|
+
"category": "started",
|
|
15961
|
+
"tier": "deep",
|
|
15962
|
+
"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."
|
|
15963
|
+
},
|
|
15964
|
+
{
|
|
15965
|
+
"key": "layout",
|
|
15966
|
+
"name": "Lay out the slides (pass 1)",
|
|
15967
|
+
"category": "started",
|
|
15968
|
+
"tier": "standard",
|
|
15969
|
+
"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."
|
|
15970
|
+
},
|
|
15971
|
+
{
|
|
15972
|
+
"key": "variants",
|
|
15973
|
+
"name": "Propose pictures for each frame (pass 2)",
|
|
15974
|
+
"category": "started",
|
|
15975
|
+
"tier": "deep",
|
|
15976
|
+
"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."
|
|
15977
|
+
},
|
|
15978
|
+
{
|
|
15979
|
+
"key": "next-read",
|
|
15980
|
+
"name": "Read the stills",
|
|
15981
|
+
"category": "started",
|
|
15982
|
+
"tier": "standard",
|
|
15983
|
+
"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."
|
|
15984
|
+
},
|
|
15985
|
+
{
|
|
15986
|
+
"key": "next-propose",
|
|
15987
|
+
"name": "Propose the makes",
|
|
15988
|
+
"category": "started",
|
|
15989
|
+
"tier": "deep",
|
|
15990
|
+
"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."
|
|
15991
|
+
},
|
|
15992
|
+
{
|
|
15993
|
+
"key": "post-board",
|
|
15994
|
+
"name": "Board",
|
|
15995
|
+
"category": "started",
|
|
15996
|
+
"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."
|
|
15997
|
+
},
|
|
15998
|
+
{
|
|
15999
|
+
"key": "post-read",
|
|
16000
|
+
"name": "Read the board",
|
|
16001
|
+
"category": "started",
|
|
16002
|
+
"tier": "deep",
|
|
16003
|
+
"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).",
|
|
16004
|
+
"gate": {
|
|
16005
|
+
"kind": "human"
|
|
16006
|
+
},
|
|
16007
|
+
"onFail": {
|
|
16008
|
+
"toStage": "post-board"
|
|
16009
|
+
}
|
|
16010
|
+
},
|
|
16011
|
+
{
|
|
16012
|
+
"key": "post-assets",
|
|
16013
|
+
"name": "Choose assets",
|
|
16014
|
+
"category": "started",
|
|
16015
|
+
"tier": "standard",
|
|
16016
|
+
"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.",
|
|
16017
|
+
"gate": {
|
|
16018
|
+
"kind": "human"
|
|
16019
|
+
}
|
|
16020
|
+
},
|
|
16021
|
+
{
|
|
16022
|
+
"key": "post-generate",
|
|
16023
|
+
"name": "Generate frame by frame",
|
|
16024
|
+
"category": "started",
|
|
16025
|
+
"tier": "standard",
|
|
16026
|
+
"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."
|
|
16027
|
+
},
|
|
16028
|
+
{
|
|
16029
|
+
"key": "post-review",
|
|
16030
|
+
"name": "Review the whole",
|
|
16031
|
+
"category": "started",
|
|
16032
|
+
"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.",
|
|
16033
|
+
"gate": {
|
|
16034
|
+
"kind": "human"
|
|
16035
|
+
},
|
|
16036
|
+
"onFail": {
|
|
16037
|
+
"toStage": "post-generate"
|
|
16038
|
+
}
|
|
16039
|
+
},
|
|
16040
|
+
{
|
|
16041
|
+
"key": "post-approved",
|
|
16042
|
+
"name": "Approved",
|
|
16043
|
+
"category": "completed",
|
|
16044
|
+
"goal": "Step post only. Older compositions only (a stills set is already approved). The person approves the composition (their own move).",
|
|
16045
|
+
"gate": {
|
|
16046
|
+
"kind": "human"
|
|
16047
|
+
}
|
|
16048
|
+
},
|
|
16049
|
+
{
|
|
16050
|
+
"key": "post",
|
|
16051
|
+
"name": "Post",
|
|
16052
|
+
"category": "completed",
|
|
16053
|
+
"tier": "standard",
|
|
16054
|
+
"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.",
|
|
16055
|
+
"gate": {
|
|
16056
|
+
"kind": "human"
|
|
16057
|
+
}
|
|
16058
|
+
},
|
|
16059
|
+
{
|
|
16060
|
+
"key": "learn",
|
|
16061
|
+
"name": "Learn from the run",
|
|
16062
|
+
"category": "completed",
|
|
16063
|
+
"tier": "deep",
|
|
16064
|
+
"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."
|
|
16065
|
+
}
|
|
16066
|
+
],
|
|
16067
|
+
"expectedOutputs": [
|
|
16068
|
+
{
|
|
16069
|
+
"kind": "content-composition",
|
|
16070
|
+
"label": "Stills sets (one per format)",
|
|
16071
|
+
"optional": true,
|
|
16072
|
+
"relationToSubject": "derived_from"
|
|
16073
|
+
}
|
|
16074
|
+
],
|
|
16075
|
+
"criteria": [
|
|
16076
|
+
{
|
|
16077
|
+
"key": "sets-open",
|
|
16078
|
+
"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.",
|
|
16079
|
+
"check": {
|
|
16080
|
+
"hint": "synap_get_relations on the board; each set's slides carry sketch.fileId only",
|
|
16081
|
+
"kind": "judge"
|
|
16082
|
+
}
|
|
16083
|
+
},
|
|
16084
|
+
{
|
|
16085
|
+
"key": "frames-read",
|
|
16086
|
+
"statement": "Every slide has a sketchSummary and a one-line meaning that a reader of the frame's words and sketch would agree with.",
|
|
16087
|
+
"check": {
|
|
16088
|
+
"hint": "compare each slide's meaning with its onScreen words and sketchSummary",
|
|
16089
|
+
"kind": "judge"
|
|
16090
|
+
}
|
|
16091
|
+
},
|
|
16092
|
+
{
|
|
16093
|
+
"key": "candidates-fit",
|
|
16094
|
+
"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.",
|
|
16095
|
+
"check": {
|
|
16096
|
+
"hint": "for each candidate: would the person see the link between this picture and these words?",
|
|
16097
|
+
"kind": "judge"
|
|
16098
|
+
}
|
|
16099
|
+
},
|
|
16100
|
+
{
|
|
16101
|
+
"key": "slides-laid-out",
|
|
16102
|
+
"statement": "Every slide of every set has laidOutAt and layers built from the set's brand block.",
|
|
16103
|
+
"check": {
|
|
16104
|
+
"kind": "judge"
|
|
16105
|
+
}
|
|
16106
|
+
}
|
|
16107
|
+
]
|
|
16108
|
+
},
|
|
16109
|
+
{
|
|
16110
|
+
"name": "Make a film (from the board)",
|
|
16111
|
+
"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`.",
|
|
16112
|
+
"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).",
|
|
16113
|
+
"subjectProfile": {
|
|
16114
|
+
"profileSlug": "content-composition"
|
|
16115
|
+
},
|
|
16116
|
+
"activators": [
|
|
16117
|
+
{
|
|
16118
|
+
"on": "manual",
|
|
16119
|
+
"mode": "propose"
|
|
16120
|
+
}
|
|
16121
|
+
],
|
|
16122
|
+
"params": [
|
|
16123
|
+
{
|
|
16124
|
+
"name": "composition",
|
|
16125
|
+
"type": "entity",
|
|
16126
|
+
"label": "Composition (the film)",
|
|
16127
|
+
"required": true
|
|
16128
|
+
},
|
|
16129
|
+
{
|
|
16130
|
+
"name": "kind",
|
|
16131
|
+
"type": "choice",
|
|
16132
|
+
"label": "Kind: animated, presenter or recorded",
|
|
16133
|
+
"options": [
|
|
16134
|
+
"animated",
|
|
16135
|
+
"presenter",
|
|
16136
|
+
"recorded"
|
|
16137
|
+
],
|
|
16138
|
+
"default": "animated"
|
|
16139
|
+
},
|
|
16140
|
+
{
|
|
16141
|
+
"name": "board",
|
|
16142
|
+
"type": "entity",
|
|
16143
|
+
"label": "Approved board: the file or the board knowledge entity (kind animated, optional if the composition already links it)"
|
|
16144
|
+
},
|
|
16145
|
+
{
|
|
16146
|
+
"name": "brief",
|
|
16147
|
+
"type": "text",
|
|
16148
|
+
"label": "Brief or sketch link (optional)"
|
|
16149
|
+
},
|
|
16150
|
+
{
|
|
16151
|
+
"name": "platform",
|
|
16152
|
+
"type": "text",
|
|
16153
|
+
"label": "Platform it is first meant for (optional)"
|
|
16154
|
+
},
|
|
16155
|
+
{
|
|
16156
|
+
"name": "format",
|
|
16157
|
+
"type": "text",
|
|
16158
|
+
"label": "Frame format (optional, e.g. 16x9, 9x16, 1x1, 4x5; presenter default 9x16)"
|
|
16159
|
+
},
|
|
16160
|
+
{
|
|
16161
|
+
"name": "stills",
|
|
16162
|
+
"type": "entity",
|
|
16163
|
+
"label": "Stills set to animate or presented in the recording (optional; for animated it then is the board)"
|
|
16164
|
+
},
|
|
16165
|
+
{
|
|
16166
|
+
"name": "take",
|
|
16167
|
+
"type": "entity",
|
|
16168
|
+
"label": "The recording (kind recorded: a take or a piece of one; kind presenter: if it already exists)"
|
|
16169
|
+
}
|
|
16170
|
+
],
|
|
16171
|
+
"executor": "is-agent",
|
|
16172
|
+
"status": "active",
|
|
16173
|
+
"guidance": [
|
|
16174
|
+
{
|
|
16175
|
+
"ref": "skill:video-direction"
|
|
16176
|
+
}
|
|
16177
|
+
],
|
|
16178
|
+
"stages": [
|
|
16179
|
+
{
|
|
16180
|
+
"key": "open",
|
|
16181
|
+
"name": "0 \xB7 Open on the film",
|
|
16182
|
+
"category": "planned",
|
|
16183
|
+
"tier": "quick",
|
|
16184
|
+
"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.",
|
|
16185
|
+
"subjectStatus": "board",
|
|
16186
|
+
"criteria": [
|
|
16187
|
+
{
|
|
16188
|
+
"key": "session-on-subject",
|
|
16189
|
+
"statement": "The session's subject is the composition and every write of this run carries its sessionId",
|
|
16190
|
+
"check": {
|
|
16191
|
+
"hint": "synap_get_session: subjectEntityId = composition; no receipt sessions minted by this run",
|
|
16192
|
+
"kind": "evidence",
|
|
16193
|
+
"evidenceKey": "session-on-subject"
|
|
16194
|
+
}
|
|
16195
|
+
}
|
|
16196
|
+
]
|
|
16197
|
+
},
|
|
16198
|
+
{
|
|
16199
|
+
"key": "story",
|
|
16200
|
+
"name": "0.5 \xB7 Story \u2605",
|
|
16201
|
+
"category": "planned",
|
|
16202
|
+
"tier": "deep",
|
|
16203
|
+
"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.",
|
|
16204
|
+
"gate": {
|
|
16205
|
+
"kind": "human"
|
|
16206
|
+
},
|
|
16207
|
+
"onFail": {
|
|
16208
|
+
"toStage": "open"
|
|
16209
|
+
},
|
|
16210
|
+
"expectedOutputs": [
|
|
16211
|
+
{
|
|
16212
|
+
"kind": "document",
|
|
16213
|
+
"label": "Story (approved by the person)"
|
|
16214
|
+
}
|
|
16215
|
+
],
|
|
16216
|
+
"criteria": [
|
|
16217
|
+
{
|
|
16218
|
+
"key": "story-approved",
|
|
16219
|
+
"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",
|
|
16220
|
+
"check": {
|
|
16221
|
+
"kind": "human"
|
|
16222
|
+
}
|
|
16223
|
+
}
|
|
16224
|
+
]
|
|
16225
|
+
},
|
|
16226
|
+
{
|
|
16227
|
+
"key": "board",
|
|
16228
|
+
"name": "1 \xB7 Board is law",
|
|
16229
|
+
"category": "planned",
|
|
16230
|
+
"tier": "standard",
|
|
16231
|
+
"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.",
|
|
16232
|
+
"gate": {
|
|
16233
|
+
"kind": "check"
|
|
16234
|
+
},
|
|
16235
|
+
"onFail": {
|
|
16236
|
+
"toStage": "open"
|
|
16237
|
+
},
|
|
16238
|
+
"subjectStatus": "board",
|
|
16239
|
+
"expectedOutputs": [
|
|
16240
|
+
{
|
|
16241
|
+
"kind": "file",
|
|
16242
|
+
"label": "Board (pod file, one page per frame)",
|
|
16243
|
+
"relationToSubject": "references"
|
|
16244
|
+
},
|
|
16245
|
+
{
|
|
16246
|
+
"kind": "document",
|
|
16247
|
+
"label": "Board knowledge: the law",
|
|
16248
|
+
"relationToSubject": "references"
|
|
16249
|
+
},
|
|
16250
|
+
{
|
|
16251
|
+
"kind": "document",
|
|
16252
|
+
"label": "shots[] seeded in the composition document"
|
|
16253
|
+
}
|
|
16254
|
+
],
|
|
16255
|
+
"criteria": [
|
|
16256
|
+
{
|
|
16257
|
+
"key": "board-linked",
|
|
16258
|
+
"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",
|
|
16259
|
+
"check": {
|
|
16260
|
+
"hint": "get_relations on the composition + the document's shots[]",
|
|
16261
|
+
"kind": "evidence",
|
|
16262
|
+
"evidenceKey": "board-linked"
|
|
16263
|
+
}
|
|
16264
|
+
}
|
|
16265
|
+
]
|
|
16266
|
+
},
|
|
16267
|
+
{
|
|
16268
|
+
"key": "presenter-direct",
|
|
16269
|
+
"name": "Script and direction",
|
|
16270
|
+
"category": "started",
|
|
16271
|
+
"tier": "deep",
|
|
16272
|
+
"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).",
|
|
16273
|
+
"gate": {
|
|
16274
|
+
"kind": "human"
|
|
16275
|
+
},
|
|
16276
|
+
"subjectStatus": "board"
|
|
16277
|
+
},
|
|
16278
|
+
{
|
|
16279
|
+
"key": "presenter-shoot",
|
|
16280
|
+
"name": "Plan the shoot",
|
|
16281
|
+
"category": "started",
|
|
16282
|
+
"tier": "quick",
|
|
16283
|
+
"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."
|
|
16284
|
+
},
|
|
16285
|
+
{
|
|
16286
|
+
"key": "presenter-read",
|
|
16287
|
+
"name": "Align the take",
|
|
16288
|
+
"category": "started",
|
|
16289
|
+
"tier": "standard",
|
|
16290
|
+
"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.",
|
|
16291
|
+
"gate": {
|
|
16292
|
+
"kind": "human"
|
|
16293
|
+
}
|
|
16294
|
+
},
|
|
16295
|
+
{
|
|
16296
|
+
"key": "presenter-graphics",
|
|
16297
|
+
"name": "Make the graphics",
|
|
16298
|
+
"category": "started",
|
|
16299
|
+
"tier": "standard",
|
|
16300
|
+
"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.",
|
|
16301
|
+
"subjectStatus": "generating"
|
|
16302
|
+
},
|
|
16303
|
+
{
|
|
16304
|
+
"key": "presenter-animatic",
|
|
16305
|
+
"name": "Animatic over the take",
|
|
16306
|
+
"category": "started",
|
|
16307
|
+
"tier": "quick",
|
|
16308
|
+
"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.",
|
|
16309
|
+
"gate": {
|
|
16310
|
+
"kind": "human"
|
|
16311
|
+
}
|
|
16312
|
+
},
|
|
16313
|
+
{
|
|
16314
|
+
"key": "presenter-assemble",
|
|
16315
|
+
"name": "Assemble",
|
|
16316
|
+
"category": "started",
|
|
16317
|
+
"tier": "standard",
|
|
16318
|
+
"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.",
|
|
16319
|
+
"gate": {
|
|
16320
|
+
"kind": "human"
|
|
16321
|
+
}
|
|
16322
|
+
},
|
|
16323
|
+
{
|
|
16324
|
+
"key": "presenter-sound",
|
|
16325
|
+
"name": "Sound",
|
|
16326
|
+
"category": "started",
|
|
16327
|
+
"tier": "standard",
|
|
16328
|
+
"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."
|
|
16329
|
+
},
|
|
16330
|
+
{
|
|
16331
|
+
"key": "presenter-review",
|
|
16332
|
+
"name": "Review the whole",
|
|
16333
|
+
"category": "started",
|
|
16334
|
+
"goal": "Kind presenter only. Watch the whole with the person; a beat sent back returns to Make the graphics.",
|
|
16335
|
+
"gate": {
|
|
16336
|
+
"kind": "human"
|
|
16337
|
+
},
|
|
16338
|
+
"onFail": {
|
|
16339
|
+
"toStage": "presenter-graphics"
|
|
16340
|
+
},
|
|
16341
|
+
"subjectStatus": "in_review",
|
|
16342
|
+
"onApproved": "approved"
|
|
16343
|
+
},
|
|
16344
|
+
{
|
|
16345
|
+
"key": "presenter-approved",
|
|
16346
|
+
"name": "Approved",
|
|
16347
|
+
"category": "completed",
|
|
16348
|
+
"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).",
|
|
16349
|
+
"gate": {
|
|
16350
|
+
"kind": "human"
|
|
16351
|
+
}
|
|
16352
|
+
},
|
|
16353
|
+
{
|
|
16354
|
+
"key": "presenter-learn",
|
|
16355
|
+
"name": "Learn from the run",
|
|
16356
|
+
"category": "completed",
|
|
16357
|
+
"tier": "deep",
|
|
16358
|
+
"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."
|
|
16359
|
+
},
|
|
16360
|
+
{
|
|
16361
|
+
"key": "recorded-read",
|
|
16362
|
+
"name": "Read the take",
|
|
16363
|
+
"category": "started",
|
|
16364
|
+
"tier": "deep",
|
|
16365
|
+
"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.",
|
|
16366
|
+
"gate": {
|
|
16367
|
+
"kind": "human"
|
|
16368
|
+
},
|
|
16369
|
+
"onApproved": "board"
|
|
16370
|
+
},
|
|
16371
|
+
{
|
|
16372
|
+
"key": "recorded-assets",
|
|
16373
|
+
"name": "Choose assets",
|
|
16374
|
+
"category": "started",
|
|
16375
|
+
"tier": "standard",
|
|
16376
|
+
"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).",
|
|
16377
|
+
"gate": {
|
|
16378
|
+
"kind": "human"
|
|
16379
|
+
},
|
|
16380
|
+
"subjectStatus": "generating"
|
|
16381
|
+
},
|
|
16382
|
+
{
|
|
16383
|
+
"key": "recorded-cues",
|
|
16384
|
+
"name": "Sound bed and cues",
|
|
16385
|
+
"category": "started",
|
|
16386
|
+
"tier": "standard",
|
|
16387
|
+
"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.",
|
|
16388
|
+
"expectedOutputs": [
|
|
16389
|
+
{
|
|
16390
|
+
"kind": "file",
|
|
16391
|
+
"label": "Music bed (or none) and cue map",
|
|
16392
|
+
"relationToSubject": "made_for"
|
|
16393
|
+
},
|
|
16394
|
+
{
|
|
16395
|
+
"ask": {
|
|
16396
|
+
"no": {
|
|
16397
|
+
"label": "Change the bed or the cues, with a note"
|
|
16398
|
+
},
|
|
16399
|
+
"yes": {
|
|
16400
|
+
"label": "Lock the sound",
|
|
16401
|
+
"recommended": true
|
|
16402
|
+
},
|
|
16403
|
+
"mode": "confirm",
|
|
16404
|
+
"prompt": "Lock the music bed (or no music) and the cue map the overlays will be timed to?",
|
|
16405
|
+
"stakes": "routine",
|
|
16406
|
+
"reversible": true,
|
|
16407
|
+
"consequence": "The overlays are made and timed to these cues; the Mix stage only mixes."
|
|
16408
|
+
},
|
|
16409
|
+
"kind": "approval",
|
|
16410
|
+
"label": "Person locks the sound bed and cues",
|
|
16411
|
+
"owner": "human"
|
|
16412
|
+
}
|
|
16413
|
+
]
|
|
16414
|
+
},
|
|
16415
|
+
{
|
|
16416
|
+
"key": "recorded-generate",
|
|
16417
|
+
"name": "Make the overlays",
|
|
16418
|
+
"category": "started",
|
|
16419
|
+
"tier": "standard",
|
|
16420
|
+
"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."
|
|
16421
|
+
},
|
|
16422
|
+
{
|
|
16423
|
+
"key": "recorded-assemble",
|
|
16424
|
+
"name": "Assemble over the take",
|
|
16425
|
+
"category": "started",
|
|
16426
|
+
"tier": "standard",
|
|
16427
|
+
"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."
|
|
16428
|
+
},
|
|
16429
|
+
{
|
|
16430
|
+
"key": "recorded-sound",
|
|
16431
|
+
"name": "Mix",
|
|
16432
|
+
"category": "started",
|
|
16433
|
+
"tier": "standard",
|
|
16434
|
+
"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."
|
|
16435
|
+
},
|
|
16436
|
+
{
|
|
16437
|
+
"key": "recorded-review",
|
|
16438
|
+
"name": "Review the whole",
|
|
16439
|
+
"category": "started",
|
|
16440
|
+
"goal": "Kind recorded only. Watch the whole with the person; a moment sent back returns to Make the overlays.",
|
|
16441
|
+
"gate": {
|
|
16442
|
+
"kind": "human"
|
|
16443
|
+
},
|
|
16444
|
+
"onFail": {
|
|
16445
|
+
"toStage": "recorded-generate"
|
|
16446
|
+
},
|
|
16447
|
+
"subjectStatus": "in_review",
|
|
16448
|
+
"onApproved": "approved"
|
|
16449
|
+
},
|
|
16450
|
+
{
|
|
16451
|
+
"key": "recorded-approved",
|
|
16452
|
+
"name": "Approved",
|
|
16453
|
+
"category": "completed",
|
|
16454
|
+
"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).",
|
|
16455
|
+
"gate": {
|
|
16456
|
+
"kind": "human"
|
|
16457
|
+
}
|
|
16458
|
+
},
|
|
16459
|
+
{
|
|
16460
|
+
"key": "recorded-learn",
|
|
16461
|
+
"name": "Learn from the run",
|
|
16462
|
+
"category": "completed",
|
|
16463
|
+
"tier": "deep",
|
|
16464
|
+
"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."
|
|
16465
|
+
}
|
|
16466
|
+
],
|
|
16467
|
+
"criteria": [
|
|
16468
|
+
{
|
|
16469
|
+
"key": "direction-written",
|
|
16470
|
+
"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",
|
|
16471
|
+
"check": {
|
|
16472
|
+
"hint": "composition document: direction block + beat sheet",
|
|
16473
|
+
"kind": "judge"
|
|
16474
|
+
}
|
|
16475
|
+
},
|
|
16476
|
+
{
|
|
16477
|
+
"key": "motion-approved-per-shot",
|
|
16478
|
+
"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",
|
|
16479
|
+
"check": {
|
|
16480
|
+
"kind": "human"
|
|
16481
|
+
}
|
|
16482
|
+
},
|
|
16483
|
+
{
|
|
16484
|
+
"key": "clip-verdicts",
|
|
16485
|
+
"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",
|
|
16486
|
+
"check": {
|
|
16487
|
+
"hint": "shots[n].clipFileId + slot answers",
|
|
16488
|
+
"kind": "evidence",
|
|
16489
|
+
"evidenceKey": "clip-verdicts"
|
|
16490
|
+
}
|
|
16491
|
+
},
|
|
16492
|
+
{
|
|
16493
|
+
"key": "his-language",
|
|
16494
|
+
"statement": "Every object and verb of the person's brief appears in the film",
|
|
16495
|
+
"check": {
|
|
16496
|
+
"kind": "human"
|
|
16497
|
+
}
|
|
16498
|
+
},
|
|
16499
|
+
{
|
|
16500
|
+
"key": "story-check",
|
|
16501
|
+
"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",
|
|
16502
|
+
"check": {
|
|
16503
|
+
"hint": "per-beat story check notes in the session room or composition document",
|
|
16504
|
+
"kind": "judge"
|
|
16505
|
+
}
|
|
16506
|
+
},
|
|
16507
|
+
{
|
|
16508
|
+
"key": "presenter-script-before-graphics",
|
|
16509
|
+
"statement": "The person approved the script, beats and per-beat graphic plan before any graphic was made.",
|
|
16510
|
+
"check": {
|
|
16511
|
+
"kind": "human"
|
|
16512
|
+
}
|
|
16513
|
+
},
|
|
16514
|
+
{
|
|
16515
|
+
"key": "presenter-numbers-sourced",
|
|
16516
|
+
"statement": "Every number or claim shown on screen comes from a source the person gave, recorded on its beat.",
|
|
16517
|
+
"check": {
|
|
16518
|
+
"hint": "each beat's claim and source in the composition document",
|
|
16519
|
+
"kind": "judge"
|
|
16520
|
+
}
|
|
16521
|
+
},
|
|
16522
|
+
{
|
|
16523
|
+
"key": "presenter-graphics-carry",
|
|
16524
|
+
"statement": "Graphics are on screen at least half the runtime and the hook is readable by 2 s.",
|
|
16525
|
+
"check": {
|
|
16526
|
+
"hint": "the grades written at Assemble against the film's contact sheet",
|
|
16527
|
+
"kind": "judge"
|
|
16528
|
+
}
|
|
16529
|
+
},
|
|
16530
|
+
{
|
|
16531
|
+
"key": "recorded-moments-have-intent",
|
|
16532
|
+
"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.",
|
|
16533
|
+
"check": {
|
|
16534
|
+
"hint": "read the composition document's frames",
|
|
16535
|
+
"kind": "judge"
|
|
16536
|
+
}
|
|
16537
|
+
}
|
|
16538
|
+
]
|
|
16539
|
+
},
|
|
16540
|
+
{
|
|
16541
|
+
"name": "Improve a recipe (from its runs)",
|
|
16542
|
+
"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.",
|
|
16543
|
+
"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".`,
|
|
16544
|
+
"params": [
|
|
16545
|
+
{
|
|
16546
|
+
"name": "recipe",
|
|
16547
|
+
"type": "text",
|
|
16548
|
+
"label": "The recipe to improve: its playbook id (not its name; the read tools take an id)",
|
|
16549
|
+
"required": true
|
|
16550
|
+
},
|
|
16551
|
+
{
|
|
16552
|
+
"name": "runs",
|
|
16553
|
+
"type": "number",
|
|
16554
|
+
"label": "How many recent runs to read",
|
|
16555
|
+
"default": 10,
|
|
16556
|
+
"required": false
|
|
16557
|
+
}
|
|
16558
|
+
],
|
|
16559
|
+
"executor": "is-agent",
|
|
16560
|
+
"status": "active",
|
|
16561
|
+
"stages": [
|
|
16562
|
+
{
|
|
16563
|
+
"key": "read",
|
|
16564
|
+
"name": "Read the runs",
|
|
16565
|
+
"category": "started",
|
|
16566
|
+
"tier": "quick",
|
|
16567
|
+
"goal": "The recipe, its scorecard and the last runs' verdicts; rooms only for runs that went wrong."
|
|
16568
|
+
},
|
|
16569
|
+
{
|
|
16570
|
+
"key": "diagnose",
|
|
16571
|
+
"name": "Find what recurs",
|
|
16572
|
+
"category": "started",
|
|
16573
|
+
"tier": "deep",
|
|
16574
|
+
"goal": "A table of recurring problems with evidence and their cause in the recipe."
|
|
16575
|
+
},
|
|
16576
|
+
{
|
|
16577
|
+
"key": "propose",
|
|
16578
|
+
"name": "Propose the smallest fix",
|
|
16579
|
+
"category": "started",
|
|
16580
|
+
"tier": "deep",
|
|
16581
|
+
"goal": "1-3 proposals: recipe revision, skill or guideline change, or a missing criterion."
|
|
16582
|
+
},
|
|
16583
|
+
{
|
|
16584
|
+
"key": "measure",
|
|
16585
|
+
"name": "Set the baseline",
|
|
16586
|
+
"category": "completed",
|
|
16587
|
+
"tier": "quick",
|
|
16588
|
+
"goal": "The version and pass rate the next improvement run compares against."
|
|
16589
|
+
}
|
|
16590
|
+
],
|
|
16591
|
+
"criteria": [
|
|
16592
|
+
{
|
|
16593
|
+
"key": "evidence-based",
|
|
16594
|
+
"statement": "Every proposed change cites the runs it fixes (run ids or quoted notes).",
|
|
16595
|
+
"check": {
|
|
16596
|
+
"hint": "Read the room's diagnosis and the proposals' reasoning.",
|
|
16597
|
+
"kind": "judge"
|
|
16598
|
+
}
|
|
16599
|
+
},
|
|
16600
|
+
{
|
|
16601
|
+
"key": "smallest-change",
|
|
16602
|
+
"statement": "Each proposal changes only the fields involved; nothing that works was rewritten.",
|
|
16603
|
+
"check": {
|
|
16604
|
+
"hint": "Compare each proposal's changed fields with the diagnosis.",
|
|
16605
|
+
"kind": "judge"
|
|
16606
|
+
}
|
|
16607
|
+
},
|
|
16608
|
+
{
|
|
16609
|
+
"key": "baseline-noted",
|
|
16610
|
+
"statement": "The recipe's version and pass rate are written in the room as the next baseline.",
|
|
16611
|
+
"check": {
|
|
16612
|
+
"kind": "judge"
|
|
16613
|
+
}
|
|
16614
|
+
}
|
|
16615
|
+
],
|
|
16616
|
+
"expectedOutputs": [
|
|
16617
|
+
{
|
|
16618
|
+
"kind": "document",
|
|
16619
|
+
"label": "Diagnosis of recurring problems",
|
|
16620
|
+
"relationToSubject": "none"
|
|
16621
|
+
}
|
|
16622
|
+
]
|
|
15480
16623
|
}
|
|
15481
16624
|
],
|
|
15482
16625
|
"automations": [
|
|
@@ -15975,7 +17118,41 @@ var DATA = {
|
|
|
15975
17118
|
"Which platforms do you actually publish on, and what cadence can you genuinely sustain on each?",
|
|
15976
17119
|
"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?"
|
|
15977
17120
|
],
|
|
15978
|
-
"doneWhen": "at least one pillar + one platform with a cadence + a first post placed on a pillar."
|
|
17121
|
+
"doneWhen": "at least one pillar + one platform with a cadence + a first post placed on a pillar.",
|
|
17122
|
+
"intents": [
|
|
17123
|
+
{
|
|
17124
|
+
"phrase": "write a LinkedIn post",
|
|
17125
|
+
"locale": "en"
|
|
17126
|
+
},
|
|
17127
|
+
{
|
|
17128
|
+
"phrase": "r\xE9diger un post LinkedIn",
|
|
17129
|
+
"locale": "fr"
|
|
17130
|
+
},
|
|
17131
|
+
{
|
|
17132
|
+
"phrase": "plan the editorial calendar",
|
|
17133
|
+
"locale": "en"
|
|
17134
|
+
},
|
|
17135
|
+
{
|
|
17136
|
+
"phrase": "planifier le calendrier \xE9ditorial",
|
|
17137
|
+
"locale": "fr"
|
|
17138
|
+
},
|
|
17139
|
+
{
|
|
17140
|
+
"phrase": "write our brand story",
|
|
17141
|
+
"locale": "en"
|
|
17142
|
+
},
|
|
17143
|
+
{
|
|
17144
|
+
"phrase": "\xE9crire l\u2019histoire de notre marque",
|
|
17145
|
+
"locale": "fr"
|
|
17146
|
+
},
|
|
17147
|
+
{
|
|
17148
|
+
"phrase": "turn a raw thought into ideas",
|
|
17149
|
+
"locale": "en"
|
|
17150
|
+
},
|
|
17151
|
+
{
|
|
17152
|
+
"phrase": "d\xE9plier une pens\xE9e en id\xE9es",
|
|
17153
|
+
"locale": "fr"
|
|
17154
|
+
}
|
|
17155
|
+
]
|
|
15979
17156
|
},
|
|
15980
17157
|
"skills": [
|
|
15981
17158
|
{
|
|
@@ -18704,7 +19881,7 @@ var DATA = {
|
|
|
18704
19881
|
{
|
|
18705
19882
|
"name": "Propose a Health cell",
|
|
18706
19883
|
"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).",
|
|
18707
|
-
"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) 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.`,
|
|
19884
|
+
"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.`,
|
|
18708
19885
|
"params": [
|
|
18709
19886
|
{
|
|
18710
19887
|
"name": "question",
|
|
@@ -35550,7 +36727,8 @@ counter-evidence: research that only kept what agreed with it isn't research.
|
|
|
35550
36727
|
"options": [
|
|
35551
36728
|
{
|
|
35552
36729
|
"key": "Idea",
|
|
35553
|
-
"category": "open"
|
|
36730
|
+
"category": "open",
|
|
36731
|
+
"humanOnly": true
|
|
35554
36732
|
},
|
|
35555
36733
|
{
|
|
35556
36734
|
"key": "Briefed",
|
|
@@ -35570,12 +36748,17 @@ counter-evidence: research that only kept what agreed with it isn't research.
|
|
|
35570
36748
|
},
|
|
35571
36749
|
{
|
|
35572
36750
|
"key": "Scheduled",
|
|
35573
|
-
"category": "active"
|
|
36751
|
+
"category": "active",
|
|
36752
|
+
"humanOnly": true
|
|
35574
36753
|
},
|
|
35575
36754
|
{
|
|
35576
36755
|
"key": "Published",
|
|
35577
36756
|
"category": "done"
|
|
35578
36757
|
},
|
|
36758
|
+
{
|
|
36759
|
+
"key": "Measured",
|
|
36760
|
+
"category": "done"
|
|
36761
|
+
},
|
|
35579
36762
|
{
|
|
35580
36763
|
"key": "Archived",
|
|
35581
36764
|
"category": "lost",
|
|
@@ -35600,6 +36783,7 @@ counter-evidence: research that only kept what agreed with it isn't research.
|
|
|
35600
36783
|
"Review",
|
|
35601
36784
|
"Scheduled",
|
|
35602
36785
|
"Published",
|
|
36786
|
+
"Measured",
|
|
35603
36787
|
"Archived"
|
|
35604
36788
|
]
|
|
35605
36789
|
},
|
|
@@ -37535,6 +38719,8 @@ var vocabularyFr = {
|
|
|
37535
38719
|
"action.ask_admin.past": "Demand\xE9 \xE0 un admin",
|
|
37536
38720
|
"action.fix_payment.imperative": "Corriger le paiement",
|
|
37537
38721
|
"action.fix_payment.past": "Paiement corrig\xE9",
|
|
38722
|
+
"action.raise_limit.imperative": "Relever la limite",
|
|
38723
|
+
"action.raise_limit.past": "Limite relev\xE9e",
|
|
37538
38724
|
"action.reopen.imperative": "Rouvrir",
|
|
37539
38725
|
"action.reopen.past": "Rouvert",
|
|
37540
38726
|
"action.track.reopen.imperative": "Ouvrir une nouvelle version",
|
|
@@ -37791,6 +38977,7 @@ var vocabularyFr = {
|
|
|
37791
38977
|
"status.public": "Public",
|
|
37792
38978
|
"status.credits_low": "Cr\xE9dits faibles",
|
|
37793
38979
|
"status.credits_empty": "Plus de cr\xE9dits",
|
|
38980
|
+
"status.limit_reached": "Limite mensuelle atteinte",
|
|
37794
38981
|
"status.not_entitled": "Pas de forfait IA",
|
|
37795
38982
|
"status.account_inactive": "IA d\xE9sactiv\xE9e",
|
|
37796
38983
|
"status.suspended": "Paiement requis",
|
|
@@ -37888,6 +39075,7 @@ var vocabularyFr = {
|
|
|
37888
39075
|
"intent.download_media": "T\xE9l\xE9charger un m\xE9dia",
|
|
37889
39076
|
"intent.provision_compute": "D\xE9marrer une machine cloud",
|
|
37890
39077
|
"intent.release_compute": "Arr\xEAter une machine cloud",
|
|
39078
|
+
"intent.search_library": "Chercher dans une biblioth\xE8que",
|
|
37891
39079
|
// ── Needs-you counts: `needsYou.count.<kind>` (French counts 0 and 1 as
|
|
37892
39080
|
// singular; `many` is a whole number of millions: "1000000 de décisions") ──
|
|
37893
39081
|
"needsYou.count.decision": "{n, plural, one {# d\xE9cision} many {# de d\xE9cisions} other {# d\xE9cisions}}",
|
|
@@ -38804,6 +39992,8 @@ var ACTION_VERB_ROWS = {
|
|
|
38804
39992
|
upgrade: { imperative: "Upgrade", past: "Upgraded" },
|
|
38805
39993
|
ask_admin: { imperative: "Ask an admin", past: "Asked an admin" },
|
|
38806
39994
|
fix_payment: { imperative: "Fix payment", past: "Fixed payment" },
|
|
39995
|
+
// The pod reached the monthly AI spending limit its owner set.
|
|
39996
|
+
raise_limit: { imperative: "Raise the limit", past: "Raised the limit" },
|
|
38807
39997
|
// Put a REJECTED proposal back in the queue — the inverse of reject. Without
|
|
38808
39998
|
// a row `resolveActionLabel("reopen", …)` fell through to `humanizeToken`,
|
|
38809
39999
|
// which has no tense and only spelled "Reopen" by luck.
|
|
@@ -39467,6 +40657,7 @@ var STATUS_LABEL_ROWS = {
|
|
|
39467
40657
|
// when AI was switched off rather than left out of the plan.
|
|
39468
40658
|
credits_low: "Low credits",
|
|
39469
40659
|
credits_empty: "Out of credits",
|
|
40660
|
+
limit_reached: "Monthly limit reached",
|
|
39470
40661
|
not_entitled: "No AI plan",
|
|
39471
40662
|
account_inactive: "AI turned off",
|
|
39472
40663
|
suspended: "Payment needed",
|
|
@@ -39604,7 +40795,8 @@ var INTENT_LABELS = {
|
|
|
39604
40795
|
transcribe_media: "Transcribe media",
|
|
39605
40796
|
download_media: "Download media",
|
|
39606
40797
|
provision_compute: "Start a cloud machine",
|
|
39607
|
-
release_compute: "Stop a cloud machine"
|
|
40798
|
+
release_compute: "Stop a cloud machine",
|
|
40799
|
+
search_library: "Search a library"
|
|
39608
40800
|
};
|
|
39609
40801
|
var RUNNER_STATE_LABELS = {
|
|
39610
40802
|
busy: "Working",
|
|
@@ -40431,6 +41623,57 @@ function goalNamesStatus(goal, value, labels) {
|
|
|
40431
41623
|
).test(goal)
|
|
40432
41624
|
);
|
|
40433
41625
|
}
|
|
41626
|
+
var EXPOSURE_RELATIONS = /* @__PURE__ */ new Set(["visible_to", "belongs_to_project"]);
|
|
41627
|
+
function checkPropertyRelations(tpl, resolveDep, corpus, add) {
|
|
41628
|
+
let known = null;
|
|
41629
|
+
for (const p of tpl.profiles || []) {
|
|
41630
|
+
const claimed = /* @__PURE__ */ new Map();
|
|
41631
|
+
for (const pr of p.properties || []) {
|
|
41632
|
+
if (pr.relation === void 0) continue;
|
|
41633
|
+
const at = `profiles.${p.slug}.${pr.slug}.relation`;
|
|
41634
|
+
const rel = pr.relation;
|
|
41635
|
+
if (typeof rel !== "string" || !rel) {
|
|
41636
|
+
add(
|
|
41637
|
+
"property-relation-invalid",
|
|
41638
|
+
at,
|
|
41639
|
+
`property ${p.slug}.${pr.slug} has an empty or non-string relation`
|
|
41640
|
+
);
|
|
41641
|
+
continue;
|
|
41642
|
+
}
|
|
41643
|
+
if (EXPOSURE_RELATIONS.has(rel)) {
|
|
41644
|
+
add(
|
|
41645
|
+
"property-relation-exposure",
|
|
41646
|
+
at,
|
|
41647
|
+
`property ${p.slug}.${pr.slug} declares "${rel}", an exposure relation set through its own door (sharing or project filing), never from a property`
|
|
41648
|
+
);
|
|
41649
|
+
continue;
|
|
41650
|
+
}
|
|
41651
|
+
if (pr.valueType !== "entity_id") {
|
|
41652
|
+
add(
|
|
41653
|
+
"property-relation-not-entity-id",
|
|
41654
|
+
at,
|
|
41655
|
+
`property ${p.slug}.${pr.slug} declares relation "${rel}" but is "${pr.valueType}", not entity_id: only an entity reference can link`
|
|
41656
|
+
);
|
|
41657
|
+
}
|
|
41658
|
+
known ??= knownRelationTypes(tpl, resolveDep, corpus);
|
|
41659
|
+
if (!known.has(rel)) {
|
|
41660
|
+
add(
|
|
41661
|
+
"property-relation-unknown",
|
|
41662
|
+
at,
|
|
41663
|
+
`property ${p.slug}.${pr.slug} declares relation "${rel}", which no entityLinks[].type / relationDefs[].slug of this template (or its dependencies) defines`
|
|
41664
|
+
);
|
|
41665
|
+
}
|
|
41666
|
+
const first = claimed.get(rel);
|
|
41667
|
+
if (first) {
|
|
41668
|
+
add(
|
|
41669
|
+
"property-relation-duplicate",
|
|
41670
|
+
at,
|
|
41671
|
+
`property ${p.slug}.${pr.slug} declares relation "${rel}", already created by ${first}: one property per relation per kind`
|
|
41672
|
+
);
|
|
41673
|
+
} else claimed.set(rel, `${p.slug}.${pr.slug}`);
|
|
41674
|
+
}
|
|
41675
|
+
}
|
|
41676
|
+
}
|
|
40434
41677
|
function checkProcessContract(tpl, resolveDep, corpus, add) {
|
|
40435
41678
|
let relations = null;
|
|
40436
41679
|
const relationsOnce = () => relations ??= knownRelationTypes(tpl, resolveDep, corpus);
|
|
@@ -40966,7 +42209,10 @@ function checkPresentationDeclarations(tpl, resolveDep, corpus, add) {
|
|
|
40966
42209
|
);
|
|
40967
42210
|
}
|
|
40968
42211
|
}
|
|
40969
|
-
var SERVER_DERIVED_PROPERTY_KEYS = [
|
|
42212
|
+
var SERVER_DERIVED_PROPERTY_KEYS = [
|
|
42213
|
+
"workedIn",
|
|
42214
|
+
"workedInAll"
|
|
42215
|
+
];
|
|
40970
42216
|
var SERVER_DERIVED_GROUP_KEYS = ["workedIn"];
|
|
40971
42217
|
function checkServerDerivedProperties(tpl, add) {
|
|
40972
42218
|
for (const p of tpl.profiles || [])
|
|
@@ -41297,6 +42543,15 @@ function checkStart(tpl, resolveDep, corpus, add) {
|
|
|
41297
42543
|
function hasCorpus(resolveDep) {
|
|
41298
42544
|
return resolveDep(SHARED_ROLE_SSOT_SLUG) !== void 0;
|
|
41299
42545
|
}
|
|
42546
|
+
var SPACE_INTENT_COUNT_CAP = 8;
|
|
42547
|
+
var SPACE_INTENT_PHRASE_CAP = 80;
|
|
42548
|
+
var INTENT_LOCALE = /^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})?$/;
|
|
42549
|
+
var INTENT_GLUE_WORDS = new Set(
|
|
42550
|
+
"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(" ")
|
|
42551
|
+
);
|
|
42552
|
+
function intentMeaningfulWords(phrase) {
|
|
42553
|
+
return phrase.normalize("NFD").replace(/\p{M}+/gu, "").toLowerCase().split(/[^\p{L}\p{N}]+/u).filter((w) => w !== "" && !INTENT_GLUE_WORDS.has(w)).length;
|
|
42554
|
+
}
|
|
41300
42555
|
function validateTemplate(authored, authoredOpts = {}) {
|
|
41301
42556
|
const errors = [];
|
|
41302
42557
|
const add = (rule, path, message) => errors.push({ rule, path, message });
|
|
@@ -41669,6 +42924,63 @@ function validateTemplate(authored, authoredOpts = {}) {
|
|
|
41669
42924
|
"onboarding.expertise.bar must be a non-empty string"
|
|
41670
42925
|
);
|
|
41671
42926
|
}
|
|
42927
|
+
const intents = onboarding.intents;
|
|
42928
|
+
if (intents !== void 0) {
|
|
42929
|
+
if (!Array.isArray(intents)) {
|
|
42930
|
+
add(
|
|
42931
|
+
"onboarding-intents-invalid",
|
|
42932
|
+
"onboarding.intents",
|
|
42933
|
+
"onboarding.intents must be a list of { phrase, locale? }"
|
|
42934
|
+
);
|
|
42935
|
+
} else {
|
|
42936
|
+
if (intents.length > SPACE_INTENT_COUNT_CAP)
|
|
42937
|
+
add(
|
|
42938
|
+
"onboarding-intents-too-many",
|
|
42939
|
+
"onboarding.intents",
|
|
42940
|
+
`onboarding.intents has ${intents.length} phrases; the pod keeps the first ${SPACE_INTENT_COUNT_CAP} and drops the rest`
|
|
42941
|
+
);
|
|
42942
|
+
const seenIntent = /* @__PURE__ */ new Set();
|
|
42943
|
+
intents.forEach((raw, i) => {
|
|
42944
|
+
const where = `onboarding.intents.${i}`;
|
|
42945
|
+
const phrase = raw && typeof raw === "object" ? raw.phrase : void 0;
|
|
42946
|
+
if (typeof phrase !== "string" || phrase.trim() === "") {
|
|
42947
|
+
add(
|
|
42948
|
+
"onboarding-intent-invalid",
|
|
42949
|
+
where,
|
|
42950
|
+
"an intent is an object with a non-empty `phrase` (a bare string is read by the pod but never authored)"
|
|
42951
|
+
);
|
|
42952
|
+
return;
|
|
42953
|
+
}
|
|
42954
|
+
if (Array.from(phrase).length > SPACE_INTENT_PHRASE_CAP)
|
|
42955
|
+
add(
|
|
42956
|
+
"onboarding-intent-too-long",
|
|
42957
|
+
`${where}.phrase`,
|
|
42958
|
+
`intent "${phrase.slice(0, 30)}\u2026" is over ${SPACE_INTENT_PHRASE_CAP} characters: the pod clips it`
|
|
42959
|
+
);
|
|
42960
|
+
if (intentMeaningfulWords(phrase) < 2)
|
|
42961
|
+
add(
|
|
42962
|
+
"onboarding-intent-words",
|
|
42963
|
+
`${where}.phrase`,
|
|
42964
|
+
`intent "${phrase}" has fewer than two meaningful words (glue words like "the", "to", "for", "le", "de" do not count): one word routes nothing`
|
|
42965
|
+
);
|
|
42966
|
+
const locale = raw.locale;
|
|
42967
|
+
if (locale !== void 0 && (typeof locale !== "string" || !INTENT_LOCALE.test(locale)))
|
|
42968
|
+
add(
|
|
42969
|
+
"onboarding-intent-locale",
|
|
42970
|
+
`${where}.locale`,
|
|
42971
|
+
`intent locale ${JSON.stringify(locale)} is not a BCP 47 language (en, fr, pt-BR): the pod drops it`
|
|
42972
|
+
);
|
|
42973
|
+
const key = phrase.trim().toLowerCase();
|
|
42974
|
+
if (seenIntent.has(key))
|
|
42975
|
+
add(
|
|
42976
|
+
"onboarding-intent-duplicate",
|
|
42977
|
+
`${where}.phrase`,
|
|
42978
|
+
`intent "${phrase}" repeats an earlier one: the pod keeps the first`
|
|
42979
|
+
);
|
|
42980
|
+
seenIntent.add(key);
|
|
42981
|
+
});
|
|
42982
|
+
}
|
|
42983
|
+
}
|
|
41672
42984
|
if (onboarding.openingQuestions !== void 0 && (!Array.isArray(onboarding.openingQuestions) || onboarding.openingQuestions.some(
|
|
41673
42985
|
(question) => typeof question !== "string" || question.trim() === ""
|
|
41674
42986
|
))) {
|
|
@@ -41920,6 +43232,7 @@ function validateTemplate(authored, authoredOpts = {}) {
|
|
|
41920
43232
|
checkSharedRoleReferences(tpl, resolveDepFrom(opts), add);
|
|
41921
43233
|
checkStageDomains(tpl, resolveDepFrom(opts), add);
|
|
41922
43234
|
checkProcessContract(tpl, resolveDepFrom(opts), opts.corpus, add);
|
|
43235
|
+
checkPropertyRelations(tpl, resolveDepFrom(opts), opts.corpus, add);
|
|
41923
43236
|
checkKanbanGrouping(tpl, resolveDepFrom(opts), opts.corpus, add);
|
|
41924
43237
|
checkServerDerivedProperties(tpl, add);
|
|
41925
43238
|
checkLifecycleDeclarations(tpl, resolveDepFrom(opts), opts.corpus, add);
|