
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@peac/adapter-runtime-governance
Advanced tools
Runtime governance adapter for PEAC interaction records with AGT mapper
Runtime governance adapter for PEAC interaction records. Records governance decisions, audit entries, authority scope changes, lifecycle transitions, trust signals, and compliance assessments as signed, portable Interaction Records.
pnpm add @peac/adapter-runtime-governance
@peac/adapter-runtime-governance is a Layer 4 adapter that records runtime governance artifacts as signed, portable Interaction Records. It provides a generic runtime-governance surface with source-specific mappers. Microsoft AGT is the first mapper; the architecture supports additional mappers for other runtimes.
PEAC validates the structure and signature of the PEAC record, not the truth of the upstream governance decision or the operating effectiveness of the upstream control plane. PEAC does not verify upstream Merkle chain integrity or ML-DSA-65 signatures.
import { generateKeypair, verifyLocal } from '@peac/protocol';
import { issueRuntimeGovernanceRecord, mapAgtEvent } from '@peac/adapter-runtime-governance';
const kp = await generateKeypair();
const event = mapAgtEvent({
family: 'policy_decision',
event: 'policy.evaluated',
data: { action: 'allow', matched_rule: 'default-allow' },
source: { system: 'microsoft-agt' },
});
const result = await issueRuntimeGovernanceRecord(event, {
privateKey: kp.privateKey,
kid: 'gov-key-1',
issuer: 'https://governance.example.com',
sessionId: 'sess-001',
agentId: 'agent-001',
provider: 'example-runtime', // caller-supplied, never hardcoded
});
const verification = await verifyLocal(result.jws, kp.publicKey);
import { buildSessionSummary } from '@peac/adapter-runtime-governance';
const summary = buildSessionSummary([result.jws]);
// { sessionId, receipts: 1, families: ['policy_decision'], unknownTypeCount: 0, issuer }
buildSessionSummary() decodes JWS payloads to extract metadata but does not verify signatures. Callers must verify receipts first. Returns deterministic family ordering (sorted alphabetically) and counts unknown type URIs separately.
| Family | Type URI | Kind |
|---|---|---|
| Policy Decision | org.peacprotocol/runtime-governance-policy-decision | evidence |
| Audit Entry | org.peacprotocol/runtime-governance-audit-entry | evidence |
| Authority Scope | org.peacprotocol/runtime-governance-authority-scope | evidence |
| Lifecycle Event | org.peacprotocol/runtime-governance-lifecycle-event | evidence |
| Trust Observation | org.peacprotocol/runtime-governance-trust-observation | evidence |
| Compliance Observation | org.peacprotocol/runtime-governance-compliance-observation | evidence |
@peac/protocol (Layer 3): Receipt issuance and local verification@peac/crypto (Layer 2): JWS decode for session summary extraction@peac/adapter-managed-agents: Managed agent event records (complementary adapter)provider field is always caller-supplied.@peac/protocol and @peac/crypto only.evidence kind Interaction Records.org.peacprotocol/runtime-governance with session_id, event, agent_id, provider fields plus family-specific payload.If you are building an AI agent or MCP server that needs evidence receipts:
@peac/mcp-server for a ready-to-use MCP tool server@peac/protocol for programmatic receipt issuance and verificationApache-2.0
PEAC Protocol is an open source project stewarded by Originary and community contributors.
FAQs
Runtime governance adapter for PEAC interaction records with AGT mapper
The npm package @peac/adapter-runtime-governance receives a total of 239 weekly downloads. As such, @peac/adapter-runtime-governance popularity was classified as not popular.
We found that @peac/adapter-runtime-governance demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.