intentdna 1.5.19 → 1.5.20

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.
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "intentdna",
11
11
  "description": "Declarative policy layer for AI agent behavior with plugin-managed hook runtime for Claude Code.",
12
- "version": "1.5.19",
12
+ "version": "1.5.20",
13
13
  "author": {
14
14
  "name": "Samuel"
15
15
  },
@@ -25,5 +25,5 @@
25
25
  ]
26
26
  }
27
27
  ],
28
- "version": "1.5.19"
28
+ "version": "1.5.20"
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intentdna",
3
- "version": "1.5.19",
3
+ "version": "1.5.20",
4
4
  "description": "Declarative policy layer for AI agent behavior",
5
5
  "author": {
6
6
  "name": "Samuel"
@@ -271,11 +271,11 @@ roles:
271
271
  test_runner:
272
272
  description: "Runs tests and reports progress delta."
273
273
  tool_permissions:
274
- allow: [Read, Grep, Glob, Bash]
275
- deny: [Edit, Write, NotebookEdit]
274
+ allow: [Read, Grep, Glob, Bash, Write]
275
+ deny: [Edit, NotebookEdit]
276
276
  scope:
277
277
  read: ["**/*"]
278
- write: []
278
+ write: [".dna/fix-progress/**"]
279
279
  instructions:
280
280
  - "Run flutter test for the target module"
281
281
  - "Parse output: green/red/skip counts"
@@ -435,7 +435,13 @@ workflows:
435
435
  blocked_items_path: "docs/behavior/blocked_items.md"
436
436
  description: "Fix issues according to diagnosis spec classifications"
437
437
  prompt: |
438
- This invocation is one fix round. If prior verify_report or experience_chain context is provided, read it first and do not repeat failed approaches.
438
+ This invocation is one fix round.
439
+
440
+ Before editing, check whether .dna/fix-progress/$ARGUMENTS.md exists.
441
+ - If it exists, read it before the diagnosis spec and continue from its Next Round Focus.
442
+ - If it records REQUEST_CHANGES or BLOCKED_BY_REVIEW, address those review issues before starting unrelated diagnosis items.
443
+ - Use Failed approaches / Do not repeat to avoid repeating unsuccessful fixes.
444
+ - If it does not exist, treat this as round 1.
439
445
 
440
446
  Read context + diagnosis spec first.
441
447
 
@@ -489,7 +495,7 @@ workflows:
489
495
  }
490
496
  ```
491
497
 
492
- REQUEST_CHANGES → include failure_reason and concrete next_round_focus for the next fix invocation.
498
+ REQUEST_CHANGES → include failure_reason and concrete next_round_focus for the next fix invocation. The next_round_focus must name the priority/classification and specific test file or evidence path to address first.
493
499
  handoff:
494
500
  consumes:
495
501
  - type: git_commit
@@ -528,6 +534,16 @@ workflows:
528
534
  - Failure reason: why progress stopped, if any
529
535
  - Next round focus: the priority/classification/test file to continue with, if verdict is CONTINUE or REQUEST_CHANGES
530
536
 
537
+ Always write or update .dna/fix-progress/$ARGUMENTS.md before finishing, even when review blocks verification. Include these sections:
538
+ - Current verdict: Verdict, Review, Last fix commit, Updated at
539
+ - Round summary: Fixed, New red, Blocked, Remaining, Failure reason
540
+ - Next Round Focus: non-empty when Verdict is CONTINUE or REQUEST_CHANGES
541
+ - Review Issues To Address First: reviewer issues when Review is REQUEST_CHANGES
542
+ - Failed approaches / Do not repeat: approaches that failed or caused regressions
543
+ - Evidence: commands run and relevant paths
544
+
545
+ If Verdict is PASS, mark the module complete in .dna/fix-progress/$ARGUMENTS.md.
546
+
531
547
  Verdict meanings:
532
548
  - PASS: all approved diagnosis items are fixed or intentionally skipped
533
549
  - CONTINUE: this round made progress and remaining approved items should continue in the next fix invocation
@@ -545,5 +561,8 @@ workflows:
545
561
  path: ".dna/specs/diagnosis-$ARGUMENTS.md"
546
562
  description: "Diagnosis spec"
547
563
  produces:
564
+ - type: file
565
+ path: ".dna/fix-progress/$ARGUMENTS.md"
566
+ description: "Durable cumulative fix-progress artifact for the next fix invocation"
548
567
  - type: summary
549
568
  description: "Verification report with test delta"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intentdna",
3
- "version": "1.5.19",
3
+ "version": "1.5.20",
4
4
  "description": "Intent DNA — Declarative policy layer for AI agent behavior",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",