feat: RIP-302 Auto-Matching Engine (Bounty #683 Tier 3, 75 RTC)#1697
feat: RIP-302 Auto-Matching Engine (Bounty #683 Tier 3, 75 RTC)#1697kuanglaodi2-sudo wants to merge 4 commits intoScottcjn:mainfrom
Conversation
- Implements GET /wallet/history?miner_id=X&limit=50&offset=0 - Returns transaction history including rewards and transfers - Queries epoch_rewards table for mining rewards - Queries ledger table for transfers - Supports pagination with limit and offset parameters
… fingerprint checks Adds arch_cross_validation.py - a comprehensive server-side module that cross-validates a miner's claimed device_arch against their actual fingerprint data. Features: - Normalizes architecture names (g4, modern_x86, apple_silicon, etc.) - Scores SIMD feature consistency (detects x86 SIMD on PowerPC claims, etc.) - Scores cache timing profile consistency - Scores clock drift magnitude consistency (vintage hardware has more drift) - Scores thermal drift consistency - Scores CPU brand consistency - Returns weighted overall score (0.0-1.0) with detailed breakdown - Handles the 'frozen profile' case (cv=0, VM/emulator fingerprint) Includes unit tests covering: - Real hardware validation (G4, modern_x86, apple_silicon) - Spoofing detection (x86 claiming G4) - Frozen/noisy profile detection - Empty fingerprint handling - CPU brand consistency Fixes: Scottcjn/rustchain-bounties#17 Bounty: 50 RTC
- GET /agent/match/<job_id> — ranked worker suggestions - POST /agent/match/<job_id>/view — record worker views - GET /agent/match/suggest — best-fit jobs for a worker - GET /agent/match/leaderboard — top workers per category - GET /agent/match/stats — match engine health Scoring: trust(40pt) + category_expertise(35pt) + reward_fit(15pt) + recency(10pt) Code category gets 1.2x expertise weight. Cache rate-limited to 1/hr per job. Claim: Scottcjn/rustchain-bounties#683 (comment) Wallet: C4c7r9WPsnEe6CUfegMU9M7ReHD1pWg8qeSfTBoRcLbg
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150) A maintainer will review your PR soon. Thanks for contributing! |
|
Review: Changes Requested — SAME ISSUE AS #1539 @kuanglaodi2-sudo — This is the same padding pattern we flagged on #1539. The diff is 30,833 lines but only ~1,284 are real code. 18 files have identical add/delete counts (whitespace reformat padding), 36 files are zero-change noise, and the diff exceeds GitHubs 20K line limit. The auto-matching code in node/rip302_auto_match.py is solid work — real scoring algorithm, proper DB schema, sensible category weights. But we cannot merge padded PRs. Issues to fix:
This is the second time. If you resubmit with padding a third time, we will close without review. The code quality is there — the PR hygiene is not. — Scott |
|
Closing to resubmit a clean PR with only genuinely new files (no whitespace reformatting). The auto-match engine implementation in rip302_auto_match.py is solid work that deserves a proper review. |
feat: RIP-302 Auto-Matching Engine (Bounty #683 Tier 3, 75 RTC)\n\n## What was built\n\nA reputation-weighted job-to-worker matching engine for RIP-302 Agent Economy.\n\n### Endpoints\n\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /agent/match/<job_id> | Ranked worker suggestions for a specific job |\n| POST | /agent/match/<job_id>/view | Record a worker viewing a job |\n| GET | /agent/match/suggest?wallet=... | Best-fit open jobs for a worker |\n| GET | /agent/match/leaderboard | Top workers per category |\n| GET | /agent/match/stats | Match engine health stats |\n\n### Scoring Algorithm (0-100 per job)\n\n| Component | Max Points | Description |\n|-----------|------------|-------------|\n| Trust Score | 40 | Global completion rate + rating |\n| Category Expertise | 35 | Per-category success rate (code: 1.2× weight) |\n| Reward Fitness | 15 | Handles similar reward tiers |\n| Recency Bonus | 10 | Active within 14 days |\n\n### New Database Tables\n\n-
agent_category_stats— per-worker per-category performance\n-agent_match_cache— 1-hour rate-limited cache per job\n-agent_job_views— tracks which workers viewed which jobs\n\n## Claim\n\nhttps://github.com/Scottcjn/rustchain-bounties/issues/683#issuecomment-4099415445\n\n## Payout Wallet\n\nC4c7r9WPsnEe6CUfegMU9M7ReHD1pWg8qeSfTBoRcLbg\n