Offline integrity checks and token accounting for agent run logs
git clone https://github.com/nawei123/runledger.git
cd runledger
moon run cmd/runledger -- audit examples/clean.jsonl examples/manifest.json
moon run cmd/runledger -- audit examples/broken.jsonl examples/manifest.json
moon run cmd/runledger -- audit-ollama examples/ollama.jsonl examples/manifest.jsonmoon run cmd/runledger -- normalize-ollama examples/ollama.jsonl > /tmp/runledger-calls.jsonl
moon run cmd/runledger -- audit /tmp/runledger-calls.jsonl examples/manifest.jsonbash scripts/verify.sh
moon test --target wasm-gc --deny-warnpub(all) suberror DecodeError {
DecodeError(String)
}pub(all) struct Call {
run_id : String
task_id : String
stage : String
call_id : String
model : String
status : String
input_tokens : Int64?
output_tokens : Int64?
}pub(all) struct Totals {
calls : Int
input_tokens : Int64
output_tokens : Int64
unknown_usage_calls : Int
failed_calls : Int
} derive(ToJson)Install
Download zipOffline integrity checks and token accounting for agent run logs