@synap-core/workspace-templates 0.43.0 → 0.45.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/dist/{define-CRNRmaqi.d.ts → define-BAPO0xZf.d.ts} +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1221 -59
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/src/builder-dev-executor-tier.template.test.ts +53 -0
- package/src/builder.yaml +89 -46
- package/src/content-os.piece-model.template.test.ts +322 -0
- package/src/content-os.template.test.ts +8 -7
- package/src/content-os.yaml +320 -9
- package/src/ecosystem.yaml +83 -2
- package/src/lifecycle-declarations.test.ts +4 -1
- package/src/templates.ts +559 -52
- package/src/types.ts +7 -0
package/dist/wire.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as PackageDefinitionOutput, X as WorkspaceDefinitionInput } from './define-
|
|
1
|
+
import { g as PackageDefinitionOutput, X as WorkspaceDefinitionInput } from './define-BAPO0xZf.js';
|
|
2
2
|
import '@synap-core/types/presentation';
|
|
3
3
|
import '@synap-core/types/space-brief';
|
|
4
4
|
import '@synap-core/types/capability-intents';
|
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two pins on the Builder dev playbooks (founder decisions, 12 Nov 2026):
|
|
3
|
+
*
|
|
4
|
+
* 1. Fix a bug, Fix main red and Fix a finding are NOT runnable by the pod's own
|
|
5
|
+
* AI: their work is edit, git and devbox on a computer, which an `is-agent`
|
|
6
|
+
* run cannot do. They carry `executor: external-agent`, the value the pod
|
|
7
|
+
* already treats as "runs only on an agent" (the run choice drops Synap AI
|
|
8
|
+
* and a run that names it is refused). They stay session templates a computer
|
|
9
|
+
* agent follows.
|
|
10
|
+
* 2. The shared land stages that touch main or ask for a deploy (the PR, the
|
|
11
|
+
* merge or push, the deploy approval) run at tier `standard`, never `quick`,
|
|
12
|
+
* in every playbook that repeats them. Waiting for green and the close-out
|
|
13
|
+
* stay `quick`.
|
|
14
|
+
*/
|
|
15
|
+
import { describe, expect, it } from "vitest";
|
|
16
|
+
import { getWorkspaceTemplate } from "./templates.js";
|
|
17
|
+
|
|
18
|
+
type Stage = { key: string; tier?: string };
|
|
19
|
+
type Playbook = { name: string; executor?: string; stages?: Stage[] };
|
|
20
|
+
|
|
21
|
+
const playbooks = (getWorkspaceTemplate("builder-workspace")?.playbooks ?? []) as Playbook[];
|
|
22
|
+
const find = (name: string) => playbooks.find((p) => p.name === name);
|
|
23
|
+
|
|
24
|
+
const CODE_PLAYBOOKS = ["Fix a bug", "Fix main red", "Fix a finding"] as const;
|
|
25
|
+
const CONSEQUENTIAL_LAND = ["pr-opened", "merge", "deploy"] as const;
|
|
26
|
+
const QUICK_LAND = ["checks", "verify"] as const;
|
|
27
|
+
|
|
28
|
+
describe("builder code playbooks are not pod-runnable", () => {
|
|
29
|
+
it.each(CODE_PLAYBOOKS)("%s runs only on an agent (external-agent), never on Synap AI", (name) => {
|
|
30
|
+
expect(find(name)?.executor).toBe("external-agent");
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
describe("builder shared land stages carry the right tier", () => {
|
|
35
|
+
// Derived: every playbook that has a `merge` stage repeats the land stages.
|
|
36
|
+
const landing = playbooks.filter((p) => p.stages?.some((s) => s.key === "merge" && s.tier !== undefined));
|
|
37
|
+
|
|
38
|
+
it("finds the playbooks that repeat the land stages", () => {
|
|
39
|
+
expect(landing.map((p) => p.name).sort()).toEqual(["Build a change", "Fix a bug", "Fix main red", "Maintain"]);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it.each(CONSEQUENTIAL_LAND)("stage %s (touches main or deploys) is standard in every landing playbook", (key) => {
|
|
43
|
+
for (const p of landing) {
|
|
44
|
+
expect(p.stages?.find((s) => s.key === key)?.tier, `${p.name} / ${key}`).toBe("standard");
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it.each(QUICK_LAND)("stage %s stays quick in every landing playbook", (key) => {
|
|
49
|
+
for (const p of landing) {
|
|
50
|
+
expect(p.stages?.find((s) => s.key === key)?.tier, `${p.name} / ${key}`).toBe("quick");
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
package/src/builder.yaml
CHANGED
|
@@ -1859,7 +1859,9 @@ playbooks:
|
|
|
1859
1859
|
description: Turn "let's build app X" into a researched, designed, reviewed and verified app, built from the Website Factory in slices. The person is asked only three times — the decisions, the design approval, and a first look after slice 1.
|
|
1860
1860
|
goalTemplate: >-
|
|
1861
1861
|
Build the app "{name}": {idea}. Path: {path}. Work it as the App
|
|
1862
|
-
Factory
|
|
1862
|
+
Factory: FIRST load pod skill reference/sdk-and-app-templates (the
|
|
1863
|
+
current SDK, the Website Factory pod-app template and what it can do),
|
|
1864
|
+
then each stage's skill with synap_load_skill. INTAKE: find
|
|
1863
1865
|
or create the app (resolve first; one devplane_app, never a twin), make
|
|
1864
1866
|
it this session's subject, and record the idea in the person's words.
|
|
1865
1867
|
RESEARCH (app-factory-research): name-collision check, a data contract
|
|
@@ -1916,7 +1918,7 @@ playbooks:
|
|
|
1916
1918
|
- key: intake
|
|
1917
1919
|
name: Intake
|
|
1918
1920
|
category: planned
|
|
1919
|
-
goal: Find or create the app (resolve first), make it the session's subject, and write the idea, the problem, the goal and the measure of success in the person's words.
|
|
1921
|
+
goal: 'FIRST: synap_load_skill("reference/sdk-and-app-templates") (current SDK and npm packages, the Website Factory pod-app template at origin/main and what its kit can do, what an app cannot import yet). Find or create the app (resolve first), make it the session''s subject, and write the idea, the problem, the goal and the measure of success in the person''s words.'
|
|
1920
1922
|
criteria:
|
|
1921
1923
|
- key: intake-subject-set
|
|
1922
1924
|
statement: The session's subject is the app (one devplane_app, found before created).
|
|
@@ -2281,7 +2283,8 @@ playbooks:
|
|
|
2281
2283
|
check:
|
|
2282
2284
|
kind: judge
|
|
2283
2285
|
statement: The feature's change type is set (feature, refactor or chore) and the repos it touches are named.
|
|
2284
|
-
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.
|
|
2286
|
+
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.'
|
|
2287
|
+
tier: deep
|
|
2285
2288
|
subjectStatus: spec
|
|
2286
2289
|
expectedOutputs:
|
|
2287
2290
|
- kind: document
|
|
@@ -2301,7 +2304,8 @@ playbooks:
|
|
|
2301
2304
|
check:
|
|
2302
2305
|
kind: judge
|
|
2303
2306
|
statement: Every new test was run with its fix reverted and failed.
|
|
2304
|
-
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.
|
|
2307
|
+
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.'
|
|
2308
|
+
tier: standard
|
|
2305
2309
|
subjectStatus: in_progress
|
|
2306
2310
|
expectedOutputs:
|
|
2307
2311
|
- kind: commit
|
|
@@ -2319,7 +2323,8 @@ playbooks:
|
|
|
2319
2323
|
check:
|
|
2320
2324
|
kind: judge
|
|
2321
2325
|
statement: A pull request body, when there is one, carries the line naming this Pod session.
|
|
2322
|
-
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.
|
|
2326
|
+
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.'
|
|
2327
|
+
tier: standard
|
|
2323
2328
|
subjectStatus: in_review
|
|
2324
2329
|
expectedOutputs:
|
|
2325
2330
|
- kind: pull_request
|
|
@@ -2340,7 +2345,8 @@ playbooks:
|
|
|
2340
2345
|
kind: evidence
|
|
2341
2346
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2342
2347
|
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).
|
|
2343
|
-
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.
|
|
2348
|
+
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.'
|
|
2349
|
+
tier: quick
|
|
2344
2350
|
- key: merge
|
|
2345
2351
|
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.'
|
|
2346
2352
|
name: Landed on main
|
|
@@ -2352,7 +2358,8 @@ playbooks:
|
|
|
2352
2358
|
kind: evidence
|
|
2353
2359
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2354
2360
|
statement: The change is on main and its outcome is marked complete.
|
|
2355
|
-
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).
|
|
2361
|
+
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).'
|
|
2362
|
+
tier: standard
|
|
2356
2363
|
- key: deploy
|
|
2357
2364
|
gate:
|
|
2358
2365
|
kind: human
|
|
@@ -2368,7 +2375,8 @@ playbooks:
|
|
|
2368
2375
|
kind: evidence
|
|
2369
2376
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2370
2377
|
statement: The lab runs a build that contains the merge commit.
|
|
2371
|
-
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.
|
|
2378
|
+
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.'
|
|
2379
|
+
tier: standard
|
|
2372
2380
|
- key: dogfood
|
|
2373
2381
|
gate:
|
|
2374
2382
|
kind: check
|
|
@@ -2383,7 +2391,8 @@ playbooks:
|
|
|
2383
2391
|
kind: evidence
|
|
2384
2392
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2385
2393
|
statement: The dogfood walk reports WORKS on every path the change touches.
|
|
2386
|
-
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.
|
|
2394
|
+
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.'
|
|
2395
|
+
tier: standard
|
|
2387
2396
|
expectedOutputs:
|
|
2388
2397
|
- kind: document
|
|
2389
2398
|
label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
|
|
@@ -2398,12 +2407,13 @@ playbooks:
|
|
|
2398
2407
|
check:
|
|
2399
2408
|
kind: judge
|
|
2400
2409
|
statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
|
|
2401
|
-
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.
|
|
2410
|
+
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.'
|
|
2411
|
+
tier: quick
|
|
2402
2412
|
subjectStatus: done
|
|
2403
2413
|
|
|
2404
2414
|
# --- Fix a bug ---
|
|
2405
2415
|
- name: Fix a bug
|
|
2406
|
-
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.'
|
|
2416
|
+
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).'
|
|
2407
2417
|
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.'
|
|
2408
2418
|
scope: session
|
|
2409
2419
|
subjectProfile:
|
|
@@ -2417,7 +2427,8 @@ playbooks:
|
|
|
2417
2427
|
type: boolean
|
|
2418
2428
|
label: Run without a person (night shift)?
|
|
2419
2429
|
default: false
|
|
2420
|
-
executor: is-agent
|
|
2430
|
+
# 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.
|
|
2431
|
+
executor: external-agent
|
|
2421
2432
|
status: draft
|
|
2422
2433
|
stages:
|
|
2423
2434
|
- key: reproduce
|
|
@@ -2429,7 +2440,8 @@ playbooks:
|
|
|
2429
2440
|
check:
|
|
2430
2441
|
kind: judge
|
|
2431
2442
|
statement: A test or exact reproduction shows the bug, and the root cause is named with file:line.
|
|
2432
|
-
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.
|
|
2443
|
+
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.'
|
|
2444
|
+
tier: standard
|
|
2433
2445
|
subjectStatus: investigating
|
|
2434
2446
|
suggestedTasks:
|
|
2435
2447
|
- recall known gotchas for the area
|
|
@@ -2451,7 +2463,8 @@ playbooks:
|
|
|
2451
2463
|
check:
|
|
2452
2464
|
kind: judge
|
|
2453
2465
|
statement: The reproduction test passes with the fix and fails with the fix reverted; the gate output is quoted in the room.
|
|
2454
|
-
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).
|
|
2466
|
+
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).'
|
|
2467
|
+
tier: standard
|
|
2455
2468
|
suggestedTasks:
|
|
2456
2469
|
- fix the root cause
|
|
2457
2470
|
- 'negative control: revert the fix, see the test fail'
|
|
@@ -2472,7 +2485,8 @@ playbooks:
|
|
|
2472
2485
|
check:
|
|
2473
2486
|
kind: judge
|
|
2474
2487
|
statement: The review lists no open must-fix finding.
|
|
2475
|
-
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.
|
|
2488
|
+
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.'
|
|
2489
|
+
tier: deep
|
|
2476
2490
|
suggestedTasks:
|
|
2477
2491
|
- start a review child session (not the author)
|
|
2478
2492
|
- author answers every finding
|
|
@@ -2493,7 +2507,8 @@ playbooks:
|
|
|
2493
2507
|
check:
|
|
2494
2508
|
kind: judge
|
|
2495
2509
|
statement: A pull request body, when there is one, carries the line naming this Pod session.
|
|
2496
|
-
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.
|
|
2510
|
+
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.'
|
|
2511
|
+
tier: standard
|
|
2497
2512
|
expectedOutputs:
|
|
2498
2513
|
- kind: pull_request
|
|
2499
2514
|
label: Draft pull request (outcome pr-<repo>-<number>, ref = its url); public repo only
|
|
@@ -2513,7 +2528,8 @@ playbooks:
|
|
|
2513
2528
|
kind: evidence
|
|
2514
2529
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2515
2530
|
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).
|
|
2516
|
-
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.
|
|
2531
|
+
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.'
|
|
2532
|
+
tier: quick
|
|
2517
2533
|
- key: merge
|
|
2518
2534
|
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.'
|
|
2519
2535
|
name: Landed on main
|
|
@@ -2525,7 +2541,8 @@ playbooks:
|
|
|
2525
2541
|
kind: evidence
|
|
2526
2542
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2527
2543
|
statement: The change is on main and its outcome is marked complete.
|
|
2528
|
-
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).
|
|
2544
|
+
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).'
|
|
2545
|
+
tier: standard
|
|
2529
2546
|
- key: deploy
|
|
2530
2547
|
gate:
|
|
2531
2548
|
kind: human
|
|
@@ -2541,7 +2558,8 @@ playbooks:
|
|
|
2541
2558
|
kind: evidence
|
|
2542
2559
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2543
2560
|
statement: The lab runs a build that contains the merge commit.
|
|
2544
|
-
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.
|
|
2561
|
+
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.'
|
|
2562
|
+
tier: standard
|
|
2545
2563
|
- key: dogfood
|
|
2546
2564
|
gate:
|
|
2547
2565
|
kind: check
|
|
@@ -2556,7 +2574,8 @@ playbooks:
|
|
|
2556
2574
|
kind: evidence
|
|
2557
2575
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2558
2576
|
statement: The dogfood walk reports WORKS on every path the change touches.
|
|
2559
|
-
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.
|
|
2577
|
+
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.'
|
|
2578
|
+
tier: standard
|
|
2560
2579
|
expectedOutputs:
|
|
2561
2580
|
- kind: document
|
|
2562
2581
|
label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
|
|
@@ -2571,7 +2590,8 @@ playbooks:
|
|
|
2571
2590
|
check:
|
|
2572
2591
|
kind: judge
|
|
2573
2592
|
statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
|
|
2574
|
-
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.
|
|
2593
|
+
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.'
|
|
2594
|
+
tier: quick
|
|
2575
2595
|
subjectStatus: fixed
|
|
2576
2596
|
|
|
2577
2597
|
# --- Investigate ---
|
|
@@ -2601,7 +2621,8 @@ playbooks:
|
|
|
2601
2621
|
check:
|
|
2602
2622
|
kind: judge
|
|
2603
2623
|
statement: The question is restated so it can be answered, and the evidence that would answer it is named.
|
|
2604
|
-
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.
|
|
2624
|
+
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.'
|
|
2625
|
+
tier: deep
|
|
2605
2626
|
- key: measure
|
|
2606
2627
|
goal: 'Gather the evidence: read the code at the installed version, measure on real data, and keep rejected sources with their reason.'
|
|
2607
2628
|
name: Measured
|
|
@@ -2611,7 +2632,8 @@ playbooks:
|
|
|
2611
2632
|
check:
|
|
2612
2633
|
kind: judge
|
|
2613
2634
|
statement: Every source or measure used is cited, and rejected ones are kept with their reason.
|
|
2614
|
-
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.
|
|
2635
|
+
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.'
|
|
2636
|
+
tier: deep
|
|
2615
2637
|
- key: conclude
|
|
2616
2638
|
gate:
|
|
2617
2639
|
kind: check
|
|
@@ -2625,7 +2647,8 @@ playbooks:
|
|
|
2625
2647
|
check:
|
|
2626
2648
|
kind: judge
|
|
2627
2649
|
statement: Every number in the document is labeled MEASURED, READ or ESTIMATED, and the recommendation follows from the evidence.
|
|
2628
|
-
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.
|
|
2650
|
+
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.'
|
|
2651
|
+
tier: deep
|
|
2629
2652
|
expectedOutputs:
|
|
2630
2653
|
- kind: document
|
|
2631
2654
|
label: Investigation (question, measured evidence, recommendation)
|
|
@@ -2659,7 +2682,8 @@ playbooks:
|
|
|
2659
2682
|
check:
|
|
2660
2683
|
kind: judge
|
|
2661
2684
|
statement: The whole change and the rules it touches were read; nothing was edited.
|
|
2662
|
-
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.
|
|
2685
|
+
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.'
|
|
2686
|
+
tier: deep
|
|
2663
2687
|
- key: verdict
|
|
2664
2688
|
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.
|
|
2665
2689
|
name: Verdict
|
|
@@ -2669,7 +2693,8 @@ playbooks:
|
|
|
2669
2693
|
check:
|
|
2670
2694
|
kind: judge
|
|
2671
2695
|
statement: Every finding is classed must-fix or justified-keep with its reason and file:line.
|
|
2672
|
-
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.
|
|
2696
|
+
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.'
|
|
2697
|
+
tier: deep
|
|
2673
2698
|
expectedOutputs:
|
|
2674
2699
|
- kind: document
|
|
2675
2700
|
label: Review (must-fix and justified-keep, with file:line)
|
|
@@ -2706,7 +2731,8 @@ playbooks:
|
|
|
2706
2731
|
check:
|
|
2707
2732
|
kind: judge
|
|
2708
2733
|
statement: The chore is done and its smallest gate is green and quoted, or the session says in one line why nothing changed.
|
|
2709
|
-
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.
|
|
2734
|
+
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.'
|
|
2735
|
+
tier: quick
|
|
2710
2736
|
expectedOutputs:
|
|
2711
2737
|
- kind: commit
|
|
2712
2738
|
label: Gated commit sha (none when nothing changed)
|
|
@@ -2724,7 +2750,8 @@ playbooks:
|
|
|
2724
2750
|
check:
|
|
2725
2751
|
kind: judge
|
|
2726
2752
|
statement: A pull request body, when there is one, carries the line naming this Pod session.
|
|
2727
|
-
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.
|
|
2753
|
+
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.'
|
|
2754
|
+
tier: standard
|
|
2728
2755
|
expectedOutputs:
|
|
2729
2756
|
- kind: pull_request
|
|
2730
2757
|
label: Draft pull request (outcome pr-<repo>-<number>, ref = its url); public repo only
|
|
@@ -2744,7 +2771,8 @@ playbooks:
|
|
|
2744
2771
|
kind: evidence
|
|
2745
2772
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2746
2773
|
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).
|
|
2747
|
-
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.
|
|
2774
|
+
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.'
|
|
2775
|
+
tier: quick
|
|
2748
2776
|
- key: merge
|
|
2749
2777
|
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.'
|
|
2750
2778
|
name: Landed on main
|
|
@@ -2756,7 +2784,8 @@ playbooks:
|
|
|
2756
2784
|
kind: evidence
|
|
2757
2785
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2758
2786
|
statement: The change is on main and its outcome is marked complete.
|
|
2759
|
-
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).
|
|
2787
|
+
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).'
|
|
2788
|
+
tier: standard
|
|
2760
2789
|
- key: deploy
|
|
2761
2790
|
gate:
|
|
2762
2791
|
kind: human
|
|
@@ -2772,7 +2801,8 @@ playbooks:
|
|
|
2772
2801
|
kind: evidence
|
|
2773
2802
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2774
2803
|
statement: The lab runs a build that contains the merge commit.
|
|
2775
|
-
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.
|
|
2804
|
+
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.'
|
|
2805
|
+
tier: standard
|
|
2776
2806
|
- key: dogfood
|
|
2777
2807
|
gate:
|
|
2778
2808
|
kind: check
|
|
@@ -2787,7 +2817,8 @@ playbooks:
|
|
|
2787
2817
|
kind: evidence
|
|
2788
2818
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2789
2819
|
statement: The dogfood walk reports WORKS on every path the change touches.
|
|
2790
|
-
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.
|
|
2820
|
+
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.'
|
|
2821
|
+
tier: standard
|
|
2791
2822
|
expectedOutputs:
|
|
2792
2823
|
- kind: document
|
|
2793
2824
|
label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
|
|
@@ -2802,11 +2833,12 @@ playbooks:
|
|
|
2802
2833
|
check:
|
|
2803
2834
|
kind: judge
|
|
2804
2835
|
statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
|
|
2805
|
-
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.
|
|
2836
|
+
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.'
|
|
2837
|
+
tier: quick
|
|
2806
2838
|
|
|
2807
2839
|
# --- Fix main red ---
|
|
2808
2840
|
- name: Fix main red
|
|
2809
|
-
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.'
|
|
2841
|
+
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).'
|
|
2810
2842
|
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.'
|
|
2811
2843
|
scope: session
|
|
2812
2844
|
params:
|
|
@@ -2822,7 +2854,8 @@ playbooks:
|
|
|
2822
2854
|
type: text
|
|
2823
2855
|
label: First 8 characters of the red main commit
|
|
2824
2856
|
required: true
|
|
2825
|
-
executor: is-agent
|
|
2857
|
+
# 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.
|
|
2858
|
+
executor: external-agent
|
|
2826
2859
|
status: draft
|
|
2827
2860
|
stages:
|
|
2828
2861
|
- key: claim
|
|
@@ -2834,7 +2867,8 @@ playbooks:
|
|
|
2834
2867
|
check:
|
|
2835
2868
|
kind: judge
|
|
2836
2869
|
statement: No older owner exists for this red, and the claim is posted in the wave's room.
|
|
2837
|
-
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.
|
|
2870
|
+
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.'
|
|
2871
|
+
tier: quick
|
|
2838
2872
|
- key: read-step
|
|
2839
2873
|
goal: Read the failing step (gh run view <run> --log-failed) and recall what the pod knows (synap_ask "<check name> red").
|
|
2840
2874
|
name: Failing step read
|
|
@@ -2844,7 +2878,8 @@ playbooks:
|
|
|
2844
2878
|
check:
|
|
2845
2879
|
kind: judge
|
|
2846
2880
|
statement: The failing step is quoted and the commit that caused it is named.
|
|
2847
|
-
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.
|
|
2881
|
+
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.'
|
|
2882
|
+
tier: standard
|
|
2848
2883
|
- key: fix
|
|
2849
2884
|
gate:
|
|
2850
2885
|
kind: check
|
|
@@ -2858,7 +2893,8 @@ playbooks:
|
|
|
2858
2893
|
check:
|
|
2859
2894
|
kind: judge
|
|
2860
2895
|
statement: The red check passes on the fix branch, with the gate output quoted.
|
|
2861
|
-
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.
|
|
2896
|
+
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.'
|
|
2897
|
+
tier: standard
|
|
2862
2898
|
expectedOutputs:
|
|
2863
2899
|
- kind: commit
|
|
2864
2900
|
label: Gated fix commit sha on fix/main-red-<sha8>
|
|
@@ -2875,7 +2911,8 @@ playbooks:
|
|
|
2875
2911
|
check:
|
|
2876
2912
|
kind: judge
|
|
2877
2913
|
statement: A pull request body, when there is one, carries the line naming this Pod session.
|
|
2878
|
-
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.
|
|
2914
|
+
description: 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then record the 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.'
|
|
2915
|
+
tier: standard
|
|
2879
2916
|
expectedOutputs:
|
|
2880
2917
|
- kind: pull_request
|
|
2881
2918
|
label: Draft pull request (outcome pr-<repo>-<number>, ref = its url); public repo only
|
|
@@ -2895,7 +2932,8 @@ playbooks:
|
|
|
2895
2932
|
kind: evidence
|
|
2896
2933
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2897
2934
|
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).
|
|
2898
|
-
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.
|
|
2935
|
+
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.'
|
|
2936
|
+
tier: quick
|
|
2899
2937
|
- key: merge
|
|
2900
2938
|
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.'
|
|
2901
2939
|
name: Landed on main
|
|
@@ -2907,7 +2945,8 @@ playbooks:
|
|
|
2907
2945
|
kind: evidence
|
|
2908
2946
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2909
2947
|
statement: The change is on main and its outcome is marked complete.
|
|
2910
|
-
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).
|
|
2948
|
+
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).'
|
|
2949
|
+
tier: standard
|
|
2911
2950
|
- key: deploy
|
|
2912
2951
|
gate:
|
|
2913
2952
|
kind: human
|
|
@@ -2923,7 +2962,8 @@ playbooks:
|
|
|
2923
2962
|
kind: evidence
|
|
2924
2963
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2925
2964
|
statement: The lab runs a build that contains the merge commit.
|
|
2926
|
-
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.
|
|
2965
|
+
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.'
|
|
2966
|
+
tier: standard
|
|
2927
2967
|
- key: dogfood
|
|
2928
2968
|
gate:
|
|
2929
2969
|
kind: check
|
|
@@ -2938,7 +2978,8 @@ playbooks:
|
|
|
2938
2978
|
kind: evidence
|
|
2939
2979
|
evidenceKey: '[CREDENTIAL REDACTED: Secret assignment]'
|
|
2940
2980
|
statement: The dogfood walk reports WORKS on every path the change touches.
|
|
2941
|
-
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.
|
|
2981
|
+
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.'
|
|
2982
|
+
tier: standard
|
|
2942
2983
|
expectedOutputs:
|
|
2943
2984
|
- kind: document
|
|
2944
2985
|
label: Dogfood report (each path WORKS, BROKEN or CANNOT-TELL, with what was seen)
|
|
@@ -2952,7 +2993,8 @@ playbooks:
|
|
|
2952
2993
|
check:
|
|
2953
2994
|
kind: judge
|
|
2954
2995
|
statement: Every criterion of the session is graded with its evidence, and nothing unverified is reported as verified.
|
|
2955
|
-
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.
|
|
2996
|
+
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.'
|
|
2997
|
+
tier: quick
|
|
2956
2998
|
|
|
2957
2999
|
# Founder's pod playbook 18abd1ea, as it runs since 6 Nov 2026: no onEnd
|
|
2958
3000
|
# (decision f06dc507: a cancelled or failed session leaves its finding where it
|
|
@@ -2961,13 +3003,14 @@ playbooks:
|
|
|
2961
3003
|
# verified) are not shipped: their session_update step scopes on
|
|
2962
3004
|
# `whenPlaybookId`, a pod uuid, and there is no catalog-stable reference yet.
|
|
2963
3005
|
- name: Fix a finding
|
|
2964
|
-
description: "Work one finding (a problem with Synap itself) until its fix is live. The session's stages move the finding: fixing while the work runs, fixed when the fix is merged, verified once it runs on the pod. A cancelled or failed session leaves the finding where it is."
|
|
3006
|
+
description: "Work one finding (a problem with Synap itself) until its fix is live. The session's stages move the finding: fixing while the work runs, fixed when the fix is merged, verified once it runs on the pod. A cancelled or failed session leaves the finding where it is. Run by one of your agents on a computer, never by Synap AI (its work is edit, git and devbox)."
|
|
2965
3007
|
goalTemplate: Fix the finding and see the fix live
|
|
2966
3008
|
scope: session
|
|
2967
3009
|
subjectProfile:
|
|
2968
3010
|
profileSlug: finding
|
|
2969
3011
|
params: []
|
|
2970
|
-
executor: is-agent
|
|
3012
|
+
# 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.
|
|
3013
|
+
executor: external-agent
|
|
2971
3014
|
status: active
|
|
2972
3015
|
stages:
|
|
2973
3016
|
- key: fix
|