ur-agent 1.22.0 → 1.22.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.22.1
4
+
5
+ ### Added
6
+ - **Rich task decomposition.** `src/services/agents/decomposer.ts` splits large
7
+ goals into atomic subtasks with `goal`, `filesTouched`, `risk` (low/medium/high),
8
+ `testsRequired`, and `rollbackPoint`. `ur crew create|run|plan ... --decompose`
9
+ uses it; a deterministic fallback keeps the command offline and fast, while a
10
+ headless subagent path produces structured JSON.
11
+ - **Parallel specialized subagents.** New `parallel` multi-agent pattern in
12
+ `src/services/agents/patterns.ts`: bug finder, patch writer, test writer,
13
+ security auditor, and style reviewer run concurrently, then a synthesizer
14
+ merges their outputs. Run it with
15
+ `ur pattern parallel "<task>" --execute [--dry-run]`.
16
+ - **AgentKernel abstraction.** `src/services/agents/kernel.ts` is a pure
17
+ orchestrator with seven roles: planner, executor, verifier, critic, memory,
18
+ router, and guard. `ur spec run|verify <name> --kernel` routes through kernel
19
+ stages while the legacy path stays the default.
20
+ - **Spec verification / verifier kernel role.** `ur spec verify <name>` runs
21
+ deterministic `.ur/verify.json` project gates, then a read-only deep
22
+ verification subagent that must prove compile/test/lint/diff/runtime before
23
+ `VERDICT: PASS`. Persists `.ur/specs/<name>/verification.md` and records the
24
+ result in `spec.json`.
25
+
26
+ ### Changed
27
+ - **Version bump.** Updated from 1.22.0 to 1.22.1 across `package.json`,
28
+ `bunfig.toml`, the VS Code extension manifest, and the bundled CLI.
29
+
30
+ ### Verified
31
+ - Added `test/decomposition.test.ts`, `test/parallelPattern.test.ts`, and
32
+ `test/kernel.test.ts` covering decomposition metadata, parallel pattern
33
+ workflow execution, and all seven kernel roles.
34
+
3
35
  ## 1.22.0
4
36
 
5
37
  ### Added
@@ -19,6 +51,28 @@
19
51
  - **Benchmark-style reporting.** `formatEvalReport` prints aggregate cost,
20
52
  tokens, files changed, command failures, human edits, duration, and test pass
21
53
  rate alongside the pass-rate summary.
54
+ - **Spec verification / verifier kernel role.** `ur spec verify <name>` runs
55
+ deterministic project gates from `.ur/verify.json`, then invokes a read-only
56
+ deep verification subagent that must demonstrate compile/test/lint/diff/runtime
57
+ proof before emitting `VERDICT: PASS`. Results are persisted to
58
+ `.ur/specs/<name>/verification.md` and recorded in `spec.json` so `ur spec status`
59
+ shows the latest verdict.
60
+ - **AgentKernel abstraction.** Added `src/services/agents/kernel.ts`, a pure
61
+ orchestrator with seven roles: planner, executor, verifier, critic, memory,
62
+ router, and guard. `ur spec run <name> --kernel` and
63
+ `ur spec verify <name> --kernel` route through kernel stages while the legacy
64
+ loop remains the default. `src/services/agents/kernelSpec.ts` provides
65
+ spec-to-stage adapters.
66
+ - **Rich task decomposition.** Added `src/services/agents/decomposer.ts`. `ur crew
67
+ create|run|plan ... --decompose` splits a goal into atomic subtasks with
68
+ `goal`, `filesTouched`, `risk` (low/medium/high), `testsRequired`, and
69
+ `rollbackPoint` metadata. A deterministic fallback keeps it offline and fast;
70
+ the model path asks a headless subagent for structured JSON.
71
+ - **Parallel specialized subagents.** Added `parallel` multi-agent pattern in
72
+ `src/services/agents/patterns.ts`. Bug finder, patch writer, test writer,
73
+ security auditor, and style reviewer run in parallel, then a synthesizer merges
74
+ the results. `ur pattern parallel "<task>" --execute` runs it via the workflow
75
+ executor with concurrency matching the number of parallel agents.
22
76
 
23
77
  ### Changed
24
78
  - **`makeCliEvalRunner` resets cost state per case**, reads child metrics,
@@ -32,6 +86,14 @@
32
86
  - Added `test/evalMetrics.test.ts` and `test/evalDashboard.test.ts` covering
33
87
  child metrics serialization, report aggregation, dashboard HTML rendering,
34
88
  HTML escaping, and run-metrics persistence.
89
+ - Added `test/specVerify.test.ts` covering dry-run verification, gate fast-fail,
90
+ verification record persistence, and verifier prompt construction.
91
+ - Added `test/kernel.test.ts` covering all seven kernel roles and the spec
92
+ run/verify kernel adapters.
93
+ - Added `test/decomposition.test.ts` covering deterministic decomposition, risk
94
+ heuristics, LLM-driven dry-run decomposition, and crew metadata persistence.
95
+ - Added `test/parallelPattern.test.ts` covering the `parallel` pattern stages,
96
+ workflow compilation, and dry-run execution through the workflow executor.
35
97
 
36
98
  ## 1.21.0
37
99
 
package/README.md CHANGED
@@ -124,7 +124,7 @@ as first-class subcommands in the shipped CLI.
124
124
  | --- | --- |
125
125
  | `ur` | Start an interactive terminal agent session in the current workspace. |
126
126
  | `ur -p` | Run a non-interactive prompt with text, JSON, or stream-JSON output. |
127
- | `ur spec` | Create requirements, design, and task documents under `.ur/specs/`, then run the task list. |
127
+ | `ur spec` | Create requirements, design, and task documents under `.ur/specs/`, run the task list, and verify with strict proof gates. |
128
128
  | `ur escalate` | Plan or run work with fast and oracle model tiers selected from local model capabilities. |
129
129
  | `ur arena` | Run multiple agents on the same task in isolated worktrees and surface the winning diff. |
130
130
  | `ur ci-loop` | Run a build or test command, hand failures to a fix agent, and retry with a bounded budget. |
@@ -135,7 +135,8 @@ as first-class subcommands in the shipped CLI.
135
135
  | `ur worktree` | List, inspect, and clean up UR agent worktrees. |
136
136
  | `ur automation` | Store and run project-local scheduled automation specs under `.ur/automations/`. |
137
137
  | `ur workflow` | Define, validate, graph, run, and resume declarative agent workflows. |
138
- | `ur crew` | Run a lead and worker subagent crew over a shared task board. |
138
+ | `ur crew` | Run a lead and worker subagent crew over a shared task board; `--decompose` auto-splits tasks with risk/tests/rollback metadata. |
139
+ | `ur pattern` | Run multi-agent collaboration patterns (PEER, DOE, concurrent, handoff, debate, parallel); `--execute` runs them as a workflow. |
139
140
  | `ur goal` | Track long-horizon objectives that persist across sessions. |
140
141
  | `ur repo-edit` | Build a repo edit index, plan AST-aware renames, preview patches, and apply with rollback. |
141
142
  | `ur code-index` | Build, query, or watch a local semantic code index using Ollama embeddings. |
@@ -171,6 +172,12 @@ Examples:
171
172
  ```sh
172
173
  ur spec init checkout --goal "1. add cart 2. add payment 3. add receipt"
173
174
  ur spec run checkout --all --dry-run
175
+ ur spec run checkout --all --kernel
176
+ ur spec verify checkout --kernel
177
+ ur crew create parser-crew --goal "fix the flaky parser test" --decompose --dry-run
178
+ ur crew plan parser-crew --goal "fix the flaky parser test" --decompose
179
+ ur crew run parser-crew --workers 3 --decompose --dry-run
180
+ ur pattern parallel "refactor login without changing behavior" --execute --dry-run
174
181
  ur arena "implement a debounce helper" --agents 2 --dry-run
175
182
  ur escalate run "refactor the cache layer" --force-oracle --dry-run
176
183
  ur test-first detect