Skip to content

docs: add obol-stack technical specification bundle#297

Open
bussyjd wants to merge 3 commits intomainfrom
docs/spec-bundle
Open

docs: add obol-stack technical specification bundle#297
bussyjd wants to merge 3 commits intomainfrom
docs/spec-bundle

Conversation

@bussyjd
Copy link
Copy Markdown
Collaborator

@bussyjd bussyjd commented Mar 29, 2026

Summary

  • Install backend-service-spec-bundler skill for structured spec generation
  • Generate comprehensive technical specification bundle for the obol-stack platform
  • Add autoresearch and reth-indexer issue specs with Gherkin features

Spec Bundle (docs/specs/)

Document Lines Content
SPEC.md 1,452 9 subsystems, terminology, constraints, Mermaid diagrams
ARCHITECTURE.md 966 C4 diagrams (3 levels), sequence diagrams, module decomposition
BEHAVIORS_AND_EXPECTATIONS.md 667 28 desired behaviors, 6 undesired, 7 edge cases, guardrails
CONTRIBUTING.md 199 9 non-negotiable developer rules
7 BDD feature files 1,156 126 Gherkin scenarios across all subsystems
6 ADRs 379 k3d, LiteLLM, x402, pre-signed buyer, Gateway API, ERC-8004

Issue Specs (docs/issues/)

  • issue-autoresearch-helm-chart.md — reward engine, commit-reveal verification, escrow settlement
  • issue-reth-erc8004-indexer-helm-chart.md — 3-tier discovery fallback, Helm chart structure
  • 9 Gherkin feature files for autoresearch flows
  • Escrow contract cross-reference analysis
  • Option A settlement flow diagram (zero custom contracts)

Skill Installation

backend-service-spec-bundler installed at .agents/skills/ with symlink in .claude/skills/ — reusable for future spec generation.

Test plan

  • Verify Mermaid diagrams render correctly on GitHub
  • Cross-references between SPEC ↔ B&E ↔ features are consistent
  • Feature file scenarios match documented behaviors
  • ADR decisions align with current codebase state

bussyjd added 3 commits March 27, 2026 07:25
…ures

Two issue specifications for carving PR #288 into focused PRs:

1. reth-erc8004-indexer Helm chart
   - Standalone chart with 3-tier discovery fallback
   - Reth indexer → BaseScan (native ERC-8004 metadata) → 8004scan
   - Go DiscoveryClient interface with FallbackClient

2. Autoresearch infrastructure Helm chart
   - Round-based reward engine with OPOW influence calculation
   - Anti-monopoly parity formula penalizing concentrated workers
   - Commit-reveal Merkle proof verification
   - Escrow settlement via x402 Commerce Payments Protocol
     (5x-audited Base contracts, zero custom Solidity)
   - x402-rs implications and contribution path

9 Gherkin feature files (40+ scenarios):
   - escrow_round_lifecycle.feature (fixed: receiver is per-PaymentInfo,
     uses RewardDistributor contract as single receiver)
   - opow_influence_calculation_with_anti_monopoly_parity.feature
     (fixed: penalty values verified against TIG opow.rs math,
     added single-challenge and phase-in scenarios)
   - commit_reveal_work_verification.feature
   - reward_pool_distribution_across_roles.feature
   - multi_tier_worker_discovery_with_fallback.feature
   - end_to_end_autoresearch_round.feature
   - erc8004_identity_lifecycle.feature (NEW: registration, transfer,
     deactivation, schema validation during active rounds)
   - leaderboard_api.feature (NEW: REST API, historical rounds,
     cumulative earnings)
   - round_state_continuity.feature (NEW: fund rollover, atomic
     transitions, worker state reset, on-chain auditability)

Cross-reference analysis:
   - escrow_contract_cross_reference.md (AuthCaptureEscrow contract audit)
   - FEATURE_REVIEW.md (comprehensive gap analysis vs ERC-8004/x402)
Platform wallet is payer, operator, AND receiver. Escrow is used for
verifiable commitment (workers see locked pool on-chain before working),
not for routing. After capture() returns USDC to platform wallet,
standard ERC20 transfers distribute to workers/innovators.

Zero custom Solidity. Zero new deployments. Zero new audits.
Only AuthCaptureEscrow (5x audited) + USDC.transfer().
Install backend-service-spec-bundler skill and generate comprehensive
spec bundle covering all 9 core subsystems: stack lifecycle, LLM routing,
network/RPC gateway, sell-side monetization, buy-side payments, OpenClaw
& skills, tunnel management, ERC-8004 identity, standalone inference.

- SPEC.md: 1452-line technical specification with Mermaid diagrams
- ARCHITECTURE.md: C4 diagrams, module decomposition, data flows
- BEHAVIORS_AND_EXPECTATIONS.md: 28 desired, 6 undesired, 7 edge cases
- CONTRIBUTING.md: 9 non-negotiable developer rules
- 7 BDD feature files (126 Gherkin scenarios)
- 6 ADRs (k3d, LiteLLM, x402, pre-signed buyer, Gateway API, ERC-8004)
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