@studio-foundation/engine 0.3.0-beta.1 → 0.3.0-beta.5
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/__tests__/engine.conditions-group.test.d.ts +2 -0
- package/dist/__tests__/engine.conditions-group.test.d.ts.map +1 -0
- package/dist/__tests__/engine.conditions-group.test.js +222 -0
- package/dist/__tests__/engine.conditions-group.test.js.map +1 -0
- package/dist/__tests__/engine.conditions.test.d.ts +2 -0
- package/dist/__tests__/engine.conditions.test.d.ts.map +1 -0
- package/dist/__tests__/engine.conditions.test.js +164 -0
- package/dist/__tests__/engine.conditions.test.js.map +1 -0
- package/dist/__tests__/engine.resume.test.d.ts +2 -0
- package/dist/__tests__/engine.resume.test.d.ts.map +1 -0
- package/dist/__tests__/engine.resume.test.js +93 -0
- package/dist/__tests__/engine.resume.test.js.map +1 -0
- package/dist/__tests__/engine.script-stage.test.d.ts +2 -0
- package/dist/__tests__/engine.script-stage.test.d.ts.map +1 -0
- package/dist/__tests__/engine.script-stage.test.js +108 -0
- package/dist/__tests__/engine.script-stage.test.js.map +1 -0
- package/dist/db/client.d.ts +3 -0
- package/dist/db/client.d.ts.map +1 -0
- package/{src/db/client.ts → dist/db/client.js} +1 -2
- package/dist/db/client.js.map +1 -0
- package/dist/engine.context-event.test.d.ts +2 -0
- package/dist/engine.context-event.test.d.ts.map +1 -0
- package/dist/engine.context-event.test.js +111 -0
- package/dist/engine.context-event.test.js.map +1 -0
- package/dist/engine.d.ts +52 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +364 -0
- package/dist/engine.js.map +1 -0
- package/dist/events.d.ts +163 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +12 -0
- package/dist/events.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +3 -45
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/pipeline/agent-loader.d.ts +4 -0
- package/dist/pipeline/agent-loader.d.ts.map +1 -0
- package/dist/pipeline/agent-loader.js +28 -0
- package/dist/pipeline/agent-loader.js.map +1 -0
- package/dist/pipeline/agent-loader.test.d.ts +2 -0
- package/dist/pipeline/agent-loader.test.d.ts.map +1 -0
- package/dist/pipeline/agent-loader.test.js +134 -0
- package/dist/pipeline/agent-loader.test.js.map +1 -0
- package/dist/pipeline/condition-evaluator.d.ts +6 -0
- package/dist/pipeline/condition-evaluator.d.ts.map +1 -0
- package/dist/pipeline/condition-evaluator.js +105 -0
- package/dist/pipeline/condition-evaluator.js.map +1 -0
- package/dist/pipeline/condition-evaluator.test.d.ts +2 -0
- package/dist/pipeline/condition-evaluator.test.d.ts.map +1 -0
- package/dist/pipeline/condition-evaluator.test.js +103 -0
- package/dist/pipeline/condition-evaluator.test.js.map +1 -0
- package/dist/pipeline/context-pack-loader.d.ts +3 -0
- package/dist/pipeline/context-pack-loader.d.ts.map +1 -0
- package/dist/pipeline/context-pack-loader.js +51 -0
- package/dist/pipeline/context-pack-loader.js.map +1 -0
- package/dist/pipeline/context-propagation.d.ts +28 -0
- package/dist/pipeline/context-propagation.d.ts.map +1 -0
- package/dist/pipeline/context-propagation.js +161 -0
- package/dist/pipeline/context-propagation.js.map +1 -0
- package/dist/pipeline/context-propagation.test.d.ts +2 -0
- package/dist/pipeline/context-propagation.test.d.ts.map +1 -0
- package/dist/pipeline/context-propagation.test.js +194 -0
- package/dist/pipeline/context-propagation.test.js.map +1 -0
- package/dist/pipeline/contract-loader.d.ts +4 -0
- package/dist/pipeline/contract-loader.d.ts.map +1 -0
- package/dist/pipeline/contract-loader.js +30 -0
- package/dist/pipeline/contract-loader.js.map +1 -0
- package/dist/pipeline/group-orchestrator.d.ts +19 -0
- package/dist/pipeline/group-orchestrator.d.ts.map +1 -0
- package/dist/pipeline/group-orchestrator.js +376 -0
- package/dist/pipeline/group-orchestrator.js.map +1 -0
- package/dist/pipeline/hook-executor.d.ts +28 -0
- package/dist/pipeline/hook-executor.d.ts.map +1 -0
- package/dist/pipeline/hook-executor.js +63 -0
- package/dist/pipeline/hook-executor.js.map +1 -0
- package/dist/pipeline/hook-executor.test.d.ts +2 -0
- package/dist/pipeline/hook-executor.test.d.ts.map +1 -0
- package/dist/pipeline/hook-executor.test.js +71 -0
- package/dist/pipeline/hook-executor.test.js.map +1 -0
- package/dist/pipeline/invariants-loader.d.ts +6 -0
- package/dist/pipeline/invariants-loader.d.ts.map +1 -0
- package/dist/pipeline/invariants-loader.js +15 -0
- package/dist/pipeline/invariants-loader.js.map +1 -0
- package/dist/pipeline/invariants-loader.test.d.ts +2 -0
- package/dist/pipeline/invariants-loader.test.d.ts.map +1 -0
- package/dist/pipeline/invariants-loader.test.js +39 -0
- package/dist/pipeline/invariants-loader.test.js.map +1 -0
- package/dist/pipeline/loader.d.ts +5 -0
- package/dist/pipeline/loader.d.ts.map +1 -0
- package/dist/pipeline/loader.js +132 -0
- package/dist/pipeline/loader.js.map +1 -0
- package/dist/pipeline/loader.test.d.ts +2 -0
- package/dist/pipeline/loader.test.d.ts.map +1 -0
- package/dist/pipeline/loader.test.js +120 -0
- package/dist/pipeline/loader.test.js.map +1 -0
- package/dist/pipeline/output-validator.d.ts +10 -0
- package/dist/pipeline/output-validator.d.ts.map +1 -0
- package/dist/pipeline/output-validator.js +20 -0
- package/dist/pipeline/output-validator.js.map +1 -0
- package/dist/pipeline/output-validator.test.d.ts +2 -0
- package/dist/pipeline/output-validator.test.d.ts.map +1 -0
- package/dist/pipeline/output-validator.test.js +77 -0
- package/dist/pipeline/output-validator.test.js.map +1 -0
- package/dist/pipeline/post-validator.d.ts +8 -0
- package/dist/pipeline/post-validator.d.ts.map +1 -0
- package/dist/pipeline/post-validator.js +103 -0
- package/dist/pipeline/post-validator.js.map +1 -0
- package/dist/pipeline/skill-loader.d.ts +10 -0
- package/dist/pipeline/skill-loader.d.ts.map +1 -0
- package/dist/pipeline/skill-loader.js +26 -0
- package/dist/pipeline/skill-loader.js.map +1 -0
- package/dist/pipeline/skill-loader.test.d.ts +2 -0
- package/dist/pipeline/skill-loader.test.d.ts.map +1 -0
- package/dist/pipeline/skill-loader.test.js +38 -0
- package/dist/pipeline/skill-loader.test.js.map +1 -0
- package/dist/pipeline/stage-executor.d.ts +26 -0
- package/dist/pipeline/stage-executor.d.ts.map +1 -0
- package/dist/pipeline/stage-executor.js +540 -0
- package/dist/pipeline/stage-executor.js.map +1 -0
- package/dist/pipeline/stage-resolver.d.ts +3 -0
- package/dist/pipeline/stage-resolver.d.ts.map +1 -0
- package/dist/pipeline/stage-resolver.js +6 -0
- package/dist/pipeline/stage-resolver.js.map +1 -0
- package/dist/pipeline/startup-executor.d.ts +3 -0
- package/dist/pipeline/startup-executor.d.ts.map +1 -0
- package/dist/pipeline/startup-executor.js +23 -0
- package/dist/pipeline/startup-executor.js.map +1 -0
- package/dist/pipeline/startup-executor.test.d.ts +2 -0
- package/dist/pipeline/startup-executor.test.d.ts.map +1 -0
- package/dist/pipeline/startup-executor.test.js +34 -0
- package/dist/pipeline/startup-executor.test.js.map +1 -0
- package/dist/pipeline/types.d.ts +28 -0
- package/dist/pipeline/types.d.ts.map +1 -0
- package/dist/pipeline/types.js +12 -0
- package/dist/pipeline/types.js.map +1 -0
- package/dist/repo-resolver.d.ts +10 -0
- package/dist/repo-resolver.d.ts.map +1 -0
- package/dist/repo-resolver.js +39 -0
- package/dist/repo-resolver.js.map +1 -0
- package/dist/spawners/direct-engine-spawner.d.ts +8 -0
- package/dist/spawners/direct-engine-spawner.d.ts.map +1 -0
- package/dist/spawners/direct-engine-spawner.js +24 -0
- package/dist/spawners/direct-engine-spawner.js.map +1 -0
- package/dist/state/run-store.d.ts +74 -0
- package/dist/state/run-store.d.ts.map +1 -0
- package/dist/state/run-store.js +269 -0
- package/dist/state/run-store.js.map +1 -0
- package/dist/state/run-store.test.d.ts +2 -0
- package/dist/state/run-store.test.d.ts.map +1 -0
- package/dist/state/run-store.test.js +130 -0
- package/dist/state/run-store.test.js.map +1 -0
- package/dist/state/state-machine.d.ts +6 -0
- package/dist/state/state-machine.d.ts.map +1 -0
- package/dist/state/state-machine.js +27 -0
- package/dist/state/state-machine.js.map +1 -0
- package/dist/state/status-derivation.d.ts +12 -0
- package/dist/state/status-derivation.d.ts.map +1 -0
- package/dist/state/status-derivation.js +30 -0
- package/dist/state/status-derivation.js.map +1 -0
- package/package.json +7 -4
- package/ARCHITECTURE.md +0 -57
- package/src/__tests__/__fixtures__/script-stage/contracts/book-context.contract.yaml +0 -4
- package/src/__tests__/engine.conditions-group.test.ts +0 -244
- package/src/__tests__/engine.conditions.test.ts +0 -186
- package/src/__tests__/engine.resume.test.ts +0 -108
- package/src/__tests__/engine.script-stage.test.ts +0 -125
- package/src/engine.context-event.test.ts +0 -175
- package/src/engine.ts +0 -491
- package/src/events.ts +0 -167
- package/src/pipeline/agent-loader.test.ts +0 -151
- package/src/pipeline/agent-loader.ts +0 -39
- package/src/pipeline/condition-evaluator.test.ts +0 -129
- package/src/pipeline/condition-evaluator.ts +0 -121
- package/src/pipeline/context-pack-loader.ts +0 -63
- package/src/pipeline/context-propagation.test.ts +0 -237
- package/src/pipeline/context-propagation.ts +0 -235
- package/src/pipeline/contract-loader.ts +0 -41
- package/src/pipeline/group-orchestrator.ts +0 -483
- package/src/pipeline/hook-executor.test.ts +0 -121
- package/src/pipeline/hook-executor.ts +0 -87
- package/src/pipeline/invariants-loader.test.ts +0 -51
- package/src/pipeline/invariants-loader.ts +0 -14
- package/src/pipeline/loader.test.ts +0 -128
- package/src/pipeline/loader.ts +0 -149
- package/src/pipeline/output-validator.test.ts +0 -100
- package/src/pipeline/output-validator.ts +0 -40
- package/src/pipeline/post-validator.ts +0 -124
- package/src/pipeline/skill-loader.test.ts +0 -44
- package/src/pipeline/skill-loader.ts +0 -32
- package/src/pipeline/stage-executor.ts +0 -654
- package/src/pipeline/stage-resolver.ts +0 -8
- package/src/pipeline/startup-executor.test.ts +0 -37
- package/src/pipeline/startup-executor.ts +0 -32
- package/src/pipeline/types.ts +0 -42
- package/src/repo-resolver.ts +0 -61
- package/src/spawners/direct-engine-spawner.ts +0 -26
- package/src/state/run-store.test.ts +0 -157
- package/src/state/run-store.ts +0 -362
- package/src/state/state-machine.ts +0 -35
- package/src/state/status-derivation.ts +0 -36
- package/tests/context-pack-loader.test.ts +0 -113
- package/tests/context-propagation.test.ts +0 -267
- package/tests/direct-engine-spawner.test.ts +0 -102
- package/tests/e2e/feature-v5.test.ts +0 -57
- package/tests/events.test.ts +0 -56
- package/tests/fixtures/agents/test-agent.agent.yaml +0 -5
- package/tests/fixtures/contracts/code-gen.contract.yaml +0 -6
- package/tests/fixtures/contracts/qa-gate.contract.yaml +0 -15
- package/tests/fixtures/contracts/test-contract.contract.yaml +0 -6
- package/tests/fixtures/pipelines/group-test.pipeline.yaml +0 -40
- package/tests/fixtures/pipelines/simple.pipeline.yaml +0 -15
- package/tests/fixtures/pipelines/two-stage.pipeline.yaml +0 -24
- package/tests/fixtures/software/pipelines/feature-builder.pipeline.yaml +0 -75
- package/tests/fixtures/test-project/agents/test-agent.agent.yaml +0 -5
- package/tests/fixtures/test-project/contracts/basic-result.contract.yaml +0 -6
- package/tests/fixtures/test-project/contracts/code-gen.contract.yaml +0 -6
- package/tests/fixtures/test-project/contracts/maximum-only.contract.yaml +0 -8
- package/tests/fixtures/test-project/contracts/qa-gate.contract.yaml +0 -15
- package/tests/fixtures/test-project/contracts/strict-result.contract.yaml +0 -7
- package/tests/fixtures/test-project/contracts/test-contract.contract.yaml +0 -6
- package/tests/fixtures/test-project/pipelines/group-simple.pipeline.yaml +0 -26
- package/tests/fixtures/test-project/pipelines/group-test.pipeline.yaml +0 -40
- package/tests/fixtures/test-project/pipelines/hook-output-template.pipeline.yaml +0 -19
- package/tests/fixtures/test-project/pipelines/hook-reject-on-failure.pipeline.yaml +0 -19
- package/tests/fixtures/test-project/pipelines/maximum-only.pipeline.yaml +0 -15
- package/tests/fixtures/test-project/pipelines/parallel-collect-all-test.pipeline.yaml +0 -39
- package/tests/fixtures/test-project/pipelines/parallel-context-isolation-test.pipeline.yaml +0 -38
- package/tests/fixtures/test-project/pipelines/parallel-fail-test.pipeline.yaml +0 -39
- package/tests/fixtures/test-project/pipelines/parallel-test.pipeline.yaml +0 -39
- package/tests/fixtures/test-project/pipelines/parallel-then-sequential-test.pipeline.yaml +0 -38
- package/tests/fixtures/test-project/pipelines/simple.pipeline.yaml +0 -15
- package/tests/fixtures/test-project/pipelines/two-stage.pipeline.yaml +0 -24
- package/tests/fixtures/test-project/pipelines/with-startup.pipeline.yaml +0 -19
- package/tests/loader.test.ts +0 -385
- package/tests/post-validator.test.ts +0 -297
- package/tests/repo-resolver.test.ts +0 -102
- package/tests/run-store.test.ts +0 -143
- package/tests/state-machine.test.ts +0 -110
- package/tests/unit/context-propagation.test.ts +0 -45
- package/tests/unit/engine.test.ts +0 -770
- package/tests/unit/group-loop.test.ts +0 -389
- package/tests/unit/group-parallel.test.ts +0 -423
- package/tests/unit/state/status-derivation.test.ts +0 -88
- package/tsconfig.json +0 -24
- package/vitest.config.ts +0 -14
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: group-simple
|
|
3
|
-
description: Pipeline with a simple group for cancellation testing
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- group: review-loop
|
|
7
|
-
max_iterations: 2
|
|
8
|
-
stages:
|
|
9
|
-
- name: review-stage-1
|
|
10
|
-
kind: analysis
|
|
11
|
-
agent: test-agent
|
|
12
|
-
ralph:
|
|
13
|
-
max_attempts: 1
|
|
14
|
-
retry_strategy: none
|
|
15
|
-
context:
|
|
16
|
-
include:
|
|
17
|
-
- input
|
|
18
|
-
- name: review-stage-2
|
|
19
|
-
kind: analysis
|
|
20
|
-
agent: test-agent
|
|
21
|
-
ralph:
|
|
22
|
-
max_attempts: 1
|
|
23
|
-
retry_strategy: none
|
|
24
|
-
context:
|
|
25
|
-
include:
|
|
26
|
-
- input
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: group-test
|
|
3
|
-
description: Test pipeline with a feedback loop group
|
|
4
|
-
version: 2
|
|
5
|
-
stages:
|
|
6
|
-
- name: analysis
|
|
7
|
-
kind: analysis
|
|
8
|
-
agent: test-agent
|
|
9
|
-
ralph:
|
|
10
|
-
max_attempts: 1
|
|
11
|
-
retry_strategy: none
|
|
12
|
-
context:
|
|
13
|
-
include:
|
|
14
|
-
- input
|
|
15
|
-
- group: impl-review
|
|
16
|
-
max_iterations: 3
|
|
17
|
-
stages:
|
|
18
|
-
- name: code-gen
|
|
19
|
-
kind: code_generation
|
|
20
|
-
agent: test-agent
|
|
21
|
-
contract: code-gen
|
|
22
|
-
ralph:
|
|
23
|
-
max_attempts: 1
|
|
24
|
-
retry_strategy: none
|
|
25
|
-
context:
|
|
26
|
-
include:
|
|
27
|
-
- input
|
|
28
|
-
- all_stage_outputs
|
|
29
|
-
- group_feedback
|
|
30
|
-
- name: qa-review
|
|
31
|
-
kind: qa
|
|
32
|
-
agent: test-agent
|
|
33
|
-
contract: qa-gate
|
|
34
|
-
ralph:
|
|
35
|
-
max_attempts: 1
|
|
36
|
-
retry_strategy: none
|
|
37
|
-
context:
|
|
38
|
-
include:
|
|
39
|
-
- input
|
|
40
|
-
- all_stage_outputs
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: hook-output-template
|
|
3
|
-
description: Pipeline that verifies on_stage_complete hook receives stage output as template context
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- name: analysis
|
|
7
|
-
kind: analysis
|
|
8
|
-
agent: test-agent
|
|
9
|
-
contract: test-contract
|
|
10
|
-
hooks:
|
|
11
|
-
on_stage_complete:
|
|
12
|
-
- command: "sh -c 'echo {{output.files_changed}} | grep -qx file.ts'"
|
|
13
|
-
on_failure: reject
|
|
14
|
-
ralph:
|
|
15
|
-
max_attempts: 1
|
|
16
|
-
retry_strategy: none
|
|
17
|
-
context:
|
|
18
|
-
include:
|
|
19
|
-
- input
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: hook-reject-on-failure
|
|
3
|
-
description: Pipeline where on_stage_complete hook fails and rejects the stage
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- name: analysis
|
|
7
|
-
kind: analysis
|
|
8
|
-
agent: test-agent
|
|
9
|
-
contract: test-contract
|
|
10
|
-
hooks:
|
|
11
|
-
on_stage_complete:
|
|
12
|
-
- command: "sh -c 'echo hook-error-output >&2; exit 1'"
|
|
13
|
-
on_failure: reject
|
|
14
|
-
ralph:
|
|
15
|
-
max_attempts: 1
|
|
16
|
-
retry_strategy: none
|
|
17
|
-
context:
|
|
18
|
-
include:
|
|
19
|
-
- input
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: maximum-only
|
|
3
|
-
description: Pipeline with a contract that only sets maximum tool_calls
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- name: analysis
|
|
7
|
-
kind: analysis
|
|
8
|
-
agent: test-agent
|
|
9
|
-
contract: maximum-only
|
|
10
|
-
ralph:
|
|
11
|
-
max_attempts: 1
|
|
12
|
-
retry_strategy: none
|
|
13
|
-
context:
|
|
14
|
-
include:
|
|
15
|
-
- input
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: parallel-collect-all-test
|
|
3
|
-
description: Test pipeline with collect-all parallel group
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- group: parallel-work
|
|
7
|
-
mode: parallel
|
|
8
|
-
on_failure: collect-all
|
|
9
|
-
stages:
|
|
10
|
-
- name: stage-a
|
|
11
|
-
kind: analysis
|
|
12
|
-
agent: test-agent
|
|
13
|
-
contract: basic-result
|
|
14
|
-
ralph:
|
|
15
|
-
max_attempts: 1
|
|
16
|
-
retry_strategy: none
|
|
17
|
-
context:
|
|
18
|
-
include:
|
|
19
|
-
- input
|
|
20
|
-
- name: stage-b
|
|
21
|
-
kind: analysis
|
|
22
|
-
agent: test-agent
|
|
23
|
-
contract: strict-result
|
|
24
|
-
ralph:
|
|
25
|
-
max_attempts: 1
|
|
26
|
-
retry_strategy: none
|
|
27
|
-
context:
|
|
28
|
-
include:
|
|
29
|
-
- input
|
|
30
|
-
- name: stage-c
|
|
31
|
-
kind: analysis
|
|
32
|
-
agent: test-agent
|
|
33
|
-
contract: basic-result
|
|
34
|
-
ralph:
|
|
35
|
-
max_attempts: 1
|
|
36
|
-
retry_strategy: none
|
|
37
|
-
context:
|
|
38
|
-
include:
|
|
39
|
-
- input
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: parallel-context-isolation-test
|
|
3
|
-
description: context isolation test
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- name: pre-stage
|
|
7
|
-
kind: analysis
|
|
8
|
-
agent: test-agent
|
|
9
|
-
contract: basic-result
|
|
10
|
-
ralph:
|
|
11
|
-
max_attempts: 1
|
|
12
|
-
retry_strategy: none
|
|
13
|
-
context:
|
|
14
|
-
include:
|
|
15
|
-
- input
|
|
16
|
-
- group: parallel-work
|
|
17
|
-
mode: parallel
|
|
18
|
-
stages:
|
|
19
|
-
- name: stage-a
|
|
20
|
-
kind: analysis
|
|
21
|
-
agent: test-agent
|
|
22
|
-
contract: basic-result
|
|
23
|
-
ralph:
|
|
24
|
-
max_attempts: 1
|
|
25
|
-
retry_strategy: none
|
|
26
|
-
context:
|
|
27
|
-
include:
|
|
28
|
-
- all_stage_outputs
|
|
29
|
-
- name: stage-b
|
|
30
|
-
kind: analysis
|
|
31
|
-
agent: test-agent
|
|
32
|
-
contract: basic-result
|
|
33
|
-
ralph:
|
|
34
|
-
max_attempts: 1
|
|
35
|
-
retry_strategy: none
|
|
36
|
-
context:
|
|
37
|
-
include:
|
|
38
|
-
- all_stage_outputs
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: parallel-fail-test
|
|
3
|
-
description: Test pipeline with a failing stage in parallel group
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- group: parallel-work
|
|
7
|
-
mode: parallel
|
|
8
|
-
on_failure: fail-fast
|
|
9
|
-
stages:
|
|
10
|
-
- name: stage-a
|
|
11
|
-
kind: analysis
|
|
12
|
-
agent: test-agent
|
|
13
|
-
contract: basic-result
|
|
14
|
-
ralph:
|
|
15
|
-
max_attempts: 1
|
|
16
|
-
retry_strategy: none
|
|
17
|
-
context:
|
|
18
|
-
include:
|
|
19
|
-
- input
|
|
20
|
-
- name: stage-b
|
|
21
|
-
kind: analysis
|
|
22
|
-
agent: test-agent
|
|
23
|
-
contract: strict-result
|
|
24
|
-
ralph:
|
|
25
|
-
max_attempts: 1
|
|
26
|
-
retry_strategy: none
|
|
27
|
-
context:
|
|
28
|
-
include:
|
|
29
|
-
- input
|
|
30
|
-
- name: stage-c
|
|
31
|
-
kind: analysis
|
|
32
|
-
agent: test-agent
|
|
33
|
-
contract: basic-result
|
|
34
|
-
ralph:
|
|
35
|
-
max_attempts: 1
|
|
36
|
-
retry_strategy: none
|
|
37
|
-
context:
|
|
38
|
-
include:
|
|
39
|
-
- input
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: parallel-test
|
|
3
|
-
description: Test pipeline with parallel group
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- group: parallel-work
|
|
7
|
-
mode: parallel
|
|
8
|
-
max_iterations: 1
|
|
9
|
-
stages:
|
|
10
|
-
- name: stage-a
|
|
11
|
-
kind: analysis
|
|
12
|
-
agent: test-agent
|
|
13
|
-
contract: basic-result
|
|
14
|
-
ralph:
|
|
15
|
-
max_attempts: 1
|
|
16
|
-
retry_strategy: none
|
|
17
|
-
context:
|
|
18
|
-
include:
|
|
19
|
-
- input
|
|
20
|
-
- name: stage-b
|
|
21
|
-
kind: analysis
|
|
22
|
-
agent: test-agent
|
|
23
|
-
contract: basic-result
|
|
24
|
-
ralph:
|
|
25
|
-
max_attempts: 1
|
|
26
|
-
retry_strategy: none
|
|
27
|
-
context:
|
|
28
|
-
include:
|
|
29
|
-
- input
|
|
30
|
-
- name: stage-c
|
|
31
|
-
kind: analysis
|
|
32
|
-
agent: test-agent
|
|
33
|
-
contract: basic-result
|
|
34
|
-
ralph:
|
|
35
|
-
max_attempts: 1
|
|
36
|
-
retry_strategy: none
|
|
37
|
-
context:
|
|
38
|
-
include:
|
|
39
|
-
- input
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: parallel-then-sequential-test
|
|
3
|
-
description: Test pipeline with parallel group followed by sequential stage
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- group: parallel-work
|
|
7
|
-
mode: parallel
|
|
8
|
-
stages:
|
|
9
|
-
- name: stage-a
|
|
10
|
-
kind: analysis
|
|
11
|
-
agent: test-agent
|
|
12
|
-
contract: basic-result
|
|
13
|
-
ralph:
|
|
14
|
-
max_attempts: 1
|
|
15
|
-
retry_strategy: none
|
|
16
|
-
context:
|
|
17
|
-
include:
|
|
18
|
-
- input
|
|
19
|
-
- name: stage-b
|
|
20
|
-
kind: analysis
|
|
21
|
-
agent: test-agent
|
|
22
|
-
contract: basic-result
|
|
23
|
-
ralph:
|
|
24
|
-
max_attempts: 1
|
|
25
|
-
retry_strategy: none
|
|
26
|
-
context:
|
|
27
|
-
include:
|
|
28
|
-
- input
|
|
29
|
-
- name: merge-results
|
|
30
|
-
kind: merge
|
|
31
|
-
agent: test-agent
|
|
32
|
-
contract: basic-result
|
|
33
|
-
ralph:
|
|
34
|
-
max_attempts: 1
|
|
35
|
-
retry_strategy: none
|
|
36
|
-
context:
|
|
37
|
-
include:
|
|
38
|
-
- all_stage_outputs
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: two-stage
|
|
3
|
-
description: Two stage pipeline
|
|
4
|
-
version: 1
|
|
5
|
-
stages:
|
|
6
|
-
- name: stage-1
|
|
7
|
-
kind: analysis
|
|
8
|
-
agent: test-agent
|
|
9
|
-
ralph:
|
|
10
|
-
max_attempts: 1
|
|
11
|
-
retry_strategy: none
|
|
12
|
-
context:
|
|
13
|
-
include:
|
|
14
|
-
- input
|
|
15
|
-
- name: stage-2
|
|
16
|
-
kind: planning
|
|
17
|
-
agent: test-agent
|
|
18
|
-
ralph:
|
|
19
|
-
max_attempts: 1
|
|
20
|
-
retry_strategy: none
|
|
21
|
-
context:
|
|
22
|
-
include:
|
|
23
|
-
- input
|
|
24
|
-
- previous_stage_output
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: with-startup
|
|
3
|
-
description: Pipeline that exercises on_pipeline_start context injection
|
|
4
|
-
version: 1
|
|
5
|
-
on_pipeline_start:
|
|
6
|
-
- command: "echo git-status-output"
|
|
7
|
-
inject_as: git_status
|
|
8
|
-
stages:
|
|
9
|
-
- name: analysis
|
|
10
|
-
kind: analysis
|
|
11
|
-
agent: test-agent
|
|
12
|
-
contract: test-contract
|
|
13
|
-
ralph:
|
|
14
|
-
max_attempts: 1
|
|
15
|
-
retry_strategy: none
|
|
16
|
-
context:
|
|
17
|
-
include:
|
|
18
|
-
- input
|
|
19
|
-
- pipeline_start_context
|