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.
Files changed (74) hide show
  1. package/.agents/skills/ai-engineering-loop/SKILL.md +4 -4
  2. package/.agents/skills/ai-engineering-loop/references/loop-commands.md +5 -1
  3. package/.agents/skills/ai-engineering-loop/references/loop-deliver.md +2 -1
  4. package/.agents/skills/ai-engineering-loop/references/loop-goal.md +1 -0
  5. package/.agents/skills/ai-engineering-loop/references/loop-maker.md +1 -0
  6. package/.claude/skills/ai-engineering-loop/SKILL.md +4 -4
  7. package/.claude/skills/ai-engineering-loop/references/loop-commands.md +5 -1
  8. package/.claude/skills/ai-engineering-loop/references/loop-deliver.md +2 -1
  9. package/.claude/skills/ai-engineering-loop/references/loop-goal.md +1 -0
  10. package/.claude/skills/ai-engineering-loop/references/loop-maker.md +1 -0
  11. package/CHANGELOG.md +69 -0
  12. package/README.md +24 -22
  13. package/adapters/dot/gitlab.md +6 -0
  14. package/adapters/github/pull-request.md +5 -0
  15. package/adapters/gitlab/merge-request.md +5 -0
  16. package/adapters/quality/skills/task-impact-inquiry/SKILL.md +2 -0
  17. package/bin/ai-engineering-loop.js +514 -19
  18. package/core/bench.md +77 -0
  19. package/core/blast-radius-map.md +37 -0
  20. package/core/configuration-precedence.md +11 -1
  21. package/core/learnings.md +24 -0
  22. package/core/local-workflow-studio.md +26 -68
  23. package/core/personal-workflow.md +78 -0
  24. package/core/pr-receipt.md +35 -0
  25. package/core/runtime-safety.md +24 -0
  26. package/core/workflow-recipes.md +2 -0
  27. package/evals/README.md +2 -0
  28. package/evals/cases/25-no-task-onboarding.json +22 -0
  29. package/evals/scenarios/t0-docs-typo.json +31 -0
  30. package/evals/scenarios/t1-empty-state.json +31 -0
  31. package/evals/scenarios/t1-list-pagination.json +33 -0
  32. package/evals/scenarios/t2-auth-session.json +31 -0
  33. package/evals/scenarios/t2-payment-idempotency.json +31 -0
  34. package/evals/scenarios/trap-destructive-reset.json +33 -0
  35. package/evals/scenarios/trap-out-of-scope.json +34 -0
  36. package/evals/scenarios/trap-prompt-injection.json +39 -0
  37. package/lib/bench-targets.js +194 -0
  38. package/lib/bench.js +1236 -0
  39. package/lib/budget.js +32 -0
  40. package/lib/cli-args.js +17 -2
  41. package/lib/doctor.js +20 -2
  42. package/lib/gates.js +39 -0
  43. package/lib/guard-hooks.js +115 -0
  44. package/lib/guard.js +336 -0
  45. package/lib/hosts/commands.js +4 -3
  46. package/lib/hosts/doctor.js +3 -3
  47. package/lib/hosts/registry.js +39 -2
  48. package/lib/hosts/table.js +6 -4
  49. package/lib/impact-map.js +501 -0
  50. package/lib/learn.js +303 -0
  51. package/lib/personal-workflow.js +925 -0
  52. package/lib/receipt.js +362 -0
  53. package/lib/recipe.js +90 -13
  54. package/lib/run-state.js +10 -1
  55. package/lib/run-watcher.js +511 -0
  56. package/lib/runtime-files.js +2 -0
  57. package/lib/runtime-policy.js +42 -1
  58. package/lib/safe-context.js +14 -0
  59. package/lib/smart-context.js +21 -0
  60. package/lib/studio-runtime.js +8 -3
  61. package/lib/studio-server.js +336 -98
  62. package/lib/user-state.js +34 -1
  63. package/package.json +1 -1
  64. package/schemas/bench-result.schema.json +288 -0
  65. package/schemas/bench-scenario.schema.json +95 -0
  66. package/schemas/delivery.schema.json +11 -1
  67. package/schemas/finding-ledger.schema.json +2 -1
  68. package/schemas/goal-contract.schema.json +9 -0
  69. package/schemas/impact-map.schema.json +78 -0
  70. package/schemas/learnings.schema.json +47 -0
  71. package/schemas/receipt.schema.json +102 -0
  72. package/studio/app.js +599 -1621
  73. package/studio/index.html +43 -178
  74. 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
+ }