Skip to content

Add WebVerifier intelligent contract - #96

Open
Piu0Piu wants to merge 1 commit into
genlayerlabs:v2-devfrom
Piu0Piu:add-web-verifier
Open

Piu0Piu wants to merge 1 commit into
genlayerlabs:v2-devfrom
Piu0Piu:add-web-verifier

Conversation

@Piu0Piu

@Piu0Piu Piu0Piu commented Sep 25, 2026 •

Copy link
Copy Markdown

What does this PR do?

Adds a WebVerifier intelligent contract that verifies claims against webpage content using GenLayer's non-deterministic web and LLM capabilities.

Changes

  • Added contracts/web_verifier.py
  • Added Direct Mode tests for WebVerifier
  • Uses gl.nondet.web.render() to retrieve webpage content
  • Uses gl.nondet.exec_prompt() to analyze the claim
  • Uses gl.eq_principle.strict_eq() for deterministic consensus
  • Stores the verification result and supporting evidence

Testing

  • pytest -q tests/direct/test_web_verifier.py
  • Test result: 1 passed

Summary by CodeRabbit

  • New Features
    • Added claim verification against webpage content, with results and supporting evidence available for retrieval.
    • Verification results distinguish between verified and unverified claims.
  • Tests
    • Added coverage for submitting a claim and retrieving its verification result.

@github-actions
github-actions Bot changed the base branch from main to v2-dev September 25, 2026 16:37
@github-actions

Copy link
Copy Markdown

This PR targeted main, which is only the default/static branch.

I retargeted it to v2-dev, the active development branch. Pushes to v2-dev automatically fast-forward main.

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 54f61db3-df83-4cb4-a6f4-9e717f228eed

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant