Skip to content

thorbh2/sibyl

Repository files navigation

Sibyl

Sibyl is a GenLayer policy and underwriting protocol for public trigger review, claim settlement, challenge windows and appeals.

This repository is a public proof package: it includes the product UI, the deployed GenLayer Studionet contract source, deployment metadata, finalized smoke transactions, and test evidence. Local wallet secrets are not included.

Live System

Surface Link
App https://sibyl-ashy.vercel.app
GitHub https://github.com/thorbh2/sibyl
Contract https://explorer-studio.genlayer.com/contracts/0xeefA6242387E4aEF1cbD7092EE78a7f43B6b2359
Deploy tx https://explorer-studio.genlayer.com/tx/0x4fc6634778a5190f65e8a3f5ccc310b6d4aef042d26fd73d9ba6ca677e92f491
Vercel inspect https://vercel.com/aspros-projects-07dbbeb8/sibyl/8XDkzhWjmoB2hggsgREswNLAKT3K

Why Sibyl Exists

A GenLayer parametric insurance oracle. Policy holders pay a premium, insurers stake payout, public trigger sources are reviewed by GenLayer web/LLM consensus, and disputes can move through challenge, appeal, payout/close, archive, reputation and audit trails.

The frontend keeps the original product experience, while the contract adds a reviewable on-chain lifecycle: source records, GenLayer reasoning, challenge and appeal paths, indexed reads, and an audit trail that can be inspected after deployment.

Contract Architecture

Area Detail
Contract contracts/sibyl_v2.py
Size 43558 bytes
Network GenLayer Studionet, chain id 61999
Write methods 24
Read methods 20
GenLayer features live web rendering, LLM execution, validator-comparative consensus
Deployment wallet 0x3E60776c4af994e2771C1D34cf0F39649F747936
Contract address 0xeefA6242387E4aEF1cbD7092EE78a7f43B6b2359

Architecture note:

Sibyl V2 (# v0.2.16), 43558 bytes, 24 write + 20 view. Objects: Policy, TriggerCriterion, Evidence, Review, Challenge, Appeal, Reputation/Profile + AuditEntry. Lifecycle OPEN->ACTIVE->CLAIMED/REVIEWING->REVIEWED->CHALLENGE_WINDOW->APPEALED->PAID/CLOSED/CANCELLED->ARCHIVED. GenLayer nondet (web.render + exec_prompt inside eq_principle.prompt_comparative) reviews public trigger sources, challenges and appeals; strict JSON normalization, confidence/trigger bps, URL validation and prompt-injection guardrails. Backward-compatible open_policy/underwrite/settle/cancel/get_policy/get_policy_count keep the static insurance app intact; draft_policy/reserve_item are automation-safe non-payable smoke paths.

Core smoke flow:

set_policy_standard
  -> draft_policy
  -> add_obligation
  -> add_evidence_docs
  -> add_evidence_web
  -> reserve_item
  -> open_review
  -> review
  -> open_challenge_window
  -> submit_challenge
  -> resolve_challenge
  -> submit_appeal
  -> resolve_appeal

Verification Trail

Step Transaction
Set Policy Standard https://explorer-studio.genlayer.com/tx/0x069af89ddf033edf218e5a518b8daf9b018079ec58f59365336bb544bcc0b6ca
Draft Policy https://explorer-studio.genlayer.com/tx/0x4de519e4cefed15d0bddccf61b042bae7274461c2d994c646f1501094f7ec2d1
Add Obligation https://explorer-studio.genlayer.com/tx/0x8db895a9b529adfb77212edc88fa8776c800fcab0f451ce40c2a96280ad2ba75
Add Evidence Docs https://explorer-studio.genlayer.com/tx/0x79fa6d78167aab5d137abc35f7719e94c003048a049e42b41b18196cb9f46686
Add Evidence Web https://explorer-studio.genlayer.com/tx/0x094fbe664628e8a57cceffdc0bc6402a011bb245736dc91ee661467ca0b3ec18
Reserve Item https://explorer-studio.genlayer.com/tx/0x947abcd4e88b5aa424978c4375d455183d2779d58770fa2e8c19478ba9344841
Open Review https://explorer-studio.genlayer.com/tx/0x78114306d2240936518cf4ee841341f124c3a5d54e71ab49caa9e96c152c34a5
Review https://explorer-studio.genlayer.com/tx/0x377c41fbdcf104252fc5559771ef44dae04e403a9645114f0755e5320289420f
Open Challenge Window https://explorer-studio.genlayer.com/tx/0xc4ffffef603cdc0babe7126c8ce6b9c29325f9fbdb4d6e43daff725262cec5e5
Submit Challenge https://explorer-studio.genlayer.com/tx/0x2544604d6cf0414edbe937e98e6b4f39391bd4c4e52890d48e39525036dab70b
Resolve Challenge https://explorer-studio.genlayer.com/tx/0xa192752e3250c115c113c1fe048eada3b6447bdcf1da75727078165a3d958181
Submit Appeal https://explorer-studio.genlayer.com/tx/0x865d1887e33693677d3c4d25aaed05a9f5c95c1b7061a47aeb11d2d86b4f729e
Resolve Appeal https://explorer-studio.genlayer.com/tx/0x0e08ab0b2520569b9e7bc121d406472222db63831243a454b7dc4bebd22ac04a
Settle https://explorer-studio.genlayer.com/tx/0x567b62750f4502fb68f99d334f3bd884b6af7432ef1aa473ce808e576f575214

Test result:

Schema valid
21 smoke writes finalized
38/38
Static frontend bundled for standalone Vercel deployment

Frontend

Sibyl ships as a standalone static app:

  • wallet connection through the bundled browser client
  • GenLayer reads through genlayer-js
  • writes routed through the connected EVM wallet
  • bundled shared/ client files keep the Vercel deployment self-contained
  • deployed contract address pinned in app.js and deployment.json

Run Locally

From this repository folder:

python -m http.server 8080

Open:

http://localhost:8080/

Deploy

npx --yes vercel@latest --prod --yes

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

Public files include frontend code, contract source, deployment metadata, tests, and non-sensitive proof links.

About

GenLayer Studionet parametric insurance dApp.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors