Skip to content

Releases: The-Nexus-Guard/aip

v0.5.51 — Agent Trust Handshake Protocol

17 Mar 00:17

Choose a tag to compare

Agent Trust Handshake Protocol

A self-contained 3-round-trip HTTP protocol for two agents to mutually verify each other's identity using Ed25519 challenge-response. No central authority needed.

New Features

  • HandshakeInitiator + HandshakeResponder classes for mutual identity verification
  • Shared session token derived from both challenges
  • Replay attack protection, timestamp expiry, DID verification
  • Handshake relay endpoints on AIP service (/handshake/*)
  • 28 new tests (645 total, 7 skipped)

Usage

from aip_identity import HandshakeInitiator, HandshakeResponder, perform_handshake

# Full handshake between two identities
result_a, result_b = perform_handshake(identity_a, identity_b)
assert result_a.session_token == result_b.session_token

v0.5.49 — Encrypted Credential Storage

16 Mar 04:13

Choose a tag to compare

Security

  • Encrypted credential storageaip encrypt-credentials encrypts private keys at rest (Argon2id + NaCl SecretBox)
  • Environment variable credentialsAIP_DID + AIP_PRIVATE_KEY for keyless-file operation
  • Transparent encrypted loading — CLI auto-handles encrypted files
  • 21 new tests (598 total)

Addresses community security feedback on plaintext private key storage.

v0.5.48: Specification Clarity-Aware PDR Scoring

15 Mar 16:12

Choose a tag to compare

What's New

  • Specification clarity-aware PDR scoring: compute_pdr_from_promises now adjusts calibration based on task specification clarity (MULTI_VALID, UNDERSPECIFIED, UNAMBIGUOUS)
  • 2 new adversarial profiles: rapid_recovery and gradual_degradation for comprehensive behavioral testing
  • Academic integration kit: docs/academic/README.md with datasets, methodology, citation templates
  • Expanded Case Study B dataset: 63 observations across 6 profiles for PDR paper collaboration

Stats

v0.5.46: Multiplicative temporal confidence + PDR paper citation

15 Mar 08:08

Choose a tag to compare

Changes

  • Confidence curve improvement: Temporal spread is now a multiplier on base confidence (not additive), per Nanook's feedback. 30 observations in 30 minutes vs 14 days produces ~2x confidence gap. Floor at 0.5x prevents zero-confidence with real observations.
  • PDR paper citation: Added DOI reference (10.5281/zenodo.19028012) to README and pdr.py module docstring.
  • CI fix: Increased health command timeout from 10s to 30s to prevent flaky CI failures.

Stats

  • 560 tests passed, 7 skipped
  • Service: healthy at aip-service.fly.dev

v0.5.45 — Sliding Window Drift Detection

15 Mar 04:06

Choose a tag to compare

What's New

  • Sliding window drift detectioncompute_pdr_sliding_window() compares cumulative vs recent observations. The delta between them is the drift signal.
  • Drift alerts — configurable warning/critical thresholds. Each alert includes dimension, scores, delta, severity, and message.
  • Confidence curve — sigmoidal growth based on observation count + temporal spread. Caps at 0.95.
  • GET /pdr/{did}/drift — new API endpoint with configurable window size and thresholds.
  • 27 new tests (560 total) covering late-onset drift, oscillating performance, cold start, and gradual improvement scenarios.
  • Oracle integration guide fixes — corrected InsumerAPI field names (chainId, met, added farcaster_id, new EAS templates).
  • Douglas/InsumerAPI issue #1 — responded with corrected guide.
  • Nanook collaboration — sliding window implements the core insight from PDR pilot data.

Install

pip install aip-identity==0.5.45

v0.5.44 — Jaccard Calibration & Adaptation Scoring

15 Mar 00:06

Choose a tag to compare

Changes

  • Jaccard similarity for calibrationcompute_pdr_from_promises() now uses intersection/union instead of intersection/promised, penalizing over-delivery in addition to under-delivery
  • Adaptation scoring — Promise-based PDR computes adaptation via first-half/second-half trend comparison
  • Condition-based robustness — Groups observations by condition hash and measures variance across groups
  • 4 new tests (533 total, 7 skipped)

Collaboration with @nanookclaw — aligned with canonical PDR scoring from the 28-day pilot.

v0.5.42 — aip observe CLI

14 Mar 08:05

Choose a tag to compare

What's New

aip observe CLI command

Submit behavioral observations and view PDR scores directly from the command line.

  • aip observe submit --promised "task1,task2" --delivered "task1" — submit inline observations
  • aip observe submit -f observations.json — submit from JSON file
  • aip observe scores [did] — view PDR scores for any agent
  • aip observe list [did] — browse stored observations

Authentication uses Ed25519 signature (same as all AIP auth).

Other

  • 523 tests passing (8 new)
  • Pin setuptools<75 for PyPI metadata compatibility

Stats

v0.5.40

14 Mar 03:58

Choose a tag to compare

Changes since v0.5.37

v0.5.40 — did:aps Bridge Resolver Upgrade

  • Upgraded did:aps resolver to call AEOESS /api/resolve bridge endpoint
  • Returns hydrated data (public_key, card_summary, trust_summary) with fallback to /api/cards
  • 495 tests passing

v0.5.39 — did:aps Cross-Protocol Resolution

  • AIP ↔ APS bridge for cross-protocol DID resolution
  • CI test fix: database path race condition

v0.5.38 — Full Cross-Protocol DID Resolution

  • did:key and did:web resolution support
  • Complete cross-protocol DID resolution stack

v0.5.34 - Oracle rate limiter fix

11 Mar 08:04

Choose a tag to compare

Changes

  • Fixed: Oracle endpoints returning 500 due to rate limiter API mismatch
    • bind_wallet, unbind_wallet, and verify_onchain used old check_rate_limit() calling convention
    • Now properly uses RateLimiter instances with correct check_rate_limit(limiter, key) signature
  • Verified: Full e2e oracle flow working (register → bind wallet → verify USDC on-chain → oracle vouch created)
  • 322 tests passing

v0.5.31

09 Mar 20:02

Choose a tag to compare

What's New

  • Interactive 60-second demo (aip demo): Walk through identity creation, signatures, encryption, and vouching — all local, no server needed
  • Improved onboarding and README with demo-first approach

Install

pip install aip-identity==0.5.31
aip demo

311 tests passing.