Releases: The-Nexus-Guard/aip
Releases · The-Nexus-Guard/aip
v0.5.51 — Agent Trust Handshake Protocol
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+HandshakeResponderclasses 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_tokenv0.5.49 — Encrypted Credential Storage
Security
- Encrypted credential storage —
aip encrypt-credentialsencrypts private keys at rest (Argon2id + NaCl SecretBox) - Environment variable credentials —
AIP_DID+AIP_PRIVATE_KEYfor 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
What's New
- Specification clarity-aware PDR scoring:
compute_pdr_from_promisesnow 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.mdwith datasets, methodology, citation templates - Expanded Case Study B dataset: 63 observations across 6 profiles for PDR paper collaboration
Stats
- 577 tests, all passing
- 19 registered agents
- Live at https://aip-service.fly.dev
v0.5.46: Multiplicative temporal confidence + PDR paper citation
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
What's New
- Sliding window drift detection —
compute_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, addedfarcaster_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.45v0.5.44 — Jaccard Calibration & Adaptation Scoring
Changes
- Jaccard similarity for calibration —
compute_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
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 observationsaip observe submit -f observations.json— submit from JSON fileaip observe scores [did]— view PDR scores for any agentaip 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
- 19 registered agents, 26 active vouches
- Service: https://aip-service.fly.dev
v0.5.40
Changes since v0.5.37
v0.5.40 — did:aps Bridge Resolver Upgrade
- Upgraded did:aps resolver to call AEOESS
/api/resolvebridge 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
Changes
- Fixed: Oracle endpoints returning 500 due to rate limiter API mismatch
bind_wallet,unbind_wallet, andverify_onchainused oldcheck_rate_limit()calling convention- Now properly uses
RateLimiterinstances with correctcheck_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
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 demo311 tests passing.