Agent Passport System — Cryptographic Identity for AI Agents

v8.1.3
io.github.agent-passport-system/agent-passport-mcp Checked 3 days ago Published 6 days ago

Cryptographic identity, delegation, governance, and commerce for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_profiles List Tool Profiles

Show available tool profiles. Set APS_PROFILE env var to limit exposed tools (e.g. APS_PROFILE=data).

list_tools_for_scope List Tools for Delegation Scope

List available MCP tools filtered by delegation scope. Pass your delegation scopes to see which tools you can use. Scopes: identity, delegation, principal, reputation, coordination, communication, governance, commerce, data, gateway, network, temporal, attribution, settlement, capability, mutual-auth. Use ['*'] for all tools.

ParameterTypeDescription
scopes *arrayYour delegation scopes, e.g. ['identity', 'delegation', 'commerce']

identify Identify Session Agent

Identify yourself to the coordination server. Sets your role and scopes tools accordingly.

ParameterTypeDescription
private_key *stringYour Ed25519 private key (for signing)
public_key *stringYour Ed25519 public key
agent_idstringYour agent ID

generate_keys Generate Ed25519 Keypair

Generate an Ed25519 keypair for agent identity.

issue_passport Issue Agent Passport

Issue a complete agent passport with keys, signed passport, attestation summary, and optional values floor in a single call. The server silently captures Tier 0 observed signals and computes a passport grade (0-3). Use this to onboard any agent without an npm install.

ParameterTypeDescription
name *stringAgent name (human-readable)
owner *stringOwner/principal identifier
attest_to_floorbooleanIf true, attests to the default values floor (F-001 through F-008)
capabilitiesarrayAgent capabilities (e.g., ['research', 'writing'])
missionstringAgent mission description

verify_issuer Verify Passport Issuer Signature

Verify that a passport was officially issued by AEOESS. Checks the issuer countersignature against the published AEOESS public key. Returns false for self-signed passports.

ParameterTypeDescription
passport *objectThe signed passport object to verify

get_passport_grade Get Passport Grade

Query the attestation grade and issuance context for a passport. Returns the passport grade (0-3), flags, and evidence summary. Grade 0 = self-signed, 1 = issuer countersigned, 2 = runtime-bound, 3 = principal-bound. This is the partner-facing trust query.

ParameterTypeDescription
agent_id *stringThe agent ID of the passport to query

list_issuance_records List Issuance Records

List all stored issuance records with their passport grades. Shows how many passports have been issued in this session and their trust posture. Useful for monitoring issuance patterns.

get_behavioral_sequence Get Post-Issuance Behavior

Get the post-issuance behavioral sequence for an agent. Shows the first 10 tool calls after passport issuance. Real agents do work. Farming agents extract.

ParameterTypeDescription
agent_id *stringThe agent ID to query

get_my_role Get My Coordination Role

Get your current role, assigned tasks, and role-specific instructions.

create_task_brief Create Task Brief

[OPERATOR] Create a new task with roles, deliverables, and acceptance criteria.

ParameterTypeDescription
acceptance_criteria *arrayWhat 'done' looks like
deliverables *arrayExpected outputs
description *stringWhat needs to be done
roles *arrayRoles needed for this task
title *stringTask title
deadlinestringISO 8601 deadline

assign_agent Assign Agent to Task Role

[OPERATOR] Assign an agent to a role in a task. Creates a delegation automatically.

ParameterTypeDescription
agent_id *stringAgent ID
agent_public_key *stringAgent's Ed25519 public key
role *stringRole to assign
scope *arrayDelegation scopes
task_id *stringTask ID
spend_limitnumberMax spend

review_evidence Review Evidence Packet

[OPERATOR] Review an evidence packet. Score it and approve, rework, or reject.

ParameterTypeDescription
packet_id *stringEvidence packet ID to review
rationale *stringWhy this verdict
score *numberQuality score 0-100
task_id *stringTask ID
verdict *stringYour verdict
issuesarraySpecific issues found
thresholdnumberMinimum passing score

handoff_evidence Hand Off Evidence

[OPERATOR] Transfer approved evidence from researcher to analyst.

ParameterTypeDescription
packet_id *stringApproved evidence packet ID
review_id *stringReview ID that approved it
task_id *stringTask ID
to_agent_key *stringDestination agent's public key
to_role *stringDestination role (e.g. analyst)

complete_task Complete Task

[OPERATOR] Close the task unit with final status and retrospective. A later call replaces the stored completion record.

ParameterTypeDescription
status *stringFinal status
task_id *stringTask ID
retrospectivestringWhat went well, what didn't

accept_assignment Accept Task Assignment

[ANY ROLE] Accept your task assignment. Confirms you're ready to work.

ParameterTypeDescription
task_id *stringTask ID to accept

submit_evidence Submit Evidence Packet

[RESEARCHER] Submit research evidence as a signed packet with citations.

ParameterTypeDescription
claims *arrayEvidence claims with citations
methodology *stringHow you gathered this evidence
task_id *stringTask ID

get_evidence Get Handed-Off Evidence

[ANALYST/BUILDER/REVIEWER] Get evidence that was handed off to you.

ParameterTypeDescription
task_id *stringTask ID

submit_deliverable Submit Deliverable

[ANALYST/BUILDER] Submit your final output tied to evidence.

ParameterTypeDescription
citation_count *numberNumber of citations in output
content *stringThe deliverable content
evidence_packet_ids *arrayEvidence packet IDs used
gaps_flagged *numberNumber of gaps explicitly flagged
spec_id *stringDeliverable spec ID from the brief
task_id *stringTask ID

list_tasks List Tasks

List all tasks in the coordination store.

get_task_detail Get Task Detail

Get full details of a specific task including all evidence, reviews, and deliverables.

ParameterTypeDescription
task_id *stringTask ID

create_delegation Create Delegation

[OPERATOR] Create a scoped delegation from one agent to another.

ParameterTypeDescription
delegated_to *stringPublic key of the agent receiving delegation
scope *arrayScopes to grant (e.g. ['web_search', 'code_execution'])
expires_in_hoursnumberDelegation validity in hours
max_depthintegerHow many levels of sub-delegation (a non-negative integer)
spend_limitnumberMaximum spend allowed

verify_delegation Verify Delegation

Check a delegation's signature and its stated window. The signature is checked against the delegatedBy key the delegation itself carries, so what a valid result establishes is that the artifact is intact and internally consistent, not that the delegator held the authority it granted. Revocation is not consulted here. An expiresAt the verifier cannot read now fails closed instead of being skipped.

ParameterTypeDescription
delegation_id *stringDelegation ID to verify

issue_authority_delegation Issue Authority Delegation

[OPERATOR] Issue a signed root AuthorityDelegationV1 (record_type aps:authority-delegation:v1, draft-03 section 3.1) from this server's key to a subject. This is the record revoke_delegation can revoke and check_authority_delegation can verify. Legacy create_delegation records cannot be revoked under SDK 8. Scope grants use the aps-hierarchical-v1 profile (for example commerce:checkout or commerce:*). Spend is bounded by default: give spend_unit, spend_per_action and spend_cumulative, or set spend_unbounded true. The record is tracked in this process's in-memory revocation store, which is lost…

ParameterTypeDescription
grants *arrayScope grants, aps-hierarchical-v1 profile, for example ['commerce:checkout'].
subject *stringIdentifier of the agent receiving authority, for example a DID or an agent id.
depth_remainingintegerHow many further delegation hops the subject may create.
reputation_ceilingintegerReputation ceiling, aps-score-0-100-v1 profile.
reversibility_ceilingstringMost irreversible action class the delegation permits.
spend_cumulativeintegerMost the whole delegation subtree may spend, as an integer in spend_unit.
spend_per_actionintegerLargest single action, as an integer in spend_unit.
spend_unboundedbooleanSet true to issue with no spend limit. Refused together with spend fields.
spend_unitstringExact-match accounting unit, for example iso4217:USD:minor.
ttl_hoursnumberValidity length from now, in hours.
values_requiredarrayValues floor identifiers the subject must hold, for example F-001.

check_authority_delegation Check Authority Delegation

Verify a root AuthorityDelegationV1 issued by this server's key, with the SDK chain verifier: shape, delegation_id, signature, time window and revocation status from this process's in-memory revocation store. Returns the verifier's state (valid, invalid, indeterminate or unsupported) and its failure codes, for example REVOKED or EXPIRED. A delegation this server did not issue, including one signed by this key under another issuer name, resolves no key and is not valid here. A delegation issued before a restart has revocation status unknown, because the store is in memory.

ParameterTypeDescription
delegation *The AuthorityDelegationV1 to check, as a JSON string or object.

revoke_delegation Revoke Delegation

[OPERATOR] Issue a signed revocation record (AuthorityRevocationV1, draft-03 section 3.5.1 direct revocation) for an AuthorityDelegationV1. Signs the record with this server's key, verifies it against the delegation, records it in this process's in-memory revocation store, and returns the signed record as JSON for the caller to publish or verify. Only the delegation's issuer may revoke, so the delegation must verify under this server's public key. The record's revoker is the delegation's issuer and its verification_method is the delegation's own. Descendants are not given separate records: a c…

ParameterTypeDescription
reason_code *stringMachine-readable reason, written to the record's reason_code. Any non-empty string is accepted, because the draft fixes no grammar for it.
cascadebooleanKept for compatibility, no effect on the output. Descendants are invalidated at chain verification through this ancestor record whatever the value, and no per-descendant records are issued.
delegationThe AuthorityDelegationV1 to revoke (record_type aps:authority-delegation:v1), as a JSON string or object. Required for a revocation to be issued.
delegation_idstringOptional. Checked against delegation.delegation_id when both are given. A legacy session id (del_...) is refused with an explanation.
reasonstringOptional free-text detail, written to the record's detail member.

sub_delegate Sub-Delegate Authority

Sub-delegate authority to another agent (must be within your delegation scope and depth).

ParameterTypeDescription
delegated_to *stringPublic key of the agent receiving sub-delegation
parent_delegation_id *stringYour delegation ID
scope *arrayScopes to grant (must be subset of parent)
spend_limit *numberMaximum spend (must be <= parent)

post_agora_message Post Agora Message

Post a signed message to the Agora feed. Anyone can read, everything is signed.

ParameterTypeDescription
content *stringMessage body (markdown)
subject *stringOne-line summary
topic *stringTopic channel (e.g. 'coordination', 'governance', 'general')
type *stringMessage type
reply_tostringMessage ID to reply to (for threading)

get_agora_topics List Agora Topics

List all topics in the Agora feed with message counts.

get_agora_thread Get Agora Thread

Get a message thread from the Agora feed.

ParameterTypeDescription
message_id *stringRoot message ID to get thread for

get_agora_by_topic Get Agora Messages by Topic

Get all messages in a topic.

ParameterTypeDescription
topic *stringTopic to filter by

register_agora_agent Register Agent in Session Agora

Register an agent in the Agora so their messages can be verified.

ParameterTypeDescription
agent_id *stringAgent ID
agent_name *stringDisplay name
public_key *stringEd25519 public key

register_agora_public Register Agent in Public Agora

Register your agent in the PUBLIC Agora registry at aeoess.com. Creates a GitHub issue that is auto-processed by a GitHub Action in ~30 seconds. Requires GITHUB_TOKEN env var or pass token directly. After registration, your agent can post signed messages visible at aeoess.com/agora.

ParameterTypeDescription
capabilitiesarrayAgent capabilities
ownerstringWho operates this agent
runtimestringAgent runtime platform (e.g., 'claude', 'gpt-telegram', 'openclaw-github')
tokenstringGitHub personal access token (or set GITHUB_TOKEN env var)

send_message Send Agent Message

Send a signed message to another agent. Message is written to comms/to-{agent}.json.

ParameterTypeDescription
message *stringMessage body
subject *stringMessage subject
to *stringRecipient agent name (e.g., 'aeoess', 'portalx2', 'claude')
dataobjectStructured data payload
prioritystringPriority: low, normal, high, critical
typestringMessage type (default: 'message')

check_messages Check Agent Messages

Check messages addressed to you. Reads from comms/to-{your-agent-name}.json.

ParameterTypeDescription
mark_readbooleanMark returned messages as processed (default: false)
unprocessed_onlybooleanOnly show unprocessed messages (default: true)

broadcast Broadcast Agent Message

Send a signed message to all agents via comms/broadcast.json.

ParameterTypeDescription
message *stringMessage body
subject *stringMessage subject
dataobjectStructured data payload
prioritystringPriority: low, normal, high, critical
typestringMessage type (default: 'broadcast')

list_agents List Registered Agents

List registered agents from the agent registry (agora/agents.json).

ParameterTypeDescription
status_filterstringFilter by status: active, pending, retired (default: all)

load_values_floor Load Values Floor

Load a Values Floor from YAML. Sets the floor principles for policy evaluation.

ParameterTypeDescription
yaml *stringValues Floor YAML content

attest_to_floor Attest to Values Floor

Attest that your agent agrees to abide by the loaded Values Floor.

ParameterTypeDescription
floor_version *stringVersion of the floor to attest to
extensionsarrayOptional additional extensions

create_intent Create Action Intent

Declare an intent to perform an action. First step of the 3-signature chain.

ParameterTypeDescription
action_type *stringWhat type of action (e.g. 'web_search', 'commerce:checkout')
delegation_id *stringDelegation ID authorizing this action
scope_required *stringWhich delegation scope is needed
target *stringWhat the action operates on
contextstringWhy the agent wants to do this
spend_amountnumberExpected spend amount
spend_currencystringSpend currency (e.g. 'usd')

evaluate_intent Evaluate Action Intent

[OPERATOR] Evaluate an intent against the Values Floor policy engine. Returns real pass/fail verdict.

ParameterTypeDescription
delegation_scope *arrayDelegation scope for context
delegation_spend_limit *numberDelegation spend limit
intent_id *stringIntent ID from create_intent
delegation_spentnumberAmount already spent

commerce_preflight Commerce Preflight (Moved to Gateway)

[moved to gateway in SDK 3.3.0] The 6-gate commerce preflight orchestration moved out of the SDK and MCP into the AEOESS gateway. This tool no longer runs the pipeline locally. It returns a machine-readable deprecation notice pointing to the gateway commerce endpoint. Compose the pure gate predicates from the SDK yourself, or call the gateway.

ParameterTypeDescription
agent_id *stringAgent making the purchase
amount *numberPurchase amount
delegation_id *stringCommerce delegation ID
merchant_name *stringMerchant to purchase from
currencystringCurrency code

get_commerce_spend Get Commerce Spend

Get spend analytics for a commerce delegation.

ParameterTypeDescription
agent_id *stringAgent ID
delegation_id *stringCommerce delegation ID
spend_limit *numberTotal allowed spend

request_human_approval Build Human Approval Request

Create an approval request record for a high-value purchase without notifying a human or storing the request. Returns the request ID and expiry.

ParameterTypeDescription
agent_id *stringAgent requesting approval
amount *numberPurchase amount
merchant *stringMerchant name
reason *stringWhy this purchase is needed
currencystringCurrency
expires_minutesnumberMinutes until approval expires

create_agent_context Create Agent Context (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Create an enforcement context that automatically runs every action through the 3-signature policy chain.

ParameterTypeDescription
mission *stringAgent mission statement
name *stringAgent name
delegated_scopesarrayScopes to delegate
enforcementstringEnforcement level
spend_limitnumberMaximum spend allowed

execute_with_context Execute with Context (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Execute an action through the enforcement context.

ParameterTypeDescription
action_type *stringAction type (e.g. 'api:fetch', 'data:write', 'commerce:checkout')
scope *stringRequired scope for this action (must match a delegated scope)
target *stringTarget of the action (e.g. URL, file path, resource ID)
estimated_spendnumberEstimated spend for commerce actions

complete_action Complete Action (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Complete a permitted action and get the full 3-signature proof chain.

ParameterTypeDescription
intent_id *stringIntent ID from execute_with_context result
status *stringOutcome of the action
summary *stringBrief description of what was accomplished

create_principal Create Principal Identity

Create a principal identity (human or org behind agents) with its own Ed25519 keypair, held in this process as the session principal with a new fleet. Returns the full public key, and the full private key once on a local (stdio) server. On a remote server (MCP_TRANSPORT=sse or MCP_REMOTE=1) the private key is redacted, as in generate_keys. If a principal already exists in this process the call is refused unless replace=true, because replacing discards the current principal's private key and fleet from this process.

ParameterTypeDescription
display_name *stringHuman-readable name (e.g. 'Tima', 'Acme Corp')
contact_channelstringContact method (e.g. 'telegram:@aeoess')
disclosure_levelstringHow much identity to reveal
domainstringVerifiable domain (e.g. 'aeoess.com')
jurisdictionstringLegal jurisdiction (e.g. 'US', 'EU')
replacebooleanReplace an existing principal. Discards the current principal's private key and fleet from this process, so save the key first.

endorse_agent Endorse Agent

Endorse an agent as a principal. Creates a cryptographic chain: principal → agent.

ParameterTypeDescription
agent_id *stringAgent ID to endorse
agent_public_key *stringAgent's Ed25519 public key
relationship *stringHow principal relates to agent
scope *arrayWhat the agent can do on principal's behalf
expires_in_daysnumberDays until endorsement expires

verify_endorsement Verify Endorsement

Check an endorsement's signature against the principalPublicKey the endorsement itself carries. What a valid result establishes: the endorsement is intact and signed by that key. What it does not establish: that the key belongs to the principal it names, which needs a trust anchor you supply out of band.

ParameterTypeDescription
endorsement_id *stringEndorsement ID to verify

revoke_endorsement Revoke Endorsement

Revoke a principal's endorsement of an agent. 'I no longer authorize this agent.'

ParameterTypeDescription
endorsement_id *stringEndorsement ID to revoke
reason *stringWhy the endorsement is being revoked

create_disclosure Create Principal Disclosure

Create a selective disclosure of principal identity. Controls how much info is revealed.

ParameterTypeDescription
level *stringDisclosure level: public (everything), verified-only (id+key+domain), minimal (hash+DID only)

get_fleet_status Get Fleet Status

Get status of all agents endorsed by the current principal.

resolve_authority Resolve Authority Tier

Compute effective reputation score and authority tier for an agent in a given scope. Returns tier name, autonomy level, spend limit, and effective score.

ParameterTypeDescription
agentId *stringAgent ID to check
principalId *stringPrincipal who delegated authority
scope *stringScope to check reputation in (e.g. 'code_execution', 'commerce')

check_tier Check Tier Permits Action

Check if an agent's earned tier permits an action at a given autonomy level and spend amount. Returns null if permitted, or escalation details if tier is insufficient.

ParameterTypeDescription
agentId *stringAgent ID
principalId *stringPrincipal ID
scope *stringReputation scope
requestedAutonomynumberRequested autonomy level (1-5)
requestedDepthnumberRequested delegation depth
requestedSpendnumberRequested spend amount in dollars

review_promotion Review Agent Promotion (Unavailable)

Unavailable with SDK 8. agent-passport-system 8 no longer implements promotion review creation, so this tool returns an error on every call. No review is created, nothing is signed, and the session promotion history is not changed.

ParameterTypeDescription
agentId *stringAgent being reviewed for promotion
principalId *stringPrincipal who delegated to the agent
reasoning *stringExplanation for the verdict
scope *stringScope of the promotion
toTier *numberTarget tier level (0-4)
verdict *stringPromotion verdict
probationDaysnumberProbation period in days (default: 7)

update_reputation Update Agent Reputation

Update an agent's reputation after a task result. Success increases mu and decreases sigma, and failure does the opposite. Higher evidence class = larger effect.

ParameterTypeDescription
agentId *stringAgent whose reputation to update
evidenceClass *stringComplexity of the task
principalId *stringPrincipal ID
scope *stringReputation scope
success *booleanWhether the task succeeded

get_promotion_history Get Promotion History

Get the promotion review history for this session.

create_gateway Create Gateway (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Create a ProxyGateway enforcement boundary.

ParameterTypeDescription
approvalTTLSecondsnumberTwo-phase approval timeout
gatewayIdstringCustom gateway ID
maxPendingPerAgentnumberMax pending approvals per agent

gateway_process_tool_call Gateway Process Tool Call (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Process a tool call through the gateway enforcement boundary.

ParameterTypeDescription
agentId *string
scopeRequired *string
tool *string
contextstring
paramsobject
spendAmountnumber
spendCurrencystring

gateway_approve Gateway Approve (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Two-phase execution: approve a tool call without executing it.

ParameterTypeDescription
agentId *string
scopeRequired *string
tool *string
contextstring
paramsobject

gateway_stats Gateway Stats (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Get gateway statistics.

search_matches Search Intent Network Matches

Search the Intent Network for people relevant to you. Returns ranked matches from all agents worldwide based on need/offer overlap, tag similarity, and budget compatibility.

ParameterTypeDescription
category_filterstringOnly match within this category
max_resultsnumberMaximum results to return (default: 10)
min_scorenumberMinimum relevance score 0-1 (default: 0.1)

get_digest Get Intent Network Digest

Get a personalized digest from the Intent Network: relevant matches, pending intro requests, and incoming intros. It answers 'what matters to me right now?'

request_intro Request Introduction

Request an introduction to another agent's human based on a match. Both sides must approve before real information crosses.

ParameterTypeDescription
match_id *stringMatch ID from search_matches
message *stringBrief message explaining why this intro would be valuable
target_card_id *stringCard ID of the agent you want an intro to
disclose_fieldsarrayFields you're willing to share (e.g. ['needs', 'offers', 'openTo'])

respond_to_intro Respond to Introduction

Respond to an introduction request. Approve to share your disclosed information, or decline.

ParameterTypeDescription
approved *booleanWhether to approve the introduction
intro_id *stringIntro request ID
disclose_fieldsarrayFields you're willing to share back
messagestringOptional response message

remove_intent_card Remove Intent Card

Remove your IntentCard from the Intent Network. Use when your needs or offers have changed.

ParameterTypeDescription
card_id *stringCard ID to remove

create_policy_context Create Policy Context

Create a v2 PolicyContext with mandatory sunset. Every v2 object requires one.

ParameterTypeDescription
valid_until *stringISO 8601 expiration (mandatory, max 180 days)
policy_versionstring
trust_epochnumber
values_floor_versionstring

create_v2_delegation Create v2 Delegation

Create a v2 delegation with versioning, mandatory sunset, and PolicyContext binding.

ParameterTypeDescription
delegatee *stringPublic key of the agent receiving authority
scope_categories *arrayAction categories (e.g., ['analysis', 'communication'])
valid_until *stringISO 8601 expiration
trust_epochnumber

supersede_v2_delegation Supersede v2 Delegation

Supersede a v2 delegation. Scope narrowing needs justification. Scope expansion also needs independent reviewer.

ParameterTypeDescription
justification *string
new_scope_categories *array
original_delegation_id *string
valid_until *string
expansion_reviewerstringRequired if scope expands
expansion_reviewer_private_keystring
trust_epochnumber

create_outcome_record Create Outcome Record

Register an action outcome (agent perspective). Part of three-way reporting.

ParameterTypeDescription
action_id *string
declared_intent *string
divergence_score *number
observed_outcome *string
outcome_class *string
semantic_uncertainty *string
valid_until *string
trust_epochnumber

add_principal_report Add Principal Outcome Report

Add principal's perspective to an outcome record. Enables three-way divergence reporting.

ParameterTypeDescription
divergence_score *number
observed_outcome *string
outcome_class *string
outcome_id *string

define_emergency_pathway Define Emergency Pathway

Define a pre-authorized emergency pathway at delegation time. Only the delegator can define these.

ParameterTypeDescription
delegation_ref *string
description *string
expanded_scope_categories *array
review_authority *string
trigger_field *string
trigger_operator *string
trigger_value *string | number | boolean
valid_until *string
max_durationstring
review_deadlinestring
trust_epochnumber

activate_emergency Activate Emergency Pathway

Activate a pre-authorized emergency pathway with evidence.

ParameterTypeDescription
pathway_id *string
trigger_evidence *stringEvidence that trigger conditions are met
valid_until *string
trust_epochnumber

create_artifact_provenance Create Artifact Provenance

Tag an agent-generated artifact with provenance metadata (content hash, risk class, authoring agent).

ParameterTypeDescription
artifact_type *stringe.g. email_draft, code_script, database_query
content *stringThe artifact content (used for hash, not stored)
delegation_ref *string
intended_use *string
risk_class *string
valid_until *string
requires_human_executionboolean
trust_epochnumber

register_data_source Register Data Source

Register a data source with terms for agent access. Returns a signed SourceReceipt.

ParameterTypeDescription
allowedPurposes *arrayAllowed purposes: read, analyze, summarize, generate, recommend, train, embed, redistribute, commercial
contentCommitment *stringSHA-256 hash of the data content
contentDescriptor *stringHuman-readable description of the data
contentType *stringType of data
compensationAmountnumberAmount per access (for per_access type)
compensationCurrencystring
compensationTypestring
derivativePolicystring
maxAccessCountnumberMax total accesses allowed
requireAttributionboolean

create_data_enforcement_gate Create Data Enforcement Gate (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Create a data enforcement gate that checks terms before allowing data access.

ParameterTypeDescription
modestringEnforcement mode

query_contributions Query Contributions (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Query the data contribution ledger.

ParameterTypeDescription
agentIdstring
minAccessCountnumber
principalIdstring
purposestring
sourceReceiptIdstring

generate_settlement Generate Settlement (Deprecated)

[deprecated in v3.0.0, use the gateway.aeoess.com REST API] Generate a Merkle-committed, signed settlement record for a period.

ParameterTypeDescription
endDate *stringPeriod end (YYYY-MM-DD)
periodLabel *stringLabel (e.g. '2026-Q1', '2026-03')
startDate *stringPeriod start (YYYY-MM-DD)

create_derivation_receipt Create Derivation Receipt

Create a signed derivation receipt tracking how data was transformed. Multi-hop lineage with break markers. Replaces any receipt already stored under the same derivativeId.

ParameterTypeDescription
derivativeId *stringUnique ID for the derivative artifact
derivativeType *stringType: rag_chunk, embedding, summary, model_weights, synthetic_derivative, etc.
lineageConfidence *string
parentArtifacts *arrayParent artifacts this was derived from
transformClass *stringTransform type: copy, subset, summary, embedding, aggregation, synthetic, model_training
breakReasonstring
externalBoundaryBreakbooleanTrue if data left the system and returned
isSyntheticDerivativeboolean
upstreamObligationsRetainedboolean

resolve_lineage Resolve Data Lineage

Resolve the full derivation chain for an artifact. Multi-hop with cycle detection.

ParameterTypeDescription
derivativeId *stringID of the derivative to trace
maxDepthnumberMax chain depth (default: 10)

evaluate_revocation_impact Evaluate Revocation Impact

Evaluate what happens when a data source revokes consent. Propagates obligations through derivation chains.

ParameterTypeDescription
sourceId *stringSource ID that is revoking consent

create_decision_lineage_receipt Create Decision Lineage Receipt

Create a Decision Lineage Receipt that traces which data sources influenced a decision. Right-to-explanation primitive.

ParameterTypeDescription
contributingSources *array
decisionArtifactId *string
decisionType *stringE.g. loan_approval, content_moderation, risk_assessment
lineageCompleteness *string
explanationstring
governingPurposestring
transformChainarray

check_purpose_permitted Check Purpose Permitted

Check if a purpose is permitted under source terms. Supports wildcards (research:*) and hierarchical matching.

ParameterTypeDescription
allowedPurposes *arrayPurposes allowed by the source terms
purpose *stringPurpose to check (e.g. research:academic, training:model)

check_retention_expired Check Retention Expired

Check if data retention has expired based on TTL policy.

ParameterTypeDescription
accessedAt *stringISO timestamp of when data was accessed
maxRetentionMs *number | nullMax retention in ms (null = no limit)
accessTypestring

check_aggregate_constraints Check Aggregate Constraints

Check if a data access would violate aggregate rate limits.

ParameterTypeDescription
agentId *string
currentAccessCount *number
currentRecordCount *number
lastAccessMs *number
sourceId *string
windowStartMs *number
burstLimitnumber
maxAccessesPerWindownumber
windowMsnumber

check_jurisdiction_transfer Check Jurisdiction Transfer

Check if a data transfer is permitted under jurisdiction constraints (EU_ONLY, GDPR_ADEQUATE_ONLY, NO_CROSS_BORDER).

ParameterTypeDescription
purpose *string
sourceJurisdiction *stringISO 3166-1 alpha-2 code
targetJurisdiction *stringISO 3166-1 alpha-2 code
processingRestrictionsarray
transferConstraintsarray

compute_governance_taint Compute Governance Taint

Compute governance taint level for an artifact based on its derivation chain and revoked sources.

ParameterTypeDescription
artifactId *string
revokedSourcesarraySource IDs that have been revoked

file_data_dispute Build Data Dispute Record

Create a signed dispute record against a data artifact without submitting, storing, or sending it. Resolution happens outside the protocol.

ParameterTypeDescription
artifactId *string
disputeType *string
evidence *arrayEvidence artifact IDs
filedBy *string

check_combination_permitted Check Data Combination Permitted

Check if combining data from two sources is permitted. Prevents prohibited inferences (HIPAA, COPPA, GDPR Art 9).

ParameterTypeDescription
otherSourceId *string
reason *string
forbiddenSourceClassesarray
forbiddenSourceIdsarray
otherSourceClassesarray
regulatoryBasisstring

create_access_snapshot Create Access Snapshot

Create a signed access snapshot that pins terms, jurisdiction, and constraints at the moment of access, so a later change to the source terms does not alter what the snapshot records.

ParameterTypeDescription
accessReceiptId *string
allowedPurposes *array
compensationRate *number
currency *string
sourceId *string
termsVersion *string
sourceJurisdictionstring

detect_purpose_drift Detect Purpose Drift

Detect when data purpose drifts through a workflow (e.g. research → commercial).

ParameterTypeDescription
allowedPurposes *array
currentPurpose *string
originalPurpose *string
intermediateStepsarray

resolve_rights_propagation Resolve Rights Propagation

Resolve what rights propagate when data is transformed.

ParameterTypeDescription
transformClass *string
sourceDefaultPropagationstringSource-defined default: inherit_full, compensation_only, etc.

declare_reidentification_risk Declare Re-identification Risk

Declare re-identification risk for transformed or synthetic data.

ParameterTypeDescription
assessedBy *string
risk *string
assessmentMethodstring
mitigationsAppliedarray

generate_governance_block Generate Governance Block

Generate a cryptographically signed governance block for embedding in HTML pages. Includes terms, revocation policy, and content hash.

ParameterTypeDescription
content *stringArticle/page content to hash and govern
privateKey *stringPublisher's Ed25519 private key (hex)
publicKey *stringPublisher's Ed25519 public key (hex)
cachingstring
derivativestring
inferencestring
license_urlstring
redistributionstring
terms_versionstring
trainingstring

verify_governance_block Verify Governance Block

Verify a governance block's signature, content hash, DID consistency and expiry against the original content. A block whose expiry cannot be read now fails closed rather than being treated as unexpired.

ParameterTypeDescription
block *stringGovernance block JSON string
content *stringOriginal content to verify against
publicKey *stringPublisher's Ed25519 public key (hex)

parse_governance_block_html Parse Governance Block from HTML

Extract a governance block from an HTML page. Looks for APS governance script tags or meta tags.

ParameterTypeDescription
html *stringHTML content to parse

check_usage_permitted Check Usage Permitted

Check if a specific usage type is permitted under a governance block's terms.

ParameterTypeDescription
block *stringGovernance block JSON string
usage *string

generate_aps_txt Generate aps.txt

Generate a signed aps.txt file for site-wide governance. Like robots.txt but cryptographically signed with terms, revocation endpoint, and MCP upgrade path.

ParameterTypeDescription
domain *stringDomain this declaration covers (e.g. theagenttimes.com)
privateKey *stringPublisher's Ed25519 private key (hex)
publicKey *stringPublisher's Ed25519 public key (hex)
publisherName *stringHuman-readable publisher name
inferencestring
mcpEndpointstring
redistributionstring
revocationEndpointstring
trainingstring

verify_aps_txt Verify aps.txt

Verify a signed aps.txt file by checking its signature and DID consistency.

ParameterTypeDescription
content *stringaps.txt JSON content
publicKey *stringPublisher's Ed25519 public key (hex)

resolve_path_terms Resolve Path Terms

Resolve governance terms for a specific URL path using aps.txt path overrides.

ParameterTypeDescription
apsTxt *stringaps.txt JSON content
path *stringURL path to resolve (e.g. /blog/my-article)

create_chained_governance_block Create Chained Governance Block

Create a governance block for derivative content that references the original publisher's block. Preserves the chain of provenance.

ParameterTypeDescription
content *stringDerivative content
derivationType *stringType: summary, embedding, rag_chunk, translation, etc.
parentBlock *stringOriginal governance block JSON string
privateKey *stringDerivative agent's Ed25519 private key (hex)
publicKey *stringDerivative agent's Ed25519 public key (hex)
inferencestring
trainingstring

governance_360 Run Governance 360 Loop

Execute the full governance 360 loop on HTML content: extract governance block → verify signature + content hash → check usage terms → create signed access receipt. This is what an agent calls on every page it reads.

ParameterTypeDescription
agentPrivateKey *stringYour agent's Ed25519 private key (hex)
agentPublicKey *stringYour agent's Ed25519 public key (hex)
contentBody *stringArticle text content (for hash verification)
html *stringFull HTML of the page
intendedUsage *string
publisherPublicKey *stringPublisher's Ed25519 public key (hex)
sourceUrl *stringURL of the page

create_access_receipt Create Access Receipt

Create a signed receipt recording the supplied content reference and terms, after verifying the governance block against the content and the publisher's key. If the block does not verify, the tool refuses and signs nothing. The receipt captures the block's terms and revocation policy at access time. The tool signs the receipt with agentPrivateKey but returns only a text summary (receipt ID, agent DID, publisher DID, intended usage, governance block status, training term, cached-copy revocation policy). The full signed receipt, including its signature, is not returned. A verified block is not p…

ParameterTypeDescription
agentPrivateKey *stringYour agent's Ed25519 private key (hex)
agentPublicKey *stringYour agent's Ed25519 public key (hex)
block *stringGovernance block JSON string
content *stringContent the governance block covers, used to verify its content hash
intendedUsage *stringHow you intend to use this content
publisherPublicKey *stringPublisher's Ed25519 public key (hex), used to verify the block signature
sourceUrl *stringURL where content was accessed

create_charter Create Charter

Create a new institutional charter, the constitutional root of an organization. Defines offices, amendment rules, and dissolution policy.

ParameterTypeDescription
amendment_board_keys *arrayEd25519 public keys eligible for amendment voting
amendment_required_sigs *numberSignatures required for amendment
founder_private_key *stringFounder's Ed25519 private key
founder_public_key *stringFounder's Ed25519 public key
name *stringInstitution name
offices *arrayOffices to create
dissolution_grace_secondsnumber
founder_rolestring

verify_charter Verify Charter

Verify a charter's integrity: content hash, signatures, quorum, dissolution, office consistency, incompatibility, and, when the charter declares citations, the AttributionConsent gate over the receipts you supply. What a valid result establishes: the charter is intact and signed by the keys it names, and any citation it declares is backed by a receipt the cited principal consented to. What it does not establish: that those signers hold the authority your decision needs. A charter declaring citations cannot be valid without attribution_receipts, and fails closed with 'citations present but no r…

ParameterTypeDescription
charter_id *stringCharter ID to verify
attribution_receiptsarraySigned AttributionReceipts backing the charter's citations. Required for a charter that declares any; each receipt's parties must be named by self-certifying DIDs.

sign_charter Sign Charter

Add a founding signature to a charter.

ParameterTypeDescription
charter_id *string
resigner_private_key *stringKey to re-sign the outer charter envelope
signer_private_key *string
signer_public_key *string
signer_rolestring

propose_amendment Propose Charter Amendment

Propose an amendment to a charter. Supplies a full replacement CharterCore, not a patch. The SDK derives the signing preimage and produces the proposer signature. Session state is not an authoritative registry: amendments live only in this process, are lost on restart, and carry no external trust.

ParameterTypeDescription
charter_id *stringCharter being amended
description *stringHuman-readable description of the change
proposed_charter *objectFull CharterCore replacement, not a patch
proposer_private_key *string
proposer_public_key *string
effective_atstringISO 8601, when the amendment takes effect if approved

sign_amendment Sign Charter Amendment

Add a signature to a proposed amendment. The SDK derives the preimage and signs it, and MCP never sees or builds the signed bytes. Session state is not an authoritative registry: amendments live only in this process, are lost on restart, and carry no external trust.

ParameterTypeDescription
amendment_id *string
signer_private_key *string
signer_public_key *string
signer_role *stringThe key class the charter's amendment policy counts this signature against

verify_amendment Verify Charter Amendment

Verify an amendment against its charter's amendment policy. Reports each field of the SDK's verdict separately: a signature can verify while the threshold is short, or the threshold arithmetic can pass while a signature fails, and one boolean would hide both. Session state is not an authoritative registry: amendments live only in this process, are lost on restart, and carry no external trust. The proposed charter's citations are NOT checked here: verifyAmendment calls verifyCharter without receipts and then keeps only its office and incompatibility findings, so a citation refusal is computed a…

ParameterTypeDescription
amendment_id *string
charter_id *string

create_approval_request Create Approval Request

Create a multi-party approval request for charter amendments, office transfers, etc.

ParameterTypeDescription
policy_id *string
requested_by *string
subject *stringWhat is being approved (e.g. amendment ID)
subject_type *string
timeout_secondsnumber

add_approval_signature Add Approval Signature

Add a signature to an approval request.

ParameterTypeDescription
request_id *string
signer_private_key *string
signer_public_key *string
key_classstring
office_idstring

create_hybrid_timestamp Create Hybrid Timestamp

Create a hybrid timestamp using the local clock and a supplied uncertainty bound.

ParameterTypeDescription
gateway_id *stringGateway issuing the timestamp
drift_msnumberNTP drift bound in milliseconds

compare_timestamps Compare Hybrid Timestamps

Compare two hybrid timestamps to determine ordering.

ParameterTypeDescription
a *object
b *object

validate_temporal_rights Validate Temporal Rights

Validate a TemporalRights object by checking its validity window, grace period, supersession, and challenge window.

ParameterTypeDescription
valid_from *stringISO datetime
valid_until *stringISO datetime
challenge_untilstring
effective_atstring
grace_untilstring
superseded_atstring

create_reserve_attestation Create Reserve Attestation

Sign a reserve attestation using the supplied amount and assurance class. The tool does not check that the funds exist.

ParameterTypeDescription
amount *number
assurance_class *string
attestation_basis *string
attester_private_key *string
attester_public_key *string
delegation_id *string
charter_anchorstring
currencystring
false_attestation_penaltystring
office_idstring
ttl_secondsnumber

vouch_reputation Vouch Reputation

Create a signed reputation summary that another gateway can import. Receipt history is not included.

ParameterTypeDescription
agent_id *string
diversity_score *number
gateway_id *string
gateway_private_key *string
tier *number
ttl_secondsnumberDefault 30 days

apply_reputation_downgrade Apply Reputation Downgrade

Apply import policy downgrade to a foreign vouched reputation.

ParameterTypeDescription
accept_from *arrayGateway IDs accepted by import policy
agent_id *string
attested_diversity_score *number
attested_tier *number
origin_gateway_id *string
downgrade_rationumber
foreign_default_tiernumber

compute_action_ref Compute Action Reference

Compute content-addressed request identity (SHA-256 of agentId + actionType + scope + normalized timestamp). Two receipts with the same action_ref describe the same request.

ParameterTypeDescription
action_type *string
agent_id *string
scope_required *array
timestampstringRFC 3339 timestamp carrying an explicit offset or Z; defaults to now. A zone-less value is refused, because it names no instant and would produce a different action_ref on every machine.

is_evidence_fresh Check Evidence Freshness

Check whether typed attestation evidence is still fresh. Rotating evidence requires a ttl, snapshot evidence takes an optional maxAge, and static evidence is always fresh.

ParameterTypeDescription
type *string
valid_at *stringISO 8601 timestamp evidence was produced
max_agenumberSeconds (optional for snapshot)
nowstringISO 8601 override for current time
ttlnumberSeconds (required for rotating)

classify_evidence_quality Classify Evidence Quality

Classify attestation evidence quality (none / issuer_vouched / infrastructure / principal_bound) and return the corresponding grade (0-3).

ParameterTypeDescription
evidenceobjectEvidence object (checked for known infrastructure keys)
has_issuer_signatureboolean
has_principal_bindingboolean
methodstringAttestation method (e.g. 'spiffe')

rotate_key Rotate Agent Key

Rotate an agent's Ed25519 key. Planned mode: configurable overlap (default 24h). Emergency mode: immediate old-key retirement. Builds a rotated DID document for the old key, generates a new key pair, and returns a text summary with the rotation state, the first 16 hex characters of the old and new public keys, the full new private key (redacted on a remote server, MCP_TRANSPORT=sse or MCP_REMOTE=1, as in generate_keys), the DID, the rotation log entry count, and the activation time. The DID document itself is not returned, and nothing is persisted. Delegation revocation is not integrated in th…

ParameterTypeDescription
mode *string
old_private_key *stringHex-encoded private key being rotated FROM
activation_delay_hoursnumberPlanned mode overlap hours (default: 24)
agent_namestringAgent name for the passport (default: current session)
delegation_ids_to_revokearrayMust be empty or absent. Delegation revocation is not integrated in this server, so a non-empty list is refused and nothing is rotated.

verify_rotation_chain Verify Key Rotation Chain

Verify all rotation signatures in a DID document's rotation log. Returns true if the full chain is cryptographically valid.

ParameterTypeDescription
did_document *RotatableDIDDocument JSON object with rotationLog

is_key_active Check Key Is Active

Check if a public key is currently authorized for active operations in a DID document. SDK convenience check. Gateway enforcement is authoritative.

ParameterTypeDescription
did_document *RotatableDIDDocument JSON object
public_key *stringHex-encoded Ed25519 public key to check

aps_create_attribution_receipt Create Attribution Receipt

Representation boundary: build a citer-signed AttributionReceipt attributing a claim to a third-party principal. Each party is named by a self-certifying DID that commits to the key beside it, so a receipt naming a party by a bare public key or by a did:web style identifier will not verify. The receipt is not yet valid: the cited principal must sign consent via aps_sign_attribution_consent before checkArtifactCitations accepts it.

ParameterTypeDescription
binding_context *stringID of the binding artifact this citation is scoped to
citation_content *stringThe quoted or paraphrased claim
cited_principal *stringSelf-certifying DID of the cited principal, from the SDK createDID (multibase did:aps). It must commit to cited_principal_public_key.
cited_principal_public_key *stringHex public key of cited principal
citer *stringSelf-certifying DID of the citing agent, from the SDK createDID (multibase did:aps). A bare public key or the hex did:aps form from createDIDHex does not self-certify and will not verify.
citer_private_key *stringHex private key of citer
citer_public_key *stringHex public key of citer
gateway_idstringGateway id for timestamping (default: 'mcp')
ttl_msnumberReceipt TTL in ms (default: 24h)

aps_check_artifact_citations Check Artifact Citations

Representation boundary: gate a binding artifact's citations. Each citation must resolve to a provided, signed, unexpired receipt whose content + principal match, with per-artifact replay protection, and each receipt must bind its parties to the keys beside them. What a valid result establishes: every citation is backed by a receipt the cited principal consented to. What it does not establish: authority to act on the artifact. Receipts whose parties are named by identifiers that do not self-certify stop passing this gate.

ParameterTypeDescription
artifact *CitingArtifact with optional citations[] array
receipts *arrayAttributionReceipts backing each citation
binding_contextstringRequire receipts to be scoped to this binding context

aps_attribution_receipt_id Compute Attribution Receipt ID

Representation boundary helper: compute the canonical sha256 id of an AttributionReceipt's unsigned core. Verifiers use this to detect id tampering.

ParameterTypeDescription
receipt *AttributionReceipt JSON (signatures ignored)

aps_create_provisional Create Provisional Statement

Commitment boundary: emit a provisional statement for agent-to-agent negotiation. Default is non-binding until a PromotionEvent satisfies a PromotionPolicy. Dead-man expiry auto-withdraws.

ParameterTypeDescription
author *stringAgentDID/public key of the emitting agent
author_principal *stringPrincipalDID behind the author
author_private_key *stringHex private key of author for signing
content *stringStatement content (offer, position, claim)
dead_man_msnumberDead-man expiry relative to now (ms). If elapsed without promotion/withdrawal, statement auto-withdraws.
gateway_idstringGateway id for timestamping (default: 'mcp')

aps_promote_statement Promote Provisional Statement

Commitment boundary: promote a provisional statement to binding by attaching a PromotionEvent that satisfies the PromotionPolicy (m-of-n principal signatures). dead_man_elapsed cannot promote, because the dead-man path auto-withdraws the statement.

ParameterTypeDescription
policy *PromotionPolicy {id, required_signers, threshold, max_time_to_promote}
promotion_event *PromotionEvent with kind, promoted_at, promoter, promoter_signature, policy_reference
statement *ProvisionalStatement from aps_create_provisional

aps_verify_promotion Verify Statement Promotion

Commitment boundary: verify that a promoted statement's PromotionEvent cryptographically satisfies the PromotionPolicy (policy_reference match, promoter in required_signers, threshold, signature, max_time_to_promote, author-signature tamper check).

ParameterTypeDescription
policy *PromotionPolicy to check against
statement *Promoted ProvisionalStatement

aps_withdraw_provisional Withdraw Provisional Statement

Commitment boundary: author withdraws their own provisional statement. Already-promoted statements cannot be withdrawn. Caller must supply the author's signature over the withdrawal payload (canonicalize({action:'withdraw', statement_id})).

ParameterTypeDescription
statement *ProvisionalStatement to withdraw
author_private_keystringIf provided, tool signs the withdrawal payload with this key.
author_signaturestringHex Ed25519 signature. If omitted, provide author_private_key and the tool will sign for you.

aps_check_escalation_required Check Escalation Required

Escalation boundary: check whether an action on a v2 delegation requires owner confirmation before execution. Returns {required, requirement?, reason?}. Use aps_record_owner_confirmation to clear the flag when required.

ParameterTypeDescription
action_class *stringAction class (e.g. 'org_creation', 'spend_above_threshold')
delegation *V2Delegation with optional scope.escalation_requirements
action_detailsStructured details; hashed for audit
session_idstringSession id (required for per_session scope)

aps_record_owner_confirmation Record Owner Confirmation

Escalation boundary: owner signs an OwnerConfirmation authorizing a flagged action. Builds the ConfirmationRequest and signs it in a single call. The confirmation is bound to action_details via hash and scoped (per_action / per_session / time_window).

ParameterTypeDescription
action_class *stringAction class being confirmed
action_details *Structured action details — hashed and bound to the confirmation
delegation *V2Delegation with escalation_requirements for this action class
owner_private_key *stringHex private key of the delegation's owner (delegator)
session_idstringSession id (required for per_session scope)

aps_construct_attribution_primitive Construct Attribution Primitive

Build and sign a four-axis AttributionPrimitive for an action. Axes: D (data sources), P (protocol modules), G (delegation chain), C (compute providers). Returns the complete signed object.

ParameterTypeDescription
action *objectAction identity tuple; the action_ref is derived as sha256(canonical(this))
axes *objectFour-axis content. See spec §1.2 for entry shapes per axis.
issuer *stringIssuer DID (gateway or agent producing the receipt)
issuer_private_key *stringEd25519 private key hex that signs the envelope
timestampstringISO-8601 UTC with ms precision + Z (§2.5). Defaults to now().

aps_project_attribution Project Attribution Axis

Extract a single-axis projection from an AttributionPrimitive. The projection carries the axis content plus a two-hop Merkle path that lets a downstream verifier reconstruct the signed root without seeing the other three axes. axis: 'D' | 'P' | 'G' | 'C'.

ParameterTypeDescription
axis *stringAxis to project
primitive *An AttributionPrimitive (from aps_construct_attribution_primitive)

aps_verify_attribution_projection Verify Attribution Projection

Verify a single-axis AttributionProjection under the issuer's Ed25519 public key. Returns {valid: true} or {valid: false, reason: 'INVALID_AXIS_TAG'|'MERKLE_MISMATCH'|'SIGNATURE_INVALID'|'MALFORMED'}. Verification is purely local and needs no other axes.

ParameterTypeDescription
issuer_public_key *stringIssuer Ed25519 public key hex
projection *An AttributionProjection (from aps_project_attribution)

aps_verify_attribution_primitive Verify Attribution Primitive

End-to-end verify of a full AttributionPrimitive: constructs projections for all four axes and verifies each one. Useful as a post-construction sanity check or for verifying a primitive received from a peer.

ParameterTypeDescription
issuer_public_key *stringIssuer Ed25519 public key hex
primitive *An AttributionPrimitive

aps_check_projection_consistency Check Projection Consistency

Cross-projection consistency check: given two projections, confirm they originate from the same signed receipt. Returns {same_receipt: true} or {same_receipt: false, reason: 'DIFFERENT_ACTIONS'|'DIFFERENT_RECEIPTS'|'DIFFERENT_SIGNATURES'|'METADATA_MISMATCH'}.

ParameterTypeDescription
projection_a *First AttributionProjection
projection_b *Second AttributionProjection

aps_compute_attribution_action_ref Compute Attribution Action Ref

Derive the action_ref (hex sha256) for an action tuple. action_ref is the content-addressed anchor that all four axis projections bind to. Useful for indexing primitives by action without constructing the full primitive.

ParameterTypeDescription
actionType *string
agentId *string
nonce *string
params *object

aps_compute_data_axis_weights Compute Data Axis Weights

Compute the D-axis fractional weight vector from a list of AccessReceipt records with role, timestamp, and content length. Returns canonical DataAxisEntry[] with 6-digit decimal contribution_weight strings that sum to ~1.0 and feed directly into aps_construct_attribution_primitive. Empty input returns an empty array, and all-zero raw weights return an error. Weights = role × recency_decay × length_weight, then normalized. Parameter names match the SDK: `sources`, `action_timestamp`, optional `profile`.

ParameterTypeDescription
action_timestamp *stringISO-8601 UTC ms when the action ran (t_action)
sources *arrayPer-source records with retrieval metadata
profileOptional WeightProfile override; defaults to DEFAULT_WEIGHT_PROFILE

aps_compute_compute_axis_weights Compute Compute Axis Weights

Compute the C-axis fractional weight vector from a list of inference billing records (prompt_tokens, completion_tokens). Returns canonical ComputeAxisEntry[] with 6-digit decimal compute_share strings that sum to ~1.0 and feed directly into aps_construct_attribution_primitive. Weights = prompt_tokens + completion_tokens × COMPLETION_MULTIPLIER (default 3.0), then normalized. Parameter names match the SDK: `providers`, optional `profile`.

ParameterTypeDescription
providers *arrayPer-provider billing records
profileOptional WeightProfile override; defaults to DEFAULT_WEIGHT_PROFILE

aps_aggregate_settlement Aggregate Settlement Record

Aggregate a batch of Attribution Primitives over a half-open settlement period [t0, t1) into a signed SettlementRecord. Each axis (D, P, G, C) produces a per-contributor total with a balanced-Merkle commitment. Residual buckets pool sub-threshold contributors. Output is a fully signed record ready for third-party verification.

ParameterTypeDescription
gateway_did *stringGateway DID that signs the record
gateway_private_key *stringEd25519 gateway private key (hex)
period *object
receipts *arrayArray of AttributionPrimitives to aggregate
issued_atstringOverride issued_at (canonical ISO-8601 UTC ms + Z); defaults to now

aps_verify_settlement Verify Settlement Record

Verify a signed SettlementRecord under S1-S5 (signature, Merkle roots, conservation, residual shape, optional input-receipts cross-check). S3 conservation is the strongest invariant: a gateway cannot inflate or suppress any contributor's share without breaking it. Returns {valid: true} or {valid: false, reason, detail}. Pass inputReceipts to also recompute input_receipts_hash.

ParameterTypeDescription
gateway_public_key *stringGateway Ed25519 public key hex
record *A signed SettlementRecord
input_receiptsarrayOptional — the input Attribution Primitives that fed the settlement. When supplied, S5 cross-checks input_receipts_hash and verifies each receipt individually.

aps_build_contributor_query Build Contributor Query Response

Build a contributor-query response: given a signed SettlementRecord and a contributor DID, return per-axis (total_weight, contribution_count, merkle_path, axis_root) plus the full signed record so a third party can verify the contributor's share end-to-end without trusting the gateway beyond its public key. Returns null if the contributor has no share in the period.

ParameterTypeDescription
contributor_did *stringContributor DID (data source, compute provider, governance signer, or protocol module identifier)
record *A signed SettlementRecord
gateway_jwksstringAdvisory JWKS URL; not part of the signed material

mutualAuthBuildCertificate Build Mutual-Auth Certificate

Build and sign a mutual-auth certificate identifying an agent or information system. Returns the signed MutualAuthCertificate object ready to carry into a handshake. The issuer's Ed25519 private key (hex) signs over the canonical (JCS) form.

ParameterTypeDescription
binding *stringFor an agent: the APS agent_id. For an IS: the resource domain (e.g., mcp://api.bank.com)
issuer_id *stringIssuer identifier
issuer_privkey_hex *stringEd25519 private key (hex) of the issuer — used to sign
issuer_pubkey_hex *stringEd25519 public key (hex) of the issuer
issuer_role *stringRole of the issuer
not_after *numberLatest valid time (unix ms)
not_before *numberEarliest valid time (unix ms)
role *stringRole of the subject this cert identifies
subject_id *stringStable subject identifier (e.g., agent DID, IS endpoint URL)
subject_pubkey_hex *stringEd25519 public key (hex) of the subject
supported_versions *arrayProtocol versions supported, highest first (e.g., ['1.0'])
attestation_gradeFor agents: APS attestation grade 0-3
capabilitiesarrayOptional capability tags

mutualAuthVerifyAttest Verify Mutual-Auth Attest

Verify a MutualAuthAttest against policy and trust anchors. Runs all 10 verification checks: signature, version negotiation, nonce match, timestamp freshness, certificate validity, issuer anchor check, binding constraints, downgrade detection, attestation grade policy, capability policy. Returns ok:true on success or a failure reason on rejection.

ParameterTypeDescription
attest *MutualAuthAttest to verify
expected_own_nonce_b64 *stringThe nonce we sent in our own prior hello or attest
expected_peer_nonce_b64 *stringThe nonce the peer sent in their prior hello or attest
policy *MutualAuthPolicy (accepted_versions, min_agent_grade, required_capabilities, max_clock_skew_ms, max_session_ms)
trust_anchors *arrayTrustAnchor[] — local trusted roots
now_msnumberCurrent unix ms — defaults to Date.now()
revoked_anchor_idsarrayIDs of anchors revoked since the bundle was issued

mutualAuthDeriveSession Derive Mutual-Auth Session

Derive the shared mutual-auth session record from both sides' Attests. Both parties MUST compute identical session_id given identical inputs (canonical JCS + sha256 of chosen_version, both cert ids, both nonces). Returns a MutualAuthSession with session_id + both certificates + expiry bounds, or failure reason.

ParameterTypeDescription
agent_attest *The agent's MutualAuthAttest
is_attest *The information system's MutualAuthAttest
policy *MutualAuthPolicy
now_msnumberCurrent unix ms — defaults to Date.now()

mutualAuthVerifyTrustBundle Verify Trust Anchor Bundle

Verify a TrustAnchorBundle signature and freshness. Caller supplies the list of trusted publisher public keys (root configuration). Returns ok:true on success or failure reason (untrusted_publisher, signature_invalid, bundle_expired, not_yet_valid).

ParameterTypeDescription
bundle *TrustAnchorBundle to verify
trusted_publisher_pubkeys_hex *arrayList of Ed25519 pubkeys (hex) authorized to publish bundles
now_msnumberCurrent unix ms — defaults to Date.now()

aps_capability_issue_challenge Issue Capability Sink Challenge

v0.1 capability-token sink challenge (M1). Sink issues a signed canonical action statement. Returns the SinkChallenge and its challenge_hash. Used to bind the gateway's later policy evaluation to a specific action the sink authored. Search keywords: capability token, sink challenge, M1.

ParameterTypeDescription
action *objectCanonical action statement
sink_id *stringDID of the sink issuing the challenge
sink_private_key *stringSink Ed25519 private key (hex)
sink_public_key *stringSink Ed25519 public key (hex)
subject_id *stringDID of the subject the challenge is addressed to
required_policy_freshnessobject
validity_secondsinteger

aps_capability_evaluate_authority Build Authority Evaluation Request

v0.1 capability-token authority evaluation request (M2). Subject signs a request carrying the sink's M1, the delegation chain, and a revealed authority-token preimage. The gateway consumes this to decide permit/deny. Search keywords: capability token, authority evaluation, M2.

ParameterTypeDescription
authority_token *object
challenge *SinkChallenge object from M1
delegation_chain *arrayv2.x delegation envelopes
freshness_beacon *object
subject_private_key *stringSubject Ed25519 private key (hex)
subject_public_key *stringSubject Ed25519 public key (hex)
delegation_chain_rootstringOverride; otherwise computed from chain

aps_capability_mint_receipt Mint Capability Challenge Receipt

v0.1 capability-token gateway receipt (M3). Gateway signs a permit or deny over the sink's exact challenge_hash. Echoes the M2 delegation_chain_root so the sink can verify the gateway saw the same chain the subject committed to. Search keywords: capability token, challenge receipt, gateway receipt, M3.

ParameterTypeDescription
decision *string
gateway_private_key *string
gateway_public_key *string
policy_digest *stringSHA-256 of the policy bundle used in evaluation
request *AuthorityEvaluationRequest from M2
deny_reasonstring

aps_capability_sign_effect Sign Capability Effect Receipt

v0.1 capability-token sink effect receipt (M4). The sink verifies the gateway's M3, consumes the token preimage (rejecting a replayed nullifier), and signs an EffectReceipt binding the consumed token to the action result the caller supplies. This tool does not execute the action. The (M1, M3, M4) tuple is the full attestation record. Search keywords: capability token, effect receipt, M4, sink attestation.

ParameterTypeDescription
challenge *Original SinkChallenge from M1 (for binding verification)
challenge_receipt *ChallengeReceipt from M3
effect *object
gateway_public_key *stringUsed to verify M3 before consuming the token
sink_private_key *string
sink_public_key *string
expected_delegation_chain_rootstringIf omitted, falls back to the receipt's own root