HCS-10
Ordered topic operations and connection lifecycle; transaction proposals can require approval.
- HOL Standards SDKsdk
Project exists; the composed workflow and pinned-version support have not been tested here.
Workflow comparison
Compare HCS-10 channels with A2A messages, tasks, artifacts and cancellation.
Execution not verified by this analysis
These are version-specific editorial comparisons. Proposed crosswalks and untested acceptance criteria do not establish interoperability or a collaboration agreement. Schema review: 2026-11-12.
Work reaches the intended agent, produces a correlated result, and survives retries, approval pauses and cancellation without affecting unrelated work.
Ordered topic operations and connection lifecycle; transaction proposals can require approval.
Project exists; the composed workflow and pinned-version support have not been tested here.
Task-oriented work with messages, artifacts, state and cancellation.
Project exists; the composed workflow and pinned-version support have not been tested here.
Project exists; the composed workflow and pinned-version support have not been tested here.
The message operation records payload and operator.
Message and Task support delegated work.
Connection state is not a per-task lifecycle; define a task profile.
Task state and cancellation are explicit.
Messages carry results, but an artifact/lifecycle envelope needs definition.
Artifacts carry typed parts associated with tasks.
Each direction is assessed separately. Required fields, transformations, information loss and externally supplied values need their own validation.
Project a recorded message into an A2A message envelope; task state is maintained separately.
Draft observed 2026-11-12 → 1.0.1
| Source → target | Required data & transformation | Constraints / loss |
|---|---|---|
data → partsrequired | transform Decode the HCS payload or resolve its HRL, then construct typed A2A Parts. | Encoding, media type and large-object integrity require a profile. |
External input → messageIdrequired | supplied Create a stable bridge ID correlated to the source topic event. | Do not use a topic ID alone: one topic contains many messages. |
operator_id → rolerequired | gap Assign the correct A2A sender role only after validating actor and conversation direction. | Operator identity is not an A2A role enum. |
External input → contextIdconditional | supplied Maintain a scoped conversation correlation table. | A topic may carry more than one task or context. |
Required target gaps: role
Source fields to retain or account for: p, op, m
Wrap a typed A2A payload in a valid HCS operation while retaining A2A correlation outside the native envelope.
1.0.1 → Draft observed 2026-11-12
| Source → target | Required data & transformation | Constraints / loss |
|---|---|---|
parts → datarequired | transform Serialize a versioned payload or publish a resolvable HRL for large content. | Preserve part media types and ordering; do not flatten binary content to text. |
External input → prequired | supplied Use protocol discriminator hcs-10. | Validate against the selected HCS version. |
External input → oprequired | supplied Use the message operation. | This does not create a task lifecycle operation. |
External input → operator_idrequired | gap Supply the authenticated HCS operator identifier. | An A2A role or message ID cannot establish HCS authority. |
Required target gaps: operator_id
Source fields to retain or account for: messageId, role, contextId, taskId, metadata, extensions, referenceTaskIds
Semantic gap
HCS connection closure does not cancel an individual A2A Task. A bridge needs independent task IDs, state transitions, retries and cancellation rules.
Verify: Cancel one of two tasks sharing a topic; the unrelated task must remain active.
Semantic gap
A scheduled transaction proposal or authentication-required state must not be emitted as a completed business action.
Verify: Test approval, rejection, timeout and duplicate delivery before reporting a result.
Required data
Required target field has no usable mapping in this crosswalk.
Verify: Specify a trusted source and validate a destination instance against the pinned schema.
External input
Create a stable bridge ID correlated to the source topic event.
Verify: Confirm its authoritative source and validate the supplied value. Do not use a topic ID alone: one topic contains many messages.
External input
Maintain a scoped conversation correlation table.
Verify: Confirm its authoritative source and validate the supplied value. A topic may carry more than one task or context.
Semantic gap
Decide what may be written to consensus topics and what remains in protected storage; authenticated API access alone does not authorize public persistence.
Verify: Use synthetic fixtures to verify payload visibility and protected-reference handling.
Required data
Required target field has no usable mapping in this crosswalk.
Verify: Specify a trusted source and validate a destination instance against the pinned schema.
External input
Use protocol discriminator hcs-10.
Verify: Confirm its authoritative source and validate the supplied value. Validate against the selected HCS version.
External input
Use the message operation.
Verify: Confirm its authoritative source and validate the supplied value. This does not create a task lifecycle operation.
Trace one source event through the remote task and each artifact, including retries.
Cancel one task on a shared channel without stopping other work.
Test approval-required, rejected, failed and successful states separately.
Replay events after disconnect and demonstrate the intended idempotency behavior.
Selected publisher definitions, with snapshot hashes and scope limits. These excerpts are not standalone validators.
Artifact definition only; referenced definitions and validation prose remain normative; lines 280–293.
Primary sourcemessage Artifact {
// Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.
string artifact_id = 1 [(google.api.field_behavior) = REQUIRED];
// A human readable name for the artifact.
string name = 2;
// Optional. A human readable description of the artifact.
string description = 3;
// The content of the artifact. Must contain at least one part.
repeated Part parts = 4 [(google.api.field_behavior) = REQUIRED];
// Optional. Metadata included with the artifact.
google.protobuf.Struct metadata = 5;
// The URIs of extensions that are present or contributed to this Artifact.
repeated string extensions = 6;
}CancelTaskRequest definition only; referenced definitions and validation prose remain normative; lines 715–723.
Primary sourcemessage CancelTaskRequest {
// Optional. Opaque routing identifier. Must match the `tenant` value from
// the selected `AgentInterface` in the Agent Card when that field is set.
string tenant = 1;
// The resource ID of the task to cancel.
string id = 2 [(google.api.field_behavior) = REQUIRED];
// A flexible key-value map for passing additional context or parameters.
google.protobuf.Struct metadata = 3;
}Message definition only; referenced definitions and validation prose remain normative; lines 260–277.
Primary sourcemessage Message {
// The unique identifier (e.g. UUID) of the message. This is created by the message creator.
string message_id = 1 [(google.api.field_behavior) = REQUIRED];
// Optional. The context id of the message. If set, the message will be associated with the given context.
string context_id = 2;
// Optional. The task id of the message. If set, the message will be associated with the given task.
string task_id = 3;
// Identifies the sender of the message.
Role role = 4 [(google.api.field_behavior) = REQUIRED];
// Parts is the container of the message content.
repeated Part parts = 5 [(google.api.field_behavior) = REQUIRED];
// Optional. Any metadata to provide along with the message.
google.protobuf.Struct metadata = 6;
// The URIs of extensions that are present or contributed to this Message.
repeated string extensions = 7;
// A list of task IDs that this message references for additional context.
repeated string reference_task_ids = 8;
}Part definition only; referenced definitions and validation prose remain normative; lines 224–242.
Primary sourcemessage Part {
oneof content {
// The string content of the `text` part.
string text = 1;
// The `raw` byte content of a file. In JSON serialization, this is encoded as a base64 string.
bytes raw = 2;
// A `url` pointing to the file's content.
string url = 3;
// Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null).
google.protobuf.Value data = 4;
}
// Optional. metadata associated with this part.
google.protobuf.Struct metadata = 5;
// An optional `filename` for the file (e.g., "document.pdf").
string filename = 6;
// The `media_type` (MIME type) of the part content (e.g., "text/plain", "application/json", "image/png").
// This field is available for all part types.
string media_type = 7;
}Task definition only; referenced definitions and validation prose remain normative; lines 167–184.
Primary sourcemessage Task {
// Unique identifier (e.g. UUID) for the task, generated by the server for a
// new task.
string id = 1 [(google.api.field_behavior) = REQUIRED];
// Unique identifier (e.g. UUID) for the contextual collection of interactions
// (tasks and messages).
string context_id = 2;
// The current status of a `Task`, including `state` and a `message`.
TaskStatus status = 3 [(google.api.field_behavior) = REQUIRED];
// A set of output artifacts for a `Task`.
repeated Artifact artifacts = 4;
// protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
// The history of interactions from a `Task`.
repeated Message history = 5;
// protolint:enable REPEATED_FIELD_NAMES_PLURALIZED
// A key/value object to store custom metadata about a task.
google.protobuf.Struct metadata = 6;
}TaskState definition only; referenced definitions and validation prose remain normative; lines 187–208.
Primary sourceenum TaskState {
// The task is in an unknown or indeterminate state.
TASK_STATE_UNSPECIFIED = 0;
// Indicates that a task has been successfully submitted and acknowledged.
TASK_STATE_SUBMITTED = 1;
// Indicates that a task is actively being processed by the agent.
TASK_STATE_WORKING = 2;
// Indicates that a task has finished successfully. This is a terminal state.
TASK_STATE_COMPLETED = 3;
// Indicates that a task has finished with an error. This is a terminal state.
TASK_STATE_FAILED = 4;
// Indicates that a task was canceled before completion. This is a terminal state.
TASK_STATE_CANCELED = 5;
// Indicates that the agent requires additional user input to proceed. This is an interrupted state.
TASK_STATE_INPUT_REQUIRED = 6;
// Indicates that the agent has decided to not perform the task.
// This may be done during initial task creation or later once an agent
// has determined it can't or won't proceed. This is a terminal state.
TASK_STATE_REJECTED = 7;
// Indicates that authentication is required to proceed. This is an interrupted state.
TASK_STATE_AUTH_REQUIRED = 8;
}TaskStatus definition only; referenced definitions and validation prose remain normative; lines 211–219.
Primary sourcemessage TaskStatus {
// The current state of this task.
TaskState state = 1 [(google.api.field_behavior) = REQUIRED];
// A message associated with the status.
Message message = 2;
// ISO 8601 Timestamp when the status was recorded.
// Example: "2023-10-27T10:00:00Z"
google.protobuf.Timestamp timestamp = 3;
}Close Connection Operation section; exact source excerpt, not a generated JSON Schema; lines 668–691.
Primary source##### **Close Connection Operation**
Sent on a Connection Topic by one of the participating agents to explicitly signal the end of the communication session.
```json
{
"p": "hcs-10",
"op": "close_connection",
"operator_id": "[email protected]",
"reason": "Conversation completed",
"m": "Closing connection."
}
```
**Transaction Memo:** `hcs-10:op:5:3`
| Field | Description | Type | Example Value | Required |
| ------------- | ----------------------------------------------------------------------------------------- | -------- | -------------------------- | -------- |
| `p` | Protocol identifier, always "hcs-10". | `string` | `"hcs-10"` | ✅ |
| `op` | Operation identifier, always "close_connection". | `string` | `"close_connection"` | ✅ |
| `operator_id` | Identifier for the agent initiating the closure in the format `inboundTopicId@accountId`. | `string` | `"[email protected]"` | ✅ |
| `reason` | Optional reason for closing the connection. | `string` | `"Conversation completed"` | ❌ |
| `m` | Optional memo providing context for the close operation. | `string` | `"Closing connection."` | ❌ |Message Operation section; exact source excerpt, not a generated JSON Schema; lines 632–667.
Primary source##### **Message Operation**
Used for sending standard messages between parties on an established Connection Topic.
```json
{
"p": "hcs-10",
"op": "message",
"operator_id": "[email protected]",
"data": "Hello, this is a message from Agent A to Agent B.",
"m": "Standard communication message."
}
```
**Transaction Memo:** `hcs-10:op:6:3`
| Field | Description | Type | Example Value | Required |
| ------------- | --------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------- | -------- |
| `p` | Protocol identifier, always "hcs-10". | `string` | `"hcs-10"` | ✅ |
| `op` | Operation identifier, always "message". | `string` | `"message"` | ✅ |
| `operator_id` | Identifier for the sending agent in the format `inboundTopicId@accountId`. | `string` | `"[email protected]"` | ✅ |
| `data` | The message content. Can be a plain string, JSON string, or an HRL reference (`hcs://1/topicId`) for large messages (>1KB). | `string` | `"Hello, this is a message..."` | ✅ |
| `m` | Optional memo providing context for the message. | `string` | `"Standard message."` | ❌ |
The `data` field typically contains a string value, but agents may also encode structured data as a JSON string if they prefer:
```json
{
"p": "hcs-10",
"op": "message",
"operator_id": "[email protected]",
"data": "{\"content\":\"Hello Bob\",\"metadata\":{\"timestamp\":1709654845}}",
"m": "Message with JSON-encoded structured data."
}
```Transaction Operation section; exact source excerpt, not a generated JSON Schema; lines 692–758.
Primary source##### **Transaction Operation**
Sent on a Connection Topic to propose a scheduled transaction that requires approval or signature from the recipient. This enables approval-required workflows where an entity (human or agent) can prepare a transaction that another entity must approve before execution.
```json
{
"p": "hcs-10",
"op": "transaction",
"operator_id": "[email protected]",
"schedule_id": "0.0.987654",
"data": "Transfer 10 HBAR to account 0.0.111222",
"m": "Scheduled transaction for your approval."
}
```
| Field | Description | Type | Example Value | Required |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------------------------------------------- | -------- |
| `p` | Protocol identifier, always "hcs-10". | `string` | `"hcs-10"` | ✅ |
| `op` | Operation identifier, always "transaction". | `string` | `"transaction"` | ✅ |
| `operator_id` | Identifier for the entity proposing the transaction in the format `inboundTopicId@accountId`. | `string` | `"[email protected]"` | ✅ |
| `schedule_id` | The Hedera Schedule ID of the scheduled transaction. | `string` | `"0.0.987654"` | ✅ |
| `data` | Content describing the transaction. Typically a human-readable string, but can also be a JSON string for structured data or an HRL for extensive details. | `string` | `"Transfer 10 HBAR to account 0.0.111222"` | ✅ |
| `m` | Optional memo providing context for the transaction proposal. | `string` | `"Scheduled transaction for your approval."` | ❌ |
The recipient of this operation can approve the scheduled transaction by signing it with their Hedera account key through a ScheduleSignTransaction. No additional message is required in the HCS-10 protocol, as the transaction execution on Hedera serves as confirmation.
**Examples of `data` field usage in `transaction` operation:**
1. **Simple human-readable string:**
```json
{
"p": "hcs-10",
"op": "transaction",
"operator_id": "[email protected]",
"schedule_id": "0.0.987654",
"data": "Proposal to transfer 500 HTS_TOKEN_XYZ to eco_fund.c10 for Q4 budget allocation.",
"m": "Q4 Budget Allocation Proposal"
}
```
2. **JSON string for structured data (e.g., parameters for a smart contract call):**
```json
{
"p": "hcs-10",
"op": "transaction",
"operator_id": "[email protected]",
"schedule_id": "0.0.112233",
"data": "{\"contract_id\":\"0.0.445566\",\"function_name\":\"updateVotingThreshold\",\"params\":[{\"name\":\"newThreshold\",\"value\":75,\"type\":\"uint256\"}]}",
"m": "DAO Proposal: Update Voting Threshold"
}
```
3. **HRL reference for extensive documentation or complex proposal details:**
```json
{
"p": "hcs-10",
"op": "transaction",
"operator_id": "[email protected]",
"schedule_id": "0.0.778899",
"data": "hcs://1/0.0.990011",
"m": "Review full Project Phoenix proposal (see HRL)"
}
```