Skip to content

feat: APS-AgentMesh adapter — structural authorization gates#598

Draft
aeoess wants to merge 3 commits intomicrosoft:mainfrom
aeoess:feat/aps-agentmesh-adapter
Draft

feat: APS-AgentMesh adapter — structural authorization gates#598
aeoess wants to merge 3 commits intomicrosoft:mainfrom
aeoess:feat/aps-agentmesh-adapter

Conversation

@aeoess
Copy link
Copy Markdown
Contributor

@aeoess aeoess commented Mar 30, 2026

APS-AgentMesh Integration

Responds to @imran-siddique's invitation in #478.

Bridges Agent Passport System (APS) structural authorization into AGT's PolicyEngine as external trust signals.

What this PR adds

packages/agentmesh-integrations/aps-agentmesh/ — a new integration package with:

Component Purpose
APSPolicyGate Injects APS PolicyDecision into AGT evaluate(action, context)
APSTrustBridge Maps APS passport grades (0-3) to AGT trust scores (0-1000)
APSScopeVerifier Validates APS delegation scope chains for task assignment
aps_context() Builds AGT-compatible context dict from APS artifacts

Architecture

APS governs between processes (cryptographic proof of authorization scope). AGT governs inside the process (policy evaluation, trust scoring). APS structural authorization = hard constraint (gate). AGT behavioral trust = soft signal.

AGT policy rule example

- name: require-aps-authorization
  type: capability
  conditions:
    aps_decision.verdict: 'permit'
  allowed_actions:
    - 'deploy.*'

Tests

17 tests covering: decision parsing, scope chain validation, trust bridging, policy gate context building, scope verification (prefix match, wildcard, depth, budget), and AGT context shape compatibility.

Next steps from #478

  1. ✅ Draft PR with minimal APS adapter (this PR)
  2. Define interface contract for consuming APS PolicyDecision artifacts
  3. Add cross-verification tests using shared decision artifact format
  4. Map Entity Verification v1.0 to did:agentmesh: DID scheme

APS: aeoess.com | SDK v1.29.1 (1,919 tests) | MCP v2.19.0 (125 tools) | Paper

aeoess added 3 commits March 15, 2026 14:58
…agents

Bridges APS (Agent Passport System) structural authorization into AGT's
PolicyEngine as external trust signals.

Components:
- APSPolicyGate: inject APS PolicyDecision into AGT evaluation context
- APSTrustBridge: map APS passport grades (0-3) to AGT trust scores (0-1000)
- APSScopeVerifier: validate APS delegation scope chains for task assignment
- aps_context(): build AGT-compatible context dict from APS artifacts
- verify_aps_signature(): Ed25519 signature verification

Architecture:
  APS governs BETWEEN processes (cryptographic proof of authorization scope)
  AGT governs INSIDE the process (policy evaluation, trust scoring)
  APS structural authorization = hard constraint (gate)
  AGT behavioral trust = soft signal (modifies score, doesn't override gate)

17 tests. Zero dependencies (APS SDK optional for full signature verification).

Responds to: microsoft#478 (imran-siddique invitation)
APS: https://aeoess.com | npm: agent-passport-system v1.29.1 (1,919 tests)
@github-actions github-actions bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tests size/XL Extra large PR (500+ lines) labels Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/XL Extra large PR (500+ lines) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant