ai-engineering-loop 2.10.0 → 2.10.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/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ All notable changes to this project are documented here. Versions follow [Semant
6
6
 
7
7
  _No changes yet._
8
8
 
9
+ ## 2.10.1 - 2026-11-17
10
+
11
+ - **Fixed:** after a Judge `ITERATE`, `verify` refused to record evidence for the new Maker diff ("Verification has already passed its gate") and `gate verification` rejected the old evidence's diff hash, so the Run could not continue. The iteration's verification files now move to `runs/<id>/iterations/<n>/` and the next iteration starts with a fresh bundle.
12
+
9
13
  ## 2.10.0 - 2026-11-17
10
14
 
11
15
  Cards C-27 and C-28 in `docs/cards/slop-to-gold-2026-11-16.md`.
@@ -26,6 +26,7 @@ Additional outcomes are `FAILED`, `SKIPPED`, and `BLOCKED`.
26
26
  - Structured conditions read only allowlisted run metadata.
27
27
  - Legacy gates execute atomically under the workflow lock and mark their corresponding node passed only after existing artifact validation succeeds.
28
28
  - Judge `ITERATE` resets Maker and its descendants while preserving upstream analysis.
29
+ - On `ITERATE` the CLI moves that iteration's `verification.json`, `verification-summary.json` and `final-verification.json` to `runs/<id>/iterations/<n>/` and clears the gated-verification marker, so `verify` records fresh evidence for the next Maker diff. Within one iteration, gated evidence stays immutable.
29
30
  - Judge `ESCALATE` blocks unfinished nodes.
30
31
 
31
32
  ## Commands
package/lib/gates.js CHANGED
@@ -545,6 +545,19 @@ function mergeCommentJustifications(rootDir, run) {
545
545
  return merged.added;
546
546
  }
547
547
 
548
+ const ITERATION_EVIDENCE = ['verification.json', 'verification-summary.json', 'final-verification.json'];
549
+
550
+ function archiveIterationEvidence(rootDir, run) {
551
+ const runDir = path.dirname(artifactPath(rootDir, run.runId, 'verification.json'));
552
+ const target = path.join(runDir, 'iterations', String(run.iteration || 1));
553
+ for (const name of ITERATION_EVIDENCE) {
554
+ const from = path.join(runDir, name);
555
+ if (!fs.existsSync(from)) continue;
556
+ fs.mkdirSync(target, { recursive: true, mode: 0o700 });
557
+ fs.renameSync(from, path.join(target, name));
558
+ }
559
+ }
560
+
548
561
  function applyGate(rootDir, gate, { runId, transitionOptions = {} } = {}) {
549
562
  if (!Object.hasOwn(GATE_FILES, gate)) {
550
563
  throw gateError(`Unknown gate: ${gate}. Use ${Object.keys(GATE_FILES).join('|')}`, [], { why: 'Only the listed stages exist.', fix: `Use one of: ${Object.keys(GATE_FILES).join(', ')}.` });
@@ -749,9 +762,11 @@ function applyGate(rootDir, gate, { runId, transitionOptions = {} } = {}) {
749
762
  reason: expected.reason
750
763
  });
751
764
  }
765
+ archiveIterationEvidence(rootDir, run);
752
766
  return transitionRun(rootDir, run.runId, RUN_STATES.GOAL_FROZEN, {
753
767
  gate,
754
768
  artifacts,
769
+ dropArtifacts: ['verification'],
755
770
  reason: expected.reason,
756
771
  incrementIteration: true
757
772
  });
package/lib/run-state.js CHANGED
@@ -396,6 +396,7 @@ function transitionRunLocked(
396
396
  incrementIteration = false,
397
397
  statePatch = {},
398
398
  historyMetadata = {},
399
+ dropArtifacts = [],
399
400
  now = new Date()
400
401
  } = {}
401
402
  ) {
@@ -419,7 +420,7 @@ function transitionRunLocked(
419
420
  state: to,
420
421
  iteration: incrementIteration ? run.iteration + 1 : run.iteration,
421
422
  updatedAt: timestamp,
422
- artifacts: { ...run.artifacts, ...artifacts },
423
+ artifacts: Object.fromEntries(Object.entries({ ...run.artifacts, ...artifacts }).filter(([key]) => !dropArtifacts.includes(key))),
423
424
  history: [
424
425
  ...run.history,
425
426
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-engineering-loop",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "description": "A visual workspace that helps AI coding agents plan, build, review, and ship reliable software.",
5
5
  "main": "bin/ai-engineering-loop.js",
6
6
  "bin": {