Designing Learning-Enabled Workflows on HUMΛN
HUMΛN Team··8 min
Build on primitives, not parallel stores
A workflow should not invent a private “learning subsystem.” It should:
- Emit feedback with explicit
payload_type→POST /v1/humanos/feedback/events. - Read effective policy →
GET /v1/humanos/policy/effective(includeslearning). - Create proposals when adaptation requires it →
POST /v1/humanos/learning/proposalswithproposal_kind,payload(e.g.action_typefor apply), optionalexplainmetadata. - Move lifecycle and apply only when approved →
PATCH …/proposals/:id,POST …/proposals/:id/apply. - Rollback when humans disagree →
POST …/proposals/:id/rollback. - Publish packages with
humanos.agent.v1+ generatedlearning_contract; validate locally withhuman humanos-manifest validateand CI withhuman marketplace review.
TypeScript (application SDK)
@human/client-sdk:
import { HumanClient } from '@human/client-sdk';
const client = new HumanClient({ apiKey: process.env.HUMAN_API_KEY! });
const effective = await client.humanos.getPolicyEffective();
await client.humanos.recordFeedbackEvent({
payload_type: 'accepted',
scope: 'user',
});
@human/sdk: client.humanosLearning exposes the same routes (getPolicyEffective, recordFeedbackEvent, createLearningProposal, applyLearningProposal, …).
Python / Go (agent runtimes)
Thin REST helpers ship beside the agent SDKs: human_agent.humanos_learning (Python) and human GetPolicyEffective, ApplyLearningProposal, … (Go) — same paths as above.
Monorepo developer guide
End-to-end walkthrough, curl templates, and CLI matrix: clone the repo and open docs/humanos-learning-developer.md.
Series
Part 1 · Part 5 · Primitives: CLI scaffolding · Learning rollback
Learning & Adaptation — Part 6 of 6
Code & Docs