@alan512/experienceengine 0.3.3 → 0.3.5

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 (45) hide show
  1. package/.mcp.json +11 -11
  2. package/README.md +8 -0
  3. package/README.zh-CN.md +8 -0
  4. package/dist/adapters/codex/action-registry.d.ts +3 -0
  5. package/dist/adapters/codex/action-registry.js +22 -0
  6. package/dist/adapters/codex/action-registry.js.map +1 -1
  7. package/dist/adapters/codex/broker-tools.d.ts +6 -0
  8. package/dist/adapters/codex/broker-tools.js +7 -1
  9. package/dist/adapters/codex/broker-tools.js.map +1 -1
  10. package/dist/adapters/codex/mcp-server.js +31 -1
  11. package/dist/adapters/codex/mcp-server.js.map +1 -1
  12. package/dist/cli/commands/doctor.d.ts +2 -1
  13. package/dist/cli/commands/doctor.js +23 -0
  14. package/dist/cli/commands/doctor.js.map +1 -1
  15. package/dist/cli/commands/inspect.js +41 -6
  16. package/dist/cli/commands/inspect.js.map +1 -1
  17. package/dist/cli/commands/status.js +16 -0
  18. package/dist/cli/commands/status.js.map +1 -1
  19. package/dist/cli/dispatch.js +11 -13
  20. package/dist/cli/dispatch.js.map +1 -1
  21. package/dist/install/openclaw-cli.d.ts +2 -0
  22. package/dist/install/openclaw-cli.js +5 -0
  23. package/dist/install/openclaw-cli.js.map +1 -1
  24. package/dist/install/openclaw-installer.js +65 -6
  25. package/dist/install/openclaw-installer.js.map +1 -1
  26. package/dist/interaction/quality-band.d.ts +30 -0
  27. package/dist/interaction/quality-band.js +149 -0
  28. package/dist/interaction/quality-band.js.map +1 -0
  29. package/dist/interaction/repo-summary.d.ts +3 -0
  30. package/dist/interaction/repo-summary.js +1 -0
  31. package/dist/interaction/repo-summary.js.map +1 -1
  32. package/dist/interaction/service.d.ts +26 -0
  33. package/dist/interaction/service.js +145 -81
  34. package/dist/interaction/service.js.map +1 -1
  35. package/dist/interaction/surface-tiers.d.ts +8 -0
  36. package/dist/interaction/surface-tiers.js +19 -0
  37. package/dist/interaction/surface-tiers.js.map +1 -0
  38. package/dist/store/sqlite/repositories/task-run-repo.d.ts +1 -0
  39. package/dist/store/sqlite/repositories/task-run-repo.js +6 -0
  40. package/dist/store/sqlite/repositories/task-run-repo.js.map +1 -1
  41. package/docs/releases/v0.3.4.md +22 -0
  42. package/docs/releases/v0.3.5.md +42 -0
  43. package/docs/user-guide.md +30 -3
  44. package/openclaw.plugin.json +1 -1
  45. package/package.json +1 -1
@@ -0,0 +1,42 @@
1
+ # ExperienceEngine v0.3.5
2
+
3
+ v0.3.5 productizes inspection and operator surfaces in one release: Quality Band becomes the shared trust explanation model, and CLI/MCP surfaces now distinguish routine, operator, and advanced workflows.
4
+
5
+ ## What Changed
6
+
7
+ - Added a shared derived Quality Band explanation with `strong`, `building`, and `risky` bands.
8
+ - Added stable reason codes, readable reasons, evidence references, and review-only action text for node inspection.
9
+ - Preserved existing `qualityBand` and `qualityDrivers` public fields while adding the richer structured `quality` payload.
10
+ - Updated `ee inspect --last`, `ee inspect node:<id>`, and `ee inspect repo` to show Quality Band context.
11
+ - Exposed the same structured Quality Band fields through Codex/MCP inspection and broker payloads.
12
+ - Added shared routine/operator/advanced surface tier metadata.
13
+ - Reworked default CLI help so routine host-first review, operator workflows, and advanced/experimental commands are grouped separately.
14
+ - Added tier metadata to Codex broker action listings while preserving existing action ids, categories, and risk levels.
15
+ - Updated MCP capabilities to expose routine, operator, and advanced surface groupings.
16
+ - Updated README, README.zh-CN, user guide, and architecture docs to describe workflow tier separately from mutation risk.
17
+ - Hardened OpenClaw upgrade/repair reinstall handling so path/archive reinstalls safely clear stale ExperienceEngine plugin paths and allow-list entries before reinstalling.
18
+ - Added unit coverage for strong/building/risky derivation, CLI output, repo summary output, and Codex/MCP structured payloads.
19
+
20
+ ## Boundaries
21
+
22
+ - Quality Band is explanatory only.
23
+ - It does not mutate nodes, create a new lifecycle state, or replace delivery gating.
24
+ - Runtime injection still depends on the existing delivery state, repo policy, scorecard, and second-opinion paths.
25
+ - Surface tiers are presentation and metadata only.
26
+ - Existing CLI commands and Codex broker action ids remain available.
27
+ - Operator review, hygiene, and export drafts remain read-only inspection flows; tier labeling does not imply policy restore, node mutation, or export writing.
28
+ - Risk and tier are separate axes: read-only operator workflows can be low-risk, while install/upgrade/import/rollback remain high-impact operator workflows.
29
+
30
+ ## Validation
31
+
32
+ - `pnpm exec tsc --noEmit`
33
+ - `pnpm exec vitest run tests/unit/quality-band.test.ts tests/unit/interaction-service.test.ts tests/unit/inspect-command.test.ts tests/unit/codex-mcp-server.test.ts tests/unit/repo-summary.test.ts tests/unit/operator-review-flow.test.ts`
34
+ - `pnpm exec vitest run tests/unit/cli-dispatch.test.ts tests/unit/codex-broker-tools.test.ts tests/unit/codex-mcp-server.test.ts`
35
+ - `pnpm exec openspec validate formalize-quality-band-inspection-model --strict`
36
+ - `pnpm exec openspec validate complete-operator-surface-boundaries --strict`
37
+ - `pnpm exec openspec validate --all --strict`
38
+ - `pnpm check`
39
+ - Source-build Windows smoke: `node dist\cli\index.js inspect --last`, `node dist\cli\index.js inspect repo`, `node dist\cli\index.js doctor codex`, `node dist\cli\index.js doctor claude-code`
40
+ - Source-build WSL smoke: `node dist/cli/index.js upgrade openclaw`, `node dist/cli/index.js doctor openclaw`, `node dist/cli/index.js inspect repo`, `node dist/cli/index.js inspect --last`
41
+
42
+ Published npm package and host marketplace validation should be repeated after release because the smoke checks above used the source build.
@@ -221,6 +221,27 @@ Use `ee` for:
221
221
  - learning and intervention inspection
222
222
  - quick helped / harmed feedback
223
223
 
224
+ ExperienceEngine surfaces are grouped by workflow tier:
225
+
226
+ - `Routine`
227
+ - host-first review and feedback
228
+ - `ee status`
229
+ - `ee doctor <host>`
230
+ - `ee inspect --last`
231
+ - `ee helped` / `ee harmed`
232
+ - `Operator`
233
+ - `ee install|upgrade|repair <host>`
234
+ - `ee inspect review`
235
+ - `ee inspect hygiene`
236
+ - `ee inspect export-drafts`
237
+ - managed backup/export/import/rollback
238
+ - `Advanced / experimental`
239
+ - `ee maintenance ...`
240
+ - raw evaluation commands
241
+ - broker internals and developer diagnostics
242
+
243
+ Workflow tier is separate from mutation risk. Operator review, hygiene, and export drafts are operator-tier but read-only. Install, upgrade, import, and rollback are operator-tier and high-impact.
244
+
224
245
  `ee status` and `ee doctor` now also summarize recent retrieval health in product language. They still show the raw counters, but they additionally explain whether ExperienceEngine is mostly injecting, mostly staying conservative, or still skipping too many close-match tasks in the current repo.
225
246
 
226
247
  Their roles are intentionally different:
@@ -251,9 +272,12 @@ That output now tells you both:
251
272
  When you inspect a specific node, ExperienceEngine now also shows a lightweight quality judgment layer:
252
273
 
253
274
  - a `quality band` (`strong`, `building`, or `risky`)
254
- - the short drivers behind that judgment
275
+ - a short summary, reason codes, readable reasons, and evidence references behind that judgment
276
+ - a review-only action for `building` or `risky` guidance when a closer look is useful
255
277
  - a compact applicability profile covering best fit, scope validity, confidence, risk, and when to avoid reuse
256
278
 
279
+ The same Quality Band model is also exposed in host-native MCP inspection payloads and in `ee inspect repo` as a current-scope distribution. It is explanatory only: it helps you judge whether guidance is strong, still building, or risky, but it does not by itself change delivery state, mutate nodes, or gate injection.
280
+
257
281
  ### Operator Review Workflow
258
282
 
259
283
  Use the operator review workflow when you want one read-only checkpoint across the current repo before deciding what to inspect next.
@@ -670,7 +694,12 @@ Use `ee` directly when:
670
694
  Useful fallback commands:
671
695
 
672
696
  ```bash
697
+ # Routine fallback
673
698
  ee inspect --last
699
+ ee helped
700
+ ee harmed
701
+
702
+ # Operator inspection
674
703
  ee inspect recent injected 10
675
704
  ee inspect review
676
705
  ee inspect repo
@@ -681,8 +710,6 @@ ee inspect active
681
710
  ee inspect node <id>
682
711
  ee inspect state retired
683
712
  ee inspect type warning
684
- ee helped
685
- ee harmed
686
713
  ee feedback --last helped
687
714
  ee feedback node <id> harmed
688
715
  ee disable scope
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "experienceengine",
3
3
  "name": "ExperienceEngine",
4
- "version": "0.3.3",
4
+ "version": "0.3.5",
5
5
  "description": "Context-aware experience intervention controller for coding and debugging tasks.",
6
6
  "configSchema": {
7
7
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alan512/experienceengine",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "description": "Experience governance for coding agents: learn from real task outcomes, inject reusable hints, and retire low-value guidance.",
6
6
  "license": "MIT",