You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Builds the "## Validation" section handed to every swarm teammate. The
5
+
* default posture is end-to-end validation against real integrations: a worker
6
+
* may not declare a task done on the strength of a mocked path. Mocks/stubs are
7
+
* an explicit per-task opt-out (`SwarmTask.mocksAllowed`), not the baseline.
8
+
*
9
+
* This mirrors the orchestrator discipline that high-end coding agents apply at
10
+
* the mission level, pushed down to the per-worker delegation prompt so the
11
+
* default holds even for a single delegated task.
12
+
*/
13
+
14
+
constREAL_INTEGRATION_DIRECTIVE=
15
+
"Validate end-to-end against real integrations. The default is that every change is exercised through its real execution path — real services, real data, real auth — before you finish. Do not introduce mocks or stubs to make a check pass. Add or update focused tests when behavior changes, and run the relevant verification (build, lint, the touched tests, and the real end-to-end path) before reporting completion. If an integration genuinely cannot be exercised in this environment, stop and report it as a blocker rather than claiming success — never report that something works on the strength of a mocked path alone.";
16
+
17
+
constMOCKS_ALLOWED_DIRECTIVE=
18
+
"This task is explicitly approved to use mocks or stubs where a real integration is unavailable. Prefer the real execution path wherever it exists; where you fall back to a mock, say so explicitly and name exactly what was not exercised for real. Add or update focused tests when behavior changes, and run the relevant verification before reporting completion.";
19
+
20
+
/**
21
+
* Returns the validation directive for a swarm task.
22
+
*
23
+
* @param mocksAllowed When true, the task has explicitly opted out of the
24
+
* real-integration default and may use mocks/stubs for unavailable
0 commit comments