Skip to content

Interface: ContractDelta

Defined in: packages/core/src/introspection/ContractDiff.ts:43

A single atomic change in a tool contract.

Designed to be human-readable, machine-diffable, and injectable into LLM correction prompts (Self-Healing Context).

Properties

after

ts
readonly after: string | null;

Defined in: packages/core/src/introspection/ContractDiff.ts:55

New value (serialized)


before

ts
readonly before: string | null;

Defined in: packages/core/src/introspection/ContractDiff.ts:53

Previous value (serialized)


category

ts
readonly category: DeltaCategory;

Defined in: packages/core/src/introspection/ContractDiff.ts:45

Which part of the contract changed


description

ts
readonly description: string;

Defined in: packages/core/src/introspection/ContractDiff.ts:51

Human-readable description of the change


field

ts
readonly field: string;

Defined in: packages/core/src/introspection/ContractDiff.ts:47

Specific field or sub-path that changed


severity

ts
readonly severity: DeltaSeverity;

Defined in: packages/core/src/introspection/ContractDiff.ts:49

Severity classification