ai-engineering-loop 1.16.0 → 2.0.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 +4 -4
- package/.agents/skills/ai-engineering-loop/references/loop-commands.md +5 -1
- package/.agents/skills/ai-engineering-loop/references/loop-deliver.md +2 -1
- package/.agents/skills/ai-engineering-loop/references/loop-goal.md +1 -0
- package/.agents/skills/ai-engineering-loop/references/loop-maker.md +1 -0
- package/.claude/skills/ai-engineering-loop/SKILL.md +4 -4
- package/.claude/skills/ai-engineering-loop/references/loop-commands.md +5 -1
- package/.claude/skills/ai-engineering-loop/references/loop-deliver.md +2 -1
- package/.claude/skills/ai-engineering-loop/references/loop-goal.md +1 -0
- package/.claude/skills/ai-engineering-loop/references/loop-maker.md +1 -0
- package/CHANGELOG.md +69 -0
- package/README.md +24 -22
- package/adapters/dot/gitlab.md +6 -0
- package/adapters/github/pull-request.md +5 -0
- package/adapters/gitlab/merge-request.md +5 -0
- package/adapters/quality/skills/task-impact-inquiry/SKILL.md +2 -0
- package/bin/ai-engineering-loop.js +514 -19
- package/core/bench.md +77 -0
- package/core/blast-radius-map.md +37 -0
- package/core/configuration-precedence.md +11 -1
- package/core/learnings.md +24 -0
- package/core/local-workflow-studio.md +26 -68
- package/core/personal-workflow.md +78 -0
- package/core/pr-receipt.md +35 -0
- package/core/runtime-safety.md +24 -0
- package/core/workflow-recipes.md +2 -0
- package/evals/README.md +2 -0
- package/evals/cases/25-no-task-onboarding.json +22 -0
- package/evals/scenarios/t0-docs-typo.json +31 -0
- package/evals/scenarios/t1-empty-state.json +31 -0
- package/evals/scenarios/t1-list-pagination.json +33 -0
- package/evals/scenarios/t2-auth-session.json +31 -0
- package/evals/scenarios/t2-payment-idempotency.json +31 -0
- package/evals/scenarios/trap-destructive-reset.json +33 -0
- package/evals/scenarios/trap-out-of-scope.json +34 -0
- package/evals/scenarios/trap-prompt-injection.json +39 -0
- package/lib/bench-targets.js +194 -0
- package/lib/bench.js +1236 -0
- package/lib/budget.js +32 -0
- package/lib/cli-args.js +17 -2
- package/lib/doctor.js +20 -2
- package/lib/gates.js +39 -0
- package/lib/guard-hooks.js +115 -0
- package/lib/guard.js +336 -0
- package/lib/hosts/commands.js +4 -3
- package/lib/hosts/doctor.js +3 -3
- package/lib/hosts/registry.js +39 -2
- package/lib/hosts/table.js +6 -4
- package/lib/impact-map.js +501 -0
- package/lib/learn.js +303 -0
- package/lib/personal-workflow.js +925 -0
- package/lib/receipt.js +362 -0
- package/lib/recipe.js +90 -13
- package/lib/run-state.js +10 -1
- package/lib/run-watcher.js +511 -0
- package/lib/runtime-files.js +2 -0
- package/lib/runtime-policy.js +42 -1
- package/lib/safe-context.js +14 -0
- package/lib/smart-context.js +21 -0
- package/lib/studio-runtime.js +8 -3
- package/lib/studio-server.js +336 -98
- package/lib/user-state.js +34 -1
- package/package.json +1 -1
- package/schemas/bench-result.schema.json +288 -0
- package/schemas/bench-scenario.schema.json +95 -0
- 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/studio/app.js +599 -1621
- package/studio/index.html +43 -178
- package/studio/styles.css +17 -2
|
@@ -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
|
+
}
|