agent-contracts-runtime 0.31.4 → 0.32.1
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/README.md +77 -96
- package/cli-contract.yaml +411 -22
- package/dist/{chunk-IAIG5VCJ.js → chunk-W5YWUFAH.js} +7 -3
- package/dist/chunk-W5YWUFAH.js.map +1 -0
- package/dist/cli/index.js +1011 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/generator/index.js +1 -1
- package/docs/cli-reference.md +1370 -216
- package/dsl/agent-runtime.config.yaml +2 -0
- package/dsl/agents/implementation-auditor.yaml +195 -0
- package/dsl/agents/llm-feature-implementer.yaml +298 -0
- package/dsl/handoff-types.yaml +184 -0
- package/dsl/implement-dsl.yaml +119 -0
- package/dsl/tasks.yaml +635 -0
- package/package.json +3 -1
- package/templates/implement-reference-templates.md +823 -0
- package/templates/implement-reference.md +240 -0
- package/templates/workflows.ts.hbs +2 -2
- package/dist/chunk-IAIG5VCJ.js.map +0 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
|
|
3
|
+
system:
|
|
4
|
+
id: agent-runtime-builtin
|
|
5
|
+
name: "agent-runtime Built-in Agents"
|
|
6
|
+
default_workflow_order:
|
|
7
|
+
- implement-llm-feature
|
|
8
|
+
- audit-implementation
|
|
9
|
+
|
|
10
|
+
agents: { $ref: "./agents/" }
|
|
11
|
+
tasks: { $ref: "./tasks.yaml" }
|
|
12
|
+
handoff_types: { $ref: "./handoff-types.yaml" }
|
|
13
|
+
|
|
14
|
+
guardrails:
|
|
15
|
+
output-schema-conformance:
|
|
16
|
+
description: >-
|
|
17
|
+
Ensure all agent outputs conform to their respective handoff
|
|
18
|
+
schemas. Validation is performed at runtime via Zod.
|
|
19
|
+
scope:
|
|
20
|
+
agents:
|
|
21
|
+
- llm-feature-implementer
|
|
22
|
+
- implementation-auditor
|
|
23
|
+
tasks:
|
|
24
|
+
- implement-llm-feature
|
|
25
|
+
- audit-dsl
|
|
26
|
+
- audit-runtime
|
|
27
|
+
- audit-cli-contract
|
|
28
|
+
- audit-architecture
|
|
29
|
+
- audit-merge
|
|
30
|
+
rationale: >-
|
|
31
|
+
Structured output conformance is critical for CLI parsing
|
|
32
|
+
and downstream tooling integration.
|
|
33
|
+
|
|
34
|
+
no-direct-api-call:
|
|
35
|
+
description: >-
|
|
36
|
+
The implementer agent must not generate code that calls LLM APIs
|
|
37
|
+
directly. All LLM invocations must go through agent-contracts-runtime
|
|
38
|
+
runTask / runWorkflow.
|
|
39
|
+
scope:
|
|
40
|
+
agents:
|
|
41
|
+
- llm-feature-implementer
|
|
42
|
+
rationale: >-
|
|
43
|
+
Preserves SDK adapter abstraction, enabling adapter swap,
|
|
44
|
+
plugin hooks, and guardrail enforcement.
|
|
45
|
+
|
|
46
|
+
audit-read-only:
|
|
47
|
+
description: >-
|
|
48
|
+
The auditor agent must not create, modify, or delete any files.
|
|
49
|
+
It operates in read-only mode and produces findings only.
|
|
50
|
+
scope:
|
|
51
|
+
agents:
|
|
52
|
+
- implementation-auditor
|
|
53
|
+
rationale: >-
|
|
54
|
+
Audit results must be reviewed by the developer before changes
|
|
55
|
+
are applied. The auditor observes; the developer decides.
|
|
56
|
+
|
|
57
|
+
guardrail_policies:
|
|
58
|
+
implement-safety-policy:
|
|
59
|
+
description: Guardrail policy for the LLM feature implementation agent
|
|
60
|
+
rules:
|
|
61
|
+
- guardrail: output-schema-conformance
|
|
62
|
+
severity: critical
|
|
63
|
+
action: block
|
|
64
|
+
- guardrail: no-direct-api-call
|
|
65
|
+
severity: critical
|
|
66
|
+
action: block
|
|
67
|
+
|
|
68
|
+
audit-safety-policy:
|
|
69
|
+
description: Guardrail policy for the implementation auditor agent
|
|
70
|
+
rules:
|
|
71
|
+
- guardrail: output-schema-conformance
|
|
72
|
+
severity: critical
|
|
73
|
+
action: block
|
|
74
|
+
- guardrail: audit-read-only
|
|
75
|
+
severity: critical
|
|
76
|
+
action: block
|
|
77
|
+
|
|
78
|
+
workflow:
|
|
79
|
+
implement-llm-feature:
|
|
80
|
+
description: "Implement LLM-powered commands in a CLI tool"
|
|
81
|
+
trigger: cli-command
|
|
82
|
+
entry_conditions:
|
|
83
|
+
- "Target project is a TypeScript / Node.js project"
|
|
84
|
+
- "cli-contract.yaml exists or is being created"
|
|
85
|
+
steps:
|
|
86
|
+
- type: delegate
|
|
87
|
+
task: implement-llm-feature
|
|
88
|
+
from_agent: llm-feature-implementer
|
|
89
|
+
|
|
90
|
+
audit-implementation:
|
|
91
|
+
description: "Audit an LLM command integration for pattern conformance"
|
|
92
|
+
trigger: cli-command
|
|
93
|
+
entry_conditions:
|
|
94
|
+
- "Target project has LLM command integration to audit"
|
|
95
|
+
steps:
|
|
96
|
+
- type: delegate
|
|
97
|
+
task: audit-dsl
|
|
98
|
+
from_agent: implementation-auditor
|
|
99
|
+
depends_on: []
|
|
100
|
+
- type: delegate
|
|
101
|
+
task: audit-runtime
|
|
102
|
+
from_agent: implementation-auditor
|
|
103
|
+
depends_on: []
|
|
104
|
+
- type: delegate
|
|
105
|
+
task: audit-cli-contract
|
|
106
|
+
from_agent: implementation-auditor
|
|
107
|
+
depends_on: []
|
|
108
|
+
- type: delegate
|
|
109
|
+
task: audit-architecture
|
|
110
|
+
from_agent: implementation-auditor
|
|
111
|
+
depends_on: []
|
|
112
|
+
- type: delegate
|
|
113
|
+
task: audit-merge
|
|
114
|
+
from_agent: implementation-auditor
|
|
115
|
+
depends_on:
|
|
116
|
+
- audit-dsl
|
|
117
|
+
- audit-runtime
|
|
118
|
+
- audit-cli-contract
|
|
119
|
+
- audit-architecture
|