Repository navigation
v0.16.0
Omnigraph 0.16 brings online compaction to cluster servers, applies graph policies to direct writes, and reduces the cost of small updates and reads. Detailed upgrade guide
Highlights
- Compact a graph while the cluster stays online. A run gets an operation ID. If the response is lost, use
omnigraph optimize --operation IDon the same target to see what finished. Completed compaction survives a later index failure. A new run checks index coverage and retries any remaining index work. - Run direct maintenance in parallel. By default, direct
optimizecan run eight compaction tasks or build four independent B-tree indexes at once. On a server,optimizeruns one task at a time. - Apply the same graph policy to direct writes. Direct CLI writes and maintenance now check the cluster graph’s applied policy. On the server, reads using static tokens require an explicit grant by default.
- Update one row in 34 storage requests, down from 212. Small keyed writes use the identity index. In the same simulated store with 262,144 rows, a one-row insert went from 83 requests to 18.
- Fit larger aggregations into the same memory budget. In a local test, an aggregate over 16,384 one-KiB matches finished within the 12 MiB budget it previously exhausted. Sorts also use less memory when merging spilled data.
Upgrade actions
- Cluster operators. Grant
readon each graph that static tokens should access. For direct cluster writes, pass an authorized--as ACTOR. To enable served compaction, setOMNIGRAPH_OPERATION_ROUTES=trueand grant the calling actormaintainon the graph’smainbranch. Recorded operations - Server configuration. On Unix, use a regular token file with mode
600. Rename static actors whose IDs start withprincipal:and update their policy rules. Give each actor a distinct token in AWS Secrets Manager. Set resource ceilings on the server if clients need higher budgets. Authentication · Budget settings - Graph storage. New graphs use format 17. Upgrade every reader and writer before creating a shared graph or converting a standalone graph. Existing format-16 graphs keep their format through reads and writes. Storage upgrade
- CLI scripts and runbooks. Pass
--organization IDwhen creating a profile for someone in several organizations. Renamegroups:tosuites:in custom benchmark catalogs. Remove calls torepair. Rust callers can usecleanup_planfor read-only inspection. Login · Foreign versions - Rust and JSON integrations. Use actor-aware maintenance methods. Grant
maintainfor compaction and index work, andreclaimfor cleanup. PassOptimizeRequesttooptimize_as. Read per-dataset results fromdatasetsand configuration cleanup fromconfiguration_clearin JSON. Maintenance reports - Early edge users. If a saved compaction record contains
tablesormore_tables, follow the offline recovery procedure. Reconcile outstanding work before reusing an operation ID. Recovery steps
Features
optimize --datasetsselects which datasets to maintain.--max-gate-holdstops new datasets from starting after the deadline. The first dataset always runs. Writers may still wait for work already underway and for publication.--baseopens a writable clone over a frozen local or S3 graph.schema applycan widen an edge cardinality rule in place, such as making a required edge optional.omnigraph-gqt --checkreports format errors across a test suite. GQT can also generate branch fixtures and run concurrent workers.
Behavior changes
- An update, delete or overwrite load overtaken by another commit retries once against the new branch head. Use
--if-commitwhen the write must apply to the commit you reviewed. - A successful direct
cluster applyon local storage or S3 releases its lock after writes settle. If release is uncertain, the CLI identifies the lock to inspect. Azure retains its lock.
Fixes
- MCP tool calls could crash a 0.15.0 server, even on a health check. The server now handles those calls and rejects excessively nested queries before parsing them.
- Maintenance can rebuild a vector index after an update leaves it with zero coverage. Branch merge validation counts changed keys toward its 32 MiB limit, so wide rows can merge when their keys fit.
Performance
- An unordered, unfiltered query for ten rows read one of 25 local data files, down from 16. Traversals also reuse cached data for unchanged edge tables.
- Compressed spill files reduced scratch writes from 52.6 MB to 5.9 MB in the whole-query spill test.
Contributors
Thanks to @aaltshuler, @azimafroozeh, @junjamrk, @pronskiy and @ragnorc.