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 namerelayron PyPI is an unrelated project, and it is imported asrelayr: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
artifactrnamespace, such asartifactr:message_posted,artifactr:artifact_changedandartifactr: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 aproposewrite 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
ruleartifact, 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
evalsextra. - 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
planeandvikunjaextras (lattice RFC-0004). - A ledger of its own (built), in memory or in SQL, behind the
sql,sqliteandpostgresextras. - Forms for rules (built). With the
formsextra,relayr.uibridges an answer to artifactr'sask_form, and a submission to a form, both asui:form_submitted, so a rule is written once for both ways of asking. - Diagrams for rules (built). With the
excalidrawextra,relayr.excalidrawbridges each commit to a diagram's elements once, asexcalidraw: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/.
- Bridging artifactr into reflexr: wiring the followers into an application.
- Acting in artifactr from rules: the outbound adapter, allowlists and loops.
- Tracing across the bridge: links, Langfuse tags and counters.
- Rules from chat: drafting, previewing and installing rules, and drift.
- Evaluating the bridge's rules: proposal outcomes and the measures.
- Architecture: what exists, and how it works.
- Architecture decision records: why each part is the way it is.
- RFCs: the v0.1 plan, its phases and what each waits on.
- The combined system, stackr's RFC-0002: the design relayr builds.
- Brand: the mark and its colours.
Contributing
See CONTRIBUTING.md for setup, the trunk-based workflow, and the RFC and ADR process.
License
Metadata
Release files for relayr-ai 0.2.0
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 |
|---|---|---|---|---|
| relayr_ai-0.2.0.tar.gz | 98.0 kB | With provenance | Details for relayr_ai-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| relayr_ai-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for relayr_ai-0.2.0-py3-none-any.whl |
Total release size: 229.5 kB
Release files / relayr_ai-0.2.0.tar.gz
| Download URL | relayr_ai-0.2.0.tar.gz |
|---|---|
| Size | 98.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
362285ac4577b1e5ef428ff74c9908e46a24d56245b77b2f08bbd84b26428dd9
|
|
BLAKE2b-256 checksum How to use checksums |
a1e22cbe2ce623d333a7aee7da0a80015abf0582bbfebca7d7a8d4e565f3593d
|
| 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 29, 2026.
Transparency logRelease files / relayr_ai-0.2.0-py3-none-any.whl
| Download URL | relayr_ai-0.2.0-py3-none-any.whl |
|---|---|
| Size | 131.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f133c010f834018fbf636b614e4a4c791717b0ec37fad1bee1d561a31c073e9e
|
|
BLAKE2b-256 checksum How to use checksums |
e393bb7d847f43c10e3a07ba0e568e8b76c044e61d4890410214358e7fe1edfc
|
| 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 29, 2026.
Transparency logSecurity for relayr-ai 0.2.0
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 relayr_ai-0.2.0.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 29, 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.