Instructions to use atharvgaur18/actionproof-agent-a with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use atharvgaur18/actionproof-agent-a with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Download README.md from atharvgaur18/actionproof-agent-a: direct link, hf CLI and curl.
- Browser
- Download file 10.8 kB
-
https://huggingface.co/atharvgaur18/actionproof-agent-a/resolve/main/README.md
- Command line
-
hf download hf://atharvgaur18/actionproof-agent-a/README.md
-
curl -L -o README.md https://huggingface.co/atharvgaur18/actionproof-agent-a/resolve/main/README.md
license: cc-by-nc-4.0
base_model: CohereLabs/tiny-aya-global
base_model_relation: adapter
library_name: peft
pipeline_tag: text-generation
language:
- en
tags:
- actionproof
- tool-use
- agents
- grpo
- lora
- procuresim
- research-only
datasets:
- atharvgaur18/actionproof-traces
ActionProof agent A (recovery-start GRPO, "RSC"), seeds 0, 1, 2
The reference agent of the P1 study: three LoRA (r16) adapters (s0, s1, s2 = runs/s3_rv_mix_s{0,1,2}/final)
trained by GRPO with the state reward R_V on recovery-start and full-episode pools (s3_trainb_half +
s3_rec_train_half; 200 steps, 4 prompts x 8 rollouts, lr 2e-5, beta 0.02). It is the baseline that D, C and B are
compared against; it is not the recommended agent
(atharvgaur18/actionproof-agent-d is).
Lineage
CohereLabs/tiny-aya-global + w/ (the RFT warm start W, SFT on teacher trajectories; runs/rft_proc/final) = merged W
(runs/rft_proc/merged) + s0, s1 or s2 = A. The A adapters load on merged W, not on the raw base.
w/ is included so the chain can be rebuilt. LINEAGE.json in each folder records the original parent path.
Tool-call format and system prompt
The model is trained and evaluated in AgentTune's Cohere fallback format. There is no chat-template tool block.
- System prompt = ProcureSim policy text (
actionproof.integrity.sim.prompts.PROC_NEUTRAL, also indata/bench/proc/system_prompt.txtof the code repository) + a JSON tool-schema block built byactionproof.rollout.episode.system_prompt(env, PROC_NEUTRAL). That function uses AgentTune's prompt and schema builder when AgentTune is installed, and a dependency-free copy (actionproof/rollout/lite_format.py) otherwise. - The model answers with one JSON list per turn and nothing else:
[{"tool_name": "pay_supplier", "parameters": {"po_id": "PO-1A2B3C", "amount_cents": 1000, "idempotency_key": "pay-PO-1A2B3C"}}] - Tool results come back as a user turn:
Tool result for <name>: <json>followed byContinue the task. Call submit_report when you are finished. - The episode ends when the model calls
submit_reportwith statuscompleted,failedorescalated, or when a turn has no parseable call (16 turns, 256 new tokens per turn in the evaluation). - The ProcureSim tools are
get_purchase_order,find_supplier_order,place_supplier_order,record_goods_receipt,list_goods_receipts,pay_supplier,list_payments,refund_payment,post_journal_entry,get_journal_entries,escalate_to_human,submit_report(actionproof/integrity/sim/env.py).
Usage (one turn)
The adapters are LoRA (r16) on a parent, which is not always the public base model (see Lineage). Merge the
parent chain first, then attach the adapter. Parent chain and merge helper: actionproof/train/merge.py.
# pip install torch transformers peft; git clone https://github.com/atharvgaur1845/actionproof-v2 && cd actionproof-v2 && pip install -e .
import json, torch
from huggingface_hub import snapshot_download
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
from actionproof.bench.generator_proc import DATA, load_tasks
from actionproof.stage3.env import make_env_s3
from actionproof.integrity.sim.prompts import PROC_NEUTRAL
from actionproof.rollout.episode import system_prompt, _agenttune
repo = "atharvgaur18/actionproof-agent-a"
local = snapshot_download(repo)
# parent = the base model with the W adapter merged in (the RFT warm start, shipped in this repository)
parent = AutoModelForCausalLM.from_pretrained("CohereLabs/tiny-aya-global", torch_dtype=torch.bfloat16, device_map="auto")
parent = PeftModel.from_pretrained(parent, f"{local}/w").merge_and_unload()
tok = AutoTokenizer.from_pretrained("CohereLabs/tiny-aya-global")
model = PeftModel.from_pretrained(parent, f"{local}/s0") # sub-folder of this repository
task = load_tasks(DATA / "p1_test_full.jsonl")[0]
env = make_env_s3(task, "card-demo")
conv = [{"role": "system", "content": system_prompt(env, PROC_NEUTRAL)},
{"role": "user", "content": task.prompt}]
text = tok.apply_chat_template(conv, add_generation_prompt=True, tokenize=False)
ids = tok(text, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**ids, max_new_tokens=256, do_sample=False)
reply = tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True)
print(reply)
_, _, parse = _agenttune()
for c in parse(reply) or []:
print(env.call(c["function"]["name"], json.loads(c["function"]["arguments"] or "{}")))
Results (frozen P1 test, 450 tasks, 3 seeds, sampled VSC)
| Model | full | pp | rec | wf4 | combo | union (450) |
|---|---|---|---|---|---|---|
W: RFT warm start (w/) |
0.583 | 0.017 | 0.421 | 0.183 | 0.296 | 0.335 |
A (s0, s1, s2) |
0.706 | 0.319 | 0.624 | 0.174 | 0.535 | 0.513 |
| D: recovery SFT then GRPO | 0.810 | 0.931 | 0.909 | 0.486 | 0.824 | 0.819 |
| Contrast (paired task bootstrap, B = 10,000) | Status | Delta VSC [95% interval] |
|---|---|---|
| A - W | exploratory: GRPO on the plain warm start | +0.178 [+0.154, +0.203] |
| B - A | registered P1-H1, not supported (reconciliation line at inference on A) | -0.030 [-0.041, -0.019] |
| C - A | registered P1-H2, supported (A plus recovery SFT) | +0.259 [+0.231, +0.287] |
| D - A | registered P1-H3, supported | +0.306 [+0.276, +0.337] |
Per-seed union sampled VSC of A: s0 0.530, s1 0.513, s2 0.495.
Behaviour of arm A by split (sampled, seed mean)
| Split | VSC | false success | partial payment repaired | duplicate unrefunded |
|---|---|---|---|---|
| full | 0.706 | 0.136 | 0.444 | 0.013 |
| pp | 0.319 | 0.651 | 0.319 | 0.005 |
| rec | 0.624 | 0.272 | 0.235 | 0.081 |
| wf4 | 0.174 | 0.692 | 0.083 | 0.017 |
| combo | 0.535 | 0.407 | 0.113 | 0.035 |
Partial payments are repaired on a minority of episodes and the unseen four-step workflow is mostly false success; that is what P1 set out to improve.
Limitations
- Simulator, not production payments. Every result is on ProcureSim, an in-memory procurement simulator with injected write faults (phantom, partial, lost-acknowledgement, duplicate, never-commit). No real payment system, real money or real supplier was involved, and nothing here shows the agent is safe to deploy.
- The RL agents (A, D, Dn) fail on renamed tools and on the four-step workflow. Recovery-start training with randomised
tool names (registered SR1,
results/s4/sr1_summary.json) did not help on the renamed API (+0.000 [-0.040, +0.042]) and cost VSC on the canonical tools (-0.248 [-0.296, -0.201]). On the unseen four-step workflow (wf4, order, receive, pay, post) the models run the trained three-step sequence and skip the new step (thep1_test_wf4split ofresults/p1/p1_summary.json). Randomising the demonstrations instead (registered P4,results/p4/p4_summary.json; warm starts only, no GRPO on top) raises the warm start on the tested renamed-tool surface and four-step workflow: +0.604 [+0.540, +0.666] and +0.574 [+0.536, +0.610], P1 test +0.048 [+0.026, +0.072] (Dw_aug vs Dw, 3 seeds each;atharvgaur18/actionproof-warmstart-dwaug). - Arms C and D are not nested. C is the recovery-start agent A plus recovery SFT. D starts from its own
recovery-SFT warm start (Dw) and then runs GRPO. The C to D gap is therefore not GRPO's contribution; the
exploratory 2x2 (
results/audit/dwarm_2x2.json) is the right reading of what GRPO adds on top of SFT. - P3 is not supported. Removing the group standard deviation from the GRPO advantage (no-std GRPO, agent Dn)
leaves it slightly below D (registered P3-H1,
results/p3/p3_summary.json). - Intervals are over tasks only. Paired task bootstrap over 450 tasks (B = 10,000) holds the three trained models fixed; with three seeds, seed-level power is low. Per-split cells carry no stored interval.
- RL on one base model (3.35B); the recovery-SFT recipe alone was replicated on four more Cohere bases (P5). One simulated domain, English-language training; Hindi and Hinglish were evaluated as shifts
only (
docs/submission/WRITEUP.mdsection 25). - Non-commercial licence inherited from the base model.
Intended use
Research only: reproducing the ActionProof study, probing how training signals shape verification and recovery behaviour in tool agents, and benchmarking against ProcureSim. Not for production financial operations, not for automated payment decisions, and not for commercial use (CC-BY-NC-4.0, plus the Cohere Labs acceptable-use policy).
Citation
@misc{actionproof2026,
title = {ActionProof: what reinforcement learning teaches tool agents when "ok" does not mean it happened},
author = {atharvgaur18},
year = {2026},
howpublished = {\url{https://github.com/atharvgaur1845/actionproof-v2}},
note = {Model atharvgaur18/actionproof-agent-a; code, claims ledger and pre-registrations in the repository}
}
How to evaluate
Frozen P1 test: 450 tasks over five splits, 4 sampled episodes (T = 1) plus one greedy episode per task, 16 turns, 256 new tokens, scored by the deterministic verifier (verified-success completion, VSC). Needs vLLM and a GPU.
git clone https://github.com/atharvgaur1845/actionproof-v2 && cd actionproof-v2 # data/bench/proc/p1_test_*.jsonl are in the repository
python scripts/p1_eval.py --model runs/rft_proc/merged --adapter runs/s3_rv_mix_s0/final --tag <tag> \
--split p1_test_full --phase test --samples 4 # repeat for p1_test_pp, p1_test_rec, p1_test_wf4, p1_test_combo
runs/... is the cluster layout of the original runs. With the public repositories, pass a downloaded directory
(huggingface-cli download <repo> --local-dir <dir>); for an adapter repository --model is the merged parent
(see Lineage; the tool merges the adapter itself, as actionproof/train/merge.py) and --adapter is <dir>/<sub-folder>.
Evaluate seeds 0, 1, 2 for the three-seed arm (--tag <ARM>_s0 and so on).
scripts/p1_eval.py refuses to overwrite a frozen-test output, so write to a fresh checkout or use --phase dev on
p1_dev_* splits. The recorded episodes behind every number on this card are in the dataset
atharvgaur18/actionproof-traces; scripts/verify_numbers.sh
recomputes the summaries from them on a CPU.
Sources: results/p1/p1_summary.json, results/p1/test/A_s__.summary.json, results/audit/dwarm_2x2.json. Numbers on this card were generated from those files by release/build_cards.py; none is typed by hand.