• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

run-llama / llama-agents / 38063514549
85%

Build:
DEFAULT BRANCH: main
Ran 10 Oct 2026 03:25PM UTC
Jobs 12
Files 234
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Oct 2026 03:24PM UTC coverage: 85.105%. First build
38063514549

push

github

web-flow
Add state checkpoints with JSON Patch diffs to BasicRuntime (#786)

## What changed

`BasicRuntime.state_checkpoint(run_id)` returns a `StateCheckpoint`
holding a reference to the run's committed state model. Taking one
copies nothing. `checkpoint.diff(since)` returns JSON Patch ops from an
earlier checkpoint to this one, `checkpoint.to_dict()` is a full payload
that works as a snapshot's `state`, and `apply_state_patch(payload,
ops)` applies ops to a plain dict with no model classes loaded. A run
resumes from a state rebuilt that way by putting it in the broker
snapshot the journal restores.

```python
base = basic_runtime.state_checkpoint(run_id)
put("state/base", base.to_dict())                       # once
...
cur = basic_runtime.state_checkpoint(run_id)
put(f"state/{seq}", cur.diff(base))                     # per flush, alongside the journal batch
# [{"op": "add", "path": "/state_data/_data/messages/4", "value": {...}}]
base = cur

# resume, any process: broker from the journal, state from base plus patches
state = get("state/base")
for patch in patches:
    state = apply_state_patch(state, patch)
snapshot = basic_runtime.restore(wf, None, records).to_dict(include_state=False)
snapshot["state"] = state
await wf.run(ctx=Context.from_dict(wf, snapshot))
```

`to_dict()` writes a new tree-shaped `state_data` form marked with
`_tree`, which `decode_state` reads by the marker. The two existing
forms load as before. Nothing on the store's write path changes.

## Why

The tick journal from https://github.com/run-llama/llama-agents/pull/784
covers broker state and nothing else. `ctx.store` is written by steps
directly, and it is persisted today by serializing the whole store on
every write. A step that appends one message to a long conversation
re-serializes the whole conversation.

`ctx.store.set(path, value)` already rebuilds only the containers on the
written path and shares everything else with the previous state. That
sharing is what makes a cheap ... (continued)

173 of 194 new or added lines in 2 files covered. (89.18%)

18906 of 22215 relevant lines covered (85.1%)

1.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
94.49
packages/llama-index-workflows/src/workflows/context/state_store.py
1
94.02
packages/llama-index-workflows/src/workflows/plugins/basic.py
Jobs
ID Job ID Ran Files Coverage
1 llama-agents-server - 38063514549.1 10 Oct 2026 03:25PM UTC 31
86.15
GitHub Action Run
2 llama-agents-core - 38063514549.2 10 Oct 2026 03:25PM UTC 15
81.34
GitHub Action Run
3 llama-agents-agentcore - 38063514549.3 10 Oct 2026 03:25PM UTC 5
70.22
GitHub Action Run
4 llama-agents-integration-tests - 38063514549.4 10 Oct 2026 03:25PM UTC 101
64.96
GitHub Action Run
5 llama-agents-dev - 38063514549.5 10 Oct 2026 03:25PM UTC 12
76.5
GitHub Action Run
6 llama-index-utils-workflow - 38063514549.6 10 Oct 2026 03:25PM UTC 1
70.84
GitHub Action Run
7 llama-agents-dbos - 38063514549.7 10 Oct 2026 03:25PM UTC 11
75.72
GitHub Action Run
8 llamactl - 38063514549.8 10 Oct 2026 03:25PM UTC 48
79.79
GitHub Action Run
9 llama-agents-control-plane - 38063514549.9 10 Oct 2026 03:25PM UTC 31
74.57
GitHub Action Run
10 llama-index-workflows - 38063514549.10 10 Oct 2026 03:25PM UTC 52
94.17
GitHub Action Run
11 llama-agents-client - 38063514549.11 10 Oct 2026 03:25PM UTC 4
95.32
GitHub Action Run
12 llama-agents-appserver - 38063514549.12 10 Oct 2026 03:25PM UTC 17
81.27
GitHub Action Run
Source Files on build 38063514549
  • Tree
  • List 234
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38063514549
  • f183c77d on github
  • Prev Build on main (#37991505027)
  • Next Build on main (#38106280855)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc