ultra-builder-pro-cli 0.10.0 → 0.12.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 (137) hide show
  1. package/.ultra-template/specs/architecture.md +54 -223
  2. package/.ultra-template/specs/discovery.md +34 -231
  3. package/.ultra-template/specs/product.md +44 -200
  4. package/.ultra-template/tasks/contexts/TEMPLATE.md +36 -0
  5. package/.ultra-template/tasks/tasks.json +6 -0
  6. package/CHANGELOG.md +86 -1
  7. package/README.md +21 -9
  8. package/adapters/_shared/codex-assets.cjs +24 -342
  9. package/adapters/_shared/handbook.cjs +4 -3
  10. package/adapters/_shared/runtime-assets.cjs +24 -0
  11. package/adapters/_shared/tests/handbook.test.cjs +4 -0
  12. package/adapters/_shared/tests/runtime-assets.test.cjs +11 -4
  13. package/adapters/claude.js +28 -5
  14. package/adapters/kimi.js +15 -138
  15. package/adapters/opencode.js +22 -49
  16. package/adapters/tests/claude.test.cjs +22 -8
  17. package/adapters/tests/codex.test.cjs +21 -8
  18. package/adapters/tests/kimi-hook.test.cjs +1 -1
  19. package/adapters/tests/kimi.test.cjs +11 -11
  20. package/adapters/tests/opencode.test.cjs +47 -8
  21. package/agents/code-reviewer.md +24 -85
  22. package/agents/debugger.md +30 -132
  23. package/agents/review-code.md +24 -104
  24. package/agents/review-comments.md +20 -83
  25. package/agents/review-coordinator.md +40 -137
  26. package/agents/review-design.md +21 -118
  27. package/agents/review-errors.md +22 -70
  28. package/agents/review-spec.md +36 -0
  29. package/agents/review-tests.md +20 -76
  30. package/agents/tdd-runner.md +26 -84
  31. package/commands/learn.md +5 -36
  32. package/commands/ultra-change.md +5 -43
  33. package/commands/ultra-deliver.md +4 -46
  34. package/commands/ultra-dev.md +4 -48
  35. package/commands/ultra-doctor.md +4 -30
  36. package/commands/ultra-init.md +5 -47
  37. package/commands/ultra-plan.md +5 -48
  38. package/commands/ultra-research.md +5 -54
  39. package/commands/ultra-status.md +5 -44
  40. package/commands/ultra-test.md +5 -45
  41. package/commands/ultra-think.md +5 -40
  42. package/docs/AGENT-CONTEXT.md +16 -8
  43. package/docs/ARCHITECTURE.md +32 -5
  44. package/docs/PLAN.zh-CN.md +8 -6
  45. package/docs/ROADMAP.md +5 -3
  46. package/docs/RUNTIME-COMPAT-MATRIX.md +8 -5
  47. package/docs/SKILL-AUTHORING.md +75 -0
  48. package/docs/STATE-DB-ACCESS-POLICY.md +17 -11
  49. package/docs/USER-HANDBOOK-CONTRACT.md +8 -5
  50. package/hooks/README.md +4 -3
  51. package/hooks/adapters/codex.py +1 -1
  52. package/hooks/adapters/kimi.py +1 -1
  53. package/hooks/context_spine.py +120 -16
  54. package/hooks/health_check.py +11 -0
  55. package/hooks/pre_stop_check.py +6 -5
  56. package/mcp-server/lib/baseline-workflow.cjs +415 -0
  57. package/mcp-server/lib/baseline-workflow.test.cjs +225 -0
  58. package/mcp-server/lib/change-workflow.cjs +24 -27
  59. package/mcp-server/lib/change-workflow.test.cjs +202 -6
  60. package/mcp-server/lib/context-spine.cjs +74 -9
  61. package/mcp-server/lib/context-spine.test.cjs +15 -0
  62. package/mcp-server/lib/doctor.cjs +14 -0
  63. package/mcp-server/lib/doctor.test.cjs +25 -1
  64. package/mcp-server/lib/init-project.cjs +49 -14
  65. package/mcp-server/lib/provider-refs.cjs +42 -0
  66. package/mcp-server/lib/spec-learning.test.cjs +5 -0
  67. package/mcp-server/lib/state-db.cjs +63 -4
  68. package/mcp-server/lib/state-db.test.cjs +8 -3
  69. package/mcp-server/server.cjs +48 -3
  70. package/mcp-server/tests/init-project.test.cjs +54 -8
  71. package/mcp-server/tests/server-contract.test.cjs +99 -2
  72. package/mcp-server/tests/state-db.test.cjs +11 -2
  73. package/package.json +3 -2
  74. package/skills/cc-collab/SKILL.md +16 -18
  75. package/skills/code-review-expert/SKILL.md +39 -114
  76. package/skills/code-review-expert/references/correctness-reliability.md +30 -0
  77. package/skills/code-review-expert/references/design-boundaries.md +26 -0
  78. package/skills/code-review-expert/references/removal-plan.md +17 -45
  79. package/skills/codex-collab/SKILL.md +23 -28
  80. package/skills/codex-collab/evals/evals.json +18 -23
  81. package/skills/integration-rules/SKILL.md +28 -67
  82. package/skills/learn/SKILL.md +46 -106
  83. package/skills/security-rules/SKILL.md +34 -56
  84. package/skills/testing-rules/SKILL.md +28 -52
  85. package/skills/ultra-change/SKILL.md +68 -114
  86. package/skills/ultra-deliver/SKILL.md +58 -86
  87. package/skills/ultra-dev/SKILL.md +46 -105
  88. package/skills/ultra-doctor/SKILL.md +45 -72
  89. package/skills/ultra-init/SKILL.md +62 -147
  90. package/skills/ultra-init/references/brownfield-adoption.md +65 -0
  91. package/skills/ultra-plan/SKILL.md +56 -89
  92. package/skills/ultra-research/SKILL.md +64 -152
  93. package/skills/ultra-research/references/architecture.md +38 -0
  94. package/skills/ultra-research/references/problem-product.md +39 -0
  95. package/skills/ultra-research/references/quality-delivery.md +34 -0
  96. package/skills/ultra-research/references/synthesis.md +38 -0
  97. package/skills/ultra-research/references/users-scope.md +40 -0
  98. package/skills/ultra-review/SKILL.md +54 -98
  99. package/skills/ultra-review/references/unified-schema.md +76 -101
  100. package/skills/ultra-review/scripts/review_wait.py +242 -77
  101. package/skills/ultra-status/SKILL.md +41 -56
  102. package/skills/ultra-test/SKILL.md +37 -72
  103. package/skills/ultra-think/SKILL.md +43 -102
  104. package/skills/ultra-verify/SKILL.md +44 -84
  105. package/skills/ultra-verify/evals/evals.json +24 -27
  106. package/spec/cli-protocol.md +4 -0
  107. package/spec/mcp-tools.yaml +223 -4
  108. package/spec/schemas/command-manifest.schema.json +7 -25
  109. package/spec/schemas/mcp-tools.schema.json +1 -1
  110. package/spec/schemas/skill-manifest.schema.json +9 -79
  111. package/spec/schemas/state-db.sql +33 -2
  112. package/ultra-tools/commands/status.cjs +20 -2
  113. package/ultra-tools/commands/task.cjs +4 -1
  114. package/ultra-tools/status-command.test.cjs +20 -0
  115. package/ultra-tools/system-command.test.cjs +5 -0
  116. package/skills/code-review-expert/references/code-quality-checklist.md +0 -112
  117. package/skills/code-review-expert/references/integration-checklist.md +0 -46
  118. package/skills/code-review-expert/references/security-checklist.md +0 -100
  119. package/skills/code-review-expert/references/solid-checklist.md +0 -65
  120. package/skills/ultra-research/steps/step-00-problem-validation.md +0 -154
  121. package/skills/ultra-research/steps/step-01-opportunity-discovery.md +0 -172
  122. package/skills/ultra-research/steps/step-02-market-assessment.md +0 -195
  123. package/skills/ultra-research/steps/step-03-competitive-landscape.md +0 -197
  124. package/skills/ultra-research/steps/step-04-product-strategy.md +0 -196
  125. package/skills/ultra-research/steps/step-05-assumptions-validation.md +0 -234
  126. package/skills/ultra-research/steps/step-10-user-personas.md +0 -169
  127. package/skills/ultra-research/steps/step-11-user-scenarios.md +0 -181
  128. package/skills/ultra-research/steps/step-20-user-stories.md +0 -156
  129. package/skills/ultra-research/steps/step-21-features-scope.md +0 -157
  130. package/skills/ultra-research/steps/step-22-success-metrics.md +0 -195
  131. package/skills/ultra-research/steps/step-30-architecture-context.md +0 -154
  132. package/skills/ultra-research/steps/step-31-solution-strategy.md +0 -172
  133. package/skills/ultra-research/steps/step-32-building-blocks.md +0 -188
  134. package/skills/ultra-research/steps/step-40-deployment.md +0 -123
  135. package/skills/ultra-research/steps/step-41-quality-risks.md +0 -135
  136. package/skills/ultra-research/steps/step-99-synthesis.md +0 -188
  137. package/skills/ultra-review/scripts/review_verdict_update.py +0 -99
@@ -1,223 +1,67 @@
1
1
  # Product Specification
2
2
 
3
- > **Source of Truth**: This document defines WHAT the system does and WHO it's for.
4
- > Generated by `/ultra-research` Steps 10-22
5
- > Technical HOW belongs in `architecture.md`.
3
+ This document defines accepted product behavior and scope. It is a durable contract,
4
+ not a research transcript or a task list.
6
5
 
7
- ---
6
+ ## Scope
8
7
 
9
- ## §1 Problem Statement
8
+ - Product or repository boundary:
9
+ - Intended outcome:
10
+ - Explicit non-goals:
10
11
 
11
- ### Core Problem
12
- [NEEDS CLARIFICATION] — One paragraph describing the problem, grounded in discovery.md §0
12
+ ## Observed
13
13
 
14
- ### Who It Affects
15
- [NEEDS CLARIFICATION] — Brief overview connecting problem to specific user types
14
+ Record confirmed current behavior and externally visible constraints. For an existing
15
+ project, cite source, test, runtime, or maintained documentation evidence.
16
16
 
17
- ### Current Impact
18
- - **Time cost**: [NEEDS CLARIFICATION] — Hours/week wasted on workarounds
19
- - **Money cost**: [NEEDS CLARIFICATION] — $ lost to inefficiency
20
- - **Opportunity cost**: [NEEDS CLARIFICATION] — What they can't do because of this problem
17
+ | Behavior or constraint | Evidence reference | Status |
18
+ |---|---|---|
19
+ | | | |
21
20
 
22
- ---
21
+ ## Decisions
23
22
 
24
- ## §2 User Personas
23
+ Record accepted product decisions and the evidence or owner decision behind them.
25
24
 
26
- ### Persona 1: [NEEDS CLARIFICATION] (Primary)
25
+ | Decision | Rationale | Acceptance impact | Owner |
26
+ |---|---|---|---|
27
+ | | | | |
27
28
 
28
- **Role**: Job title / context
29
- **Context**: Where they work, team dynamics, industry
29
+ ## Unknowns
30
30
 
31
- **Goals**:
32
- 1. [NEEDS CLARIFICATION] — Primary goal (what gets them promoted)
33
- 2. Secondary goal (daily care)
34
- 3. Tertiary goal (nice to have)
31
+ | Unknown | Blocking | Owner | Resolution evidence |
32
+ |---|---|---|---|
33
+ | | | | |
35
34
 
36
- **Pain Points**:
37
- 1. [NEEDS CLARIFICATION] — Connects to Opportunity O# from discovery.md §1
38
- 2. Connects to Opportunity O#
39
- 3. Source: URL or user quote
35
+ ## Actors and Entry Points
40
36
 
41
- **Current Workflow**:
42
- > Step-by-step description of how they solve this today
43
- > Tools used: List of current tools/processes
44
- > Time spent: X hours/week
37
+ Include actors only when they are supported by evidence. Describe the public entry
38
+ point through which each actor reaches the behavior.
45
39
 
46
- **Success Metric**: How they measure their own success
47
- **Adoption Trigger**: What would make them try our solution
48
- **Objections**: Why they might resist
40
+ | Actor or system | Need | Entry point | Evidence |
41
+ |---|---|---|---|
42
+ | | | | |
49
43
 
50
- ### Persona 2: [NEEDS CLARIFICATION] (Secondary)
44
+ ## Behavior Contracts
51
45
 
52
- **Role**: [NEEDS CLARIFICATION]
53
- **Context**: [NEEDS CLARIFICATION]
46
+ Give each required behavior a stable identifier. State preconditions, observable
47
+ result, failure behavior, and recovery where relevant.
54
48
 
55
- **Goals**:
56
- 1. [NEEDS CLARIFICATION]
49
+ ### Behavior: pending
57
50
 
58
- **Pain Points**:
59
- 1. [NEEDS CLARIFICATION]
51
+ - Trigger:
52
+ - Preconditions:
53
+ - Observable result:
54
+ - Failure behavior:
55
+ - Recovery:
56
+ - Evidence or decision:
60
57
 
61
- **Current Workflow**:
62
- > [NEEDS CLARIFICATION]
58
+ ## Acceptance
63
59
 
64
- **Success Metric**: [NEEDS CLARIFICATION]
65
- **Adoption Trigger**: [NEEDS CLARIFICATION]
66
- **Objections**: [NEEDS CLARIFICATION]
60
+ | Behavior | Acceptance evidence | Public seam | Verification |
61
+ |---|---|---|---|
62
+ | | | | |
67
63
 
68
- ### Persona Prioritization
64
+ ## Documentation Impact
69
65
 
70
- | Persona | Urgency | Willingness to Pay | Reachability | Priority |
71
- |---------|---------|-------------------|-------------|----------|
72
- | P1 | [NEEDS CLARIFICATION] | | | **Primary** |
73
- | P2 | | | | **Secondary** |
74
-
75
- ---
76
-
77
- ## §3 User Scenarios
78
-
79
- ### Scenario Overview
80
-
81
- | # | Scenario | Persona | Frequency | Pain | Value | Score |
82
- |---|----------|---------|-----------|------|-------|-------|
83
- | S1 | [NEEDS CLARIFICATION] | P1 | /5 | /5 | /5 | |
84
- | S2 | | | | | | |
85
- | S3 | | | | | | |
86
-
87
- > Priority Score = Frequency × Pain × Value
88
-
89
- ### Scenario 1: [NEEDS CLARIFICATION] — Primary
90
-
91
- **Persona**: [NEEDS CLARIFICATION]
92
- **Frequency**: Daily / Weekly / Monthly
93
-
94
- **Trigger**: What event causes this scenario
95
- **Context**: Where, when, device, time pressure
96
-
97
- **Current Flow** (painful):
98
- 1. [NEEDS CLARIFICATION] — What they do today
99
- 2. Where friction occurs
100
- 3. Workaround they use
101
- 4. Outcome and time wasted
102
-
103
- **Desired Flow** (with our product):
104
- 1. [NEEDS CLARIFICATION] — Trigger detected
105
- 2. Streamlined action
106
- 3. Fast resolution
107
- 4. Outcome achieved in less time
108
-
109
- **Success Outcome**: [NEEDS CLARIFICATION] — Specific and measurable
110
- **Failure Outcome**: [NEEDS CLARIFICATION] — Consequences
111
- **Emotional Arc**: Frustration → Discovery → Relief
112
-
113
- ### Scenario 2: [NEEDS CLARIFICATION]
114
-
115
- [Same structure as Scenario 1]
116
-
117
- ### Scenario 3: [NEEDS CLARIFICATION]
118
-
119
- [Same structure as Scenario 1]
120
-
121
- ---
122
-
123
- ## §4 User Stories & Features
124
-
125
- ### Story Map Overview
126
-
127
- | ID | Story | Persona | Scenario | Priority | Complexity |
128
- |----|-------|---------|----------|----------|-----------|
129
- | US-01 | [NEEDS CLARIFICATION] | P1 | S1 | Must | S/M/L |
130
- | US-02 | | | | | |
131
- | US-03 | | | | | |
132
-
133
- ### Must-Have Stories
134
-
135
- #### US-01: [NEEDS CLARIFICATION]
136
- **As a** [Persona], **I want** [action], **so that** [benefit].
137
-
138
- **Acceptance Criteria**:
139
- - [ ] Given [context], when [action], then [result]
140
- - [ ] Given [context], when [edge case], then [result]
141
-
142
- **Traces to**: Scenario S#, Opportunity O#
143
- **Complexity**: S/M/L
144
-
145
- ### Should-Have Stories
146
-
147
- #### US-04: [NEEDS CLARIFICATION]
148
- [Same structure]
149
-
150
- ### Could-Have Stories
151
-
152
- #### US-07: [NEEDS CLARIFICATION]
153
- [Same structure]
154
-
155
- ---
156
-
157
- ## §5 Feature Scope
158
-
159
- ### Features In (MVP)
160
-
161
- #### Feature 1: [NEEDS CLARIFICATION]
162
- - **Description**: What this feature does
163
- - **Stories**: US-01, US-02
164
- - **User value**: What user can do with this
165
- - **Priority**: Must-Have
166
- - **Complexity**: S/M/L
167
-
168
- ### Features In (v2 — Planned)
169
-
170
- #### Feature 4: [NEEDS CLARIFICATION]
171
- - **Description**: What this feature does
172
- - **Stories**: US-07, US-08
173
- - **Rationale for deferral**: Why not MVP
174
- - **Trigger to build**: When to reconsider
175
-
176
- ### Features Out (Explicitly Excluded)
177
-
178
- | Feature | Rationale | Reconsider When | Alternative |
179
- |---------|-----------|----------------|-------------|
180
- | [NEEDS CLARIFICATION] | Why excluded (ref strategy §4) | Condition | What users do instead |
181
-
182
- ### Scope Summary
183
- - **MVP features**: [NEEDS CLARIFICATION] features, stories
184
- - **v2 features**: features, stories
185
- - **Excluded features**: features
186
-
187
- ---
188
-
189
- ## §6 Success Metrics
190
-
191
- ### North Star Metric
192
- - **Metric**: [NEEDS CLARIFICATION]
193
- - **Definition**: Exactly what is measured
194
- - **Current baseline**: Current state or industry benchmark
195
- - **Target**: Specific number
196
- - **Timeline**: When to achieve
197
- - **Measurement method**: How to collect this data
198
-
199
- ### Business Metrics
200
-
201
- | Metric | Baseline | Target (M3) | Target (M6) | Target (M12) | How Measured |
202
- |--------|----------|-------------|-------------|--------------|-------------|
203
- | [NEEDS CLARIFICATION] | | | | | |
204
-
205
- ### User Metrics
206
-
207
- | Metric | Baseline | Target | How Measured |
208
- |--------|----------|--------|-------------|
209
- | Task completion rate | [NEEDS CLARIFICATION] | | |
210
- | Time on task | | | |
211
- | User satisfaction (NPS) | | | |
212
- | Feature adoption | | | |
213
-
214
- ### Anti-Metrics (What NOT to Optimize)
215
-
216
- | Anti-Metric | Why Not | What It Could Sacrifice |
217
- |------------|---------|------------------------|
218
- | [NEEDS CLARIFICATION] | | |
219
-
220
- ---
221
-
222
- **Document Status**: Draft
223
- **Last Updated**: [Date]
66
+ List maintained documents that must stay consistent with this contract, or record a
67
+ specific reason why no documentation change is required.
@@ -0,0 +1,36 @@
1
+ <!-- Body template only. The projector owns authoritative YAML frontmatter. -->
2
+
3
+ # Task {id}: {title}
4
+
5
+ ## Outcome
6
+
7
+ [Describe the observable result this task must produce.]
8
+
9
+ ## Required context
10
+
11
+ - `[project-relative reference]` — [why it is required]
12
+
13
+ ## Execution contract
14
+
15
+ - Public seam: [reachable entry point or observable boundary]
16
+ - Verification command: `[exact deterministic command]`
17
+ - Documentation impact: [required paths or a specific no-change rationale]
18
+
19
+ ## Constraints
20
+
21
+ - [Confirmed constraint with its evidence source]
22
+
23
+ ## Acceptance evidence
24
+
25
+ - [Expected behavior and the evidence that will verify it]
26
+
27
+ ## Traceability
28
+
29
+ - Change: [change id or initial baseline]
30
+ - Specification: [project-relative section reference]
31
+
32
+ ## Completion evidence
33
+
34
+ - Commit: [verified commit when applicable]
35
+ - Tests: [command and result]
36
+ - Summary: [delivered behavior]
@@ -0,0 +1,6 @@
1
+ {
2
+ "schema_version": "4.5",
3
+ "generated_at": "1970-01-01T00:00:00.000Z",
4
+ "source": ".ultra/state.db",
5
+ "tasks": []
6
+ }
package/CHANGELOG.md CHANGED
@@ -7,6 +7,87 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.12.1] — 2026-07-18
11
+
12
+ ### Fixed
13
+
14
+ - Fixed the published project scaffold so its task projection and neutral context
15
+ template are tracked on fresh checkouts instead of being hidden by a broad ignore
16
+ rule; the seed projection now uses the authoritative v4.5 state contract.
17
+
18
+ ## [0.12.0] — 2026-07-18
19
+
20
+ ### Added
21
+
22
+ - Added schema 11.0 project baselines and four `baseline.*` MCP contracts for
23
+ greenfield initialization, brownfield adoption, evidence recording, explicit
24
+ approval, re-adoption history, and archive reconciliation.
25
+ - Added automatic new/existing repository detection, neutral baseline templates,
26
+ metadata-only provider references, and cross-host baseline status/doctor output.
27
+
28
+ ### Changed
29
+
30
+ - Reclassified file count, token estimate, and context-share limits as advisory
31
+ attention warnings. Necessary incident context and active work are no longer
32
+ rejected or repaired by arbitrarily raising a threshold.
33
+ - Made incomplete or stale baseline state advisory during an active bounded change,
34
+ requiring approved adoption at `change.converge` and complete revision/spec
35
+ reconciliation in the atomic archive transaction.
36
+ - Changed the Stop hook from a workflow-completion denial into a lifecycle advisory;
37
+ direct writes to the authoritative task projection remain blocked.
38
+
39
+ ### Fixed
40
+
41
+ - Prevented old projects from being initialized as empty greenfield products or
42
+ using generated `tasks.json` as project metadata authority.
43
+ - Updated Claude Code, Codex, OpenCode, and Kimi presentation so hooks expose
44
+ warnings without turning them into edit, stop, or workflow refusal gates.
45
+ - Removed the convergence deadlock where normal HEAD or tracked-spec changes made by
46
+ the active change were rejected before archive could reconcile them; incomplete
47
+ archive declarations now fail with full state and artifact rollback.
48
+
49
+ ## [0.11.0] — 2026-07-18
50
+
51
+ ### Added
52
+
53
+ - Added a portable Skill authoring contract aligned with OpenAI Skills guidance
54
+ and the Agent Skills progressive-disclosure model, plus regression coverage for
55
+ source prompts, commands, agents, generated runtimes, and package contents.
56
+ - Added an independent `review-spec` worker and the `ultra-review-findings-v2` /
57
+ `ultra-review-summary-v2` evidence contracts so specification fidelity and
58
+ engineering standards remain separate release-gate axes.
59
+ - Added focused research and code-review references that are loaded only when the
60
+ active workflow needs them.
61
+
62
+ ### Changed
63
+
64
+ - Rewrote the nineteen packaged source Skills as concise, English, host-neutral
65
+ procedures with portable `name` and `description` frontmatter. Runtime metadata,
66
+ invocation policy, and MCP dependencies now belong to host adapters.
67
+ - Reduced all eleven command documents to thin workflow launchers and rewrote the
68
+ bundled workers as bounded, evidence-based roles without arbitrary confidence,
69
+ coverage, severity, or option-count thresholds.
70
+ - Simplified Claude Code, Codex, OpenCode, and Kimi Code adaptation by removing
71
+ stale prompt rewriting branches while preserving each host's native invocation,
72
+ MCP, hook, and agent contracts.
73
+
74
+ ### Fixed
75
+
76
+ - Made the review waiter validate exact named v2 artifacts, reject partial or stale
77
+ schemas, derive severity counts from evidence, and fail inconsistent two-axis
78
+ summaries closed.
79
+ - Isolated read-only collaboration commands from user configuration and repository
80
+ rules, and passed the review schema by an explicit absolute path instead of
81
+ guessing an installed plugin root.
82
+ - Prevented Python caches and retired prompt/runtime artifacts from entering the npm
83
+ tarball.
84
+
85
+ ### Removed
86
+
87
+ - Removed the duplicate `ai-collab-base` prompt framework, the seventeen-step
88
+ research prompt tree, redundant review checklists, learned-Skill placeholder, and
89
+ obsolete v1 verdict updater.
90
+
10
91
  ## [0.10.0] — 2026-07-18
11
92
 
12
93
  ### Added
@@ -409,7 +490,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
409
490
  skill manifest, CLI protocol + mapping table; 5 spec validators.
410
491
  - **Phase 0 — skeleton**: multi-runtime installer scaffolding.
411
492
 
412
- [Unreleased]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.9.0...HEAD
493
+ [Unreleased]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.12.1...HEAD
494
+ [0.12.1]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.12.0...v0.12.1
495
+ [0.12.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.11.0...v0.12.0
496
+ [0.11.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.10.0...v0.11.0
497
+ [0.10.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.9.0...v0.10.0
413
498
  [0.9.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.8.1...v0.9.0
414
499
  [0.8.1]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.8.0...v0.8.1
415
500
  [0.8.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.7.0...v0.8.0
package/README.md CHANGED
@@ -8,7 +8,7 @@ authoritative `.ultra/state.db`.
8
8
 
9
9
  <div align="center">
10
10
 
11
- [![Version](https://img.shields.io/badge/version-0.10.0-blue)](./CHANGELOG.md)
11
+ [![Version](https://img.shields.io/badge/version-0.12.1-blue)](./CHANGELOG.md)
12
12
  [![Tests](https://img.shields.io/badge/tests-passing-brightgreen)](#verification)
13
13
  [![License: MIT](https://img.shields.io/badge/license-MIT-green)](./LICENSE)
14
14
  [![Node](https://img.shields.io/badge/node-%E2%89%A522-informational)](./package.json)
@@ -27,7 +27,7 @@ authoritative `.ultra/state.db`.
27
27
  Install and uninstall are symmetric on every supported host; `ubp --doctor`
28
28
  verifies the installed asset hashes and host entry points without mutation.
29
29
  - **Shares state across runtimes.** `.ultra/state.db` (SQLite + WAL) is the
30
- authoritative source for changes, tasks, sessions, events, incidents,
30
+ authoritative source for baselines, changes, tasks, sessions, events, incidents,
31
31
  projection jobs, and telemetry. `tasks.json` and context markdown are
32
32
  generated projections, not handwritten.
33
33
  - **Keeps memory ownership explicit.** Ultra Builder Pro does not collect
@@ -37,12 +37,16 @@ authoritative `.ultra/state.db`.
37
37
  `.ultra/execution-plan.json` → parallel worktree sessions → auto-merge back.
38
38
  - **Keeps daily work convergent.** `/ultra-change` creates a bounded delta and
39
39
  Context Manifest v2; the Context Spine assigns a role/gate, verifies required
40
- references and fresh-context budget, exposes one DB-derived breadcrumb, and
40
+ references, reports fresh-context budget pressure as advisory warnings, exposes one DB-derived breadcrumb, and
41
41
  routes a single next action. `/ultra-deliver` requires applied specification
42
42
  learning plus docs/test/two-axis review evidence before archive. `/ultra-doctor` reports incidents,
43
43
  projection lag, orphan sessions, and backup-first mechanical recovery.
44
44
  Incident changes additionally require a five-section `diagnosis.md` covering
45
45
  reproduction, hypotheses, root cause, regression test, and recovery.
46
+ - **Adopts existing repositories without pretending they are new.** `ultra-init`
47
+ auto-detects greenfield versus brownfield work. Brownfield adoption records
48
+ current specifications, repository/runtime evidence, known-red verification,
49
+ unknowns, and explicit approval without rewriting application code.
46
50
  - **Keeps external context external.** Memory and code-graph providers retain
47
51
  their own content; Ultra stores only provider/project/revision/status metadata
48
52
  references in a compiled change context.
@@ -82,6 +86,14 @@ install or update.
82
86
  See [`docs/RUNTIME-COMPAT-MATRIX.md`](./docs/RUNTIME-COMPAT-MATRIX.md)
83
87
  for per-runtime capabilities.
84
88
 
89
+ Start with `ultra-init` in both new and existing projects. An empty project opens
90
+ a `draft` greenfield baseline. An existing codebase opens an `adopting`
91
+ brownfield baseline; inspect current behavior, call `baseline.record`, then
92
+ approve it through `baseline.converge` before normal planning or delivery. An
93
+ urgent active fix may continue while adoption or context-size warnings are
94
+ visible. `change.converge` requires approved adoption, while normal HEAD/spec drift
95
+ from that change is declared and health-checked atomically by `change.archive`.
96
+
85
97
  ## Three-layer architecture
86
98
 
87
99
  | Layer | Purpose | When it's used |
@@ -93,7 +105,7 @@ for per-runtime capabilities.
93
105
  The layers share one `.ultra/state.db`, but the CLI is not a mirror of every MCP
94
106
  tool: continuous change mutations are MCP-only and fail closed. See
95
107
  [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md) for the full contract and
96
- [`spec/cli-protocol.md`](./spec/cli-protocol.md) for the 32 live contracts.
108
+ [`spec/cli-protocol.md`](./spec/cli-protocol.md) for the 36 live contracts.
97
109
  Review, impact discovery, skill resolution, and user interaction stay on each
98
110
  Host's native surfaces; the generated Codex capability map documents those
99
111
  replacements without advertising non-existent MCP tools.
@@ -121,11 +133,11 @@ Full details in [`docs/RUNTIME-COMPAT-MATRIX.md`](./docs/RUNTIME-COMPAT-MATRIX.m
121
133
  ## Typical workflow
122
134
 
123
135
  ```bash
124
- # 1. Initialize a project (writes .ultra/ skeleton and initializes state.db)
125
- ultra-tools task init-project --name myapp
136
+ # 1. Initialize a new project or adopt an existing repository automatically
137
+ ultra-tools task init-project --project-name myapp --mode auto
126
138
 
127
- # 2. Turn a PRD into a task graph + execution plan (human-gate via dry-run)
128
- # (invoked by /ultra-plan skill or via MCP task.parse_prd + plan.export)
139
+ # 2. Record and converge the greenfield/brownfield baseline, then turn accepted
140
+ # behavior into a task graph (normally driven by ultra-init/research/plan)
129
141
 
130
142
  # 3. Run the plan — parallel sessions, auto-merge back to main on success
131
143
  ubp-orchestrator run
@@ -138,7 +150,7 @@ ultra-tools system doctor
138
150
  ```
139
151
 
140
152
  Or let the skills drive it. In Codex, invoke
141
- `$ultra-builder-pro:ultra-plan` → `$ultra-builder-pro:ultra-dev` →
153
+ `$ultra-builder-pro:ultra-init` → `$ultra-builder-pro:ultra-plan` → `$ultra-builder-pro:ultra-dev` →
142
154
  `$ultra-builder-pro:ultra-test` → `$ultra-builder-pro:ultra-review` →
143
155
  `$ultra-builder-pro:ultra-deliver`; after the baseline is delivered, daily work
144
156
  starts with `$ultra-builder-pro:ultra-change`, while