Skip to content

thorbh2/aegis

Repository files navigation

Aegis

Aegis is a GenLayer policy and claim protocol for trigger review, claim evidence, payout decisions, appeals and reputation.

The project is a public proof package: product UI, contract source, Bradbury deployment metadata, smoke transactions and read-test coverage are included. Local wallet secrets are not.

Live System

Surface Link
App https://aegis-lovat-xi.vercel.app
GitHub https://github.com/thorbh2/aegis
Contract https://explorer-bradbury.genlayer.com/address/0xc83218cC6Ccb9416898948339A72dac92C56570B
Deploy tx https://explorer-bradbury.genlayer.com/tx/0x703580c4dc9ee602c07f6542e32632e06e9a6b109a1950671fc464f0e56fa2a0

Why Aegis Exists

Aegis is a parametric insurance desk for public trigger claims. Underwriters list policies, holders activate cover, claimants file evidence, and a GenLayer intelligent contract reviews public sources before a payout state is written.

The frontend keeps the product experience simple, while the contract carries the heavier protocol surface: source records, web reasoning, challenge and appeal paths, indexed reads, reputation and an audit trail that remains inspectable after deployment.

Contract Architecture

Area Detail
Contract contracts/aegis_v2.py
Size 44,462 bytes
Network GenLayer Bradbury, chain id 4221
Write methods 22
Read methods 20
GenLayer features live web rendering, LLM execution, validator-comparative consensus
Deployment wallet 0x9A62e5Aa759e806a0965D4c7A5D10a1dae21AaEc
Contract address 0xc83218cC6Ccb9416898948339A72dac92C56570B

Core lifecycle:

set_aegis_standard
  -> draft_policy
  -> reserve_item
  -> add_claim
  -> add_evidence
  -> open_review
  -> review_policy_with_genlayer
  -> open_challenge_window
  -> submit_challenge
  -> resolve_challenge_with_genlayer
  -> submit_appeal
  -> resolve_appeal_with_genlayer
  -> settle
  -> archive_policy
  -> recalculate_reputation

Backward-compatible frontend methods are still present: offer_policy, buy_policy, file_claim, get_policy and get_policy_count.

Verification Trail

Step Transaction
Set standard https://explorer-bradbury.genlayer.com/tx/0x20ca574d08eab447682fec955ef705efaf8ba83d4b556e9ac04f2e2e682fe725
Draft policy https://explorer-bradbury.genlayer.com/tx/0xcee5562ef9d6609ccbefa64d07eae88ac78312265cf1d2a2cd3e2ecf9266f57b
Reserve item https://explorer-bradbury.genlayer.com/tx/0x57a4f68c9b8c37755b77209b7e48e0256129f4986c5903451dcde32d8b9d02d3
Add claim https://explorer-bradbury.genlayer.com/tx/0x399b2b20d798d65f6842d42b8427141ee9652896f3ba146f3d15a56d41c3d8db
Add web evidence https://explorer-bradbury.genlayer.com/tx/0x1a046fe45b97edaeb4c78b45e42a34e5d2a1fca7096cefced8f3f1a0cd461be3
Review with GenLayer https://explorer-bradbury.genlayer.com/tx/0x8524e06858fbae56948c9b313112a7e5272ea5ce6fa345d0340382d9f2660f35
Challenge ruling https://explorer-bradbury.genlayer.com/tx/0x002a783ec66f7070bd712be013e411d6402dfd039d8cac83922548fe86247634
Appeal ruling https://explorer-bradbury.genlayer.com/tx/0x3ee65cae5ca784e11daa389c3a16af4aeb39957da5524a18a5862439df7f175c
Settle https://explorer-bradbury.genlayer.com/tx/0xeac4230e57c236995b90b4c2d8f00a1dace0e0aba97290bae0227692c9298cd1
Archive https://explorer-bradbury.genlayer.com/tx/0x02e41e8b62e6c24d8c8941bef1aeb2701a95a1d2d68d39771993a632267d936a
Legacy claim https://explorer-bradbury.genlayer.com/tx/0x94cf32d67a3569f0a0a6400d5b5428b308a3e6776e3b5fe58f83158fcc1625ff

Smoke result:

19 Bradbury writes accepted
2 policies, 2 reviews, 1 challenge, 1 appeal
Quality score: 10000
Read tests: 38/38 passed

Frontend

Aegis ships as a standalone static app:

  • wallet connection through the bundled browser client
  • reads routed to https://rpc-bradbury.genlayer.com
  • writes routed through the connected EVM wallet on GenLayer Bradbury
  • deployed contract address pinned in app.js and deployment.json

Run Locally

python -m http.server 8080

Open http://localhost:8080.

Repository Safety

This public repository intentionally excludes local secrets:

  • no private keys
  • no vault files
  • no .env files
  • no .vercel project state
  • no local dashboard data

About

GenLayer Bradbury policy and claim protocol with evidence review, challenges, appeals and reputation.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors