Skip to main content
relayr: the bridge between artifactr and reflexr.

Docs Nightly Python 3.12, 3.13 and 3.14 Coverage: 100% Typed: pyright strict License: MIT

relayr is the bridge between artifactr and reflexr: events from chats and artifacts become events for rules, and runs act back in the chat as proposals and notices. It uses only the two libraries' public APIs, and neither library imports it or the other.

Status: built: the v0.1 plan. Both adapters, telemetry across the bridge, rules from chat and evaluation, and stackr's template wires it all into an application. It is on PyPI as relayr-ai, since the name relayr on PyPI is an unrelated project, and it is imported as relayr: uv add relayr-ai.

Why

An application can mount artifactr and reflexr side by side, on one database and one telemetry setup, over one shared context: the same tenant and workspace ids name the same context in both. But the two halves don't talk to each other. A rule can't see what people say in a thread, and a run can't put its result in front of the people it concerns. Each application that wants this would write its own glue, and meet the same hard parts: duplicate and lost deliveries, rules that trigger themselves, two kinds of session that don't line up, and events that anyone could forge. stackr's RFC-0002 designs the bridge once, and relayr is where it is built.

What it does

  • Inbound: chats and artifacts become events (built). One follower per workspace, with a lease, a cursor and dead letters, publishes selected artifactr events into reflexr under the artifactr namespace, such as artifactr:message_posted, artifactr:artifact_changed and artifactr:proposal_resolved, so that a message fires a rule exactly once, across a restart and a redelivery (ADR-0006).
  • Outbound: runs act as participants (built). A pydantic-ai capability and helpers let a run act in artifactr as its rule's own external agent, reflexr:<rule>, so artifactr's rules apply to it: under a propose write policy its edits are proposals, and relayr never resolves one (ADR-0002).
  • Notices by default (built). A rule's messages start no turn in the thread, unless the rule's allowlist grants it (ADR-0007).
  • Chains and sessions kept apart, and linked (built). A thread is never a causal chain, and a chain never joins a thread's session or model history; traces are linked, and Langfuse sessions tagged, across the two (ADR-0003, ADR-0004).
  • Rules from chat (built). A rule drafted in a thread is a rule artifact, reviewed as a proposal, and goes live in reflexr's stored rules only when a person who may install rules accepts it, with provenance recorded both ways. A rule changed in reflexr directly is proposed back to its artifact (ADR-0005).
  • Evaluation (built). Proposal outcomes become feedback on the runs that proposed them, with measures of acceptance, rewrites and rules from chat that stay live, in the evals extra.
  • Task trackers (phase 1 built). A rule's run files, comments on and moves items in Plane's Community edition or Vikunja, each once however often it is retried, behind the plane and vikunja extras (lattice RFC-0004).
  • A ledger of its own (built), in memory or in SQL, behind the sql, sqlite and postgres extras.
  • Forms for rules (built). With the forms extra, relayr.ui bridges an answer to artifactr's ask_form, and a submission to a form, both as ui:form_submitted, so a rule is written once for both ways of asking.
  • Diagrams for rules (built). With the excalidraw extra, relayr.excalidraw bridges each commit to a diagram's elements once, as excalidraw:elements_changed: what it added, changed and removed, with labels (ADR-0041).

Documentation

relayr's documentation is its section of lattice's site, at https://lattice.alexnodeland.com/relayr/, built from docs/relayr/.

Contributing

See CONTRIBUTING.md for setup, the trunk-based workflow, and the RFC and ADR process.

License

MIT

Metadata

Release files for relayr-ai 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for relayr-ai 0.2.1
File Size Uploaded Provenance Actions
relayr_ai-0.2.1.tar.gz 98.0 kB With provenance Details for relayr_ai-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for relayr-ai 0.2.1
File Interpreter ABI Platform Actions
relayr_ai-0.2.1-py3-none-any.whl Python 3 none any Details for relayr_ai-0.2.1-py3-none-any.whl

Total release size: 229.5 kB

Release files / relayr_ai-0.2.1.tar.gz

Download URL relayr_ai-0.2.1.tar.gz
Size 98.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5764ffb14764fc1bf49b3d9f375053d9a58451b30bef89080fb8b6f5ea73af54
BLAKE2b-256 checksum
How to use checksums
c66824d1de58c3d5e35b09f4f483d1efd69c29cb7c44ce04fb1b10305a68e9cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 30, 2026.

Transparency log

Release files / relayr_ai-0.2.1-py3-none-any.whl

Download URL relayr_ai-0.2.1-py3-none-any.whl
Size 131.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c68868bbe2b547784c80cdfc09f5070bb4b2ca677de0af61b9560423798053a3
BLAKE2b-256 checksum
How to use checksums
1f789025297512d66c990fa97d083a0fb2a80da270fb835ecc5535390e37fdf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 30, 2026.

Transparency log

Security for relayr-ai 0.2.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.

Select from 2 files

Attestation for relayr_ai-0.2.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 Oct 30, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page