omp-fabric 1.4.1 → 1.4.3
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 +13 -0
- package/dist/compaction/lcm-runtime.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +2 -2
- package/dist/storage/lcm-migration.d.ts.map +1 -1
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +13 -1
- package/dist/ui/settings.js.map +2 -2
- package/docs/compaction.md +9 -1
- package/package.json +2 -1
package/docs/compaction.md
CHANGED
|
@@ -34,7 +34,7 @@ The selected-session reconciler stores a source generation/checkpoint and resume
|
|
|
34
34
|
|
|
35
35
|
## Summary maintenance
|
|
36
36
|
|
|
37
|
-
The dedicated model is selected from `compaction.summaryModel` through OMP's public model registry and session-aware resolver. The active session model is the fallback when the dedicated route is unavailable. Leaf and condensed prompts XML-fence transcript evidence and treat it as untrusted data.
|
|
37
|
+
The dedicated model is selected from `compaction.summaryModel` through OMP's public model registry and session-aware resolver. Pick it in `/fabric settings` under Compaction > Summary model, which lists the models OMP has available and offers Inherit to fall back to the active session model. The active session model is the fallback when the dedicated route is unavailable. Leaf and condensed prompts XML-fence transcript evidence and treat it as untrusted data.
|
|
38
38
|
|
|
39
39
|
Maintenance defaults are bounded to 32 model calls, 2,000,000 input tokens, and 128,000 output tokens per project per UTC day, with a nested 16-call session limit. One project model job runs at a time. Jobs use 30-second leases renewed every 10 seconds, 60-second call limits, exponential retry backoff capped at 15 minutes, and three attempts. A failed call does not publish a ready node or increment usage counters.
|
|
40
40
|
|
|
@@ -96,3 +96,11 @@ bun run check
|
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
This command includes typecheck, a fresh `dist/` build, the lazy-graph assertion, the full test suite, and dead-code lint.
|
|
99
|
+
|
|
100
|
+
## Performance gate
|
|
101
|
+
|
|
102
|
+
`bun run benchmark:lcm` drives the fixed fixture from the LCM operational contract: 10 sessions of 1,000 raw entries at 1 KiB each, 20 compaction cycles through the built `session_before_compact` hook, a repeat pass that must reuse the ready frontier, and a second process appending to the same ledger. It fails when a row is lost or duplicated, when a node references an uncommitted source or child, when the hook issues any model call, when hook p95 exceeds 250 ms, when recall precision or exact expansion regresses, or when a restart loses rows or nodes. The run prints and writes a JSON report covering ingest throughput, hook latency percentiles for both the emergency and ready-frontier paths, maintenance backlog, recall and expansion latency, migration counts, database and WAL bytes, checkpoint outcomes, and lock errors observed by the competing process:
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
bun run benchmark:lcm -- --out lcm-report.json
|
|
106
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omp-fabric",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "A programmable tool and agent runtime for Oh My Pi (OMP)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"benchmark:real-resume": "bun run build && node scripts/benchmark-real-resume.mjs",
|
|
37
37
|
"benchmark:memory-heads": "bun run build && node scripts/benchmark-memory-heads.mjs",
|
|
38
38
|
"benchmark:codemap": "bun scripts/benchmark-codemap.mjs",
|
|
39
|
+
"benchmark:lcm": "bun run build && bun scripts/benchmark-lcm.mjs",
|
|
39
40
|
"lint:dead": "knip --no-gitignore",
|
|
40
41
|
"check": "bun run typecheck && bun run build && bun run assert:lazy-graph && bun run test && bun run lint:dead",
|
|
41
42
|
"assert:lazy-graph": "node scripts/assert-lazy-graph-host-free.mjs",
|