ultra-builder-pro-cli 5.0.0 → 6.0.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 (159) hide show
  1. package/CHANGELOG.md +113 -3
  2. package/README.md +67 -478
  3. package/README.zh-CN.md +49 -422
  4. package/adapters/_shared/frontmatter.cjs +1 -18
  5. package/adapters/_shared/plugin-core.cjs +17 -83
  6. package/adapters/_shared/runtime-assets.cjs +6 -120
  7. package/adapters/claude.js +8 -24
  8. package/adapters/codex.js +16 -38
  9. package/bin/install.js +35 -57
  10. package/docs/PLUGIN-ISOLATION-CONTRACT.md +13 -101
  11. package/docs/examples/drive/claude-reviewer.sh +53 -0
  12. package/docs/examples/drive/claude-writer.sh +43 -0
  13. package/engine/FORMATS.md +1051 -0
  14. package/engine/checks.cjs +139 -0
  15. package/engine/cli.cjs +148 -0
  16. package/engine/completion.cjs +48 -0
  17. package/engine/context.cjs +94 -0
  18. package/engine/drive.cjs +220 -0
  19. package/engine/expect-worker.cjs +5 -0
  20. package/engine/expect.cjs +33 -0
  21. package/engine/formats.cjs +189 -0
  22. package/engine/git-state.cjs +112 -0
  23. package/engine/ledger.cjs +205 -0
  24. package/engine/loading.cjs +28 -0
  25. package/engine/merge.cjs +273 -0
  26. package/engine/milestone.cjs +89 -0
  27. package/engine/plan.cjs +232 -0
  28. package/engine/project.cjs +5 -0
  29. package/engine/signals.cjs +3 -0
  30. package/engine/states.cjs +175 -0
  31. package/hooks/session-start.cjs +54 -0
  32. package/package.json +17 -52
  33. package/skills/ultra/SKILL.md +395 -0
  34. package/.ultra-template/changes/abandoned/.gitkeep +0 -0
  35. package/.ultra-template/changes/active/.gitkeep +0 -1
  36. package/.ultra-template/changes/archive/.gitkeep +0 -1
  37. package/.ultra-template/contexts/TEMPLATE.md +0 -135
  38. package/.ultra-template/decisions/.gitkeep +0 -1
  39. package/.ultra-template/evidence/.gitkeep +0 -1
  40. package/.ultra-template/north-star.md +0 -52
  41. package/.ultra-template/project-brief.md +0 -28
  42. package/.ultra-template/research/.gitkeep +0 -1
  43. package/.ultra-template/specs/architecture.md +0 -81
  44. package/.ultra-template/specs/discovery.md +0 -74
  45. package/.ultra-template/specs/product.md +0 -80
  46. package/.ultra-template/specs/research-distillate.md +0 -57
  47. package/.ultra-template/tasks.json +0 -4
  48. package/.ultra-template/test-report.json +0 -44
  49. package/adapters/_shared/host-profile.cjs +0 -5
  50. package/adapters/grok.js +0 -242
  51. package/adapters/kimi.js +0 -232
  52. package/adapters/opencode.js +0 -408
  53. package/adapters/zcode.js +0 -375
  54. package/bin/delegate-worker.cjs +0 -5
  55. package/bin/delegate.cjs +0 -5
  56. package/docs/ARCHITECTURE.md +0 -274
  57. package/docs/ARTIFACT-AUTHORITY.md +0 -305
  58. package/docs/DECISIONS.md +0 -229
  59. package/docs/PHILOSOPHY.md +0 -261
  60. package/docs/RUNTIME-COMPAT-MATRIX.md +0 -315
  61. package/docs/SKILL-AUTHORING.md +0 -113
  62. package/docs/WORKFLOW-LIFECYCLE.md +0 -350
  63. package/docs/evals/adversarial-review-2026-08-14.md +0 -84
  64. package/docs/evals/ultra-5-0-journey-results.md +0 -62
  65. package/docs/evals/ultra-5-0-live-acp-conformance.md +0 -93
  66. package/docs/evals/ultra-5-0-route-journeys.md +0 -145
  67. package/docs/evals/zcode-automation-2026-08-14.md +0 -103
  68. package/hooks/README.md +0 -52
  69. package/hooks/_common.py +0 -1779
  70. package/hooks/adapters/codex.py +0 -295
  71. package/hooks/adapters/grok.py +0 -134
  72. package/hooks/adapters/kimi.py +0 -156
  73. package/hooks/adapters/zcode.py +0 -227
  74. package/hooks/block_dangerous_commands.py +0 -201
  75. package/hooks/compact_context.py +0 -224
  76. package/hooks/mid_workflow_recall.py +0 -47
  77. package/hooks/post_edit_guard.py +0 -215
  78. package/hooks/session_context.py +0 -741
  79. package/skills/ultra-change/SKILL.md +0 -165
  80. package/skills/ultra-change/references/change-contract.md +0 -199
  81. package/skills/ultra-change/references/execution-grant.md +0 -109
  82. package/skills/ultra-change/references/primary-transfer.md +0 -273
  83. package/skills/ultra-change/scripts/validate_primary_transfer.cjs +0 -1928
  84. package/skills/ultra-delegate/SKILL.md +0 -195
  85. package/skills/ultra-delegate/patches/zcode-acp-0.1.0-zcode-0.16.5.patch +0 -184
  86. package/skills/ultra-delegate/references/delegation-contract.md +0 -138
  87. package/skills/ultra-delegate/scripts/acp-conformance.cjs +0 -287
  88. package/skills/ultra-delegate/scripts/acp-driver.cjs +0 -762
  89. package/skills/ultra-delegate/scripts/agent-execution-driver.cjs +0 -320
  90. package/skills/ultra-delegate/scripts/cli-driver.cjs +0 -61
  91. package/skills/ultra-delegate/scripts/delegate-profiles/kimi-read-only.md +0 -15
  92. package/skills/ultra-delegate/scripts/delegate-profiles/kimi-write.md +0 -17
  93. package/skills/ultra-delegate/scripts/delegate-worker.cjs +0 -328
  94. package/skills/ultra-delegate/scripts/delegate.cjs +0 -690
  95. package/skills/ultra-delegate/scripts/delegate_wait.py +0 -86
  96. package/skills/ultra-delegate/scripts/host-profile.cjs +0 -267
  97. package/skills/ultra-deliver/SKILL.md +0 -194
  98. package/skills/ultra-deliver/references/baseline-reconciliation.md +0 -41
  99. package/skills/ultra-dev/SKILL.md +0 -265
  100. package/skills/ultra-dev/references/debugging.md +0 -22
  101. package/skills/ultra-domain-modeling/SKILL.md +0 -79
  102. package/skills/ultra-grilling/SKILL.md +0 -121
  103. package/skills/ultra-grilling/references/reframing.md +0 -76
  104. package/skills/ultra-init/SKILL.md +0 -143
  105. package/skills/ultra-init/references/brownfield-adoption.md +0 -32
  106. package/skills/ultra-init/scripts/init_project.cjs +0 -1031
  107. package/skills/ultra-plan/SKILL.md +0 -160
  108. package/skills/ultra-plan/references/task-evidence-v2.md +0 -300
  109. package/skills/ultra-plan/scripts/validate_task_evidence.cjs +0 -859
  110. package/skills/ultra-research/SKILL.md +0 -167
  111. package/skills/ultra-research/references/00-problem-validation.md +0 -36
  112. package/skills/ultra-research/references/01-opportunity-discovery.md +0 -33
  113. package/skills/ultra-research/references/02-market-assessment.md +0 -31
  114. package/skills/ultra-research/references/03-alternatives.md +0 -31
  115. package/skills/ultra-research/references/04-product-strategy.md +0 -41
  116. package/skills/ultra-research/references/05-assumptions-validation.md +0 -31
  117. package/skills/ultra-research/references/10-user-personas.md +0 -30
  118. package/skills/ultra-research/references/11-user-scenarios.md +0 -28
  119. package/skills/ultra-research/references/20-user-stories.md +0 -31
  120. package/skills/ultra-research/references/21-features-scope.md +0 -38
  121. package/skills/ultra-research/references/22-success-metrics.md +0 -33
  122. package/skills/ultra-research/references/30-architecture-context.md +0 -30
  123. package/skills/ultra-research/references/31-solution-strategy.md +0 -28
  124. package/skills/ultra-research/references/32-building-blocks.md +0 -28
  125. package/skills/ultra-research/references/40-deployment.md +0 -29
  126. package/skills/ultra-research/references/41-quality-risks.md +0 -28
  127. package/skills/ultra-research/references/99-synthesis.md +0 -59
  128. package/skills/ultra-research/references/north-star-v2.md +0 -168
  129. package/skills/ultra-research/references/wayfinding.md +0 -50
  130. package/skills/ultra-research/scripts/validate_north_star.cjs +0 -1174
  131. package/skills/ultra-review/SKILL.md +0 -275
  132. package/skills/ultra-review/references/adversarial-evaluation.md +0 -31
  133. package/skills/ultra-review/references/code.md +0 -17
  134. package/skills/ultra-review/references/comments.md +0 -12
  135. package/skills/ultra-review/references/design.md +0 -12
  136. package/skills/ultra-review/references/errors.md +0 -13
  137. package/skills/ultra-review/references/review-modes.md +0 -29
  138. package/skills/ultra-review/references/spec.md +0 -18
  139. package/skills/ultra-review/references/tests.md +0 -12
  140. package/skills/ultra-review/references/unified-schema.md +0 -284
  141. package/skills/ultra-review/references/worker-packet.md +0 -183
  142. package/skills/ultra-review/scripts/review_wait.py +0 -2943
  143. package/skills/ultra-status/SKILL.md +0 -209
  144. package/skills/ultra-status/references/route-contract.md +0 -100
  145. package/skills/ultra-tdd/SKILL.md +0 -91
  146. package/skills/ultra-tdd/references/templates/README.md +0 -20
  147. package/skills/ultra-tdd/references/templates/feature-flag-default-audit.sh +0 -79
  148. package/skills/ultra-tdd/references/templates/persistence-real.ts +0 -78
  149. package/skills/ultra-tdd/references/templates/testcontainer-postgres.py +0 -78
  150. package/skills/ultra-tdd/references/templates/testcontainer-postgres.ts +0 -73
  151. package/skills/ultra-tdd/references/templates/vertical-slice.ts +0 -66
  152. package/skills/ultra-tdd/references/test-execution.md +0 -23
  153. package/skills/ultra-test/SKILL.md +0 -244
  154. package/skills/ultra-test/references/export-syntax.md +0 -18
  155. package/skills/ultra-test/scripts/validate_review_transport.cjs +0 -549
  156. package/skills/ultra-test/scripts/worktree_digest.cjs +0 -576
  157. package/skills/ultra-think/SKILL.md +0 -56
  158. package/skills/ultra-think/references/autonomy-boundary.md +0 -48
  159. package/skills/ultra-think/references/interaction-boundary.md +0 -42
package/CHANGELOG.md CHANGED
@@ -5,7 +5,117 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [Unreleased]
8
+ ## [6.0.0] — 2026-11-04
9
+
10
+ - Start in Claude Code with `/ultra` (full name `/ultra-builder-pro:ultra`),
11
+ or in Codex with `$ultra-builder-pro:ultra`.
12
+ - Ship one `ultra` method, the deterministic `ubp` engine and one Node SessionStart
13
+ observer for Claude Code and Codex. Each plugin carries its own engine.
14
+ - Remove the fourteen 5.x Skills, five Python hooks, old project template, and the
15
+ OpenCode, Kimi, Grok and ZCode adapters.
16
+ - Remove `run`, `delegate`, ACP/Pi execution, durable grants and wake-up machinery,
17
+ together with their dedicated tests, fixtures, evaluations and obsolete documentation.
18
+ Multiple next-step authorities conflicted with the single v6 method and computed status.
19
+ - Keep the old workflows recoverable from Git history and the published 5.0.1 package
20
+ (5.0.2 was never published);
21
+ existing 5.x project files are not automatically migrated.
22
+ - Decision: `.ultra/decisions/2026-11-01-v6-product-shape.md` in the source repository.
23
+ Release verification uses Node tests and the production dependency audit, without pytest.
24
+ - Add `ubp drive --writer <command> [--reviewer <command>]`: an unattended controller loop
25
+ that compiles each node's brief, runs the writer, verifies truth files, history, a clean
26
+ tree, scope, check files, the plan gate and the ratchet, runs the reviewer once at the
27
+ milestone gate, and stops wherever a person must judge. It never closes a milestone or
28
+ approves anything. Headless Claude Code writer and reviewer examples ship in the package
29
+ and the repository under `docs/examples/drive/` (the installer does not copy them into a
30
+ host).
31
+ - (2026-11-02) The milestone review blocks only when the product breaks a requirement's
32
+ `Done when` line or the Direction, or does something wrong that a person can reproduce
33
+ (contradicts the spec, loses or corrupts data, crashes, opens a security hole). A gap where
34
+ the code is right and only a check could be stronger is reported to the Owner and no longer
35
+ starts another review round. The milestone demo lists those gaps and what the writers'
36
+ handoffs left open, and a defect among them is never passed on the Owner's behalf.
37
+ - (2026-11-02) Two requirements that cannot both hold are the Owner's call in the escalation
38
+ table too, as the planning step already said; the planner keeps wrong acceptances.
39
+ - (2026-11-04) The plan gate reads ruling lines tolerantly: dashes, spaces and colons may
40
+ differ and `如果判断错了` may be left out, but a line still needs its date, layer, decision,
41
+ reason and cost. Spacing around a dash was the most frequent first-attempt refusal in real
42
+ runs.
43
+ - (2026-11-04) The method starts `ubp drive` in the background, since a foreground call is
44
+ bounded by the host's command timeout. A running drive holds `.ultra/.runtime/drive.lock`;
45
+ a second drive on the same tree stops `drive-running`, and `ubp status` reports the
46
+ holder as `drive` (the line ends with `drive 运行中`). The SessionStart hook stays silent
47
+ inside a drive's writer or reviewer (`UBP_DRIVE` set), so they follow their brief.
48
+ - (2026-11-04) The example drive writer and reviewer deny `git push`, `npm publish` and `gh`
49
+ through Claude Code permission rules. These match command prefixes, so `git -C <dir> push`
50
+ and a push made inside a script still get through (a mid-command wildcard would also deny
51
+ every commit whose message says "push"); a work tree with no push remote is the stronger
52
+ guard.
53
+
54
+ ## 5.x source work after 5.0.1 (never published, superseded by 6.0.0)
55
+
56
+ This 5.x work was in the source checkout but never on npm: on 2026-09-10 the registry's
57
+ `latest` tag resolved to `5.0.1`, and the source package declared an unpublished `5.0.2`.
58
+ 6.0.0 removes most of what this section adds; it stays here as history.
59
+
60
+ ### Added
61
+
62
+ - A natural-language goal entry for Claude Code and Pi, with native session
63
+ continuation. The host model selects the appropriate workflow.
64
+ - Qualified Pi delegation, finite parallel batches, role profiles, worktree
65
+ management, and result notifications to the main session.
66
+ - Opt-in durable checkpoints that permit at most one fresh Pi turn after the
67
+ previous session exits, with expiry, revocation, and no replay of unknown delivery.
68
+ - A usage guide, a documentation index, and bilingual diagrams explaining the
69
+ relationship between the owner, coding agent, project records, and optional workers.
70
+
71
+ ### Changed
72
+
73
+ - Rewrote both READMEs around the problems Ultra addresses, first use, and everyday
74
+ examples. Moved protocol details to their reference pages and release history here.
75
+ - Clarified that small fixes can stay ordinary work and that product-building
76
+ requests continue beyond the initial skeleton once their purpose is settled.
77
+
78
+ ### Validation limits
79
+
80
+ - Finite Pi work and selected continuation, cancellation, revocation, process-death,
81
+ and duplicate-event paths have retained native evidence. This does not establish
82
+ complete machine-restart or network-partition recovery.
83
+ - Repeated Factory efficiency gains over comparable Solo/manual work remain
84
+ unproven. Strategy candidates have not been promoted; the owner's promote/reject
85
+ decision remains open.
86
+ - Stage E's additional final review returned `INCOMPLETE` with no new P0/P1 findings.
87
+ Formal acceptance remains open in the
88
+ [development record](https://github.com/rocky2431/ultra-builder-pro-cli/blob/main/docs/wip/ultra-builder-pro-vnext-three-stage-delivery-state.zh-CN.md).
89
+
90
+ ### Fixed
91
+
92
+ - Corrected protected authority path aliases and retained fresh-turn expiry and
93
+ revocation checks at consumption.
94
+ - Replaced README installation commands targeting the unpublished package with
95
+ `@latest`, and separated registry installation from source-checkout usage.
96
+
97
+ - Reconciled every maintained delegation surface around the installed Skill-local,
98
+ ACP-first `AgentExecutionDriver`; the result-compatible CLI driver is now described
99
+ consistently as a typed fallback rather than as the product definition.
100
+ - Corrected current six-Host authority: candidate-identity probes are required when a
101
+ profile declares them, Codex Hook trust is host-managed and not observable through
102
+ Doctor, and explicit-only versus grant-continuable public modes match runtime metadata.
103
+ - Named all six task-evidence dimensions exactly and closed every relative README link
104
+ inside the npm package.
105
+ - Separated ZCode Desktop Host configuration from provider identity, documented the
106
+ current ZCode model-provider location and BigModel Coding Plan endpoint, preserved
107
+ the pinned 0.16.5 drill as historical evidence, and exposed the required
108
+ `--ack-experimental` launch acknowledgement.
109
+
110
+ ## [5.0.1] — 2026-08-26
111
+
112
+ ### Fixed
113
+
114
+ - Corrected Codex Doctor's Hook-trust observation. Codex owns persisted Hook trust but
115
+ does not expose the live decision through its plugin CLI, so Doctor now reports
116
+ `hook_activation: host_managed` with `observable: false` instead of permanently
117
+ claiming `user_review_required` and instructing already-trusted users to review again.
118
+ This changes no Hook registration, ACP transport, installation, or permission behavior.
9
119
 
10
120
  ## [5.0.0] — 2026-08-26
11
121
 
@@ -40,8 +150,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
40
150
  installed `ultra-delegate` Skill. The package-level `ubp delegate` command is a thin
41
151
  one-release compatibility wrapper rather than a day-to-day runtime dependency.
42
152
  - Activated ACP-first delivery for all six shipped Host profiles only while each exact
43
- executable, candidate identity, protocol version, and current conformance receipt
44
- remain valid. Any unavailable or stale boundary still returns the typed,
153
+ executable, protocol version, current conformance receipt, and any candidate-identity
154
+ probe declared by that profile remain valid. Any unavailable or stale boundary still returns the typed,
45
155
  result-compatible CLI fallback without an automatic provider retry.
46
156
  - Connected ZCode Desktop through the independently built `zcode-acp` v0.1.0 bridge at
47
157
  commit `42fe149d4b501469343c01f23ba3801832306d53` plus the shipped digest-bound ZCode