Harness Contract and Lifecycle

Harness Contract and Lifecycle

Key jargon

Term Plain-language meaning
Contract An explicit agreement about inputs, outputs, errors, permissions, and invariants.
Lifecycle The stages from request admission through completion, cancellation, or recovery.
Invariant A condition that must remain true at every relevant stage.
Version pin A recorded dependency, prompt, model, schema, or policy version used for a run.

Key concepts

Concept map

flowchart LR
    A["Admit validated request"] --> B["Execute versioned lifecycle"]
    B --> C["Enforce invariants"]
    C --> D["Close with result and evidence"]

Lifecycle

  1. Scope: user, task, harm, data, action, and stop boundaries.
  2. Baseline: representative examples and current non-AI performance.
  3. Prototype: smallest prompt/model/workflow that can test value.
  4. Evaluate: quality, safety, latency, cost, and subgroup behavior.
  5. Harden: permissions, isolation, validation, recovery, and logging.
  6. Pilot: limited users/data/actions with rollback.
  7. Operate: monitoring, incidents, versioning, and human escalation.
  8. Change: regression gates for model, prompt, tool, retrieval, or policy.
  9. Retire: revoke access, handle memory/data, preserve required evidence.

Harness contract

Write down purpose, non-goals, owner, users, data classes, models, tools, memory, action inventory, evaluation suite, budgets, approval gates, incident owner, retention, and retirement trigger.

Definition of done

A demo that produces a good answer is not production readiness. Done means the system meets a documented contract on representative tests and fails within known boundaries.

Dumpster-derived lesson

The local research repeatedly supports artifact-backed, stage-level evaluation: fluent final output must not substitute for trace, state, or effect evidence.