Skip to main content

Agent Action Registry: a minimal JSONL log standard + CLI

Project description

Agent Action Registry (MVP)

A minimal JSONL log standard + CLI for agent actions. No API costs.

Why this matters

Every agent needs an audit trail. This gives you a portable, append-only action log that works across tools.

Install (local dev)

python -m venv .venv
source .venv/bin/activate
pip install -e .

Quick Start

areg init
areg log --user-id demo --action-type purchase --tool browser --target amazon.co.jp \
  --decision require_approval --status pending --reason "over limit" \
  --tags payment,high_risk --metadata '{"amount":5000,"currency":"JPY"}'

areg view --limit 5
areg stats
areg validate

Python SDK

from action_registry import log_event

event_id = log_event(
    user_id="demo",
    action_type="purchase",
    tool="browser",
    target="amazon.co.jp",
    decision="require_approval",
    status="pending",
    reason="over limit",
    tags=["payment", "high_risk"],
    metadata={"amount": 5000, "currency": "JPY"},
)
print(event_id)

Node SDK

import { logEvent } from "./sdk/node/index.js";

const id = logEvent({
  userId: "demo",
  actionType: "purchase",
  tool: "browser",
  target: "amazon.co.jp",
  decision: "require_approval",
  status: "pending",
  reason: "over limit",
  tags: ["payment", "high_risk"],
  metadata: { amount: 5000, currency: "JPY" },
});
console.log(id);

Log Viewer

Open web/viewer.html and paste JSONL into the textarea.

Demo Site

Open web/index.html.

GitHub Action

Use .github/actions/areg-upload to upload .areg/actions.jsonl as an artifact.

Spec

See SPEC.md.

Files

  • action_registry/cli.py CLI implementation
  • action_registry/format.py spec helpers
  • SPEC.md log format

Roadmap (for adoption)

  • SDKs (Python/Node)
  • Web viewer
  • GitHub Action to attach logs to PRs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

action_registry-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

action_registry-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file action_registry-0.1.0.tar.gz.

File metadata

  • Download URL: action_registry-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.16

File hashes

Hashes for action_registry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e75d7de60bd59bb50e6484ebf79fe22abc2e89bb9c890ab2b85c8b53eeba292
MD5 c6611d7be4c3245ca3fc8c1e27730495
BLAKE2b-256 8fd012c11014ee2747002c9f95b3379a61a0b938cc628bb2f8dcaa805fddb24e

See more details on using hashes here.

File details

Details for the file action_registry-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for action_registry-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c003503d163cbba3a2d16a1c0b635a60e4e24ea3ee14898031f7fe1bd4d66adb
MD5 b9fee867e7244244bdc49ed4c1213309
BLAKE2b-256 a1a64ca8809a642d07abf19cca321592ec031d3f34d797b2ab9c3ba1c4ede1c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page