@synap-core/workspace-templates 0.63.0 → 0.65.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/capabilities/design.capability.json +2 -1
- package/dist/index.js +92 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/builder.yaml +3 -2
- package/src/content-os.campaigns.template.test.ts +127 -0
- package/src/content-os.template.test.ts +6 -7
- package/src/content-os.yaml +157 -45
- package/src/templates.ts +92 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synap-core/workspace-templates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical workspace definitions — YAML source + typed exports for browser, backend, CLI, and marketplace",
|
|
6
6
|
"license": "PolyForm-Noncommercial-1.0.0",
|
package/src/builder.yaml
CHANGED
|
@@ -1434,9 +1434,11 @@ profiles:
|
|
|
1434
1434
|
color: violet
|
|
1435
1435
|
description: A canvas of screens (one frame each; a single screen is one frame), designed from the real component library — Puck JSON a person reviews on the canvas and a coding agent implements.
|
|
1436
1436
|
# The ONE lifecycle (work model L1). `approved` (the design review) and
|
|
1437
|
-
# `archived` are a person's call only.
|
|
1437
|
+
# `archived` are a person's call only. A new design starts in `draft`
|
|
1438
|
+
# (`initialStatus`: the lifecycle door, read by every create door).
|
|
1438
1439
|
lifecycle:
|
|
1439
1440
|
property: design-status
|
|
1441
|
+
initialStatus: draft
|
|
1440
1442
|
options:
|
|
1441
1443
|
- { key: draft, category: open }
|
|
1442
1444
|
- { key: in-review, category: active }
|
|
@@ -1456,7 +1458,6 @@ profiles:
|
|
|
1456
1458
|
valueType: string
|
|
1457
1459
|
inputType: select
|
|
1458
1460
|
enumValues: [draft, in-review, approved, implementing, implemented, archived]
|
|
1459
|
-
constraints: { defaultValue: draft }
|
|
1460
1461
|
- slug: target-surface
|
|
1461
1462
|
label: Target surface
|
|
1462
1463
|
valueType: string
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content OS campaigns (founder, 23 Nov 2026; J2 plan e51783ca, lane J2-cat).
|
|
3
|
+
*
|
|
4
|
+
* A campaign is the `campaign` kind, "an entity the post can be linked to
|
|
5
|
+
* (belongs to)", a container that gives workers, agents and the person their
|
|
6
|
+
* context. Membership is ONE single-valued property per kind (decision B1):
|
|
7
|
+
* `post-campaign` (already), `idea-campaign`, `composition-campaign`.
|
|
8
|
+
*
|
|
9
|
+
* Plan Next Content plans a campaign: its subject kind is `campaign` (the pod's
|
|
10
|
+
* copy is already bound to it), and it carries the founder's 9 Nov rules A
|
|
11
|
+
* (only posts are planned) and C (every date is a proposal), so applying a
|
|
12
|
+
* catalog update no longer reverts them. Rule B's numbers (the rhythm) live on
|
|
13
|
+
* the campaign, never in the catalog text.
|
|
14
|
+
*/
|
|
15
|
+
import { describe, expect, it } from "vitest";
|
|
16
|
+
import { getWorkspaceTemplate } from "./templates.js";
|
|
17
|
+
import type { TemplatePlaybook } from "./types.js";
|
|
18
|
+
|
|
19
|
+
const template = (() => {
|
|
20
|
+
const resolved = getWorkspaceTemplate("content-os");
|
|
21
|
+
if (!resolved) throw new Error("content-os template is not registered");
|
|
22
|
+
return resolved;
|
|
23
|
+
})();
|
|
24
|
+
|
|
25
|
+
const profile = (slug: string) => template.profiles.find((p) => p.slug === slug);
|
|
26
|
+
const prop = (kind: string, slug: string) => profile(kind)?.properties.find((d) => d.slug === slug);
|
|
27
|
+
const playbook = (name: string) =>
|
|
28
|
+
(template.playbooks ?? []).find((p) => p.name === name) as TemplatePlaybook | undefined;
|
|
29
|
+
|
|
30
|
+
describe("Content OS: an idea and a piece belong to one campaign, like a post", () => {
|
|
31
|
+
const shape = (d: ReturnType<typeof prop>) =>
|
|
32
|
+
d && { valueType: d.valueType, targetProfileSlug: d.targetProfileSlug, inputType: d.inputType };
|
|
33
|
+
|
|
34
|
+
it("the post's own field is the model (non-vacuity)", () => {
|
|
35
|
+
expect(shape(prop("post", "post-campaign"))).toEqual({
|
|
36
|
+
valueType: "entity_id",
|
|
37
|
+
targetProfileSlug: "campaign",
|
|
38
|
+
inputType: "entity_select",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("declares idea-campaign on idea and composition-campaign on content-composition, same shape", () => {
|
|
43
|
+
const model = shape(prop("post", "post-campaign"));
|
|
44
|
+
expect(shape(prop("idea", "idea-campaign"))).toEqual(model);
|
|
45
|
+
expect(shape(prop("content-composition", "composition-campaign"))).toEqual(model);
|
|
46
|
+
expect(prop("idea", "idea-campaign")?.label).toBe("Campaign");
|
|
47
|
+
expect(prop("content-composition", "composition-campaign")?.label).toBe("Campaign");
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it("declares the graph edge to the campaign for both, as for a post", () => {
|
|
51
|
+
const links = (template.entityLinks ?? []).map(
|
|
52
|
+
(l) => `${l.sourceProfileSlug}-${l.type}->${l.targetProfileSlug}`,
|
|
53
|
+
);
|
|
54
|
+
expect(links).toEqual(
|
|
55
|
+
expect.arrayContaining([
|
|
56
|
+
"post-part_of_campaign->campaign",
|
|
57
|
+
"idea-part_of_campaign->campaign",
|
|
58
|
+
"content-composition-part_of_campaign->campaign",
|
|
59
|
+
]),
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it("Derive outputs gives the posts it makes the piece's campaign", () => {
|
|
64
|
+
const derive = playbook("Derive outputs");
|
|
65
|
+
expect(derive?.subjectProfile?.profileSlug).toBe("content-composition");
|
|
66
|
+
expect(derive?.goalTemplate).toMatch(/composition-campaign\), give each post that campaign\s+\(post-campaign\)/);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
describe("Content OS: Plan Next Content plans a campaign, with the founder's rules", () => {
|
|
71
|
+
const plan = playbook("Plan Next Content");
|
|
72
|
+
const texts = () => [plan?.goalTemplate ?? "", ...(plan?.stages ?? []).map((s) => s.goal ?? "")];
|
|
73
|
+
|
|
74
|
+
it("is bound to the campaign kind, the pod's binding", () => {
|
|
75
|
+
expect(plan?.subjectProfile).toEqual({ profileSlug: "campaign" });
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("plans the run's campaign when it has one, else every active campaign", () => {
|
|
79
|
+
expect(plan?.goalTemplate).toMatch(/when this run has a subject, it is the\s+campaign to plan/);
|
|
80
|
+
expect(plan?.goalTemplate).toMatch(/With no subject,\s+plan every active campaign/);
|
|
81
|
+
// It reads the campaign's members from the one field per kind.
|
|
82
|
+
for (const field of ["idea-campaign", "composition-campaign", "post-campaign"]) {
|
|
83
|
+
expect(plan?.goalTemplate).toContain(field);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it("carries rule A: only posts are planned, never raw material", () => {
|
|
88
|
+
expect(plan?.goalTemplate).toContain("(A) Only POSTS are planned");
|
|
89
|
+
expect(plan?.goalTemplate).toMatch(/never give one a slot or a date/);
|
|
90
|
+
expect(plan?.goalTemplate).toMatch(/never treat a post that is only a take/);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it("carries rule C: every date is a proposal, and the final message reads back what is applied", () => {
|
|
94
|
+
expect(plan?.goalTemplate).toMatch(/\(C\) You change nothing yourself/);
|
|
95
|
+
expect(plan?.goalTemplate).toContain("never apply a date yourself");
|
|
96
|
+
expect(plan?.goalTemplate).toMatch(/exactly what is applied and what is proposed/);
|
|
97
|
+
expect((plan?.criteria ?? []).map((c) => c.key)).toContain("nothing-applied-directly");
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it("reads rule B, the rhythm, from the campaign: no day or count of the rhythm in this text", () => {
|
|
101
|
+
expect(plan?.goalTemplate).toMatch(/\(B\) The rhythm is the campaign's/);
|
|
102
|
+
for (const text of texts()) {
|
|
103
|
+
expect(text).not.toMatch(/monday|tuesday|wednesday|thursday|friday|saturday|sunday/i);
|
|
104
|
+
expect(text).not.toMatch(/\b(two|three|four|five) publishing days\b/i);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it("keeps the pod's four stages, none of which moves the campaign's status", () => {
|
|
109
|
+
expect((plan?.stages ?? []).map((s) => s.key)).toEqual(["read", "audit", "place", "file"]);
|
|
110
|
+
for (const stage of plan?.stages ?? []) {
|
|
111
|
+
expect(stage.subjectStatus).toBeUndefined();
|
|
112
|
+
expect(stage.onApproved).toBeUndefined();
|
|
113
|
+
}
|
|
114
|
+
expect((plan?.criteria ?? []).map((c) => c.key)).toEqual([
|
|
115
|
+
"nothing-applied-directly",
|
|
116
|
+
"rhythm-kept",
|
|
117
|
+
"outputs-filed",
|
|
118
|
+
]);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it("never runs at the same minute as Weekly content production", () => {
|
|
122
|
+
const planCron = plan?.activators?.find((a) => a.on === "schedule")?.cron;
|
|
123
|
+
const produce = template.automations?.find((a) => a.key === "content-os-weekly-produce");
|
|
124
|
+
expect(planCron).toBe("0 9 * * 1");
|
|
125
|
+
expect((produce?.triggerConfig as { expression?: string } | undefined)?.expression).not.toBe(planCron);
|
|
126
|
+
});
|
|
127
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Content OS pin strategy — Produce Content is pinned; the weekly cron that
|
|
3
3
|
* runs it ships paused; Plan Next Content's workers (weekly and by hand) run
|
|
4
|
-
* once
|
|
4
|
+
* once per tick and propose. Not a YAML snapshot.
|
|
5
5
|
*/
|
|
6
6
|
import { readFileSync } from "fs";
|
|
7
7
|
import { dirname, join } from "path";
|
|
@@ -32,7 +32,7 @@ describe("Content OS pin strategy", () => {
|
|
|
32
32
|
expect(rejected).toBeDefined();
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
it("pins Produce Content; Plan Next Content runs weekly and by hand, once
|
|
35
|
+
it("pins Produce Content; Plan Next Content runs weekly and by hand, once per tick, proposing", () => {
|
|
36
36
|
const produce = template.playbooks?.find((p) => p.name === "Produce Content");
|
|
37
37
|
const plan = template.playbooks?.find((p) => p.name === "Plan Next Content");
|
|
38
38
|
|
|
@@ -47,12 +47,11 @@ describe("Content OS pin strategy", () => {
|
|
|
47
47
|
expect(produce).not.toHaveProperty("schedule");
|
|
48
48
|
expect(produce?.inputStrategy).not.toHaveProperty("pinnedEntityIds");
|
|
49
49
|
|
|
50
|
-
// The plan's clock is a per_moment schedule activator: ONE run
|
|
51
|
-
//
|
|
50
|
+
// The plan's clock is a per_moment schedule activator: ONE run per tick,
|
|
51
|
+
// never one per campaign.
|
|
52
52
|
expect(plan).not.toHaveProperty("schedule");
|
|
53
53
|
expect(plan).not.toHaveProperty("inputStrategy");
|
|
54
|
-
|
|
55
|
-
expect(plan?.stages ?? []).toEqual([]);
|
|
54
|
+
// Its subject kind and stages: content-os.campaigns.template.test.ts.
|
|
56
55
|
expect(plan?.activators).toEqual([
|
|
57
56
|
{ on: "schedule", cron: "0 9 * * 1", mode: "propose" },
|
|
58
57
|
{ on: "manual", size: "per_moment", mode: "propose" },
|
|
@@ -70,7 +69,7 @@ describe("Content OS pin strategy", () => {
|
|
|
70
69
|
key: "content-os-weekly-produce",
|
|
71
70
|
triggerType: "cron",
|
|
72
71
|
status: "paused",
|
|
73
|
-
triggerConfig: { expression: "0 9 * *
|
|
72
|
+
triggerConfig: { expression: "0 9 * * 2" },
|
|
74
73
|
});
|
|
75
74
|
|
|
76
75
|
const nodes = (automation?.flow.nodes ?? []) as Array<{
|
package/src/content-os.yaml
CHANGED
|
@@ -558,6 +558,15 @@ profiles:
|
|
|
558
558
|
valueType: entity_id
|
|
559
559
|
targetProfileSlug: pillar
|
|
560
560
|
inputType: entity_select
|
|
561
|
+
# The campaign this idea is kept for (founder, 23 Nov 2026, J2 plan
|
|
562
|
+
# e51783ca decision B1): ONE campaign per thing, the same single-valued
|
|
563
|
+
# shape as `post-campaign`, so Content Studio reads membership from the
|
|
564
|
+
# row and Plan Next Content reads a campaign's ideas from it.
|
|
565
|
+
- slug: idea-campaign
|
|
566
|
+
label: Campaign
|
|
567
|
+
valueType: entity_id
|
|
568
|
+
targetProfileSlug: campaign
|
|
569
|
+
inputType: entity_select
|
|
561
570
|
- slug: idea-stage
|
|
562
571
|
label: Journey Stage
|
|
563
572
|
valueType: entity_id
|
|
@@ -1449,6 +1458,15 @@ profiles:
|
|
|
1449
1458
|
valueType: string
|
|
1450
1459
|
inputType: select
|
|
1451
1460
|
enumValues: [text-site, text-linkedin, text-newsletter, carousel-linkedin, carousel-instagram, carousel-both, video-motion, video-capture, carousel]
|
|
1461
|
+
# The campaign this piece belongs to (founder, 23 Nov 2026, J2 plan
|
|
1462
|
+
# e51783ca decision B1): ONE campaign per piece, the same single-valued
|
|
1463
|
+
# shape as `post-campaign`. Derive outputs copies it onto the posts it
|
|
1464
|
+
# makes, so the campaign's Publications see them.
|
|
1465
|
+
- slug: composition-campaign
|
|
1466
|
+
label: Campaign
|
|
1467
|
+
valueType: entity_id
|
|
1468
|
+
targetProfileSlug: campaign
|
|
1469
|
+
inputType: entity_select
|
|
1452
1470
|
|
|
1453
1471
|
- slug: content-asset
|
|
1454
1472
|
displayName: Asset
|
|
@@ -1909,6 +1927,18 @@ entityLinks:
|
|
|
1909
1927
|
targetProfileSlug: pillar
|
|
1910
1928
|
type: belongs_to_pillar
|
|
1911
1929
|
label: Pillar
|
|
1930
|
+
# An idea and a piece belong to a campaign the way a post does (J2 plan
|
|
1931
|
+
# e51783ca, decision B1): the single-valued property (`idea-campaign`,
|
|
1932
|
+
# `composition-campaign`) is what apps and playbooks read; the edge is
|
|
1933
|
+
# declared for the graph, as the pillar edges are.
|
|
1934
|
+
- sourceProfileSlug: idea
|
|
1935
|
+
targetProfileSlug: campaign
|
|
1936
|
+
type: part_of_campaign
|
|
1937
|
+
label: Campaign
|
|
1938
|
+
- sourceProfileSlug: content-composition
|
|
1939
|
+
targetProfileSlug: campaign
|
|
1940
|
+
type: part_of_campaign
|
|
1941
|
+
label: Campaign
|
|
1912
1942
|
# The video pipeline edges (moved from content-studio.yaml). content-studio's
|
|
1913
1943
|
# `made_with_recipe` edge is NOT carried: its recipe kind was folded into
|
|
1914
1944
|
# Brand Library's `brand-template` (decision D2, 2026-10-12), which the
|
|
@@ -2517,52 +2547,128 @@ playbooks:
|
|
|
2517
2547
|
statement: Nothing was published, and no Produce Content run started unless the person asked for it.
|
|
2518
2548
|
check: { kind: judge }
|
|
2519
2549
|
|
|
2520
|
-
# The proactive half: the plan. It reasons over
|
|
2521
|
-
#
|
|
2522
|
-
#
|
|
2523
|
-
#
|
|
2524
|
-
#
|
|
2525
|
-
#
|
|
2526
|
-
#
|
|
2527
|
-
#
|
|
2528
|
-
#
|
|
2529
|
-
#
|
|
2530
|
-
# The
|
|
2531
|
-
#
|
|
2550
|
+
# The proactive half: the plan. It reasons over a CAMPAIGN (founder, 23 Nov
|
|
2551
|
+
# 2026, J2 plan e51783ca decisions A1 and D-1: a campaign is the `campaign`
|
|
2552
|
+
# kind, the container that gives workers and the person their context). Run
|
|
2553
|
+
# on ONE campaign (Content Studio's "Plan this campaign" passes it as the
|
|
2554
|
+
# run's subject), it plans that campaign; run with no subject (the weekly
|
|
2555
|
+
# worker, the pod's button), it plans every active campaign. Its WORKERS are
|
|
2556
|
+
# per_moment: ONE run, one batch to approve, never one run per campaign (a
|
|
2557
|
+
# `schedule` activator is per_moment unless it declares `size: per_thing`:
|
|
2558
|
+
# api `run-playbook.ts` runWorkerBatch). Its stages carry no subjectStatus,
|
|
2559
|
+
# so it never moves a campaign's status.
|
|
2560
|
+
# The founder's three rules of 9 Nov 2026 (taken from the pod's copy,
|
|
2561
|
+
# version 8) are kept here, so applying a catalog update no longer reverts
|
|
2562
|
+
# them: (A) only posts are planned, (C) every date is a proposal. Rule (B)
|
|
2563
|
+
# is the RHYTHM, and its numbers (which days, which formats each day carries)
|
|
2564
|
+
# live on the campaign (its notes or its plan document), never in this text:
|
|
2565
|
+
# the plan's numbers are read from the pod, where the person edits them.
|
|
2532
2566
|
- name: Plan Next Content
|
|
2533
2567
|
description: Audit the whole corpus against the journey, find the gap, propose what to make next, and propose dates for the posts that have none or whose date has passed.
|
|
2534
2568
|
goalTemplate: >-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
a
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
and
|
|
2569
|
+
Plan the next content. THREE RULES FIRST (founder, 9 Nov 2026): (A) Only
|
|
2570
|
+
POSTS are planned. A recording, a free take, a composition or a board is
|
|
2571
|
+
raw material that posts are made FROM; never give one a slot or a date,
|
|
2572
|
+
and never treat a post that is only a take (tag source:take, no finished
|
|
2573
|
+
cut) as publishable. (B) The rhythm is the campaign's: which days it
|
|
2574
|
+
publishes and what each day carries (for example one produced video plus
|
|
2575
|
+
one companion carousel on the same idea) are written on the campaign (its
|
|
2576
|
+
notes or its plan document), never in this text. When the rhythm pairs
|
|
2577
|
+
formats, a companion never goes out alone: if a day has no finished lead
|
|
2578
|
+
piece, propose the piece to make (its idea, hook and format), not a lone
|
|
2579
|
+
companion. (C) You change nothing yourself: every new date, swap or move
|
|
2580
|
+
is filed as a proposal for the person (a capture or a proposed update),
|
|
2581
|
+
never applied directly, so never apply a date yourself; your final
|
|
2582
|
+
message must say exactly what is applied and what is proposed, read back
|
|
2583
|
+
from the records. WHICH CAMPAIGN: when this run has a subject, it is the
|
|
2584
|
+
campaign to plan, and you plan THAT campaign only: its dates
|
|
2585
|
+
(campaign-start-date, campaign-end-date), its goal, its audience, its
|
|
2586
|
+
notes and its plan document, its ideas (idea-campaign), its pieces
|
|
2587
|
+
(composition-campaign) and its posts (post-campaign). With no subject,
|
|
2588
|
+
plan every active campaign whose dates cover the coming weeks, each on
|
|
2589
|
+
its own rhythm; when none is active, plan without one and say so. Read
|
|
2590
|
+
the campaign's plan document first: its BACKBONE is the fixed series of
|
|
2591
|
+
slots and its BANK is every post at Idea or Briefed that has no slot yet,
|
|
2592
|
+
with the campaign's ideas and pieces (ideas from interviews, notes,
|
|
2593
|
+
news). Audit the corpus: map every post onto its pillar and its journey
|
|
2594
|
+
stage, list the pillar × stage cells that are empty or thin, and check
|
|
2595
|
+
the running series for the missing chapter. Then place the flow: for
|
|
2596
|
+
each bank idea, decide where it goes and say why: (1) TIMELY (news, a
|
|
2597
|
+
release, something people talk about this week): the next free day, or
|
|
2598
|
+
replace the backbone slot whose topic it covers better; (2) FITS THIS
|
|
2599
|
+
WEEK'S STAGE (the journey's stages in their order): swap it with the
|
|
2600
|
+
backbone slot of the same stage; (3) otherwise it waits in the bank. A
|
|
2601
|
+
displaced slot moves later, never silently dropped. Propose the coming
|
|
2602
|
+
week's days on the campaign's rhythm, with the reason for each (new
|
|
2603
|
+
pieces as post entities at Idea with their post-campaign set, existing
|
|
2604
|
+
ones as proposed date changes); the person decides every swap. When the
|
|
2605
|
+
campaign states no rhythm, follow each publishing account's cadence
|
|
2606
|
+
(platform-posting-freq on its platform) and each pillar's target
|
|
2607
|
+
(posting-frequency on the pillar). Keep a campaign's posts inside its
|
|
2608
|
+
dates, never put two posts of one account on the same day, never move a
|
|
2609
|
+
Published or Archived post, and never change a post's status. If the pod
|
|
2610
|
+
has offers, note which ones no content teaches toward; if it has none,
|
|
2611
|
+
plan purely for audience-building and do not invent commerce. When an
|
|
2612
|
+
input is missing (no rhythm, no cadence, no plan document), say which one
|
|
2613
|
+
in the run's summary and plan without it. Say "agent", never "AI".
|
|
2558
2614
|
subjectProfile:
|
|
2559
|
-
profileSlug:
|
|
2615
|
+
profileSlug: campaign
|
|
2560
2616
|
activators:
|
|
2561
2617
|
- { on: schedule, cron: "0 9 * * 1", mode: propose }
|
|
2562
2618
|
- { on: manual, size: per_moment, mode: propose }
|
|
2619
|
+
stages:
|
|
2620
|
+
- key: read
|
|
2621
|
+
name: Read the calendar and the corpus
|
|
2622
|
+
category: started
|
|
2623
|
+
tier: quick
|
|
2624
|
+
goal: >-
|
|
2625
|
+
Read the campaign (the run's subject, else every active campaign):
|
|
2626
|
+
its plan document (backbone and bank), its rhythm, its ideas and its
|
|
2627
|
+
pieces, and list the posts with their status, pillar, stage, campaign
|
|
2628
|
+
and date. Read by id; write a short summary in the room and do not
|
|
2629
|
+
re-read it later.
|
|
2630
|
+
- key: audit
|
|
2631
|
+
name: Audit pillar x stage
|
|
2632
|
+
category: started
|
|
2633
|
+
tier: deep
|
|
2634
|
+
goal: >-
|
|
2635
|
+
Map every post onto its pillar and journey stage, list empty or thin
|
|
2636
|
+
cells, name the missing chapter of the running series, and note
|
|
2637
|
+
offers no content teaches toward (or say there are none). Write the
|
|
2638
|
+
result in the room.
|
|
2639
|
+
- key: place
|
|
2640
|
+
name: Place the bank and the week
|
|
2641
|
+
category: started
|
|
2642
|
+
tier: deep
|
|
2643
|
+
goal: >-
|
|
2644
|
+
For each bank idea decide timely / fits this week's stage / waits,
|
|
2645
|
+
with the reason. Propose the coming week's days on the campaign's
|
|
2646
|
+
rhythm. Every date change or swap is filed as a proposal; never apply
|
|
2647
|
+
it.
|
|
2648
|
+
- key: file
|
|
2649
|
+
name: File the plan and the next post idea
|
|
2650
|
+
category: completed
|
|
2651
|
+
tier: quick
|
|
2652
|
+
goal: >-
|
|
2653
|
+
Create the plan document and the Next post idea (status Idea, no
|
|
2654
|
+
date), record both on the session, and post one message that says
|
|
2655
|
+
what is applied and what is proposed, read back from the records.
|
|
2656
|
+
criteria:
|
|
2657
|
+
- key: nothing-applied-directly
|
|
2658
|
+
statement: "No post date or status was changed directly: every date change is a pending proposal, and the final message says applied = none."
|
|
2659
|
+
required: true
|
|
2660
|
+
check: { kind: judge, hint: Compare the final message with the records' updatedAt. }
|
|
2661
|
+
- key: rhythm-kept
|
|
2662
|
+
statement: Each proposed publishing day follows the campaign's rhythm; when the rhythm pairs formats, no companion goes out alone, and no take, composition or board is given a date.
|
|
2663
|
+
required: true
|
|
2664
|
+
check: { kind: judge }
|
|
2665
|
+
- key: outputs-filed
|
|
2666
|
+
statement: The Next post idea and the plan document are recorded on the session before it ends, within one run's turns and without a 'Keep the run going' ask.
|
|
2667
|
+
required: true
|
|
2668
|
+
check: { kind: judge }
|
|
2563
2669
|
# Typed output: each idea is a real `post` at Idea (the start of Produce
|
|
2564
|
-
# Content's lifecycle), not prose in a message.
|
|
2565
|
-
#
|
|
2670
|
+
# Content's lifecycle), not prose in a message. No edge to the subject: the
|
|
2671
|
+
# post carries its campaign in `post-campaign`.
|
|
2566
2672
|
expectedOutputs:
|
|
2567
2673
|
- { kind: post, label: Next post idea, relationToSubject: none }
|
|
2568
2674
|
executor: is-agent
|
|
@@ -2898,9 +3004,12 @@ playbooks:
|
|
|
2898
3004
|
post gets its own post-hook and its own text (in `content`), taken from
|
|
2899
3005
|
the piece's own words, cut and shaped for the account's platform; never
|
|
2900
3006
|
a claim the piece does not make, and no two posts with the same angle.
|
|
2901
|
-
Set post-platform from the account's platform-type.
|
|
2902
|
-
|
|
2903
|
-
(
|
|
3007
|
+
Set post-platform from the account's platform-type. When the piece has
|
|
3008
|
+
a campaign (composition-campaign), give each post that campaign
|
|
3009
|
+
(post-campaign). Optionally, when the piece reads as one, add ONE
|
|
3010
|
+
newsletter issue at Idea (newsletter-status Idea, and its
|
|
3011
|
+
newsletter-campaign when the piece has one) linked derived_from the
|
|
3012
|
+
piece. Create each
|
|
2904
3013
|
post and the issue (create_entity), then link each one derived_from
|
|
2905
3014
|
the piece (create_relation); each write is a proposal the person
|
|
2906
3015
|
approves. The piece's own status is not moved by this run. Nothing is
|
|
@@ -2922,17 +3031,20 @@ playbooks:
|
|
|
2922
3031
|
- { kind: newsletter, label: Newsletter issue, relationToSubject: derived_from, optional: true }
|
|
2923
3032
|
|
|
2924
3033
|
automations:
|
|
3034
|
+
# Tuesday, not Monday (J2 plan e51783ca, J2-cat item 4): Plan Next
|
|
3035
|
+
# Content proposes new ideas on Monday at 09:00, and this run picks the
|
|
3036
|
+
# oldest one, so the same minute would race the plan once switched on.
|
|
2925
3037
|
- key: content-os-weekly-produce
|
|
2926
3038
|
name: Weekly content production
|
|
2927
3039
|
description: >
|
|
2928
|
-
|
|
3040
|
+
Tuesday 09:00. Runs Produce Content once, with no subject. The playbook
|
|
2929
3041
|
takes the first eligible pinned post, or the oldest post still in Idea
|
|
2930
3042
|
when the pin list has nobody eligible. Shipped paused because Content OS
|
|
2931
3043
|
is public: an active cron would spend a run for every installer. Turn
|
|
2932
3044
|
it on to start the cycle. Produce Content's own schedule stays off.
|
|
2933
3045
|
triggerType: cron
|
|
2934
3046
|
triggerConfig:
|
|
2935
|
-
expression: "0 9 * *
|
|
3047
|
+
expression: "0 9 * * 2"
|
|
2936
3048
|
status: paused
|
|
2937
3049
|
flow:
|
|
2938
3050
|
nodes:
|
|
@@ -2940,10 +3052,10 @@ automations:
|
|
|
2940
3052
|
type: trigger
|
|
2941
3053
|
position: { x: 0, y: 0 }
|
|
2942
3054
|
data:
|
|
2943
|
-
label:
|
|
3055
|
+
label: Tuesday at 09:00
|
|
2944
3056
|
triggerType: cron
|
|
2945
3057
|
config:
|
|
2946
|
-
expression: "0 9 * *
|
|
3058
|
+
expression: "0 9 * * 2"
|
|
2947
3059
|
- id: produce
|
|
2948
3060
|
type: playbook_run
|
|
2949
3061
|
position: { x: 0, y: 160 }
|