Skip to content

Latest commit

 

History

History
96 lines (71 loc) · 3.74 KB

File metadata and controls

96 lines (71 loc) · 3.74 KB

agentbom

AgentBOM is an open specification and library for describing AI agent inventories: the tools an agent uses, its permission scopes, model dependencies, compliance posture, and capability assertions — all in a single, verifiable document. This repository provides the reference implementation: a pure-function core library and thin framework adapters.

Install

npm install @wasmagent/agentbom-core

Usage

Validate an AgentBOM document

import { validateAgentBOM } from "@wasmagent/agentbom-core";

const result = validateAgentBOM(doc);
if (!result.valid) {
  for (const err of result.errors) {
    console.error(err); // "identity.agent_id: must be string"
  }
}

Run a compliance check

import { checkCompliance } from "@wasmagent/agentbom-core";

const result = checkCompliance(doc, {
  require_signed: true,
  max_tool_count: 20,
  disallowed_scopes: ["filesystem:write"],
});

console.log(result.score);   // 0–1 weighted score
console.log(result.passed);  // true / false
for (const finding of result.findings) {
  console.log(finding.rule, finding.severity, finding.message);
}

Diff two versions and detect drift

import { diffAgentBOM, buildDriftAlert, formatDriftAlert } from "@wasmagent/agentbom-core";

const diff = diffAgentBOM(baseline, current);
const alert = buildDriftAlert("my-agent", diff, baselineTs, currentTs);
console.log(formatDriftAlert(alert));

Packages

Package npm name Description
agentbom-core @wasmagent/agentbom-core Validator, compliance checker, BOM diff, drift alert, pipeline
agentbom-langchain @wasmagent/agentbom-langchain LangChain adapter
agentbom-llamaindex @wasmagent/agentbom-llamaindex LlamaIndex adapter
agentbom-autogen @wasmagent/agentbom-autogen AutoGen adapter
agentbom-cli @wasmagent/agentbom-cli Developer CLI — agentbom validate, inspect, compliance, trust-chain, drift

Standards alignment

AgentBOM aligns with the emerging CycloneDX Agent BOM proposal (upstream issue #895). Rather than maintaining a parallel inventory standard, WasmAgent tracks that proposal and positions @wasmagent/agentbom-core as an early reference implementation of it — a runnable, published library that describes an agent's tools, permission scopes, model dependencies, and compliance posture as a single verifiable document.

We contribute practical implementation experience upstream. Even where the final CycloneDX design differs from ours, being an early, publicly-engaged implementer is itself a verifiable external trust signal.

Related repositories

Repository Role
wasmagent-protocol Canonical AgentBOM JSON schema (SSOT)
agent-trust-infra Archived — original home of these packages; superseded by this repo
open-agent-audit Compliance report generation and audit dashboard

The schema that drives all validation in agentbom-core is defined in wasmagent-protocol and imported via @wasmagent/protocol. Never copy or redefine it here.

The CLI (agentbom validate, agentbom inspect) now lives in this repo as @wasmagent/agentbom-cli (packages/agentbom-cli), wrapping the library packages here.


Migrated from WasmAgent/agent-trust-infra (now archived) — the library packages and the CLI have their permanent home here. Schema authority stays in wasmagent-protocol.