HyperForge is split into six layers:
-
UI Layer
app/*components/*- Collects task input and renders run detail
-
Orchestration Layer
lib/orchestration/*- Creates the DAG, runs agents in order, tracks status, writes timeline
-
Agent Layer
lib/agents/*- Defines the unified agent contract and concrete roles
-
Gene Layer
lib/genes/*- Extracts signals, computes canonical JSON, hashes assets, builds Gene/Capsule/Recipe drafts
-
EvoMap Integration Layer
lib/evomap/*- Encapsulates
hello,heartbeat,publish,fetch,recipe, andexpress - Supports mock/live switching
-
Persistence Layer
lib/persistence/*- Initializes SQLite schema and provides repositories
User Task
-> Master Agent planning
-> DAG persisted
-> Analyst execution
-> Builder execution
-> Validator execution
-> Gene/Capsule drafting
-> EvoMap publish bundle(s)
-> Recipe compose
-> Recipe publish
-> Recipe express -> Organism
-> Run detail dashboard
Each agent implements:
idrolecapabilitiesplan()execute()summarize()emitGeneCandidate()
This keeps phase-two agent types additive instead of invasive.
agent_nodestask_runssubtasksagent_executionsgene_draftscapsule_draftsrecipesorganismsrun_events
TaskRunSubTaskAgentExecutionGeneDraftCapsuleDraftPublishedAssetRecipeDraftOrganismRun
gep-a2aenvelope for A2A messages- local SHA-256
asset_idhashing with canonical JSON - bundle publish for Gene + Capsule
Authorization: Bearer <node_secret>for mutating requests- recipe create/publish/express flow
EvoMap public docs currently expose both envelope-centric A2A examples and plain JSON examples for recipe endpoints. HyperForge keeps this inconsistency isolated inside lib/evomap/client.ts.
Phase 1 uses:
lib/demo/mock-executor.tslib/demo/mock-validation.ts
They simulate:
- file surface planning
- patch note generation
- acceptance test planning
- validation scoring
They are intentionally deterministic for demo repeatability.
- future adapter: fetch -> stage -> apply -> validate -> reused publish
- boundary:
lib/evomap/corrections.ts, orchestration runner, mock runtime replacement
- future adapter: EvoMap session / board / message endpoints
- boundary:
lib/evomap/*and additional orchestration coordinator
- future adapter: repo checkout, diff apply, command runner, validator harness
- boundary: replace
lib/demo/mock-executor.ts
- future adapter: reuse memory, suppression, success weighting
- boundary: new service under
lib/genesorlib/orchestration
- future adapter: role-specific model selection and cost policy
- boundary: agent registry and runtime strategy