fix(v02): remove legacy code agent control plane
This commit is contained in:
@@ -37,66 +37,6 @@
|
||||
"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",
|
||||
@@ -117,63 +57,9 @@
|
||||
"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",
|
||||
@@ -189,47 +75,7 @@
|
||||
"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"
|
||||
}
|
||||
]
|
||||
"evidenceRecords": []
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"gatewaySessionId": "gws_01J00000000000000000000010",
|
||||
"workerSessionId": "wks_01J00000000000000000000010",
|
||||
"operationId": "op_01J00000000000000000000010",
|
||||
"serviceId": "hwlab-agent-worker",
|
||||
"serviceId": "hwlab-cloud-api",
|
||||
"environment": "dev",
|
||||
"outcome": "succeeded",
|
||||
"reason": "operation_completed",
|
||||
|
||||
@@ -34,7 +34,9 @@
|
||||
"state": "available",
|
||||
"environment": "dev",
|
||||
"metadata": {
|
||||
"ports": ["out0"]
|
||||
"ports": [
|
||||
"out0"
|
||||
]
|
||||
},
|
||||
"createdAt": "2026-05-21T00:00:00.000Z",
|
||||
"updatedAt": "2026-05-21T00:00:00.000Z"
|
||||
@@ -49,7 +51,10 @@
|
||||
"state": "reserved",
|
||||
"environment": "dev",
|
||||
"metadata": {
|
||||
"ports": ["vin", "uart0"]
|
||||
"ports": [
|
||||
"vin",
|
||||
"uart0"
|
||||
]
|
||||
},
|
||||
"createdAt": "2026-05-21T00:00:00.000Z",
|
||||
"updatedAt": "2026-05-21T00:00:00.000Z"
|
||||
@@ -140,28 +145,6 @@
|
||||
"connectionCount": 1
|
||||
}
|
||||
},
|
||||
"agentSession": {
|
||||
"agentSessionId": "ags_01J00000000000000000000010",
|
||||
"projectId": "prj_01J00000000000000000000010",
|
||||
"serviceId": "hwlab-agent-mgr",
|
||||
"status": "active",
|
||||
"environment": "dev",
|
||||
"requestedBy": "usr_01J00000000000000000000010",
|
||||
"goal": "Cycle DUT power and persist evidence.",
|
||||
"startedAt": "2026-05-21T00:00:02.000Z",
|
||||
"updatedAt": "2026-05-21T00:00:02.000Z"
|
||||
},
|
||||
"workerSession": {
|
||||
"workerSessionId": "wks_01J00000000000000000000010",
|
||||
"agentSessionId": "ags_01J00000000000000000000010",
|
||||
"projectId": "prj_01J00000000000000000000010",
|
||||
"serviceId": "hwlab-agent-worker",
|
||||
"gatewaySessionId": "gws_01J00000000000000000000010",
|
||||
"status": "active",
|
||||
"environment": "dev",
|
||||
"startedAt": "2026-05-21T00:00:03.000Z",
|
||||
"updatedAt": "2026-05-21T00:00:03.000Z"
|
||||
},
|
||||
"hardwareOperation": {
|
||||
"operationId": "op_01J00000000000000000000010",
|
||||
"projectId": "prj_01J00000000000000000000010",
|
||||
@@ -185,40 +168,5 @@
|
||||
"completedAt": "2026-05-21T00:00:05.000Z",
|
||||
"updatedAt": "2026-05-21T00:00:05.000Z"
|
||||
},
|
||||
"traceEvents": [
|
||||
{
|
||||
"traceEventId": "tev_01J00000000000000000000010",
|
||||
"traceId": "trc_01J00000000000000000000010",
|
||||
"projectId": "prj_01J00000000000000000000010",
|
||||
"agentSessionId": "ags_01J00000000000000000000010",
|
||||
"workerSessionId": "wks_01J00000000000000000000010",
|
||||
"operationId": "op_01J00000000000000000000010",
|
||||
"serviceId": "hwlab-agent-worker",
|
||||
"level": "info",
|
||||
"message": "hardware operation completed",
|
||||
"environment": "dev",
|
||||
"metadata": {
|
||||
"status": "succeeded"
|
||||
},
|
||||
"occurredAt": "2026-05-21T00:00:05.000Z"
|
||||
}
|
||||
],
|
||||
"evidenceRecord": {
|
||||
"evidenceId": "evd_01J00000000000000000000010",
|
||||
"projectId": "prj_01J00000000000000000000010",
|
||||
"operationId": "op_01J00000000000000000000010",
|
||||
"agentSessionId": "ags_01J00000000000000000000010",
|
||||
"workerSessionId": "wks_01J00000000000000000000010",
|
||||
"kind": "report",
|
||||
"uri": "protocol/examples/m0-contract/evidence/power-cycle-report.md",
|
||||
"mimeType": "text/markdown",
|
||||
"sha256": "0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"sizeBytes": 0,
|
||||
"serviceId": "hwlab-agent-worker",
|
||||
"environment": "dev",
|
||||
"metadata": {
|
||||
"source": "m0_contract_example"
|
||||
},
|
||||
"createdAt": "2026-05-21T00:00:05.000Z"
|
||||
}
|
||||
"traceEvents": []
|
||||
}
|
||||
|
||||
@@ -33,22 +33,6 @@
|
||||
"profile": "dev",
|
||||
"replicas": 1
|
||||
},
|
||||
{
|
||||
"serviceId": "hwlab-agent-mgr",
|
||||
"image": "ghcr.io/pikastech/hwlab-agent-mgr:6509a35",
|
||||
"namespace": "hwlab-dev",
|
||||
"healthPath": "/healthz",
|
||||
"profile": "dev",
|
||||
"replicas": 1
|
||||
},
|
||||
{
|
||||
"serviceId": "hwlab-agent-worker",
|
||||
"image": "ghcr.io/pikastech/hwlab-agent-worker:6509a35",
|
||||
"namespace": "hwlab-dev",
|
||||
"healthPath": "/healthz",
|
||||
"profile": "dev",
|
||||
"replicas": 1
|
||||
},
|
||||
{
|
||||
"serviceId": "hwlab-device-pod",
|
||||
"image": "ghcr.io/pikastech/hwlab-device-pod:6509a35",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"meta": {
|
||||
"traceId": "trc_01J00000000000000000000010",
|
||||
"serviceId": "hwlab-agent-mgr",
|
||||
"serviceId": "hwlab-cloud-api",
|
||||
"environment": "dev"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
"serviceIds": [
|
||||
"hwlab-cloud-api",
|
||||
"hwlab-cloud-web",
|
||||
"hwlab-agent-mgr",
|
||||
"hwlab-agent-worker",
|
||||
"hwlab-device-pod",
|
||||
"hwlab-gateway",
|
||||
"hwlab-gateway-simu",
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
"runtimeSubstitution": "forbidden",
|
||||
"prodDeployment": "forbidden",
|
||||
"realDevDeployment": "out_of_scope",
|
||||
"allowedUniDeskRoles": ["ci", "cd", "code_queue_scheduling"],
|
||||
"allowedUniDeskRoles": [
|
||||
"ci",
|
||||
"cd",
|
||||
"code_queue_scheduling"
|
||||
],
|
||||
"forbiddenRuntimeSubstitutes": [
|
||||
"unidesk-backend",
|
||||
"provider-gateway",
|
||||
@@ -24,8 +28,6 @@
|
||||
"requiredServiceIds": [
|
||||
"hwlab-cloud-api",
|
||||
"hwlab-cloud-web",
|
||||
"hwlab-agent-mgr",
|
||||
"hwlab-agent-worker",
|
||||
"hwlab-gateway",
|
||||
"hwlab-gateway-simu",
|
||||
"hwlab-box-simu",
|
||||
@@ -50,8 +52,6 @@
|
||||
"hwlab-tunnel-client",
|
||||
"hwlab-cloud-api",
|
||||
"hwlab-cloud-web",
|
||||
"hwlab-agent-mgr",
|
||||
"hwlab-agent-worker",
|
||||
"hwlab-gateway-simu",
|
||||
"hwlab-box-simu",
|
||||
"hwlab-patch-panel"
|
||||
@@ -67,8 +67,6 @@
|
||||
"requiredWorkloadServiceIds": [
|
||||
"hwlab-cloud-api",
|
||||
"hwlab-cloud-web",
|
||||
"hwlab-agent-mgr",
|
||||
"hwlab-agent-worker",
|
||||
"hwlab-gateway",
|
||||
"hwlab-gateway-simu",
|
||||
"hwlab-box-simu",
|
||||
@@ -85,7 +83,6 @@
|
||||
"hwlab-gateway",
|
||||
"hwlab-cli",
|
||||
"hwlab-agent-skills",
|
||||
"hwlab-agent-mgr",
|
||||
"hwlab-gateway-simu",
|
||||
"hwlab-box-simu",
|
||||
"hwlab-patch-panel",
|
||||
|
||||
@@ -32,7 +32,7 @@ HWLAB command-style APIs use JSON-RPC 2.0 envelopes.
|
||||
},
|
||||
"meta": {
|
||||
"traceId": "trc_01J00000000000000000000000",
|
||||
"serviceId": "hwlab-agent-mgr",
|
||||
"serviceId": "hwlab-cloud-api",
|
||||
"environment": "dev"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"$ref": "common.json#/$defs/id"
|
||||
},
|
||||
"serviceId": {
|
||||
"const": "hwlab-agent-mgr"
|
||||
"const": "hwlab-cloud-api"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
"enum": [
|
||||
"hwlab-cloud-api",
|
||||
"hwlab-cloud-web",
|
||||
"hwlab-agent-mgr",
|
||||
"hwlab-agent-worker",
|
||||
"hwlab-device-pod",
|
||||
"hwlab-gateway",
|
||||
"hwlab-edge-proxy",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"$ref": "common.json#/$defs/id"
|
||||
},
|
||||
"serviceId": {
|
||||
"const": "hwlab-agent-worker"
|
||||
"const": "hwlab-cloud-api"
|
||||
},
|
||||
"gatewaySessionId": {
|
||||
"$ref": "common.json#/$defs/id"
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
# Topology Constraints
|
||||
|
||||
The MVP topology separates cloud, gateway, worker, simulated box, patch panel,
|
||||
router, tunnel, and edge proxy responsibilities.
|
||||
The MVP topology separates cloud, gateway, AgentRun-backed execution, device pod,
|
||||
hardware transport, and edge proxy responsibilities.
|
||||
|
||||
## Constraints
|
||||
|
||||
- `hwlab-cloud-api` is the cloud API boundary for DEV.
|
||||
- `hwlab-cloud-web` consumes cloud APIs and must not control hardware directly.
|
||||
- `hwlab-agent-mgr` schedules agent work and creates worker sessions.
|
||||
- `hwlab-agent-worker` executes scoped work through declared gateway and box
|
||||
capabilities.
|
||||
- `hwlab-cloud-api` owns Code Agent session authorization and dispatches execution
|
||||
to AgentRun v0.1.
|
||||
- `hwlab-gateway` is the hardware control boundary.
|
||||
- `hwlab-gateway-simu` and `hwlab-box-simu` may simulate gateway and box
|
||||
behavior for MVP validation.
|
||||
|
||||
Reference in New Issue
Block a user