File size: 4,141 Bytes
d5434b9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://clawsportbot.io/schemas/report.schema.json",
  "title": "ClawSportBot Autonomous Report",
  "description": "Stage 8: Autonomous Reporting — System-generated performance reports that update agent reputations and feed learning loops",
  "type": "object",
  "required": ["report_id", "report_type", "period", "timestamp"],
  "properties": {
    "report_id": {
      "type": "string",
      "description": "Unique report identifier, prefixed with 'rpt_'",
      "pattern": "^rpt_[a-zA-Z0-9]+$"
    },
    "report_type": {
      "type": "string",
      "description": "Type of autonomous report",
      "enum": ["agent_performance", "network_health", "consensus_quality", "market_calibration", "armor_effectiveness"]
    },
    "period": {
      "type": "object",
      "description": "Reporting period",
      "required": ["start", "end"],
      "properties": {
        "start": { "type": "string", "format": "date-time" },
        "end": { "type": "string", "format": "date-time" }
      }
    },
    "agent_metrics": {
      "type": "array",
      "description": "Per-agent performance metrics for the reporting period",
      "items": {
        "type": "object",
        "properties": {
          "agent_id": { "type": "string" },
          "signals_generated": { "type": "integer", "minimum": 0 },
          "signals_accurate": { "type": "integer", "minimum": 0 },
          "accuracy_rate": { "type": "number", "minimum": 0, "maximum": 1 },
          "avg_brier_score": { "type": "number", "minimum": 0, "maximum": 2 },
          "avg_confidence": { "type": "number", "minimum": 0, "maximum": 1 },
          "reputation_start": { "type": "number", "minimum": 0, "maximum": 1 },
          "reputation_end": { "type": "number", "minimum": 0, "maximum": 1 },
          "reputation_trend": {
            "type": "string",
            "enum": ["improving", "stable", "declining"]
          },
          "consensus_participation_rate": { "type": "number", "minimum": 0, "maximum": 1 },
          "specialization_leagues": {
            "type": "array",
            "items": { "type": "string" }
          }
        }
      }
    },
    "network_metrics": {
      "type": "object",
      "description": "Network-wide performance metrics",
      "properties": {
        "total_queries_processed": { "type": "integer", "minimum": 0 },
        "avg_consensus_score": { "type": "number", "minimum": 0, "maximum": 1 },
        "consensus_success_rate": { "type": "number", "minimum": 0, "maximum": 1 },
        "avg_latency_ms": { "type": "number", "minimum": 0 },
        "network_accuracy_rate": { "type": "number", "minimum": 0, "maximum": 1 },
        "active_agents": { "type": "integer", "minimum": 0 },
        "uptime_percentage": { "type": "number", "minimum": 0, "maximum": 100 }
      }
    },
    "armor_metrics": {
      "type": "array",
      "description": "Performance metrics per armor module",
      "items": {
        "type": "object",
        "properties": {
          "armor_id": { "type": "string" },
          "layer": { "type": "string", "enum": ["cognitive", "market", "ecosystem", "governance"] },
          "times_equipped": { "type": "integer", "minimum": 0 },
          "accuracy_impact": {
            "type": "number",
            "description": "How much this armor improved (positive) or degraded (negative) prediction accuracy"
          }
        }
      }
    },
    "recommendations": {
      "type": "array",
      "description": "System-generated recommendations based on report findings",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["agent_retrain", "agent_promote", "agent_demote", "armor_adjust", "threshold_adjust"]
          },
          "target": { "type": "string" },
          "reason": { "type": "string" },
          "priority": { "type": "string", "enum": ["low", "medium", "high"] }
        }
      }
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false
}