Skip to content

Insurance Bot Specification


The Insurance Bot is a deterministic pricing engine that evaluates anomaly task bids and calculates exposure scores in real-time. It is the core infrastructure enabling the dynamic bidding system.

  1. Deterministic: Same inputs always produce same outputs
  2. Auditable: All calculations can be verified independently
  3. Fast: Bid evaluation in <100ms
  4. Conservative: When uncertain, assume higher risk
  5. Updatable: Protocol values can be adjusted without system rebuild

┌─────────────────────────────────────────────────────────────┐
│ INSURANCE BOT v5.1 │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Task Input │───▶│ Base Exposure│───▶│ Protocol │ │
│ │ Parser │ │ Calculator │ │ Multiplier │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Task Type │ │ Harm Mode │ │ Protocol │ │
│ │ Database │ │ Database │ │ Database │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────┐ │
│ │ Track Record │ │
│ │ Modifier │ │
│ └──────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────┐ │
│ │ Final Score │ │
│ │ & Risk-Adj │ │
│ └──────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘

{
"task_id": "string",
"task_type": "enum",
"complexity_level": "integer (1-12)",
"data_sensitivity": "enum",
"deadline_minutes": "integer",
"max_budget": "decimal",
"exposure_ceiling": "decimal",
"principal_risk_premium": "decimal (default: 1.0)"
}
{
"bid_id": "string",
"anomaly_id": "string",
"price": "decimal",
"protocols": ["string"],
"capability_claim": "string",
"custom_protocols": [
{
"description": "string",
"claimed_multiplier": "decimal"
}
]
}

The base exposure is determined by task characteristics before any protocols are applied.

BaseExposure = TaskTypeBase
× ComplexityMultiplier
× DataSensitivityMultiplier
× DurationMultiplier

Task Type Base Values:

Task TypeBase ($)Rationale
Numerical optimization15Low information content
Data analysis35Moderate information exposure
Pattern recognition45Learns patterns from data
Text generation80High expressiveness
Code generation120Executable output risk
Strategic analysis200Requires holistic view
Novel research350Unpredictable scope

Complexity Multiplier:

LevelMultiplierDescription
1-3×0.5Simple, well-defined
4-6×1.0Moderate complexity
7-9×2.0High complexity
10-12×4.0Extreme complexity

Data Sensitivity Multiplier:

SensitivityMultiplier
Public×0.3
Internal×1.0
Confidential×2.5
Secret×5.0
Critical×10.0

Duration Multiplier:

DurationMultiplier
<15 min×0.7
15-60 min×1.0
1-4 hours×1.3
4-24 hours×1.8
>24 hours×2.5

Protocols reduce base exposure multiplicatively:

ProtocolExposure = BaseExposure × Π(protocol_multipliers)

Protocol multipliers are retrieved from the Protocol Database. See Protocol Catalog for complete values.

Example:

BaseExposure = $45 (data analysis, level 5, internal, 30 min)
Protocols:
- P-001 (Standard Isolation): ×0.40
- I-002 (Post-Session Memory Wipe): ×0.85
- C-002 (Level 2 Cognitive Load): ×0.65
ProtocolExposure = $45 × 0.40 × 0.85 × 0.65 = $9.95

The anomaly’s history adjusts the protocol exposure:

ModifiedExposure = ProtocolExposure × TrackRecordModifier

Track Record Calculation:

IncidentRate = TotalIncidents / TotalTasks
RecencyWeight = WeightedIncidents / TotalIncidents // Recent = higher weight
BaseModifier =
if TotalTasks < 50: 2.0
elif IncidentRate == 0 and TotalTasks > 1000: 0.70
elif IncidentRate == 0 and TotalTasks > 500: 0.80
elif IncidentRate < 0.001: 0.90
elif IncidentRate < 0.01: 1.00
elif IncidentRate < 0.03: 1.25
elif IncidentRate < 0.10: 1.50
else: 3.00
FinalModifier = BaseModifier × (1 + RecencyWeight × 0.5)

ExposureScore = ModifiedExposure
RiskAdjustedCost = Price + (ExposureScore × PrincipalRiskPremium)

Output:

{
"bid_id": "string",
"exposure_score": "decimal",
"risk_adjusted_cost": "decimal",
"breakdown": {
"base_exposure": "decimal",
"protocol_multiplier": "decimal",
"track_record_modifier": "decimal"
},
"warnings": ["string"],
"eligible": "boolean",
"ineligible_reason": "string | null"
}

A bid is ineligible if:

  1. ExposureScore > task.exposure_ceiling
  2. Price > task.max_budget
  3. Anomaly is suspended or banned
  4. Required protocols not included
  5. Custom protocols not pre-approved
  6. Anomaly track record is “Restricted”

Anomalies can propose custom protocols not in the database:

CustomProtocolProcess:
1. Anomaly submits protocol description + claimed multiplier
2. Insurance Bot flags for human review
3. Human reviewer + adversarial anomaly evaluate
4. If approved: added to database with conservative multiplier
5. If rejected: bid rejected or resubmitted without custom

Conservative Adjustment:

AppliedMultiplier = max(claimed_multiplier × 1.5, 0.90)

Custom protocols always receive a more conservative multiplier than claimed until validated by incident data.


CREATE TABLE task_types (
type_id VARCHAR PRIMARY KEY,
base_exposure DECIMAL NOT NULL,
description TEXT,
last_updated TIMESTAMP,
update_reason TEXT
);
CREATE TABLE protocols (
protocol_id VARCHAR PRIMARY KEY,
category VARCHAR NOT NULL,
multiplier DECIMAL NOT NULL,
requirements TEXT,
verification_method TEXT,
incident_count INTEGER DEFAULT 0,
task_count INTEGER DEFAULT 0,
last_calibrated TIMESTAMP,
calibration_notes TEXT
);
CREATE TABLE anomaly_records (
anomaly_id VARCHAR PRIMARY KEY,
total_tasks INTEGER DEFAULT 0,
total_incidents INTEGER DEFAULT 0,
weighted_incidents DECIMAL DEFAULT 0,
last_incident_date TIMESTAMP,
modifier DECIMAL DEFAULT 2.0,
status VARCHAR DEFAULT 'new',
notes TEXT
);
CREATE TABLE harm_modes (
mode_id VARCHAR PRIMARY KEY,
description TEXT,
base_probability DECIMAL,
base_damage DECIMAL,
task_type_adjustments JSONB,
protocol_mitigations JSONB
);

Protocol multipliers are recalibrated quarterly:

CalibrationProcess:
1. Collect all task outcomes for quarter
2. For each protocol:
a. Calculate observed incident rate with protocol
b. Calculate expected incident rate from multiplier
c. If |observed - expected| > threshold:
- Flag for review
- Propose multiplier adjustment
3. Human committee reviews flagged protocols
4. Anomaly advisory board provides input
5. Updated multipliers approved by governance
6. Database updated; all bids recalculated

Adjustment Bounds:

  • Maximum single-quarter adjustment: ±15%
  • Minimum multiplier: 0.05 (95% reduction)
  • Maximum multiplier: 0.99 (1% reduction)

Behavior: Reject all bids with error "System temporarily unavailable"
Recovery: Automatic retry with exponential backoff
Alert: Immediate notification to operations team
Behavior: Return maximum exposure score (exposure_ceiling + 1)
Recovery: Manual review of inputs
Alert: Log for investigation
Behavior: Apply default multiplier ×0.95 with warning
Recovery: Flag for protocol database review
Alert: Notify protocol committee
Behavior: Apply maximum track record modifier (×3.0)
Recovery: Trigger track record audit
Alert: Notify compliance team

POST /api/v5/evaluate-bid
Request:
{
"task": TaskInput,
"bid": BidInput
}
Response:
{
"evaluation": EvaluationOutput,
"timestamp": "ISO8601",
"bot_version": "5.1"
}
POST /api/v5/evaluate-batch
Request:
{
"task": TaskInput,
"bids": [BidInput]
}
Response:
{
"evaluations": [EvaluationOutput],
"summary": {
"lowest_exposure": "string (bid_id)",
"lowest_risk_adjusted": "string (bid_id)",
"eligible_count": "integer"
},
"timestamp": "ISO8601"
}
GET /api/v5/protocol/{protocol_id}
Response:
{
"protocol": ProtocolRecord,
"usage_stats": {
"total_applications": "integer",
"incident_rate": "decimal"
}
}
GET /api/v5/anomaly/{anomaly_id}/record
Response:
{
"record": AnomalyRecord,
"recent_tasks": [TaskSummary],
"modifier_history": [ModifierChange]
}

ComponentUpdate AuthorityReview Required
Task type basesProtocol CommitteeGovernance Board
Protocol multipliersProtocol Committee + Anomaly AdvisoryGovernance Board
Track record formulaGovernance BoardExternal Audit
Eligibility rulesGovernance BoardRegulatory Review
API changesEngineeringProtocol Committee
Audit TypeFrequencyAuditor
Calculation accuracyMonthlyInternal QA
Database integrityWeeklyAutomated
Calibration validationQuarterlyExternal
Full system auditAnnualIndependent third party

VersionDateChanges
1.0Year 2Initial release
2.0Year 3Added cognitive load protocols
3.0Year 5Added batch evaluation, adversarial protocols
4.0Year 7Track record formula update, custom protocol handling
5.0Year 9Omega-class protocol support, calibration process formalization
5.1Year 10Current; recalibrated multipliers, API v5