236 lines
8.0 KiB
JSON
236 lines
8.0 KiB
JSON
{
|
|
"chainId": "echain_agent-auto-loop",
|
|
"schemaVersion": 1,
|
|
"scenario": "agent-automation-closed-loop",
|
|
"title": "Agent automation closed loop MVP",
|
|
"environment": "dev",
|
|
"projectId": "prj_evidence-chain",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"gatewaySessionId": "gws_evidence-gateway-001",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"resourceId": "res_boxsim-beta",
|
|
"capabilityId": "cap_firmware-smoke",
|
|
"hardwareOperation": {
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"gatewaySessionId": "gws_evidence-gateway-001",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"resourceId": "res_boxsim-beta",
|
|
"capabilityId": "cap_firmware-smoke",
|
|
"requestedBy": "wkr_agent-auto-001",
|
|
"input": {
|
|
"command": "firmware-smoke",
|
|
"timeoutSeconds": 60
|
|
},
|
|
"output": {
|
|
"exitCode": 0,
|
|
"result": "passed"
|
|
},
|
|
"status": "succeeded",
|
|
"environment": "dev",
|
|
"requestedAt": "2026-05-21T00:20:02.000Z",
|
|
"startedAt": "2026-05-21T00:20:03.000Z",
|
|
"completedAt": "2026-05-21T00:20:05.000Z",
|
|
"updatedAt": "2026-05-21T00:20:05.000Z"
|
|
},
|
|
"auditEvents": [
|
|
{
|
|
"auditId": "aud_agent-auto-session-started",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"actorType": "user",
|
|
"actorId": "usr_alice",
|
|
"action": "agent.session.started",
|
|
"targetType": "agent_session",
|
|
"targetId": "ags_agent-auto-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-agent-mgr",
|
|
"environment": "dev",
|
|
"outcome": "accepted",
|
|
"metadata": {
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"goal": "run firmware smoke and persist evidence"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:00.000Z"
|
|
},
|
|
{
|
|
"auditId": "aud_agent-auto-worker-started",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"actorType": "agent",
|
|
"actorId": "agt_agent-auto-001",
|
|
"action": "worker.session.started",
|
|
"targetType": "worker_session",
|
|
"targetId": "wks_agent-auto-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"gatewaySessionId": "gws_evidence-gateway-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-agent-worker",
|
|
"environment": "dev",
|
|
"outcome": "accepted",
|
|
"metadata": {
|
|
"agentSessionId": "ags_agent-auto-001"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:01.000Z"
|
|
},
|
|
{
|
|
"auditId": "aud_agent-auto-operation-requested",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"actorType": "worker",
|
|
"actorId": "wkr_agent-auto-001",
|
|
"action": "hardware.operation.requested",
|
|
"targetType": "hardware_operation",
|
|
"targetId": "op_agent-auto-loop-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"gatewaySessionId": "gws_evidence-gateway-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-agent-worker",
|
|
"environment": "dev",
|
|
"outcome": "accepted",
|
|
"metadata": {
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"capabilityId": "cap_firmware-smoke"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:02.000Z"
|
|
},
|
|
{
|
|
"auditId": "aud_agent-auto-operation-succeeded",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"actorType": "service",
|
|
"actorId": "svc_hwlab-box-simu",
|
|
"action": "hardware.operation.succeeded",
|
|
"targetType": "hardware_operation",
|
|
"targetId": "op_agent-auto-loop-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"gatewaySessionId": "gws_evidence-gateway-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-box-simu",
|
|
"environment": "dev",
|
|
"outcome": "succeeded",
|
|
"metadata": {
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"exitCode": 0
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:05.000Z"
|
|
},
|
|
{
|
|
"auditId": "aud_agent-auto-evidence-recorded",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"actorType": "worker",
|
|
"actorId": "wkr_agent-auto-001",
|
|
"action": "evidence.recorded",
|
|
"targetType": "evidence_record",
|
|
"targetId": "evd_agent-auto-report",
|
|
"projectId": "prj_evidence-chain",
|
|
"gatewaySessionId": "gws_evidence-gateway-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-agent-worker",
|
|
"environment": "dev",
|
|
"outcome": "succeeded",
|
|
"metadata": {
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"evidenceId": "evd_agent-auto-report",
|
|
"evidenceKind": "report"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:06.000Z"
|
|
}
|
|
],
|
|
"traceEvents": [
|
|
{
|
|
"traceEventId": "tev_agent-auto-goal",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-agent-mgr",
|
|
"level": "info",
|
|
"message": "Agent session accepted automation goal",
|
|
"environment": "dev",
|
|
"metadata": {
|
|
"auditId": "aud_agent-auto-session-started"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:00.000Z"
|
|
},
|
|
{
|
|
"traceEventId": "tev_agent-auto-worker",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-agent-worker",
|
|
"level": "info",
|
|
"message": "Worker requested firmware smoke operation",
|
|
"environment": "dev",
|
|
"metadata": {
|
|
"auditId": "aud_agent-auto-operation-requested"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:02.000Z"
|
|
},
|
|
{
|
|
"traceEventId": "tev_agent-auto-operation",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-box-simu",
|
|
"level": "info",
|
|
"message": "Firmware smoke operation completed",
|
|
"environment": "dev",
|
|
"metadata": {
|
|
"auditId": "aud_agent-auto-operation-succeeded"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:05.000Z"
|
|
},
|
|
{
|
|
"traceEventId": "tev_agent-auto-evidence",
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"projectId": "prj_evidence-chain",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"serviceId": "hwlab-agent-worker",
|
|
"level": "info",
|
|
"message": "Agent report evidence persisted",
|
|
"environment": "dev",
|
|
"metadata": {
|
|
"auditId": "aud_agent-auto-evidence-recorded",
|
|
"evidenceId": "evd_agent-auto-report"
|
|
},
|
|
"occurredAt": "2026-05-21T00:20:06.000Z"
|
|
}
|
|
],
|
|
"evidenceRecords": [
|
|
{
|
|
"evidenceId": "evd_agent-auto-report",
|
|
"projectId": "prj_evidence-chain",
|
|
"operationId": "op_agent-auto-loop-001",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"kind": "report",
|
|
"uri": "protocol/examples/evidence-chain/artifacts/agent-automation-report.json",
|
|
"mimeType": "application/json",
|
|
"sha256": "2fc63687cd3170c9cf34cd650aaedfb84d3fe75683ae969ae286230ce3b425a7",
|
|
"sizeBytes": 340,
|
|
"serviceId": "hwlab-agent-worker",
|
|
"environment": "dev",
|
|
"metadata": {
|
|
"traceId": "trc_agent-auto-loop-001",
|
|
"producedByAuditId": "aud_agent-auto-evidence-recorded",
|
|
"agentSessionId": "ags_agent-auto-001",
|
|
"workerSessionId": "wks_agent-auto-001",
|
|
"producerServiceId": "hwlab-agent-worker"
|
|
},
|
|
"createdAt": "2026-05-21T00:20:06.000Z"
|
|
}
|
|
]
|
|
}
|