Skip to content
Poisson Labs Docs
GitHub poissonlabs.ai

Graph

Changelog

All notable changes to Poisson Graph are written here. The format follows Keep a Changelog, and the project uses semantic versioning.

The first release.

  • The change record and the source interface (poisson_graph). Change, Sighting, Scope, Evidence and Pin are the one record every change source emits. load_source finds a source by its import path, and run_poll, run_receive, run_pin and run_evidence are the only way a source is called. Each returns an Intake: the changes taken, what was refused and why (Refused.invariant is not_taken or not_verified), and an InstrumentError when the call itself failed. An InstrumentError raised while loading a source carries the source’s import path. join makes one change from several sources’ reports of it. to_json, from_json and public write and read one change per line of JSON; public is the form that may leave your side. The core uses the standard library only.
  • A kit for adapter authors (poisson_graph.testing): check_source runs ten checks against a source pointed at a fake of its upstream, and ScriptedSource is a source that returns what it is scripted with.
  • Change sets (poisson_graph.sets): the changes since an agent was last measured, as one fixed list of candidates, with what was rolled back, what could not be placed, and what each expected source did not vouch for.
  • Built-in sources. poisson_graph.git has BranchSource (movements of a watched branch, from the clone’s own ref log, in the files format or a reftable), PipelineSource (report lines a deploy job wrote or pushed, signed) and GitHubSource (successful GitHub deployments). poisson_graph.setup has SetupSource (declared prompt, tool-schema, config, index and memory files that changed). poisson_graph.otel has TraceSource and detect, which find service-version and model changes in observations taken from spans.
  • The system map (poisson_graph.map): what an agent depends on, read from the [depends] tables of a setup file and from recorded evidence, and a walk from a change to the nodes and scenarios it can reach.
  • poisson-graph deploy: a deploy job runs it to report one code deploy as one line, which it can append to a file or POST, signed.
  • poisson-graph --version prints the distribution’s name and its installed version on one line, poisson-graph 0.1.0, and exits 0.
  • poisson-graph downstream and poisson_graph.downstream: what one change can reach, asked by a node’s name, by files, by the working tree’s uncommitted changes or by a pull request read from the local clone. The answer is one JSON document, poisson.downstream/1. It is worked out from poisson.toml and your recorded runs, runs nothing, and opens no network connection. The working-tree and pull-request questions need a full clone; a partial clone needs git 2.44 or newer and is refused on older git.
  • poisson_graph.is_identifier: the identifier rule every change record follows (1 to 200 printable ASCII characters, no space), so a caller can check a name before building a record.
  • poisson_graph.map.check_setup: checks a setup file as Graph reads it ([system] name, the [depends] tables and the scenario ids) and returns Graph’s own reason it would refuse the file, or nothing.
  • poisson_graph.map.core_paths: the paths in one repo whose change reaches every scenario, because they hold the agent’s own code or code every run depends on, so a tool can tell when runs were made on older core code.
  • poisson_graph.setup.hash_files: the version the setup source gives a declared node from its files at one commit (their SHA-256, or HMAC-SHA256 under a key, or absent when a file is missing), so a person or a tool can work out the same version.

Python 3.11, 3.12 and 3.13, tested on macOS and Linux. The git sources and the downstream questions that read git need git 2.24 or newer.