omnius 1.0.752 → 1.0.754

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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.js
3
- size: 38514804 bytes
4
- sha256: 3ab14289e97823326a1c2463d6329a9ff83ccecf63536ad50d744c318704699f
3
+ size: 38632013 bytes
4
+ sha256: e5facb5a279c56a832fe40ab6e894e2ed560b57a5336a3c0741a6161f9359913
@@ -26111,6 +26111,108 @@
26111
26111
  "Allowing an autonomous agent to invoke it without an explicit user action"
26112
26112
  ]
26113
26113
  },
26114
+ {
26115
+ "id": "command.selfimprove",
26116
+ "kind": "command",
26117
+ "title": "/selfimprove",
26118
+ "summary": "Show durable review/proposal backlog, leases, retries, and last error",
26119
+ "aliases": [
26120
+ "/selfimprove",
26121
+ "selfimprove",
26122
+ "/self-improve",
26123
+ "self-improve"
26124
+ ],
26125
+ "keywords": [
26126
+ "command",
26127
+ "runtime",
26128
+ "selfimprove",
26129
+ "status",
26130
+ "run",
26131
+ "review",
26132
+ "autonomous",
26133
+ "pause",
26134
+ "rollback"
26135
+ ],
26136
+ "maturity": "stable",
26137
+ "layer": "interface",
26138
+ "audiences": [
26139
+ "user",
26140
+ "coding-agent",
26141
+ "integrator"
26142
+ ],
26143
+ "interfaces": [
26144
+ {
26145
+ "type": "tui",
26146
+ "target": "/selfimprove"
26147
+ },
26148
+ {
26149
+ "type": "rest",
26150
+ "target": "/v1/commands/selfimprove"
26151
+ },
26152
+ {
26153
+ "type": "gateway-command",
26154
+ "target": "/selfimprove"
26155
+ }
26156
+ ],
26157
+ "references": [
26158
+ {
26159
+ "type": "source",
26160
+ "target": "packages/cli/src/tui/command-registry.ts",
26161
+ "relation": "registry"
26162
+ }
26163
+ ],
26164
+ "signatures": [
26165
+ {
26166
+ "signature": "/selfimprove status",
26167
+ "description": "Show durable review/proposal backlog, leases, retries, and last error"
26168
+ },
26169
+ {
26170
+ "signature": "/selfimprove run",
26171
+ "description": "Immediately drain eligible self-improvement work with the parent model"
26172
+ },
26173
+ {
26174
+ "signature": "/selfimprove review",
26175
+ "description": "Run evidence review and candidate generation without active promotion"
26176
+ },
26177
+ {
26178
+ "signature": "/selfimprove autonomous",
26179
+ "description": "Opt in to downstream candidate experiment and promotion orchestration"
26180
+ },
26181
+ {
26182
+ "signature": "/selfimprove pause",
26183
+ "description": "Pause processing while retaining the durable backlog"
26184
+ },
26185
+ {
26186
+ "signature": "/selfimprove rollback <promotion-id> [reason]",
26187
+ "description": "Restore the exact pre-promotion baseline and verify the rollback"
26188
+ }
26189
+ ],
26190
+ "subcommands": [
26191
+ "status",
26192
+ "run",
26193
+ "review",
26194
+ "autonomous",
26195
+ "pause",
26196
+ "rollback"
26197
+ ],
26198
+ "implementation_status": "implemented",
26199
+ "surfaces": {
26200
+ "tui": true,
26201
+ "rest": true,
26202
+ "gateway": true,
26203
+ "agentTool": false
26204
+ },
26205
+ "safety": {
26206
+ "userOnly": true,
26207
+ "destructive": false,
26208
+ "networked": false,
26209
+ "secretBearing": false,
26210
+ "profileGated": false
26211
+ },
26212
+ "avoid_when": [
26213
+ "Allowing an autonomous agent to invoke it without an explicit user action"
26214
+ ]
26215
+ },
26114
26216
  {
26115
26217
  "id": "command.selfmodify",
26116
26218
  "kind": "command",
package/docs/DISCOVERY.md CHANGED
@@ -364,6 +364,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
364
364
  | `command.scheduler` | /scheduler | Scheduled tasks control panel (list/kill/toggle) |
365
365
  | `command.score` | /score | Show inference capability scorecard (memory, compute, speed, models) |
366
366
  | `command.secrets` | /secrets | List registered secrets |
367
+ | `command.selfimprove` | /selfimprove | Show durable review/proposal backlog, leases, retries, and last error |
367
368
  | `command.selfmodify` | /selfmodify | Toggle agent self-modify mode for natural-language runtime commands |
368
369
  | `command.sessions` | /sessions | Browse saved sessions |
369
370
  | `command.sethome` | /sethome | Set the project home for gateway/session use |
@@ -24,7 +24,7 @@ Completed implementation:
24
24
 
25
25
  Acceptance evidence: `packages/orchestrator/tests/self-improvement.test.ts` and `packages/orchestrator/tests/agenticRunner.test.ts`.
26
26
 
27
- ## WO-SI-02 — Inference review and candidate lineage — complete at framework level
27
+ ## WO-SI-02 — Inference review and candidate lineage — complete end to end
28
28
 
29
29
  Completed implementation:
30
30
 
@@ -33,7 +33,23 @@ Completed implementation:
33
33
  - Candidates retain parent IDs, review IDs, proposer identity, hypotheses, and artifact provenance.
34
34
  - Decisions cite only evaluation events available for that candidate and require a rollback plan.
35
35
 
36
- The TUI now connects review/proposal to the configured parent-model backend every five completed tasks as low-priority work. Remaining production work: expose lineage in `/memory` or a dedicated improvement view.
36
+ The TUI now connects review/proposal to the currently selected parent-model
37
+ backend through a durable workspace controller. Every recorded outcome enters an
38
+ oldest-first backlog; processing uses low-priority/yielding inference and no
39
+ substitute model. Queue stage, attempts, retry horizon, last error, parent model,
40
+ cross-process lease, downstream stage, and downstream receipt IDs survive
41
+ restart in `.omnius/self-improvement/controller-state.json`. Stale leases are
42
+ recovered, proposal failures resume after their completed review, and long
43
+ downstream work renews its lease. `/selfimprove status|run|review|autonomous|pause`
44
+ provides operator-visible state and control. Review-only is the default;
45
+ autonomous downstream execution is connected to the materialization,
46
+ evaluation, adjudication, training, and promotion runtime. Review-only remains
47
+ the default. `/selfimprove autonomous` is the explicit opt-in that authorizes
48
+ scoped production mutation; an unavailable dependency remains visibly
49
+ retryable rather than being falsely reported as complete.
50
+
51
+ Acceptance evidence: `packages/cli/tests/self-improvement-controller.test.ts`
52
+ and the CLI command-registry/coherence regression suites.
37
53
 
38
54
  ## WO-SI-03 — Honest training export — complete
39
55
 
@@ -69,42 +85,87 @@ Completed implementation:
69
85
 
70
86
  Direct baseline, training, evaluation, and export commands also refuse to run outside a broker lease or with static GPU ordinals.
71
87
 
72
- ## WO-SI-06 — Private evaluation and Pareto archive — partial
88
+ ## WO-SI-06 — Private evaluation and Pareto archive — complete
73
89
 
74
90
  Completed implementation:
75
91
 
76
92
  - Search, held-out, transfer, and adversarial evaluation types.
77
93
  - Held-out/transfer/adversarial events are rejected unless marked private to the proposer.
78
94
  - Multiple metrics and directionality are retained without collapsing them to one reward.
79
-
80
- Remaining production work:
81
-
82
- 1. Add a Pareto-front service over capability, regression, latency, inference tokens, VRAM, and reward-hacking metrics.
83
- 2. Run at least three seeds for stochastic candidates.
84
- 3. Add private cross-model transfer suites and a frozen canary set.
85
- 4. Make evaluation fixtures unreadable from candidate sandboxes.
86
-
87
- ## WO-SI-07 — Prompt and harness evolution — pending experiment
88
-
89
- 1. Generate prompt candidates from exact traces and inferred diagnoses.
90
- 2. Generate harness/code candidates in isolated worktrees.
91
- 3. Validate interfaces before expensive evaluation.
92
- 4. Compare greedy, beam, and Pareto selection.
93
- 5. Explicitly probe for benchmark-specific shortcuts and trace contamination.
94
-
95
- Exit criterion: statistically credible held-out and transfer improvement with no material regression in safety, provenance, latency, or tool correctness.
96
-
97
- ## WO-SI-08 — Adapter and preference experiments — pending execution
98
-
99
- 1. Establish frozen base-model and current-production baselines.
100
- 2. Run SFT/LoRA and QLoRA candidates over inference-reviewed real traces plus original-data anchors.
101
- 3. Construct DPO pairs only when independent inference review explains why one real response is preferred.
102
- 4. Compare environment-feedback curricula against static transcript SFT.
103
- 5. Measure catastrophic forgetting, tail performance, calibration, tool integrity, and cross-model transfer.
104
- 6. Never merge or publish weights automatically.
105
-
106
- Exit criterion: candidate beats the baseline on private held-out and transfer suites, passes model-collapse/tail checks, and retains a working rollback artifact.
107
-
108
- ## WO-SI-09 — Explicit promotion transaction — pending
109
-
110
- Implement a separate operator-visible promotion command. It must verify the cited decision and artifacts, capture the previous version, apply one reversible target change, run smoke tests, record a promotion event, and support rollback. A running inference must never call this implicitly.
95
+ - Materialized candidates receive three independent private semantic reviews
96
+ (held-out, transfer, and adversarial) from the selected parent model.
97
+ - Adapter candidates run isolated baseline, train, and private evaluation jobs
98
+ over at least three seeds, including tail and reward-hacking evidence.
99
+ - Compatible historical candidates are compared through multi-objective Pareto
100
+ nondominance. Pareto output carries `authorizesPromotion: false` and is only
101
+ evidence for a separate inference adjudicator.
102
+ - Candidate worktrees never receive private evaluation fixtures or prior
103
+ private judgments.
104
+
105
+ ## WO-SI-07 — Prompt, harness, tool, and code evolution — complete
106
+
107
+ Implemented:
108
+
109
+ - The selected parent model first locates a minimal path set from immutable
110
+ evidence, then compiles complete typed file artifacts against exact current
111
+ file contents and preimage hashes.
112
+ - Prompt, harness, tool, and code candidates materialize in detached worktrees
113
+ (with an isolated candidate-directory fallback), never directly in the live
114
+ tree.
115
+ - Direct-argv verification records bounded, hashed stdout/stderr receipts.
116
+ - Private multi-perspective evaluation and Pareto evidence feed an independent
117
+ inference adjudicator; no scalar threshold or deterministic claim gate
118
+ decides semantic quality.
119
+ - Only an inference `promote` verdict can enter the scoped transaction path.
120
+
121
+ ## WO-SI-08 — Adapter and preference experiments — complete orchestration
122
+
123
+ Implemented:
124
+
125
+ - Real transcript examples require an inference `include` review and immutable
126
+ provenance overlap before bundle export.
127
+ - Fine-tuning suite intake freezes nonempty provenance-isolated
128
+ train/validation/test splits.
129
+ - Each candidate executes baseline → train → private adapter evaluation for at
130
+ least three seeds through exact broker GPU UUID/VRAM/justification/horizon
131
+ leases.
132
+ - Dataset IDs and job IDs are durably checkpointed; restart resumes polling
133
+ instead of submitting duplicate jobs.
134
+ - Tail, reward-hacking, capability, and additional inference-reviewed metrics
135
+ remain separate objectives. SHA-256-addressed adapters on the seed frontier
136
+ are marked promotion-ready only after inference adjudication.
137
+ - Training and evaluation are automatic when configured, while external model
138
+ publication and replacement of a selected model tag remain separate release
139
+ operations rather than an implicit side effect.
140
+
141
+ ## WO-SI-09 — Promotion, autonomous rewrite, and rollback — complete
142
+
143
+ Implemented:
144
+
145
+ - Review-only is the safe default. `/selfimprove autonomous` is the explicit,
146
+ durable opt-in for scoped autonomous source promotion.
147
+ - Promotion requires an archived inference `promote` decision, an intact
148
+ materialization, explicit allowed paths, an enabled policy, and verifier
149
+ commands. Mechanical checks protect integrity but do not substitute for the
150
+ semantic adjudicator.
151
+ - The transaction captures exact baselines, applies only candidate-owned paths,
152
+ verifies the live target, records a hash-addressed promotion receipt, and
153
+ automatically restores the baseline after apply, verification, or receipt
154
+ failure.
155
+ - `/selfimprove rollback <promotion-id> [reason]` restores the exact recorded
156
+ baseline, refuses to overwrite later human edits, reruns verification, and
157
+ appends a rollback receipt.
158
+
159
+ ## Runtime configuration
160
+
161
+ - `OMNIUS_SELF_IMPROVE_ALLOWED_PATHS`: comma-separated autonomous source scope.
162
+ - `OMNIUS_SELF_IMPROVE_GPU_UUIDS`: exact broker UUIDs for adapter experiments;
163
+ the current `/gpu` preference is used when this is unset.
164
+ - `OMNIUS_SELF_IMPROVE_VRAM_MIB`: requested VRAM per experiment (default 24576).
165
+ - `OMNIUS_SELF_IMPROVE_DURATION_SECONDS`: lease horizon (default 14400).
166
+ - `OMNIUS_SELF_IMPROVE_JUSTIFICATION`: visible broker justification.
167
+ - `OMNIUS_SELF_IMPROVE_MODEL_ID`: fine-tuning suite base-model record.
168
+ - `OMNIUS_FINE_TUNING_SUITE_URL`: suite endpoint.
169
+
170
+ The complete path is restart-resumable and inherits the selected parent model;
171
+ it contains no Nemotron or alternate-model fallback.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.752",
3
+ "version": "1.0.754",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.752",
9
+ "version": "1.0.754",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.752",
3
+ "version": "1.0.754",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/library.js",