View on GitHub

AICTX

Repo-local continuity runtime for coding agents

Execution Contracts and Compliance

AICTX v5.3 adds a compact contract loop around the normal agent lifecycle.

resume -> execution_contract -> observed execution -> finalize compliance -> metrics -> next resume signal

This is an audit and continuity mechanism. It is not a sandbox, not a blocker, and not an autonomous repair system.


What the resume contract is

At normal task startup, supported agents should run:

aictx resume --repo . --task "<task goal>" --json

--task should contain only the work goal. It should exclude reporting instructions, metrics schemas, output format rules, benchmark text, logging instructions, and meta-instructions about the final answer.

The resume payload may include an execution_contract with fields such as:

The contract tells the agent where to start, what scope to edit, which validation command to prefer, and how to close the lifecycle.


Contract strength

Contract strength is a guidance signal, not a runtime enforcement mechanism.

Typical meanings:


What compliance auditing does

finalize_execution() can evaluate observed execution against the latest compatible resume contract.

It uses observable signals such as:

The compact result can be:

Contract: followed.
Contract: partial — canonical test was not observed.
Contract: violated — edited outside contract scope.
Contract: not evaluated — no matching resume contract.
Contract: not evaluated — no execution observation.

Where compliance appears

Detailed rows are persisted in:

.aictx/metrics/contract_compliance.jsonl

The compact user-facing line appears in:

finalize_execution().agent_summary_text

Historical aggregates are available through:

aictx report real-usage

The next resume can include a compact previous-contract signal, for example:

Previous contract: followed.

The default resume should not include verbose audit evidence.


What compliance does not do

Contract compliance does not:

If no compatible contract exists, compliance is not_evaluated — no matching resume contract.

If a contract exists but no observable execution signals are available, compliance is not_evaluated — no execution observation.

If orientation-like commands are observed but no ordered trace exists, AICTX should treat that conservatively as an order-unknown warning, not as a hard proof of broad pre-edit exploration.