|
| 1 | +<!-- HARNESS:START |
| 2 | + version=0.31.0 |
| 3 | + schema=1 |
| 4 | + updated=2026-07-04T02:31:42Z |
| 5 | + DO NOT EDIT THIS BLOCK — regenerate with: harness-ctl update /Users/patrickbertsch/dev/tqai |
| 6 | +--> |
| 7 | + |
| 8 | +# Agents — Harness Configuration |
| 9 | + |
| 10 | +**Harness endpoint:** `http://127.0.0.1:7700` |
| 11 | +**Registration:** `POST http://127.0.0.1:7700/harness/register` with `X-Harness-Register-Secret` |
| 12 | +**Protocol:** MCP 2025-06-18 (JSON-RPC 2.0 over HTTP) |
| 13 | + |
| 14 | +## This project's agent |
| 15 | + |
| 16 | +| Field | Value | |
| 17 | +|---|---| |
| 18 | +| Agent ID | `tqai` | |
| 19 | +| Trust level | `worker` | |
| 20 | +| Model tier | `mid` → `claude-sonnet-4-6` | |
| 21 | +| Privacy tier | `local_preferred` | |
| 22 | +| Memory namespace | `tqai-worker` | |
| 23 | +| Max steps / session | 40 | |
| 24 | +| Max cost / session | $3.00 | |
| 25 | +| Session token TTL | 15 minutes (re-register to refresh) | |
| 26 | + |
| 27 | +## All registered agents (harness fleet) |
| 28 | + |
| 29 | + |
| 30 | +## Delegation rules |
| 31 | + |
| 32 | +Agents can delegate tasks to peers via A2A (`POST http://127.0.0.1:7700/a2a/tasks`). |
| 33 | +Delegation **narrows** authority — a worker cannot delegate to an orchestrator. |
| 34 | + |
| 35 | +``` |
| 36 | +orchestrator → can delegate to → worker, ephemeral |
| 37 | +worker → can delegate to → ephemeral |
| 38 | +ephemeral → cannot delegate |
| 39 | +``` |
| 40 | + |
| 41 | +This agent (`tqai`, trust: `worker`) can delegate to: |
| 42 | + |
| 43 | +- `ephemeral` |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +## HITL workflow |
| 48 | + |
| 49 | +Actions in `must_escalate` block execution until a human approves: |
| 50 | + |
| 51 | +1. Call triggers → harness returns a HITL token (HTTP 200, not an error) |
| 52 | +2. Slack DM sent to `@here` (if configured) with approve/deny link |
| 53 | +3. Human runs: `harness-ctl hitl approve <token>` or `harness-ctl hitl deny <token>` |
| 54 | +4. On approve → original tool call executes, result returned to agent |
| 55 | +5. On deny / 30-min timeout → call fails with `hitl_denied` |
| 56 | + |
| 57 | +Check pending approvals: `harness-ctl pending` |
| 58 | + |
| 59 | +## Working on this project |
| 60 | + |
| 61 | +1. **Start from `CLAUDE.md`** at the project root — it is the canonical |
| 62 | + entry point for every task/session, listing this agent's active |
| 63 | + constraints and where to look next. |
| 64 | + |
| 65 | +3. Reference docs, regenerated by `harness-ctl update`: |
| 66 | + - `harness/TOOLS.md` — full tool schemas and error cases |
| 67 | + - `harness/SECURITY.md` — threat model and controls |
| 68 | + - `harness/WORKFLOWS.md` — operational patterns, HITL gates, delegation |
| 69 | + - `harness/ARCHITECTURE.md` — project structure and dependencies |
| 70 | + - `harness/TESTING.md` — test commands and coverage targets |
| 71 | + - `harness/INFRASTRUCTURE.md` — deploy targets and environments |
| 72 | + |
| 73 | + |
| 74 | +## Session lifecycle |
| 75 | + |
| 76 | +``` |
| 77 | +1. Register POST /harness/register → sessionToken (15 min) |
| 78 | +2. Call tools POST /mcp → tools/list, tools/call |
| 79 | +3. Run LLM POST /harness/run → routed inference |
| 80 | +4. Delegate POST /a2a/tasks → peer agent task |
| 81 | +5. Re-register when token expires (budget resets on each new session) |
| 82 | +``` |
| 83 | + |
| 84 | +<!-- HARNESS:END --> |
| 85 | + |
| 86 | +--- |
| 87 | + |
| 88 | + |
| 89 | +<!-- Add your project-specific agent workflow, stage definitions, and |
| 90 | + business rules below. The harness block above is managed automatically. --> |
| 91 | + |
0 commit comments