@synap-core/workspace-templates 0.68.0 → 0.70.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/workspace-templates",
3
- "version": "0.68.0",
3
+ "version": "0.70.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",
@@ -0,0 +1,100 @@
1
+ /**
2
+ * The "Design system on Synap" pack (plan 48854969 W5, "one click for
3
+ * anyone"): one install brings what an app's Storybook needs on a pod, and its
4
+ * setup asks three things, one at a time.
5
+ *
6
+ * What this guards:
7
+ * 1. the pack is a suite that owns no data, and REQUIRES what already exists
8
+ * instead of copying it: Dev first (the setup lands there), then the
9
+ * Brand library, then the storybook capability;
10
+ * 2. what it promises arrives through those dependencies: Dev carries the
11
+ * three UI kinds, the review and design playbooks and the two design
12
+ * skills; Brand carries the brand identity;
13
+ * 3. the setup asks ONE question per stage, in order (where the Storybook
14
+ * is, which app, which brand identity), each a stage-end ask of one field,
15
+ * and no other stage asks;
16
+ * 4. the storybook.sync parameters the setup names are the verb's own
17
+ * (`STORYBOOK_VERB_PARAMETERS`), so the text cannot drift from the door;
18
+ * 5. the run it tells to run storybook.sync is GIVEN it: a run gets
19
+ * run_capability only for what its `tools` declare (schema/run-tools.ts
20
+ * `runToolNames`); five stages make it a long run, which creates no
21
+ * automation and hands nothing to a computer, so its text asks neither.
22
+ *
23
+ * Not covered: the install on a pod (CP + backend), whether the pod raises
24
+ * each endAsk at the end of its stage, and the run's resolution of the names.
25
+ */
26
+ import { describe, expect, it } from "vitest";
27
+ import {
28
+ STORYBOOK_CAPABILITY_KEY,
29
+ STORYBOOK_SYNC_VERB,
30
+ STORYBOOK_VERB_PARAMETERS,
31
+ } from "@synap-core/types/storybook";
32
+ import { getWorkspaceTemplate } from "./templates.js";
33
+ import { RUN_CAPABILITY_TOOL, runClassOf, runToolNames } from "../schema/run-tools.ts";
34
+
35
+ const pack = getWorkspaceTemplate("design-system")!;
36
+
37
+ type EndAsk = { label: string; ask: { mode: string; form?: { fields: { key: string }[] } } };
38
+ type Stage = { key: string; goal: string; endAsk?: EndAsk };
39
+ type Pb = { name: string; goalTemplate: string; executor?: string; tools?: string[]; stages: Stage[] };
40
+ type Dep = { slug: string; kind: string; relation: string };
41
+
42
+ const deps = (pack as unknown as { dependencies: Dep[] }).dependencies;
43
+ const setup = (pack.playbooks as unknown as Pb[]).find((p) => p.name === "Set up a design system")!;
44
+
45
+ describe("Design system pack", () => {
46
+ it("is a suite that owns no data and requires Dev first, then Brand and the storybook capability", () => {
47
+ expect(pack.meta.tags).toContain("suite");
48
+ expect(pack.profiles).toEqual([]);
49
+ expect(deps.map((d) => [d.slug, d.kind, d.relation])).toEqual([
50
+ ["builder-workspace", "workspace", "require"],
51
+ ["brand-library", "workspace", "require"],
52
+ [STORYBOOK_CAPABILITY_KEY, "capability", "require"],
53
+ ]);
54
+ });
55
+
56
+ it("brings the UI kinds, the review and design playbooks and the design skills through Dev", () => {
57
+ const dev = getWorkspaceTemplate("builder-workspace")!;
58
+ const kinds = new Set(dev.profiles.map((p) => p.slug));
59
+ for (const k of ["ui-component", "ui-page", "user-flow", "devplane_app"]) expect(kinds.has(k), k).toBe(true);
60
+ const playbooks = new Set((dev.playbooks ?? []).map((p) => p.name));
61
+ for (const name of ["Review a UI component", "Design to implementation"])
62
+ expect(playbooks.has(name), name).toBe(true);
63
+ const devDeps = (dev as unknown as { dependencies: Dep[] }).dependencies.map((d) => `${d.kind}:${d.slug}`);
64
+ expect(devDeps).toEqual(expect.arrayContaining(["skill:design-critique", "skill:designing-with-real-components"]));
65
+ const brand = getWorkspaceTemplate("brand-library")!;
66
+ expect(brand.profiles.some((p) => p.slug === "brand-identity")).toBe(true);
67
+ });
68
+
69
+ it("asks three things, one per stage, in order, and nothing else", () => {
70
+ expect(setup).toBeDefined();
71
+ const asks = setup.stages
72
+ .filter((s) => s.endAsk)
73
+ .map((s) => [s.key, s.endAsk!.ask.mode, (s.endAsk!.ask.form?.fields ?? []).map((f) => f.key)]);
74
+ expect(asks).toEqual([
75
+ ["where", "form", ["storybookUrl"]],
76
+ ["app", "form", ["app"]],
77
+ ["brand", "form", ["brand"]],
78
+ ]);
79
+ // The three asking stages come first, before the run connects anything.
80
+ expect(setup.stages.slice(0, 3).map((s) => s.key)).toEqual(["where", "app", "brand"]);
81
+ });
82
+
83
+ it("names only storybook.sync's own parameters, and the brand only there", () => {
84
+ const params = Object.keys(STORYBOOK_VERB_PARAMETERS[STORYBOOK_SYNC_VERB].properties);
85
+ const connect = setup.stages.find((s) => s.key === "connect")!;
86
+ for (const p of ["url", "bundleFileId", "appId", "brandIdentityId"]) {
87
+ expect(params, p).toContain(p);
88
+ expect(connect.goal, p).toContain(p);
89
+ }
90
+ expect(setup.goalTemplate).toMatch(/brand identity goes only to storybook\.sync/);
91
+ });
92
+
93
+ it("gives its run storybook.sync: the run's tools carry run_capability", () => {
94
+ const cls = runClassOf(setup);
95
+ expect(cls).toBe("long");
96
+ expect(runToolNames(cls)).not.toContain(RUN_CAPABILITY_TOOL);
97
+ expect(runToolNames(cls, setup.tools ?? [])).toContain(RUN_CAPABILITY_TOOL);
98
+ expect(setup.tools).toContain(STORYBOOK_CAPABILITY_KEY);
99
+ });
100
+ });
@@ -0,0 +1,184 @@
1
+ # Design system on Synap — a pack (a `suite` workspace template)
2
+ # ==============================================================
3
+ # Plan 48854969 W5 "one click for anyone": install it and an app's Storybook
4
+ # becomes records on the pod (ui-component, ui-page, user-flow), reviewed by
5
+ # a playbook and tied to a brand identity in the Brand space.
6
+ #
7
+ # It installs, in order, what already exists (one space per domain) and owns
8
+ # no data of its own (`profiles: []`):
9
+ # • builder-workspace — the kinds ui-component, ui-page, user-flow and
10
+ # devplane_app, the playbooks "Review a UI component" (its weekly sweep is
11
+ # installed paused) and "Design to implementation", and the skills
12
+ # design-critique and designing-with-real-components;
13
+ # • brand-library — the brand identity a Storybook expresses;
14
+ # • storybook — the capability (storybook.sync, storybook.changed).
15
+ # It carries only the setup process, which lands in its primary domain (Dev).
16
+ #
17
+ # SETUP ASKS THREE THINGS, ONE AT A TIME. A package install takes no answers
18
+ # (a workspace package is applied with no params, backend marketplace-install
19
+ # `case "template"`), and a pack owns no space, so it carries no onboarding
20
+ # interview. What exists to ask a person one question at a time is a
21
+ # playbook stage's `endAsk`: the pod raises it when the turn ends the stage and
22
+ # the answer wakes the run at the next one. So the setup is the playbook below.
23
+ # An endAsk's choices are static, or the run subject's relations
24
+ # (`optionsFrom`); there is no subject before the app is named, so "which app"
25
+ # and "which brand identity" are answered by name and the run resolves them.
26
+ #
27
+ # WHAT A RUN CAN DO. Five stages make it a LONG run: the pod's core tools
28
+ # (reads, create_entity as a proposal, its own update_run and post_in_room)
29
+ # plus, for its declared `tools: [storybook]`, run_capability
30
+ # (schema/run-tools.ts). It creates no automation and hands nothing to a
31
+ # computer, so its text asks for neither: it names what only the person (or
32
+ # their computer) does.
33
+ #
34
+ # THE SYNC SCHEDULE. The storybook sync kind is not ticked by the pod
35
+ # (`scheduled: false`, backend storybook-sync.ts), a package cannot carry an
36
+ # automation holding one person's url and ids (`apply-time-placeholder`), and
37
+ # no verb creates an automation. So a URL source is re-synced only by an
38
+ # automation the person turns on (the run names it), and a computer source by
39
+ # that computer's build, upload and sync after each push. The brand identity
40
+ # lives only on the sync SOURCE's config (the contract): storybook.sync stores
41
+ # it there, never on the mirrored records.
42
+
43
+ meta:
44
+ slug: design-system
45
+ domain: build
46
+ name: Design system on Synap
47
+ description: Mirror an app's Storybook into your pod — every component, page and user flow as a record with its screenshot, status and what it is made of — review the ones that change with the design-critique rubric, and tie it to your brand identity. Setup asks three things, one at a time.
48
+ icon: layout-template
49
+ color: "#7C3AED"
50
+ tags: [suite, design, storybook, ui, builder, brand]
51
+ isPublic: true
52
+
53
+ dependencies:
54
+ - slug: builder-workspace
55
+ kind: workspace
56
+ relation: require
57
+ reason: "The kinds the Storybook becomes (ui-component, ui-page, user-flow, the app), the review and design playbooks, and the design-critique rubric. Must resolve first: the setup process lands here."
58
+ - slug: brand-library
59
+ kind: workspace
60
+ relation: require
61
+ reason: "The brand identity the Storybook expresses; the sync source names it."
62
+ - slug: storybook
63
+ kind: capability
64
+ relation: require
65
+ reason: "storybook.sync mirrors the Storybook into the records; storybook.changed lists the components changed since their last review."
66
+
67
+ workspace:
68
+ name: Design system on Synap
69
+ description: Setting up an app's Storybook as pod records, layered onto the Dev space.
70
+
71
+ profiles: []
72
+
73
+ playbooks:
74
+ - name: Set up a design system
75
+ description: "Connect one app's Storybook to the pod in three questions asked one at a time: where the Storybook is (a public URL, or a computer that builds and uploads it), which app or project it belongs to, and which brand identity it expresses. Ends with the first sync's import proposal filed for the person and the sync kept current."
76
+ goalTemplate: >-
77
+ Set up the design system of one app on this pod. Load the
78
+ designing-with-real-components skill first. The pod asks the person three
79
+ things, one per stage, when your turn ends that stage: never ask them
80
+ yourself and never ask two at once. WHERE: read what the pod already has
81
+ (the apps, the brand identities, any ui-component records and the app
82
+ they belong to) and list the apps and brand identities by name, so the
83
+ next answers can name one. APP: resolve the app the person named (an
84
+ existing devplane_app first; never a second record for one that exists;
85
+ a new one is proposed with create_entity, filed into the person's
86
+ project). BRAND: resolve the brand identity they named
87
+ (brand-identity, Brand space); none named: the source carries none.
88
+ CONNECT: a public https URL → run storybook.sync with url, appId and
89
+ brandIdentityId; a computer → the build and upload run on the person's
90
+ computer, not in this run: when they uploaded a
91
+ synap.storybook-bundle/v1 file, run storybook.sync with its
92
+ bundleFileId, appId and brandIdentityId; until then, write the three
93
+ values that computer's agent passes and stop. The first run of a source
94
+ is ONE import proposal the person approves; never write the records
95
+ yourself. KEEP CURRENT: the pod does not re-sync a Storybook on its own;
96
+ for a URL, name the daily automation the person turns on (one
97
+ storybook.sync step with the same three values); for a computer, the
98
+ same build, upload and sync run after each push to the app's main. The
99
+ brand identity goes only to storybook.sync (the source's config), never
100
+ onto the records.
101
+ # No activator: a manual activator fires on a subject, and this setup has
102
+ # none (the app is its second answer). It is started by name
103
+ # (run_playbook), by the person or an agent they ask.
104
+ executor: is-agent
105
+ tools: [storybook]
106
+ status: active
107
+ stages:
108
+ - key: where
109
+ name: Where the Storybook is
110
+ category: planned
111
+ goal: Read the pod's apps (devplane_app), brand identities (brand-identity) and any ui-component records with the app they belong to, and list the apps and brand identities by name in your message. Ask nothing yourself; when your turn ends the pod asks where the Storybook is.
112
+ endAsk:
113
+ label: Where the Storybook is
114
+ why: The pod reads a public Storybook over https, or a bundle a computer of yours builds and uploads after each push.
115
+ unblocks: The run asks which app the Storybook belongs to
116
+ ask:
117
+ mode: form
118
+ form:
119
+ title: Where is the Storybook?
120
+ fields:
121
+ - key: storybookUrl
122
+ label: Public Storybook URL (https)
123
+ type: url
124
+ required: false
125
+ help: Leave it empty when the Storybook is private; a computer of yours then builds it and uploads it to the pod after each push.
126
+ - key: app
127
+ name: Which app
128
+ category: started
129
+ goal: Read the Storybook answer (a URL must be https; an empty answer means a computer uploads). Ask nothing yourself; when your turn ends the pod asks which app or project the Storybook belongs to.
130
+ endAsk:
131
+ label: Which app the Storybook belongs to
132
+ why: Every component, page and flow is recorded as part of one app.
133
+ unblocks: The run asks which brand identity the Storybook expresses
134
+ ask:
135
+ mode: form
136
+ form:
137
+ title: Which app or project is it?
138
+ fields:
139
+ - key: app
140
+ label: The app (or project) this Storybook belongs to, by name
141
+ type: text
142
+ required: true
143
+ help: One of the apps listed above. A new name becomes a new app once you approve it.
144
+ - key: brand
145
+ name: Which brand identity
146
+ category: started
147
+ goal: Resolve the app the person named (an existing devplane_app first, never a twin; a new one proposed with create_entity, filed into their project). Ask nothing yourself; when your turn ends the pod asks which brand identity the Storybook expresses.
148
+ criteria:
149
+ - key: app-resolved-once
150
+ statement: The named app resolves to exactly one devplane_app, an existing one or one proposed in this run; no second record of an existing app was created.
151
+ check: { kind: judge }
152
+ endAsk:
153
+ label: Which brand identity it expresses
154
+ why: The sync source names the brand identity, so reviews and designs read the right brand.
155
+ unblocks: The run connects the Storybook and starts its first sync
156
+ ask:
157
+ mode: form
158
+ form:
159
+ title: Which brand identity?
160
+ fields:
161
+ - key: brand
162
+ label: The brand identity this Storybook expresses, by name
163
+ type: text
164
+ required: false
165
+ help: From the Brand space. Leave it empty to connect the Storybook without a brand.
166
+ - key: connect
167
+ name: Connect and first sync
168
+ category: started
169
+ goal: "Resolve the brand identity the person named (brand-identity in the Brand space; empty: none). A URL: run storybook.sync with url, appId and brandIdentityId. A computer: the build and upload run on the person's computer, not in this run; with an uploaded synap.storybook-bundle/v1 file, run storybook.sync with its bundleFileId, appId and brandIdentityId; without one yet, write the values the computer's agent passes and stop. The first run is one import proposal for the person; a refused or failed sync is reported with its reason, never retried blindly."
170
+ criteria:
171
+ - key: sync-ran-with-answers
172
+ statement: storybook.sync ran once with the person's source (url, or a bundle file a computer uploaded), the resolved appId and, when one was named, the brandIdentityId, and its import proposal is filed or its refusal is reported with the reason; or, for a computer with no bundle uploaded yet, the run wrote the values its agent passes.
173
+ check: { kind: judge }
174
+ - key: brand-only-on-source
175
+ statement: The brand identity was passed to storybook.sync only; no mirrored record was written by hand.
176
+ check: { kind: judge }
177
+ - key: keep-current
178
+ name: Keep it current
179
+ category: completed
180
+ goal: "A URL: name the daily automation the person turns on to keep it current (one storybook.sync step with the same url, appId and brandIdentityId): the pod does not re-sync a Storybook on its own. A computer: say that its build, upload and sync run after each push to the app's main. Then say how the weekly review of changed components is turned on (the schedule of Review a UI component is installed paused)."
181
+ criteria:
182
+ - key: sync-kept-current
183
+ statement: For a URL the answer names the daily storybook.sync automation with the same three values; for a computer it names the push that triggers the build, upload and sync.
184
+ check: { kind: judge }
package/src/templates.ts CHANGED
@@ -17982,6 +17982,188 @@ const DATA = {
17982
17982
  "manage_file"
17983
17983
  ]
17984
17984
  },
17985
+ "design-system": {
17986
+ "meta": {
17987
+ "slug": "design-system",
17988
+ "domain": "build",
17989
+ "name": "Design system on Synap",
17990
+ "description": "Mirror an app's Storybook into your pod — every component, page and user flow as a record with its screenshot, status and what it is made of — review the ones that change with the design-critique rubric, and tie it to your brand identity. Setup asks three things, one at a time.",
17991
+ "icon": "layout-template",
17992
+ "color": "#7C3AED",
17993
+ "tags": [
17994
+ "suite",
17995
+ "design",
17996
+ "storybook",
17997
+ "ui",
17998
+ "builder",
17999
+ "brand"
18000
+ ],
18001
+ "isPublic": true
18002
+ },
18003
+ "dependencies": [
18004
+ {
18005
+ "slug": "builder-workspace",
18006
+ "kind": "workspace",
18007
+ "relation": "require",
18008
+ "reason": "The kinds the Storybook becomes (ui-component, ui-page, user-flow, the app), the review and design playbooks, and the design-critique rubric. Must resolve first: the setup process lands here."
18009
+ },
18010
+ {
18011
+ "slug": "brand-library",
18012
+ "kind": "workspace",
18013
+ "relation": "require",
18014
+ "reason": "The brand identity the Storybook expresses; the sync source names it."
18015
+ },
18016
+ {
18017
+ "slug": "storybook",
18018
+ "kind": "capability",
18019
+ "relation": "require",
18020
+ "reason": "storybook.sync mirrors the Storybook into the records; storybook.changed lists the components changed since their last review."
18021
+ }
18022
+ ],
18023
+ "workspace": {
18024
+ "name": "Design system on Synap",
18025
+ "description": "Setting up an app's Storybook as pod records, layered onto the Dev space."
18026
+ },
18027
+ "profiles": [],
18028
+ "playbooks": [
18029
+ {
18030
+ "name": "Set up a design system",
18031
+ "description": "Connect one app's Storybook to the pod in three questions asked one at a time: where the Storybook is (a public URL, or a computer that builds and uploads it), which app or project it belongs to, and which brand identity it expresses. Ends with the first sync's import proposal filed for the person and the sync kept current.",
18032
+ "goalTemplate": "Set up the design system of one app on this pod. Load the designing-with-real-components skill first. The pod asks the person three things, one per stage, when your turn ends that stage: never ask them yourself and never ask two at once. WHERE: read what the pod already has (the apps, the brand identities, any ui-component records and the app they belong to) and list the apps and brand identities by name, so the next answers can name one. APP: resolve the app the person named (an existing devplane_app first; never a second record for one that exists; a new one is proposed with create_entity, filed into the person's project). BRAND: resolve the brand identity they named (brand-identity, Brand space); none named: the source carries none. CONNECT: a public https URL → run storybook.sync with url, appId and brandIdentityId; a computer → the build and upload run on the person's computer, not in this run: when they uploaded a synap.storybook-bundle/v1 file, run storybook.sync with its bundleFileId, appId and brandIdentityId; until then, write the three values that computer's agent passes and stop. The first run of a source is ONE import proposal the person approves; never write the records yourself. KEEP CURRENT: the pod does not re-sync a Storybook on its own; for a URL, name the daily automation the person turns on (one storybook.sync step with the same three values); for a computer, the same build, upload and sync run after each push to the app's main. The brand identity goes only to storybook.sync (the source's config), never onto the records.",
18033
+ "executor": "is-agent",
18034
+ "tools": [
18035
+ "storybook"
18036
+ ],
18037
+ "status": "active",
18038
+ "stages": [
18039
+ {
18040
+ "key": "where",
18041
+ "name": "Where the Storybook is",
18042
+ "category": "planned",
18043
+ "goal": "Read the pod's apps (devplane_app), brand identities (brand-identity) and any ui-component records with the app they belong to, and list the apps and brand identities by name in your message. Ask nothing yourself; when your turn ends the pod asks where the Storybook is.",
18044
+ "endAsk": {
18045
+ "label": "Where the Storybook is",
18046
+ "why": "The pod reads a public Storybook over https, or a bundle a computer of yours builds and uploads after each push.",
18047
+ "unblocks": "The run asks which app the Storybook belongs to",
18048
+ "ask": {
18049
+ "mode": "form",
18050
+ "form": {
18051
+ "title": "Where is the Storybook?",
18052
+ "fields": [
18053
+ {
18054
+ "key": "storybookUrl",
18055
+ "label": "Public Storybook URL (https)",
18056
+ "type": "url",
18057
+ "required": false,
18058
+ "help": "Leave it empty when the Storybook is private; a computer of yours then builds it and uploads it to the pod after each push."
18059
+ }
18060
+ ]
18061
+ }
18062
+ }
18063
+ }
18064
+ },
18065
+ {
18066
+ "key": "app",
18067
+ "name": "Which app",
18068
+ "category": "started",
18069
+ "goal": "Read the Storybook answer (a URL must be https; an empty answer means a computer uploads). Ask nothing yourself; when your turn ends the pod asks which app or project the Storybook belongs to.",
18070
+ "endAsk": {
18071
+ "label": "Which app the Storybook belongs to",
18072
+ "why": "Every component, page and flow is recorded as part of one app.",
18073
+ "unblocks": "The run asks which brand identity the Storybook expresses",
18074
+ "ask": {
18075
+ "mode": "form",
18076
+ "form": {
18077
+ "title": "Which app or project is it?",
18078
+ "fields": [
18079
+ {
18080
+ "key": "app",
18081
+ "label": "The app (or project) this Storybook belongs to, by name",
18082
+ "type": "text",
18083
+ "required": true,
18084
+ "help": "One of the apps listed above. A new name becomes a new app once you approve it."
18085
+ }
18086
+ ]
18087
+ }
18088
+ }
18089
+ }
18090
+ },
18091
+ {
18092
+ "key": "brand",
18093
+ "name": "Which brand identity",
18094
+ "category": "started",
18095
+ "goal": "Resolve the app the person named (an existing devplane_app first, never a twin; a new one proposed with create_entity, filed into their project). Ask nothing yourself; when your turn ends the pod asks which brand identity the Storybook expresses.",
18096
+ "criteria": [
18097
+ {
18098
+ "key": "app-resolved-once",
18099
+ "statement": "The named app resolves to exactly one devplane_app, an existing one or one proposed in this run; no second record of an existing app was created.",
18100
+ "check": {
18101
+ "kind": "judge"
18102
+ }
18103
+ }
18104
+ ],
18105
+ "endAsk": {
18106
+ "label": "Which brand identity it expresses",
18107
+ "why": "The sync source names the brand identity, so reviews and designs read the right brand.",
18108
+ "unblocks": "The run connects the Storybook and starts its first sync",
18109
+ "ask": {
18110
+ "mode": "form",
18111
+ "form": {
18112
+ "title": "Which brand identity?",
18113
+ "fields": [
18114
+ {
18115
+ "key": "brand",
18116
+ "label": "The brand identity this Storybook expresses, by name",
18117
+ "type": "text",
18118
+ "required": false,
18119
+ "help": "From the Brand space. Leave it empty to connect the Storybook without a brand."
18120
+ }
18121
+ ]
18122
+ }
18123
+ }
18124
+ }
18125
+ },
18126
+ {
18127
+ "key": "connect",
18128
+ "name": "Connect and first sync",
18129
+ "category": "started",
18130
+ "goal": "Resolve the brand identity the person named (brand-identity in the Brand space; empty: none). A URL: run storybook.sync with url, appId and brandIdentityId. A computer: the build and upload run on the person's computer, not in this run; with an uploaded synap.storybook-bundle/v1 file, run storybook.sync with its bundleFileId, appId and brandIdentityId; without one yet, write the values the computer's agent passes and stop. The first run is one import proposal for the person; a refused or failed sync is reported with its reason, never retried blindly.",
18131
+ "criteria": [
18132
+ {
18133
+ "key": "sync-ran-with-answers",
18134
+ "statement": "storybook.sync ran once with the person's source (url, or a bundle file a computer uploaded), the resolved appId and, when one was named, the brandIdentityId, and its import proposal is filed or its refusal is reported with the reason; or, for a computer with no bundle uploaded yet, the run wrote the values its agent passes.",
18135
+ "check": {
18136
+ "kind": "judge"
18137
+ }
18138
+ },
18139
+ {
18140
+ "key": "brand-only-on-source",
18141
+ "statement": "The brand identity was passed to storybook.sync only; no mirrored record was written by hand.",
18142
+ "check": {
18143
+ "kind": "judge"
18144
+ }
18145
+ }
18146
+ ]
18147
+ },
18148
+ {
18149
+ "key": "keep-current",
18150
+ "name": "Keep it current",
18151
+ "category": "completed",
18152
+ "goal": "A URL: name the daily automation the person turns on to keep it current (one storybook.sync step with the same url, appId and brandIdentityId): the pod does not re-sync a Storybook on its own. A computer: say that its build, upload and sync run after each push to the app's main. Then say how the weekly review of changed components is turned on (the schedule of Review a UI component is installed paused).",
18153
+ "criteria": [
18154
+ {
18155
+ "key": "sync-kept-current",
18156
+ "statement": "For a URL the answer names the daily storybook.sync automation with the same three values; for a computer it names the push that triggers the build, upload and sync.",
18157
+ "check": {
18158
+ "kind": "judge"
18159
+ }
18160
+ }
18161
+ ]
18162
+ }
18163
+ ]
18164
+ }
18165
+ ]
18166
+ },
17985
18167
  "ecosystem": {
17986
18168
  "meta": {
17987
18169
  "slug": "ecosystem",