ai-engineering-loop 1.15.0 → 1.17.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/.agents/skills/ai-engineering-loop/SKILL.md +1 -1
- package/.agents/skills/ai-engineering-loop/references/loop-deliver.md +3 -1
- package/.agents/skills/ai-engineering-loop/references/loop-goal.md +1 -0
- package/.agents/skills/ai-engineering-loop/references/loop-hosts.md +5 -1
- package/.agents/skills/ai-engineering-loop/references/loop-maker.md +7 -1
- package/.agents/skills/ai-engineering-loop/references/loop-review.md +2 -0
- package/.claude/skills/ai-engineering-loop/SKILL.md +1 -1
- package/.claude/skills/ai-engineering-loop/references/loop-deliver.md +3 -1
- package/.claude/skills/ai-engineering-loop/references/loop-goal.md +1 -0
- package/.claude/skills/ai-engineering-loop/references/loop-hosts.md +5 -1
- package/.claude/skills/ai-engineering-loop/references/loop-maker.md +7 -1
- package/.claude/skills/ai-engineering-loop/references/loop-review.md +2 -0
- package/CHANGELOG.md +68 -0
- package/README.md +26 -22
- package/adapters/README.md +22 -0
- package/adapters/dot/README.md +19 -9
- package/adapters/dot/gitlab.md +55 -0
- package/adapters/dot/mattermost.md +10 -0
- package/adapters/dot/skills/dot-dev-workflow/SKILL.md +27 -5
- package/adapters/dot/sonar.md +90 -0
- package/adapters/generate-adapter/SKILL.md +6 -5
- package/adapters/github/pull-request.md +5 -0
- package/adapters/gitlab/merge-request.md +5 -0
- package/adapters/{dot → quality}/skills/task-impact-inquiry/SKILL.md +12 -7
- package/agents/instruction-only/AGENTS.md +24 -0
- package/bin/ai-engineering-loop.js +318 -27
- package/core/blast-radius-map.md +37 -0
- package/core/grill-policy.md +1 -1
- package/core/learnings.md +24 -0
- package/core/orchestration-model.md +11 -0
- package/core/pr-receipt.md +35 -0
- package/core/runtime-safety.md +24 -0
- package/lib/adapter-check.js +102 -0
- package/lib/adapter-detect.js +125 -0
- package/lib/cli-args.js +5 -1
- package/lib/doctor.js +14 -4
- package/lib/gates.js +67 -1
- package/lib/generate-adapter.js +6 -30
- package/lib/guard-hooks.js +115 -0
- package/lib/guard.js +336 -0
- package/lib/host-skill-build.js +10 -0
- package/lib/hosts/commands.js +5 -4
- package/lib/hosts/doctor.js +4 -3
- package/lib/hosts/registry.js +69 -23
- package/lib/hosts/table.js +15 -5
- package/lib/impact-map.js +501 -0
- package/lib/learn.js +303 -0
- package/lib/orchestration.js +39 -6
- package/lib/receipt.js +362 -0
- package/lib/safe-context.js +14 -0
- package/lib/smart-context.js +21 -0
- package/lib/studio-server.js +1 -0
- package/lib/sync-hosts.js +2 -1
- package/package.json +1 -1
- package/schemas/delivery.schema.json +11 -1
- package/schemas/finding-ledger.schema.json +2 -1
- package/schemas/goal-contract.schema.json +9 -0
- package/schemas/impact-map.schema.json +78 -0
- package/schemas/learnings.schema.json +47 -0
- package/schemas/receipt.schema.json +102 -0
- package/schemas/report.schema.json +52 -5
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/egagofur/ai-engineering-loop/schemas/receipt.schema.json",
|
|
4
|
+
"title": "AI Engineering Loop Proof-Carrying PR Receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "runId", "generatedAt", "host", "base", "head", "goal", "acceptanceCriteria", "verification", "review", "guard", "artifacts", "digest"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"runId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"generatedAt": { "type": "string", "minLength": 1 },
|
|
11
|
+
"aelVersion": { "type": ["string", "null"] },
|
|
12
|
+
"host": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["id"],
|
|
15
|
+
"properties": { "id": { "type": "string" }, "model": { "type": ["string", "null"] } }
|
|
16
|
+
},
|
|
17
|
+
"base": { "type": "object", "required": ["sha"], "properties": { "sha": { "type": ["string", "null"] } } },
|
|
18
|
+
"head": { "type": "object", "required": ["sha"], "properties": { "sha": { "type": ["string", "null"] } } },
|
|
19
|
+
"goal": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": ["path", "sha256", "contentHash", "version", "objective"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"path": { "type": "string", "pattern": "^[^/]" },
|
|
24
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
25
|
+
"contentHash": { "$ref": "#/$defs/sha256" },
|
|
26
|
+
"version": { "type": "integer", "minimum": 1 },
|
|
27
|
+
"objective": { "type": "string" }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"acceptanceCriteria": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"minItems": 1,
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": ["id", "statement", "status", "evidence"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"id": { "type": "string", "pattern": "^AC-[0-9]+$" },
|
|
38
|
+
"statement": { "type": "string" },
|
|
39
|
+
"evidenceRequired": { "type": "string" },
|
|
40
|
+
"status": { "enum": ["PASS", "MISSING"] },
|
|
41
|
+
"missing": { "type": "array", "items": { "type": "string" } },
|
|
42
|
+
"evidence": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": ["type"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"type": { "enum": ["command", "claim", "link"] },
|
|
49
|
+
"command": { "type": "string" },
|
|
50
|
+
"exitCode": { "type": ["integer", "null"] },
|
|
51
|
+
"outputSha256": { "$ref": "#/$defs/sha256" },
|
|
52
|
+
"url": { "type": "string", "pattern": "^https?://" }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"verification": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["diffHash", "commands"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"diffHash": { "type": "string" },
|
|
64
|
+
"gitRevision": { "type": "string" },
|
|
65
|
+
"commands": { "type": "array" },
|
|
66
|
+
"coverage": { "type": ["object", "null"], "additionalProperties": { "type": "number" } }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"review": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": ["findings", "verdict"],
|
|
72
|
+
"properties": {
|
|
73
|
+
"findings": { "type": "object", "required": ["total", "valid", "blocking"] },
|
|
74
|
+
"verdict": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"required": ["verdict"],
|
|
77
|
+
"properties": { "verdict": { "enum": ["PASS", "ITERATE", "ESCALATE"] } }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"impact": { "type": ["object", "null"] },
|
|
82
|
+
"guard": { "type": "object", "required": ["warn", "block"] },
|
|
83
|
+
"artifacts": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"required": ["name", "path", "sha256"],
|
|
88
|
+
"properties": {
|
|
89
|
+
"name": { "type": "string" },
|
|
90
|
+
"path": { "type": "string", "pattern": "^[^/]" },
|
|
91
|
+
"sha256": { "$ref": "#/$defs/sha256" }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"digest": { "$ref": "#/$defs/sha256" },
|
|
96
|
+
"signature": { "description": "Optional detached signature of digest (not produced yet)", "type": "string" }
|
|
97
|
+
},
|
|
98
|
+
"$defs": {
|
|
99
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
100
|
+
},
|
|
101
|
+
"additionalProperties": true
|
|
102
|
+
}
|
|
@@ -3,14 +3,61 @@
|
|
|
3
3
|
"$id": "https://github.com/egagofur/ai-engineering-loop/schemas/report.schema.json",
|
|
4
4
|
"title": "Report-only completion",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"required": [
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"runId",
|
|
9
|
+
"summary",
|
|
10
|
+
"recommendations"
|
|
11
|
+
],
|
|
7
12
|
"properties": {
|
|
8
|
-
"schemaVersion": {
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
"schemaVersion": {
|
|
14
|
+
"const": 1
|
|
15
|
+
},
|
|
16
|
+
"runId": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1
|
|
19
|
+
},
|
|
20
|
+
"summary": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
},
|
|
11
24
|
"recommendations": {
|
|
12
25
|
"type": "array",
|
|
13
|
-
"items": {
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"review": {
|
|
32
|
+
"description": "Optional report review (#57). Independent modes need reviewer devil-advocate and its own childId; CONTEXT_ISOLATION_ONLY with nativeSubagent AVAILABLE needs reason.",
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": [
|
|
35
|
+
"executionMode"
|
|
36
|
+
],
|
|
37
|
+
"properties": {
|
|
38
|
+
"executionMode": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1
|
|
41
|
+
},
|
|
42
|
+
"nativeSubagent": {
|
|
43
|
+
"enum": [
|
|
44
|
+
"AVAILABLE",
|
|
45
|
+
"UNAVAILABLE"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"reviewer": {
|
|
49
|
+
"const": "devil-advocate"
|
|
50
|
+
},
|
|
51
|
+
"childId": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
},
|
|
55
|
+
"reason": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"minLength": 1
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": true
|
|
14
61
|
}
|
|
15
62
|
},
|
|
16
63
|
"additionalProperties": true
|