Перейти к основному содержимому

Agent-harness audit lens (loop/context/policy/tools)

Generated from pattern-library/registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: AI · Tier: light · Maturity: proven (verified 2026-08-20 @ 1a130d67) · Risk: medium — governs the agent loop that drives external LLM providers

A conceptual audit lens (not a module) names which slice — loop, context, policy, or tools — owns each agent-harness primitive such as compaction, step caps, and approval gating.

When to use: Use when auditing whether an LLM-agent product has the harness primitives it needs and where each one is implemented.

Docs

Code

Tests

  • src/lib/server/ai/loop/compact.test.ts (GitHub · GitLab)
  • src/lib/server/ai/policy/governor.test.ts (GitHub · GitLab)

Machine-readable record: ai-harness-lens in pattern-library/registry.json.

← Back to Pattern Library

Думаете, этот паттерн можно сделать лучше? Расскажите как.

Оставить отзыв