hREA - Holochain Resource-Event-Agent
A transparent and trusted specification for resource and information flows
Introduction
hREA is a Holochain based version of the Valueflows ontology, or language. Below is an article written by Bob Haugen of mikorizal software, describing hREA. Bob and Lynn Foster are the architects of this framework and we are deeply thankful to them for letting us share it here in our newsletter.
We felt it extremely important to share with the community more deeply about hREA, for it is becoming a basic component of many developing Holochain Applications.
Sam Turner / hAppenings.community
Coordinate all the flows
by Bob Haugen
Valueflows is a vocabulary for networks of independent Economic Agents to communicate about Economic Events to coordinate their flows of Economic Resources.
Think of an automotive assembly line. All of the components are made by other Agents in other places and the assembly line just puts them together. In the more extreme versions, like the Toyota Production System of 1975, each component was supposed to arrive at the assembly line Just In Time – no earlier and no later.
Such coordination requires some timely communication, both of plans, but also all the inevitable differences between plan and reality. Valueflows is a vocabulary for such communication.
REA
Valueflows is based on an Ontology (the set of concepts and categories in a subject area, that shows their properties and the relations between them) called REA (Resources, Events and Agents). Here is a collection of references to REA documents: https://www.valueflo.ws/appendix/rea/
Evolution of REA
REA was first published in 1982 as an accounting framework.
In the late 1990's, it evolved into first a supply chain model, and then as a general-purpose economic model.
While a lot of people have written about the accounting aspects of REA, and they are important, this story will not do so.
This story will focus on coordination using the REA supply chain model, first published in 1997, and collectively improved in 2000.
Discoordination
Supply chain problems have been in the news lately, described in Wikipedia as the 2021-2022 global supply chain crisis.
That should provide some idea of the importance of resource flow coordination.
The flows are IPOs...
...Input-Process-Output resource chains, where one resource is the output of one process and then becomes an input to another, thus connecting the processes into a flow. The Agents involved in each Process in the chain need to coordinate with the previous and next Processes about the quantity, quality, and timing of resource flows between them.
For example: a food network
...might include farmers, food processors, restaurants and bakeries, grocery stores, families to eat the food. and vehicles to move everything from place to place. Coordination might be needed between each of those stages: seeds and other inputs for planting crops, workers etc for harvesting crops. when are the crops ready for processing, when is the grain ready for milling and then for baking and then for people to eat, when is the fruit ready for pies, etc.
Or for the example we will feature in this story...
the New York Textile Lab
—-who describe themselves as an ecosystem, and then in their relationship with Fibershed, a network-of-networks, or a community.
They are an association of designers of textile products, for example, clothing. The designers organize their supply chains, which include farmers growing the raw fibers (wool from sheep and alpacas, linen from flax), scouring the raw materials to extract usable textile fibers, spinning the fibers into yarn, weaving and knitting the yarn into textiles, and creating clothing from the textiles.
The coordinator
In the textile supply chains, the designer is the coordinator, communicating with each of the other agents, although the other agents often coordinate between each other, too.
Coordinating the flows to produce finished garments
But in general, the designers creates the design for a line of clothing, while checking out what fibers are likely to become available when. They will get plans for fiber outputs, like what sheep of different breeds and colors are scheduled to be sheared this spring. This information may influence their design.
The designer, or group of designers, then makes orders for what fibers they want, and settles with the producers on quantities, timing, and price.
The designer, or the fiber producers and the designer, then arranges fiber processing with one or more scouring facilities, and transportation between the farms and the other processing facilities.
Similar coordination happens between the scouring facility and the spinning mill, and again between spinning and weaving or knitting, and yet again in producing the finished garments.
The textile supply chains are evolving, too.
From single-designer supply chains, they are evolving into multi-designer networks, where all of the associated designers can collaborate to take advantage of synergies in their textile flows.
For example, groups of designers coordinate to combine orders for fiber and processing to take advantage of minimum orders – and so doing even more coordinating communication.
More of the story
Big flow diagrams
Here's a set of big enlargeable resource flow diagrams from the Textile Labs people: https://mikorizal.org/textile_diagrams.pdf
They want to animate them. Should be fun.
All the diagrams in this story, including the big ones, were created by the New York Textile Labs.
Shared ledger
You could (and the NY Textile Network now does) coordinate the flows using phone calls, text messages, and emails.
But then you would miss the records of what happened, which is useful for many purposes, including: * distributing income according to peoples' contributions to earning it, * distilling the records into repeatable recipes for future flows, * and, of course, accounting.”
Note from Sam and Anita:
hREA is an essential tool to accurately record, define, share and track resource usage across communities. It allows us to coordinate work at scale in decentralised environments; DAOs, open source projects, mutual credit systems, ecovillages, co-ops, multi-business collaborations etc. Any shared endeavour across community groups, businesses and borders can use hREA and the Holochain ledger to harmonise their efforts in ways that truly reflect the value and externalities of their contributions as a whole.
To find out more about hREA and how it can be used check out these links:
To Support/Donate to hREA, go to Open Collective: https://opencollective.com/hrea
Discord: https://discord.gg/um4UsxdFDk
Developer Documentation: https://docs.hrea.io
Github: https://github.com/h-rea
Current projects using hREA include:
New York Textile Lab - A design and consulting company designing yarns and textiles that connect designers to fiber producers and mills to help grow an economically diverse textile supply ecosystem. The resources that we provide give designers agency to make better decisions about their social and environmental investments.
Sensorica - A stigmergic environment for synergistic open innovation, leveraging collective intelligence. “hREA Demo For NRP-CAS - The objective of this project is to improve collaboration in commons-based peer production (CBPP). We do that by tracking contributions to digital assets using a hREA implementation of ValueFlows (VF), an ontology for modelling economic processes in a distributed network of agents, on Holochain (HC).”
REA Playspace, a graphical interface to play with Valueflows: https://github.com/lightningrodlabs/rea-playspace (note you’ll need to add this to Holochain Launcher from your Filesystem as described in the link).
Our next newsletter we feature a new hREA and Holochain project called Sustafy!
🌟 Latest Official News from Holochain and Holo
Holo and Holochain continue to progress development and reach new milestones. The Holo roadmap has been updated and you can see three further milestones are now marked as complete:
Hosting Payments Alpha
HoloFuel Countersigning
Holo Platform updated to Holochain Beta
Developer Training Recap: They Learned to Build on Holochain - “This March we hosted a four day, online developer training. This training focused on giving developers the skills needed to develop Holochain applications in a clean, simple, and robust manner; and it taught them to reason about distributed systems from an agent-centric perspective.”
A Self-Paced Online Course for developers - “We expect to have more dev training sessions in the future, but in the meantime we are producing a self-paced, online course available to anyone who wants to learn to develop on Holochain.
This course will consist of recordings from the March dev training so that you get the same information and education that we provided to this past cohort. You’ll need to know some Rust, and there won’t be the hands-on element, but by supplementing your experience with online build events, Discord office hours, and the support of our thriving developer community, we think that this course will help you grow as a Holochain developer.”
🌟Latest News from the Holoverse:
AD4M & Flux: Beyond Applications - “After some years of informal partnership with the Flux (and former Junto) team, we recently agreed to formally merge, and spawn an organisation that both stewards the development of AD4M as an open-source framework and builds Flux and other apps on AD4M as well as services for the projected AD4M ecosystem.”
Designing Economies “The Mycelial Way”, by Ferananda Ibarra of Commons Engine in Weave Magazine - “How can Web3 enable economies that create the intelligence & coherence biological systems exhibit? First use a platform designed for the task, Holochain!”
NH💞NZ Events and other surprises, Neighbourhoods - “Two weeks ago we released a developer preview of our Toolkit 0.0.1. But, what’s a developer toolkit without an ecosystem of builders and communities? We are happy to report that we are also ramping up our efforts to grow our network of external collaborators. We want developers, organizers, and distributed computing enthusiasts everywhere to know what we’re up to and why it matters.”
Do you want to develop Neighbourhoods applets? “Neighbourhoods is seeking developers of applets to help realize a network of self-determined communities using fully distributed social apps to work, play, and connect.”
If you have a Holochain Project and have news, events, articles or videos you’d like to submit for possible Newsletter inclusion, please contact us and/or become a Creator/Member!
🌟 Upcoming Events:
Holochain Mini Hackathon Copenhagen - Sunday, April 9, 2023
10:00 AM to 5:30 PM CEST, Copenhagen. “Join us at the Annekset, Teaterøen, Refshaleøen for a day of building and playing with P2P Apps. Please RSVP. Spots are limited. Come use our scaffolding tools to make fully distributed apps without having high-level dev skills. Come play with a whole bunch of Apps that already exist and start exploring how they could be useful to you and your communities.”Gather - a hApp on Holochain Launcher is an “An event management app so that you can set up, find, manage and join events that happen within your group.” Download it to your Launcher from the App Library and keep an eye out for ecosystem events! See this ‘how-to’ on downloading Holochain Launcher for advice!
🌟 Newest Videos:
Credit Clearing Algorithm - Dev Training hApp Demo - “Dev Training Cohort members Julian, Ross, Che, and Leo explain their credit clearing algorithm project and talk about starting to develop on Holochain.”
TrustGraph - Dev Training hApp Demo - “TrustGraph is a reputation system built for platform interoperability that leans into peer-to-peer networks through its transitive trust algorithm that can be used for things like feed filtering. Dev training cohort member Harlan Wood explains one way this might be integrated into a hApp like Mewsfeed.”
Developer Preview of Neighbourhoods Toolkit 0.0.1 - “We’re excited to share a major milestone: a developer preview of our NH Toolkit 0.0.1. It includes early versions of dev tools that will support features of our Toolkit for distributed social groups.’
🌟 Job Board
Technical Project Manager, Holo EMEA - 100% Remote Work
Senior Software Tester, Holo - 100% Remote Work
Developer Relations Lead, Holo - 100% Remote Work
If you are a developer looking for gigs, check out the leads on Dev-HC on Discord, at the Gig-Matching Section!
If you have a Holochain Project or Supportive organization, and have job openings, please do let us know so we can post your listings!
🌟Other Related News & Events
Annual Global Sociocracy Conference - 4th - 5th May Online “As this period of transformation unfolds, we invite you to join us in celebrating the progress and learning of the collaboration and Sociocracy movement.
MyData 2023 Conference - 30th May - 1st June, Helsinki Finland “The most impactful personal data event you can attend: a two-day event of live sessions and activities to accelerate a fair data economy. Stakeholders and decision-makers will represent Business, Legal, Tech and Social perspectives.” One of the founders of this event is a community member!
🌟 And, find more here!
Are you Curious? Click here to learn more!
Are you an Advocate for Holochain and the projects being built on it? Click here to explore!
Are you a Creator of Holochain Projects? Whether you are a developer, designer or have just a GREAT idea, this would be your place to begin. Click here to check it out!
Creator/Member Portal: Are you currently, or within the next year starting a Holochain Project? You’ll want all the extended information and ability to submit your events/job listings and project updates! Click here to become a member!
And be sure explore ways to Support the Ecosystem!
If you have a question, request, or simply a desire to connect more about hAppenings.community please click the link above!