altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

feat: harness-side dbt validator framework (dbt-tests-pass + schema-verify hardening)

Open anandgupta42 opened this issue 6 months ago • 0 comments

Tracking issue for the harness-side validator framework PR.

Problem

The agent can declare success while dbt tests are still failing or schemas are mismatched. The validator framework was introduced in earlier PRs (#792 registry, #800 dbt-schema-verify) but the dbt-tests-pass validator was never shipped, and dbt-schema-verify had a JSON-parsing bug on noisy stdout.

Solution

  • New dbt-tests-pass validator: fires post-finishReason=stop, runs altimate-dbt test against every model touched in the session, injects a synthetic user message with failing test names if any fail
  • dbt-schema-verify hardened: parseSchemaVerifyOutput() scans for last balanced JSON object in noisy dbt stdout
  • Debug logging gated behind ALTIMATE_VALIDATORS_DEBUG=1 (noisy; off by default)
  • build-local-tarball.sh: adds altimate-dbt bin entry so validators can spawn it from benchmark containers
  • system.ts: fix stray altimate_change end marker placement (Marker Guard false-positive)

anandgupta42 avatar May 27 '26 01:05 anandgupta42