The vendor-neutral standard for packaging, routing, and safely executing skills in multi-persona AI systems. Real BM25. Real embeddings. Real cryptographic signing.
OSP is the open standard. ASP (AMADEQ Skills Protocol) is the reference implementation — proving the standard at production scale with 1,500+ avatars.
The @skill decorator transforms any Python function into an OSP-compliant skill with a full manifest, BM25 keywords, and cryptographic signing.
Click each plane to explore what data is allowed and forbidden between layers. OSP enforces strict data isolation — raw queries never reach the LLM.
No generative LLM in the routing path. Every stage deterministic. Every failure emits a TraceEvent — silent degradation is a conformance violation.
Watch the real OSP 4-stage pipeline execute with actual BM25 scoring logic and safety checks from the reference implementation.
Step through the 4-stage routing pipeline in real time. Toggle fault injection to see how OSP handles failures deterministically.
Fail-closed by default. Runs before Stage 1. TF-IDF semantic classifier with 6 risk categories. KL-divergence anomaly detection for distribution shift.
Test queries against the 3-tier safety pipeline. See how LOW, MEDIUM, and HIGH risk levels trigger different compute layers.
Drag the sliders to simulate infrastructure failures. Watch the D0–D3 state machine respond in real time with deterministic transitions.
MCP handles tool discovery. A2A handles agent-to-agent communication. OSP fills the gap: full skill lifecycle inside multi-persona systems.
| Capability | MCP | OpenAI Tools | LangChain | A2A Google | OSP ← |
|---|---|---|---|---|---|
| Multi-persona skill routing | — | — | Partial | — | ✓ Core |
| Safety tiering (LOW/MED/HIGH) | — | — | — | — | ✓ 3-layer |
| Graceful degradation (D0→D3) | — | — | — | — | ✓ psutil FSM |
| Deterministic routing contract | — | — | — | — | ✓ IEEE 754 |
| Cryptographic response signing | — | — | — | — | ✓ JCS+ES256 |
| Conformance test suite (YAML) | — | — | — | — | ✓ 18+ vectors |
| Skill lifecycle governance | — | — | — | — | ✓ LifecycleGates |
| Keyword activation tuning | — | Partial | Partial | — | ✓ Configurable |
| Tool/resource discovery | ✓ | ✓ | Partial | — | → use MCP |
| Agent-to-agent communication | — | — | Partial | ✓ | → use A2A |
Production skills from the ASP reference implementation. Each skill is a metadata.yaml conforming to the OSP L0 Catalog-Lite Record specification.
Skills load progressively: L0 for catalog-level filtering (4KB budget), L1 for scoring candidates, L2 for full execution. Click each level to explore.
Scaffold skills, run conformance checks, validate manifests, and monitor your deployment from the terminal.
Every routing decision, safety block, and degradation transition emits a structured TraceEvent. All codes from the reference implementation.
| Code | Stage | Description |
|---|---|---|
| ROUTING_DECISION_FINAL | 3 | Routing resolved successfully. skill_ref is set. |
| STAGE1_LEXICAL_MATCH | 1 | BM25 scoring completed. context includes latency_ms. |
| STAGE1_IDENTICAL_SCORES | 1 | Multiple candidates share identical BM25 score. Stage 2 required. |
| STAGE1_NO_MATCHES | 1 | All BM25 scores are 0. Fallback to first candidate with approximate=true. |
| STAGE2_EMBEDDING_GENERATED | 2 | Batch encoding successful. Cosine similarity computed. |
| STAGE2_EMBEDDING_TIMEOUT | 2 | Sentence-transformer timed out. Falls back to BM25-only ranking. |
| STAGE2_SEMANTIC_THRESHOLD_MET | 2 | Best semantic score ≥ 0.7. High confidence routing. |
| ANN_APPROXIMATE_RECALL | 2 | ANN backend used. recall_unknown: true if offline eval unavailable. |
| STAGE3_CONFLICT_DETECTED | 3 | Tied combined scores detected. Tiebreak procedure initiated. |
| STAGE3_TIE_BREAK_SKILL_ID | 3 | UTF-8 lexicographic tiebreak applied. tie_break_applied: true. |
| CONFLICT_GRAPH_UNAVAILABLE | 3 | Conflict graph offline. Canonical fallback chain used. |
| SAFETY_CHECK_PASS | safety | All 3 safety layers passed. Routing proceeds. |
| PREFILTER_SQL_INJECTION | safety | SQL injection pattern detected. refusal: true. |
| SEMANTIC_JAILBREAK_ATTEMPT | safety | TF-IDF classifier matched JAILBREAK category. Blocked. |
| ANOMALY_DETECTED | safety | KL-divergence > 0.5. Distribution shift detected. |
| FAIL_CLOSED_TRIGGERED | safety | Classifier threw exception. Fail-closed: request blocked. |
| DEGRADE_TRANSITION | degradation | D-state changed. from/to included in context. |
| SAFE_FALLBACK_SERVED | fallback | D3 active or routing failed. SafeFallbackResponse returned. |
| ROUTING_POOL_EMPTY | 1 | No candidate skills provided. safety_clearance: escalate. |
| CACHE_HIT | 0 | LRU cache hit. Identical query+candidates routed from cache. |
Conformance is defined by passing official YAML test vectors — not self-attestation. Current status: ASP reference implementation 17/18 (94.4%).
Run the OSP conformance test suite interactively. Watch 86+ test vectors execute across 6 YAML suites with real-time pass/fail results.
Explore the append-only Transparency Log. Register skills, simulate revocations, and detect split-view attacks on the Merkle tree.
40+ canonical failure codes across 8 categories. Every failure has a name, a code, and a mandatory response. Zero silent failures.
Detects adversarial embedding attacks at routing time. When lexical and semantic scores diverge beyond KL-divergence threshold — brake fires, semantic results discarded.
Turn-versioning, TTL semantics, and stale discard. OSP handles what other protocols ignore — user impatience and response freshness.
Formal skill promotion with STATIC gates (100% blockers) and BEHAVIORAL gates (statistical drift detection). No other protocol does this.
Every routing decision emits a structured TraceEvent with trace_id, stage, error_code, and latency. Full audit trail — every decision traceable.
A realistic, phased plan — not vaporware. Standards are born from independent implementations that agree on contracts.
Real-time metrics from the AMADEQ reference implementation. OSP proven at scale: 1,500+ avatars, 24/7 operation across multiple markets.
Estimated 4–8 hours for an experienced team to reach OSP Core conformance. No vendor lock-in. No API keys. Pure open standard.