@tacuchi/agent-workflow-cli 25.6.0 → 25.7.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 (148) hide show
  1. package/CHANGELOG.md +4368 -0
  2. package/README.md +1 -1
  3. package/dist/adapters/git-cli.js +74 -6
  4. package/dist/adapters/git-cli.js.map +1 -1
  5. package/dist/adapters/node-file-system.js +39 -2
  6. package/dist/adapters/node-file-system.js.map +1 -1
  7. package/dist/application/branch-resolver.js +34 -1
  8. package/dist/application/branch-resolver.js.map +1 -1
  9. package/dist/application/checkpoint-write-service.js +161 -39
  10. package/dist/application/checkpoint-write-service.js.map +1 -1
  11. package/dist/application/dates.js +12 -0
  12. package/dist/application/dates.js.map +1 -1
  13. package/dist/application/fix-git-service.js +83 -13
  14. package/dist/application/fix-git-service.js.map +1 -1
  15. package/dist/application/flow/advance.js +24 -3
  16. package/dist/application/flow/advance.js.map +1 -1
  17. package/dist/application/flow/annul-service.js +159 -0
  18. package/dist/application/flow/annul-service.js.map +1 -0
  19. package/dist/application/flow/flow-service.js +212 -49
  20. package/dist/application/flow/flow-service.js.map +1 -1
  21. package/dist/application/flow/internal-actions.js +23 -3
  22. package/dist/application/flow/internal-actions.js.map +1 -1
  23. package/dist/application/flow/internal-drive.js +51 -19
  24. package/dist/application/flow/internal-drive.js.map +1 -1
  25. package/dist/application/flow/run-projection.js +21 -5
  26. package/dist/application/flow/run-projection.js.map +1 -1
  27. package/dist/application/flow/run-state-service.js +108 -35
  28. package/dist/application/flow/run-state-service.js.map +1 -1
  29. package/dist/application/flow/submit.js +63 -144
  30. package/dist/application/flow/submit.js.map +1 -1
  31. package/dist/application/git-flow-service.js +325 -72
  32. package/dist/application/git-flow-service.js.map +1 -1
  33. package/dist/application/hook-sql-mutation-guard.js +155 -27
  34. package/dist/application/hook-sql-mutation-guard.js.map +1 -1
  35. package/dist/application/host-memory/claude-code.js +65 -0
  36. package/dist/application/host-memory/claude-code.js.map +1 -0
  37. package/dist/application/host-memory/codex.js +225 -0
  38. package/dist/application/host-memory/codex.js.map +1 -0
  39. package/dist/application/host-memory/destination.js +52 -0
  40. package/dist/application/host-memory/destination.js.map +1 -0
  41. package/dist/application/host-memory/reader.js +9 -0
  42. package/dist/application/host-memory/reader.js.map +1 -0
  43. package/dist/application/host-memory/report.js +136 -0
  44. package/dist/application/host-memory/report.js.map +1 -0
  45. package/dist/application/lifecycle-target.js +3 -1
  46. package/dist/application/lifecycle-target.js.map +1 -1
  47. package/dist/application/local-proposal.js +13 -3
  48. package/dist/application/local-proposal.js.map +1 -1
  49. package/dist/application/logging/log-events.js +22 -0
  50. package/dist/application/logging/log-events.js.map +1 -1
  51. package/dist/application/parsers/spec-relation.js +20 -7
  52. package/dist/application/parsers/spec-relation.js.map +1 -1
  53. package/dist/application/persist-service.js +45 -1
  54. package/dist/application/persist-service.js.map +1 -1
  55. package/dist/application/plan-exec-batch-service.js +47 -2
  56. package/dist/application/plan-exec-batch-service.js.map +1 -1
  57. package/dist/application/plan-lineage-seal.js +93 -0
  58. package/dist/application/plan-lineage-seal.js.map +1 -0
  59. package/dist/application/plan-lint-service.js +153 -0
  60. package/dist/application/plan-lint-service.js.map +1 -0
  61. package/dist/application/prod-consent.js +75 -0
  62. package/dist/application/prod-consent.js.map +1 -0
  63. package/dist/application/reseal-service.js +9 -3
  64. package/dist/application/reseal-service.js.map +1 -1
  65. package/dist/application/self/install-skill.js +5 -1
  66. package/dist/application/self/install-skill.js.map +1 -1
  67. package/dist/application/self/update-self.js +204 -8
  68. package/dist/application/self/update-self.js.map +1 -1
  69. package/dist/application/session-create-service.js +49 -0
  70. package/dist/application/session-create-service.js.map +1 -1
  71. package/dist/application/session-custody-recorder.js +4 -0
  72. package/dist/application/session-custody-recorder.js.map +1 -1
  73. package/dist/application/session-narrative.js +27 -0
  74. package/dist/application/session-narrative.js.map +1 -1
  75. package/dist/application/session-resolver.js +28 -9
  76. package/dist/application/session-resolver.js.map +1 -1
  77. package/dist/application/source-boundary-policy.js +168 -34
  78. package/dist/application/source-boundary-policy.js.map +1 -1
  79. package/dist/application/working-branch-service.js +68 -0
  80. package/dist/application/working-branch-service.js.map +1 -0
  81. package/dist/application/workline-graph.js +7 -2
  82. package/dist/application/workline-graph.js.map +1 -1
  83. package/dist/cli/commands/checkpoint-write.js +18 -8
  84. package/dist/cli/commands/checkpoint-write.js.map +1 -1
  85. package/dist/cli/commands/fix-git.js +45 -6
  86. package/dist/cli/commands/fix-git.js.map +1 -1
  87. package/dist/cli/commands/flow.js +50 -5
  88. package/dist/cli/commands/flow.js.map +1 -1
  89. package/dist/cli/commands/git-flow.js +103 -29
  90. package/dist/cli/commands/git-flow.js.map +1 -1
  91. package/dist/cli/commands/host-memory.js +33 -0
  92. package/dist/cli/commands/host-memory.js.map +1 -0
  93. package/dist/cli/commands/index.js +6 -0
  94. package/dist/cli/commands/index.js.map +1 -1
  95. package/dist/cli/commands/persist.js +5 -0
  96. package/dist/cli/commands/persist.js.map +1 -1
  97. package/dist/cli/commands/plan.js +50 -0
  98. package/dist/cli/commands/plan.js.map +1 -0
  99. package/dist/cli/commands/resume-summary.js +4 -2
  100. package/dist/cli/commands/resume-summary.js.map +1 -1
  101. package/dist/cli/commands/set-branch.js +40 -6
  102. package/dist/cli/commands/set-branch.js.map +1 -1
  103. package/dist/cli/help-groups.js +6 -0
  104. package/dist/cli/help-groups.js.map +1 -1
  105. package/dist/cli/main.js +6 -2
  106. package/dist/cli/main.js.map +1 -1
  107. package/dist/cli/parser.js +20 -1
  108. package/dist/cli/parser.js.map +1 -1
  109. package/dist/cli/tui/components/git-flow-actions.js +65 -20
  110. package/dist/cli/tui/components/git-flow-actions.js.map +1 -1
  111. package/dist/cli/tui/tabs/project-tab.js +101 -12
  112. package/dist/cli/tui/tabs/project-tab.js.map +1 -1
  113. package/dist/domain/changelog-contract.js +172 -0
  114. package/dist/domain/changelog-contract.js.map +1 -0
  115. package/dist/domain/database-tools.js +1 -189
  116. package/dist/domain/database-tools.js.map +1 -1
  117. package/dist/domain/flow/answer.js +3 -0
  118. package/dist/domain/flow/answer.js.map +1 -1
  119. package/dist/domain/flow/authority.js +12 -0
  120. package/dist/domain/flow/authority.js.map +1 -1
  121. package/dist/domain/flow/journey-baseline.js +131 -0
  122. package/dist/domain/flow/journey-baseline.js.map +1 -0
  123. package/dist/domain/flow/run-state.js +257 -62
  124. package/dist/domain/flow/run-state.js.map +1 -1
  125. package/dist/domain/host-memory/model.js +2 -0
  126. package/dist/domain/host-memory/model.js.map +1 -0
  127. package/dist/domain/host-memory/provenance.js +43 -0
  128. package/dist/domain/host-memory/provenance.js.map +1 -0
  129. package/dist/domain/host-memory/topic.js +26 -0
  130. package/dist/domain/host-memory/topic.js.map +1 -0
  131. package/dist/domain/lineage.js +11 -3
  132. package/dist/domain/lineage.js.map +1 -1
  133. package/dist/domain/proposal.js +7 -0
  134. package/dist/domain/proposal.js.map +1 -1
  135. package/dist/domain/session/custody.js.map +1 -1
  136. package/dist/domain/sql-lexer.js +227 -0
  137. package/dist/domain/sql-lexer.js.map +1 -0
  138. package/package.json +2 -2
  139. package/skills/w/SKILL.md +9 -9
  140. package/skills/w/commands/README.md +2 -1
  141. package/skills/w/commands/recall.md +39 -0
  142. package/skills/w/context/MANIFEST.json +4 -0
  143. package/skills/w/harness/HARNESS.md +9 -5
  144. package/skills/w/hooks/README.md +27 -16
  145. package/skills/w/loops/CHASSIS.md +16 -12
  146. package/skills/w/loops/CODE-POLICIES.md +11 -6
  147. package/skills/w/loops/plan-exec-loop/LOOP.md +9 -9
  148. package/skills/w/modules/COMPACTION.md +1 -1
@@ -46,13 +46,9 @@ inference, the deferred-validation cycle and conditional Git authorization.
46
46
 
47
47
  `git` (safe branch + proposed commits). `plan-exec` does **not** load `external-data`: its proof comes from the acquired checkout only. SQL fixture/ephemeral tests are ordinary local commands; remote MCP reads belong to earlier research, never this loop.
48
48
 
49
- > **Ambient conventions (not roles):** code/testing/writing standards and `creating-tools` are standalone skills the host auto-discovers by `description` — Workline neither binds nor depends on them. Full doctrine: [../../roles/README.md](../../roles/README.md).
50
-
51
49
  ## Internal sessions (managed)
52
50
 
53
- - **plan-exec session** descriptor `<slug>-plan-exec` → `NNN-<slug>-plan-exec` (the `<slug>` comes from the input plan-doc `docs/plans/PPP-plan-<slug>.md`): **a single session per run** (Type = `exec`). Owns the run; holds `SESSION` + `CHECKPOINT` + `DECISION` + `SCRIPTS.sql` (+ `BACKLOG` only if something is deferred). Research is **inline** inside this session: it produces `ANALYSIS-FILE`/`CONCLUSIONS` (+ read-only `SCRIPTS.sql` if it queries DB) in its own folder.
54
-
55
- > **Numbering**: the caller passes only the descriptor; the CLI prepends the global sequential `NNN` over `.workflow/sessions/` (see chassis). It never restarts per type.
51
+ - **plan-exec session** descriptor `<slug>-plan-exec` → `NNN-<slug>-plan-exec` (the `<slug>` comes from the input plan-doc `docs/plans/PPP-plan-<slug>.md`): **a single session per run** (Type = `exec`). Owns the run; holds `SESSION` + `CHECKPOINT` + `DECISION` + `SCRIPTS.sql` (+ `BACKLOG` only if something is deferred). Research runs inside this session and produces `ANALYSIS-FILE`/`CONCLUSIONS` (+ read-only `SCRIPTS.sql` if it queries DB) in its own folder.
56
52
 
57
53
  > **Compat (legacy):** old workspaces may hold `plan-exec-phase-*` sessions (one per phase) and `*-research-*` ones — historical, left as-is; new runs use a single session.
58
54
 
@@ -243,10 +239,14 @@ adds nothing of its own beyond running on a verified branch and never
243
239
 
244
240
  ## Delta 5 — Closing review gate (conventions, pre-commit)
245
241
 
246
- Full gate in [`../CODE-POLICIES.md`](../CODE-POLICIES.md): independent re-read, ambient
247
- conventions and the floor lenses. It covers the execution unit's **whole** diff after every phase
248
- proof/check and before states or Git advance. Findings are fixed and the affected checks rerun, or
249
- deferred with justification when they are not blockers.
242
+ Full gate in [`../CODE-POLICIES.md`](../CODE-POLICIES.md). It covers the execution unit's **whole**
243
+ diff after every phase proof/check and before states or Git advance. Findings are fixed and the
244
+ affected checks rerun, or deferred with justification when they are not blockers.
245
+
246
+ **Distinct reviewer (hard rule).** Every batch close is reviewed by a reviewer other than its
247
+ author: neither whoever wrote the diff nor any of its implementers. The round that fixes its
248
+ findings goes back, before the commit, to a reviewer who wrote neither the diff nor the fix. A host
249
+ without subagents runs a clean re-read instead, and the closing report declares it.
250
250
 
251
251
  ## Delta 6 — Completion / close
252
252
 
@@ -4,6 +4,6 @@ Loaded when the run is long enough that context pressure governs its pacing (sig
4
4
 
5
5
  `Compactar` is not only reactive: the loop **watches its own context pressure** and raises compaction itself. Recognizing that pressure is judgment — the host's signal where it exists (*compaction* capability in [`../harness/HARNESS.md`](../harness/HARNESS.md)), otherwise the **qualitative** question *"would a fresh reader need the CHECKPOINT to continue?"* at a boundary of an already-long run. Doctrine fixes **no numeric thresholds**: a number that means anything is a number about one host.
6
6
 
7
- > **Whether the host can honour it is not this document's call:** `aw checkpoint-write` writes the CHECKPOINT and **never holds the compaction back** — there is no configurable mode; an ambiguity degrades and parks a refuge checkpoint to adopt later. **CHECKPOINT before compacting** is the invariant. What this document keeps is why: consent lives in the `Compactar` control a person ratifies, and a compaction that fires before the checkpoint loses the thread it was meant to protect.
7
+ > **Whether the host can honour it is not this document's call:** `aw checkpoint-write` with `--code <NNN>` writes the CHECKPOINT and **never holds the compaction back** — no configurable mode; unresolved, it parks a refuge checkpoint to adopt later. **CHECKPOINT before compacting** is the invariant. What this document keeps is why: consent lives in the `Compactar` control a person ratifies, and a compaction that fires before the checkpoint loses the thread it was meant to protect.
8
8
 
9
9
  > **`Compactar`** (the `flow` control) → write `CHECKPOINT.md` in the session (in-flight progress, remaining gaps, Q&A, `attempts`) → trigger the harness **compaction** (Claude Code: `/compact`; see [`../harness/HARNESS.md`](../harness/HARNESS.md)) → resume by reading the checkpoint.