@deksden-com/dd-flow-cli 0.7.0 → 0.8.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 (69) hide show
  1. package/CHANGELOG.md +666 -0
  2. package/README.md +7 -2
  3. package/dist/build-info.json +5 -5
  4. package/dist/cli/help.js +88 -10
  5. package/dist/cli/run-cli.js +523 -28
  6. package/dist/domain/stage-catalog.js +22 -0
  7. package/dist/domain/validation.js +1 -1
  8. package/dist/schemas/code-review-decision.schema.json +26 -0
  9. package/dist/schemas/code-review-result.schema.json +14 -0
  10. package/dist/schemas/code-verification.schema.json +14 -0
  11. package/dist/schemas/code-work-batch.schema.json +24 -0
  12. package/dist/schemas/code-work-result.schema.json +16 -0
  13. package/dist/schemas/compatibility.schema.json +32 -0
  14. package/dist/schemas/flow-contract.schema.json +9 -5
  15. package/dist/schemas/flow-run.schema.json +16 -123
  16. package/dist/schemas/plan-aspect-map.schema.json +22 -0
  17. package/dist/schemas/plan-review-decision.schema.json +14 -0
  18. package/dist/schemas/plan-review-result.schema.json +42 -0
  19. package/dist/schemas/protocol-plan.schema.json +15 -182
  20. package/dist/schemas/stage-finish-input.schema.json +16 -2
  21. package/dist/schemas/stage-report.schema.json +8 -7
  22. package/dist/schemas/stage-start-response.schema.json +4 -2
  23. package/dist/schemas/status-report.schema.json +76 -0
  24. package/dist/schemas/vnext-protocol-plan.schema.json +37 -0
  25. package/dist/schemas/vnext-protocolize-result.schema.json +29 -0
  26. package/dist/schemas/vnext-specify.schema.json +45 -0
  27. package/dist/services/branch-context.js +1 -1
  28. package/dist/services/cleanup.js +8 -8
  29. package/dist/services/cli-operation-classifier.js +10 -2
  30. package/dist/services/code-checks.js +244 -0
  31. package/dist/services/config.js +7 -1
  32. package/dist/services/dashboard.js +12 -12
  33. package/dist/services/engines.js +1 -1
  34. package/dist/services/eval-snapshots.js +404 -0
  35. package/dist/services/hooks.js +774 -18
  36. package/dist/services/ids.js +16 -6
  37. package/dist/services/lanes.js +1 -1
  38. package/dist/services/merge-queue.js +5 -5
  39. package/dist/services/merge-worker.js +2 -2
  40. package/dist/services/migrations.js +2 -2
  41. package/dist/services/plan-runtime.js +1 -1
  42. package/dist/services/projects.js +4 -4
  43. package/dist/services/prompts.js +17 -11
  44. package/dist/services/protocols.js +8 -8
  45. package/dist/services/run-projection.js +49 -13
  46. package/dist/services/runs.js +504 -51
  47. package/dist/services/schema-validation.js +21 -3
  48. package/dist/services/sessions.js +51 -12
  49. package/dist/services/stage-blocker.js +57 -0
  50. package/dist/services/stage-context.js +90 -0
  51. package/dist/services/stage-lifecycle.js +198 -75
  52. package/dist/services/stage-pause.js +175 -0
  53. package/dist/services/stage-report-renderer.js +65 -0
  54. package/dist/services/usage.js +526 -18
  55. package/dist/services/vnext-code-review.js +305 -0
  56. package/dist/services/vnext-code.js +686 -0
  57. package/dist/services/vnext-contracts.js +1 -0
  58. package/dist/services/vnext-execution-profile.js +27 -0
  59. package/dist/services/vnext-fanout.js +79 -0
  60. package/dist/services/vnext-plan-review.js +499 -0
  61. package/dist/services/vnext-plan.js +552 -0
  62. package/dist/services/vnext-protocolize.js +542 -0
  63. package/dist/services/vnext-specify.js +595 -0
  64. package/dist/services/vnext-workspace-policy.js +87 -0
  65. package/dist/services/work-registry.js +522 -0
  66. package/dist/services/worktrees.js +58 -37
  67. package/dist/storage/database.js +263 -34
  68. package/dist/storage/paths.js +47 -1
  69. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,671 @@
1
1
  # @deksden-com/dd-flow-cli
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Patch Changes
6
+
7
+ - a092c98: Accept controlled OpenCode lifecycle events and cumulative root/child Session usage through the shared harness evidence path.
8
+ - fb2395a: Accept trusted lifecycle events from controlled zcode-acp sessions and retain harness-native root, child, parent, and execution-daemon identities in Session evidence.
9
+ - Promote the accepted SPECIFY-through-CODE-REVIEW runtime as stable 0.8.0 and align its shared compatibility, flow, stage-start and status schemas with Memory Bank 4.0.0.
10
+
11
+ ## 0.8.0-beta.138
12
+
13
+ ### Patch Changes
14
+
15
+ - Replace CODE and repair file allowlists with optional `planned_write_areas`:
16
+ soft coordination hints that serialize likely concurrent collisions but never
17
+ deny a necessary project-local edit. Record unexpected actual paths as
18
+ `coordination.drift` instead of rejecting the Work.
19
+ - Render the hard RUN workspace boundary separately from required reads,
20
+ discovery hints and planned coordination areas, so a worker can distinguish
21
+ semantic constraints from planning predictions.
22
+
23
+ ## 0.8.0-beta.137
24
+
25
+ ### Patch Changes
26
+
27
+ - Transfer a running coordinator Work to a fresh Session at a frozen
28
+ `new_session` stage boundary, while still rejecting a second Session that
29
+ tries to repeat the same stage.
30
+
31
+ ## 0.8.0-beta.136
32
+
33
+ ### Patch Changes
34
+
35
+ - Serialize the long CODE aggregate gate and reuse complete same-workspace
36
+ receipts after a client loses its command output, preventing a concurrent
37
+ retry from duplicating checks or colliding on receipt identifiers.
38
+
39
+ ## 0.8.0-beta.135
40
+
41
+ ### Patch Changes
42
+
43
+ - Derive a CODE repair Work's additional write scope from exact existing
44
+ project files named by its retained failed-check receipt, with path-escape
45
+ and dependency-directory guards.
46
+ - Keep eval snapshot rebasing out of restored workspaces and installed tools,
47
+ so valid JSON-with-comments project files cannot break a later stage entry.
48
+
49
+ ## 0.8.0-beta.134
50
+
51
+ ### Patch Changes
52
+
53
+ - Pair the engine with the PLAN/PLAN-REVIEW prompt correction that makes every
54
+ linked acceptance scenario explicitly owned for update or explicitly
55
+ classified as unaffected before CODE opens.
56
+
57
+ ## 0.8.0-beta.133
58
+
59
+ ### Patch Changes
60
+
61
+ - Reject a PLAN that assigns a project aggregate gate to one scoped CODE Work;
62
+ aggregate gates now run at the CODE/readiness fan-in, where failure can
63
+ create a correctly scoped repair Work.
64
+ - Preserve the distinction between a worker that explicitly failed its Work
65
+ and a worker that omitted its lifecycle finish in eval runner evidence.
66
+
67
+ ## 0.8.0-beta.132
68
+
69
+ ### Patch Changes
70
+
71
+ - Preserve the one-to-one relationship between PLAN-declared CODE checks and
72
+ their execution receipts, even when checks intentionally share a command.
73
+ - Reject a CODE-REVIEW decision that rejects or defers a material P0/P1
74
+ finding before repair Work is created, so the initial repair packet is
75
+ complete and cannot leave the stage in a non-progressing state.
76
+
77
+ ## 0.8.0-beta.131
78
+
79
+ ### Patch Changes
80
+
81
+ - Explain that a CODE Work receives shared end-to-end acceptance context but
82
+ owns only its declared contribution, write scope and checks. This prevents a
83
+ correctly scoped worker from failing merely because a dependent UI or
84
+ documentation surface belongs to another Work.
85
+
86
+ ## 0.8.0-beta.128
87
+
88
+ ### Patch Changes
89
+
90
+ - Render an executable, one-command heredoc template for every agent-owned
91
+ HITL pause and preserve that template through Codex, ZCode, Grok, OpenCode
92
+ and Antigravity hook parsing.
93
+
94
+ ## 0.8.0-beta.127
95
+
96
+ ### Patch Changes
97
+
98
+ - Keep PROTOCOLIZE stage attachment independent from coordinator Session reuse,
99
+ expose the measured worker capacity in the PLAN packet, and report an
100
+ explicit zero-capacity infrastructure outcome for PLAN-REVIEW.
101
+
102
+ ## 0.8.0-beta.122
103
+
104
+ ### Patch Changes
105
+
106
+ - Preserve a portable Git bundle in each new eval snapshot and restore it
107
+ before the checkpoint tree, so later stages retain their branch and can
108
+ create managed worktrees.
109
+
110
+ ## 0.8.0-beta.121
111
+
112
+ ### Patch Changes
113
+
114
+ - Keep CODE implementation in fresh Work sessions so the coordinator preserves
115
+ graph, evidence and final-gate context across a sequential delivery graph.
116
+
117
+ ## 0.8.0-beta.119
118
+
119
+ ### Patch Changes
120
+
121
+ - Keep the accepted `@check/...` declaration when creating a CODE repair Work
122
+ from a failed receipt. Receipts retain the expanded command as evidence, but
123
+ the repair packet is validated and executed through the original alias.
124
+
125
+ ## 0.8.0-beta.118
126
+
127
+ ### Patch Changes
128
+
129
+ - Keep PLAN-time document baselines immutable while validating CODE handoff, so
130
+ a required durable-documentation Work cannot invalidate its own generated
131
+ CODE batch.
132
+ - Emit full Work ids in generated lifecycle commands and align the CODE
133
+ verification example with the installed `code-verification@2` schema.
134
+
135
+ ## 0.8.0-beta.116
136
+
137
+ ### Patch Changes
138
+
139
+ - Register the CODE stage before workspace readiness so a failed bootstrap is
140
+ a recoverable, timed stage attempt rather than an unfinishable lifecycle.
141
+
142
+ ## 0.8.0-beta.115
143
+
144
+ ### Patch Changes
145
+
146
+ - Materialize both partially filled PLAN artifacts at stage start and report
147
+ which fields are already owned by the CLI.
148
+ - Prepopulate the aspect-map catalog identifiers without making semantic
149
+ applicability decisions for the planner.
150
+ - Return exact artifact paths and schema-validation commands in the PLAN
151
+ packet while preserving `plan.json` as the sole semantic plan.
152
+
153
+ ## 0.8.0-beta.111
154
+
155
+ ### Patch Changes
156
+
157
+ - Make a future CODE check an explicit, provider-owned `@check/...` alias
158
+ with an exact definition; reject unordered, raw or unmaterialized checks.
159
+ - Run PLAN-declared available readiness checks after bootstrap, preserve their
160
+ receipts, and distinguish project policy gates from planner-selected CODE
161
+ checks.
162
+ - Carry the stricter verification contract through PLAN and CODE worker
163
+ packets without asking the CLI to judge test relevance or cost.
164
+
165
+ ## 0.8.0-beta.110
166
+
167
+ ### Patch Changes
168
+
169
+ - Make PLAN own verification selection through a single check catalogue;
170
+ validate only references, provider ordering and guarded commands.
171
+ - Preserve review evidence in Work results instead of mutating aspect maps,
172
+ reuse one RUN capacity measurement, and support HITL-backed effective
173
+ obligation amendments.
174
+ - Never rewrite Bash heredocs in lifecycle hooks.
175
+
176
+ ## 0.8.0-beta.109
177
+
178
+ ### Patch Changes
179
+
180
+ - Keep the SQLite vNext RUN projection free of legacy `current_stage`, attempt,
181
+ worker and coverage mirrors; derive stage guidance from canonical stage runs.
182
+
183
+ ## 0.8.0-beta.108
184
+
185
+ ### Patch Changes
186
+
187
+ - Align vNext runtime identity, Work/Session state, filesystem materialization,
188
+ stage reports, review findings and check receipts with SPC-009.
189
+ - Add a single stage catalog, safe RUN path resolver, overlapping write-scope
190
+ scheduling guard and structured eval snapshot rebasing.
191
+ - Remove automatic Work `try-001` materialization and the separate `work.json`
192
+ projection; explicit retries archive under `attempts/ATT-NNN`.
193
+
194
+ ## 0.8.0-beta.103
195
+
196
+ ### Patch Changes
197
+
198
+ - Isolate local CODE check processes by checkout and pass the scope through deterministic bootstrap and gate commands.
199
+ - Make CODE worker instructions distinguish repairable project check failures from evidenced external blockers.
200
+
201
+ ## 0.8.0-beta.102
202
+
203
+ ### Patch Changes
204
+
205
+ - Permit the stdin pipe required by `stage resume` while retaining the strict
206
+ standalone-command guard for stage and Work starts.
207
+
208
+ ## 0.8.0-beta.101
209
+
210
+ ### Patch Changes
211
+
212
+ - abef4b2: Reject ambiguous compound lifecycle starts, preserve trusted coordinator
213
+ ownership, enforce hard Work dependencies during review dispatch, and expose
214
+ complete reviewer, timing, evidence, Session and Agent observability.
215
+
216
+ ## 0.8.0-beta.100
217
+
218
+ ### Patch Changes
219
+
220
+ - 430e49f: Preserve project check aliases until execution, add recoverable external stage
221
+ blockers, deduplicate physical-session usage, and improve session and review
222
+ routing projections.
223
+ - 06e58ab: Stream machine-readable progress for long lifecycle commands, make CODE and
224
+ CODE-REVIEW retries idempotent, preserve terminal timestamps, and tighten
225
+ candidate usage/session projections.
226
+ - Reject a completed CODE verification that cites evidence missing from the RUN or
227
+ its workspace, and refresh protocol summaries at deterministic CODE boundaries.
228
+
229
+ ## 0.8.0-beta.99
230
+
231
+ ### Patch Changes
232
+
233
+ - Validate draft 2020-12 stage contracts with the matching JSON Schema engine
234
+ and surface schema-registry compilation failures as actionable engine errors.
235
+ - Namespace CODE-REVIEW findings by reviewer group and require every assigned
236
+ aspect exactly once before accepting reviewer evidence.
237
+ - Keep active RUN projections free of resolved pause/blocker records, preserve
238
+ their history in the timeline, and normalize quoted RUN ids from hooks.
239
+ - Validate CODE completion evidence before running the aggregate project gate.
240
+
241
+ ## 0.8.0-beta.93
242
+
243
+ ### Patch Changes
244
+
245
+ - Republish the beta.92 CODE packet validation fix as the matched engine for
246
+ the corrected flow-pack compatibility declaration.
247
+
248
+ ## 0.8.0-beta.92
249
+
250
+ ### Patch Changes
251
+
252
+ - Treat each PLAN `verification.checks` entry as an executable command only.
253
+ With a project check profile, PLAN now accepts only declared aliases or exact
254
+ declared commands, and rejects semantic assertions before it can create a
255
+ CODE Work packet. Semantic proof stays in `expected_evidence`.
256
+
257
+ ## 0.8.0-beta.91
258
+
259
+ ### Patch Changes
260
+
261
+ - Remove obsolete `session_coverage` and `usage_coverage` projections from
262
+ vNext RUN state, leaving factual Session and usage data to the stat commands.
263
+
264
+ ## 0.8.0-beta.90
265
+
266
+ ### Patch Changes
267
+
268
+ - Snapshot one project-owned execution profile into each vNext RUN and keep
269
+ checkout routing separate from handoff, review and bootstrap policy.
270
+ - Move deterministic workspace bootstrap to CODE, report its heartbeat, and
271
+ end successful CODE at the truthful terminal verdict `code_completed`.
272
+ - Use readable `WRK-*` Work identifiers and replace synthetic coverage claims
273
+ in vNext stage reports with factual post-settlement statistics commands.
274
+
275
+ ## 0.8.0-beta.89
276
+
277
+ ### Patch Changes
278
+
279
+ - Keep active CODE workers alive until the harness reports a terminal state.
280
+ - Stream long check progress and validate project-owned check aliases before
281
+ CODE Work registration.
282
+ - Scope Session, token, tool-call and timing evidence to the selected stage or
283
+ segment and keep only the latest check receipt as current evidence.
284
+
285
+ ## 0.8.0-beta.88
286
+
287
+ ### Patch Changes
288
+
289
+ - Preserve accepted requirements, semantic responsibility, selected project
290
+ context, write scope and verification when PLAN projects CODE Work.
291
+ - Execute CODE as the registered Work graph under the RUN root orchestrator,
292
+ with focused checks at Work completion and a deterministic aggregate gate at
293
+ stage completion.
294
+ - Keep failed aggregate gates open and create an explicit repair Work from the
295
+ failed receipt plus the original Work context.
296
+
297
+ ## 0.8.0-beta.87
298
+
299
+ ### Patch Changes
300
+
301
+ - Remove the obsolete vNext fixture handoff fallback so PROTOCOLIZE starts
302
+ only from the accepted SPECIFY context.
303
+ - Prove that review-off uses the same validated final PLAN-to-CODE closure as
304
+ an enabled review.
305
+
306
+ ## 0.8.0-beta.86
307
+
308
+ ### Patch Changes
309
+
310
+ - Make SPECIFY JSON the accepted semantic source, preserve all R/AC
311
+ obligations through PROTOCOLIZE and PLAN, and derive the CODE work batch
312
+ only after shared deterministic validation.
313
+ - Reject stale PLAN/CODE handoffs and publish accepted semantic artifacts and
314
+ deterministic reports atomically.
315
+ - Resolve Codex transcripts inside the selected `CODEX_HOME`; tests now use
316
+ isolated homes instead of scanning a developer's session history.
317
+
318
+ ## 0.8.0-beta.81
319
+
320
+ ### Patch Changes
321
+
322
+ - Reject an accepted PLAN-REVIEW correction unless it regenerates the proposed
323
+ CODE batch and records that artifact in the correction receipt. This keeps
324
+ CODE work paths and verification aligned with the revised plan.
325
+
326
+ ## 0.8.0-beta.80
327
+
328
+ ### Patch Changes
329
+
330
+ - Make failed eval snapshots read-only: an accidental worktree value for
331
+ `--project-root` no longer registers a second project in the dedicated
332
+ runtime before failing.
333
+
334
+ ## 0.8.0-beta.79
335
+
336
+ ### Patch Changes
337
+
338
+ - Use the single vNext workspace policy for the frozen SPECIFY →
339
+ PROTOCOLIZE handoff. This prevents the generic runtime default from
340
+ contradicting `project-workspace.json`.
341
+ - Remove the obsolete `execution.stage_handoff` runtime setting so it cannot
342
+ be mistaken for a second vNext authority.
343
+
344
+ ## 0.8.0-beta.78
345
+
346
+ ### Patch Changes
347
+
348
+ - Treat a complete PLAN-REVIEW reviewer result with `blocked` as actionable
349
+ evidence, requiring a classified in-place correction, rather than a terminal
350
+ stage failure. Missing, malformed, or unfinished reviewer evidence still
351
+ blocks the stage.
352
+ - Keep the PROTOCOLIZE PSET test fixture consistent with the fail-closed
353
+ acceptance-coverage contract.
354
+
355
+ ## 0.8.0-beta.77
356
+
357
+ ### Patch Changes
358
+
359
+ - Make PROTOCOLIZE fail closed unless `acceptance_coverage` owns every
360
+ `AC-*` criterion in the accepted SPECIFY handoff exactly once.
361
+
362
+ ## 0.8.0-beta.76
363
+
364
+ ### Patch Changes
365
+
366
+ - Make the PROTOCOLIZE workspace receipt a fail-closed gate for PLAN,
367
+ PLAN-REVIEW and CODE, and include the verified write workspace in every
368
+ generated worker packet.
369
+ - Require disposable capacity probes and completed review workers to release
370
+ their harness slots before productive work continues.
371
+
372
+ ## 0.8.0-beta.75
373
+
374
+ ### Patch Changes
375
+
376
+ - Render every vNext lifecycle command with the bound `DD_FLOW_HOME`, so a
377
+ worker can finish or hand off a stage from any shell environment.
378
+
379
+ ## 0.8.0-beta.74
380
+
381
+ ### Patch Changes
382
+
383
+ - Measure fresh-subagent capacity at PLAN-REVIEW dispatch rather than reusing a
384
+ stale PLAN observation; PLAN now groups review aspects semantically only.
385
+
386
+ ## 0.8.0-beta.73
387
+
388
+ ### Patch Changes
389
+
390
+ - Require self-contained CODE work batches at PLAN finish.
391
+
392
+ ## 0.8.0-beta.72
393
+
394
+ ### Patch Changes
395
+
396
+ - Align the validated flow contract with the vNext route: a run-scoped feature
397
+ worktree is provisioned at PROTOCOLIZE start, before durable protocol files
398
+ are materialized.
399
+
400
+ ## 0.8.0-beta.71
401
+
402
+ ### Patch Changes
403
+
404
+ - Keep the worktree route strict while allowing Desktop harnesses whose task
405
+ cwd cannot be dynamically changed: stage packets use absolute workspace
406
+ targets and hook cwd remains audit evidence rather than a false blocker.
407
+
408
+ ## 0.8.0-beta.70
409
+
410
+ ### Patch Changes
411
+
412
+ - Provision the configured feature worktree and its bootstrap deterministically
413
+ at vNext PROTOCOLIZE start. PROTOCOLIZE finish now only validates the frozen
414
+ route and materializes durable documents there; PLAN and later writing stages
415
+ reject a session started outside the recorded workspace.
416
+
417
+ ## 0.8.0-beta.58
418
+
419
+ ### Patch Changes
420
+
421
+ - Bind a portable fixture's synthetic root Work to the first real stage
422
+ session before starting its child PLAN Work, so a focused PLAN run retains
423
+ the normal parent-session invariant without importing old sessions.
424
+
425
+ ## 0.8.0-beta.57
426
+
427
+ ### Patch Changes
428
+
429
+ - Preserve the final newline of `git diff --binary` in exported portable
430
+ fixtures so their project overlays can be imported by `git apply`.
431
+
432
+ ## 0.8.0-beta.56
433
+
434
+ ### Patch Changes
435
+
436
+ - Report PROTOCOLIZE as the next legal stage after finished SPECIFY; PLAN is
437
+ now guided only after the PROTOCOLIZE stage is complete.
438
+
439
+ ## 0.8.0-beta.55
440
+
441
+ ### Patch Changes
442
+
443
+ - Keep a finished SPECIFY stage isolated until its returned PROTOCOLIZE start
444
+ command is explicitly invoked; completion now records the hash of the actual
445
+ stored document and exposes acceptance/check checks in the stage report.
446
+
447
+ ## 0.8.0-beta.54
448
+
449
+ ### Patch Changes
450
+
451
+ - Restore the accepted fixture's PLAN-REVIEW setting alongside its runtime
452
+ variables so isolated targets retain the configured flow behavior.
453
+
454
+ ## 0.8.0-beta.53
455
+
456
+ ### Patch Changes
457
+
458
+ - Mark engine-exported stage fixtures as accepted, matching the strict
459
+ controller import gate.
460
+
461
+ ## 0.8.0-beta.52
462
+
463
+ ### Patch Changes
464
+
465
+ - Add an operator-only portable stage-fixture export/import boundary for
466
+ stage-isolated evaluations. It restores accepted predecessor artifacts and
467
+ RUN variables into a fresh runtime, never old Sessions, Works, usage or
468
+ machine paths.
469
+
470
+ ## 0.8.0-beta.51
471
+
472
+ ### Patch Changes
473
+
474
+ - Put the measured per-wave fresh-subagent capacity into the PLAN response,
475
+ rendered prompt and Work context. PLAN now explicitly minimizes review waves
476
+ before reviewer count while preserving real semantic boundaries.
477
+
478
+ ## 0.8.0-beta.49
479
+
480
+ ### Patch Changes
481
+
482
+ - Prefix generated vNext inter-stage start commands with the selected
483
+ `DD_FLOW_HOME`, so their PreToolUse hook binds the same isolated RUN.
484
+ - Allow a bounded capacity observation to replace an earlier observation when
485
+ the harness completes its probe window with a different factual count.
486
+
487
+ ## 0.8.0-beta.48
488
+
489
+ ### Patch Changes
490
+
491
+ - Publish the coordinated engine snapshot for the vNext HITL flow-pack beta.48.
492
+
493
+ ## 0.8.0-beta.47
494
+
495
+ ### Patch Changes
496
+
497
+ - Make user interaction an in-stage pause/resume lifecycle: preserve the same
498
+ Work, stage and attempt, store raw question/answer intake, and require a
499
+ trusted resume hook event.
500
+ - Remove vNext `waiting_for_user` finish outcomes and fictitious
501
+ PROTOCOLIZE-to-SPECIFY answer routes. Generated prompts now return exact
502
+ pause/resume commands, including an isolated `DD_FLOW_HOME` where needed.
503
+
504
+ ## 0.8.0-beta.45
505
+
506
+ ### Patch Changes
507
+
508
+ - Capture the immutable PLAN-REVIEW decision receipt only after a finish
509
+ payload passes the mechanical gate, so rejected attempts remain retryable.
510
+
511
+ ## 0.8.0-beta.44
512
+
513
+ ### Patch Changes
514
+
515
+ - Record RUN capacity before PLAN and expose one consistent `run capacity
516
+ record` command with the bounded 15-probe contract.
517
+ - Preserve the proposed CODE batch through PLAN-REVIEW, validate it before
518
+ PLAN acceptance, and keep the temporary reviewer dispatch file ephemeral.
519
+ - Keep per-Session stage state accurate, preserve immutable PLAN-REVIEW decision
520
+ payloads, and materialize reviewer findings into the aspect map.
521
+ - Render a useful deterministic PLAN-REVIEW Markdown/HTML report and require
522
+ stable finding ids for mechanical decision coverage.
523
+
524
+ ## 0.8.0-beta.43
525
+
526
+ ### Patch Changes
527
+
528
+ - Attribute transcript usage by the linked Work/Session id; Codex child
529
+ transcripts expose the child id in `session_meta.id` while the provider id
530
+ can remain the parent thread id.
531
+ - Include initial/final PLAN revisions and checksums, correction paths and
532
+ `semantic_re_review` in the deterministic PLAN-REVIEW report.
533
+
534
+ ## 0.8.0-beta.42
535
+
536
+ ### Patch Changes
537
+
538
+ - Make PLAN-REVIEW a single semantic review wave: reviewer `needs_changes` is
539
+ evidence, while the orchestrator applies accepted fixes in the same Work and
540
+ finishes once with an explicit correction receipt.
541
+ - Remove automatic review retries and validate only mechanical correction
542
+ coherence; semantic re-review remains `not_run_by_policy`.
543
+
544
+ ## 0.8.0-beta.41
545
+
546
+ ### Patch Changes
547
+
548
+ - Make capacity probing an explicit leaf-session measurement: probes wait 60
549
+ seconds, return `AGENT-NN`, use a 180-second total deadline, and count only
550
+ exact-token completions.
551
+
552
+ ## 0.8.0-beta.40
553
+
554
+ ### Patch Changes
555
+
556
+ - Include the isolated `DD_FLOW_HOME` prefix in generated worker completion
557
+ and failure commands, matching the worker-start command in a fresh Desktop
558
+ session.
559
+
560
+ ## 0.8.0-beta.39
561
+
562
+ ### Patch Changes
563
+
564
+ - Replace partial PLAN-review retries with a new complete review attempt after
565
+ any PLAN revision. The completed attempt is archived by the common stage
566
+ state machine; stale evidence cannot be reused.
567
+ - Return the isolated runtime prefix in reviewer worker-start commands, so a
568
+ fresh Desktop worker reaches the same RUN without manual environment setup.
569
+
570
+ ## 0.8.0-beta.38
571
+
572
+ ### Patch Changes
573
+
574
+ - Treat fresh-session capacity as one bounded harness observation rather than
575
+ fifteen registered probe Works. `plan-review capacity record` stores the
576
+ observed slot count once for the RUN and lets reviewer dispatch proceed.
577
+
578
+ ## 0.8.0-beta.33
579
+
580
+ ### Patch Changes
581
+
582
+ - Replace beta-only Agent Turn, launch-token and adapter-binding mechanics with
583
+ hook-observed Work/Session links; add RUN variables, fresh-review capacity
584
+ probes and transcript-source usage recomputation.
585
+
586
+ ## 0.8.0-beta.32
587
+
588
+ ### Patch Changes
589
+
590
+ - Split independent PLAN review into a first-class `plan-review` stage with an
591
+ atomic CODE opening gate and RUN-scoped review policy.
592
+
593
+ ## 0.8.0-beta.31
594
+
595
+ ### Patch Changes
596
+
597
+ - Let PLAN dispatch a new review attempt only for groups whose latest completed verdict is `needs_changes`; PLAN acceptance uses the latest attempt for each group.
598
+
599
+ ## 0.8.0-beta.30
600
+
601
+ ### Patch Changes
602
+
603
+ - Include the explicit project root in every generated worker start command, so a Desktop worker launched outside the target checkout can be observed and claimed by its Codex hook.
604
+
605
+ ## 0.8.0-beta.29
606
+
607
+ ### Patch Changes
608
+
609
+ - Give each Work a one-time launch token, claim the exact matching PreToolUse
610
+ event, and let the trusted Desktop harness bind a returned child-task
611
+ identity before a parallel worker starts.
612
+
613
+ ## 0.8.0-beta.28
614
+
615
+ ### Patch Changes
616
+
617
+ - Keep vNext RUNs live across same-session stage handoffs, dispatch grouped
618
+ PLAN reviews as real Work/Agent Turns before PLAN acceptance, and preserve
619
+ portable RUN references in semantic artifacts and worker packets.
620
+
621
+ ## 0.8.0-beta.27
622
+
623
+ ### Patch Changes
624
+
625
+ - Materialize grouped PLAN aspect routes as prerequisite Work, normalize RUN
626
+ source provenance, and report PLAN guidance and artifacts without external
627
+ filesystem-relative paths.
628
+
629
+ ## 0.8.0-beta.26
630
+
631
+ ### Patch Changes
632
+
633
+ - Keep PreToolUse hook rewriting scoped to one `dd-flow` invocation; compound
634
+ shell commands are recorded but never mutated.
635
+
636
+ ## 0.8.0-beta.25
637
+
638
+ ### Patch Changes
639
+
640
+ - Route a Desktop PreToolUse event to an explicitly prefixed isolated
641
+ `DD_FLOW_HOME`, so beta evals keep trusted session binding without touching
642
+ the shared runtime database.
643
+
644
+ ## 0.8.0-beta.24
645
+
646
+ ### Patch Changes
647
+
648
+ - Unify vNext Work/Turn authority, bind PLAN/CODE to trusted hook sessions,
649
+ enforce strict SPECIFY-to-PLAN traceability, and emit portable Work/usage
650
+ evidence with deterministic stage reports.
651
+
652
+ ## 0.8.0-beta.13
653
+
654
+ ### Patch Changes
655
+
656
+ - Automatically apply safe, additive internal SQLite schema updates whenever a
657
+ write-capable engine command opens an existing runtime database. This keeps
658
+ hook-event binding compatible across beta engine upgrades without treating it
659
+ as a Memory Bank data migration.
660
+
661
+ ## 0.8.0-beta.12
662
+
663
+ ### Patch Changes
664
+
665
+ - Bind vNext SPECIFY bootstrap to a one-time, fresh PreToolUse event using a
666
+ canonical invocation fingerprint when Codex Desktop ignores hook
667
+ `updatedInput` rewrites.
668
+
3
669
  ## 0.7.0
4
670
 
5
671
  ### Minor Changes
package/README.md CHANGED
@@ -97,7 +97,7 @@ dd-flow prompt render \
97
97
 
98
98
  For a non-plan worker, replace `--plan-item` with `--task-file <path>` pointing to a `dd-flow/worker-task@1` manifest inside the selected RUN home. The manifest embeds one existing plan-item-shaped `task`, so validation and rendered artifacts remain identical to the compatibility route.
99
99
 
100
- The selected item must contain `execution_context` and `semantic_spine`. The renderer accepts only registered profiles, validates the active RUN/workspace and source paths, then persists `launch-prompt.md`, `prompt-stack.json` and `render-report.json` in the RUN stage. The stack and render report both retain the validated read/discovery/write references. It records project sources as paths rather than copying their contents. `required_read` and `discovery_boundary` may use a checked `run://<relative-path>` reference for a source inside the selected RUN home; write scopes remain project-local.
100
+ The selected item must contain `execution_context` and `semantic_spine`. The renderer accepts only registered profiles, validates the active RUN/workspace and source paths, then persists `launch-prompt.md`, `prompt-stack.json` and `render-report.json` in the RUN stage. The stack and render report both retain the validated read/discovery/coordination references. It records project sources as paths rather than copying their contents. `required_read` and `discovery_boundary` may use a checked `run://<relative-path>` reference for a source inside the selected RUN home. The RUN workspace is the hard write boundary; `planned_write_areas` are optional soft hints for concurrent-work coordination, never a file allowlist.
101
101
 
102
102
  Human help is available for the operator-facing command groups:
103
103
 
@@ -362,7 +362,12 @@ Installed Codex hooks intentionally omit `--project-root`: Codex supplies the
362
362
  session `cwd` in the hook JSON on stdin, and the handler resolves the registered
363
363
  project from that path. The option remains available as a manual override. If
364
364
  the CLI is upgraded, reinstall the hook in each active `CODEX_HOME`, verify it
365
- with `dd-flow codex hooks status`, and start a new Codex session;
365
+ with `dd-flow codex hooks status`, and start a new Codex session.
366
+
367
+ The installed hook writes invocation markers, forwarded stderr, and the final
368
+ exit code to `${DD_FLOW_HOME:-$HOME/.dd-flow}/logs/codex-hook.log`. An absent
369
+ start marker means Codex did not invoke the hook; a start marker without a
370
+ successful finish marker identifies a hook launch or handler failure.
366
371
  `--project-root` belongs to installer/status commands, not the stored handler.
367
372
 
368
373
  ## Verification