[Hackathon #4] Cortensor Governance Agent - MCP Client for DeFi Analysis#85
Open
calderbuild wants to merge 6 commits intocortensor:mainfrom
Open
[Hackathon #4] Cortensor Governance Agent - MCP Client for DeFi Analysis#85calderbuild wants to merge 6 commits intocortensor:mainfrom
calderbuild wants to merge 6 commits intocortensor:mainfrom
Conversation
MCP-Compatible Verifiable Agent Framework for Cortensor Network. Features: - MCP Server with 5 tools (inference, verify, miners, audit, health) - Multi-Agent Swarm (Planner, Executor, Validator, Auditor) - Evidence Bundle with SHA-256 cryptographic integrity - Mock mode for development and testing - 11 passing tests Cortensor Integration: - Uses Cortensor Web2 API (/api/v1/completions) - Session-based inference with PoI consensus - Multi-miner response aggregation Demo: export CORTENSOR_MOCK_MODE=true && python examples/full_workflow_demo.py
Previous submission was an MCP Server. Per official feedback, entries should be MCP clients that connect to Cortensor's existing MCP server at router1-t0.cortensor.app/mcp. New implementation: - MCP Client using 2024-11-05 protocol (HTTP streaming) - Connects to Cortensor MCP and calls cortensor_completions/validate - Governance Analyst Agent for DeFi proposal analysis - Evidence bundle with SHA-256 integrity hash Tested: MCP connection successful, all 10 tools accessible.
- Add REST API support for self-hosted router nodes - Implement full MCP 2024-11-05 protocol with notifications/initialized - Add demo.py showing MCP and REST connection modes - Update README with production-ready documentation - Support API key authentication for VPS routers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Document what the agent does and refuses to do - Add sample demo output for runtime proof - Update evaluation alignment to match Hackathon cortensor#4 criteria - Add bonus features section Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements the competitive hackathon submission pattern per official Cortensor guidance: use /delegate and /validate endpoints instead of simple /completions for higher success rates. Key changes: - Add delegate() method for k-redundant inference across miners - Add validate() method for PoI + PoUW verification - Add session log export for hackathon submission evidence - Add delegate_validate_demo.py demonstrating the full workflow - Update README with competitive submission pattern documentation API endpoints: - /api/v1/delegate - Delegate tasks to k miners with consensus - /api/v1/validate - Validate results via re-inference Session logs capture complete audit trail with request/response pairs, timestamps, and latency metrics for submission.
Includes: - session_log_20260119_112544.json: Complete session log with 2 delegates + 2 validates - submission_evidence/demo_output.txt: Full demo run output Evidence shows: - /delegate endpoint: consensus 1.0, 3 miners - /validate endpoint: is_valid=true, confidence 0.88-0.92 - JWS attestations included
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cortensor Governance Agent
Hackathon #4 Submission - MCP Client for DeFi Governance Analysis
An intelligent agent that analyzes DeFi governance proposals using the Cortensor decentralized AI network, with built-in verification and cryptographic audit trails.
Highlights
notifications/initializedcortensor_validatefor consensus validationArchitecture
Safety & Constraints
What the Agent Does:
What the Agent Refuses:
Evaluation Alignment
Demo
Bonus Features
/validateendpoint integrationBuilt for Cortensor Hackathon #4 | MIT License