perttool 0.8.1 → 0.9.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.
Files changed (139) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/README.md +100 -38
  3. package/dist/application/cli-facade.d.ts +12 -7
  4. package/dist/application/cli-facade.d.ts.map +1 -1
  5. package/dist/application/cli-facade.js +16 -7
  6. package/dist/application/cli-facade.js.map +1 -1
  7. package/dist/application/contract8-milestone-acceptance.d.ts +74 -0
  8. package/dist/application/contract8-milestone-acceptance.d.ts.map +1 -0
  9. package/dist/application/contract8-milestone-acceptance.js +185 -0
  10. package/dist/application/contract8-milestone-acceptance.js.map +1 -0
  11. package/dist/application/editor-milestone-acceptance.d.ts +75 -0
  12. package/dist/application/editor-milestone-acceptance.d.ts.map +1 -0
  13. package/dist/application/editor-milestone-acceptance.js +161 -0
  14. package/dist/application/editor-milestone-acceptance.js.map +1 -0
  15. package/dist/application/target-governance-init.d.ts +1 -1
  16. package/dist/application/target-governance-init.d.ts.map +1 -1
  17. package/dist/application/target-governance-init.js +3 -5
  18. package/dist/application/target-governance-init.js.map +1 -1
  19. package/dist/application/target-governance-project.d.ts +2 -2
  20. package/dist/application/target-governance-project.d.ts.map +1 -1
  21. package/dist/application/target-historical-graph.d.ts +3 -1
  22. package/dist/application/target-historical-graph.d.ts.map +1 -1
  23. package/dist/application/target-historical-graph.js +85 -2
  24. package/dist/application/target-historical-graph.js.map +1 -1
  25. package/dist/application/target-project-history.d.ts +10 -0
  26. package/dist/application/target-project-history.d.ts.map +1 -1
  27. package/dist/application/target-project-history.js +54 -0
  28. package/dist/application/target-project-history.js.map +1 -1
  29. package/dist/application/target-velocity-observation.d.ts +6 -1
  30. package/dist/application/target-velocity-observation.d.ts.map +1 -1
  31. package/dist/application/target-velocity-observation.js +72 -4
  32. package/dist/application/target-velocity-observation.js.map +1 -1
  33. package/dist/cli.js +377 -37
  34. package/dist/cli.js.map +1 -1
  35. package/dist/command/assurance-discovery.d.ts +4 -3
  36. package/dist/command/assurance-discovery.d.ts.map +1 -1
  37. package/dist/command/assurance-discovery.js +96 -9
  38. package/dist/command/assurance-discovery.js.map +1 -1
  39. package/dist/command/assurance-usage.js +2 -2
  40. package/dist/command/assurance-usage.js.map +1 -1
  41. package/dist/command/discovery.js +4 -4
  42. package/dist/command/discovery.js.map +1 -1
  43. package/dist/command/registry.d.ts +1 -1
  44. package/dist/command/registry.d.ts.map +1 -1
  45. package/dist/command/registry.js +2 -2
  46. package/dist/command/registry.js.map +1 -1
  47. package/dist/command/usage.d.ts.map +1 -1
  48. package/dist/command/usage.js +12 -4
  49. package/dist/command/usage.js.map +1 -1
  50. package/dist/core/index.d.ts +1 -1
  51. package/dist/core/index.d.ts.map +1 -1
  52. package/dist/help/assurance-guide.d.ts +1 -1
  53. package/dist/help/assurance-guide.d.ts.map +1 -1
  54. package/dist/help/assurance-guide.js +46 -19
  55. package/dist/help/assurance-guide.js.map +1 -1
  56. package/dist/help/guide.d.ts +1 -1
  57. package/dist/help/guide.d.ts.map +1 -1
  58. package/dist/help/registry.js +5 -5
  59. package/dist/help/registry.js.map +1 -1
  60. package/dist/history/historical-graph.d.ts +2 -0
  61. package/dist/history/historical-graph.d.ts.map +1 -1
  62. package/dist/history/historical-graph.js +98 -24
  63. package/dist/history/historical-graph.js.map +1 -1
  64. package/dist/history/milestone-acceptance-history.d.ts +59 -0
  65. package/dist/history/milestone-acceptance-history.d.ts.map +1 -0
  66. package/dist/history/milestone-acceptance-history.js +332 -0
  67. package/dist/history/milestone-acceptance-history.js.map +1 -0
  68. package/dist/index.d.ts +10 -9
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +7 -6
  71. package/dist/index.js.map +1 -1
  72. package/dist/migration/grammar-boundary.d.ts +1 -1
  73. package/dist/migration/grammar-boundary.d.ts.map +1 -1
  74. package/dist/migration/grammar-boundary.js +7 -3
  75. package/dist/migration/grammar-boundary.js.map +1 -1
  76. package/dist/milestone-acceptance/advance.d.ts +39 -0
  77. package/dist/milestone-acceptance/advance.d.ts.map +1 -0
  78. package/dist/milestone-acceptance/advance.js +112 -0
  79. package/dist/milestone-acceptance/advance.js.map +1 -0
  80. package/dist/milestone-acceptance/evaluate.d.ts +51 -0
  81. package/dist/milestone-acceptance/evaluate.d.ts.map +1 -0
  82. package/dist/milestone-acceptance/evaluate.js +114 -0
  83. package/dist/milestone-acceptance/evaluate.js.map +1 -0
  84. package/dist/milestone-acceptance/migration.d.ts +25 -0
  85. package/dist/milestone-acceptance/migration.d.ts.map +1 -0
  86. package/dist/milestone-acceptance/migration.js +76 -0
  87. package/dist/milestone-acceptance/migration.js.map +1 -0
  88. package/dist/milestone-acceptance/mutation.d.ts +49 -0
  89. package/dist/milestone-acceptance/mutation.d.ts.map +1 -0
  90. package/dist/milestone-acceptance/mutation.js +136 -0
  91. package/dist/milestone-acceptance/mutation.js.map +1 -0
  92. package/dist/milestone-acceptance/source.d.ts +83 -0
  93. package/dist/milestone-acceptance/source.d.ts.map +1 -0
  94. package/dist/milestone-acceptance/source.js +301 -0
  95. package/dist/milestone-acceptance/source.js.map +1 -0
  96. package/dist/mutation/advance-deletion.d.ts.map +1 -1
  97. package/dist/mutation/advance-deletion.js +6 -1
  98. package/dist/mutation/advance-deletion.js.map +1 -1
  99. package/dist/perttool-vscode-private-0.0.0-d1578b9.vsix +0 -0
  100. package/dist/recommendation/override-types.d.ts +2 -2
  101. package/dist/recommendation/override.d.ts +1 -1
  102. package/dist/recommendation/override.js +2 -2
  103. package/dist/schema/registry.d.ts +1 -1
  104. package/dist/schema/registry.d.ts.map +1 -1
  105. package/dist/schema/registry.js +8 -6
  106. package/dist/schema/registry.js.map +1 -1
  107. package/dist/semantic/validator.d.ts.map +1 -1
  108. package/dist/semantic/validator.js +14 -3
  109. package/dist/semantic/validator.js.map +1 -1
  110. package/dist/session/document-session.d.ts +5 -0
  111. package/dist/session/document-session.d.ts.map +1 -1
  112. package/dist/session/document-session.js +25 -2
  113. package/dist/session/document-session.js.map +1 -1
  114. package/dist/version.d.ts +1 -1
  115. package/dist/version.js +1 -1
  116. package/package.json +1 -1
  117. package/schemas/{Perttool.AdvanceResult.v2.schema.json → Perttool.AdvanceResult.v3.schema.json} +36 -5
  118. package/schemas/Perttool.AgentGuidanceResult.v1.schema.json +1 -1
  119. package/schemas/{Perttool.AnalysisResult.v5.schema.json → Perttool.AnalysisResult.v6.schema.json} +12 -5
  120. package/schemas/{Perttool.CheckResult.v4.schema.json → Perttool.CheckResult.v5.schema.json} +12 -5
  121. package/schemas/Perttool.CliError.v1.schema.json +1 -1
  122. package/schemas/Perttool.CommandHelpResult.v1.schema.json +3 -3
  123. package/schemas/Perttool.ExportResult.v1.schema.json +1 -1
  124. package/schemas/Perttool.FormatResult.v1.schema.json +1 -1
  125. package/schemas/Perttool.GuideResult.v1.schema.json +1 -1
  126. package/schemas/Perttool.HistoricalGraphResult.v1.schema.json +100 -2
  127. package/schemas/Perttool.ImportResult.v1.schema.json +1 -1
  128. package/schemas/Perttool.InitResult.v1.schema.json +1 -1
  129. package/schemas/Perttool.MilestoneAcceptanceMigrationResult.v1.schema.json +24 -0
  130. package/schemas/Perttool.MilestoneAcceptanceResult.v1.schema.json +79 -0
  131. package/schemas/{Perttool.MutationResult.v4.schema.json → Perttool.MutationResult.v5.schema.json} +4 -4
  132. package/schemas/{Perttool.NextResult.v6.schema.json → Perttool.NextResult.v7.schema.json} +12 -5
  133. package/schemas/Perttool.OverrideDecision.v1.schema.json +1 -1
  134. package/schemas/Perttool.PlanAssuranceResult.v1.schema.json +1 -1
  135. package/schemas/Perttool.ProjectHistoryResult.v1.schema.json +1 -1
  136. package/schemas/Perttool.ProjectResult.v4.schema.json +2 -2
  137. package/schemas/Perttool.SchemaResult.v1.schema.json +1 -1
  138. package/schemas/Perttool.UnitMigrationResult.v3.schema.json +5 -3
  139. package/schemas/Perttool.VelocityObservationResult.v1.schema.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,40 @@ This project records its notable changes here. The format is based on [Keep a Ch
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.1] - 2026-08-13
8
+
9
+ Backward-compatible Grammar 7 and CLI Contract 8 beta patch. This version
10
+ corrects the source binding used by current declared velocity observation.
11
+
12
+ ### Fixed
13
+
14
+ - Made `project observe-velocity --evidence declared` evaluate the exact
15
+ current operand, including a just-written uncommitted `task finish`, while
16
+ keeping `git-recorded` candidates bound to the selected first-parent
17
+ revision. `--evidence all` now preserves both sources and their digests
18
+ separately without automatically changing declared project velocity.
19
+
20
+ ## [0.9.0] - 2026-08-13
21
+
22
+ Breaking Grammar 7 and CLI Contract 8 beta minor. This version publishes
23
+ milestone outcome acceptance as a separate fact from graph closure.
24
+
25
+ ### Added
26
+
27
+ - Added Grammar 7 milestone criterion sets, caller-asserted evidence receipts,
28
+ committed migration provenance, a separate acceptance evaluator, Contract 8
29
+ results and commands, and an all-or-nothing acceptance guard for canonical
30
+ advance while retaining graph closure as a distinct fact.
31
+ - Added checkpoint-specific milestone-acceptance history to
32
+ `Perttool.HistoricalGraphResult.v1`, including exact migration provenance,
33
+ criterion and receipt epochs, and acceptance-aware canonical-advance proof.
34
+
35
+ ### Fixed
36
+
37
+ - Made consecutive terminal declaration deletions own disjoint separator-byte
38
+ ranges. This fixes Issue #11 without changing candidate bytes, assurance or
39
+ history guard meanings, or the Issue #9 EOF receipt insertion behavior.
40
+
7
41
  ## [0.8.1] - 2026-08-12
8
42
 
9
43
  Compatible Grammar 6 and CLI Contract 7 beta patch. This version corrects a
@@ -432,7 +466,9 @@ First public development preview. Intended to evaluate the DSL and CLI, read-onl
432
466
  - Not published to the npm registry; use the GitHub Release asset
433
467
  - Requires Node.js 24 or later
434
468
 
435
- [Unreleased]: https://github.com/mako10k/perttool/compare/v0.8.1...HEAD
469
+ [Unreleased]: https://github.com/mako10k/perttool/compare/v0.9.1...HEAD
470
+ [0.9.1]: https://github.com/mako10k/perttool/compare/v0.9.0...v0.9.1
471
+ [0.9.0]: https://github.com/mako10k/perttool/compare/v0.8.1...v0.9.0
436
472
  [0.8.1]: https://github.com/mako10k/perttool/compare/v0.8.0...v0.8.1
437
473
  [0.8.0]: https://github.com/mako10k/perttool/compare/v0.7.1...v0.8.0
438
474
  [0.7.1]: https://github.com/mako10k/perttool/compare/v0.7.0...v0.7.1
package/README.md CHANGED
@@ -63,27 +63,62 @@ qualified Point forecasts distinct. Layout never becomes project semantics.
63
63
  Version `0.8.1` is a backward-compatible Contract 7 patch for `dag advance`.
64
64
  It preserves assurance frontier receipts when all terminal work events belong
65
65
  to removed tasks, while retaining the `0.8.0` command, schema, package-export,
66
- and authority boundaries. Use `0.8.0` as the exact rollback pin.
66
+ and authority boundaries. It remains available by exact pin; use `0.8.0` as
67
+ the prior Contract 7 rollback pin.
68
+
69
+ Version `0.9.0` is the published Grammar 7 and CLI Contract 8
70
+ milestone-acceptance beta. It exposes 53
71
+ commands, 23 root schemas, 129 root and Node runtime exports,
72
+ `Perttool.CheckResult.v5`,
73
+ `Perttool.AnalysisResult.v6`, `Perttool.NextResult.v7`,
74
+ `Perttool.MutationResult.v5`, `Perttool.AdvanceResult.v3`, committed migration,
75
+ criterion-set replacement, caller-asserted receipts, and acceptance-aware
76
+ canonical advance. Its accepted release commit, annotated tag, GitHub
77
+ prerelease, and npm artifact agree, and npm currently reports
78
+ `beta=latest=0.9.0` with no `alpha`. Version `0.8.1` remains the exact Grammar
79
+ 6 and CLI Contract 7 rollback pin.
80
+
81
+ Version `0.9.1` is the selected compatible Contract 8 patch for `ACT-003` and
82
+ GitHub Issue #8. It makes declared velocity observation use the exact current
83
+ operand, including a just-written uncommitted finish, while keeping
84
+ Git-recorded evidence bound to the selected first-parent revision. It retains
85
+ all 53 commands, 23 root schemas, 129 root and Node exports, 45 Core exports,
86
+ result and schema identities, and authority. Source identities are prepared
87
+ as `0.9.1`; publication moves only npm `beta`, while `latest`, plan advance,
88
+ public VSIX publication, and unrelated work remain separate.
89
+
90
+ The private adapters now project that same Contract 8 acceptance model without
91
+ adding write authority. The LSP negotiates a separate version-bound milestone
92
+ acceptance result, the VSIX presents criteria, blockers, and receipt provenance
93
+ with verified source navigation, and the MCP check, analysis, and Next tools
94
+ retain acceptance in their unchanged wire v1 envelopes. The public npm package
95
+ still excludes all three private adapter workspaces.
96
+
97
+ The complete milestone-acceptance cross-surface gate passes. All milestone criteria and
98
+ receipts were separately owner-confirmed, and the completed plan was
99
+ canonically advanced from its committed pre-advance snapshot. The residual
100
+ plan has no diagnostics, remaining task, recommendation, or startable task.
101
+ Candidate acceptance, publication, and remote writes remain separate.
67
102
 
68
103
  ## Run without installing
69
104
 
70
- After beta publication, use `npx` for an occasional Contract 7 invocation and
105
+ After beta publication, use `npx` for an occasional Contract 8 invocation and
71
106
  select the version explicitly:
72
107
 
73
108
  ```sh
74
- npx --yes --package=perttool@0.8.1 -- perttool --version
75
- npx --yes --package=perttool@0.8.1 -- perttool document check PLAN.pert
76
- npx --yes --package=perttool@0.8.1 -- perttool dag next PLAN.pert --format json
77
- npx --yes --package=perttool@0.8.1 -- perttool dag history PLAN.pert --rev HEAD --format json
109
+ npx --yes --package=perttool@0.9.1 -- perttool --version
110
+ npx --yes --package=perttool@0.9.1 -- perttool document check PLAN.pert
111
+ npx --yes --package=perttool@0.9.1 -- perttool dag next PLAN.pert --format json
112
+ npx --yes --package=perttool@0.9.1 -- perttool project observe-velocity PLAN.pert --evidence declared --format json
78
113
  ```
79
114
 
80
115
  The equivalent explicit `npm exec` form is:
81
116
 
82
117
  ```sh
83
- npm exec --yes --package=perttool@0.8.1 -- perttool --version
84
- npm exec --yes --package=perttool@0.8.1 -- perttool document check PLAN.pert
85
- npm exec --yes --package=perttool@0.8.1 -- perttool dag analyze PLAN.pert
86
- npm exec --yes --package=perttool@0.8.1 -- perttool plan-assurance hash PLAN.pert WORK --kind contract
118
+ npm exec --yes --package=perttool@0.9.1 -- perttool --version
119
+ npm exec --yes --package=perttool@0.9.1 -- perttool document check PLAN.pert
120
+ npm exec --yes --package=perttool@0.9.1 -- perttool dag analyze PLAN.pert
121
+ npm exec --yes --package=perttool@0.9.1 -- perttool plan-assurance hash PLAN.pert WORK --kind contract
87
122
  ```
88
123
 
89
124
  `npx` and `npm exec` may download the selected package version into the npm
@@ -93,17 +128,19 @@ Contract 3.
93
128
 
94
129
  ## Install
95
130
 
96
- Install the additive Contract 7 CLI globally by exact version when it is used
131
+ Install the Contract 8 CLI globally by exact version when it is used
97
132
  regularly:
98
133
 
99
134
  ```sh
100
- npm install --global perttool@0.8.1
135
+ npm install --global perttool@0.9.1
101
136
  perttool --version
102
137
  ```
103
138
 
104
- The `0.8.1` release publishes the compatible correction to npm `beta` and
105
- `latest`. The exact pin remains the reproducible form for the public subpaths,
106
- historical DAG command, and corrected advance behavior.
139
+ The accepted `0.9.0` release was separately promoted to both public tags. The
140
+ `0.9.1` publication changes only npm `beta`; until an independent promotion is
141
+ authorized, an unqualified global installation continues to select `0.9.0`.
142
+ The exact `0.9.1` pin is the reproducible form for the current declared
143
+ velocity correction.
107
144
  Contract 6 remains available by exact pinning `perttool@0.6.0`; the pre-schema
108
145
  Contract 6 artifact remains available as
109
146
  `perttool@0.5.0`. Contract 5,
@@ -153,14 +190,15 @@ The protocol-neutral state contract is the
153
190
  ## Plan files
154
191
 
155
192
  A `.pert` file is the source of truth and is intended to remain directly
156
- readable. This temporal plan has one one-day task:
193
+ readable. This temporal plan has one one-day forecast from a one-Point task:
157
194
 
158
195
  ```text
159
196
  project EXAMPLE:
160
197
  version 2
161
198
  title "Example plan"
162
199
  as_of 2026-07-26
163
- duration_unit day
200
+ duration_unit point
201
+ velocity 1p/1d
164
202
  finish DONE
165
203
 
166
204
  milestone NOW:
@@ -173,7 +211,7 @@ milestone DONE:
173
211
 
174
212
  task WORK NOW -> DONE:
175
213
  title "Do the work"
176
- duration 1d
214
+ duration 1p
177
215
  not_before 2026-07-26
178
216
  deadline 2026-07-27
179
217
  ```
@@ -187,10 +225,13 @@ perttool dag analyze PLAN.pert
187
225
  perttool dag next PLAN.pert --format json
188
226
  ```
189
227
 
190
- Task duration can use deterministic `day`, `hour`, or relative `point` units.
191
- Point plans declare a project-wide velocity such as `20p/10d`. Analysis keeps
192
- the exact point result and reports the time conversion separately as a velocity
193
- forecast. Grammar version 3 also accepts an exact Fraction such as `1/3d`;
228
+ Task estimates default to relative `point` units. A Point plan may declare a
229
+ project-wide velocity such as `20p/10d`; analysis then keeps the exact Point
230
+ result and reports the time conversion separately as a velocity forecast.
231
+ Without velocity, Point analysis remains available without a time forecast.
232
+ The compatible `day` and `hour` units are deprecated and emit `PTSEM-114` with
233
+ `project migrate-unit --to-unit point` guidance. Grammar version 3 also accepts
234
+ an exact Fraction such as `1/3p`;
194
235
  versions 1 and 2 continue to accept Decimal duration tokens. Grammar version 5
195
236
  adds explicit task-owned work events and the `suspended` lifecycle state.
196
237
  Grammar version 6 adds conditional plan assurance records and the separate
@@ -206,14 +247,12 @@ smallest valid document and then create a new file exclusively:
206
247
  ```sh
207
248
  perttool project init EXAMPLE \
208
249
  --title "Example plan" \
209
- --duration-unit day \
210
250
  --initial-milestone NOW \
211
251
  --initial-milestone-title "Current frontier" \
212
252
  --finish NOW
213
253
 
214
254
  perttool project init EXAMPLE \
215
255
  --title "Example plan" \
216
- --duration-unit day \
217
256
  --initial-milestone NOW \
218
257
  --initial-milestone-title "Current frontier" \
219
258
  --finish NOW \
@@ -252,7 +291,7 @@ file. A changed in-place `dag advance` additionally verifies removed or
252
291
  replaced entity ranges against the target path in Git `HEAD` and the stage-0
253
292
  index. Dirty ranges retained by the candidate are allowed; uncommitted
254
293
  destructive overlap or unavailable proof returns `PTADV-101` without writing.
255
- `Perttool.AdvanceResult.v2.history_guard` reports the status, modification
294
+ `Perttool.AdvanceResult.v3.history_guard` reports the status, modification
256
295
  time, byte sizes, diff counts, and affected IDs before supplemental digests.
257
296
  If the source, `HEAD`, or stage-0 index changes after assessment, `PTADV-102`
258
297
  returns exit 5 without writing.
@@ -264,7 +303,9 @@ For a terminal sequence of removed tasks and task-owned work events, the same
264
303
  candidate also removes only its newly orphaned blank separator prefixes. The
265
304
  preview, separate output, and in-place write therefore remain byte-identical
266
305
  and do not require a formatter or a second whitespace edit before
267
- `git diff --check`.
306
+ `git diff --check`. Consecutive terminal assurance records and work events are
307
+ processed in source order so each separator byte belongs to at most one
308
+ deletion range.
268
309
 
269
310
  Gate maintenance uses the same base controls:
270
311
 
@@ -405,6 +446,12 @@ perttool project observe-velocity PLAN.pert \
405
446
  --task WORK --evidence declared --format json
406
447
  ```
407
448
 
449
+ Declared observations use the exact current `PLAN.pert` bytes, so a valid
450
+ uncommitted lifecycle write is visible immediately. Git-recorded observations
451
+ remain bound to the selected revision; `--evidence all` returns both as
452
+ separate candidates. JSON exposes the current operand as `source_digest` and
453
+ the selected revision as `history.source_digest`.
454
+
408
455
  Observed candidates are evidence, not automatic project metadata changes.
409
456
  Adoption, if desired, is a separate reviewed `project set --velocity` write.
410
457
  See the [Contract 5-to-6 migration
@@ -467,6 +514,7 @@ new-start authority from unsealed, review-required, or unavailable plans.
467
514
  | Maintain tasks | `perttool task add|set|remove|start|suspend|resume|finish` |
468
515
  | Maintain gates | `perttool gate add|set|remove` |
469
516
  | Maintain milestones | `perttool milestone add|set|remove` |
517
+ | Maintain milestone acceptance | `perttool milestone acceptance show|replace|verify|fail|unavailable|revoke|waive` |
470
518
  | Maintain resources | `perttool resource add|set|remove` |
471
519
  | Apply an atomic batch | `perttool batch apply` |
472
520
  | Read coding-agent guidance | `perttool agent help` |
@@ -480,8 +528,8 @@ perttool task set --help
480
528
  perttool help dag next --format json
481
529
  perttool help dag history --format json
482
530
  perttool schema --format json
483
- perttool schema Perttool.NextResult.v6 --format json
484
- perttool schema Perttool.NextResult.v6 --view outline --format json
531
+ perttool schema Perttool.NextResult.v7 --format json
532
+ perttool schema Perttool.NextResult.v7 --view outline --format json
485
533
  perttool guide editing --level detail --format json
486
534
  perttool guide historical-dag --level detail --format json
487
535
  ```
@@ -493,7 +541,7 @@ Supplying a schema identity returns its Draft 2020-12 artifact in the
493
541
  `schema` field of `Perttool.SchemaResult.v1`:
494
542
 
495
543
  ```sh
496
- perttool schema Perttool.CheckResult.v4 --format json
544
+ perttool schema Perttool.CheckResult.v5 --format json
497
545
  ```
498
546
 
499
547
  The default and `--view full` return the complete artifact. For a shorter
@@ -502,8 +550,8 @@ references to the complete bundled artifact. Pass one local, relative, or
502
550
  copied absolute reference back with `--ref` to display that internal layer:
503
551
 
504
552
  ```sh
505
- perttool schema Perttool.NextResult.v6 --view outline --format json
506
- perttool schema Perttool.NextResult.v6 --view outline \
553
+ perttool schema Perttool.NextResult.v7 --view outline --format json
554
+ perttool schema Perttool.NextResult.v7 --view outline \
507
555
  --ref '#/$defs/recommendation' --format json
508
556
  ```
509
557
 
@@ -514,12 +562,13 @@ identifier only: validation does not require network access. Consumers must
514
562
  select compatibility from each result's `schema_version`, not from
515
563
  `tool_version`. See the
516
564
  [JSON Schema Artifact Contract](docs/specs/json-schema.md) for the current
517
- 21-root source inventory and versioning rules.
565
+ 23-root source inventory and versioning rules.
518
566
 
519
567
  ## LLM and automation use
520
568
 
521
- Use `--format json` for machine consumers. Versions `0.7.0`, `0.7.1`, and
522
- `0.8.0` require
569
+ Use `--format json` for machine consumers. The current unreleased source
570
+ requires `cli_contract_version == 8`. Published versions `0.7.0`, `0.7.1`,
571
+ `0.8.0`, and `0.8.1` require
523
572
  `cli_contract_version == 7`. Published `0.6.0`, `0.5.5`, `0.5.4`, `0.5.3`,
524
573
  `0.5.2`, `0.5.1`, and `0.5.0` consumers must check
525
574
  `cli_contract_version == 6`;
@@ -543,7 +592,10 @@ rest of a result.
543
592
  Version `0.8.0` adds `dag history`, `Perttool.HistoricalGraphResult.v1`, and
544
593
  the Core and Node subpaths without changing CLI Contract 7; see the
545
594
  [`0.7.1` to `0.8.0` migration](docs/process/0.7.1-to-0.8.0-migration.md).
546
- A complete, known, non-truncated `Perttool.NextResult.v6` with policy
595
+ Version `0.8.1` retains those interfaces and corrects assurance-receipt
596
+ placement in an advance-owned terminal deletion suffix. Versions `0.9.0` and
597
+ `0.9.1` use CLI Contract 8.
598
+ A complete, known, non-truncated `Perttool.NextResult.v7` with policy
547
599
  `recommendation_v1_plus_release_gate_plus_plan_assurance_v1` is required for
548
600
  the current source. Start only task IDs in
549
601
  `temporal.authority.startable_recommended_task_ids`; do not infer start
@@ -554,8 +606,11 @@ they are not new-start recommendations.
554
606
  Mutation JSON returns the candidate text, unified diff, UTF-16 text edits,
555
607
  source digest, updated digest, diagnostics, and write result in one envelope.
556
608
  Direct, lifecycle, batch, and assurance mutations use
557
- `Perttool.MutationResult.v4`; `dag advance` uses
558
- `Perttool.AdvanceResult.v2`.
609
+ `Perttool.MutationResult.v5`; milestone acceptance mutations use that same
610
+ identity, and `dag advance` uses `Perttool.AdvanceResult.v3`. Current-source
611
+ advance requires Grammar 7; migrate a committed older document with
612
+ `perttool document migrate --target-grammar 7`, then declare criteria through
613
+ the milestone acceptance commands before relying on canonical advance.
559
614
  Unknown schema versions, incomplete recommendation traces, `PTREC-*`
560
615
  diagnostics, and future or unavailable temporal eligibility must fail closed.
561
616
 
@@ -566,14 +621,19 @@ diagnostics, and future or unavailable temporal eligibility must fail closed.
566
621
  - [Project Actuals and Git History Contract (CLI Contract 6)](docs/specs/project-actuals.md)
567
622
  - [Advance History Safety Contract (ADV-001 target)](docs/specs/advance-history-safety.md)
568
623
  - [Advance History Safety source acceptance](docs/process/advance-history-acceptance.md)
569
- - [Conditional Plan Assurance Contract (active Grammar 6 / CLI Contract 7 source)](docs/specs/plan-assurance.md)
624
+ - [Conditional Plan Assurance Contract (retained Grammar 6 / CLI Contract 7 boundary)](docs/specs/plan-assurance.md)
570
625
  - [Conditional Plan Assurance Interface Contract](docs/specs/plan-assurance-interface.md)
626
+ - [Milestone Acceptance Contract (active Grammar 7 / CLI Contract 8 source)](docs/specs/milestone-acceptance.md)
571
627
  - [Conditional Plan Assurance public-contract acceptance](docs/process/plan-assurance-public-contract-acceptance.md)
572
628
  - [`0.6.0` to `0.7.0` migration](docs/process/0.6.0-to-0.7.0-migration.md)
573
629
  - [`v0.7.0` release procedure](docs/process/0.7.0-release.md)
574
630
  - [`v0.7.1` Help and Guide consistency patch procedure](docs/process/0.7.1-release.md)
575
631
  - [`0.7.1` to `0.8.0` migration](docs/process/0.7.1-to-0.8.0-migration.md)
576
632
  - [`v0.8.0` release procedure](docs/process/0.8.0-release.md)
633
+ - [`v0.8.1` release procedure](docs/process/0.8.1-release.md)
634
+ - [`0.8.1` to `0.9.0` migration](docs/process/0.8.1-to-0.9.0-migration.md)
635
+ - [`v0.9.0` release procedure](docs/process/0.9.0-release.md)
636
+ - [`v0.9.1` release procedure](docs/process/0.9.1-release.md)
577
637
  - [Conditional Plan Assurance interface acceptance](docs/process/plan-assurance-interface-acceptance.md)
578
638
  - [Shared Library Boundary](docs/specs/shared-library.md)
579
639
  - [Editor Protocol Contract](docs/specs/editor-protocol.md)
@@ -596,6 +656,8 @@ diagnostics, and future or unavailable temporal eligibility must fail closed.
596
656
  - [Help and Guide consistency implementation plan](plans/help-guide-consistency.pert)
597
657
  - [`v0.7.1` release plan](plans/release-0.7.1.pert)
598
658
  - [`v0.8.0` release plan](plans/release-0.8.0.pert)
659
+ - [`v0.9.0` release plan](plans/release-0.9.0.pert)
660
+ - [`v0.9.1` release plan](plans/release-0.9.1.pert)
599
661
  - [JSON Schema Artifact Contract](docs/specs/json-schema.md)
600
662
  - [JSON Schema source acceptance](docs/process/json-schema-acceptance.md)
601
663
  - [Contract 5-to-6 migration](docs/process/cli-contract-6-migration.md)
@@ -1,21 +1,20 @@
1
1
  import type { CreateDocumentOptions, DocumentWriteResult, ReplaceDocumentOptions } from "../io/safe-write.js";
2
2
  import type { TargetGrammar6Capability } from "../parser/document-parser.js";
3
3
  import type { NodeHostPorts } from "../ports/node-host.js";
4
- import { analyzeDocument, checkDocument, selectNextTasks } from "./contract7-assurance.js";
5
- import { planAdvance, planAssuranceMutation, planBatchMutation, planFinishActuals, planLifecycle, planMutation } from "./contract7-mutation.js";
6
- import { getProjectMetadata, contract7ProjectResultToJson, renderContract7ProjectText } from "./contract7-project.js";
4
+ import { analyzeDocument, checkDocument, getProjectMetadata, planAssuranceMutation, planBatchMutation, planFinishActuals, planFormat, planLifecycle, planMutation, planUnitMigration, selectNextTasks } from "./contract8-milestone-acceptance.js";
5
+ import { planAdvance } from "./contract7-mutation.js";
6
+ import { contract7ProjectResultToJson, renderContract7ProjectText } from "./contract7-project.js";
7
7
  import { contract7InspectionResultToJson, contract7MutationResultToJson, contract7SnakeJson } from "./contract7-projection.js";
8
- import { planFormat } from "./contract7-source.js";
9
- import { planUnitMigration, withUnitMigrationWrite } from "./contract7-unit-migration.js";
8
+ import { withUnitMigrationWrite } from "./contract7-unit-migration.js";
10
9
  import { contract6WorkEventToJson } from "./contract6-projection.js";
11
10
  import { getAgentHelp } from "./agent-help.js";
12
- import { renderAdvanceHistoryGuard } from "./advance-history.js";
11
+ import { renderAdvanceHistoryGuard, withAdvanceHistoryRace } from "./advance-history.js";
13
12
  import { planProjectInit, projectInitResultToJson, renderProjectInitResult, withProjectInitOutput } from "./init.js";
14
13
  import { prepareTargetPlanAssuranceAdvanceHistory, withTargetPlanAssuranceAdvanceHistoryRace, type TargetPlanAssuranceAdvanceHistoryOptions, type TargetPlanAssuranceAdvanceResultV2WithHistory } from "./target-assurance-advance-history.js";
15
14
  import { inspectTargetPlanAssurance } from "./target-assurance-inspection.js";
16
15
  import { type TargetPlanAssurancePersistenceRequest, type TargetPlanAssuranceWritableResult } from "./target-assurance-write.js";
17
16
  import { renderTargetGovernanceDecision } from "./target-governance-projection.js";
18
- import { renderTargetProjectHistoryText, targetProjectHistoryResultToJson, type TargetProjectHistoryFileRequest } from "./target-project-history.js";
17
+ import { inspectTargetCurrentProjectActuals, renderTargetProjectHistoryText, targetProjectHistoryResultToJson, type TargetProjectHistoryFileRequest } from "./target-project-history.js";
19
18
  import { observeTargetProjectVelocity, renderTargetVelocityObservationText, targetVelocityObservationResultToJson } from "./target-velocity-observation.js";
20
19
  import { renderTargetHistoricalGraphText, targetHistoricalGraphResultToJson, type HistoricalGraphGitEvidencePortV1, type HistoricalGraphRequestV1 } from "./target-historical-graph.js";
21
20
  /**
@@ -51,9 +50,12 @@ export declare function createCliApplicationFacade(host: NodeHostPorts, historic
51
50
  contract6WorkEventToJson: typeof contract6WorkEventToJson;
52
51
  renderAdvanceHistoryGuard: typeof renderAdvanceHistoryGuard;
53
52
  prepareTargetPlanAssuranceAdvanceHistory: (text: string, result: Parameters<typeof prepareTargetPlanAssuranceAdvanceHistory>[1], capability: TargetGrammar6Capability, options: TargetPlanAssuranceAdvanceHistoryOptions) => Promise<import("./target-assurance-advance-history.js").PreparedTargetPlanAssuranceAdvanceHistory>;
53
+ prepareAdvanceHistory: (text: string, result: import("./advance-history.js").AdvanceResultV1 | import("./target-actuals-advance.js").TargetActualsAdvanceResultV3, options: import("./advance-history.js").AdvanceHistoryPreparationOptions) => Promise<import("./advance-history.js").PreparedAdvanceHistory>;
54
+ withAdvanceHistoryRace: typeof withAdvanceHistoryRace;
54
55
  withTargetPlanAssuranceAdvanceHistoryRace: typeof withTargetPlanAssuranceAdvanceHistoryRace;
55
56
  persistTargetPlanAssuranceResult: (result: TargetPlanAssuranceWritableResult, capability: TargetGrammar6Capability, request: TargetPlanAssurancePersistenceRequest) => Promise<import("./target-assurance-write.js").TargetPlanAssuranceWriteProjection>;
56
57
  inspectTargetPlanAssurance: typeof inspectTargetPlanAssurance;
58
+ inspectTargetCurrentProjectActuals: typeof inspectTargetCurrentProjectActuals;
57
59
  inspectTargetProjectHistoryFile: (request: TargetProjectHistoryFileRequest, capability: TargetGrammar6Capability) => Promise<import("./target-project-history.js").TargetProjectHistoryResultV1>;
58
60
  renderTargetProjectHistoryText: typeof renderTargetProjectHistoryText;
59
61
  targetProjectHistoryResultToJson: typeof targetProjectHistoryResultToJson;
@@ -76,9 +78,12 @@ export declare function createCliApplicationFacade(host: NodeHostPorts, historic
76
78
  }>>;
77
79
  readBytes: (path: string) => Promise<Uint8Array>;
78
80
  recheckAdvanceHistoryBaseline: (baseline: import("../history/git-probe.js").AdvanceHistoryBaselineCapture, targetPath: string, dependencies?: import("../history/git-probe.js").AdvanceHistoryBaselineDependencies) => Promise<import("../history/git-probe.js").AdvanceHistoryBaselineRecheck>;
81
+ captureAdvanceHistoryBaseline: (request: import("../history/git-probe.js").AdvanceHistoryBaselineRequest, dependencies?: import("../history/git-probe.js").AdvanceHistoryBaselineDependencies) => Promise<import("../history/git-probe.js").AdvanceHistoryBaselineCapture>;
79
82
  createArtifactFile: (target: string, artifact: string, options?: import("../io/safe-write.js").CreateArtifactOptions) => Promise<DocumentWriteResult>;
83
+ createValidatedDocumentFile: (target: string, candidateText: string, validator: import("../io/safe-write.js").DocumentCandidateValidator, options?: CreateDocumentOptions) => Promise<DocumentWriteResult>;
80
84
  createTargetGrammar6DocumentFile: (target: string, candidateText: string, capability: TargetGrammar6Capability, options?: CreateDocumentOptions) => Promise<DocumentWriteResult>;
81
85
  replaceTargetGrammar6DocumentFile: (target: string, candidateText: string, capability: TargetGrammar6Capability, options: ReplaceDocumentOptions) => Promise<DocumentWriteResult>;
86
+ replaceValidatedDocumentFile: (target: string, candidateText: string, options: ReplaceDocumentOptions, validator: import("../io/safe-write.js").DocumentCandidateValidator) => Promise<DocumentWriteResult>;
82
87
  }>;
83
88
  export type CliApplicationFacade = ReturnType<typeof createCliApplicationFacade>;
84
89
  export type { TargetPlanAssuranceAdvanceResultV2WithHistory, };
@@ -1 +1 @@
1
- {"version":3,"file":"cli-facade.d.ts","sourceRoot":"","sources":["../../src/application/cli-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MA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MAAM,UACJ,UAAU,CAAC,OAAO,wCAAwC,CAAC,CAAC,CAAC,CAAC,cAC1D,wBAAwB,WAC3B,wCAAwC;;;;+CAiBzC,iCAAiC,cAC7B,wBAAwB,WAC3B,qCAAqC;;;+CA/BrC,+BAA+B,cAC5B,wBAAwB;;;;;;gDAsC3B,wBAAwB;;;;sCAmDC,UAAU;;;;;gCAnHL,MAAM;;;;;;;;;;+CAGrC,MAAM,iBACC,MAAM,cACT,wBAAwB,YAC3B,qBAAqB,KAC7B,OAAO,CAAC,mBAAmB,CAAC;gDAOrB,MAAM,iBACC,MAAM,cACT,wBAAwB,WAC3B,sBAAsB,KAC9B,OAAO,CAAC,mBAAmB,CAAC;;GA6GhC;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC3C,OAAO,0BAA0B,CAClC,CAAC;AAEF,YAAY,EACV,6CAA6C,GAC9C,CAAC"}
@@ -1,19 +1,18 @@
1
1
  import { validateTargetGrammar6Document, } from "../semantic/target-validator.js";
2
- import { analyzeDocument, checkDocument, selectNextTasks, } from "./contract7-assurance.js";
3
- import { planAdvance, planAssuranceMutation, planBatchMutation, planFinishActuals, planLifecycle, planMutation, } from "./contract7-mutation.js";
4
- import { getProjectMetadata, contract7ProjectResultToJson, renderContract7ProjectText, } from "./contract7-project.js";
2
+ import { analyzeDocument, checkDocument, getProjectMetadata, planAssuranceMutation, planBatchMutation, planFinishActuals, planFormat, planLifecycle, planMutation, planUnitMigration, selectNextTasks, } from "./contract8-milestone-acceptance.js";
3
+ import { planAdvance, } from "./contract7-mutation.js";
4
+ import { contract7ProjectResultToJson, renderContract7ProjectText, } from "./contract7-project.js";
5
5
  import { contract7InspectionResultToJson, contract7MutationResultToJson, contract7SnakeJson, } from "./contract7-projection.js";
6
- import { planFormat, } from "./contract7-source.js";
7
- import { planUnitMigration, withUnitMigrationWrite, } from "./contract7-unit-migration.js";
6
+ import { withUnitMigrationWrite, } from "./contract7-unit-migration.js";
8
7
  import { contract6WorkEventToJson, } from "./contract6-projection.js";
9
8
  import { getAgentHelp, } from "./agent-help.js";
10
- import { renderAdvanceHistoryGuard, } from "./advance-history.js";
9
+ import { prepareAdvanceHistory as prepareGenericAdvanceHistory, renderAdvanceHistoryGuard, withAdvanceHistoryRace, } from "./advance-history.js";
11
10
  import { planProjectInit, projectInitResultToJson, renderProjectInitResult, withProjectInitOutput, } from "./init.js";
12
11
  import { prepareTargetPlanAssuranceAdvanceHistory, withTargetPlanAssuranceAdvanceHistoryRace, } from "./target-assurance-advance-history.js";
13
12
  import { inspectTargetPlanAssurance, } from "./target-assurance-inspection.js";
14
13
  import { persistTargetPlanAssuranceResult, } from "./target-assurance-write.js";
15
14
  import { renderTargetGovernanceDecision, } from "./target-governance-projection.js";
16
- import { inspectTargetProjectHistoryFile, renderTargetProjectHistoryText, targetProjectHistoryResultToJson, } from "./target-project-history.js";
15
+ import { inspectTargetCurrentProjectActuals, inspectTargetProjectHistoryFile, renderTargetProjectHistoryText, targetProjectHistoryResultToJson, } from "./target-project-history.js";
17
16
  import { observeTargetProjectVelocity, renderTargetVelocityObservationText, targetVelocityObservationResultToJson, } from "./target-velocity-observation.js";
18
17
  import { inspectTargetHistoricalGraphFile, renderTargetHistoricalGraphText, targetHistoricalGraphResultToJson, } from "./target-historical-graph.js";
19
18
  function grammar6Validator(capability) {
@@ -48,6 +47,10 @@ export function createCliApplicationFacade(host, historicalGitEvidence) {
48
47
  ...options,
49
48
  captureBaseline: host.gitEvidence.captureAdvanceBaseline,
50
49
  });
50
+ const prepareGenericHistory = (...args) => prepareGenericAdvanceHistory(args[0], args[1], {
51
+ ...args[2],
52
+ captureBaseline: host.gitEvidence.captureAdvanceBaseline,
53
+ });
51
54
  const persistPlanAssuranceResult = (result, capability, request) => persistTargetPlanAssuranceResult(result, capability, request, host.safePersistence);
52
55
  const inspectHistoricalGraphFile = (request) => {
53
56
  if (historicalGitEvidence === undefined) {
@@ -83,9 +86,12 @@ export function createCliApplicationFacade(host, historicalGitEvidence) {
83
86
  contract6WorkEventToJson,
84
87
  renderAdvanceHistoryGuard,
85
88
  prepareTargetPlanAssuranceAdvanceHistory: prepareAdvanceHistory,
89
+ prepareAdvanceHistory: prepareGenericHistory,
90
+ withAdvanceHistoryRace,
86
91
  withTargetPlanAssuranceAdvanceHistoryRace,
87
92
  persistTargetPlanAssuranceResult: persistPlanAssuranceResult,
88
93
  inspectTargetPlanAssurance,
94
+ inspectTargetCurrentProjectActuals,
89
95
  inspectTargetProjectHistoryFile: inspectProjectHistoryFile,
90
96
  renderTargetProjectHistoryText,
91
97
  targetProjectHistoryResultToJson,
@@ -100,9 +106,12 @@ export function createCliApplicationFacade(host, historicalGitEvidence) {
100
106
  readDocumentContent,
101
107
  readBytes: host.documentBytes.read,
102
108
  recheckAdvanceHistoryBaseline: host.gitEvidence.recheckAdvanceBaseline,
109
+ captureAdvanceHistoryBaseline: host.gitEvidence.captureAdvanceBaseline,
103
110
  createArtifactFile: host.safePersistence.createArtifact,
111
+ createValidatedDocumentFile: host.safePersistence.createValidatedDocument,
104
112
  createTargetGrammar6DocumentFile: createTargetGrammar6Document,
105
113
  replaceTargetGrammar6DocumentFile: replaceTargetGrammar6Document,
114
+ replaceValidatedDocumentFile: host.safePersistence.replaceValidatedDocument,
106
115
  });
107
116
  }
108
117
  //# sourceMappingURL=cli-facade.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli-facade.js","sourceRoot":"","sources":["../../src/application/cli-facade.ts"],"names":[],"mappings":"AASA,OAAO,EACL,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,eAAe,EACf,aAAa,EACb,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC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A+B;QAC/B,iCAAiC;QACjC,YAAY;QACZ,wBAAwB,EAAE,CAAC,KAAiB,EAAE,EAAE,CAC9C,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC;QAClC,mBAAmB;QACnB,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;QAClC,6BAA6B,EAAE,IAAI,CAAC,WAAW,CAAC,sBAAsB;QACtE,kBAAkB,EAAE,IAAI,CAAC,eAAe,CAAC,cAAc;QACvD,gCAAgC,EAAE,4BAA4B;QAC9D,iCAAiC,EAAE,6BAA6B;KACjE,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"cli-facade.js","sourceRoot":"","sources":["../../src/application/cli-facade.ts"],"names":[],"mappings":"AASA,OAAO,EACL,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qBAAqB,IAAI,4BAA4B,EACrD,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAA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AAmB;QACnB,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;QAClC,6BAA6B,EAAE,IAAI,CAAC,WAAW,CAAC,sBAAsB;QACtE,6BAA6B,EAAE,IAAI,CAAC,WAAW,CAAC,sBAAsB;QACtE,kBAAkB,EAAE,IAAI,CAAC,eAAe,CAAC,cAAc;QACvD,2BAA2B,EAAE,IAAI,CAAC,eAAe,CAAC,uBAAuB;QACzE,gCAAgC,EAAE,4BAA4B;QAC9D,iCAAiC,EAAE,6BAA6B;QAChE,4BAA4B,EAAE,IAAI,CAAC,eAAe,CAAC,wBAAwB;KAC5E,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { type MilestoneAcceptanceModelResultV1 } from "../milestone-acceptance/evaluate.js";
2
+ import type { AnalyzeOptions } from "./analyze.js";
3
+ import { planFormat as planContract7Format, type FormatPreviewResultV7 } from "./contract7-source.js";
4
+ import { type UnitMigrationOptions, type UnitMigrationResult } from "./contract7-unit-migration.js";
5
+ import type { NextOptions } from "./next.js";
6
+ import type { UnitMigrationRequest } from "../migration/request.js";
7
+ import { checkDocument as checkContract7Document, type AnalysisResultV5, type CheckResultV4, type Contract7NextResultV6 } from "./contract7-assurance.js";
8
+ import { planAssuranceMutation as planContract7AssuranceMutation, planBatchMutation as planContract7BatchMutation, planFinishActuals as planContract7FinishActuals, planLifecycle as planContract7Lifecycle, planMutation as planContract7Mutation, type AdvanceResultV2, type LifecycleResultV4, type MutationResultV4 } from "./contract7-mutation.js";
9
+ import { type ProjectMetadataResult } from "./contract7-project.js";
10
+ import type { CheckOptions } from "./check.js";
11
+ export declare const CHECK_RESULT_V5: "Perttool.CheckResult.v5";
12
+ export declare const ANALYSIS_RESULT_V6: "Perttool.AnalysisResult.v6";
13
+ export declare const NEXT_RESULT_V7: "Perttool.NextResult.v7";
14
+ export interface CheckResultV5 extends Omit<CheckResultV4, "schemaVersion"> {
15
+ readonly schemaVersion: typeof CHECK_RESULT_V5;
16
+ readonly acceptance: MilestoneAcceptanceModelResultV1 | null;
17
+ }
18
+ export interface AnalysisResultV6 extends Omit<AnalysisResultV5, "schemaVersion"> {
19
+ readonly schemaVersion: typeof ANALYSIS_RESULT_V6;
20
+ readonly acceptance: MilestoneAcceptanceModelResultV1 | null;
21
+ }
22
+ export type NextResultV7 = Omit<Contract7NextResultV6, "schemaVersion"> & {
23
+ readonly schemaVersion: typeof NEXT_RESULT_V7;
24
+ readonly acceptance: MilestoneAcceptanceModelResultV1 | null;
25
+ };
26
+ export interface Contract8CandidateOptions {
27
+ readonly originalLabel?: string;
28
+ readonly updatedLabel?: string;
29
+ }
30
+ export type Contract8LiftedCandidate<T> = T extends {
31
+ readonly schemaVersion: "Perttool.MutationResult.v4";
32
+ } ? Omit<T, "schemaVersion"> & {
33
+ readonly schemaVersion: "Perttool.MutationResult.v5";
34
+ } : T extends {
35
+ readonly schemaVersion: "Perttool.AdvanceResult.v2";
36
+ } ? Omit<T, "schemaVersion"> & {
37
+ readonly schemaVersion: "Perttool.AdvanceResult.v3";
38
+ } : T;
39
+ export type MutationResultV5 = Contract8LiftedCandidate<MutationResultV4>;
40
+ export type LifecycleResultV5 = Contract8LiftedCandidate<LifecycleResultV4>;
41
+ export type AdvanceResultV3 = Contract8LiftedCandidate<AdvanceResultV2>;
42
+ export declare function liftMilestoneAcceptanceCandidate<T extends {
43
+ readonly originalDigest: string;
44
+ readonly updatedDigest: string | null;
45
+ readonly updatedText: string | null;
46
+ readonly diff: string | null;
47
+ readonly edits: readonly {
48
+ readonly startOffset: number;
49
+ readonly endOffset: number;
50
+ readonly replacement: string;
51
+ }[];
52
+ }>(text: string, planner: (baseText: string) => T, options?: Contract8CandidateOptions): Contract8LiftedCandidate<T>;
53
+ export declare function checkDocument(text: string, options?: Parameters<typeof checkContract7Document>[1]): CheckResultV5;
54
+ export declare function analyzeDocument(text: string, options?: AnalyzeOptions): AnalysisResultV6;
55
+ export declare function selectNextTasks(text: string, options?: AnalyzeOptions & NextOptions): NextResultV7;
56
+ export declare function getProjectMetadata(text: string, options?: CheckOptions): ProjectMetadataResult;
57
+ export declare function planFormat(text: string, options?: Parameters<typeof planContract7Format>[1]): FormatPreviewResultV7;
58
+ export declare function planUnitMigration(text: string, request: UnitMigrationRequest, options?: UnitMigrationOptions): UnitMigrationResult;
59
+ export declare function planMutation(...args: Parameters<typeof planContract7Mutation>): Omit<import("../assurance/mutation.js").TargetPlanAssuranceMutationResultV4, "schemaVersion"> & {
60
+ readonly schemaVersion: "Perttool.MutationResult.v5";
61
+ };
62
+ export declare function planBatchMutation(...args: Parameters<typeof planContract7BatchMutation>): Omit<import("../assurance/mutation.js").TargetPlanAssuranceMutationResultV4, "schemaVersion"> & {
63
+ readonly schemaVersion: "Perttool.MutationResult.v5";
64
+ };
65
+ export declare function planLifecycle(...args: Parameters<typeof planContract7Lifecycle>): Omit<LifecycleResultV4, "schemaVersion"> & {
66
+ readonly schemaVersion: "Perttool.MutationResult.v5";
67
+ };
68
+ export declare function planFinishActuals(...args: Parameters<typeof planContract7FinishActuals>): Omit<LifecycleResultV4, "schemaVersion"> & {
69
+ readonly schemaVersion: "Perttool.MutationResult.v5";
70
+ };
71
+ export declare function planAssuranceMutation(...args: Parameters<typeof planContract7AssuranceMutation>): Omit<import("../assurance/mutation.js").TargetPlanAssuranceMutationResultV4, "schemaVersion"> & {
72
+ readonly schemaVersion: "Perttool.MutationResult.v5";
73
+ };
74
+ //# sourceMappingURL=contract8-milestone-acceptance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract8-milestone-acceptance.d.ts","sourceRoot":"","sources":["../../src/application/contract8-milestone-acceptance.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AAUzH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,UAAU,IAAI,mBAAmB,EACjC,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC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