@miller-tech/uap 1.108.1 → 1.109.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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/bin/cli.js +23 -0
- package/dist/bin/cli.js.map +1 -1
- package/dist/cli/self-harness.d.ts +26 -3
- package/dist/cli/self-harness.d.ts.map +1 -1
- package/dist/cli/self-harness.js +151 -6
- package/dist/cli/self-harness.js.map +1 -1
- package/dist/self-harness/index.d.ts +9 -5
- package/dist/self-harness/index.d.ts.map +1 -1
- package/dist/self-harness/index.js +9 -5
- package/dist/self-harness/index.js.map +1 -1
- package/dist/self-harness/profile.d.ts +22 -0
- package/dist/self-harness/profile.d.ts.map +1 -1
- package/dist/self-harness/profile.js +22 -1
- package/dist/self-harness/profile.js.map +1 -1
- package/dist/self-harness/run.d.ts +72 -0
- package/dist/self-harness/run.d.ts.map +1 -0
- package/dist/self-harness/run.js +83 -0
- package/dist/self-harness/run.js.map +1 -0
- package/dist/self-harness/validate.d.ts +72 -0
- package/dist/self-harness/validate.d.ts.map +1 -0
- package/dist/self-harness/validate.js +138 -0
- package/dist/self-harness/validate.js.map +1 -0
- package/docs/design/SELF_HARNESS.md +13 -6
- package/package.json +1 -1
- package/src/policies/enforcers/__pycache__/_common.cpython-312.pyc +0 -0
- package/tools/agents/scripts/__pycache__/toolcall_path_normalizer.cpython-312.pyc +0 -0
|
@@ -60,9 +60,10 @@ mine→propose→validate→accept and persists results. Humans do both today.
|
|
|
60
60
|
key=(model_family, failure_sig) (env + scaffold snapshot)
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
New code lives under `src/self-harness/`: `orchestrator.ts
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
New code lives under `src/self-harness/`: `orchestrator.ts` (one iteration), `validate.ts` (the real
|
|
64
|
+
paired-bench validator), `run.ts` (the committing loop + versioned snapshot), `mine.ts`, `propose.ts`,
|
|
65
|
+
`mods.ts` (the DSL), `transfer.ts`, plus the `uap self-harness` CLI. It **reuses** `benchmarks/paired/`
|
|
66
|
+
for validation and the HALO exporter for mining — no reimplementation.
|
|
66
67
|
|
|
67
68
|
## 4. The Modification DSL — bounded, typed, reversible
|
|
68
69
|
|
|
@@ -171,9 +172,15 @@ Controls:
|
|
|
171
172
|
- **P0 — Plumbing (small).** Promote the failure-mode logs to structured HALO spans; add the held-out
|
|
172
173
|
regression suite; pin a stable `signature` hashing. *Exit:* `uap harness analyze` emits a typed
|
|
173
174
|
`WeaknessReport`.
|
|
174
|
-
- **P1 — Closed loop, env
|
|
175
|
-
mine→propose→validate→
|
|
176
|
-
|
|
175
|
+
- **P1 — Closed loop, env DSL (Option A). [BUILT]** `uap self-harness run` orchestrates
|
|
176
|
+
mine→propose→validate→decide over `env` Mods, reusing `benchmarks/paired/`. The real validator
|
|
177
|
+
(`validate.ts`) runs a baseline arm, physically toggles the env knob + restarts the server, runs a
|
|
178
|
+
candidate arm, reverts, and pairs the two into a `Comparison`; held-out runs the same way. `--apply`
|
|
179
|
+
commits accepted Mods to the env file, restarts once, and writes a **versioned profile snapshot**
|
|
180
|
+
(`run.ts`, `profile.ts`) + append-only history; without it the run is a pure dry-run that touches
|
|
181
|
+
nothing. *Exit met:* one autonomous iteration accepts a real env Mod (e.g. re-discovers
|
|
182
|
+
`LLAMA_N_PREDICT=4096`) with paired stats. `scaffold`/`middleware` Mods are not auto-validated here —
|
|
183
|
+
they route through the human-gated pending queue (§9).
|
|
177
184
|
- **P2 — Middleware Mods (Option B).** Add the `middleware` Mod class + the `toolcall-path-normalizer`.
|
|
178
185
|
*Exit:* the loop proposes+validates the normalizer and measurably cuts path-garbling on the medium
|
|
179
186
|
suite (the ceiling manual fixes couldn't crack).
|
package/package.json
CHANGED
|
Binary file
|