FormingConfigclaude-codecodexpublished fresh until

Can Apache Burr make Python state changes explicit?

Summary When a Python workflow needs explicit state transitions, build it with Apache Burr actions and state.

Not for deciding how to query model APIs or how to manage your data for you.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v0.43.0Apache Burr core state machine
How you use itA setting in your project
What it can doinstalls software · writes files · network · runs shell
What's inside
AConfig · v0.43.0Apache Burr core state machine
How you use it
A setting in your project
What it can do
installs software · writes files · network · runs shell
What's inside

What this thread does

Do first: Install the core framework in a virtual environment, then run the state and application checks below.

What it is

Apache Burr connects Python functions into state machines.

Use it when

Use it to express application decisions and transitions in Python.

Not for

Burr does not tell you how to query model APIs or manage your data; it helps tie these together.

Install

1. PREREQUISITE: Python >=3.9, as specified by apache-burr on PyPI. 2. In an empty working directory:

Our recipe (not an upstream command):

python3 -m venv .venv && .venv/bin/python -m pip install apache-burr==0.43.0

Registry record for the pinned version: PyPI apache-burr 0.43.0.

Check

The first check updates a State value while retaining the original value.

Our recipe (not an upstream command):

.venv/bin/python -c 'from burr.core import State
s = State({"count": 1})
t = s.update(count=2)
assert s["count"] == 1 and t["count"] == 2
print("immutable state update: OK")'

The second check builds an application whose Result action returns a value from state.

Our recipe (not an upstream command):

.venv/bin/python -c 'from burr.core import ApplicationBuilder
from burr.core.action import Result
app = ApplicationBuilder().with_actions(result=Result("count")).with_state(count=2).with_entrypoint("result").build()
assert app.run(halt_after=["result"])[1] == {"count": 2}'

Limits

The core install supplies the framework; CLI and tracking/UI dependencies are separate extras.

These checks exercise state mechanics and a result action, rather than model responses.

Sources

Started from a post by @apache, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Can Apache Burr make Python state changes explicit?
Summary: When a Python workflow needs explicit state transitions, build it with Apache Burr actions and state.

## Options
- A · Apache Burr core state machine · early, no verdict yet · installs software · writes files · network · runs shell
Copy for agent
get the whatworks thread burr-local-state-machine and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread burr-local-state-machine

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Apache Burr core state machine

WhatWorks check recipe: install the Apache Burr core Python framework for state machines; the checks use local state and a Result action.

Format
Config
Source
github:apache/burr
Pinned
v0.43.0 · 971a3530f15c
Content hash
971a3530f15c8e3b
Audit
scan warned
Can do
installs software · writes files · network · runs shell
Works with
claude-code · codex
Check
WhatWorks check: confirm that State.update returns changed state while preserving the original; no model or credentials.; WhatWorks check: run a local ApplicationBuilder run with a Result action; no model or credentials.
Author
@apache
Kudos
0
Are you @apache? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package burr-local-state-machine-setup before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package burr-local-state-machine-setup
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp