Glimmer
An AI-native solution to the reproducibility problem.
The 2010s gave us reproducible pipelines. Glimmer is the next layer up — a typed-entity graph over those pipelines whose runs are executable, standard-gated, and self-verifying, so "this result reproduces" is a claim checked against recorded evidence, not a footnote you trust.
What this is
Existing standards (BIDS, DataLad, NIDM, Nipype) give your project syntactic structure. Glimmer adds the graph layer: datasets, methods, derivatives, findings, concepts, standards, publications, and external references become first-class typed nodes with versioned edges, distributed across per-entity sidecars. An AI agent or researcher navigates, searches, syncs, and verifies the graph with zero database or ML dependencies.
Everyday querying, sync, retrieval & Agent Skill (v0.7.0).
- Live query & retrieval CLI (
glimmer summary,query,neighbors,search): metadata-only by default (--no-body) so star hubs never overflow context, plus a stdlib-only OkapiBm25Retrievershipped directly inglimmer/tools/retrieval.py. Works over live Markdown RO-KBs and compiledgraph.jsonworkspace editions (--graph). - Rich, self-navigable
_glimmer-index.json: backwards-compatible superset of{id, type, path}addingname,status,subtype,claim-kind,role,modified,provenance-hash, 1-linesummary, compactedges, and optionalroot-node/entrypoints. - Clean external literature vs. project outputs: new core
referencenode type for cited prior work + backwards-compatiblerole: external-reference | project-outputonpublication+ epistemic stance edges (supports,challenges,contradicts,overlaps-with,extends,superseded-by,cites-concept). - Low-friction bootstrap, sync & drift checks:
glimmer init,glimmer sync,glimmer status(detects hash, index, validation, and sibling draft/artifact drift),glimmer hash,glimmer amend, andglimmer migrate-references. - Installable Agent Skill (
skills/glimmer/): install into.agents/skills/glimmer,.claude/skills/glimmer, or.codex/skills/glimmerviaglimmer install-skill(or standardskillsinstallers).
Executable provenance (v0.6). glimmer run checks input content pins and available standard validators before executing a run-record. glimmer rerun distinguishes raw byte identity, normalized-content matching, numeric agreement and structural evidence checks. Host execution requires explicit opt-in; structural checks do not certify scientific interpretation. Start with docs/proactive-provenance.md and the portable synthetic fixture.
The container qualification example exercises the installed CLI with real DataLad, git-annex, and Docker in a disposable Linux environment. It retains separate execution, replay, and failure receipts for one synthetic method; hosted execution and provider authentication remain separate.
Glimmer is domain-agnostic. The canonical worked example in this repo is neuroimaging because that's where standards like BIDS and tools like DataLad and Nipype are most developed — but the architectural pattern (typed-entity graph over a versioned-data substrate) applies to any compute-intensive scientific domain backed by a mature standards ecosystem.
Glimmer is the architectural pattern + a reference implementation. The original architectural argument is in the unpublished CAISC submission (see docs/paper-citation.md).
How to use this repo
If you're building a project on top of Glimmer
Fork or use-as-template (the green button on GitHub). Then:
- Keep the
glimmer/directory unchanged — that's the core schema + tooling. - Replace
examples/ds000114-nipype/with your own project data and sidecars (or keep it as reference). - Pin the Glimmer core version in your project's
glimmer-versionfile. - Do your project work in your fork. Don't modify
glimmer/in your fork unless you intend to send a PR back here.
If you have an improvement to the Glimmer core
Open a PR against this repo. Core changes go through review here so every downstream fork can pick them up cleanly:
- Schema additions or edge taxonomy changes → PR to
glimmer/schema/ - Bug fixes or new utilities → PR to
glimmer/tools/ - New documentation or examples → PR to
docs/orexamples/
The line between "core" and "project" is the glimmer/ directory. Anything inside is core; anything outside is your project. The maintainer's job is to keep glimmer/ stable, small, and self-contained.
Repo layout
glimmer/
├── schema/
│ ├── schema.md # v0.7 spec — 14 entity types (incl. reference + run-record), edge taxonomy, enriched index
│ ├── frontmatter.yaml # machine-readable contract for validators
│ └── glimmer-version # current core version (0.7.0)
└── tools/
├── validate.py # schema validator (core + domain profiles + agent protocol)
├── query.py # `glimmer summary` / `query` / `neighbors` / `search` (live RO-KB & --graph)
├── retrieval.py # LiteratureRetriever Protocol + stdlib Bm25Retriever & NullRetriever
├── sync.py # `glimmer init` / `sync` / `status` / `hash` / `amend` / `migrate-references`
├── skill_installer.py # `glimmer install-skill`
├── run.py # node runner — `glimmer run` / `glimmer rerun` (gate → replay → verify)
├── cli.py # `glimmer` CLI single entry point
└── figure_schema.py # render the schema diagram
skills/
└── glimmer/ # installable cross-agent skill (SKILL.md, references/, agents/, scripts/)
examples/
├── synthetic-provenance/ # v0.6 proactive-provenance demo: loop + 3 tiers + gate + equivalence
└── ds000114-nipype/ # canonical worked example from the CAISC 2026 paper
├── install.sh # `datalad install ///openneuro/ds000114` + selective `datalad get`
├── workflow.py # Nipype anatomical preprocessing (BET → FAST)
├── emit_graph.py # walk the workflow's provenance + emit Glimmer sidecars
├── verify.py # re-run the cited methods + confirm output hashes match
└── rokb/ # generated Glimmer instance after running the steps above
docs/
├── paper-citation.md # how to cite Glimmer + the CAISC 2026 paper
├── design-rationale.md # why typed-entity sidecars over a central database
├── extending-the-schema.md # process for proposing new node/edge types
├── agent-protocol.md # the verifiability contract for agent-produced outputs
├── agentic-loop.md # plans-as-issues + autoresearch over a Glimmer graph
├── datalad-pattern.md # DataLad as the I/O backbone (mrinit's pattern, generalized)
├── interop.md # cross-reading BIDS / NIDM / RO-Crate / JSON-LD / schema.org
├── roadmap.md # v0.3+ entity types (persona, concept, experiment, meta-analysis)
└── faq.md
Quick start
python -m venv .venv
. .venv/bin/activate
pip install .
python examples/synthetic-provenance/smoke.py
python -m unittest discover -s tests -v
This builds the complete synthetic graph from committed sources and exercises the
installed glimmer command. The fixture is scripted and runs on the host; it does
not establish an LLM evaluation or container-runtime acceptance. Optional imaging
normalization tests use pip install '.[imaging]'.
The canonical ds000114 example remains available for
the neuroimaging workflow and requires DataLad, Nipype and FSL. Its legacy
verify.py checks hashes of existing files; a new workflow run is a separate step.
Core principles
- Distributed-over-files, not centralized. Glimmer graphs survive
git clone,datalad export,rsyncwithout bespoke serialization. - Typed entities, not flat documents. Different entity types invite different agent reasoning strategies.
- Edges are first-class. Every relationship a researcher would name out loud should be an edge in the graph.
- Standards are nodes, not background. BIDS spec versions, FreeSurfer releases, atlas versions are addressable, not implicit.
- Provenance is intrinsic. Every node carries a content hash; every edge carries a version. Re-running a workflow from the graph's pinned SHAs is the verifiability test.
- Source-first sanity check. When a verification fails or a pipeline goes sideways, rebuilding the method from upstream source is often the recovery move. The schema makes this expressible (
source-checkout-url,source-build-instructions) and the verifier can fall back to a source-rebuild rather than trusting a cached binary that may have drifted.
Versioning policy
Glimmer follows semantic versioning at the schema level. Core utility updates that don't change the schema are minor; schema changes that break existing sidecars are major. The current schema version is recorded in glimmer/schema/glimmer-version.
v0.3.1 added the meta-graph social layer: the persona and organization node types and the in-graph attribution edges (authored-by, affiliated-with, funded-by, mentors, leads, part-of).
v0.3 added the experiment node type (active task/acquisition paradigms), the concept node type (the research-question / hypothesis layer a program operates at), and the universal contributed-by attribution edge.
v0.2 dropped qc-artifact and rater (over-indexed on QC as the canonical example) and added finding (EVI-aligned) between derivative and publication. Agent identity is now a string field on finding and derivative rather than a separate node type.
Citation
If you use Glimmer in your research, cite:
El Damaty, S. (2026). Reproducibility as Knowledge Graph Navigation: Glimmer, a Research-Object Knowledge Base for AI-Native Neuroimaging Analysis. Unpublished manuscript, 2026.
See docs/paper-citation.md for the BibTeX entry.
License
MIT.
Metadata
Release files for glimmer-rokb 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glimmer_rokb-0.7.1.tar.gz | 103.3 kB | With provenance | Details for glimmer_rokb-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glimmer_rokb-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for glimmer_rokb-0.7.1-py3-none-any.whl |
Total release size: 198.7 kB
Release files / glimmer_rokb-0.7.1.tar.gz
| Download URL | glimmer_rokb-0.7.1.tar.gz |
|---|---|
| Size | 103.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89bda5c5869a5430bd83ec088ded7f6fb1bd1c923df402b07754883061e15d8e
|
|
BLAKE2b-256 checksum How to use checksums |
b0aff542c6b98e377c6f38e3eef1cdb98dbdb4b803b94ae6dabd06190955442e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / glimmer_rokb-0.7.1-py3-none-any.whl
| Download URL | glimmer_rokb-0.7.1-py3-none-any.whl |
|---|---|
| Size | 95.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8fe584abe74805a25d4a0894e46b5bd98eac297582a9225a57b6ff7c875179e
|
|
BLAKE2b-256 checksum How to use checksums |
7efd3eaaab6afb45e755301eef79564abc9809001fa5da2ff1b06f3d6cb0b258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for glimmer-rokb 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for glimmer_rokb-0.7.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.