
Security News
Open VSX Unblocks Extension IDs Used in Malware Campaign
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.
tgms
Advanced tools
Agent-Native Temporal Graph Management System (bi-temporal property graph + validated temporal operator algebra + PEV agent layer)
A temporal graph database whose query surface is built for LLM agents — and whose answers can be audited claim by claim.
Project page & blog: https://zxf-work.github.io/tgms/ · Paper: paper/main.pdf
LLM agents are unreliable at exactly the things temporal graph analytics requires: arithmetic, identifiers, and asserting only what the evidence shows. TGMS's answer is architectural — give the model no opportunity to do any of them:
tgms trace check
reads a saved answer's dependency scope against the event log — no
recompute, no store lock required — and returns FRESH /
POSSIBLY_STALE / UNDECIDABLE, sound in the direction that matters (it
never calls a stale answer fresh). Measured across two injection
campaigns, 6,978 trials: 0 false-fresh verdicts of 898 changed
answers, where the obvious cheap check — "did the correction touch a row
in the stored result?" — is wrong on 47.4% of the same trials;compute operator;pip install tgms
tgms demo
No GPU, no API key, no dataset download. tgms demo builds a small store of
its own in a temp directory and runs the arc every TGMS answer follows: what
the graph currently believes, what it believed before a correction landed,
and the trace that backs both claims up. Clean environment to first temporal
result: under 5 minutes.
Once you want your own graph data, the native test suite, the MCP server, or an agent wired to a real LLM, see Full setup below — this quickstart is deliberately the smallest possible first step, not a tour of the operator surface.
Next steps, in the order most people need them: bring your own temporal graph data · give TGMS to an agent over MCP · audit an answer · what you can rely on across versions · what's coming
Three different questions, three different answers. All three are reported because the third is the least flattering.
1. Does the agent layer beat the alternatives? Dev-split campaign
(CollegeMsg, open-source models served locally on one 24 GB GPU. "Answer
accuracy" is normalized typed-answer accuracy — counts and values scored
strictly, interval answers credited at IoU ≥ 0.5. Full receipts ship with
the paper and the eval records in benchmarks/results-v1/):
| pooled answer accuracy, Qwen2.5-14B | TGMS | vector-RAG | static-graph RAG | text-to-Cypher |
|---|---|---|---|---|
| all task families | 0.41 | 0.09 | 0.05 | 0.18 |
| correction probes ("as of tt…") | 0.67 | 0.00 | 0.00 | 0.00 |
2. Is the engine competitive? Six systems answer one 13-query registry — TGMS native, TGMS-on-DuckDB, PostgreSQL, ClickHouse, Neo4j, Memgraph — with every cell hash-verified before it was timed:
| query shape | TGMS native | best other |
|---|---|---|
| temporal reachability, 200k | 14.7 ms | 3.9–7.3 s (Memgraph, Neo4j) |
| closed-triangle δ-motif, 200k | 28.7 ms | 2.1–5.5 s (Memgraph, Neo4j) |
| grouped aggregation, 200k | 14.5 ms | 32.6 ms (ClickHouse) |
| entity history by identity, 200k | 0.1 ms | 0.3 ms (PostgreSQL) |
| whole-window bucketed count, 10M | 84.7 ms | 37.9 ms (ClickHouse) |
The last row is the one we cannot close: ClickHouse keeps a factor of 2.2 on whole-window aggregation at both 1M and 10M, and it is a constant of the shape rather than something that grows with scale. Three rounds of profiling took that gap from 12× to 2.2× and each round found our own implementation rather than the workload. Single latency cells reproduce to about ±20% between days, which is stated everywhere they are quoted.
At 10M events the full query suite runs inside 1.76 GB of peak RSS, 16 concurrent readers get 10.2× the throughput of one, and a live writer costs those readers 0–3% of per-query latency.
3. Can it answer the questions people actually ask? This is the honest one, and it now has a sequel. 110 questions were written by people who saw a plain-language description of two public datasets and never saw the operator list. Of those, 94 were expressible under the fixed 15-operator catalog — 10 were expressible when the study was pre-registered. Of LDBC SNB's 41 read templates, 3 executed — the operator-execution axis (does a plan compile, load, admit and run at all), a lower bar than the stricter ECQR result-contract axis, which stood at 7 of 41 — and that number had not moved in eight sessions, because 35 of the 38 misses needed labelled multi-way pattern matching: a deliberately deferred design decision, not a missing operator.
That deferred decision shipped. TGIR, a 12-primitive compositional temporal-graph IR, now runs the entire 15-operator catalog as byte-identical leaves and additionally compiles some question shapes — including labelled multi-way pattern matching — into chains of those primitives. Both axes were forecast before TGIR was built, frozen before the first row was measured, and moved to exactly the predicted level: LDBC operator-execution coverage 3 → 24 of 41, independent-question coverage 94 → 102 of 110, delivered/predicted 29/29 on the full 52-row forecast (28/28 on the 51 scoreable rows — one row was excluded by name in the freeze because its canonical corpus carries no corrections to find), 0 over-deliveries, 0 misses.
The store is still good and the surface is still narrower than "24 of 41"
sounds. There is no LDBC SNB dataset in this repository. The 21 LDBC
rows execute against a hand-built fixture carrying LDBC's labels,
relationship types and multi-hop topology at a size a reviewer can read on
one screen (scripts/build_ldbc_fixture.py); it establishes that a plan
compiles, loads, admits and executes, and nothing about scale. The
independent-question axis is the one measured on real data (bitcoin-otc,
CollegeMsg), and it's where the admission/cost-guard claim is meaningful.
Both instruments live in the repo (scripts/independent_questions.py,
scripts/ldbc_fit.py), they re-run in seconds, and each capability shipped
has been scored against a forecast made before it was built —
delivered/predicted has now run 14/30, 4/7, 10/13, 14/16, 15/15, 4/8, 5/5,
4/5, and 29/29. 5/5 and 4/5 were the first forecasts made per question
rather than in aggregate, and TGIR's 29/29 is the first forecast — made
per row, before any row was measured — with zero misses across the whole
universe.
Fifteen operators — fourteen of them unchanged since D-044, because most of
the growth since v0.4.0 happened inside them, driven question by question
by the study above. The newest growth happened underneath them instead:
TGIR, a 12-primitive compositional temporal-graph IR, now runs the
entire operator set as byte-identical leaves — same semantics, digest-
receipted, switchable off with TGIR_PLAN_PATH=off — and additionally
compiles some question shapes, chiefly labelled multi-way pattern matching,
into chains of those primitives. TGIR plans are not yet a user-facing query
language: there is no public syntax for writing one directly, and the
fifteen operators below are still the whole interface an agent (or you)
calls. What changed is what happens underneath a call, and it is measured
in docs/design/TGIR_M3_MEASURED_REPORT.md.
The pre-existing fifteen:
| capability | where it lives | what it answers |
|---|---|---|
| grouped aggregation | aggregate_events | counts and distinct counts by time bucket, rel_type, endpoint or endpoint label |
| arithmetic | compute | mean/median over rows; ratio/diff/percent over two scalars — never in the LLM |
| typed properties | aggregate_events | predicates and min/max/mean over an edge property, where a value participates only if its JSON type fits |
| set operations | compute, aggregate_events | intersect/difference/union over uid lists, a cohort pre-filter, undirected and reciprocal pair modes |
| row arithmetic and joins | compute | derive adds one computed column; join aligns two grouped results on a key unique on both sides |
| ordered sequences | aggregate_events | longest gap between consecutive events, busiest sliding window of a given span, longest run with no gap over a threshold |
| calendar units | aggregate_events | grouping by hour of day, day of week or month of year, at a fixed offset from UTC that is an argument rather than a default |
| the belief log | version_history | which beliefs were revised and when — the only operator that reads the correction record rather than a state derived from it |
Every one of these is verified against the same brute-force oracle as the
operators themselves, and every one is measured in the session that shipped
it. What is not there is written down too, question by question, in the
re-audit tables of scripts/independent_questions.py and
scripts/ldbc_fit.py — both of which print the current blocked-capability
board on report.
Everything below builds TGMS from a checkout instead of the PyPI wheel: real dataset loaders, the native-engine test suite, the MCP server, and an agent loop wired to an actual LLM.
# macOS note: if this repo sits in an iCloud-synced folder, keep the venv
# outside it (iCloud sets the hidden flag on .pth files and Python 3.12+
# silently skips them): export UV_PROJECT_ENVIRONMENT=$HOME/.venvs/tgms
uv sync --extra agent
make test # 271 tests: property, oracle, metamorphic, e2e
# build a real store + task suite (downloads CollegeMsg from SNAP)
make data-collegemsg suite-collegemsg
# call one verified operator — no LLM needed
uv run tgms call temporal_reachability \
'{"src": "n9", "window": {"t_a": 1082040961000000, "t_b": 1088000000000000}}' \
--store stores/collegemsg
# verifier acceptance experiment (deterministic, no LLM)
uv run tgms eval c2 --store stores/collegemsg \
--suite stores/suite-collegemsg/suite.json --mutants 500
With any OpenAI-compatible LLM endpoint (e.g. vllm serve Qwen/Qwen2.5-7B-Instruct):
uv run tgms ask "How many nodes can n9 reach between ... and ...?" \
--store stores/collegemsg --model openai/Qwen/Qwen2.5-7B-Instruct \
--api-base http://localhost:8000/v1 --html trace.html # auditable trace page
bash scripts/run_webapp.sh # interactive guided demo at localhost:8080
| Surface | Entry point | What it's for |
|---|---|---|
| Python library | tgms.open(...), Agent(store, model=…).ask(…) | research code, notebooks |
| MCP server | tgms serve --store PATH | hand the verified toolbox to any MCP-capable agent |
| CLI | tgms demo/ingest/synth/tasks/call/ask/bench/memory/eval/trace | reproducibility |
| Trace viewer | tgms ask … --html trace.html | ask → answer → audit the evidence (static, self-contained HTML) |
| Freshness check | tgms trace check record.json --store PATH | is this answer still fresh? — FRESH/POSSIBLY_STALE/UNDECIDABLE against the event log, no recompute |
| Demo GUI | tgms webapp … / scripts/run_webapp.sh | guided tour: operators → agent → tamper demo → time travel → freshness check |
Every operator is verified against an independent brute-force oracle (500
randomized cases per operator; 97% line coverage in tgms/temporal/
across both backends), plus
metamorphic properties — diff composition and bi-temporal immutability:
any result pinned to a past belief state is byte-identical before and after
later corrections. The same suite runs unmodified against both backends,
which is the whole acceptance argument for the native engine: it has to
satisfy the same human-owned ground truth that DuckDB does.
TGMS_TEST_BACKEND=native make test # same tests, native engine
The write path is property-tested over random assert/retract/correct
interleavings, and the append-only event log replays into either backend
with identical store digests. Process rules are enforced in CI and are not
advisory: tests and the oracle may never share a commit with the
implementation they judge, and every number quoted on the project site is
resolved from docs/site_facts.json at build time, so a stale figure fails
the build rather than the review. See CONTRIBUTING.md.
tgms/core clock, bi-temporal data model, error taxonomy
tgms/storage StorageAdapter ABC, native + DuckDB backends, event log, TCSR index
tgms/temporal operator algebra O1–O15 + brute-force oracle
tgms/tools tool schemas, MCP server / ToolRouter, trace viewer, demo GUI
tgms/agent plan IR, planner, executor, verifier, reporter, memory
tgms/data dataset loaders (SHA-256 pinned) + synthetic generator
tgms/eval task suites, baselines, matrix harness, metrics, fault injection
crates/ the native engine: bi-temporal segments, TCSR, motif kernel
Datasets are never bundled: loaders download from source (SNAP) and pin SHA-256 manifests. See docs/eval/ for design, positioning, measurements, and roadmap.
Apache-2.0 — see LICENSE. Cite via CITATION.cff.
mcp-name: io.github.zxf-work/tgms
FAQs
Agent-Native Temporal Graph Management System (bi-temporal property graph + validated temporal operator algebra + PEV agent layer)
We found that tgms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.