guides/Agent-Use-Cases.md

Agent Use Cases

Canonical coding-agent tasks validated for Core.

1) Add a new endpoint

Proof command:

vendor/bin/phpunit --filter AgentHttpHarnessTest

2) Apply and rollback schema change

Proof command:

vendor/bin/phpunit --filter MigrationTest

3) Generate deterministic snapshots

Proof command:

php tools/agent-snapshot.php --type=contracts --fail-on-diff=tests/fixtures/snapshots/contracts.json

4) Use lightweight SQL composition

Proof command:

vendor/bin/phpunit --filter SQLBuilderTest

5) Interop middleware pipeline

Proof command:

vendor/bin/phpunit --filter InteropTest