惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
V
Visual Studio Blog
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
IT之家
IT之家
Vercel News
Vercel News
C
Check Point Blog
Google DeepMind News
Google DeepMind News
月光博客
月光博客
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are g...
2026-04-16 · via Hacker News - Newest: "AI"

Zero-trust governance runtime for AI agent actions

v0.4.0 - Quick Start - Community Features - Docs - Testing

CI License Version 0.4.0 Rust

Agent Armor


Agent Armor 0.4.0 Community

0.4.0 is the current community release in this repository.

It ships a real governance runtime with:

  • the full 8-layer pipeline
  • sequence-aware session hardening for same-session multi-call behavior
  • persisted workspace rules and built-in policy templates
  • feature-gated WASM plugin loading, runtime evaluation, and CLI inspection
  • SQLite by default plus optional PostgreSQL support
  • expanded Python and TypeScript SDKs plus lightweight framework adapters
  • live HTTP end-to-end tests, CLI tests, and real plugin-path validation

It is stronger than 0.3.0, but it is still not the end of the full roadmap. The main remaining gaps are the durable-state restart story and the advanced CLI commands called out below.

Why It Exists

AI agents now get shell access, file access, HTTP access, database access, and secret access. Most stacks can execute tool calls, but they do not govern them well.

Agent Armor sits in front of those actions and decides:

  • allow
  • review
  • block

with an audit trail, risk scoring, and per-layer evidence.

What Ships In Community 0.4.0

Core Runtime

  • 8-layer deterministic governance pipeline
  • MCP-aware inspection path
  • ACP and A2A protocol inspection with built-in envelope validation
  • policy evaluation with workspace thresholds
  • policy templates and persisted workspace rules
  • secret reference planning
  • human review queue
  • audit trail and audit export
  • MCP proxy mode and MCP server mode over stdio

0.4.0 Hardening And Extensibility

  • adaptive risk scoring now consumes real session depth and recent timestamps
  • same-session arcs like file_read -> http are tested through integration and live HTTP paths
  • WASM plugin runtime is wired into the pipeline and exposed via:
    • GET /v1/plugins
    • POST /v1/plugins/reload
    • agent-armor plugins list
    • agent-armor plugins validate <path.wasm>
  • community/examples/plugins/review_hint.wat is compiled and validated in tests and CI

SDKs And Adapters

  • Python SDK covers governance, policy, plugin, audit, telemetry, review, threat intel, NHI, response, and rate-limit endpoints
  • TypeScript SDK covers the same runtime surface with sessionId support
  • dependency-light adapters are included for:
    • Python: OpenAI, LangChain, CrewAI, AutoGen
    • TypeScript: OpenAI, Vercel AI style middleware helpers

Operational Security Features

  • response scanning for secrets and PII in outputs
  • per-agent rate limiting
  • behavioral fingerprinting
  • threat intelligence feed and checks
  • SSE and webhook event delivery with DLQ

Storage And Runtime Hardening

  • SQLite storage backend
  • optional PostgreSQL backend behind --features postgres
  • versioned migrations in community/migrations/
  • agent-armor migrate for schema bootstrap and update
  • structured logging: pretty, compact, json
  • log filtering via RUST_LOG or AGENT_ARMOR_LOG_LEVEL
  • request and response correlation with x-request-id
  • governance result correlation with traceId

Current Community Limits

The following community items are still missing or incomplete:

  • durable-state persistence is only partially closed as a restart story nhi, session_graph, taint, fingerprint, and rate-limit state now have storage traits and persistence hooks, but startup hydration and restart-proof validation are not fully closed yet
  • enhanced CLI roadmap items are still open beyond the current commands watch, replay, benchmark, and policy-test are not shipped yet
  • SDK coverage is materially broader now, but some responses are still exposed as generic JSON objects instead of fully typed SDK models

Dashboard Status

The dashboard is a live operator console backed by real runtime endpoints.

It supports:

  • live overview metrics sourced from the audit, review, session, and analytics APIs
  • audit browsing with client-side filtering and CSV export of visible rows
  • a real review queue with approve and reject actions
  • selected-agent drill-down backed by analytics, fingerprint, and rate-limit endpoints
  • runtime controls and posture panels backed by health, firewall, threat intel, telemetry, and policy verification data

When the runtime is protected, the dashboard requires a valid API key and does not fall back to fake demo counters.

Quick Start

Source

cd community
cargo build --release

# Create a key before starting the server
./target/release/agent-armor gen-key --label local-dev

# Start the runtime
./target/release/agent-armor serve

# Inspect discovered plugins
./target/release/agent-armor plugins list

Open http://localhost:4010 for the dashboard.

Docker

docker compose up -d
docker compose exec agent-armor ./agent-armor gen-key --label local-dev

Bootstrap Modes

Protected /v1/* routes require a Bearer token.

Preferred bootstrap path:

cd community
./target/release/agent-armor gen-key --label local-dev
./target/release/agent-armor serve

For local exploration only, you can opt into open mode:

AGENT_ARMOR_OPEN_MODE=true ./target/release/agent-armor serve

Example Calls

# Health
curl http://localhost:4010/health

# Inspect a safe action
curl -X POST http://localhost:4010/v1/inspect \
  -H "Authorization: Bearer <key>" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "openclaw-builder-01",
    "workspaceId": "ws-demo",
    "framework": "openclaw",
    "metadata": {
      "sessionId": "session-123"
    },
    "protocol": "mcp",
    "action": {
      "type": "file_read",
      "toolName": "filesystem.read",
      "payload": {
        "path": "README.md",
        "intent": "read documentation"
      }
    }
  }'

# Scan a tool response for leaked credentials
curl -X POST http://localhost:4010/v1/response/scan \
  -H "Authorization: Bearer <key>" \
  -H "Content-Type: application/json" \
  -d '{
    "requestId": "scan-1",
    "agentId": "openclaw-builder-01",
    "toolName": "terminal.exec",
    "responsePayload": {
      "secret": "AKIA1234567890ABCDEF"
    }
  }'

# List plugin registry state
curl http://localhost:4010/v1/plugins \
  -H "Authorization: Bearer <key>"

MCP Stdio Example

Run the built-in MCP client example to exercise initialize, tools/list, and tools/call against agent-armor mcp-server over stdio:

cd community
cargo run --example mcp_stdio_client

Plugin Example

A real example plugin source lives in community/examples/plugins/review_hint.wat. The runtime loads .wasm, so the test and CI path compiles that WAT source and validates it against the Agent Armor plugin ABI.

Docs

All current docs for 0.4.0 are linked here.

Document Purpose
docs/ARCHITECTURE.md Current runtime architecture and module boundaries
docs/DEMO.md Demo and local walkthrough
docs/CASE_STUDY.md Historical v2 benchmark and evaluation write-up
sdks/python/README.md Python SDK quick start and adapters
sdks/typescript/README.md TypeScript SDK quick start and adapters

API Highlights

Public

  • GET /
  • GET /health

Governance

  • POST /v1/inspect
  • GET /v1/audit
  • GET /v1/audit/export
  • GET /v1/audit/stats
  • GET /v1/reviews

Profiles And Policies

  • GET/POST /v1/profiles
  • GET/PUT/DELETE /v1/profiles/:id
  • GET/POST /v1/workspaces
  • GET/PUT/DELETE /v1/workspaces/:id
  • GET/POST /v1/workspaces/:id/rules
  • GET /v1/templates
  • GET /v1/templates/:name

Response Security

  • POST /v1/response/scan
  • GET /v1/response/patterns

Runtime Controls

  • GET /v1/rate-limit/status/:agent_id
  • GET/POST /v1/rate-limit/config
  • GET /v1/firewall/stats
  • POST /v1/firewall/scan
  • GET /v1/telemetry/spans
  • GET /v1/events/stream
  • GET /v1/plugins
  • POST /v1/plugins/reload

Identity And Auth

  • GET/POST /v1/auth/keys
  • DELETE /v1/auth/keys/:id
  • GET/POST /v1/nhi/identities
  • POST /v1/nhi/attest
  • POST /v1/nhi/challenge
  • POST /v1/nhi/verify

Testing And Verification

0.4.0 is verified at four layers plus SDK and plugin-path smoke checks:

  • unit tests
  • property tests
  • direct integration tests
  • live HTTP end-to-end tests
  • CLI tests
  • example plugin compilation and execution tests
  • TypeScript SDK build
  • Python SDK compile smoke

Current automated coverage:

  • 99 unit tests
  • 19 property tests
  • 10 integration tests
  • 8 end-to-end HTTP tests
  • 3 CLI tests
  • 2 example plugin tests

Total: 173 Rust tests plus TypeScript and Python SDK build checks.

Run them with:

cd community

# Full Rust suite
cargo test --features plugins

# Example plugin validation only
cargo test --features plugins --test plugin_example_tests

# HTTP E2E only
cargo test --test e2e_http_tests

# PostgreSQL build verification
cargo check --features postgres

# TypeScript SDK build
cd ../sdks/typescript && npm run build

# Python SDK compile smoke
cd ../python && python -m compileall agent_armor

The HTTP and integration tests exercise real authenticated requests, persisted workspace rules, same-session sequence behavior, real plugin directories, and pluginResults propagation in governance responses.

Open-Core Boundary

Community keeps:

  • runtime governance
  • storage backends
  • migrations
  • logging and observability basics
  • CLI, HTTP API, MCP proxy, dashboard, SDKs, adapters, and tests

Community does not currently include:

  • multi-tenant isolation
  • SSO, SAML, JWT, or RBAC
  • SIEM integrations
  • ML firewall features
  • enterprise admin UX

Contributing

See CONTRIBUTING.md.

License

Business Source License 1.1

Disclaimer

Agent Armor is a governance layer, not a complete security program. Use it as part of a broader security posture.