Agent Morphogenesis quickstart
This quickstart demonstrates source behavior locally. It does not deploy a production control plane or authorize real external effects.
Prerequisites
- Node.js
20.19.3or newer; - pnpm;
- an AgentPlat checkout using one coordinated package version.
git clone https://github.com/Agentplat/agentplat.git
cd agentplat
pnpm install
pnpm example:agent-morphogenesisAdditional examples exercise advanced topology operators and strategy adaptation:
pnpm example:agent-morphogenesis:advanced
pnpm example:agent-morphogenesis:strategy-adaptationMinimal integration shape
import {
createMorphogenesisNeedV1,
createMorphogenesisPolicyV1,
createMorphogenesisProposalV1,
MorphogenesisExecutionRuntimeV1,
} from "@agentplat/collective-runtime/morphogenesis";A real integration must provide more than these constructors. It supplies:
- authenticated and freshness-checked morphology source heads;
- a closed
MorphogenesisPolicyV1orMorphogenesisPolicyV2; - a policy-selected decision adapter;
- a separately issued execution authorization and fence;
- concrete Membership, Team, Work, Action and lifecycle ports;
- durable stores for process state, morphology head and receipts; and
- rollback witnesses and idempotent effect reconciliation where required.
Recommended adoption sequence
- Start with
recruit_existingand an in-memory store. - Add an authorized-agent, authorized-person or collective decision adapter.
- Persist Workflow and Morphogenesis state in PostgreSQL.
- Add Agent Room projections for review and observability.
- Add Agent Mesh only when multiple independently executing peers need to exchange bounded evidence.
- Enable advanced V2 operators individually.
- Enable V3–V8 only with explicit policies, evidence collection and rollback plans.
Fail-closed expectations
Do not continue when a required source is missing, stale, rolled back, equivocating or from another scope. Do not treat a proposal as a decision, a decision as an action grant, or an action grant as evidence that an effect committed. Exact receipts close each boundary.
Continue with Governance and Authority and the API Reference.