This document details the integration of hREA (Holochain Resource-Event-Agent) within the Requests & Offers application. hREA provides the foundation for managing economic flows, resource tracking, and agent relationships in our Holochain-based system.
The application implements the following hREA economic flow:
Intent -> Proposal -> Agreement -> Commitment -> Economic Event
Each step serves a specific purpose:
Intent
: Initial expression of need or offerProposal
: Formalized request or offerAgreement
: Mutual acceptance between partiesCommitment
: Confirmed obligation to fulfillEconomic Event
: Actual fulfillment record
For MVP simplicity, we merge Intent and Proposal in the user experience while maintaining the underlying hREA structure.
- Implemented as hREA Person agents
- Custom profile zome for user management
- Direct integration with hREA agent relationships
- Multi-device profile support through agent linking
- Mapped to hREA Organization agents
- Organization profiles managed through profile zome
- Supports project and team management
- Handles resource and proposal relationships
- Skills implemented as hREA Resource Specifications
- Associated with offers/requests through Intents
- Enables skill matching and tracking
- Supports skill categorization and search
- Uses hREA's
classifiedAs
property - Provides hierarchical organization
- Enables filtered searching
- Supports multiple classification types
- Projects are Organizations with
classifiedAs
"Project" - Managed by parent organizations
- Supports team member relationships
- Tracks project-specific resources and proposals
- Implemented as hREA Proposals
- Single Intent philosophy for simplicity
- Supports:
- Resource specification
- Category classification
- Agent relationships
- Status tracking
- User creates request/offer (Intent/Proposal)
- System enables matching
- Parties reach agreement
- Commitments are recorded
- Fulfillment is tracked
- Utilizes Holochain capability tokens
- Integrates with hREA agent relationships
- Supports:
- Administrative functions
- Role-based access
- Moderation capabilities
- Leverages hREA's GraphQL capabilities
- Enables comprehensive searching across:
- Offers and requests
- Skills and categories
- Projects and organizations
- Agent profiles
- Agent-to-Agent relationships
- Resource associations
- Project connections
- Proposal linkages
- Category classifications
- Global indexes for major entities
- Relationship tracking
- Status management
- Search optimization
-
Query Optimization
- Efficient GraphQL implementation
- Strategic use of indexes
- Optimized search patterns
-
Data Management
- Structured relationship handling
- Efficient state tracking
- Scalable storage approach
- Advanced matching algorithms
- Enhanced commitment tracking
- Complex resource management
- Extended economic event logging
- Additional hREA capabilities
- Enhanced querying features
- Advanced reporting tools
- Extended classification systems