AAnvio
Reference ArchiveSource Docs

Channel Harness (Phase G)

Generalized **slaude-style harness** for all channels — not Slack-only.

2 min read

This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.

Original path: docs/41-channel-harness.md

Generalized slaude-style harness for all channels — not Slack-only.

What It Does

CapabilityDescription
Inbound gateBlock users, enforce zone trust, engagement rules
Soul GateSOUL.md → SoulPolicy with id verification
Output disciplineSuppress raw assistant text; deliver via output port
Approval gateScope-based approver matching on summary text
Format pipelineMarkdown → Slack / Telegram / Discord / plain
SimulationTest policies without live channel credentials
Connect brokerPer-user encrypted connections (opt-in)

Enable Harness

# workspace/harness/defaults.yaml
spec:
  enabled: true
  soulSlug: architect-soul
  suppressRawOutput: true

Restart worker/API after enabling.

SOUL.md Authoring

## Identity
- Name: Architect Soul
- Role: Senior Software Architect

## Reporting

Manager / backup manager gate DMs and restricted zones (`dmPolicy: manager_only`).  
Approver user IDs are **channel-prefixed** so one SOUL works across Slack, Telegram, WhatsApp, etc.:

- `slack:U012ABC`
- `telegram:123456789`
- `whatsapp:15551234567`
- Manager: U_MANAGER01

## Allowed channels
- C0123456789

## Trusted channels
- C0AAATEAM00

## Blocked
- U0SPAMUSR00

## Approvers
- U_MANAGER01: anything ; catchall
- U_DBA01: database migrations, schema, SQL

## Mandate
- Help the team ship maintainable systems.
anvio soul import workspace/souls/architect-soul/SOUL.md --slug architect-soul
anvio soul validate-policy workspace/souls/architect-soul/SOUL.md

CLI

anvio harness status
anvio harness simulate
anvio connect list|put|revoke|login-host

Set ANVIO_CONNECTION_ENCRYPTION_KEY when connectBroker.enabled: true.

Architecture

Inbound → HarnessGateway → (policy + engagement) → Agent Runtime
Runtime → HarnessOutputPort → format + redact → ChannelAdapter

Packages

PackageRole
@anvio/harnessGateway, engagement, output, approval, format
@anvio/soul-gateSOUL.md parser, policy cache, verifier
Edit on GitHub

Last updated on

On this page