Skip to content

HLP Integration Map

This page is the compact map for embedding HLP in an existing AI system. HLP is the project-defined protocol and SDK. L1 and L0 are integration routes to agent harness and capability ecosystems the host platform already uses.

Responsibility Map

BoundaryOwned hereRouted elsewhere
HLPHuman-owned tasks, checkpoints, reviews, artifacts, ledger entries, audit eventsAgent execution loops, tool invocation, provider transport
L1 agent routeTask-to-run correlation, block/resume, handoff adapters, harness event projectionExisting harnesses, A2A, ACP, AGNTCY-style meshes, custom harnesses
L0 capability routeOptional capability evidence and provenanceMCP, Agent Skills, local tools, function-calling registries

The allowed dependency direction remains downward:

text
HLP -> agent protocol route -> capability protocol route

Lower routes expose capabilities and events. They do not import HLP business objects.

Operation Map

ConcernHLP operationAdapter expectation
Start human-owned worktask.create, task.assignDelegate to an agent run and return a correlated run handle.
Observe harness starttask.startMark the HLP task in progress only for the correlated run.
Pause for human decisioncheckpoint.raiseBlock the corresponding agent run.
Resume after decisioncheckpoint.resolveResume the run with the resolution payload.
Transfer responsibilityownership.transferHandoff execution while preserving task correlation.
Cancel worktask.cancelStop the bound agent run.
Project harness eventscheckpoint.raise, artifact.commitConvert approval, input, choice, and artifact events into HLP objects.
Produce outputartifact.commitPreserve provenance from agent and capability use.
Review outputreview.submit, review.commentFeed human verdicts back to the agent route when changes are requested.
Auditaudit.query, audit.replayKeep enough correlated run/capability evidence to replay the task.

Identity Map

ObjectOwnerStable identityRule
TaskHLPtask_idPrimary identity for the human loop.
CheckpointHLPcheckpoint_idHuman decision point attached to a task.
ReviewHLPreview_idImmutable human verdict and feedback.
ArtifactHLPartifact_id plus versionImmutable deliverable with provenance.
Agent runL1 routeRuntime-specific run_idMust carry HLP Task.id as correlation.
External capability evidenceL0 routeExternalRef(kind="capability")Optional; must not expose transport or invocation details.

Integration Contracts

ContractRuleEvidence
External evidence referenceHLP may store opaque capability evidence refs.External refs contain no transport endpoints or local command strings.
TaskID correlationHLP Task.id survives every agent run and event.Run/event metadata carries the same task id.
Checkpoint-to-Blockcheckpoint.raise blocks the corresponding run; checkpoint.resolve resumes it.Audit replay shows the checkpoint and run transition as one logical pause.
Harness event projectionHarness approval/input/artifact events become HLP objects.Human inbox and audit show checkpoints and reviews without harness internals.
Ownership-to-Handoffownership.transfer preserves task correlation through handoff.The receiving run keeps the original HLP task id.

End-to-End Flow

text
Human principal
  -> HLP task.create
  -> HLP task.assign
  -> Harness delegate(correlation_id = TaskID)
  -> Harness run.started
  -> HLP task.start
  -> L0 capability invoked by the harness
  -> Harness emits needs_approval
  -> HLP checkpoint.raise
  -> Harness block
  -> HLP checkpoint.resolve
  -> Harness resume
  -> Harness emits artifact
  -> HLP artifact.commit
  -> HLP review.submit
  -> HLP audit.replay

The flow is compatible only if the same task identity can be followed from human assignment through agent execution, capability use, checkpoint handling, artifact review, and audit replay.

Implementation Boundaries

If you are building...ImplementThen prove
A Human Loop PlatformHLPTasks, checkpoints, reviews, artifacts, ledger entries, and audit events are first-class records.
An agent harness adapterL1 routeRuns are delegateable, blockable, resumable, handoff-capable, correlated, and able to project human-facing events.
A capability adapterL0 routeCapabilities have stable ids, manifests, provenance, and hidden transport.

Use HLP Conformance for compatibility requirements and Integration Contracts for deeper contract examples.

Human Loop Protocol · HLP wraps existing harnesses with accountable human interaction