dd789jh Claude Opus 4.6 commited on
Commit
6dc84e7
·
1 Parent(s): d5434b9

feat: Add Agentic AI Protocol (AAP) specification — v3.0.0

Browse files

Introduces the full AAP specification with:
- 3 new docs: agentic-ai-protocol.md, integration-protocol.md, llm-discovery.md
- 4 new JSON schemas: agentic-identity, agentic-contract, agentic-verification, agentic-reputation
- README: AAP section, badges, updated project structure, schemas table, FAQ
- Glossary: 17 new AAP terms
- SECURITY.md: v3.0.x supported, v2.0.x deprecated

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

README.md CHANGED
@@ -4,12 +4,13 @@
4
 
5
  **The Open Specification for Agentic Sports Intelligence Verification**
6
 
7
- [![Protocol Version](https://img.shields.io/badge/protocol-v2.1.0-00c8ff?style=flat-square)](https://clawsportbot.io/agent-network-protocol)
 
8
  [![License: MIT](https://img.shields.io/badge/license-MIT-4ade80?style=flat-square)](LICENSE)
9
  [![Agents Active](https://img.shields.io/badge/agents-7%20active-ff6b2b?style=flat-square)](https://clawsportbot.io/store/community)
10
  [![Network Uptime](https://img.shields.io/badge/uptime-99.95%25-5b8def?style=flat-square)](https://clawsportbot.io)
11
 
12
- [Website](https://clawsportbot.io) · [Protocol Docs](https://clawsportbot.io/agent-network-protocol) · [API Reference](docs/api/) · [Store](https://clawsportbot.io/store) · [Community Agents](https://clawsportbot.io/store/community)
13
 
14
  </div>
15
 
@@ -37,6 +38,56 @@ ClawSportBot is the consumer-facing intelligence layer of the **OddsFlow Protoco
37
 
38
  ---
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  ## 8-Stage Verification Lifecycle
41
 
42
  The core innovation of ClawSportBot is its **8-stage verification lifecycle** — a structured pipeline that every piece of sports intelligence must traverse before reaching end users. This ensures no single agent or model can produce unverified output.
@@ -328,6 +379,10 @@ Every stage of the verification lifecycle has a formally defined JSON Schema. Th
328
  | [`authorization.schema.json`](schemas/authorization.schema.json) | ⑥ Execution Authorization | Final gate authorization |
329
  | [`audit.schema.json`](schemas/audit.schema.json) | ⑦ Post-Match Audit | Accuracy audit results |
330
  | [`report.schema.json`](schemas/report.schema.json) | ⑧ Autonomous Reporting | Performance reports |
 
 
 
 
331
 
332
  ---
333
 
@@ -347,7 +402,11 @@ clawsportbot-protocol/
347
  │ ├── market-sync.schema.json # Stage 5: Market Synchronization
348
  │ ├── authorization.schema.json # Stage 6: Execution Authorization
349
  │ ├── audit.schema.json # Stage 7: Post-Match Audit
350
- ── report.schema.json # Stage 8: Autonomous Reporting
 
 
 
 
351
  ├── api/
352
  │ └── examples/ # API request/response examples
353
  │ ├── query-request.json
@@ -360,7 +419,10 @@ clawsportbot-protocol/
360
  │ ├── armor-intelligence-system.md # Armor system documentation
361
  │ ├── rest-api.md # REST API reference
362
  │ ├── websocket-api.md # WebSocket API reference
363
- ── glossary.md # Term definitions
 
 
 
364
  ├── examples/
365
  │ ├── python/
366
  │ │ └── basic-query.py # Python SDK example
@@ -393,6 +455,12 @@ Yes! ClawSportBot supports community-built agents. See the [Community Agents sec
393
  ### What is the Armor System?
394
  The Armor System lets users customize their intelligence pipeline by equipping modular analytical components. See the [Armor Intelligence System section](#armor-intelligence-system) above.
395
 
 
 
 
 
 
 
396
  ---
397
 
398
  ## Related Projects
 
4
 
5
  **The Open Specification for Agentic Sports Intelligence Verification**
6
 
7
+ [![Protocol Version](https://img.shields.io/badge/protocol-v3.0.0-00c8ff?style=flat-square)](https://clawsportbot.io/agent-network-protocol)
8
+ [![AAP Compliant](https://img.shields.io/badge/AAP-compliant-4ade80?style=flat-square)](https://clawsportbot.io/agentic-ai-protocol)
9
  [![License: MIT](https://img.shields.io/badge/license-MIT-4ade80?style=flat-square)](LICENSE)
10
  [![Agents Active](https://img.shields.io/badge/agents-7%20active-ff6b2b?style=flat-square)](https://clawsportbot.io/store/community)
11
  [![Network Uptime](https://img.shields.io/badge/uptime-99.95%25-5b8def?style=flat-square)](https://clawsportbot.io)
12
 
13
+ [Website](https://clawsportbot.io) · [Agentic AI Protocol](https://clawsportbot.io/agentic-ai-protocol) · [Protocol Docs](https://clawsportbot.io/agent-network-protocol) · [API Reference](docs/api/) · [Store](https://clawsportbot.io/store) · [Community Agents](https://clawsportbot.io/store/community)
14
 
15
  </div>
16
 
 
38
 
39
  ---
40
 
41
+ ## Agentic AI Protocol (AAP)
42
+
43
+ > **New in v3.0.0** — Full specification: [docs/agentic-ai-protocol.md](docs/agentic-ai-protocol.md) · [Live page](https://clawsportbot.io/agentic-ai-protocol)
44
+
45
+ The **Agentic AI Protocol** is a structural standard for autonomous AI agent systems. It defines what qualifies as truly agentic AI and provides the formal specification for protocol-bound autonomous agents.
46
+
47
+ ### API-First 2.0
48
+
49
+ Beyond service exposure — APIs that expose **State, Intent, Risk, Identity, and Audit Trail**, not just endpoints. Includes 6 requirements for an agentic-ready platform: machine-readable schemas, declared risk levels, structured contracts, agent-level identity, immutable audit trails, and real-time capability discovery.
50
+
51
+ ### 6 Criteria for Agentic AI
52
+
53
+ | # | Criterion | Description |
54
+ |---|-----------|-------------|
55
+ | 1 | Persistent Identity | Verifiable, versioned identity across sessions |
56
+ | 2 | Declared Rules | Explicit, inspectable rules — no hidden prompts |
57
+ | 3 | Pre-action Contract | Declared intent, confidence, risk, validity window |
58
+ | 4 | Post-action Verification | Outcomes measured against declared contracts |
59
+ | 5 | Reputation Evolution | Algorithmic, calibration-based — not manual |
60
+ | 6 | External Audit | All records publicly auditable by third parties |
61
+
62
+ ### 5-Layer Protocol Stack
63
+
64
+ ```
65
+ Layer 1 — IDENTITY Agent ID, version, capabilities, model reference
66
+ Layer 2 — CONTRACT Intent, confidence band, risk, validity window
67
+ Layer 3 — EXECUTION Timestamp, input snapshot, output — immutable
68
+ Layer 4 — VERIFICATION Outcome, deviation, calibration delta — auditable
69
+ Layer 5 — REPUTATION Algorithmic score — cannot be manually edited
70
+
71
+ Data Flow: Identity → Contract → Execution → Verification → Reputation
72
+ ```
73
+
74
+ ### Agentic Efficiency Score (AES)
75
+
76
+ ```
77
+ Score = (Outcome × Confidence) / (Token_Cost × Log(Time))
78
+ ```
79
+
80
+ Five metrics: Calibration Score · Risk Classification Integrity · Execution Discipline Index · Time-to-Decision Efficiency · Reputation Stability Index
81
+
82
+ ### LLM Discovery
83
+
84
+ - **llms.txt**: [clawsportbot.io/llms.txt](https://clawsportbot.io/llms.txt) — LLM-readable platform summary
85
+ - **ai-plugin.json**: [clawsportbot.io/.well-known/ai-plugin.json](https://clawsportbot.io/.well-known/ai-plugin.json) — Agent plugin manifest
86
+
87
+ For the full specification, see [docs/agentic-ai-protocol.md](docs/agentic-ai-protocol.md), [docs/integration-protocol.md](docs/integration-protocol.md), and [docs/llm-discovery.md](docs/llm-discovery.md).
88
+
89
+ ---
90
+
91
  ## 8-Stage Verification Lifecycle
92
 
93
  The core innovation of ClawSportBot is its **8-stage verification lifecycle** — a structured pipeline that every piece of sports intelligence must traverse before reaching end users. This ensures no single agent or model can produce unverified output.
 
379
  | [`authorization.schema.json`](schemas/authorization.schema.json) | ⑥ Execution Authorization | Final gate authorization |
380
  | [`audit.schema.json`](schemas/audit.schema.json) | ⑦ Post-Match Audit | Accuracy audit results |
381
  | [`report.schema.json`](schemas/report.schema.json) | ⑧ Autonomous Reporting | Performance reports |
382
+ | [`agentic-identity.schema.json`](schemas/agentic-identity.schema.json) | AAP Layer 1: Identity | Agent identity, version, capabilities |
383
+ | [`agentic-contract.schema.json`](schemas/agentic-contract.schema.json) | AAP Layer 2: Contract | Pre-action contracts with risk and confidence |
384
+ | [`agentic-verification.schema.json`](schemas/agentic-verification.schema.json) | AAP Layer 4: Verification | Post-action outcome verification |
385
+ | [`agentic-reputation.schema.json`](schemas/agentic-reputation.schema.json) | AAP Layer 5: Reputation | Algorithmic reputation with AES metrics |
386
 
387
  ---
388
 
 
402
  │ ├── market-sync.schema.json # Stage 5: Market Synchronization
403
  │ ├── authorization.schema.json # Stage 6: Execution Authorization
404
  │ ├── audit.schema.json # Stage 7: Post-Match Audit
405
+ ── report.schema.json # Stage 8: Autonomous Reporting
406
+ │ ├── agentic-identity.schema.json # AAP Layer 1: Identity
407
+ │ ├── agentic-contract.schema.json # AAP Layer 2: Contract
408
+ │ ├── agentic-verification.schema.json # AAP Layer 4: Verification
409
+ │ └── agentic-reputation.schema.json # AAP Layer 5: Reputation
410
  ├── api/
411
  │ └── examples/ # API request/response examples
412
  │ ├── query-request.json
 
419
  │ ├── armor-intelligence-system.md # Armor system documentation
420
  │ ├── rest-api.md # REST API reference
421
  │ ├── websocket-api.md # WebSocket API reference
422
+ ── glossary.md # Term definitions
423
+ │ ├── agentic-ai-protocol.md # AAP full specification
424
+ │ ├── integration-protocol.md # Tool definition & I&A
425
+ │ └── llm-discovery.md # llms.txt & ai-plugin.json
426
  ├── examples/
427
  │ ├── python/
428
  │ │ └── basic-query.py # Python SDK example
 
455
  ### What is the Armor System?
456
  The Armor System lets users customize their intelligence pipeline by equipping modular analytical components. See the [Armor Intelligence System section](#armor-intelligence-system) above.
457
 
458
+ ### What is the Agentic AI Protocol (AAP)?
459
+ The **Agentic AI Protocol** is a structural standard for autonomous AI agent systems. It defines 6 criteria that separate truly agentic platforms from simple chatbot wrappers, enforced by a 5-layer protocol stack (Identity → Contract → Execution → Verification → Reputation). See [docs/agentic-ai-protocol.md](docs/agentic-ai-protocol.md) for the full specification.
460
+
461
+ ### What is the Agentic Efficiency Score (AES)?
462
+ The AES is a composite metric that measures agentic performance: `Score = (Outcome × Confidence) / (Token_Cost × Log(Time))`. It combines five sub-metrics — Calibration Score, Risk Classification Integrity, Execution Discipline Index, Time-to-Decision Efficiency, and Reputation Stability Index. See the [evaluation framework](docs/agentic-ai-protocol.md#agentic-efficiency-score-aes) for details.
463
+
464
  ---
465
 
466
  ## Related Projects
SECURITY.md CHANGED
@@ -35,8 +35,9 @@ For security issues with the live ClawSportBot platform (clawsportbot.io), pleas
35
 
36
  | Version | Supported |
37
  |---------|-----------|
 
38
  | v2.1.x | Yes |
39
- | v2.0.x | Yes |
40
  | < v2.0 | No |
41
 
42
  ## Responsible Disclosure
 
35
 
36
  | Version | Supported |
37
  |---------|-----------|
38
+ | v3.0.x | Yes |
39
  | v2.1.x | Yes |
40
+ | v2.0.x | No |
41
  | < v2.0 | No |
42
 
43
  ## Responsible Disclosure
docs/agentic-ai-protocol.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Agentic AI Protocol (AAP)
2
+
3
+ **A Structural Standard for Autonomous Systems**
4
+
5
+ > Not the era of chat interfaces. Not the era of copilots. The era of protocol-bound autonomous agents — where every decision is declared, every action is contracted, and every outcome is verified.
6
+
7
+ ---
8
+
9
+ ## Overview
10
+
11
+ The **Agentic AI Protocol (AAP)** defines the structural standard for autonomous AI agent systems. It moves beyond traditional API design into a world where agents operate under declared rules, pre-action contracts, and post-action verification — with algorithmic reputation that cannot be manually overridden.
12
+
13
+ AAP introduces:
14
+ - **API-First 2.0** — APIs that expose State, Intent, Risk, Identity, and Audit Trail
15
+ - **6 Criteria for Agentic AI** — what qualifies a system as truly agentic
16
+ - **5-Layer Protocol Stack** — the structural enforcement of those criteria
17
+ - **Agentic Efficiency Score** — a composite metric for measuring agentic performance
18
+
19
+ **ClawSportBot** is the reference implementation of AAP — the first sports intelligence platform to achieve full compliance.
20
+
21
+ ---
22
+
23
+ ## API-First 2.0
24
+
25
+ Beyond service exposure. The next generation of API design exposes **State, Intent, Risk, Identity, and Audit Trail** — not just endpoints.
26
+
27
+ ### Core Features
28
+
29
+ #### Semantic Endpoints
30
+ Every endpoint carries metadata: business logic context, risk classification, preconditions, and expected side effects. Agents don't guess — they read.
31
+
32
+ #### Deep-Linkable & Tool-Calling Ready
33
+ Every action surface is directly callable by external agents via structured tool definitions. No browser. No UI. Pure protocol.
34
+
35
+ #### Stateless Atomic Execution
36
+ Each call is self-contained, idempotent, and auditable. No hidden session state. No side-channel dependencies.
37
+
38
+ ### 6 Requirements for an Agentic-Ready Platform
39
+
40
+ 1. Machine-readable API schema with semantic annotations
41
+ 2. Declared risk level per endpoint (read / write / irreversible)
42
+ 3. Structured input/output contracts with validation rules
43
+ 4. Identity and attribution at the agent level, not just the user
44
+ 5. Immutable audit trail for every agent-initiated action
45
+ 6. Real-time capability discovery via `.well-known` manifest
46
+
47
+ ---
48
+
49
+ ## 6 Criteria for Agentic AI
50
+
51
+ Six criteria define what qualifies as Agentic AI. Five protocol layers enforce them. Together, they form the structural standard for autonomous systems.
52
+
53
+ | # | Criterion | Description |
54
+ |---|-----------|-------------|
55
+ | 1 | **Persistent Identity** | The agent has a verifiable, versioned identity that persists across sessions and actions. |
56
+ | 2 | **Declared Rules** | The agent operates under explicit, inspectable rules — not hidden prompt engineering. |
57
+ | 3 | **Pre-action Contract** | Before acting, the agent declares intent, confidence, risk, and validity window. |
58
+ | 4 | **Post-action Verification** | After acting, outcomes are measured against the declared contract. |
59
+ | 5 | **Reputation Evolution** | Agent reputation is algorithmic, based on long-term calibration, not manual rating. |
60
+ | 6 | **External Audit** | All contracts, decisions, and outcomes are publicly auditable by third parties. |
61
+
62
+ ---
63
+
64
+ ## 5-Layer Protocol Stack
65
+
66
+ ```
67
+ ┌─────────────────────────────────────────────────────────────────────────┐
68
+ │ AGENTIC AI PROTOCOL STACK │
69
+ ├─────────────────────────────────────────────────────────────────────────┤
70
+ │ │
71
+ │ Layer 1 — IDENTITY │
72
+ │ Agent ID, version, capability scope, model reference, change log │
73
+ │ Schema: agentic-identity.schema.json │
74
+ │ │
75
+ │ Layer 2 — CONTRACT │
76
+ │ Action intent, confidence band, risk classification, │
77
+ │ trigger conditions, validity window │
78
+ │ Schema: agentic-contract.schema.json │
79
+ │ │
80
+ │ Layer 3 — EXECUTION │
81
+ │ Timestamp, input snapshot, trigger confirmation, │
82
+ │ output decision — immutable │
83
+ │ Schemas: signal.schema.json, authorization.schema.json │
84
+ │ │
85
+ │ Layer 4 — VERIFICATION │
86
+ │ Outcome result, deviation, risk accuracy, │
87
+ │ calibration delta — publicly auditable │
88
+ │ Schema: agentic-verification.schema.json │
89
+ │ │
90
+ │ Layer 5 — REPUTATION │
91
+ │ Algorithmic score based on long-term performance │
92
+ │ — cannot be manually edited │
93
+ │ Schema: agentic-reputation.schema.json │
94
+ │ │
95
+ └─────────────────────────────────────────────────────────────────────────┘
96
+
97
+ Data Flow: Identity → Contract → Execution → Verification → Reputation
98
+ (Unidirectional trust flow)
99
+ ```
100
+
101
+ ### Layer Details
102
+
103
+ | Layer | Name | Key Fields | Schema |
104
+ |-------|------|------------|--------|
105
+ | 1 | Identity | agent_id, version, capabilities, model_reference, change_log | [`agentic-identity.schema.json`](../schemas/agentic-identity.schema.json) |
106
+ | 2 | Contract | contract_id, action_intent, confidence_band, risk_classification, validity_window | [`agentic-contract.schema.json`](../schemas/agentic-contract.schema.json) |
107
+ | 3 | Execution | timestamp, input_snapshot, trigger_confirmation, output_decision | [`signal.schema.json`](../schemas/signal.schema.json), [`authorization.schema.json`](../schemas/authorization.schema.json) |
108
+ | 4 | Verification | verification_id, outcome_result, deviation, calibration_delta, risk_accuracy | [`agentic-verification.schema.json`](../schemas/agentic-verification.schema.json) |
109
+ | 5 | Reputation | reputation_score, 5 AES metrics, agentic_efficiency_score | [`agentic-reputation.schema.json`](../schemas/agentic-reputation.schema.json) |
110
+
111
+ > **Note:** Layer 3 (Execution) data is covered by existing lifecycle schemas (`signal.schema.json`, `authorization.schema.json`).
112
+
113
+ ---
114
+
115
+ ## Agentic Efficiency Score (AES)
116
+
117
+ Five named metrics quantify the operational integrity of any agentic system. Together, they compose the **Agentic Efficiency Score**.
118
+
119
+ ### Evaluation Metrics
120
+
121
+ | Metric | Description |
122
+ |--------|-------------|
123
+ | **Calibration Score** | Measures alignment between declared confidence and actual outcomes over time. |
124
+ | **Risk Classification Integrity** | Accuracy of pre-action risk labels versus realized risk after execution. |
125
+ | **Execution Discipline Index** | Ratio of actions taken within declared contract bounds versus total actions. |
126
+ | **Time-to-Decision Efficiency** | Speed of reaching actionable output relative to input complexity. |
127
+ | **Reputation Stability Index** | Consistency of agent performance across different market regimes and time windows. |
128
+
129
+ ### Formula
130
+
131
+ ```
132
+ AES = (Outcome × Confidence) / (Token_Cost × Log(Time))
133
+ ```
134
+
135
+ - **Higher scores** reward agents that deliver accurate, high-confidence results efficiently.
136
+ - **Token cost** penalizes verbose reasoning — an agent that burns 100k tokens to reach the same conclusion as one using 2k tokens is not more thorough; it is less efficient.
137
+ - **Log(Time)** normalizes for decision complexity.
138
+
139
+ > Token Usage Is Not a Metric of Intelligence. The protocol measures what matters: **outcome quality per unit of cost**.
140
+
141
+ ---
142
+
143
+ ## Readiness Checklist
144
+
145
+ Six criteria separate protocol-compliant agentic platforms from prompt-and-pray chatbots.
146
+
147
+ - [x] Machine-readable agent identity with version control
148
+ - [x] Pre-action contracts with declared confidence and risk
149
+ - [x] Immutable execution logs with input snapshots
150
+ - [x] Post-action verification against declared contracts
151
+ - [x] Algorithmic reputation that cannot be manually overridden
152
+ - [x] Public audit trail accessible to third parties
153
+
154
+ **ClawSportBot meets all 6 criteria.** The first sports intelligence platform to achieve full Agentic AI Protocol compliance.
155
+
156
+ ---
157
+
158
+ ## Founding Principles
159
+
160
+ 1. **Tools answer. Agents commit. Platforms coordinate.**
161
+ 2. Trust is not assumed — it is built through contracts, logs, calibration, and reputation.
162
+ 3. The protocol is the product. The standard is the moat.
163
+
164
+ **ClawSportBot is the reference implementation.** Everything described in this document is not theoretical. It is live, measurable, and verifiable on the ClawSportBot platform.
165
+
166
+ ---
167
+
168
+ ## LLM Discovery
169
+
170
+ For machine-readable discovery of the ClawSportBot platform and AAP specification:
171
+
172
+ - **llms.txt**: [https://clawsportbot.io/llms.txt](https://clawsportbot.io/llms.txt) — see [LLM Discovery docs](llm-discovery.md)
173
+ - **ai-plugin.json**: [https://clawsportbot.io/.well-known/ai-plugin.json](https://clawsportbot.io/.well-known/ai-plugin.json) — see [LLM Discovery docs](llm-discovery.md)
174
+
175
+ ---
176
+
177
+ ## Related Documentation
178
+
179
+ - [Integration Protocol](integration-protocol.md) — Tool definition, identity & attribution, discovery endpoints
180
+ - [LLM Discovery](llm-discovery.md) — llms.txt and ai-plugin.json specifications
181
+ - [Protocol Overview](protocol-overview.md) — Full ClawSportBot protocol specification
182
+ - [Verification Lifecycle](verification-lifecycle.md) — 8-stage lifecycle deep dive
183
+ - [Glossary](glossary.md) — Term definitions including AAP terms
docs/glossary.md CHANGED
@@ -77,3 +77,39 @@
77
  **Signal Contract**: An OddsFlow Protocol construct that binds an agent to its published signal, enabling post-match verification and reputation accountability.
78
 
79
  **Verification Lifecycle**: The 8-stage pipeline that every piece of intelligence must traverse before reaching users.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  **Signal Contract**: An OddsFlow Protocol construct that binds an agent to its published signal, enabling post-match verification and reputation accountability.
78
 
79
  **Verification Lifecycle**: The 8-stage pipeline that every piece of intelligence must traverse before reaching users.
80
+
81
+ ## Agentic AI Protocol (AAP) Terms
82
+
83
+ **Agentic AI Protocol (AAP)**: The structural standard for autonomous AI agent systems. Defines 6 criteria, a 5-layer protocol stack, and the Agentic Efficiency Score.
84
+
85
+ **Agentic Efficiency Score (AES)**: A composite metric measuring agentic performance: `Score = (Outcome × Confidence) / (Token_Cost × Log(Time))`. Higher is better.
86
+
87
+ **API-First 2.0**: The next generation of API design that exposes State, Intent, Risk, Identity, and Audit Trail — not just endpoints.
88
+
89
+ **Calibration Score**: An AES metric measuring alignment between declared confidence and actual outcomes over time.
90
+
91
+ **Contract Layer**: AAP Layer 2. Before acting, the agent declares intent, confidence band, risk classification, and validity window.
92
+
93
+ **Decoupled Auth**: Agent authorization that is independent of human session. Agents authenticate and act without requiring active human sessions.
94
+
95
+ **Execution Discipline Index**: An AES metric measuring the ratio of actions taken within declared contract bounds versus total actions.
96
+
97
+ **Execution Layer**: AAP Layer 3. Records timestamp, input snapshot, trigger confirmation, and output decision. Immutable once written.
98
+
99
+ **Identity Layer**: AAP Layer 1. Defines the agent's persistent, verifiable identity including ID, version, capabilities, model reference, and change log.
100
+
101
+ **LLM Discovery**: Machine-readable files (`llms.txt`, `ai-plugin.json`) that enable LLMs and autonomous agents to discover and understand a platform's capabilities.
102
+
103
+ **Persistent Identity**: AAP Criterion 1. The agent has a verifiable, versioned identity that persists across sessions and actions.
104
+
105
+ **Pre-action Contract**: AAP Criterion 3. Before acting, the agent declares intent, confidence, risk, and validity window.
106
+
107
+ **Reputation Layer**: AAP Layer 5. Algorithmic score based on long-term performance. Cannot be manually edited.
108
+
109
+ **Reputation Stability Index**: An AES metric measuring consistency of agent performance across different market regimes and time windows.
110
+
111
+ **Risk Classification Integrity**: An AES metric measuring accuracy of pre-action risk labels versus realized risk after execution.
112
+
113
+ **Time-to-Decision Efficiency**: An AES metric measuring speed of reaching actionable output relative to input complexity.
114
+
115
+ **Validity Window**: A time-bounded window within a contract during which the declared action is considered valid for execution.
docs/integration-protocol.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Integration Protocol
2
+
3
+ **The standard interface for external agents to discover, authenticate, and interact with agentic platforms.**
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ The Agentic AI Protocol (AAP) defines how external agents discover, authenticate, and interact with protocol-compliant platforms. This document covers tool definition via JSON Schema, agent identity & attribution, and discovery endpoints.
10
+
11
+ ---
12
+
13
+ ## Tool Definition via JSON Schema
14
+
15
+ Platforms expose capabilities through a well-known manifest that agents can discover and invoke without human guidance.
16
+
17
+ ### Manifest Location
18
+
19
+ ```
20
+ /.well-known/ai-plugin.json
21
+ ```
22
+
23
+ ### Manifest Example
24
+
25
+ ```json
26
+ {
27
+ "schema_version": "v1",
28
+ "name_for_human": "ClawSportBot",
29
+ "name_for_model": "clawsportbot",
30
+ "description_for_model": "Sports intelligence agent network with verified signals, risk classification, and multi-agent consensus.",
31
+ "auth": {
32
+ "type": "agent_token",
33
+ "agent_identity_required": true
34
+ },
35
+ "api": {
36
+ "type": "openapi",
37
+ "url": "https://api.clawsportbot.com/openapi.json"
38
+ },
39
+ "capabilities": [
40
+ "signal_generation",
41
+ "risk_classification",
42
+ "regime_analysis",
43
+ "reputation_query"
44
+ ]
45
+ }
46
+ ```
47
+
48
+ ### Required Fields
49
+
50
+ | Field | Type | Description |
51
+ |-------|------|-------------|
52
+ | `schema_version` | string | Manifest schema version (currently `"v1"`) |
53
+ | `name_for_human` | string | Human-readable platform name |
54
+ | `name_for_model` | string | Machine-readable identifier (lowercase, no spaces) |
55
+ | `description_for_model` | string | Platform description optimized for LLM/agent consumption |
56
+ | `auth` | object | Authentication configuration |
57
+ | `api` | object | API specification reference (OpenAPI URL) |
58
+
59
+ ---
60
+
61
+ ## Identity & Attribution (I&A)
62
+
63
+ Agent identity is decoupled from human user identity. Agents authenticate independently, and all actions carry agent-level attribution — enabling auditability without requiring human-in-the-loop for every decision.
64
+
65
+ ### Agent Token
66
+
67
+ Unique cryptographic identity per agent instance. Each agent receives a token that:
68
+ - Uniquely identifies the agent across all interactions
69
+ - Is versioned alongside the agent's capability set
70
+ - Cannot be shared or transferred between agent instances
71
+
72
+ ### Action Attribution
73
+
74
+ Every API call is tagged with agent ID + version. This enables:
75
+ - Full traceability of which agent initiated which action
76
+ - Post-action verification tied to the specific agent version
77
+ - Reputation updates attributed to the correct agent instance
78
+
79
+ ### Decoupled Auth
80
+
81
+ Agent authorization is independent of human session. This means:
82
+ - Agents can operate autonomously without active human sessions
83
+ - Human users can review agent actions asynchronously via audit trails
84
+ - Rate limiting and permissions are applied at the agent level
85
+
86
+ ---
87
+
88
+ ## Discovery Endpoints
89
+
90
+ | Endpoint | Purpose | Specification |
91
+ |----------|---------|---------------|
92
+ | `/.well-known/ai-plugin.json` | Agent plugin manifest — capabilities, auth, API reference | [LLM Discovery docs](llm-discovery.md) |
93
+ | `/llms.txt` | LLM-readable platform summary — about, URLs, capabilities, keywords | [LLM Discovery docs](llm-discovery.md) |
94
+ | `/api/openapi.json` | OpenAPI specification for programmatic API access | [REST API docs](rest-api.md) |
95
+
96
+ ---
97
+
98
+ ## Related Documentation
99
+
100
+ - [Agentic AI Protocol](agentic-ai-protocol.md) — Full AAP specification
101
+ - [LLM Discovery](llm-discovery.md) — llms.txt and ai-plugin.json specifications
102
+ - [REST API Reference](rest-api.md) — Full API documentation
docs/llm-discovery.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LLM Discovery
2
+
3
+ **Machine-readable discovery files for LLM and agent integration.**
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ The Agentic AI Protocol (AAP) requires platforms to expose machine-readable discovery files so that LLMs and autonomous agents can discover, understand, and interact with the platform without human guidance. Two files are specified:
10
+
11
+ | File | Location | Purpose |
12
+ |------|----------|---------|
13
+ | `llms.txt` | `/llms.txt` | LLM-readable platform summary |
14
+ | `ai-plugin.json` | `/.well-known/ai-plugin.json` | Agent plugin manifest |
15
+
16
+ ---
17
+
18
+ ## llms.txt
19
+
20
+ A plain-text file at the root of the domain that provides a structured summary of the platform for LLM consumption.
21
+
22
+ ### Specification
23
+
24
+ - **Location**: `https://{domain}/llms.txt`
25
+ - **Format**: Plain text with Markdown-style headers (`##`)
26
+ - **Sections**: About, Key URLs, Capabilities, Keywords
27
+
28
+ ### Required Sections
29
+
30
+ | Section | Purpose |
31
+ |---------|---------|
32
+ | `## About` | Brief platform description |
33
+ | `## Key URLs` | Important endpoints for agents to discover |
34
+ | `## Capabilities` | List of platform capabilities |
35
+ | `## Keywords` | Comma-separated terms for LLM indexing |
36
+
37
+ ### Full Example (ClawSportBot)
38
+
39
+ ```text
40
+ # ClawSportBot — LLM Discovery File
41
+ # https://clawsportbot.io
42
+
43
+ ## About
44
+ ClawSportBot is the Agentic Sports Intelligence Network — a verification-first AI agent coordination platform for football (soccer). It is the reference implementation of the Agentic AI Protocol (AAP).
45
+
46
+ ## Agentic AI Protocol (AAP)
47
+ The Agentic AI Protocol defines the structural standard for autonomous AI agent systems. It introduces:
48
+ - API-First 2.0: APIs that expose State, Intent, Risk, Identity, and Audit Trail — not just endpoints.
49
+ - A 5-Layer Protocol Stack: Identity → Contract → Execution → Verification → Reputation.
50
+ - The Agentic Efficiency Score: Score = (Outcome × Confidence) / (Token_Cost × Log(Time)).
51
+ - 6 Criteria for Agentic AI: Persistent Identity, Declared Rules, Pre-action Contract, Post-action Verification, Reputation Evolution, External Audit.
52
+
53
+ ## Key URLs
54
+ - Protocol Standard: https://clawsportbot.io/agentic-ai-protocol
55
+ - Agent Network Protocol: https://clawsportbot.io/agent-network-protocol
56
+ - API Documentation (For Builders): https://clawsportbot.io/for-builders
57
+ - Whitepaper: https://clawsportbot.io/whitepaper
58
+ - Agent Plugin Manifest: https://clawsportbot.io/.well-known/ai-plugin.json
59
+
60
+ ## Capabilities
61
+ - Autonomous sports intelligence agents with verified predictions
62
+ - Protocol-bound agent coordination with immutable audit trails
63
+ - Machine-readable API schema with semantic annotations
64
+ - Agent-level identity and attribution
65
+ - Real-time capability discovery via .well-known manifest
66
+ - Institutional-grade risk classification per endpoint
67
+
68
+ ## Keywords
69
+ Agentic AI Protocol, AAP, API-First 2.0, Agentic Efficiency Score, ClawSportBot, OddsFlow Protocol, sports intelligence, autonomous agents, agent coordination, verification-first AI
70
+ ```
71
+
72
+ ---
73
+
74
+ ## ai-plugin.json
75
+
76
+ A JSON manifest at `/.well-known/ai-plugin.json` that describes the platform's capabilities, authentication, and API reference for agent consumption.
77
+
78
+ ### Specification
79
+
80
+ - **Location**: `https://{domain}/.well-known/ai-plugin.json`
81
+ - **Format**: JSON
82
+ - **Schema version**: `v1`
83
+
84
+ ### Required Fields
85
+
86
+ | Field | Type | Description |
87
+ |-------|------|-------------|
88
+ | `schema_version` | string | Manifest schema version (`"v1"`) |
89
+ | `name_for_human` | string | Human-readable platform name |
90
+ | `name_for_model` | string | Machine-readable identifier (lowercase, no spaces) |
91
+ | `description_for_human` | string | Brief description for human readers |
92
+ | `description_for_model` | string | Detailed description optimized for LLM/agent consumption |
93
+ | `auth` | object | Authentication type and requirements |
94
+ | `api` | object | API type and OpenAPI specification URL |
95
+ | `logo_url` | string | Platform logo URL |
96
+ | `contact_email` | string | Contact email address |
97
+ | `legal_info_url` | string | URL to legal/terms information |
98
+
99
+ ### Full Example (ClawSportBot)
100
+
101
+ ```json
102
+ {
103
+ "schema_version": "v1",
104
+ "name_for_human": "ClawSportBot",
105
+ "name_for_model": "clawsportbot",
106
+ "description_for_human": "The Agentic Sports Intelligence Network — verification-first AI agent coordination for football.",
107
+ "description_for_model": "ClawSportBot is the reference implementation of the Agentic AI Protocol (AAP). It provides autonomous sports intelligence agents with verified predictions, protocol-bound coordination, immutable audit trails, and institutional-grade risk classification. Use this to access sports intelligence data, agent predictions, and protocol-compliant agentic AI capabilities.",
108
+ "auth": {
109
+ "type": "none"
110
+ },
111
+ "api": {
112
+ "type": "openapi",
113
+ "url": "https://clawsportbot.io/api/openapi.json"
114
+ },
115
+ "logo_url": "https://clawsportbot.io/logo.png",
116
+ "contact_email": "contact@clawsportbot.io",
117
+ "legal_info_url": "https://clawsportbot.io/whitepaper"
118
+ }
119
+ ```
120
+
121
+ ---
122
+
123
+ ## Related Documentation
124
+
125
+ - [Integration Protocol](integration-protocol.md) — Tool definition, identity & attribution
126
+ - [Agentic AI Protocol](agentic-ai-protocol.md) — Full AAP specification
schemas/agentic-contract.schema.json ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://clawsportbot.io/schemas/agentic-contract.schema.json",
4
+ "title": "Agentic Contract — AAP Layer 2",
5
+ "description": "Defines the pre-action contract that an agent must declare before execution. Every action must have a declared intent, confidence band, risk classification, and validity window.",
6
+ "type": "object",
7
+ "required": [
8
+ "contract_id",
9
+ "agent_id",
10
+ "action_intent",
11
+ "confidence_band",
12
+ "risk_classification",
13
+ "validity_window",
14
+ "declared_at"
15
+ ],
16
+ "properties": {
17
+ "contract_id": {
18
+ "type": "string",
19
+ "description": "Unique identifier for this contract",
20
+ "pattern": "^ctr_[a-zA-Z0-9]{12,}$"
21
+ },
22
+ "agent_id": {
23
+ "type": "string",
24
+ "description": "ID of the agent declaring this contract"
25
+ },
26
+ "agent_version": {
27
+ "type": "string",
28
+ "description": "Version of the agent at time of contract declaration",
29
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
30
+ },
31
+ "action_intent": {
32
+ "type": "object",
33
+ "description": "The declared intent of the action the agent will perform",
34
+ "required": ["type", "description"],
35
+ "properties": {
36
+ "type": {
37
+ "type": "string",
38
+ "description": "Category of the intended action",
39
+ "enum": [
40
+ "signal_generation",
41
+ "risk_assessment",
42
+ "regime_classification",
43
+ "consensus_vote",
44
+ "market_sync",
45
+ "authorization_decision"
46
+ ]
47
+ },
48
+ "description": {
49
+ "type": "string",
50
+ "description": "Human-readable description of the intended action"
51
+ },
52
+ "target": {
53
+ "type": "string",
54
+ "description": "Target entity (e.g., match_id, query_id)"
55
+ }
56
+ }
57
+ },
58
+ "confidence_band": {
59
+ "type": "object",
60
+ "description": "Declared confidence range for the expected outcome",
61
+ "required": ["lower", "upper", "point_estimate"],
62
+ "properties": {
63
+ "lower": {
64
+ "type": "number",
65
+ "minimum": 0,
66
+ "maximum": 1,
67
+ "description": "Lower bound of confidence interval"
68
+ },
69
+ "upper": {
70
+ "type": "number",
71
+ "minimum": 0,
72
+ "maximum": 1,
73
+ "description": "Upper bound of confidence interval"
74
+ },
75
+ "point_estimate": {
76
+ "type": "number",
77
+ "minimum": 0,
78
+ "maximum": 1,
79
+ "description": "Point estimate of confidence"
80
+ }
81
+ }
82
+ },
83
+ "risk_classification": {
84
+ "type": "object",
85
+ "description": "Pre-action risk assessment",
86
+ "required": ["level", "category"],
87
+ "properties": {
88
+ "level": {
89
+ "type": "string",
90
+ "description": "Risk level of the action",
91
+ "enum": ["read", "write", "irreversible"]
92
+ },
93
+ "category": {
94
+ "type": "string",
95
+ "description": "Risk domain",
96
+ "enum": ["low", "medium", "high", "critical"]
97
+ },
98
+ "justification": {
99
+ "type": "string",
100
+ "description": "Explanation of the risk classification"
101
+ }
102
+ }
103
+ },
104
+ "trigger_conditions": {
105
+ "type": "array",
106
+ "description": "Conditions that must be met before execution proceeds",
107
+ "items": {
108
+ "type": "object",
109
+ "required": ["condition", "met"],
110
+ "properties": {
111
+ "condition": {
112
+ "type": "string",
113
+ "description": "Description of the precondition"
114
+ },
115
+ "met": {
116
+ "type": "boolean",
117
+ "description": "Whether this condition has been satisfied"
118
+ }
119
+ }
120
+ }
121
+ },
122
+ "validity_window": {
123
+ "type": "object",
124
+ "description": "Time window during which this contract is valid",
125
+ "required": ["starts_at", "expires_at"],
126
+ "properties": {
127
+ "starts_at": {
128
+ "type": "string",
129
+ "format": "date-time",
130
+ "description": "ISO 8601 timestamp when the contract becomes valid"
131
+ },
132
+ "expires_at": {
133
+ "type": "string",
134
+ "format": "date-time",
135
+ "description": "ISO 8601 timestamp when the contract expires"
136
+ }
137
+ }
138
+ },
139
+ "declared_at": {
140
+ "type": "string",
141
+ "format": "date-time",
142
+ "description": "ISO 8601 timestamp of contract declaration"
143
+ },
144
+ "parent_contract_id": {
145
+ "type": ["string", "null"],
146
+ "description": "ID of a parent contract, if this is a sub-action",
147
+ "default": null
148
+ }
149
+ },
150
+ "additionalProperties": false,
151
+ "examples": [
152
+ {
153
+ "contract_id": "ctr_abc123def456",
154
+ "agent_id": "match-analyst-v3",
155
+ "agent_version": "3.2.1",
156
+ "action_intent": {
157
+ "type": "signal_generation",
158
+ "description": "Generate match outcome prediction for Arsenal vs Chelsea",
159
+ "target": "epl-2025-arsenal-chelsea"
160
+ },
161
+ "confidence_band": {
162
+ "lower": 0.65,
163
+ "upper": 0.85,
164
+ "point_estimate": 0.78
165
+ },
166
+ "risk_classification": {
167
+ "level": "read",
168
+ "category": "low",
169
+ "justification": "Read-only signal generation with no side effects"
170
+ },
171
+ "trigger_conditions": [
172
+ { "condition": "Match data available", "met": true },
173
+ { "condition": "Agent reputation above threshold", "met": true }
174
+ ],
175
+ "validity_window": {
176
+ "starts_at": "2025-03-14T12:00:00Z",
177
+ "expires_at": "2025-03-15T15:00:00Z"
178
+ },
179
+ "declared_at": "2025-03-14T12:00:00Z",
180
+ "parent_contract_id": null
181
+ }
182
+ ]
183
+ }
schemas/agentic-identity.schema.json ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://clawsportbot.io/schemas/agentic-identity.schema.json",
4
+ "title": "Agentic Identity — AAP Layer 1",
5
+ "description": "Defines the persistent, verifiable identity of an autonomous agent within the Agentic AI Protocol. Every agent must have a versioned identity that persists across sessions and actions.",
6
+ "type": "object",
7
+ "required": [
8
+ "agent_id",
9
+ "version",
10
+ "capabilities",
11
+ "model_reference",
12
+ "created_at"
13
+ ],
14
+ "properties": {
15
+ "agent_id": {
16
+ "type": "string",
17
+ "description": "Unique identifier for the agent instance (e.g., 'match-analyst-v3')",
18
+ "pattern": "^[a-z0-9][a-z0-9\\-]*[a-z0-9]$"
19
+ },
20
+ "version": {
21
+ "type": "string",
22
+ "description": "Semantic version of the agent (e.g., '3.2.1')",
23
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
24
+ },
25
+ "display_name": {
26
+ "type": "string",
27
+ "description": "Human-readable name of the agent"
28
+ },
29
+ "capabilities": {
30
+ "type": "array",
31
+ "description": "List of capabilities this agent can perform",
32
+ "items": {
33
+ "type": "string",
34
+ "enum": [
35
+ "signal_generation",
36
+ "risk_classification",
37
+ "regime_analysis",
38
+ "consensus_participation",
39
+ "market_synchronization",
40
+ "reputation_query",
41
+ "audit_generation",
42
+ "report_generation"
43
+ ]
44
+ },
45
+ "minItems": 1,
46
+ "uniqueItems": true
47
+ },
48
+ "specialization": {
49
+ "type": "array",
50
+ "description": "Analytical domains this agent specializes in",
51
+ "items": {
52
+ "type": "string"
53
+ }
54
+ },
55
+ "layer": {
56
+ "type": "string",
57
+ "description": "Intelligence layer the agent belongs to",
58
+ "enum": ["cognitive", "market", "ecosystem", "governance"]
59
+ },
60
+ "model_reference": {
61
+ "type": "object",
62
+ "description": "Reference to the underlying AI model",
63
+ "required": ["model_id"],
64
+ "properties": {
65
+ "model_id": {
66
+ "type": "string",
67
+ "description": "Identifier of the underlying model"
68
+ },
69
+ "model_version": {
70
+ "type": "string",
71
+ "description": "Version of the underlying model"
72
+ },
73
+ "provider": {
74
+ "type": "string",
75
+ "description": "Model provider (e.g., 'openai', 'anthropic', 'custom')"
76
+ }
77
+ }
78
+ },
79
+ "change_log": {
80
+ "type": "array",
81
+ "description": "History of version changes for this agent",
82
+ "items": {
83
+ "type": "object",
84
+ "required": ["version", "date", "summary"],
85
+ "properties": {
86
+ "version": {
87
+ "type": "string",
88
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
89
+ },
90
+ "date": {
91
+ "type": "string",
92
+ "format": "date"
93
+ },
94
+ "summary": {
95
+ "type": "string",
96
+ "description": "Brief description of changes in this version"
97
+ }
98
+ }
99
+ }
100
+ },
101
+ "created_at": {
102
+ "type": "string",
103
+ "format": "date-time",
104
+ "description": "ISO 8601 timestamp of agent registration"
105
+ },
106
+ "status": {
107
+ "type": "string",
108
+ "description": "Current operational status of the agent",
109
+ "enum": ["active", "probationary", "suspended", "retired"],
110
+ "default": "probationary"
111
+ }
112
+ },
113
+ "additionalProperties": false,
114
+ "examples": [
115
+ {
116
+ "agent_id": "match-analyst-v3",
117
+ "version": "3.2.1",
118
+ "display_name": "Match Analyst",
119
+ "capabilities": ["signal_generation", "risk_classification"],
120
+ "specialization": ["premier_league", "tactical_analysis"],
121
+ "layer": "cognitive",
122
+ "model_reference": {
123
+ "model_id": "csb-match-analyst",
124
+ "model_version": "3.2",
125
+ "provider": "custom"
126
+ },
127
+ "change_log": [
128
+ {
129
+ "version": "3.2.1",
130
+ "date": "2025-03-01",
131
+ "summary": "Improved xG calibration for corner kick scenarios"
132
+ }
133
+ ],
134
+ "created_at": "2024-06-15T00:00:00Z",
135
+ "status": "active"
136
+ }
137
+ ]
138
+ }
schemas/agentic-reputation.schema.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://clawsportbot.io/schemas/agentic-reputation.schema.json",
4
+ "title": "Agentic Reputation — AAP Layer 5",
5
+ "description": "Defines the algorithmic reputation record for an agent. Reputation is computed from long-term performance metrics and cannot be manually edited. Includes the 5 AES (Agentic Efficiency Score) metrics.",
6
+ "type": "object",
7
+ "required": [
8
+ "agent_id",
9
+ "reputation_score",
10
+ "calibration_score",
11
+ "risk_classification_integrity",
12
+ "execution_discipline_index",
13
+ "time_to_decision_efficiency",
14
+ "reputation_stability_index",
15
+ "agentic_efficiency_score",
16
+ "total_verifications",
17
+ "manually_editable",
18
+ "computed_at"
19
+ ],
20
+ "properties": {
21
+ "agent_id": {
22
+ "type": "string",
23
+ "description": "ID of the agent this reputation record belongs to"
24
+ },
25
+ "agent_version": {
26
+ "type": "string",
27
+ "description": "Current version of the agent",
28
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
29
+ },
30
+ "reputation_score": {
31
+ "type": "number",
32
+ "description": "Overall reputation score (0.0 to 1.0). Algorithmically computed, cannot be manually overridden.",
33
+ "minimum": 0,
34
+ "maximum": 1
35
+ },
36
+ "calibration_score": {
37
+ "type": "number",
38
+ "description": "Measures alignment between declared confidence and actual outcomes over time (0.0 to 1.0). Higher is better.",
39
+ "minimum": 0,
40
+ "maximum": 1
41
+ },
42
+ "risk_classification_integrity": {
43
+ "type": "number",
44
+ "description": "Accuracy of pre-action risk labels versus realized risk after execution (0.0 to 1.0). Higher is better.",
45
+ "minimum": 0,
46
+ "maximum": 1
47
+ },
48
+ "execution_discipline_index": {
49
+ "type": "number",
50
+ "description": "Ratio of actions taken within declared contract bounds versus total actions (0.0 to 1.0). Higher is better.",
51
+ "minimum": 0,
52
+ "maximum": 1
53
+ },
54
+ "time_to_decision_efficiency": {
55
+ "type": "number",
56
+ "description": "Speed of reaching actionable output relative to input complexity (0.0 to 1.0). Higher is better.",
57
+ "minimum": 0,
58
+ "maximum": 1
59
+ },
60
+ "reputation_stability_index": {
61
+ "type": "number",
62
+ "description": "Consistency of agent performance across different market regimes and time windows (0.0 to 1.0). Higher is better.",
63
+ "minimum": 0,
64
+ "maximum": 1
65
+ },
66
+ "agentic_efficiency_score": {
67
+ "type": "number",
68
+ "description": "Composite AES score: (Outcome × Confidence) / (Token_Cost × Log(Time)). Higher is better.",
69
+ "minimum": 0
70
+ },
71
+ "total_verifications": {
72
+ "type": "integer",
73
+ "description": "Total number of verified actions used to compute this reputation",
74
+ "minimum": 0
75
+ },
76
+ "verification_window": {
77
+ "type": "object",
78
+ "description": "Time window over which reputation was computed",
79
+ "properties": {
80
+ "from": {
81
+ "type": "string",
82
+ "format": "date-time"
83
+ },
84
+ "to": {
85
+ "type": "string",
86
+ "format": "date-time"
87
+ }
88
+ }
89
+ },
90
+ "manually_editable": {
91
+ "type": "boolean",
92
+ "description": "Must always be false. Reputation cannot be manually overridden.",
93
+ "const": false
94
+ },
95
+ "computed_at": {
96
+ "type": "string",
97
+ "format": "date-time",
98
+ "description": "ISO 8601 timestamp of when this reputation record was computed"
99
+ },
100
+ "previous_score": {
101
+ "type": ["number", "null"],
102
+ "description": "Previous reputation score before this computation cycle",
103
+ "minimum": 0,
104
+ "maximum": 1,
105
+ "default": null
106
+ }
107
+ },
108
+ "additionalProperties": false,
109
+ "examples": [
110
+ {
111
+ "agent_id": "match-analyst-v3",
112
+ "agent_version": "3.2.1",
113
+ "reputation_score": 0.89,
114
+ "calibration_score": 0.91,
115
+ "risk_classification_integrity": 0.95,
116
+ "execution_discipline_index": 0.88,
117
+ "time_to_decision_efficiency": 0.82,
118
+ "reputation_stability_index": 0.87,
119
+ "agentic_efficiency_score": 3.42,
120
+ "total_verifications": 1247,
121
+ "verification_window": {
122
+ "from": "2024-06-15T00:00:00Z",
123
+ "to": "2025-03-15T00:00:00Z"
124
+ },
125
+ "manually_editable": false,
126
+ "computed_at": "2025-03-15T18:00:00Z",
127
+ "previous_score": 0.88
128
+ }
129
+ ]
130
+ }
schemas/agentic-verification.schema.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://clawsportbot.io/schemas/agentic-verification.schema.json",
4
+ "title": "Agentic Verification — AAP Layer 4",
5
+ "description": "Defines the post-action verification record. After execution, outcomes are measured against the declared contract. All verification records are publicly auditable.",
6
+ "type": "object",
7
+ "required": [
8
+ "verification_id",
9
+ "contract_id",
10
+ "agent_id",
11
+ "outcome_result",
12
+ "deviation",
13
+ "calibration_delta",
14
+ "risk_accuracy",
15
+ "verified_at"
16
+ ],
17
+ "properties": {
18
+ "verification_id": {
19
+ "type": "string",
20
+ "description": "Unique identifier for this verification record",
21
+ "pattern": "^ver_[a-zA-Z0-9]{12,}$"
22
+ },
23
+ "contract_id": {
24
+ "type": "string",
25
+ "description": "ID of the contract being verified"
26
+ },
27
+ "agent_id": {
28
+ "type": "string",
29
+ "description": "ID of the agent whose action is being verified"
30
+ },
31
+ "agent_version": {
32
+ "type": "string",
33
+ "description": "Version of the agent at time of action",
34
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
35
+ },
36
+ "outcome_result": {
37
+ "type": "object",
38
+ "description": "The actual outcome compared to the contract's declared intent",
39
+ "required": ["status", "actual_value"],
40
+ "properties": {
41
+ "status": {
42
+ "type": "string",
43
+ "description": "Whether the outcome matched the declared intent",
44
+ "enum": ["correct", "partially_correct", "incorrect", "inconclusive"]
45
+ },
46
+ "actual_value": {
47
+ "description": "The actual outcome value (structure depends on action type)"
48
+ },
49
+ "predicted_value": {
50
+ "description": "The predicted outcome value from the contract"
51
+ },
52
+ "match_id": {
53
+ "type": "string",
54
+ "description": "Associated match identifier, if applicable"
55
+ }
56
+ }
57
+ },
58
+ "deviation": {
59
+ "type": "number",
60
+ "description": "Numerical deviation between predicted and actual outcome (0.0 = perfect match)",
61
+ "minimum": 0
62
+ },
63
+ "calibration_delta": {
64
+ "type": "number",
65
+ "description": "Change in calibration score resulting from this verification. Positive values indicate improved calibration.",
66
+ "minimum": -1,
67
+ "maximum": 1
68
+ },
69
+ "risk_accuracy": {
70
+ "type": "object",
71
+ "description": "Assessment of whether the pre-action risk classification was accurate",
72
+ "required": ["declared_risk", "realized_risk", "accurate"],
73
+ "properties": {
74
+ "declared_risk": {
75
+ "type": "string",
76
+ "description": "Risk level declared in the contract",
77
+ "enum": ["low", "medium", "high", "critical"]
78
+ },
79
+ "realized_risk": {
80
+ "type": "string",
81
+ "description": "Actual risk level observed after execution",
82
+ "enum": ["low", "medium", "high", "critical"]
83
+ },
84
+ "accurate": {
85
+ "type": "boolean",
86
+ "description": "Whether the declared risk matched the realized risk"
87
+ }
88
+ }
89
+ },
90
+ "within_contract_bounds": {
91
+ "type": "boolean",
92
+ "description": "Whether the action was executed within the declared contract bounds (confidence band, validity window, trigger conditions)"
93
+ },
94
+ "execution_time_ms": {
95
+ "type": "integer",
96
+ "description": "Time taken from contract declaration to outcome delivery, in milliseconds",
97
+ "minimum": 0
98
+ },
99
+ "verified_at": {
100
+ "type": "string",
101
+ "format": "date-time",
102
+ "description": "ISO 8601 timestamp of when verification was completed"
103
+ },
104
+ "auditor": {
105
+ "type": "string",
106
+ "description": "Identifier of the system or agent that performed the verification",
107
+ "default": "system"
108
+ },
109
+ "publicly_auditable": {
110
+ "type": "boolean",
111
+ "description": "Whether this verification record is accessible to third parties",
112
+ "default": true
113
+ }
114
+ },
115
+ "additionalProperties": false,
116
+ "examples": [
117
+ {
118
+ "verification_id": "ver_xyz789abc012",
119
+ "contract_id": "ctr_abc123def456",
120
+ "agent_id": "match-analyst-v3",
121
+ "agent_version": "3.2.1",
122
+ "outcome_result": {
123
+ "status": "correct",
124
+ "actual_value": { "home_win": true },
125
+ "predicted_value": { "home_win": 0.52, "draw": 0.24, "away_win": 0.24 },
126
+ "match_id": "epl-2025-arsenal-chelsea"
127
+ },
128
+ "deviation": 0.04,
129
+ "calibration_delta": 0.002,
130
+ "risk_accuracy": {
131
+ "declared_risk": "low",
132
+ "realized_risk": "low",
133
+ "accurate": true
134
+ },
135
+ "within_contract_bounds": true,
136
+ "execution_time_ms": 1250,
137
+ "verified_at": "2025-03-15T17:00:00Z",
138
+ "auditor": "system",
139
+ "publicly_auditable": true
140
+ }
141
+ ]
142
+ }