@synap-core/workspace-templates 0.67.0 → 0.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/builder.yaml CHANGED
@@ -31,11 +31,30 @@ meta:
31
31
  profile: task
32
32
  views: [task-board]
33
33
  example:
34
- - { title: "Add Stripe checkout", values: { task-status: Running, task-priority: High, task-type: Code } }
35
- - { title: "Research competitor pricing", values: { task-status: Queued, task-priority: Medium, task-type: Research } }
36
- - { title: "Fix login redirect loop", values: { task-status: Review, task-priority: Critical, task-type: Code } }
37
- - { title: "Write the launch changelog", values: { task-status: Backlog, task-priority: Low, task-type: Content } }
38
- - { title: "Ship v0.2 to staging", values: { task-status: Done, task-priority: High, task-type: Ops } }
34
+ - {
35
+ title: "Add Stripe checkout",
36
+ values:
37
+ { task-status: Running, task-priority: High, task-type: Code },
38
+ }
39
+ - {
40
+ title: "Research competitor pricing",
41
+ values:
42
+ { task-status: Queued, task-priority: Medium, task-type: Research },
43
+ }
44
+ - {
45
+ title: "Fix login redirect loop",
46
+ values:
47
+ { task-status: Review, task-priority: Critical, task-type: Code },
48
+ }
49
+ - {
50
+ title: "Write the launch changelog",
51
+ values:
52
+ { task-status: Backlog, task-priority: Low, task-type: Content },
53
+ }
54
+ - {
55
+ title: "Ship v0.2 to staging",
56
+ values: { task-status: Done, task-priority: High, task-type: Ops },
57
+ }
39
58
  firstSession:
40
59
  title: Your live tasks
41
60
  goal: "Add the 3 to 5 pieces of product work you or your agents are doing now, each with a status and a priority."
@@ -75,6 +94,21 @@ workspace:
75
94
  # and the workspace press falls silently to a setup card.
76
95
  - devplane.workspace
77
96
 
97
+ # What installing Dev also installs (resolved before this space is built).
98
+ dependencies:
99
+ # The design loop's two skills. Both ship as their own packages
100
+ # (skills/<slug>/), installed here by slug and linked in `skills:` below. Before
101
+ # this, nothing installed them: "Design to implementation" told agents to load
102
+ # design-critique, and the pod answered not found (finding 5f0ce7cd).
103
+ - slug: designing-with-real-components
104
+ kind: skill
105
+ relation: require
106
+ reason: "How a screen is designed as Puck JSON from the real components, and carried to an implemented pull request."
107
+ - slug: design-critique
108
+ kind: skill
109
+ relation: require
110
+ reason: "The rubric every design and every UI component review is judged by (checked, pattern and opinion rules with stable ids)."
111
+
78
112
  profiles:
79
113
  - slug: devplane_app
80
114
  displayName: App
@@ -1457,7 +1491,8 @@ profiles:
1457
1491
  label: Status
1458
1492
  valueType: string
1459
1493
  inputType: select
1460
- enumValues: [draft, in-review, approved, implementing, implemented, archived]
1494
+ enumValues:
1495
+ [draft, in-review, approved, implementing, implemented, archived]
1461
1496
  - slug: target-surface
1462
1497
  label: Target surface
1463
1498
  valueType: string
@@ -1542,6 +1577,259 @@ profiles:
1542
1577
  valueType: string
1543
1578
  inputType: textarea
1544
1579
 
1580
+ # ── The UI inventory (plan 48854969 §9, founder decisions D0/D1, 23 Nov 2026) ──
1581
+ # What Storybook shows, mirrored on the pod: a component, a page, a user flow.
1582
+ # D0 boundary: code and Storybook stay the source of every CODE fact (name,
1583
+ # source path, export, stories, props, composition); the Storybook sync
1584
+ # (`storybook.sync`, capability `storybook`) owns those fields and rewrites
1585
+ # them, nobody hand-edits them. A person or a review sets only the status and
1586
+ # the review state. Identity on the sync side: provider `storybook`, external
1587
+ # ids `component:<source-path>#<export-name>`, `page:<story id>`,
1588
+ # `flow:<flow id>`. A record the source stops emitting moves to `gone`, never
1589
+ # deleted, never left `stable`.
1590
+ # entityScope pod: the same placement as the live `ui-design` kind, so a
1591
+ # record shows (and embeds) in every space.
1592
+ - slug: ui-component
1593
+ displayName: UI component
1594
+ icon: component
1595
+ color: violet
1596
+ description: A component of an app's Storybook (from a primitive to a whole section), mirrored by the Storybook sync, with its stories, screenshot, props, composition and review state.
1597
+ entityScope: pod
1598
+ # `deprecated` is a person's call; `gone` is the sync's (the source stopped
1599
+ # emitting it); phase 1 maps the inventory verdict ok → stable,
1600
+ # consolidate → consolidate, missing → proposed.
1601
+ lifecycle:
1602
+ property: ui-status
1603
+ options:
1604
+ - { key: proposed, category: open }
1605
+ - { key: stable, category: active }
1606
+ - { key: consolidate, category: active }
1607
+ - { key: deprecated, category: done, humanOnly: true }
1608
+ - { key: gone, category: lost }
1609
+ presentation:
1610
+ family: media
1611
+ media:
1612
+ source: { entityRef: screenshot }
1613
+ kind: image
1614
+ properties:
1615
+ - slug: ui-status
1616
+ label: Status
1617
+ valueType: string
1618
+ inputType: select
1619
+ enumValues: [proposed, stable, consolidate, deprecated, gone]
1620
+ constraints: { defaultValue: proposed }
1621
+ - slug: component-level
1622
+ label: Level
1623
+ description: How big it is. primitive (a button), composite (a card, a row), section (a band of a page), layout (a frame other components sit in).
1624
+ valueType: string
1625
+ inputType: select
1626
+ enumValues: [primitive, composite, section, layout]
1627
+ - slug: source-path
1628
+ label: Source file
1629
+ description: The repo path of the file that exports it (written by the sync).
1630
+ valueType: string
1631
+ inputType: text
1632
+ - slug: export-name
1633
+ label: Export
1634
+ description: The name it is exported as from its source file (written by the sync).
1635
+ valueType: string
1636
+ inputType: text
1637
+ - slug: story-ids
1638
+ label: Stories
1639
+ description: The Storybook story ids that show it (written by the sync).
1640
+ valueType: array
1641
+ inputType: text
1642
+ - slug: story-url
1643
+ label: Story link
1644
+ valueType: string
1645
+ inputType: url
1646
+ - slug: screenshot
1647
+ label: Screenshot
1648
+ valueType: entity_id
1649
+ targetProfileSlug: file
1650
+ inputType: entity_select
1651
+ description: A render of its main story, for review at a glance.
1652
+ - slug: props-summary
1653
+ label: Props
1654
+ description: "Its props as the Storybook manifest declares them: a list of { name, type, required, default } (written by the sync)."
1655
+ valueType: json
1656
+ inputType: json
1657
+ - slug: component-family
1658
+ label: Family
1659
+ description: The inventory family it belongs to (apps/storybook/inventory/components.json), shared by its copies and variants.
1660
+ valueType: string
1661
+ inputType: text
1662
+ - slug: kit
1663
+ label: Kit
1664
+ description: The component kit it is part of, e.g. synap (spatial-ui) or an app's own kit.
1665
+ valueType: string
1666
+ inputType: text
1667
+ - slug: design-app
1668
+ label: App
1669
+ valueType: entity_id
1670
+ targetProfileSlug: devplane_app
1671
+ inputType: entity_select
1672
+ description: The app (devplane_app) whose Storybook it comes from.
1673
+ - slug: source-hash
1674
+ label: Source hash
1675
+ description: A content hash of the component at the last sync (its source or what its stories show). It differs from reviewed-hash when the component changed since its last review.
1676
+ valueType: string
1677
+ inputType: text
1678
+ - slug: reviewed-hash
1679
+ label: Reviewed hash
1680
+ description: The source-hash it had when it was last reviewed ("Review a UI component" writes it at the end of a review).
1681
+ valueType: string
1682
+ inputType: text
1683
+ - slug: review-state
1684
+ label: Review
1685
+ description: fresh (reviewed at its current source), changed (its source moved since the last review; the sync sets it), in-review (a review is running).
1686
+ valueType: string
1687
+ inputType: select
1688
+ enumValues: [fresh, changed, in-review]
1689
+
1690
+ - slug: ui-page
1691
+ displayName: Page
1692
+ icon: app-window
1693
+ color: violet
1694
+ description: A page or phone screen of an app, as its Storybook page story shows it, mirrored by the Storybook sync with its template, layout, route and screenshot.
1695
+ entityScope: pod
1696
+ lifecycle:
1697
+ property: ui-status
1698
+ options:
1699
+ - { key: proposed, category: open }
1700
+ - { key: stable, category: active }
1701
+ - { key: consolidate, category: active }
1702
+ - { key: deprecated, category: done, humanOnly: true }
1703
+ - { key: gone, category: lost }
1704
+ presentation:
1705
+ family: media
1706
+ media:
1707
+ source: { entityRef: screenshot }
1708
+ kind: image
1709
+ properties:
1710
+ - slug: ui-status
1711
+ label: Status
1712
+ valueType: string
1713
+ inputType: select
1714
+ enumValues: [proposed, stable, consolidate, deprecated, gone]
1715
+ constraints: { defaultValue: proposed }
1716
+ - slug: surface
1717
+ label: Surface
1718
+ valueType: string
1719
+ inputType: select
1720
+ enumValues: [desktop, phone]
1721
+ # The page grammar's nine templates and six layouts, spelled as
1722
+ # @synap-core/headless/surface-runtime PAGE_TEMPLATES / PAGE_LAYOUTS
1723
+ # (pinned by ui-inventory.template.test.ts).
1724
+ - slug: page-template
1725
+ label: Template
1726
+ description: What the page is for, one of the page grammar's nine templates.
1727
+ valueType: string
1728
+ inputType: select
1729
+ enumValues: [hub, collection, object, review, conversation, session-room, view, settings, island]
1730
+ - slug: page-layout
1731
+ label: Layout
1732
+ description: How its regions sit, one of the page grammar's six layouts.
1733
+ valueType: string
1734
+ inputType: select
1735
+ enumValues: [column, column-rail, list-detail, main-pane, fill, cover]
1736
+ - slug: route
1737
+ label: Route
1738
+ description: Where it opens in the app, e.g. /work/:sessionId.
1739
+ valueType: string
1740
+ inputType: text
1741
+ - slug: story-id
1742
+ label: Story
1743
+ description: The Storybook story id of the page (written by the sync).
1744
+ valueType: string
1745
+ inputType: text
1746
+ - slug: story-url
1747
+ label: Story link
1748
+ valueType: string
1749
+ inputType: url
1750
+ - slug: screenshot
1751
+ label: Screenshot
1752
+ valueType: entity_id
1753
+ targetProfileSlug: file
1754
+ inputType: entity_select
1755
+ description: A render of the page story.
1756
+ - slug: source-path
1757
+ label: Source file
1758
+ valueType: string
1759
+ inputType: text
1760
+ - slug: source-hash
1761
+ label: Source hash
1762
+ description: A hash of its source and story files at the last sync.
1763
+ valueType: string
1764
+ inputType: text
1765
+ - slug: design-app
1766
+ label: App
1767
+ valueType: entity_id
1768
+ targetProfileSlug: devplane_app
1769
+ inputType: entity_select
1770
+ description: The app (devplane_app) the page belongs to.
1771
+
1772
+ # No audience link: the audience kind is Foundation's, and Foundation is not
1773
+ # on every pod (a production pod holds marketing-campaign with no Foundation,
1774
+ # backend workspace-reconcile-order.ts), so Dev must not require it. The
1775
+ # person a flow serves is written in `need` until a pod-wide audience exists.
1776
+ # A person's journey through pages toward what they came to do. Not a
1777
+ # devplane_workflow (a process through SYSTEM components), which stays as it
1778
+ # is (founder D1, 23 Nov 2026). It is the subject of "Design a user flow".
1779
+ - slug: user-flow
1780
+ displayName: User flow
1781
+ icon: route
1782
+ color: violet
1783
+ description: A person's journey through an app's pages toward what they came to do, from where they enter to when it is done; the pages it traverses are linked.
1784
+ entityScope: pod
1785
+ # built is reached when "Design to implementation" lands the chosen
1786
+ # design; live and retired are a person's call.
1787
+ lifecycle:
1788
+ property: flow-status
1789
+ options:
1790
+ - { key: draft, category: open }
1791
+ - { key: designed, category: active }
1792
+ - { key: built, category: active }
1793
+ - { key: live, category: done, humanOnly: true }
1794
+ - { key: retired, category: lost, humanOnly: true }
1795
+ properties:
1796
+ - slug: flow-status
1797
+ label: Status
1798
+ valueType: string
1799
+ inputType: select
1800
+ enumValues: [draft, designed, built, live, retired]
1801
+ constraints: { defaultValue: draft }
1802
+ - slug: need
1803
+ label: Need
1804
+ description: The job the person comes to do, in their words.
1805
+ valueType: string
1806
+ inputType: textarea
1807
+ - slug: entry
1808
+ label: Entry
1809
+ description: "Where they enter (a door: a link, a notification, a page)."
1810
+ valueType: string
1811
+ inputType: text
1812
+ - slug: done-when
1813
+ label: Done when
1814
+ description: What the person sees when the journey has succeeded.
1815
+ valueType: string
1816
+ inputType: textarea
1817
+ - slug: surface
1818
+ label: Surface
1819
+ valueType: string
1820
+ inputType: select
1821
+ enumValues: [desktop, phone, both]
1822
+ - slug: flow-source-id
1823
+ label: Flow source
1824
+ description: The flow id in the Storybook flows (apps/storybook/flows), when the sync wrote it.
1825
+ valueType: string
1826
+ inputType: text
1827
+ - slug: steps
1828
+ label: Steps
1829
+ description: "The steps in order: a list of { page, label }, where page is the ui-page key (page:<story id>) and label says what the person does there."
1830
+ valueType: json
1831
+ inputType: json
1832
+
1545
1833
  views:
1546
1834
  - name: Apps
1547
1835
  type: table
@@ -1630,7 +1918,16 @@ views:
1630
1918
  sortBy: deployedAt
1631
1919
  sortOrder: desc
1632
1920
  config:
1633
- columns: [title, deployStatus, version, linkedApp, linkedEnvironment, deployedBy, deployedAt]
1921
+ columns:
1922
+ [
1923
+ title,
1924
+ deployStatus,
1925
+ version,
1926
+ linkedApp,
1927
+ linkedEnvironment,
1928
+ deployedBy,
1929
+ deployedAt,
1930
+ ]
1634
1931
  description: Most recent deployments first — what shipped, where, and whether it held.
1635
1932
  - name: Provider Costs
1636
1933
  slug: provider-costs
@@ -1639,7 +1936,16 @@ views:
1639
1936
  sortBy: provider-spend-week
1640
1937
  sortOrder: desc
1641
1938
  config:
1642
- columns: [title, provider-type, provider-spend-week, provider-budget-day, provider-cost-input, provider-cost-output, provider-key-health]
1939
+ columns:
1940
+ [
1941
+ title,
1942
+ provider-type,
1943
+ provider-spend-week,
1944
+ provider-budget-day,
1945
+ provider-cost-input,
1946
+ provider-cost-output,
1947
+ provider-key-health,
1948
+ ]
1643
1949
  description: What each provider costs — this week's spend against the daily ceiling, highest first.
1644
1950
  # ── Architecture graph (ReactFlow) ───────────────────────────────────────
1645
1951
  # These views are MULTI-PROFILE on purpose: a flow that only loaded one
@@ -1694,6 +2000,72 @@ entityLinks:
1694
2000
  targetProfileSlug: devplane_system_component
1695
2001
  type: depends_on
1696
2002
  label: Depends on
2003
+ # The UI inventory (plan 48854969 §9). Composition and "variant of" are
2004
+ # written by the Storybook sync from the code; a flow's pages from the
2005
+ # Storybook flows. A flow's goal is NOT a link here: a goal is a project
2006
+ # track, not an entity, and no edge reaches a track from an entity yet.
2007
+ - sourceProfileSlug: ui-component
2008
+ targetProfileSlug: ui-component
2009
+ type: composed_of
2010
+ label: Made of
2011
+ - sourceProfileSlug: ui-page
2012
+ targetProfileSlug: ui-component
2013
+ type: composed_of
2014
+ label: Made of
2015
+ - sourceProfileSlug: ui-component
2016
+ targetProfileSlug: ui-component
2017
+ type: extends
2018
+ label: Variant of
2019
+ - sourceProfileSlug: user-flow
2020
+ targetProfileSlug: ui-page
2021
+ type: traverses
2022
+ label: Goes through
2023
+ - sourceProfileSlug: ui-component
2024
+ targetProfileSlug: devplane_app
2025
+ type: belongs_to
2026
+ label: Belongs to
2027
+ - sourceProfileSlug: ui-page
2028
+ targetProfileSlug: devplane_app
2029
+ type: belongs_to
2030
+ label: Belongs to
2031
+ - sourceProfileSlug: user-flow
2032
+ targetProfileSlug: devplane_app
2033
+ type: belongs_to
2034
+ label: Belongs to
2035
+
2036
+ # The relation vocabulary the links above use, declared with descriptions
2037
+ # that cover the UI kinds (plan 48854969 §9). Create-if-missing on a pod (the
2038
+ # reconcile never rewrites a def it finds), so a pod that already holds one of
2039
+ # these slugs keeps its own description.
2040
+ relationDefs:
2041
+ - slug: composed_of
2042
+ displayName: Composed of
2043
+ description: "The source is made of the target: a capability of sub-capabilities, a UI component of the smaller components it renders, a page of the components on it."
2044
+ isDirectional: true
2045
+ uiHints:
2046
+ category: hierarchy
2047
+ inverseLabel: Used in
2048
+ - slug: extends
2049
+ displayName: Extends
2050
+ description: "The source builds on the target: a UI component that is a variant of another (same family, one more option), or a thing that specialises a broader one."
2051
+ isDirectional: true
2052
+ uiHints:
2053
+ category: hierarchy
2054
+ inverseLabel: Extended by
2055
+ - slug: traverses
2056
+ displayName: Traverses
2057
+ description: "The source passes through the target on its way: a workflow through system components, a user flow through the pages a person goes through, in order."
2058
+ isDirectional: true
2059
+ uiHints:
2060
+ category: workflow
2061
+ inverseLabel: Traversed by
2062
+ - slug: belongs_to
2063
+ displayName: Belongs to
2064
+ description: "The source belongs to the target: an entity to its parent pillar or container, a UI component, page or user flow to the app it is part of."
2065
+ isDirectional: true
2066
+ uiHints:
2067
+ category: hierarchy
2068
+ inverseLabel: Contains
1697
2069
 
1698
2070
  # Playbooks — session templates seeded with the workspace.
1699
2071
  # `subjectProfile` binds this playbook to the `devplane_feature` kind so the
@@ -1918,7 +2290,12 @@ playbooks:
1918
2290
  - { on: manual, mode: propose }
1919
2291
  params:
1920
2292
  - { name: name, type: text, label: App name, required: true }
1921
- - { name: idea, type: text, label: "What should it do, for whom, and what is hard today (in your words)?", required: true }
2293
+ - {
2294
+ name: idea,
2295
+ type: text,
2296
+ label: "What should it do, for whom, and what is hard today (in your words)?",
2297
+ required: true,
2298
+ }
1922
2299
  - name: path
1923
2300
  type: choice
1924
2301
  label: "Who uses it: the owner over their own pod (private) · visitors with their own pod (pod-app) · the public, showing one pod's published data (showcase) · the public, no pod data (static)"
@@ -1926,7 +2303,14 @@ playbooks:
1926
2303
  options: [private, pod-app, showcase, static]
1927
2304
  - { name: app, type: entity, label: The app, if it already exists }
1928
2305
  executor: is-agent
1929
- tools: [vercel_list_projects, vercel_list_env_vars, vercel_upsert_env, vercel_redeploy, vercel_get_deployment]
2306
+ tools:
2307
+ [
2308
+ vercel_list_projects,
2309
+ vercel_list_env_vars,
2310
+ vercel_upsert_env,
2311
+ vercel_redeploy,
2312
+ vercel_get_deployment,
2313
+ ]
1930
2314
  status: active
1931
2315
  criteria:
1932
2316
  - key: three-gates-only
@@ -2149,7 +2533,12 @@ playbooks:
2149
2533
  # No stage owns these: Idea is before the change is shaped, Dropped is a
2150
2534
  # person's call (humanOnly on the lifecycle).
2151
2535
  activators:
2152
- - { on: enters_status, status: spec, mode: propose, maxPendingApprovals: 5 }
2536
+ - {
2537
+ on: enters_status,
2538
+ status: spec,
2539
+ mode: propose,
2540
+ maxPendingApprovals: 5,
2541
+ }
2153
2542
  - { on: manual, mode: propose }
2154
2543
  params:
2155
2544
  - { name: feature, type: entity, label: Feature, required: false }
@@ -2190,7 +2579,7 @@ playbooks:
2190
2579
  expectedOutputs:
2191
2580
  - key: pull-request
2192
2581
  kind: pull_request
2193
- label: 'Pull request: complete this output with its url (completeOutput pull-request, ref.url)'
2582
+ label: "Pull request: complete this output with its url (completeOutput pull-request, ref.url)"
2194
2583
  relationToSubject: none
2195
2584
  criteria:
2196
2585
  - key: pr-opened
@@ -2283,8 +2672,17 @@ playbooks:
2283
2672
  report as its detail). Never fix anything here: a BROKEN path becomes a
2284
2673
  finding on the feature, and its session goes back to Building.
2285
2674
  params:
2286
- - { name: change, type: text, label: "What to dogfood (a pull request, a sha, a feature)" }
2287
- - { name: where, type: text, label: "Where it runs (the lab host)", default: lab }
2675
+ - {
2676
+ name: change,
2677
+ type: text,
2678
+ label: "What to dogfood (a pull request, a sha, a feature)",
2679
+ }
2680
+ - {
2681
+ name: where,
2682
+ type: text,
2683
+ label: "Where it runs (the lab host)",
2684
+ default: lab,
2685
+ }
2288
2686
  executor: is-agent
2289
2687
  tools: [create_entity, create_relation]
2290
2688
  status: active
@@ -2306,766 +2704,766 @@ playbooks:
2306
2704
 
2307
2705
  # --- Build a change ---
2308
2706
  - name: Build a change
2309
- description: 'Dev set (decision d05), key: build. Works one feature (devplane_feature) from shaped criteria to a verified change on main; its stages follow the feature''s lifecycle (spec, in_progress, in_review, done); a cancelled or failed session leaves the feature where it is. One feature per session, never two subjects (founder default, 2026-11-05). A quick change is this playbook with size small (no plan); a night shift run is this playbook with unattended true. No activators until binding is turned on; the shape would be {on: enters_status, status: spec, size: per_thing, mode: propose}, the trigger Ship a change uses today. Reuses Ship a change (2c5aa553) stage text and evidence keys; absorbs AI Dev Session and Quick change once they are re-pointed. Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox).'
2707
+ description: "Dev set (decision d05), key: build. Works one feature (devplane_feature) from shaped criteria to a verified change on main; its stages follow the feature's lifecycle (spec, in_progress, in_review, done); a cancelled or failed session leaves the feature where it is. One feature per session, never two subjects (founder default, 2026-11-05). A quick change is this playbook with size small (no plan); a night shift run is this playbook with unattended true. No activators until binding is turned on; the shape would be {on: enters_status, status: spec, size: per_thing, mode: propose}, the trigger Ship a change uses today. Reuses Ship a change (2c5aa553) stage text and evidence keys; absorbs AI Dev Session and Quick change once they are re-pointed. Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox)."
2310
2708
  goalTemplate: 'Build this change through one session and one PR per repo (or gated commits on main in a private repo), size {size}. Feature, when one is bound: {feature}. SHAPE: write the end state and 2-5 binary criteria on this session (plan skill, skipped when size is small). BUILD: branch <type>/<slug> from origin/main in your own worktree, commit in verified slices, run the smallest gate that answers with its negative control, quote the output. LAND: follow the land stages (Change proposed, Checks green, Landed on main, Deployed to lab, Dogfooded, Criteria verified). Unattended: {unattended}. When unattended is true, ask no person, stop at a draft PR or a gated branch, never merge, push main or deploy, and end with your answer: one "Look at first:" paragraph.'
2311
2709
  scope: session
2312
2710
  subjectProfile:
2313
2711
  profileSlug: devplane_feature
2314
2712
  params:
2315
- - name: feature
2316
- type: entity
2317
- label: Feature
2318
- required: false
2319
- - name: size
2320
- type: choice
2321
- label: How big is the change?
2322
- default: normal
2323
- options:
2324
- - small
2325
- - normal
2326
- - name: unattended
2327
- type: boolean
2328
- label: Run without a person (night shift)?
2329
- default: false
2713
+ - name: feature
2714
+ type: entity
2715
+ label: Feature
2716
+ required: false
2717
+ - name: size
2718
+ type: choice
2719
+ label: How big is the change?
2720
+ default: normal
2721
+ options:
2722
+ - small
2723
+ - normal
2724
+ - name: unattended
2725
+ type: boolean
2726
+ label: Run without a person (night shift)?
2727
+ default: false
2330
2728
  # executor external-agent: the work is edit, git and devbox on a computer, which a pod is-agent run cannot do. Synap AI never runs it (the Run door refuses runOn synap_ai); a computer agent follows it as its session template.
2331
2729
  executor: external-agent
2332
2730
  status: draft
2333
2731
  stages:
2334
- - key: shape
2335
- goal: Write the end state and 2-5 binary criteria on the session, set the feature's change type, and name the repos the change touches.
2336
- name: Shaped
2337
- category: planned
2338
- criteria:
2339
- - key: shape-criteria-written
2340
- check:
2341
- kind: judge
2342
- statement: The session states the end state and 2-5 binary criteria a check, a judge or a person can grade.
2343
- - key: shape-change-typed
2344
- check:
2345
- kind: judge
2346
- statement: The feature's change type is set (feature, refactor or chore) and the repos it touches are named.
2347
- description: 'Load the plan skill; skip it when size is small (criteria alone are enough). Recall first: synap_ask "<area> gotchas". Tools: read only (code, pod). Gate: none.'
2348
- tier: deep
2349
- subjectStatus: spec
2350
- expectedOutputs:
2351
- - kind: document
2352
- label: Plan (skipped when size is small)
2353
- optional: true
2354
- relationToSubject: relates_to
2355
- - key: build
2356
- goal: Build on a branch named after the work, from origin/main in your own worktree; commit in verified slices and run the smallest gate that answers for each finished slice, with its negative control.
2357
- name: Building
2358
- category: started
2359
- criteria:
2360
- - key: build-gates-quoted
2361
- check:
2362
- kind: judge
2363
- statement: Each finished slice was gated once (the smallest gate that answers) and its output is quoted in the room, red lines attributed against main.
2364
- - key: build-negative-control
2365
- check:
2366
- kind: judge
2367
- statement: Every new test was run with its fix reverted and failed.
2368
- description: 'Load the verified-wave skill. Commit a checkpoint about every 30 minutes and post it in the room. Never run git checkout --, restore, stash or a working-tree reset in a shared tree (rule shared-tree). Tools: edit, git in your own worktree, devbox gates (rule devbox-gates). Gate: none here; the Checks green stage sends a red back to this stage.'
2369
- tier: standard
2370
- subjectStatus: in_progress
2371
- expectedOutputs:
2372
- - kind: commit
2373
- label: Gated commit sha
2374
- - key: pr-opened
2375
- goal: 'Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo.'
2376
- name: Change proposed
2377
- category: started
2378
- criteria:
2379
- - key: change-recorded
2380
- check:
2381
- kind: judge
2382
- statement: 'The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo.'
2383
- - key: pr-names-session
2384
- check:
2385
- kind: judge
2386
- statement: A pull request body, when there is one, carries the line naming this Pod session.
2387
- description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
2388
- tier: standard
2389
- subjectStatus: in_review
2390
- expectedOutputs:
2391
- - key: pull-request
2392
- kind: pull_request
2393
- label: 'Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only'
2394
- optional: true
2395
- - key: checks
2396
- gate:
2397
- kind: check
2398
- goal: 'Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo''s sha.'
2399
- name: Checks green
2400
- onFail:
2401
- toStage: build
2402
- category: started
2403
- criteria:
2404
- - key: checks-green
2405
- check:
2406
- hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
2407
- kind: evidence
2408
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2409
- statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
2410
- description: 'Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main''s latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status.'
2411
- tier: quick
2412
- - key: merge
2413
- goal: 'The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo.'
2414
- name: Landed on main
2415
- category: started
2416
- criteria:
2417
- - key: merged
2418
- check:
2419
- hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
2420
- kind: evidence
2421
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2422
- statement: The change is on main and its outcome is marked complete.
2423
- description: 'Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session. A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence).'
2424
- tier: standard
2425
- - key: deploy
2426
- gate:
2427
- kind: human
2428
- goal: A person approves the lab deploy of the merged build; record the deployed sha.
2429
- name: Deployed to lab
2430
- onFail:
2431
- toStage: build
2432
- category: started
2433
- criteria:
2434
- - key: deployed
2435
- check:
2436
- hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
2437
- kind: evidence
2438
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2439
- statement: The lab runs a build that contains the merge commit.
2440
- description: 'Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person''s call and releases stay the founder''s. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare.'
2441
- tier: standard
2442
- - key: dogfood
2443
- gate:
2444
- kind: check
2445
- goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
2446
- name: Dogfooded
2447
- onFail:
2448
- toStage: build
2449
- category: started
2450
- criteria:
2451
- - key: dogfooded
2452
- check:
2453
- kind: evidence
2454
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2455
- statement: The dogfood walk reports WORKS on every path the change touches.
2456
- description: 'Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read.'
2457
- tier: standard
2458
- expectedOutputs:
2459
- - kind: document
2460
- label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
2461
- optional: true
2462
- relationToSubject: relates_to
2463
- - key: verify
2464
- onApproved: done
2465
- goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, and capture what was learned. Then, when a feature is bound, move it to done yourself (synap_update_entity, featureStatus done, expectedStatus the status you read); nothing else moves it. Your move into done comes back proposed for the person to approve, which is success. End with the graded criteria as your answer.
2466
- name: Criteria verified
2467
- category: completed
2468
- criteria:
2469
- - key: criteria-verified
2470
- check:
2471
- kind: judge
2472
- statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
2473
- description: 'Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Moving the feature to done is a proposal the person approves. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none.'
2474
- tier: quick
2732
+ - key: shape
2733
+ goal: Write the end state and 2-5 binary criteria on the session, set the feature's change type, and name the repos the change touches.
2734
+ name: Shaped
2735
+ category: planned
2736
+ criteria:
2737
+ - key: shape-criteria-written
2738
+ check:
2739
+ kind: judge
2740
+ statement: The session states the end state and 2-5 binary criteria a check, a judge or a person can grade.
2741
+ - key: shape-change-typed
2742
+ check:
2743
+ kind: judge
2744
+ statement: The feature's change type is set (feature, refactor or chore) and the repos it touches are named.
2745
+ description: 'Load the plan skill; skip it when size is small (criteria alone are enough). Recall first: synap_ask "<area> gotchas". Tools: read only (code, pod). Gate: none.'
2746
+ tier: deep
2747
+ subjectStatus: spec
2748
+ expectedOutputs:
2749
+ - kind: document
2750
+ label: Plan (skipped when size is small)
2751
+ optional: true
2752
+ relationToSubject: relates_to
2753
+ - key: build
2754
+ goal: Build on a branch named after the work, from origin/main in your own worktree; commit in verified slices and run the smallest gate that answers for each finished slice, with its negative control.
2755
+ name: Building
2756
+ category: started
2757
+ criteria:
2758
+ - key: build-gates-quoted
2759
+ check:
2760
+ kind: judge
2761
+ statement: Each finished slice was gated once (the smallest gate that answers) and its output is quoted in the room, red lines attributed against main.
2762
+ - key: build-negative-control
2763
+ check:
2764
+ kind: judge
2765
+ statement: Every new test was run with its fix reverted and failed.
2766
+ description: "Load the verified-wave skill. Commit a checkpoint about every 30 minutes and post it in the room. Never run git checkout --, restore, stash or a working-tree reset in a shared tree (rule shared-tree). Tools: edit, git in your own worktree, devbox gates (rule devbox-gates). Gate: none here; the Checks green stage sends a red back to this stage."
2767
+ tier: standard
2768
+ subjectStatus: in_progress
2769
+ expectedOutputs:
2770
+ - kind: commit
2771
+ label: Gated commit sha
2772
+ - key: pr-opened
2773
+ goal: "Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo."
2774
+ name: Change proposed
2775
+ category: started
2776
+ criteria:
2777
+ - key: change-recorded
2778
+ check:
2779
+ kind: judge
2780
+ statement: "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
2781
+ - key: pr-names-session
2782
+ check:
2783
+ kind: judge
2784
+ statement: A pull request body, when there is one, carries the line naming this Pod session.
2785
+ description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
2786
+ tier: standard
2787
+ subjectStatus: in_review
2788
+ expectedOutputs:
2789
+ - key: pull-request
2790
+ kind: pull_request
2791
+ label: "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only"
2792
+ optional: true
2793
+ - key: checks
2794
+ gate:
2795
+ kind: check
2796
+ goal: "Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo's sha."
2797
+ name: Checks green
2798
+ onFail:
2799
+ toStage: build
2800
+ category: started
2801
+ criteria:
2802
+ - key: checks-green
2803
+ check:
2804
+ hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
2805
+ kind: evidence
2806
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
2807
+ statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
2808
+ description: "Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main's latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status."
2809
+ tier: quick
2810
+ - key: merge
2811
+ goal: "The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo."
2812
+ name: Landed on main
2813
+ category: started
2814
+ criteria:
2815
+ - key: merged
2816
+ check:
2817
+ hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
2818
+ kind: evidence
2819
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
2820
+ statement: The change is on main and its outcome is marked complete.
2821
+ description: "Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session. A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence)."
2822
+ tier: standard
2823
+ - key: deploy
2824
+ gate:
2825
+ kind: human
2826
+ goal: A person approves the lab deploy of the merged build; record the deployed sha.
2827
+ name: Deployed to lab
2828
+ onFail:
2829
+ toStage: build
2830
+ category: started
2831
+ criteria:
2832
+ - key: deployed
2833
+ check:
2834
+ hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
2835
+ kind: evidence
2836
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
2837
+ statement: The lab runs a build that contains the merge commit.
2838
+ description: "Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person's call and releases stay the founder's. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare."
2839
+ tier: standard
2840
+ - key: dogfood
2841
+ gate:
2842
+ kind: check
2843
+ goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
2844
+ name: Dogfooded
2845
+ onFail:
2846
+ toStage: build
2847
+ category: started
2848
+ criteria:
2849
+ - key: dogfooded
2850
+ check:
2851
+ kind: evidence
2852
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
2853
+ statement: The dogfood walk reports WORKS on every path the change touches.
2854
+ description: "Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read."
2855
+ tier: standard
2856
+ expectedOutputs:
2857
+ - kind: document
2858
+ label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
2859
+ optional: true
2860
+ relationToSubject: relates_to
2861
+ - key: verify
2862
+ onApproved: done
2863
+ goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, and capture what was learned. Then, when a feature is bound, move it to done yourself (synap_update_entity, featureStatus done, expectedStatus the status you read); nothing else moves it. Your move into done comes back proposed for the person to approve, which is success. End with the graded criteria as your answer.
2864
+ name: Criteria verified
2865
+ category: completed
2866
+ criteria:
2867
+ - key: criteria-verified
2868
+ check:
2869
+ kind: judge
2870
+ statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
2871
+ description: "Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Moving the feature to done is a proposal the person approves. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none."
2872
+ tier: quick
2475
2873
 
2476
2874
  # --- Fix a bug ---
2477
2875
  - name: Fix a bug
2478
- description: 'Dev set (decision d05), key: fix. Works an issue at its root: reproduce it with a failing test, fix the canonical path, a clean-context review, then the shared land stages. Its stages follow the issue''s lifecycle (open, investigating, fixed); a cancelled or failed session leaves the issue where it is, as Fix a finding does. Small fixes may be batched (founder default, 2026-11-05): several issues in one session, one as the subject and the rest as session targets; today a stage moves only the subject. No activators until binding is turned on; a batch would be {on: count, status: open, min: 3} or {on: schedule, cron, status: open} (both one session per moment). A night shift run is this playbook with unattended true. Reuses Bugfix (8c335e2e), Night shift: build an issue (c101dd75) and Ship a change (2c5aa553). Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox).'
2876
+ description: "Dev set (decision d05), key: fix. Works an issue at its root: reproduce it with a failing test, fix the canonical path, a clean-context review, then the shared land stages. Its stages follow the issue's lifecycle (open, investigating, fixed); a cancelled or failed session leaves the issue where it is, as Fix a finding does. Small fixes may be batched (founder default, 2026-11-05): several issues in one session, one as the subject and the rest as session targets; today a stage moves only the subject. No activators until binding is turned on; a batch would be {on: count, status: open, min: 3} or {on: schedule, cron, status: open} (both one session per moment). A night shift run is this playbook with unattended true. Reuses Bugfix (8c335e2e), Night shift: build an issue (c101dd75) and Ship a change (2c5aa553). Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox)."
2479
2877
  goalTemplate: 'Fix the issue {issue} at its root and prove it with a test that fails before the fix and passes after. REPRODUCE (recall first, smallest reproduction, root cause file:line), FIX on the canonical path in your own worktree, a clean-context REVIEW, then LAND through the shared land stages (Change proposed, Checks green, Landed on main, Deployed to lab, Dogfooded, Criteria verified). Unattended: {unattended}. When unattended is true, ask no person, stop at a draft PR or a gated branch, never merge, push main or deploy; if no code fix is right, write the root cause as a pod document; end with your answer: one "Look at first:" paragraph.'
2480
2878
  scope: session
2481
2879
  subjectProfile:
2482
2880
  profileSlug: issue
2483
2881
  params:
2484
- - name: issue
2485
- type: entity
2486
- label: Issue
2487
- required: true
2488
- - name: unattended
2489
- type: boolean
2490
- label: Run without a person (night shift)?
2491
- default: false
2492
- # executor external-agent: the work is edit, git and devbox on a computer, which a pod is-agent run cannot do. Synap AI never runs it (the Run door refuses runOn synap_ai); a computer agent follows it as its session template.
2493
- executor: external-agent
2494
- status: draft
2495
- stages:
2496
- - key: reproduce
2497
- goal: Show the bug happening with the smallest reproduction (a failing test or the exact steps) and name its root cause with file:line.
2498
- name: Reproduce
2499
- category: planned
2500
- criteria:
2501
- - key: repro-shown
2502
- check:
2503
- kind: judge
2504
- statement: A test or exact reproduction shows the bug, and the root cause is named with file:line.
2505
- description: 'Load the engineering-memory skill and recall first: synap_ask "<area> gotchas". Name the root cause, not the symptom. Tools: read, devbox (one test file at the smallest rung). Gate: none.'
2506
- tier: standard
2507
- subjectStatus: investigating
2508
- suggestedTasks:
2509
- - recall known gotchas for the area
2510
- - write the failing test or the exact repro steps
2511
- - name the root cause, not the symptom
2512
- expectedOutputs:
2513
- - kind: note
2514
- label: 'Reproduction: failing test path or exact steps, and the root cause (file:line)'
2515
- - key: fix
2516
- gate:
2517
- kind: check
2518
- goal: Fix the root cause on the canonical path; the reproduction test now passes and was seen failing with the fix reverted.
2519
- name: Fix
2520
- onFail:
2521
- toStage: reproduce
2522
- category: started
2523
- criteria:
2524
- - key: fix-negative-control
2525
- check:
2526
- kind: judge
2527
- statement: The reproduction test passes with the fix and fails with the fix reverted; the gate output is quoted in the room.
2528
- description: 'Load the verified-wave skill. Branch fix/<slug> from origin/main in your own worktree. The entry check judges Reproduce: no reproduction sends the run back. Tools: edit, git in your own worktree, devbox (be-file or *-touched).'
2529
- tier: standard
2530
- suggestedTasks:
2531
- - fix the root cause
2532
- - 'negative control: revert the fix, see the test fail'
2533
- - run the smallest gate yourself and quote it
2534
- expectedOutputs:
2535
- - kind: commit
2536
- label: Gated fix commit sha
2537
- - key: review
2538
- gate:
2539
- kind: check
2540
- goal: A separate session with a clean context reads the fix and lists must-fix findings apart from justified-keep ones.
2541
- name: Review
2542
- onFail:
2543
- toStage: fix
2544
- category: started
2545
- criteria:
2546
- - key: review-clean
2547
- check:
2548
- kind: judge
2549
- statement: The review lists no open must-fix finding.
2550
- description: 'Load the pr-review skill in a review child session, never the author. The author answers every finding; a must-fix finding sends the run back to Fix before landing. The entry check judges Fix (test green, negative control seen red). Tools: read only.'
2551
- tier: deep
2552
- suggestedTasks:
2553
- - start a review child session (not the author)
2554
- - author answers every finding
2555
- expectedOutputs:
2556
- - kind: document
2557
- label: Review note (must-fix and justified-keep, with file:line)
2558
- relationToSubject: relates_to
2559
- - key: pr-opened
2560
- goal: 'Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo.'
2561
- name: Change proposed
2562
- category: started
2563
- criteria:
2564
- - key: change-recorded
2565
- check:
2566
- kind: judge
2567
- statement: 'The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo.'
2568
- - key: pr-names-session
2569
- check:
2570
- kind: judge
2571
- statement: A pull request body, when there is one, carries the line naming this Pod session.
2572
- description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
2573
- tier: standard
2574
- expectedOutputs:
2575
- - key: pull-request
2576
- kind: pull_request
2577
- label: 'Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only'
2578
- optional: true
2579
- - key: checks
2580
- gate:
2581
- kind: check
2582
- goal: 'Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo''s sha.'
2583
- name: Checks green
2584
- onFail:
2585
- toStage: fix
2586
- category: started
2587
- criteria:
2588
- - key: checks-green
2589
- check:
2590
- hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
2591
- kind: evidence
2592
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2593
- statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
2594
- description: 'Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main''s latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status.'
2595
- tier: quick
2596
- - key: merge
2597
- goal: 'The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo.'
2598
- name: Landed on main
2599
- category: started
2600
- criteria:
2601
- - key: merged
2602
- check:
2603
- hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
2604
- kind: evidence
2605
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2606
- statement: The change is on main and its outcome is marked complete.
2607
- description: 'Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session. A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence).'
2608
- tier: standard
2609
- - key: deploy
2610
- gate:
2611
- kind: human
2612
- goal: A person approves the lab deploy of the merged build; record the deployed sha.
2613
- name: Deployed to lab
2614
- onFail:
2615
- toStage: fix
2616
- category: started
2617
- criteria:
2618
- - key: deployed
2619
- check:
2620
- hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
2621
- kind: evidence
2622
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2623
- statement: The lab runs a build that contains the merge commit.
2624
- description: 'Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person''s call and releases stay the founder''s. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare.'
2625
- tier: standard
2626
- - key: dogfood
2627
- gate:
2628
- kind: check
2629
- goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
2630
- name: Dogfooded
2631
- onFail:
2632
- toStage: fix
2633
- category: started
2634
- criteria:
2635
- - key: dogfooded
2636
- check:
2637
- kind: evidence
2638
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2639
- statement: The dogfood walk reports WORKS on every path the change touches.
2640
- description: 'Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. Re-run the original reproduction where the issue was reported. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read.'
2641
- tier: standard
2642
- expectedOutputs:
2643
- - kind: document
2644
- label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
2645
- optional: true
2646
- relationToSubject: relates_to
2647
- - key: verify
2648
- onApproved: fixed
2649
- goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, and capture what was learned. Then move the issue to fixed yourself (synap_update_entity, issueStatus fixed, expectedStatus the status you read); nothing else moves it. Your move into fixed comes back proposed for the person to approve, which is success. End with the graded criteria as your answer.
2650
- name: Criteria verified
2651
- category: completed
2652
- criteria:
2653
- - key: criteria-verified
2654
- check:
2655
- kind: judge
2656
- statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
2657
- description: 'Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Moving the issue to fixed is a proposal the person approves. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none.'
2658
- tier: quick
2659
-
2660
- # --- Investigate ---
2661
- - name: Investigate
2662
- description: 'Dev set (decision d05), key: investigate. Works a feature (devplane_feature) before anyone builds it, usually while it is an idea (backlog): frame the question, measure, and conclude with a recommendation (continue, cut or reshape) in one pod document. It moves no status itself: taking the feature to spec or dropping it stays the person''s call. Changes no code. One feature per session. No activators until binding is turned on. Absorbs Evaluate Feature (11b3acd8) once it is re-pointed; reuses the stage shape of Research a Question (418e862a). Draft until the founder activates it.'
2663
- goalTemplate: 'Investigate {question} and answer it with evidence. FRAME: restate the question so it can be answered and say what evidence would answer it. MEASURE: read the code at the installed version, measure on real data, keep rejected sources with their reason, and label every number MEASURED, READ or ESTIMATED. CONCLUDE: write the answer, its confidence and a recommendation (for a feature: continue, cut or reshape, with the reasoning) as one pod document; a choice only the founder can make goes into a decision brief. Change no code.'
2664
- scope: session
2665
- subjectProfile:
2666
- profileSlug: devplane_feature
2667
- params:
2668
- - name: question
2669
- type: text
2670
- label: What question should this answer?
2671
- required: true
2672
- - name: feature
2673
- type: entity
2674
- label: Feature it is about
2675
- executor: is-agent
2676
- status: draft
2677
- stages:
2678
- - key: frame
2679
- goal: Restate the question so it can be answered and say what evidence would answer it.
2680
- name: Framed
2681
- category: planned
2682
- criteria:
2683
- - key: question-answerable
2684
- check:
2685
- kind: judge
2686
- statement: The question is restated so it can be answered, and the evidence that would answer it is named.
2687
- description: 'Recall first: synap_ask on the area, and read what the pod already settled. Load research-decision-room when options must be compared, decision-brief when the answer is a founder decision. Tools: read only (code, pod, web). Gate: none.'
2688
- tier: deep
2689
- - key: measure
2690
- goal: 'Gather the evidence: read the code at the installed version, measure on real data, and keep rejected sources with their reason.'
2691
- name: Measured
2692
- category: started
2693
- criteria:
2694
- - key: sources-kept
2695
- check:
2696
- kind: judge
2697
- statement: Every source or measure used is cited, and rejected ones are kept with their reason.
2698
- description: 'Label every number MEASURED, READ or ESTIMATED. No code change and no write except pod captures. Tools: read only; a devbox read gate only when a measure needs one (smallest rung). Gate: none.'
2699
- tier: deep
2700
- - key: conclude
2701
- gate:
2702
- kind: check
2703
- goal: Write the answer, its confidence and a recommendation as one pod document linked to the session.
2704
- name: Concluded
2705
- onFail:
2706
- toStage: measure
2707
- category: completed
2708
- criteria:
2709
- - key: every-number-labeled
2710
- check:
2711
- kind: judge
2712
- statement: Every number in the document is labeled MEASURED, READ or ESTIMATED, and the recommendation follows from the evidence.
2713
- description: 'The entry check judges Measure: an unlabeled number or an uncited claim sends the run back. Open choices only a person can settle go into a decision brief (decision-brief skill), each with a recommendation. Capture what stays true as knowledge. Tools: synap_create_document, synap_capture.'
2714
- tier: deep
2715
- expectedOutputs:
2716
- - kind: document
2717
- label: Investigation (question, measured evidence, recommendation)
2718
- relationToSubject: relates_to
2719
-
2720
- # --- Review a change ---
2721
- - name: Review a change
2722
- description: 'Dev set (decision d05), key: review. Works a feature in review (devplane_feature at in_review): a read-only, clean-context review of its change; every finding is must-fix or justified-keep, with its reason and file:line, and goes to the author''s session. Moves no status. Never the author; the author applies the fixes. Reviewing a fix runs as the review child of a Fix a bug session. There is no pull request kind: a PR is an outcome url, not an object. No activators until binding is turned on. Reuses the review stage of Bugfix (8c335e2e) and Quick change (63552bed). Draft until the founder activates it.'
2723
- goalTemplate: 'Review {target} with a clean context and give a verdict. READ the change, the rules it touches and what it can break. VERDICT: list every finding as must-fix (why it is real) or justified-keep (why it stays), each with file:line, in one review document, and post it to the author''s session. Read only: apply nothing.'
2724
- scope: session
2725
- subjectProfile:
2726
- profileSlug: devplane_feature
2727
- params:
2728
- - name: target
2729
- type: text
2730
- label: What to review (a PR url, a branch, a sha or a document)
2731
- required: true
2732
- - name: feature
2733
- type: entity
2734
- label: Feature under review
2735
- executor: is-agent
2736
- tools: [create_document]
2737
- status: draft
2738
- stages:
2739
- - key: read
2740
- goal: 'Read the change with a clean context: the diff, the rules it touches, and what it can break.'
2741
- name: Read
2742
- category: started
2743
- criteria:
2744
- - key: read-whole-change
2745
- check:
2746
- kind: judge
2747
- statement: The whole change and the rules it touches were read; nothing was edited.
2748
- description: 'Load pr-review for one pull request, parallel-review for a substantial build (independent read-only lenses). Never review your own work. Tools: read only (gh read, code, pod). Gate: none.'
2749
- tier: deep
2750
- - key: verdict
2751
- goal: List findings as must-fix (why it is real) or justified-keep (why it stays), each with file:line, and post the verdict to the author's session.
2752
- name: Verdict
2753
- category: completed
2754
- criteria:
2755
- - key: findings-justified
2756
- check:
2757
- kind: judge
2758
- statement: Every finding is classed must-fix or justified-keep with its reason and file:line.
2759
- description: 'Send the document to the author''s session (synap_post_message with toSessionId, intent handoff); the author answers every finding and applies the fixes. Gate: none (the author''s own playbook gates on an empty must-fix list). Tools: synap_create_document, synap_post_message.'
2760
- tier: deep
2761
- expectedOutputs:
2762
- - kind: document
2763
- label: Review (must-fix and justified-keep, with file:line)
2764
- relationToSubject: relates_to
2765
-
2766
- # --- Maintain ---
2767
- - name: Maintain
2768
- description: 'Dev set (decision d05), key: maintain. Works a task (one bounded chore: a dependency bump, a cleanup, a prune) in your own worktree, gated at the smallest rung, then the shared land stages when something changed. Nothing to change ends the session with a one-line reason. Small chores may be batched: several tasks in one session, one as the subject and the rest as targets. It writes no task status yet: the task lifecycle property is not confirmed (Builder''s task-status is a plain select with no declared lifecycle). No activators until binding is turned on. Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox).'
2769
- goalTemplate: 'Do this chore: {chore} (repo: {repo}). DO it in your own worktree and run the smallest gate that answers; if there is nothing to change, stop and say why in one line as your answer. LAND it through the shared land stages only when something changed.'
2770
- scope: session
2771
- subjectProfile:
2772
- profileSlug: task
2773
- params:
2774
- - name: chore
2775
- type: text
2776
- label: What chore (bump, clean, prune)?
2777
- required: true
2778
- - name: repo
2779
- type: text
2780
- label: Which repo?
2781
- default: any
2782
- - name: task
2783
- type: entity
2784
- label: Task it works, if any
2785
- # executor external-agent: the work is edit, git and devbox on a computer, which a pod is-agent run cannot do. Synap AI never runs it (the Run door refuses runOn synap_ai); a computer agent follows it as its session template.
2786
- executor: external-agent
2787
- status: draft
2788
- stages:
2789
- - key: do
2790
- goal: Do the bounded chore in your own worktree, or show there is nothing to do.
2791
- name: Done in a worktree
2792
- category: started
2793
- criteria:
2794
- - key: chore-gated
2795
- check:
2796
- kind: judge
2797
- statement: The chore is done and its smallest gate is green and quoted, or the session says in one line why nothing changed.
2798
- description: 'Rules: devbox-gates (smallest gate that answers) and shared-tree (never checkout --, restore, stash or a working-tree reset). Remove only what the chore names or what your change made unused. Tools: edit, git in your own worktree, devbox. Gate: none; nothing to change ends the session with a one-line reason and skips the land stages.'
2799
- tier: quick
2800
- expectedOutputs:
2801
- - kind: commit
2802
- label: Gated commit sha (none when nothing changed)
2803
- optional: true
2804
- - key: pr-opened
2805
- goal: 'Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo.'
2806
- name: Change proposed
2807
- category: started
2808
- criteria:
2809
- - key: change-recorded
2810
- check:
2811
- kind: judge
2812
- statement: 'The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo.'
2813
- - key: pr-names-session
2814
- check:
2815
- kind: judge
2816
- statement: A pull request body, when there is one, carries the line naming this Pod session.
2817
- description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
2818
- tier: standard
2819
- expectedOutputs:
2820
- - key: pull-request
2821
- kind: pull_request
2822
- label: 'Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only'
2823
- optional: true
2824
- - key: checks
2825
- gate:
2826
- kind: check
2827
- goal: 'Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo''s sha.'
2828
- name: Checks green
2829
- onFail:
2830
- toStage: do
2831
- category: started
2832
- criteria:
2833
- - key: checks-green
2834
- check:
2835
- hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
2836
- kind: evidence
2837
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2838
- statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
2839
- description: 'Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main''s latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status.'
2840
- tier: quick
2841
- - key: merge
2842
- goal: 'The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo.'
2843
- name: Landed on main
2844
- category: started
2845
- criteria:
2846
- - key: merged
2847
- check:
2848
- hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
2849
- kind: evidence
2850
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2851
- statement: The change is on main and its outcome is marked complete.
2852
- description: 'Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session. A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence).'
2853
- tier: standard
2854
- - key: deploy
2855
- gate:
2856
- kind: human
2857
- goal: A person approves the lab deploy of the merged build; record the deployed sha.
2858
- name: Deployed to lab
2859
- onFail:
2860
- toStage: do
2861
- category: started
2862
- criteria:
2863
- - key: deployed
2864
- check:
2865
- hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
2866
- kind: evidence
2867
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2868
- statement: The lab runs a build that contains the merge commit.
2869
- description: 'Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person''s call and releases stay the founder''s. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare.'
2870
- tier: standard
2871
- - key: dogfood
2872
- gate:
2873
- kind: check
2874
- goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
2875
- name: Dogfooded
2876
- onFail:
2877
- toStage: do
2878
- category: started
2879
- criteria:
2880
- - key: dogfooded
2881
- check:
2882
- kind: evidence
2883
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
2884
- statement: The dogfood walk reports WORKS on every path the change touches.
2885
- description: 'Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read.'
2886
- tier: standard
2887
- expectedOutputs:
2888
- - kind: document
2889
- label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
2890
- optional: true
2891
- relationToSubject: relates_to
2892
- - key: verify
2893
- goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, capture what was learned, and end with the graded criteria as your answer.
2894
- name: Criteria verified
2895
- category: completed
2896
- criteria:
2897
- - key: criteria-verified
2898
- check:
2899
- kind: judge
2900
- statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
2901
- description: 'Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none.'
2902
- tier: quick
2903
-
2904
- # --- Fix main red ---
2905
- - name: Fix main red
2906
- description: 'Dev set (decision d05), key: main-red. Own one red on main, once: claim it or join its owner, read the failing step, fix forward on fix/main-red-<sha8>, then the shared land stages. No subject kind: a session titled "main red: <repo> <check> @<sha8>" (the title the github-ci rule mandates) is how it is started. Stage text comes from the github-ci rule section "Never". Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox).'
2907
- goalTemplate: 'Fix main red on {repo}: check {check} at {sha8}. CLAIM it once or join its owner. READ the failing step and recall what the pod knows. FIX forward on branch fix/main-red-{sha8} with a PR titled "fix: main red", gated at the smallest rung; never revert-war. LAND it through the shared land stages until the fix is on main.'
2908
- scope: session
2909
- params:
2910
- - name: repo
2911
- type: text
2912
- label: Which repo is red?
2913
- required: true
2914
- - name: check
2915
- type: text
2916
- label: Which check is red?
2917
- required: true
2918
- - name: sha8
2919
- type: text
2920
- label: First 8 characters of the red main commit
2921
- required: true
2882
+ - name: issue
2883
+ type: entity
2884
+ label: Issue
2885
+ required: true
2886
+ - name: unattended
2887
+ type: boolean
2888
+ label: Run without a person (night shift)?
2889
+ default: false
2922
2890
  # executor external-agent: the work is edit, git and devbox on a computer, which a pod is-agent run cannot do. Synap AI never runs it (the Run door refuses runOn synap_ai); a computer agent follows it as its session template.
2923
2891
  executor: external-agent
2924
2892
  status: draft
2925
2893
  stages:
2926
- - key: claim
2927
- goal: 'Own the red once: look for an owner first, else claim it.'
2928
- name: Claimed
2929
- category: planned
2930
- criteria:
2931
- - key: one-owner
2932
- check:
2933
- kind: judge
2934
- statement: No older owner exists for this red, and the claim is posted in the wave's room.
2935
- description: 'Look for an owner: an open session titled "main red: <repo> ..." (synap_list_sessions), an open PR from fix/main-red-* or titled "fix: main red", or a pushed fix/main-red-* branch. An owner exists: send it what you know (synap_post_message, intent fyi) and stop. No owner: this session is titled "main red: <repo> <check> @<sha8>"; post "fixing main red <sha8>: <session id>" in the wave''s room, list sessions again, and cancel yours if an older one shows. Rule: github-ci. Tools: synap_list_sessions, synap_post_message, gh read. Gate: none.'
2936
- tier: quick
2937
- - key: read-step
2938
- goal: Read the failing step (gh run view <run> --log-failed) and recall what the pod knows (synap_ask "<check name> red").
2939
- name: Failing step read
2940
- category: started
2941
- criteria:
2942
- - key: culprit-named
2943
- check:
2944
- kind: judge
2945
- statement: The failing step is quoted and the commit that caused it is named.
2946
- description: 'Attribute before acting: name the commit that turned main red. A red you did not cause in a lane is not this session''s work. Tools: gh read, synap_ask. Gate: none.'
2947
- tier: standard
2948
- - key: fix
2949
- gate:
2950
- kind: check
2951
- goal: Fix forward on branch fix/main-red-<sha8>, gated at the smallest rung; never revert-war.
2952
- name: Fixed forward
2953
- onFail:
2954
- toStage: read-step
2955
- category: started
2956
- criteria:
2957
- - key: red-check-green
2958
- check:
2959
- kind: judge
2960
- statement: The red check passes on the fix branch, with the gate output quoted.
2961
- description: 'Load the verified-wave skill. If CI''s revert PR fix/main-red-revert-<pr>-<sha8> lands first, let it land and redo the change in a new PR. The entry check judges Read: no quoted failing step sends the run back. Tools: edit, git in your own worktree, devbox.'
2962
- tier: standard
2963
- expectedOutputs:
2964
- - kind: commit
2965
- label: Gated fix commit sha on fix/main-red-<sha8>
2966
- - key: pr-opened
2967
- goal: 'Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo.'
2968
- name: Change proposed
2969
- category: started
2970
- criteria:
2971
- - key: change-recorded
2972
- check:
2973
- kind: judge
2974
- statement: 'The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo.'
2975
- - key: pr-names-session
2976
- check:
2977
- kind: judge
2978
- statement: A pull request body, when there is one, carries the line naming this Pod session.
2979
- description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
2980
- tier: standard
2981
- expectedOutputs:
2982
- - key: pull-request
2983
- kind: pull_request
2984
- label: 'Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only'
2985
- optional: true
2986
- - key: checks
2987
- gate:
2988
- kind: check
2989
- goal: 'Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo''s sha.'
2990
- name: Checks green
2991
- onFail:
2992
- toStage: fix
2993
- category: started
2994
- criteria:
2995
- - key: checks-green
2996
- check:
2997
- hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
2998
- kind: evidence
2999
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
3000
- statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
3001
- description: 'Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main''s latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status.'
3002
- tier: quick
3003
- - key: merge
3004
- goal: 'The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo.'
3005
- name: Landed on main
3006
- category: started
3007
- criteria:
3008
- - key: merged
3009
- check:
3010
- hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
3011
- kind: evidence
3012
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
3013
- statement: The change is on main and its outcome is marked complete.
3014
- description: 'Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session (while main is red it enqueues only a main-red fix). A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence).'
3015
- tier: standard
3016
- - key: deploy
3017
- gate:
3018
- kind: human
3019
- goal: A person approves the lab deploy of the merged build; record the deployed sha.
3020
- name: Deployed to lab
3021
- onFail:
3022
- toStage: fix
3023
- category: started
3024
- criteria:
3025
- - key: deployed
3026
- check:
3027
- hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
3028
- kind: evidence
3029
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
3030
- statement: The lab runs a build that contains the merge commit.
3031
- description: 'Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person''s call and releases stay the founder''s. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare.'
3032
- tier: standard
3033
- - key: dogfood
3034
- gate:
3035
- kind: check
3036
- goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
3037
- name: Dogfooded
3038
- onFail:
3039
- toStage: fix
3040
- category: started
3041
- criteria:
3042
- - key: dogfooded
3043
- check:
3044
- kind: evidence
3045
- evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
3046
- statement: The dogfood walk reports WORKS on every path the change touches.
3047
- description: 'Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read.'
3048
- tier: standard
3049
- expectedOutputs:
3050
- - kind: document
3051
- label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
3052
- optional: true
3053
- - key: verify
3054
- goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, capture what was learned, and end with the graded criteria as your answer.
3055
- name: Criteria verified
3056
- category: completed
3057
- criteria:
3058
- - key: criteria-verified
3059
- check:
3060
- kind: judge
3061
- statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
3062
- description: 'Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none.'
3063
- tier: quick
3064
-
3065
- # Founder's pod playbook 18abd1ea, as it runs since 6 Nov 2026: no onEnd
3066
- # (decision f06dc507: a cancelled or failed session leaves its finding where it
3067
- # is); it follows the kind's lifecycle (backend#853).
3068
- # The two pod automations that move it (PR merged → merged, deployed →
2894
+ - key: reproduce
2895
+ goal: Show the bug happening with the smallest reproduction (a failing test or the exact steps) and name its root cause with file:line.
2896
+ name: Reproduce
2897
+ category: planned
2898
+ criteria:
2899
+ - key: repro-shown
2900
+ check:
2901
+ kind: judge
2902
+ statement: A test or exact reproduction shows the bug, and the root cause is named with file:line.
2903
+ description: 'Load the engineering-memory skill and recall first: synap_ask "<area> gotchas". Name the root cause, not the symptom. Tools: read, devbox (one test file at the smallest rung). Gate: none.'
2904
+ tier: standard
2905
+ subjectStatus: investigating
2906
+ suggestedTasks:
2907
+ - recall known gotchas for the area
2908
+ - write the failing test or the exact repro steps
2909
+ - name the root cause, not the symptom
2910
+ expectedOutputs:
2911
+ - kind: note
2912
+ label: "Reproduction: failing test path or exact steps, and the root cause (file:line)"
2913
+ - key: fix
2914
+ gate:
2915
+ kind: check
2916
+ goal: Fix the root cause on the canonical path; the reproduction test now passes and was seen failing with the fix reverted.
2917
+ name: Fix
2918
+ onFail:
2919
+ toStage: reproduce
2920
+ category: started
2921
+ criteria:
2922
+ - key: fix-negative-control
2923
+ check:
2924
+ kind: judge
2925
+ statement: The reproduction test passes with the fix and fails with the fix reverted; the gate output is quoted in the room.
2926
+ description: "Load the verified-wave skill. Branch fix/<slug> from origin/main in your own worktree. The entry check judges Reproduce: no reproduction sends the run back. Tools: edit, git in your own worktree, devbox (be-file or *-touched)."
2927
+ tier: standard
2928
+ suggestedTasks:
2929
+ - fix the root cause
2930
+ - "negative control: revert the fix, see the test fail"
2931
+ - run the smallest gate yourself and quote it
2932
+ expectedOutputs:
2933
+ - kind: commit
2934
+ label: Gated fix commit sha
2935
+ - key: review
2936
+ gate:
2937
+ kind: check
2938
+ goal: A separate session with a clean context reads the fix and lists must-fix findings apart from justified-keep ones.
2939
+ name: Review
2940
+ onFail:
2941
+ toStage: fix
2942
+ category: started
2943
+ criteria:
2944
+ - key: review-clean
2945
+ check:
2946
+ kind: judge
2947
+ statement: The review lists no open must-fix finding.
2948
+ description: "Load the pr-review skill in a review child session, never the author. The author answers every finding; a must-fix finding sends the run back to Fix before landing. The entry check judges Fix (test green, negative control seen red). Tools: read only."
2949
+ tier: deep
2950
+ suggestedTasks:
2951
+ - start a review child session (not the author)
2952
+ - author answers every finding
2953
+ expectedOutputs:
2954
+ - kind: document
2955
+ label: Review note (must-fix and justified-keep, with file:line)
2956
+ relationToSubject: relates_to
2957
+ - key: pr-opened
2958
+ goal: "Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo."
2959
+ name: Change proposed
2960
+ category: started
2961
+ criteria:
2962
+ - key: change-recorded
2963
+ check:
2964
+ kind: judge
2965
+ statement: "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
2966
+ - key: pr-names-session
2967
+ check:
2968
+ kind: judge
2969
+ statement: A pull request body, when there is one, carries the line naming this Pod session.
2970
+ description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
2971
+ tier: standard
2972
+ expectedOutputs:
2973
+ - key: pull-request
2974
+ kind: pull_request
2975
+ label: "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only"
2976
+ optional: true
2977
+ - key: checks
2978
+ gate:
2979
+ kind: check
2980
+ goal: "Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo's sha."
2981
+ name: Checks green
2982
+ onFail:
2983
+ toStage: fix
2984
+ category: started
2985
+ criteria:
2986
+ - key: checks-green
2987
+ check:
2988
+ hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
2989
+ kind: evidence
2990
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
2991
+ statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
2992
+ description: "Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main's latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status."
2993
+ tier: quick
2994
+ - key: merge
2995
+ goal: "The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo."
2996
+ name: Landed on main
2997
+ category: started
2998
+ criteria:
2999
+ - key: merged
3000
+ check:
3001
+ hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
3002
+ kind: evidence
3003
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3004
+ statement: The change is on main and its outcome is marked complete.
3005
+ description: "Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session. A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence)."
3006
+ tier: standard
3007
+ - key: deploy
3008
+ gate:
3009
+ kind: human
3010
+ goal: A person approves the lab deploy of the merged build; record the deployed sha.
3011
+ name: Deployed to lab
3012
+ onFail:
3013
+ toStage: fix
3014
+ category: started
3015
+ criteria:
3016
+ - key: deployed
3017
+ check:
3018
+ hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
3019
+ kind: evidence
3020
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3021
+ statement: The lab runs a build that contains the merge commit.
3022
+ description: "Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person's call and releases stay the founder's. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare."
3023
+ tier: standard
3024
+ - key: dogfood
3025
+ gate:
3026
+ kind: check
3027
+ goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
3028
+ name: Dogfooded
3029
+ onFail:
3030
+ toStage: fix
3031
+ category: started
3032
+ criteria:
3033
+ - key: dogfooded
3034
+ check:
3035
+ kind: evidence
3036
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3037
+ statement: The dogfood walk reports WORKS on every path the change touches.
3038
+ description: "Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. Re-run the original reproduction where the issue was reported. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read."
3039
+ tier: standard
3040
+ expectedOutputs:
3041
+ - kind: document
3042
+ label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
3043
+ optional: true
3044
+ relationToSubject: relates_to
3045
+ - key: verify
3046
+ onApproved: fixed
3047
+ goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, and capture what was learned. Then move the issue to fixed yourself (synap_update_entity, issueStatus fixed, expectedStatus the status you read); nothing else moves it. Your move into fixed comes back proposed for the person to approve, which is success. End with the graded criteria as your answer.
3048
+ name: Criteria verified
3049
+ category: completed
3050
+ criteria:
3051
+ - key: criteria-verified
3052
+ check:
3053
+ kind: judge
3054
+ statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
3055
+ description: "Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Moving the issue to fixed is a proposal the person approves. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none."
3056
+ tier: quick
3057
+
3058
+ # --- Investigate ---
3059
+ - name: Investigate
3060
+ description: "Dev set (decision d05), key: investigate. Works a feature (devplane_feature) before anyone builds it, usually while it is an idea (backlog): frame the question, measure, and conclude with a recommendation (continue, cut or reshape) in one pod document. It moves no status itself: taking the feature to spec or dropping it stays the person's call. Changes no code. One feature per session. No activators until binding is turned on. Absorbs Evaluate Feature (11b3acd8) once it is re-pointed; reuses the stage shape of Research a Question (418e862a). Draft until the founder activates it."
3061
+ goalTemplate: "Investigate {question} and answer it with evidence. FRAME: restate the question so it can be answered and say what evidence would answer it. MEASURE: read the code at the installed version, measure on real data, keep rejected sources with their reason, and label every number MEASURED, READ or ESTIMATED. CONCLUDE: write the answer, its confidence and a recommendation (for a feature: continue, cut or reshape, with the reasoning) as one pod document; a choice only the founder can make goes into a decision brief. Change no code."
3062
+ scope: session
3063
+ subjectProfile:
3064
+ profileSlug: devplane_feature
3065
+ params:
3066
+ - name: question
3067
+ type: text
3068
+ label: What question should this answer?
3069
+ required: true
3070
+ - name: feature
3071
+ type: entity
3072
+ label: Feature it is about
3073
+ executor: is-agent
3074
+ status: draft
3075
+ stages:
3076
+ - key: frame
3077
+ goal: Restate the question so it can be answered and say what evidence would answer it.
3078
+ name: Framed
3079
+ category: planned
3080
+ criteria:
3081
+ - key: question-answerable
3082
+ check:
3083
+ kind: judge
3084
+ statement: The question is restated so it can be answered, and the evidence that would answer it is named.
3085
+ description: "Recall first: synap_ask on the area, and read what the pod already settled. Load research-decision-room when options must be compared, decision-brief when the answer is a founder decision. Tools: read only (code, pod, web). Gate: none."
3086
+ tier: deep
3087
+ - key: measure
3088
+ goal: "Gather the evidence: read the code at the installed version, measure on real data, and keep rejected sources with their reason."
3089
+ name: Measured
3090
+ category: started
3091
+ criteria:
3092
+ - key: sources-kept
3093
+ check:
3094
+ kind: judge
3095
+ statement: Every source or measure used is cited, and rejected ones are kept with their reason.
3096
+ description: "Label every number MEASURED, READ or ESTIMATED. No code change and no write except pod captures. Tools: read only; a devbox read gate only when a measure needs one (smallest rung). Gate: none."
3097
+ tier: deep
3098
+ - key: conclude
3099
+ gate:
3100
+ kind: check
3101
+ goal: Write the answer, its confidence and a recommendation as one pod document linked to the session.
3102
+ name: Concluded
3103
+ onFail:
3104
+ toStage: measure
3105
+ category: completed
3106
+ criteria:
3107
+ - key: every-number-labeled
3108
+ check:
3109
+ kind: judge
3110
+ statement: Every number in the document is labeled MEASURED, READ or ESTIMATED, and the recommendation follows from the evidence.
3111
+ description: "The entry check judges Measure: an unlabeled number or an uncited claim sends the run back. Open choices only a person can settle go into a decision brief (decision-brief skill), each with a recommendation. Capture what stays true as knowledge. Tools: synap_create_document, synap_capture."
3112
+ tier: deep
3113
+ expectedOutputs:
3114
+ - kind: document
3115
+ label: Investigation (question, measured evidence, recommendation)
3116
+ relationToSubject: relates_to
3117
+
3118
+ # --- Review a change ---
3119
+ - name: Review a change
3120
+ description: "Dev set (decision d05), key: review. Works a feature in review (devplane_feature at in_review): a read-only, clean-context review of its change; every finding is must-fix or justified-keep, with its reason and file:line, and goes to the author's session. Moves no status. Never the author; the author applies the fixes. Reviewing a fix runs as the review child of a Fix a bug session. There is no pull request kind: a PR is an outcome url, not an object. No activators until binding is turned on. Reuses the review stage of Bugfix (8c335e2e) and Quick change (63552bed). Draft until the founder activates it."
3121
+ goalTemplate: "Review {target} with a clean context and give a verdict. READ the change, the rules it touches and what it can break. VERDICT: list every finding as must-fix (why it is real) or justified-keep (why it stays), each with file:line, in one review document, and post it to the author's session. Read only: apply nothing."
3122
+ scope: session
3123
+ subjectProfile:
3124
+ profileSlug: devplane_feature
3125
+ params:
3126
+ - name: target
3127
+ type: text
3128
+ label: What to review (a PR url, a branch, a sha or a document)
3129
+ required: true
3130
+ - name: feature
3131
+ type: entity
3132
+ label: Feature under review
3133
+ executor: is-agent
3134
+ tools: [create_document]
3135
+ status: draft
3136
+ stages:
3137
+ - key: read
3138
+ goal: "Read the change with a clean context: the diff, the rules it touches, and what it can break."
3139
+ name: Read
3140
+ category: started
3141
+ criteria:
3142
+ - key: read-whole-change
3143
+ check:
3144
+ kind: judge
3145
+ statement: The whole change and the rules it touches were read; nothing was edited.
3146
+ description: "Load pr-review for one pull request, parallel-review for a substantial build (independent read-only lenses). Never review your own work. Tools: read only (gh read, code, pod). Gate: none."
3147
+ tier: deep
3148
+ - key: verdict
3149
+ goal: List findings as must-fix (why it is real) or justified-keep (why it stays), each with file:line, and post the verdict to the author's session.
3150
+ name: Verdict
3151
+ category: completed
3152
+ criteria:
3153
+ - key: findings-justified
3154
+ check:
3155
+ kind: judge
3156
+ statement: Every finding is classed must-fix or justified-keep with its reason and file:line.
3157
+ description: "Send the document to the author's session (synap_post_message with toSessionId, intent handoff); the author answers every finding and applies the fixes. Gate: none (the author's own playbook gates on an empty must-fix list). Tools: synap_create_document, synap_post_message."
3158
+ tier: deep
3159
+ expectedOutputs:
3160
+ - kind: document
3161
+ label: Review (must-fix and justified-keep, with file:line)
3162
+ relationToSubject: relates_to
3163
+
3164
+ # --- Maintain ---
3165
+ - name: Maintain
3166
+ description: "Dev set (decision d05), key: maintain. Works a task (one bounded chore: a dependency bump, a cleanup, a prune) in your own worktree, gated at the smallest rung, then the shared land stages when something changed. Nothing to change ends the session with a one-line reason. Small chores may be batched: several tasks in one session, one as the subject and the rest as targets. It writes no task status yet: the task lifecycle property is not confirmed (Builder's task-status is a plain select with no declared lifecycle). No activators until binding is turned on. Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox)."
3167
+ goalTemplate: "Do this chore: {chore} (repo: {repo}). DO it in your own worktree and run the smallest gate that answers; if there is nothing to change, stop and say why in one line as your answer. LAND it through the shared land stages only when something changed."
3168
+ scope: session
3169
+ subjectProfile:
3170
+ profileSlug: task
3171
+ params:
3172
+ - name: chore
3173
+ type: text
3174
+ label: What chore (bump, clean, prune)?
3175
+ required: true
3176
+ - name: repo
3177
+ type: text
3178
+ label: Which repo?
3179
+ default: any
3180
+ - name: task
3181
+ type: entity
3182
+ label: Task it works, if any
3183
+ # executor external-agent: the work is edit, git and devbox on a computer, which a pod is-agent run cannot do. Synap AI never runs it (the Run door refuses runOn synap_ai); a computer agent follows it as its session template.
3184
+ executor: external-agent
3185
+ status: draft
3186
+ stages:
3187
+ - key: do
3188
+ goal: Do the bounded chore in your own worktree, or show there is nothing to do.
3189
+ name: Done in a worktree
3190
+ category: started
3191
+ criteria:
3192
+ - key: chore-gated
3193
+ check:
3194
+ kind: judge
3195
+ statement: The chore is done and its smallest gate is green and quoted, or the session says in one line why nothing changed.
3196
+ description: "Rules: devbox-gates (smallest gate that answers) and shared-tree (never checkout --, restore, stash or a working-tree reset). Remove only what the chore names or what your change made unused. Tools: edit, git in your own worktree, devbox. Gate: none; nothing to change ends the session with a one-line reason and skips the land stages."
3197
+ tier: quick
3198
+ expectedOutputs:
3199
+ - kind: commit
3200
+ label: Gated commit sha (none when nothing changed)
3201
+ optional: true
3202
+ - key: pr-opened
3203
+ goal: "Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo."
3204
+ name: Change proposed
3205
+ category: started
3206
+ criteria:
3207
+ - key: change-recorded
3208
+ check:
3209
+ kind: judge
3210
+ statement: "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
3211
+ - key: pr-names-session
3212
+ check:
3213
+ kind: judge
3214
+ statement: A pull request body, when there is one, carries the line naming this Pod session.
3215
+ description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
3216
+ tier: standard
3217
+ expectedOutputs:
3218
+ - key: pull-request
3219
+ kind: pull_request
3220
+ label: "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only"
3221
+ optional: true
3222
+ - key: checks
3223
+ gate:
3224
+ kind: check
3225
+ goal: "Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo's sha."
3226
+ name: Checks green
3227
+ onFail:
3228
+ toStage: do
3229
+ category: started
3230
+ criteria:
3231
+ - key: checks-green
3232
+ check:
3233
+ hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
3234
+ kind: evidence
3235
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3236
+ statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
3237
+ description: "Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main's latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status."
3238
+ tier: quick
3239
+ - key: merge
3240
+ goal: "The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo."
3241
+ name: Landed on main
3242
+ category: started
3243
+ criteria:
3244
+ - key: merged
3245
+ check:
3246
+ hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
3247
+ kind: evidence
3248
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3249
+ statement: The change is on main and its outcome is marked complete.
3250
+ description: "Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session. A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence)."
3251
+ tier: standard
3252
+ - key: deploy
3253
+ gate:
3254
+ kind: human
3255
+ goal: A person approves the lab deploy of the merged build; record the deployed sha.
3256
+ name: Deployed to lab
3257
+ onFail:
3258
+ toStage: do
3259
+ category: started
3260
+ criteria:
3261
+ - key: deployed
3262
+ check:
3263
+ hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
3264
+ kind: evidence
3265
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3266
+ statement: The lab runs a build that contains the merge commit.
3267
+ description: "Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person's call and releases stay the founder's. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare."
3268
+ tier: standard
3269
+ - key: dogfood
3270
+ gate:
3271
+ kind: check
3272
+ goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
3273
+ name: Dogfooded
3274
+ onFail:
3275
+ toStage: do
3276
+ category: started
3277
+ criteria:
3278
+ - key: dogfooded
3279
+ check:
3280
+ kind: evidence
3281
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3282
+ statement: The dogfood walk reports WORKS on every path the change touches.
3283
+ description: "Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read."
3284
+ tier: standard
3285
+ expectedOutputs:
3286
+ - kind: document
3287
+ label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
3288
+ optional: true
3289
+ relationToSubject: relates_to
3290
+ - key: verify
3291
+ goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, capture what was learned, and end with the graded criteria as your answer.
3292
+ name: Criteria verified
3293
+ category: completed
3294
+ criteria:
3295
+ - key: criteria-verified
3296
+ check:
3297
+ kind: judge
3298
+ statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
3299
+ description: "Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none."
3300
+ tier: quick
3301
+
3302
+ # --- Fix main red ---
3303
+ - name: Fix main red
3304
+ description: 'Dev set (decision d05), key: main-red. Own one red on main, once: claim it or join its owner, read the failing step, fix forward on fix/main-red-<sha8>, then the shared land stages. No subject kind: a session titled "main red: <repo> <check> @<sha8>" (the title the github-ci rule mandates) is how it is started. Stage text comes from the github-ci rule section "Never". Draft until the founder activates it. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox).'
3305
+ goalTemplate: 'Fix main red on {repo}: check {check} at {sha8}. CLAIM it once or join its owner. READ the failing step and recall what the pod knows. FIX forward on branch fix/main-red-{sha8} with a PR titled "fix: main red", gated at the smallest rung; never revert-war. LAND it through the shared land stages until the fix is on main.'
3306
+ scope: session
3307
+ params:
3308
+ - name: repo
3309
+ type: text
3310
+ label: Which repo is red?
3311
+ required: true
3312
+ - name: check
3313
+ type: text
3314
+ label: Which check is red?
3315
+ required: true
3316
+ - name: sha8
3317
+ type: text
3318
+ label: First 8 characters of the red main commit
3319
+ required: true
3320
+ # executor external-agent: the work is edit, git and devbox on a computer, which a pod is-agent run cannot do. Synap AI never runs it (the Run door refuses runOn synap_ai); a computer agent follows it as its session template.
3321
+ executor: external-agent
3322
+ status: draft
3323
+ stages:
3324
+ - key: claim
3325
+ goal: "Own the red once: look for an owner first, else claim it."
3326
+ name: Claimed
3327
+ category: planned
3328
+ criteria:
3329
+ - key: one-owner
3330
+ check:
3331
+ kind: judge
3332
+ statement: No older owner exists for this red, and the claim is posted in the wave's room.
3333
+ description: 'Look for an owner: an open session titled "main red: <repo> ..." (synap_list_sessions), an open PR from fix/main-red-* or titled "fix: main red", or a pushed fix/main-red-* branch. An owner exists: send it what you know (synap_post_message, intent fyi) and stop. No owner: this session is titled "main red: <repo> <check> @<sha8>"; post "fixing main red <sha8>: <session id>" in the wave''s room, list sessions again, and cancel yours if an older one shows. Rule: github-ci. Tools: synap_list_sessions, synap_post_message, gh read. Gate: none.'
3334
+ tier: quick
3335
+ - key: read-step
3336
+ goal: Read the failing step (gh run view <run> --log-failed) and recall what the pod knows (synap_ask "<check name> red").
3337
+ name: Failing step read
3338
+ category: started
3339
+ criteria:
3340
+ - key: culprit-named
3341
+ check:
3342
+ kind: judge
3343
+ statement: The failing step is quoted and the commit that caused it is named.
3344
+ description: "Attribute before acting: name the commit that turned main red. A red you did not cause in a lane is not this session's work. Tools: gh read, synap_ask. Gate: none."
3345
+ tier: standard
3346
+ - key: fix
3347
+ gate:
3348
+ kind: check
3349
+ goal: Fix forward on branch fix/main-red-<sha8>, gated at the smallest rung; never revert-war.
3350
+ name: Fixed forward
3351
+ onFail:
3352
+ toStage: read-step
3353
+ category: started
3354
+ criteria:
3355
+ - key: red-check-green
3356
+ check:
3357
+ kind: judge
3358
+ statement: The red check passes on the fix branch, with the gate output quoted.
3359
+ description: "Load the verified-wave skill. If CI's revert PR fix/main-red-revert-<pr>-<sha8> lands first, let it land and redo the change in a new PR. The entry check judges Read: no quoted failing step sends the run back. Tools: edit, git in your own worktree, devbox."
3360
+ tier: standard
3361
+ expectedOutputs:
3362
+ - kind: commit
3363
+ label: Gated fix commit sha on fix/main-red-<sha8>
3364
+ - key: pr-opened
3365
+ goal: "Record the change as one outcome with its url: a draft PR in a public repo, or a pushed branch gated at its exact sha in a private repo."
3366
+ name: Change proposed
3367
+ category: started
3368
+ criteria:
3369
+ - key: change-recorded
3370
+ check:
3371
+ kind: judge
3372
+ statement: "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
3373
+ - key: pr-names-session
3374
+ check:
3375
+ kind: judge
3376
+ statement: A pull request body, when there is one, carries the line naming this Pod session.
3377
+ description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.'
3378
+ tier: standard
3379
+ expectedOutputs:
3380
+ - key: pull-request
3381
+ kind: pull_request
3382
+ label: "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only"
3383
+ optional: true
3384
+ - key: checks
3385
+ gate:
3386
+ kind: check
3387
+ goal: "Every required check on the exact head is green: the 4 required backend checks, or the devbox gate on the private repo's sha."
3388
+ name: Checks green
3389
+ onFail:
3390
+ toStage: fix
3391
+ category: started
3392
+ criteria:
3393
+ - key: checks-green
3394
+ check:
3395
+ hint: Posted by the ci.finished automation, by the worker after github_pr_checks on the head sha, or with the devbox summary of the exact sha for a private repo.
3396
+ kind: evidence
3397
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3398
+ statement: Every required check on the head finished green (the 4 required backend checks, or the devbox gate on the exact sha in a private repo).
3399
+ description: "Shared land stage. Backend: mark the draft ready once, when the slice is done and gated; it is done when Release gate, Full suite, API e2e and Reference docs are current are green on its head (github_pr_checks or the ci.finished event). Private repo: the devbox gate on that full sha is green with no INFRA result. A red you did not cause is not yours: read main's latest run or the [vs main] mark first. A red that is yours goes back to the work stage; push the fix once. Done by CI, the devbox and the ci.finished automation, not by free reasoning. Tools: gh read, devbox status."
3400
+ tier: quick
3401
+ - key: merge
3402
+ goal: "The change reaches main through its door: the merge bot for backend, a fast-forward push of the gated sha for a private repo."
3403
+ name: Landed on main
3404
+ category: started
3405
+ criteria:
3406
+ - key: merged
3407
+ check:
3408
+ hint: Posted by the dev.pr_merged automation, by the worker after github_pr_get (merged true), or with the commit url on main for a private repo.
3409
+ kind: evidence
3410
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3411
+ statement: The change is on main and its outcome is marked complete.
3412
+ description: "Shared land stage. Backend: never run gh pr merge (with or without --auto, never --admin) and never enqueue the PR yourself; the merge bot enqueues a ready, green PR whose body names the session (while main is red it enqueues only a main-red fix). A PR touching CI or test infrastructure waits 2 h after green unless the founder runs prcheck --merge backend <n>: say so. Private repo: git push origin <sha>:main of the exact gated sha, fast-forward only, never --force; if main moved, only a clean rebase touching none of your files may go, otherwise gate again. Then completeOutput on the outcome. An unattended run stops before this stage. Done by the merge bot, the bridge and the outcome verbs. Tools: git push (private repo only), synap_update_session. Gate: none (the bridge and the merge bot hold the evidence)."
3413
+ tier: standard
3414
+ - key: deploy
3415
+ gate:
3416
+ kind: human
3417
+ goal: A person approves the lab deploy of the merged build; record the deployed sha.
3418
+ name: Deployed to lab
3419
+ onFail:
3420
+ toStage: fix
3421
+ category: started
3422
+ criteria:
3423
+ - key: deployed
3424
+ check:
3425
+ hint: The deployed sha contains the merge commit (github_compare base merge commit, head deployed sha, status identical or ahead).
3426
+ kind: evidence
3427
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3428
+ statement: The lab runs a build that contains the merge commit.
3429
+ description: "Shared land stage. Ask with synap_request_deploy_approval; the deploy is the person's call and releases stay the founder's. Skip with a one-line reason in the room when the change never reaches a running pod (CI, tests, docs, tooling). Never in an unattended run. Tools: synap_request_deploy_approval, github_compare."
3430
+ tier: standard
3431
+ - key: dogfood
3432
+ gate:
3433
+ kind: check
3434
+ goal: Walk the change in the running lab as a person would, entering through the doors a person enters through, and report WORKS, BROKEN or CANNOT-TELL with what was seen.
3435
+ name: Dogfooded
3436
+ onFail:
3437
+ toStage: fix
3438
+ category: started
3439
+ criteria:
3440
+ - key: dogfooded
3441
+ check:
3442
+ kind: evidence
3443
+ evidenceKey: "[CREDENTIAL REDACTED: Secret assignment]"
3444
+ statement: The dogfood walk reports WORKS on every path the change touches.
3445
+ description: "Shared land stage. Load the dogfood skill, or start Dogfood a change (08a4929c) as a child session for a deployed change. A BROKEN path becomes a finding and the run goes back to the work stage. Skip with a one-line reason when nothing a person sees changed. Tools: browser automation, screenshots, read."
3446
+ tier: standard
3447
+ expectedOutputs:
3448
+ - kind: document
3449
+ label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
3450
+ optional: true
3451
+ - key: verify
3452
+ goal: Grade every criterion of the session with its evidence, separating VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD, capture what was learned, and end with the graded criteria as your answer.
3453
+ name: Criteria verified
3454
+ category: completed
3455
+ criteria:
3456
+ - key: criteria-verified
3457
+ check:
3458
+ kind: judge
3459
+ statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
3460
+ description: "Shared land stage. Never report unverified work as verified. File the lesson, decision or finding the work produced (engineering-memory skill, rule dogfood-journal). Close what you opened: asks answered or withdrawn, worktree removed once merged, then synap_complete_session. Tools: synap_update_session, synap_capture, synap_complete_session. Gate: none."
3461
+ tier: quick
3462
+
3463
+ # Founder's pod playbook 18abd1ea, as it runs since 6 Nov 2026: no onEnd
3464
+ # (decision f06dc507: a cancelled or failed session leaves its finding where it
3465
+ # is); it follows the kind's lifecycle (backend#853).
3466
+ # The two pod automations that move it (PR merged → merged, deployed →
3069
3467
  # verified) are not shipped: their session_update step scopes on
3070
3468
  # `whenPlaybookId`, a pod uuid, and there is no catalog-stable reference yet.
3071
3469
  - name: Fix a finding
@@ -3079,26 +3477,26 @@ playbooks:
3079
3477
  executor: external-agent
3080
3478
  status: active
3081
3479
  stages:
3082
- - key: fix
3083
- name: Fix it
3084
- goal: Find the root cause and ship the fix as a gated PR or commit. Once the pull request is open (or the gated commit pushed), move the session to Fix merged.
3085
- category: started
3086
- subjectStatus: fixing
3087
- - key: merged
3088
- name: Fix merged
3089
- goal: Record the fix's pull request on this stage's Merged fix output with its url as the ref, and leave it open (synap_update_session); the pod closes it when the pull request merges into main, and that moves the finding to fixed. A fix landed as a gated commit, with no pull request, marks the output done with the commit's url as its ref. Never move the finding yourself.
3090
- category: started
3091
- onApproved: fixed
3092
- # REQUIRED (decision D2): the merge itself approves this stage — the merge
3093
- # sweeper closes the slot whose ref is the merged pull request
3094
- # (satisfyPullRequestByMerge), even after the run moved on.
3095
- expectedOutputs:
3096
- - { kind: pull_request, label: Merged fix, relationToSubject: none }
3097
- - key: verified
3098
- name: Live and verified
3099
- goal: The fix runs on the pod (its build contains the fix) and the finding no longer happens. Then move the finding to verified yourself (synap_update_entity, status verified, expectedStatus fixed); nothing else moves it, and your move into verified comes back proposed for the person to approve, which is success.
3100
- category: completed
3101
- onApproved: verified
3480
+ - key: fix
3481
+ name: Fix it
3482
+ goal: Find the root cause and ship the fix as a gated PR or commit. Once the pull request is open (or the gated commit pushed), move the session to Fix merged.
3483
+ category: started
3484
+ subjectStatus: fixing
3485
+ - key: merged
3486
+ name: Fix merged
3487
+ goal: Record the fix's pull request on this stage's Merged fix output with its url as the ref, and leave it open (synap_update_session); the pod closes it when the pull request merges into main, and that moves the finding to fixed. A fix landed as a gated commit, with no pull request, marks the output done with the commit's url as its ref. Never move the finding yourself.
3488
+ category: started
3489
+ onApproved: fixed
3490
+ # REQUIRED (decision D2): the merge itself approves this stage — the merge
3491
+ # sweeper closes the slot whose ref is the merged pull request
3492
+ # (satisfyPullRequestByMerge), even after the run moved on.
3493
+ expectedOutputs:
3494
+ - { kind: pull_request, label: Merged fix, relationToSubject: none }
3495
+ - key: verified
3496
+ name: Live and verified
3497
+ goal: The fix runs on the pod (its build contains the fix) and the finding no longer happens. Then move the finding to verified yourself (synap_update_entity, status verified, expectedStatus fixed); nothing else moves it, and your move into verified comes back proposed for the person to approve, which is success.
3498
+ category: completed
3499
+ onApproved: verified
3102
3500
 
3103
3501
  # --- Fix in code ---
3104
3502
  # The child run of a hand-off (design 8e1cc3e9, slice 1): "Fix a finding"'s
@@ -3135,6 +3533,315 @@ playbooks:
3135
3533
  statement: The gate that answers the change ran on the exact sha and its result is written as the Gate summary; nothing was merged or pushed to main by this run.
3136
3534
  check: { kind: judge }
3137
3535
 
3536
+ # --- The UI inventory's processes (plan 48854969 §9, 23 Nov 2026) ---
3537
+ # REVIEW A UI COMPONENT: one component, critiqued with the design-critique
3538
+ # rubric, then a verdict that branches BEFORE any code: fine ends the run,
3539
+ # a rewrite stops on the founder's ask, only a small fix is built. The fix
3540
+ # is built and gated on a branch first, and the founder approves it ONCE,
3541
+ # shown (founder D3: "what I approve is the fact that this fix becomes the
3542
+ # main version"); that approval releases land, publish and done. The stage
3543
+ # keys approve, land, publish and done are the ones the one-approval
3544
+ # mechanism (lane l5, session 570e71e3) attaches to: keep them stable.
3545
+ #
3546
+ # It moves no ui-status: a component's status is the inventory's verdict
3547
+ # (phase 1) or a person's call (deprecated), never a review's side effect.
3548
+ # It FOLLOWS the kind (subject ui-component) and writes the review state
3549
+ # (`review-state`, `reviewed-hash`), which is not a lifecycle.
3550
+ #
3551
+ # The weekly fan-out is the per_thing SCHEDULE below: the pod opens one run
3552
+ # per component whose review-state is `changed` (`only`), at most 10 waiting
3553
+ # for the person (maxPendingApprovals). A forEach stage fed by
3554
+ # `storybook.changed` is not possible today: `forEach.over` reads only the
3555
+ # run's params (fixed at start) or the subject (backend stage-for-each.ts),
3556
+ # and no stage writes a param. Installed paused: a person turns it on.
3557
+ # The stages are linear (a stage `when` is advisory): the verdict's branches
3558
+ # are in its goal.
3559
+ - name: Review a UI component
3560
+ description: "Review one UI component of an app's Storybook against the design-critique rubric and decide what to do with it: nothing (fine, the run ends), a rewrite plan (the founder decides on it, nothing is built), or a small fix, built and gated on a branch and shown to the founder. Approving `approve` releases land, publish and done; no later stage asks the person again. Ends with the component marked reviewed at its current source."
3561
+ goalTemplate: >-
3562
+ Review the UI component {component} and decide what to do with it. Load
3563
+ the design-critique skill first (and designing-with-real-components for a
3564
+ fix). Read the component record: its stories, screenshot, props,
3565
+ composition (composed_of), variants (extends), the pages that use it, its
3566
+ family in the inventory, and its source file at the synced sha; read what
3567
+ the pod already knows about it (recall first). Set review-state to
3568
+ in-review when you start. CRITIQUE: judge each of its stories with the
3569
+ rubric (each finding with its rule id, tier, severity and region);
3570
+ opinions are never applied. VERDICT, which branches before any code:
3571
+ fine ends the run (reviewed-hash = source-hash, review-state fresh, no
3572
+ build); rewrite writes a plan document and stops on the founder's ask,
3573
+ nothing is built; only a small fix goes on. IMPLEMENT and GATE the fix on
3574
+ a branch of the project's repo (nothing reaches main before Approve).
3575
+ APPROVE: the founder sees the before/after of the story, the diff summary
3576
+ and the green gate at the full head sha, and approves once; that releases
3577
+ LAND, PUBLISH and DONE, run through the project's ship actions, never by
3578
+ an agent pushing main by hand. DONE: reviewed-hash = source-hash and
3579
+ review-state fresh. Code facts of the record (name, props, stories,
3580
+ source, composition) belong to the Storybook sync: never edit them on
3581
+ the pod.
3582
+ scope: session
3583
+ subjectProfile:
3584
+ profileSlug: ui-component
3585
+ activators:
3586
+ - { on: manual, mode: propose }
3587
+ - on: schedule
3588
+ cron: "0 7 * * 1"
3589
+ size: per_thing
3590
+ only: { property: review-state, in: [changed] }
3591
+ mode: propose
3592
+ maxPendingApprovals: 10
3593
+ startsPaused: true
3594
+ params:
3595
+ - { name: component, type: entity, label: UI component, required: true }
3596
+ executor: is-agent
3597
+ status: active
3598
+ stages:
3599
+ - key: critique
3600
+ name: Critique
3601
+ category: started
3602
+ goal: Set the component's review-state to in-review, then judge each of its stories with the design-critique rubric and write the findings (rule id, tier, severity, confidence, region, evidence) into the critique document.
3603
+ expectedOutputs:
3604
+ - kind: document
3605
+ label: Component critique (findings by story, tier and rule id)
3606
+ relationToSubject: relates_to
3607
+ criteria:
3608
+ - key: critique-findings-ruled
3609
+ statement: Every finding in the critique names a rule id of the design-critique rubric, a tier, a severity and the story and region it is about.
3610
+ check: { kind: judge }
3611
+ - key: critique-every-story
3612
+ statement: Every story id of the component (story-ids) is critiqued or named as skipped with why.
3613
+ check: { kind: judge }
3614
+ - key: verdict
3615
+ name: Verdict
3616
+ category: started
3617
+ goal: "Decide ONE verdict from the findings, with its reasons; it branches here, before any code. FINE: write reviewed-hash = source-hash and review-state fresh on the component, and stop there: the run ends, nothing is built. REWRITE: write a plan document naming what replaces the component, every caller (the pages and components made of it) and the order of the work; add an outcome owned by the person on this session (owner human, an ask confirming the rewrite) and pause on it; never go on to Implement in this run. SMALL FIX: draw the enhanced version as a ui-design (design-scope component, current-story-id the component's main story, design-goal what the fix achieves) from real components only, and go on to Implement."
3618
+ expectedOutputs:
3619
+ - kind: decision
3620
+ label: Review verdict (fine, small fix or rewrite)
3621
+ relationToSubject: relates_to
3622
+ - kind: ui-design
3623
+ label: Enhanced version (a small fix)
3624
+ relationToSubject: relates_to
3625
+ optional: true
3626
+ - kind: document
3627
+ label: Rewrite plan
3628
+ relationToSubject: relates_to
3629
+ optional: true
3630
+ criteria:
3631
+ - key: verdict-one-of-three
3632
+ statement: The verdict is exactly one of fine, small fix or rewrite, and names the findings it rests on.
3633
+ check: { kind: judge }
3634
+ - key: verdict-branches-before-code
3635
+ statement: Only a small fix went on to Implement; a fine verdict ended the run with the component marked reviewed, and a rewrite stopped on the person's ask with its plan document.
3636
+ check: { kind: judge }
3637
+ - key: implement
3638
+ name: Implement
3639
+ category: started
3640
+ goal: Build the enhanced version in the component's source with the real components, on a branch of the project's repo, with its story updated, and capture the story before and after. Nothing reaches main here. Record the branch and its full head sha on the session.
3641
+ criteria:
3642
+ - key: implement-matches-design
3643
+ statement: The change builds the enhanced version and nothing else, with no invented component and no hard-coded colour, and its before/after captures are on the session.
3644
+ check: { kind: judge }
3645
+ - key: gate
3646
+ name: Gate
3647
+ category: started
3648
+ goal: Run the smallest gate that answers on the full head sha (the component's tests and stories, typecheck of its package) and write the result; a red sends the run back to Implement.
3649
+ gate: { kind: check }
3650
+ onFail: { toStage: implement }
3651
+ expectedOutputs:
3652
+ - kind: document
3653
+ label: Gate summary (the full sha, each gate and its result)
3654
+ relationToSubject: none
3655
+ criteria:
3656
+ - key: gate-green-at-sha
3657
+ statement: Every gate in the summary ran on the full head sha and is green, with no INFRA result counted as green.
3658
+ check: { kind: judge }
3659
+ # THE one approval (founder D3): the fix is built, gated and shown.
3660
+ # Approving it releases land, publish and done. Today a human gate; the
3661
+ # one-approval mechanism later pins it to the commit (lane l5).
3662
+ - key: approve
3663
+ name: Approve
3664
+ category: started
3665
+ goal: "The card shows the before/after capture of the story, the diff summary and the green devbox run at the full head sha. Approving it releases land, publish and done; no later stage asks again. A change touching auth, keys, vault, billing or a migration, or publishing to anyone but this pod, files its own approval instead of riding this one."
3666
+ gate: { kind: human }
3667
+ onFail: { toStage: implement }
3668
+ expectedOutputs:
3669
+ - kind: commit
3670
+ key: approved-change
3671
+ label: Approved change (the commit at the full head sha)
3672
+ relationToSubject: none
3673
+ - key: land
3674
+ name: Land
3675
+ category: started
3676
+ goal: The approved sha reaches the project's main through its ship action (a gated commit, or the merge of its pull request once its checks are green), started by this run, never by an agent pushing main by hand. Record it as the outcome commit-<repo>-<sha8>. If the diff changed after the approval, stop and ask again.
3677
+ expectedOutputs:
3678
+ - kind: commit
3679
+ key: landed-commit
3680
+ label: Landed commit on main
3681
+ relationToSubject: none
3682
+ criteria:
3683
+ - key: land-main-has-approved
3684
+ statement: Main contains the approved change, and the landed diff is the one that was approved.
3685
+ check: { kind: judge }
3686
+ - key: publish
3687
+ name: Publish
3688
+ category: started
3689
+ goal: The landed change goes live (the project's publish that follows main; in app-bases the push to main publishes the catalog and SDK), Storybook is rebuilt and storybook.sync runs, so the component's record carries its new source-hash and screenshot.
3690
+ criteria:
3691
+ - key: publish-record-current
3692
+ statement: After the sync, the component's source-hash is the one of the landed sha and its screenshot shows the change.
3693
+ check: { kind: judge }
3694
+ - key: done
3695
+ name: Done
3696
+ category: completed
3697
+ goal: Mark the component reviewed (update_entity) by writing reviewed-hash = its current source-hash and review-state fresh.
3698
+ criteria:
3699
+ - key: done-reviewed-hash
3700
+ statement: The component's reviewed-hash equals its source-hash and its review-state is fresh.
3701
+ check: { kind: judge }
3702
+
3703
+ # DESIGN A USER FLOW: the pod's process (playbook 7f4f31e7, v2) made
3704
+ # official and bound to its subject, the user flow it designs (founder D1).
3705
+ # Its stages move the flow: draft while it is framed and drawn, designed once
3706
+ # the person chooses a variant. `built` is reached when "Design to
3707
+ # implementation" lands the chosen design; `live` and `retired` are a
3708
+ # person's call (humanOnly on the lifecycle).
3709
+ - name: Design a user flow (UX, from need to buildable design)
3710
+ description: "Turn a wanted user flow into a researched, compared, challenged and validated UX, one step at a time, each step with its skill and one output on the pod. Ends by handing the chosen design to \"Design to implementation\". Reusable for any surface or page."
3711
+ goalTemplate: >-
3712
+ Design the user flow {flow} for {surface}, from the intent "{intent}".
3713
+ One step at a time, each step with its skill and one output filed on the
3714
+ pod (a document linked to this session); stop at each person's gate.
3715
+ References to look at: {references}. Move the flow only through its
3716
+ lifecycle (update_entity with expectedStatus): draft while it is framed
3717
+ and drawn, designed once the person chooses a variant; never invent a
3718
+ status. Record the pages the flow goes through as traverses links to
3719
+ their ui-page records when they exist.
3720
+ scope: session
3721
+ subjectProfile:
3722
+ profileSlug: user-flow
3723
+ activators:
3724
+ - { on: manual, mode: propose }
3725
+ params:
3726
+ - { name: flow, type: entity, label: User flow, required: true }
3727
+ - { name: intent, type: text, label: "What should this experience let a person do? (the job, in their words)", required: true }
3728
+ - { name: surface, type: text, label: "Surface(s) and existing page to start from (e.g. browser Work page, SessionRoomView)", required: true }
3729
+ - { name: references, type: text, label: Products or libraries to look at (optional) }
3730
+ executor: is-agent
3731
+ status: active
3732
+ stages:
3733
+ - key: frame
3734
+ name: 1. Frame
3735
+ category: planned
3736
+ subjectStatus: draft
3737
+ goal: "Load skills layers-orient, xp-triage, synap-context and the views skill (playbooks/design-a-user-flow/views). Pass the FULL session id on every write. Name which artifact each complaint is about (live code, a design board, a page) and the code baseline (repo, branch, sha). Read the existing page and what the pod knows (synap_ask; name entity ids). Name the weak layer. Output: framing brief (pod document, tables allowed) with the job, principle, starting page, surfaces with paths, existing reads, gaps and founder-only questions; then its view."
3738
+ expectedOutputs:
3739
+ - { kind: document, label: Framing brief, relationToSubject: relates_to }
3740
+ - { kind: view, label: Framing brief view, relationToSubject: none }
3741
+ - key: needs
3742
+ name: 2. Needs
3743
+ category: started
3744
+ goal: "Load skills layers-user-needs, layers-product-strategy, product-check (apply it against the company brief 05c14349 section 5 and the vision 8ca6767d, not PRODUCT.md). Use ONE lens for what needs the person: the pod-wide needs-you read, plus the goal's own read for a goal; state which. Rank jobs of each person from pod records; where no person was observed (no client yet) mark the row assumed and name the research to do. Output: ranked needs with ids, the riskiest assumption and its cheapest test; then its view."
3745
+ expectedOutputs:
3746
+ - { kind: document, label: Ranked needs with evidence, relationToSubject: relates_to }
3747
+ - { kind: view, label: Ranked needs view, relationToSubject: none }
3748
+ - key: compare
3749
+ name: 3. Search and compare
3750
+ category: started
3751
+ goal: "Can start with Frame (needs only the references param). Load research-decision-room, find-skills; WebSearch extended; agent-browser or headless Chrome for screenshots (the browser MCPs may not connect). Compare 5 to 8 products. Markdown document is the source; the HTML view is the decision-room page generated from it. Output: evidence ledger (source, confidence, unverified marked), comparison table, patterns, steal/avoid, licence and reuse, 5 ranked moves for the product."
3752
+ expectedOutputs:
3753
+ - { kind: document, label: Comparison table and evidence ledger, relationToSubject: relates_to }
3754
+ - { kind: view, label: Comparison view, relationToSubject: none }
3755
+ - key: pov
3756
+ name: 4. Point of view
3757
+ category: started
3758
+ goal: "Load layers-conceptual-model, layers-domain, ui-surface-design, lens-page. Use the vocabulary door words (Job, Request, Activity; read @synap-core/types/vocabulary); where it has no word (for example a branch), propose a default and name it so it can be overridden, never coin a label silently. Output: stance in 2 sentences, one definition per object, the questions the page answers, keep/change/cut for the existing page, what each surface shows, ranked first moves, what is rejected, and 3 to 5 decisions with a recommended default. The view IS the decision page: stance, then the choices as a card."
3759
+ gate: { kind: human }
3760
+ onFail: { toStage: needs }
3761
+ expectedOutputs:
3762
+ - { kind: document, label: Point of view, relationToSubject: relates_to }
3763
+ - { kind: view, label: Point of view decision page, relationToSubject: none }
3764
+ - kind: decision
3765
+ label: Point of view agreed
3766
+ relationToSubject: none
3767
+ ask:
3768
+ mode: choose
3769
+ stakes: commitment
3770
+ allowOther: true
3771
+ consequence: Steps 5 to 10 start from this point of view; a change sends the run back to Needs
3772
+ options:
3773
+ - { label: Agree with the defaults, recommended: true }
3774
+ - { label: Agree with changes }
3775
+ - { label: Send back to Needs }
3776
+ - key: flow
3777
+ name: 5. Flow and consolidation
3778
+ category: started
3779
+ goal: "Load layers-interaction-flow, ui-consolidation, layers-surface, diagram-design, artifact-diagramming. Map the first door, places, affordances, and the edge and failure paths (empty, loading, failed read, offline, many waiting, nothing waiting, answered elsewhere, expired). Fold map: every surface that shows work or approvals is keep, redirect (to what) or cut, with its path. Write the flow's entry, done-when and steps (each step a page and what the person does there) on the user flow. Output: flow document, fold map, and one view with ONE diagram (happy path bold, failures dashed)."
3780
+ expectedOutputs:
3781
+ - { kind: document, label: Flow and fold map, relationToSubject: relates_to }
3782
+ - { kind: view, label: Flow and fold map view, relationToSubject: none }
3783
+ - key: options
3784
+ name: 6. Design options
3785
+ category: started
3786
+ goal: "Load synap-design, impeccable, design-brief, dataviz, artifact-design. EVOLVE the existing page (name its file and the sections kept, changed, cut); never draw from scratch. 2 or 3 variants that differ by idea, on REAL data only, each screen in all states (full, empty, failed read with retry, many waiting capped with Show all, loading), light and dark, phone width. No screen has more than 7 things above the fold. Screenshot and look before publishing. Output: design-options document and the variants (Design canvas or one artifact)."
3787
+ expectedOutputs:
3788
+ - { kind: document, label: Design options, relationToSubject: relates_to }
3789
+ - { kind: view, label: Design options view, relationToSubject: none }
3790
+ - key: challenge
3791
+ name: 7. Challenge
3792
+ category: started
3793
+ goal: "Load parallel-review. Separate read-only reviewers (UX, slop, architecture) and agents code-reviewer, product-owner; give each the document and the artifact URL, not your conclusion. Must-fix sends the run back to options; justified keeps are named with why. Output: findings board (must-fix first)."
3794
+ gate: { kind: check }
3795
+ onFail: { toStage: options }
3796
+ expectedOutputs:
3797
+ - { kind: document, label: Challenge findings, relationToSubject: relates_to }
3798
+ - { kind: view, label: Challenge findings view, relationToSubject: none }
3799
+ - key: choose
3800
+ name: 8. Choose
3801
+ category: started
3802
+ goal: Show the variants side by side with the challenge findings and one recommended. The person picks one or sends it back with what to change. Record the decision with alternatives and rationale. Choosing a variant moves the flow to designed.
3803
+ gate: { kind: human }
3804
+ onFail: { toStage: options }
3805
+ onApproved: designed
3806
+ expectedOutputs:
3807
+ - kind: decision
3808
+ label: Chosen variant
3809
+ relationToSubject: none
3810
+ ask:
3811
+ mode: choose
3812
+ stakes: commitment
3813
+ allowOther: true
3814
+ consequence: The chosen variant goes to Design to implementation
3815
+ options:
3816
+ - { label: Variant A }
3817
+ - { label: Variant B }
3818
+ - { label: Send back }
3819
+ - key: validate
3820
+ name: 9. Validate
3821
+ category: started
3822
+ goal: "Load dogfood and agent-browser. Walk the chosen flow on real data through the doors a user enters by; WORKS, BROKEN or CANNOT-TELL with screenshots; BROKEN goes back to options. Output: verdict page."
3823
+ gate: { kind: check }
3824
+ onFail: { toStage: options }
3825
+ expectedOutputs:
3826
+ - { kind: document, label: Dogfood verdict, relationToSubject: relates_to }
3827
+ - { kind: view, label: Dogfood verdict view, relationToSubject: none }
3828
+ - key: handoff
3829
+ name: 10. Hand off and capture
3830
+ category: completed
3831
+ goal: "Launch playbook Design to implementation with the chosen design. Load engineering-memory: file the decision, what we learned, and what the process got wrong; update the views skill (playbooks/design-a-user-flow/views) run notes. Close open asks; the run ends here. The flow moves to built when Design to implementation lands the design, not here."
3832
+ expectedOutputs:
3833
+ - { kind: document, label: Learnings and process notes, relationToSubject: relates_to }
3834
+
3835
+ # The skills every AI working in Dev is told exist (installed by the
3836
+ # `require` dependencies above; this is the LINK, that is the INSTALL).
3837
+ skills:
3838
+ - slug: designing-with-real-components
3839
+ when: Designing, mocking up or implementing a screen or a component as a ui-design
3840
+ mode: on-demand
3841
+ - slug: design-critique
3842
+ when: Critiquing a ui-design, a built screen or a UI component (the review rubric)
3843
+ mode: on-demand
3844
+
3138
3845
  onboarding:
3139
3846
  goal: Capture the real engineering surface — the apps that are shipped, where their code lives, what runs behind them, where they deploy, and what's in flight — so the workspace mirrors what the team actually builds and runs, not a generic template.
3140
3847
  framing: >