ultra-builder-pro-cli 0.13.0 → 0.15.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 (172) hide show
  1. package/.ultra-template/docs/research/README.md +11 -7
  2. package/.ultra-template/specs/architecture.md +36 -36
  3. package/.ultra-template/specs/discovery.md +46 -33
  4. package/.ultra-template/specs/product.md +38 -29
  5. package/.ultra-template/specs/research-distillate.md +48 -0
  6. package/.ultra-template/tasks/contexts/TEMPLATE.md +11 -28
  7. package/CHANGELOG.md +86 -1
  8. package/README.md +40 -26
  9. package/adapters/_shared/codex-assets.cjs +29 -165
  10. package/adapters/_shared/file-ops.cjs +6 -2
  11. package/adapters/_shared/runtime-assets.cjs +1 -0
  12. package/adapters/claude.js +3 -2
  13. package/adapters/codex.js +1 -0
  14. package/adapters/kimi.js +3 -2
  15. package/adapters/opencode.js +33 -122
  16. package/agents/review-coordinator.md +9 -6
  17. package/docs/AGENT-CONTEXT.md +21 -11
  18. package/docs/ARCHITECTURE.md +41 -13
  19. package/docs/PLAN.zh-CN.md +3 -2
  20. package/docs/ROADMAP.md +9 -5
  21. package/docs/RUNTIME-COMPAT-MATRIX.md +6 -6
  22. package/docs/STATE-DB-ACCESS-POLICY.md +27 -25
  23. package/docs/WORKFLOW-LIFECYCLE.md +266 -0
  24. package/hooks/README.md +6 -1
  25. package/hooks/active_task_context.py +22 -50
  26. package/hooks/context_spine.py +61 -332
  27. package/hooks/health_check.py +29 -18
  28. package/hooks/pre_stop_check.py +28 -33
  29. package/hooks/subagent_tracker.py +54 -85
  30. package/hooks/workflow_checkpoint.py +39 -47
  31. package/hooks/workflow_context.py +4 -9
  32. package/hooks/workflow_resume.py +48 -128
  33. package/mcp-server/breadcrumb.cjs +22 -0
  34. package/mcp-server/hook-event.cjs +34 -0
  35. package/mcp-server/lib/archive-journal.cjs +17 -5
  36. package/mcp-server/lib/baseline-workflow.cjs +158 -18
  37. package/mcp-server/lib/change-workflow.cjs +550 -85
  38. package/mcp-server/lib/context-spine.cjs +242 -24
  39. package/mcp-server/lib/doctor.cjs +33 -3
  40. package/mcp-server/lib/init-project.cjs +210 -16
  41. package/mcp-server/lib/plan-store.cjs +4 -1
  42. package/mcp-server/lib/prd-parser.cjs +14 -41
  43. package/mcp-server/lib/pricing.cjs +7 -10
  44. package/mcp-server/lib/project-breadcrumb.cjs +145 -0
  45. package/mcp-server/lib/projector.cjs +57 -3
  46. package/mcp-server/lib/spec-learning.cjs +79 -2
  47. package/mcp-server/lib/state-db.cjs +145 -8
  48. package/mcp-server/lib/state-ops.cjs +160 -9
  49. package/mcp-server/lib/task-expander.cjs +9 -38
  50. package/mcp-server/lib/workflow-state.cjs +2292 -0
  51. package/mcp-server/server.cjs +182 -50
  52. package/orchestrator/daemon.cjs +1 -2
  53. package/orchestrator/dispatch-rules.cjs +5 -31
  54. package/orchestrator/planner/plan-builder.cjs +21 -12
  55. package/package.json +14 -6
  56. package/skills/cc-collab/SKILL.md +2 -2
  57. package/skills/codex-collab/SKILL.md +2 -3
  58. package/skills/ultra-change/SKILL.md +53 -68
  59. package/skills/ultra-change/references/change-contract.md +36 -0
  60. package/skills/ultra-deliver/SKILL.md +69 -79
  61. package/skills/ultra-deliver/references/baseline-reconciliation.md +20 -0
  62. package/skills/ultra-dev/SKILL.md +54 -59
  63. package/skills/ultra-doctor/SKILL.md +40 -71
  64. package/skills/ultra-init/SKILL.md +96 -103
  65. package/skills/ultra-init/references/brownfield-adoption.md +2 -2
  66. package/skills/ultra-plan/SKILL.md +79 -75
  67. package/skills/ultra-plan/references/semantic-preflight.md +18 -0
  68. package/skills/ultra-research/SKILL.md +87 -60
  69. package/skills/ultra-research/references/00-problem-validation.md +36 -0
  70. package/skills/ultra-research/references/01-opportunity-discovery.md +33 -0
  71. package/skills/ultra-research/references/02-market-assessment.md +30 -0
  72. package/skills/ultra-research/references/03-competitive-landscape.md +31 -0
  73. package/skills/ultra-research/references/04-product-strategy.md +32 -0
  74. package/skills/ultra-research/references/05-assumptions-validation.md +31 -0
  75. package/skills/ultra-research/references/10-user-personas.md +29 -0
  76. package/skills/ultra-research/references/11-user-scenarios.md +28 -0
  77. package/skills/ultra-research/references/20-user-stories.md +30 -0
  78. package/skills/ultra-research/references/21-features-scope.md +29 -0
  79. package/skills/ultra-research/references/22-success-metrics.md +28 -0
  80. package/skills/ultra-research/references/30-architecture-context.md +30 -0
  81. package/skills/ultra-research/references/31-solution-strategy.md +28 -0
  82. package/skills/ultra-research/references/32-building-blocks.md +28 -0
  83. package/skills/ultra-research/references/40-deployment.md +29 -0
  84. package/skills/ultra-research/references/41-quality-risks.md +28 -0
  85. package/skills/ultra-research/references/99-synthesis.md +35 -0
  86. package/skills/ultra-review/SKILL.md +57 -73
  87. package/skills/ultra-review/references/review-modes.md +27 -0
  88. package/skills/ultra-review/references/unified-schema.md +25 -0
  89. package/skills/ultra-review/scripts/review_wait.py +40 -3
  90. package/skills/ultra-status/SKILL.md +41 -45
  91. package/skills/ultra-test/SKILL.md +48 -55
  92. package/skills/ultra-verify/SKILL.md +22 -31
  93. package/skills/ultra-verify/references/{confidence-system.md → evidence-status.md} +3 -3
  94. package/skills/ultra-verify/scripts/verify_wait.py +54 -54
  95. package/spec/cli-protocol.md +7 -2
  96. package/spec/mcp-tools.yaml +422 -73
  97. package/spec/schemas/baseline-reconciliation.v1.schema.json +73 -0
  98. package/spec/schemas/delivery-report.v1.schema.json +111 -0
  99. package/spec/schemas/mcp-tools.schema.json +1 -1
  100. package/spec/schemas/state-db.sql +82 -1
  101. package/spec/schemas/tasks.v4.5.schema.json +8 -1
  102. package/spec/schemas/test-report.v1.schema.json +194 -0
  103. package/ultra-tools/cli.cjs +1 -1
  104. package/ultra-tools/commands/migrate.cjs +3 -3
  105. package/ultra-tools/commands/status.cjs +213 -12
  106. package/.ultra-template/delivery-report.json +0 -9
  107. package/.ultra-template/test-report.json +0 -8
  108. package/adapters/_shared/tests/file-ops.test.cjs +0 -54
  109. package/adapters/_shared/tests/frontmatter.test.cjs +0 -47
  110. package/adapters/_shared/tests/handbook.test.cjs +0 -101
  111. package/adapters/_shared/tests/path-rewrite.test.cjs +0 -60
  112. package/adapters/_shared/tests/provenance.test.cjs +0 -133
  113. package/adapters/_shared/tests/resolve-target.test.cjs +0 -75
  114. package/adapters/_shared/tests/runtime-assets.test.cjs +0 -131
  115. package/adapters/_shared/tests/settings-merge.test.cjs +0 -85
  116. package/adapters/_shared/tests/validate.test.cjs +0 -30
  117. package/adapters/tests/claude.test.cjs +0 -137
  118. package/adapters/tests/codex-hook.test.cjs +0 -115
  119. package/adapters/tests/codex.test.cjs +0 -423
  120. package/adapters/tests/kimi-hook.test.cjs +0 -122
  121. package/adapters/tests/kimi.test.cjs +0 -259
  122. package/adapters/tests/opencode.test.cjs +0 -371
  123. package/mcp-server/lib/archive-journal.test.cjs +0 -35
  124. package/mcp-server/lib/baseline-workflow.test.cjs +0 -477
  125. package/mcp-server/lib/change-workflow.test.cjs +0 -971
  126. package/mcp-server/lib/context-spine.test.cjs +0 -93
  127. package/mcp-server/lib/doctor.test.cjs +0 -148
  128. package/mcp-server/lib/llm-client.cjs +0 -157
  129. package/mcp-server/lib/llm-client.test.cjs +0 -156
  130. package/mcp-server/lib/plan-store.test.cjs +0 -132
  131. package/mcp-server/lib/prd-parser.test.cjs +0 -171
  132. package/mcp-server/lib/runtime-state.test.cjs +0 -92
  133. package/mcp-server/lib/spec-learning.test.cjs +0 -67
  134. package/mcp-server/lib/state-db.test.cjs +0 -314
  135. package/mcp-server/lib/task-expander.test.cjs +0 -324
  136. package/mcp-server/lib/topo.test.cjs +0 -158
  137. package/mcp-server/tests/circuit-breaker.test.cjs +0 -125
  138. package/mcp-server/tests/commit-hash-flow.test.cjs +0 -117
  139. package/mcp-server/tests/concurrency-update.test.cjs +0 -96
  140. package/mcp-server/tests/concurrency.test.cjs +0 -112
  141. package/mcp-server/tests/db-ops.test.cjs +0 -121
  142. package/mcp-server/tests/init-project.test.cjs +0 -393
  143. package/mcp-server/tests/migrate.test.cjs +0 -232
  144. package/mcp-server/tests/projector.test.cjs +0 -162
  145. package/mcp-server/tests/server-contract.test.cjs +0 -1471
  146. package/mcp-server/tests/staleness.test.cjs +0 -190
  147. package/mcp-server/tests/state-db.test.cjs +0 -106
  148. package/mcp-server/tests/state-ops.test.cjs +0 -449
  149. package/mcp-server/tests/tagged-tasks.test.cjs +0 -163
  150. package/mcp-server/tests/telemetry.test.cjs +0 -219
  151. package/orchestrator/planner/expand-prompt.cjs +0 -62
  152. package/orchestrator/planner/expand-prompt.test.cjs +0 -52
  153. package/orchestrator/planner/plan-builder.test.cjs +0 -165
  154. package/orchestrator/planner/prd-prompt.cjs +0 -44
  155. package/orchestrator/planner/prd-prompt.test.cjs +0 -30
  156. package/orchestrator/tests/auto-merge.test.cjs +0 -216
  157. package/orchestrator/tests/daemon.test.cjs +0 -311
  158. package/orchestrator/tests/dispatch-rules.test.cjs +0 -124
  159. package/orchestrator/tests/parallel-orchestrator.test.cjs +0 -233
  160. package/orchestrator/tests/phase-8b-gate.test.cjs +0 -183
  161. package/orchestrator/tests/recovery.test.cjs +0 -190
  162. package/orchestrator/tests/session-runner.test.cjs +0 -314
  163. package/orchestrator/tests/skill-miner.test.cjs +0 -147
  164. package/orchestrator/tests/worktree-manager.test.cjs +0 -148
  165. package/skills/ultra-research/references/architecture.md +0 -38
  166. package/skills/ultra-research/references/problem-product.md +0 -39
  167. package/skills/ultra-research/references/quality-delivery.md +0 -34
  168. package/skills/ultra-research/references/synthesis.md +0 -38
  169. package/skills/ultra-research/references/users-scope.md +0 -40
  170. package/ultra-tools/legacy-memory.test.cjs +0 -80
  171. package/ultra-tools/status-command.test.cjs +0 -181
  172. package/ultra-tools/system-command.test.cjs +0 -309
@@ -3,16 +3,19 @@
3
3
  Store durable research evidence here only when it is too detailed for the baseline
4
4
  specification. Baseline decisions and accepted behavior remain in `.ultra/specs/`.
5
5
 
6
- ## When to create a report
6
+ ## Required step reports
7
7
 
8
- Create a report for external facts, repository investigations, experiments, runtime
9
- observations, or decision evidence that must remain inspectable. Use a descriptive
10
- file name and include the observation date when freshness matters.
8
+ Every selected `ultra-research` step writes one immutable report at
9
+ `.ultra/docs/research/<workflow-id>/<step-id>.md`. Full and adoption research therefore
10
+ produce seventeen reports. The shared specifications are updated during research but
11
+ do not replace these per-step evidence records.
11
12
 
12
13
  ## Report contract
13
14
 
14
15
  Record:
15
16
 
17
+ - a Markdown title and the exact sections `Evidence`, `Specification updates`, and
18
+ `Decisions and unknowns`;
16
19
  - scope and the decision the evidence informs;
17
20
  - observed facts with source references and dates;
18
21
  - verification commands or runtime evidence;
@@ -25,6 +28,7 @@ copying memory, code-graph payloads, or large source material into Ultra.
25
28
 
26
29
  ## Completion
27
30
 
28
- Update the affected baseline specification, include the report in `baseline.record`
29
- evidence when material, and record unresolved work in the authoritative gap ledger.
30
- Do not create a condensed duplicate of the baseline.
31
+ Update the affected baseline specification, record the report through `workflow.step`,
32
+ include it in `baseline.record` evidence when material, and record unresolved work in
33
+ the authoritative gap ledger. The final synthesis also binds the three specifications
34
+ and research distillate. Do not create a condensed duplicate of the baseline.
@@ -1,51 +1,54 @@
1
1
  # Architecture Specification
2
2
 
3
- This document defines the accepted system boundaries and implementation constraints.
4
- Describe the architecture that evidence requires; do not impose a framework or module
5
- shape that the project does not use.
3
+ Define accepted system boundaries, authority, runtime paths, operational behavior, and
4
+ implementation constraints. Describe observed architecture before proposed changes.
6
5
 
7
6
  ## Scope
8
7
 
9
8
  - Repository or system boundary:
10
9
  - Product contracts supported:
11
- - Revision or environment inspected:
10
+ - Revision and environments inspected:
12
11
 
13
12
  ## Observed
14
13
 
15
- Record current components, dependencies, data paths, runtime behavior, and operational
16
- constraints confirmed by source or runtime evidence.
17
-
18
- | Architectural fact | Evidence reference | Consumer or impact |
14
+ | Architectural fact | Source or runtime evidence | Consumer or impact |
19
15
  |---|---|---|
20
16
  | | | |
21
17
 
22
18
  ## Decisions
23
19
 
24
- Record an architecture decision only when it has been accepted. Describe alternatives
25
- only when a real choice was evaluated and the tradeoff matters for maintenance.
26
-
27
- | Decision | Constraint or evidence | Consequence | Owner |
20
+ | Decision | Driver and evidence | Consequence and recovery | Owner |
28
21
  |---|---|---|---|
29
22
  | | | | |
30
23
 
31
24
  ## Unknowns
32
25
 
33
- | Unknown | Risk if unresolved | Blocking | Owner or next check |
26
+ | Unknown | Consequence | Blocking | Owner or next check |
34
27
  |---|---|---|---|
35
28
  | | | | |
36
29
 
37
- ## System Boundaries
30
+ ## 30 Architecture Context
38
31
 
39
- | Boundary | Responsibility | Inputs and outputs | Authority | Consumers |
32
+ | Boundary or external system | Responsibility | Inputs and outputs | Trust or authority | Consumers |
40
33
  |---|---|---|---|---|
41
34
  | | | | | |
42
35
 
43
- ## Runtime Paths
36
+ Record material quality goals, technical and organizational constraints, data
37
+ sensitivity, permissions, and compliance boundaries with evidence.
38
+
39
+ ## 31 Solution Strategy
40
+
41
+ | Accepted direction | Existing pattern or constraint | Consequence | Compatibility or recovery |
42
+ |---|---|---|---|
43
+ | | | | |
44
+
45
+ ## 32 Building Blocks and Runtime Paths
44
46
 
45
- Trace the important behavior from a live entry point through state and side effects.
46
- Include failure and recovery paths when they are part of the contract.
47
+ | Building block | Responsibility | Authority and contract | Dependencies | Consumers |
48
+ |---|---|---|---|---|
49
+ | | | | | |
47
50
 
48
- | Path | Entry point | State or dependency | Observable result | Recovery |
51
+ | Runtime path | Entry point | State and side effects | Observable result | Failure and recovery |
49
52
  |---|---|---|---|---|
50
53
  | | | | | |
51
54
 
@@ -55,27 +58,24 @@ Include failure and recovery paths when they are part of the contract.
55
58
  |---|---|---|---|---|
56
59
  | | | | | |
57
60
 
58
- ## Quality and Operational Constraints
61
+ ## 40 Deployment and Operations
59
62
 
60
- Include only constraints that are evidenced or explicitly accepted. Give each one a
61
- verification method rather than an arbitrary score.
62
-
63
- | Constraint | Source | Verification | Failure response |
64
- |---|---|---|---|
65
- | | | | |
66
-
67
- ## Security and Permissions
63
+ | Environment or operation | Entry point | Configuration or migration | Observation | Rollback or recovery |
64
+ |---|---|---|---|---|
65
+ | | | | | |
68
66
 
69
- Document trust boundaries, authorization sources, sensitive data handling, and audit
70
- requirements that apply to this scope.
67
+ ## 41 Quality Scenarios and Risks
71
68
 
72
- ## Deployment and Recovery
69
+ | Trigger and condition | Expected response | Measurement | Failure response | Owner |
70
+ |---|---|---|---|---|
71
+ | | | | | |
73
72
 
74
- Record the environments and release or rollback paths that are actually used. Link to
75
- external operational sources instead of duplicating their live contents.
73
+ | Risk or debt | Evidence | Consequence | Mitigation and verification | Status |
74
+ |---|---|---|---|---|
75
+ | | | | | |
76
76
 
77
77
  ## Product Traceability
78
78
 
79
- | Product behavior | Architecture path | Verification evidence |
80
- |---|---|---|
81
- | | | |
79
+ | Product requirement | Architecture path | Public seam | Verification evidence |
80
+ |---|---|---|---|
81
+ | | | | |
@@ -1,61 +1,74 @@
1
- # Discovery Record
1
+ # Discovery Evidence
2
2
 
3
- Use this document for evidence that affects product scope or a baseline decision.
4
- Leave unsupported sections empty. Link to durable sources instead of copying large
5
- external payloads.
3
+ Record product evidence and accepted decisions. Link to durable sources instead of
4
+ copying provider payloads or research transcripts.
6
5
 
7
6
  ## Scope
8
7
 
9
- - Repository or product area:
10
- - Decision this research must unlock:
11
- - Evidence freshness boundary:
8
+ - Repository or product boundary:
9
+ - Baseline id and revision:
10
+ - Decision this evidence must unlock:
11
+ - Freshness boundary:
12
12
 
13
13
  ## Observed
14
14
 
15
- Record directly observed behavior, user input, repository facts, and sourced external
16
- facts. Identify the source and observation date.
17
-
18
- | Evidence | Source or reference | Finding | Freshness |
15
+ | Fact or current behavior | Evidence reference | Observed at | Affected section |
19
16
  |---|---|---|---|
20
17
  | | | | |
21
18
 
22
19
  ## Decisions
23
20
 
24
- Record only accepted decisions. Include the reason, evidence, owner, and the contract
25
- or specification affected.
26
-
27
- | Decision | Reason and evidence | Owner | Affected contract |
21
+ | Decision | Evidence and rationale | Owner | Affected contract |
28
22
  |---|---|---|---|
29
23
  | | | | |
30
24
 
31
25
  ## Unknowns
32
26
 
33
- Separate blocking unknowns from questions that are outside the accepted scope.
27
+ | Unknown | Consequence | Blocking | Owner or next evidence |
28
+ |---|---|---|---|
29
+ | | | | |
30
+
31
+ ## 00 Problem Validation
34
32
 
35
- | Unknown | Why it matters | Blocking | Owner or next evidence |
33
+ - Problem and affected actor:
34
+ - Current workaround and consequence:
35
+ - Demand or usage evidence:
36
+ - Accepted problem boundary:
37
+
38
+ ## 01 Opportunity Discovery
39
+
40
+ | Desired outcome | Opportunity | Evidence | Constraint or dependency |
36
41
  |---|---|---|---|
37
42
  | | | | |
38
43
 
39
- ## Baseline Gaps
44
+ ## 02 Market Assessment
40
45
 
41
- Reference the authoritative gap ids recorded in `.ultra/state.db`. Use one of
42
- `baseline_blocker`, `documentation_drift`, `known_defect`, `technical_debt`,
43
- `unknown`, or `future_change`.
46
+ Record only market, regulatory, commercial, or operational facts that affect a
47
+ decision. Include source date, segment, geography, and assumptions when applicable.
44
48
 
45
- | Gap id | Category | Status | Evidence reference | Owner |
46
- |---|---|---|---|---|
47
- | | | | | |
49
+ ## 03 Alternatives
48
50
 
49
- ## Current Behavior Notes
51
+ | Current alternative | Evidence | Meaningful difference | Strategy implication |
52
+ |---|---|---|---|
53
+ | | | | |
54
+
55
+ ## 04 Product Strategy
56
+
57
+ - Intended actors and outcome:
58
+ - Value delivered through observable behavior:
59
+ - Accepted tradeoffs:
60
+ - Explicit constraints or exclusions:
61
+
62
+ ## 05 Assumptions and Validation
50
63
 
51
- For an existing project, describe only behavior confirmed from source, tests, runtime,
52
- or maintained documentation. For a new project, record the accepted problem and
53
- constraints without inventing current behavior.
64
+ | Assumption | Current evidence | Validation signal | Decision rule | Owner |
65
+ |---|---|---|---|---|
66
+ | | | | | |
54
67
 
55
- ## Traceability
68
+ ## Baseline Gaps
56
69
 
57
- Link each consequential finding to the product or architecture section it informs.
70
+ Reference authoritative gap ids from `.ultra/state.db`.
58
71
 
59
- | Finding | Target specification | Status |
60
- |---|---|---|
61
- | | | |
72
+ | Gap id | Category | Status | Evidence | Owner |
73
+ |---|---|---|---|---|
74
+ | | | | | |
@@ -1,27 +1,22 @@
1
1
  # Product Specification
2
2
 
3
- This document defines accepted product behavior and scope. It is a durable contract,
4
- not a research transcript or a task list.
3
+ Define accepted product behavior and scope. Keep current behavior distinct from
4
+ proposed behavior; this is not a transcript or task list.
5
5
 
6
6
  ## Scope
7
7
 
8
8
  - Product or repository boundary:
9
9
  - Intended outcome:
10
- - Explicit non-goals:
10
+ - Explicit non-goals or constraints:
11
11
 
12
12
  ## Observed
13
13
 
14
- Record confirmed current behavior and externally visible constraints. For an existing
15
- project, cite source, test, runtime, or maintained documentation evidence.
16
-
17
- | Behavior or constraint | Evidence reference | Status |
18
- |---|---|---|
19
- | | | |
14
+ | Current behavior or constraint | Evidence reference | Status | Affected requirement |
15
+ |---|---|---|---|
16
+ | | | | |
20
17
 
21
18
  ## Decisions
22
19
 
23
- Record accepted product decisions and the evidence or owner decision behind them.
24
-
25
20
  | Decision | Rationale | Acceptance impact | Owner |
26
21
  |---|---|---|---|
27
22
  | | | | |
@@ -32,36 +27,50 @@ Record accepted product decisions and the evidence or owner decision behind them
32
27
  |---|---|---|---|
33
28
  | | | | |
34
29
 
35
- ## Actors and Entry Points
30
+ ## 10 Actors and Jobs
36
31
 
37
- Include actors only when they are supported by evidence. Describe the public entry
38
- point through which each actor reaches the behavior.
32
+ | Actor or system | Job and context | Entry point | Constraints | Evidence |
33
+ |---|---|---|---|---|
34
+ | | | | | |
39
35
 
40
- | Actor or system | Need | Entry point | Evidence |
41
- |---|---|---|---|
42
- | | | | |
36
+ ## 11 User Scenarios
43
37
 
44
- ## Behavior Contracts
38
+ | Scenario id | Actor and trigger | Flow | Observable outcome | Failure and recovery | Evidence |
39
+ |---|---|---|---|---|---|
40
+ | | | | | | |
45
41
 
46
- Give each required behavior a stable identifier. State preconditions, observable
47
- result, failure behavior, and recovery where relevant.
42
+ ## 20 Behavioral Requirements and Acceptance
48
43
 
49
- ### Behavior: pending
44
+ ### Requirement: pending
50
45
 
51
- - Trigger:
46
+ - Source scenario or constraint:
52
47
  - Preconditions:
48
+ - Action:
53
49
  - Observable result:
54
- - Failure behavior:
55
- - Recovery:
56
- - Evidence or decision:
50
+ - Error behavior and recovery:
51
+ - Verification:
57
52
 
58
- ## Acceptance
53
+ ## 21 Capability and Scope Boundary
59
54
 
60
- | Behavior | Acceptance evidence | Public seam | Verification |
55
+ | Capability | Included requirements | Dependencies | Status and rationale |
61
56
  |---|---|---|---|
62
57
  | | | | |
63
58
 
59
+ Scope status must reflect an explicit decision. Do not infer a reduced product posture.
60
+
61
+ ## 22 Outcomes and Measurements
62
+
63
+ | Outcome or guardrail | Definition | Evidence source | Decision use | Owner |
64
+ |---|---|---|---|---|
65
+ | | | | | |
66
+
64
67
  ## Documentation Impact
65
68
 
66
- List maintained documents that must stay consistent with this contract, or record a
67
- specific reason why no documentation change is required.
69
+ List maintained documents that must stay consistent, or record a specific no-change
70
+ rationale.
71
+
72
+ ## Architecture Traceability
73
+
74
+ | Requirement | Public seam | Architecture path | Verification evidence |
75
+ |---|---|---|---|
76
+ | | | | |
@@ -0,0 +1,48 @@
1
+ # Research Traceability
2
+
3
+ This file is a navigation and convergence artifact. Do not duplicate the baseline
4
+ specifications' prose.
5
+
6
+ ## Scope
7
+
8
+ - Baseline or change id:
9
+ - Research workflow id and mode:
10
+ - Repository revision:
11
+ - Completed step set:
12
+
13
+ ## Observed
14
+
15
+ | Claim | Evidence reference | Specification anchor |
16
+ |---|---|---|
17
+ | | | |
18
+
19
+ ## Decisions
20
+
21
+ | Decision | Owner and approval | Specification anchor |
22
+ |---|---|---|
23
+ | | | |
24
+
25
+ ## Unknowns
26
+
27
+ | Unknown or gap id | Blocking | Owner or next action |
28
+ |---|---|---|
29
+ | | | |
30
+
31
+ ## End-to-End Trace
32
+
33
+ | Problem or constraint | Actor and scenario | Requirement and acceptance | Architecture path | Verification |
34
+ |---|---|---|---|---|
35
+ | | | | | |
36
+
37
+ ## Verification
38
+
39
+ | Command or observation | Result | Evidence location | Freshness |
40
+ |---|---|---|---|
41
+ | | | | |
42
+
43
+ ## Planning Entry
44
+
45
+ - Accepted scope and posture:
46
+ - Required references:
47
+ - Blocking gaps:
48
+ - Exact next route:
@@ -1,36 +1,19 @@
1
- <!-- Body template only. The projector owns authoritative YAML frontmatter. -->
1
+ <!-- The projector owns YAML frontmatter and the generated execution contract. -->
2
2
 
3
- # Task {id}: {title}
3
+ # Task Notes
4
4
 
5
- ## Outcome
5
+ Use this body only for task-specific implementation discoveries that are not already
6
+ authoritative task fields. Stable specification learning must follow the change
7
+ approval workflow.
6
8
 
7
- [Describe the observable result this task must produce.]
9
+ ## Implementation Notes
8
10
 
9
- ## Required context
11
+ - [Evidence-backed note with a source reference]
10
12
 
11
- - `[project-relative reference]` — [why it is required]
13
+ ## Open Questions
12
14
 
13
- ## Execution contract
15
+ - [Question, consequence, owner, and next evidence]
14
16
 
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]
17
+ ## Recovery Notes
18
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]
19
+ - [Current safe resume point and any external prerequisite]
package/CHANGELOG.md CHANGED
@@ -7,6 +7,89 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.15.0] — 2026-07-22
11
+
12
+ ### Added
13
+
14
+ - Added schema 15 typed semantic records for all seventeen research steps, including
15
+ step-specific attributes, stable ids, evidence links, source anchors, stored source
16
+ digests, synthesis trace validation, and current-source health checks.
17
+ - Added complete Change Contracts with executable acceptance, non-goals, public seams,
18
+ recovery, unresolved decisions, profile rationale/risk flags, and explicit bounded
19
+ research disposition.
20
+ - Added plan acceptance coverage and traceability gates, one-task enforcement for quick
21
+ changes, verified specification-learning application, and a published
22
+ `ultra-baseline-reconciliation-v1` schema.
23
+ - Added task/change/plan review modes and machine-validated worker selection or skip
24
+ provenance while preserving independent specification-fidelity and engineering axes.
25
+
26
+ ### Changed
27
+
28
+ - Unified every greenfield, brownfield, migrated, and daily route through
29
+ `ultra-change` before planning. Initial planning can no longer bypass durable intent,
30
+ risk, research, recovery, or acceptance authority.
31
+ - Reworked the workflow Skills into compact host-neutral execution contracts with
32
+ focused references for research semantics, Change profiles, planning preflight,
33
+ review modes, and delivery reconciliation.
34
+ - Made context budgets advisory while keeping evidence, authority, acceptance,
35
+ specification freshness, review, and recovery gates deterministic and blocking.
36
+
37
+ ### Fixed
38
+
39
+ - Fixed research completion that previously stored prose and file hashes without a
40
+ machine-consumable semantic index or stale-source detection.
41
+ - Fixed planning that could complete without proving every Change acceptance criterion
42
+ had an executable owner or that each task traced to accepted evidence.
43
+ - Fixed approved learning and delivery reconciliation that could record status without
44
+ verifying the applied target, before/after content, source anchor, and archive replay
45
+ provenance.
46
+ - Fixed review artifacts that did not distinguish task, aggregate change, and plan
47
+ scope or preserve why each bounded worker was selected or skipped.
48
+ - Fixed host review-prompt adaptation across intentional Markdown line wrapping and
49
+ excluded tests, test fixtures, and generated Python bytecode from installed and
50
+ published plugin payloads.
51
+
52
+ ## [0.14.0] — 2026-07-19
53
+
54
+ ### Added
55
+
56
+ - Added one read-only JavaScript Context Spine reader and renderer for the
57
+ authoritative `.ultra/state.db`, plus a packaged breadcrumb CLI shared by
58
+ Claude Code, Codex, OpenCode, Kimi Code, and the MCP server.
59
+ - Added cross-host regression coverage proving stale JSON projections and
60
+ context manifests cannot override the active database change or task.
61
+
62
+ ### Changed
63
+
64
+ - Changed `task.parse_prd` and `task.expand` to validate and atomically persist
65
+ task objects derived by the active host model. Ultra MCP no longer starts a
66
+ second model client or requires an Anthropic, OpenAI, or other provider key.
67
+ - Reduced Python lifecycle hooks and the generated OpenCode plugin to thin
68
+ adapters over the canonical breadcrumb reader. Checkpoint and resume data is
69
+ advisory recovery evidence rather than a second workflow authority.
70
+ - Made collaboration and verification Skills host-neutral, kept the current
71
+ host responsible for delivery, and generated Codex metadata from the source
72
+ Skill instead of maintaining duplicated prompt bodies.
73
+
74
+ ### Fixed
75
+
76
+ - Fixed authoritative-state and injected-prompt divergence caused by hooks
77
+ reading `.ultra/workflow-state.json` or context manifests after
78
+ `.ultra/state.db` had advanced.
79
+ - Fixed stale or incomplete state routing: missing projects route to
80
+ `ultra-init`, prior schemas route to migration, and corrupt current schemas
81
+ route to `ultra-doctor` without fabricating active workflow context.
82
+ - Fixed installed OpenCode context injection so it reads the bundled runtime
83
+ with the installer-selected Node executable and remains portable outside the
84
+ source checkout.
85
+ - Fixed Codex collaboration invocation and generated metadata quoting while
86
+ preserving the bounded read-only advisor contract.
87
+
88
+ ### Removed
89
+
90
+ - Removed the private LLM client, planner prompt builders, and the
91
+ `@anthropic-ai/sdk` and `openai` runtime dependencies.
92
+
10
93
  ## [0.13.0] — 2026-07-18
11
94
 
12
95
  ### Added
@@ -541,7 +624,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
541
624
  skill manifest, CLI protocol + mapping table; 5 spec validators.
542
625
  - **Phase 0 — skeleton**: multi-runtime installer scaffolding.
543
626
 
544
- [Unreleased]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.13.0...HEAD
627
+ [Unreleased]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.15.0...HEAD
628
+ [0.15.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.14.0...v0.15.0
629
+ [0.14.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.13.0...v0.14.0
545
630
  [0.13.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.12.1...v0.13.0
546
631
  [0.12.1]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.12.0...v0.12.1
547
632
  [0.12.0]: https://github.com/rocky2431/ultra-builder-pro-cli/compare/v0.11.0...v0.12.0