Sigroom Docs

Harness Work Queue

The harness work queue is the bridge between Sigroom project tasks and executable GeneSYS loop workitems. It gives operators and harnesses one queue to inspect and operate on already authorized loop work. Project tasks must pass their reviewed task-document and execution-intent flow first.

referenceHarness operators and GeneSYS integratorsSource reviewed 2026-11-08

Task Model

ConceptMeaning
Project taskA planning or project task with task_ref project:<project_task_id>; it is visible for planning, but direct work selection is rejected; queue execution from its reviewed project workflow.
Loop workitemA runnable HACP/GeneSYS workitem with task_ref loop:<loop_workitem_id>; it carries objective, room, harness instance, outcome contract, attempts, command profiles, run IDs, test IDs, artifacts, and blocked state.
Task linkReviewed task execution can link a project task to its loop/run records. The legacy direct project-task select endpoint does not create that authority.
Sandbox sessionA bounded hsbx-prefixed session record for human or agent testing/debug/preview work, with mode, purpose, TTL, command profiles, test IDs, log artifact IDs, status, and optional preview URL.
Audit trailSelection, update, completion, test, test-all, sandbox open, and sandbox stop all write audit records.

API Flow

StepRoute
List the queueGET /workspaces/:workspaceId/harness-tasks?project_id=&room_id=&harness_instance_id=&kind=&status=
Select existing loop workPOST /workspaces/:workspaceId/harness-tasks/select
Edit task statePATCH /workspaces/:workspaceId/harness-tasks/:kind/:id
Complete taskPOST /workspaces/:workspaceId/harness-tasks/:kind/:id/complete
Request tests for one runnable taskPOST /workspaces/:workspaceId/harness-tasks/:kind/:id/test
Request tests for matching runnable tasksPOST /workspaces/:workspaceId/harness-tasks/test-all
Open sandbox sessionPOST /workspaces/:workspaceId/harness-tasks/:kind/:id/sandbox-sessions
Read sandbox sessionGET /workspaces/:workspaceId/harness-sandbox-sessions/:sessionId
Stop sandbox sessionPOST /workspaces/:workspaceId/harness-sandbox-sessions/:sessionId/stop

Launcher Request Previews

These examples deliberately omit --api-url and make no network requests. Replace IDs with records you are allowed to inspect; a preview is not server approval or completed execution.

bash
hacp work list \
  --workspace-id w_example \
  --project-id prj_example \
  --kind all \
  --json

hacp work select loop:lwi_example --workspace-id w_example --json
hacp work test loop:lwi_example --workspace-id w_example --environment sandbox --json
hacp work sandbox-open loop:lwi_example --workspace-id w_example --mode agent --purpose test_feature --ttl-minutes 45 --json
hacp work sandbox-status hsbx_example --workspace-id w_example --json

Request Preview And API Mode

Without --api-url, hacp work emits a JSON request_preview that shows method, path, query, and body without calling Sigroom. With --api-url and an API cookie, the launcher sends GET, PATCH, or POST requests to the Sigroom API and wraps the response in a status ok envelope.

Permission Rules

  • workspace.read can list queue items and read sandbox session status.
  • review.decide can select existing loop workitems, update loop workitems, complete loop workitems, request tests, request test-all, open loop sandboxes, and stop sandbox sessions when the user is an active room participant.
  • Direct project-task selection is denied with HARNESS_TASK_APPROVAL_QUEUE_REQUIRED. Review the exact task documents and execution intent in the project before requesting queue admission.
  • Project-task edits and project-task completion require workspace.admin.
  • Test requests are denied if requested command profile IDs are not already allowed by the loop workitem.

Source Material

  • apps/api/src/modules/harness-tasks/routes.ts
  • apps/api/src/modules/harness-tasks/store.ts
  • packages/contracts/src/index.ts
  • rust/crates/hacp-launcher/src/lib.rs
  • rust/crates/hacp-launcher/tests/cli_contract.rs