BMAD-METHOD/scripts/epic-execute-lib
Caleb 9c7d850736 feat(epic-execute): contract execution engine + backend case execution
First half of per-story contract execution (held on branch per the bundle plan).

- contract-exec.sh: granularity-agnostic engine the caller can invoke per-story
  or per-epic
- contract_env_up / contract_env_down: bring the sample env up (setup → start →
  poll readiness) and tear it down
- run_backend_cases: for each harness case, call the API (curl), assert status
  and response body_contains (jq subset match), then verify persistence by
  invoking datastore.verify_command as `<cmd> --table <t> --where <json>`;
  failures are collected in CONTRACT_EXEC_FAILURES for the fix loop
- _json_contains: JSON-subset assertion helper

Tested against a local mock API: passing case (status + multi-field body +
persistence), status-mismatch failure, and persistence-miss failure all behave
correctly; env up/down orchestration smoke-tested. UI flow execution and gate
wiring are the next pieces; live end-to-end needs a real app.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 05:40:12 -05:00
..
INIT.md merge: sync with upstream v6.8.0 2026-05-26 06:00:02 -05:00
contract-exec.sh feat(epic-execute): contract execution engine + backend case execution 2026-06-04 05:40:12 -05:00
contract-harness.sh feat(epic-execute): UI contract - ui: harness schema, preflight, test-id planning 2026-06-04 05:28:36 -05:00
decision-log.sh feat(epic-execute): add phase 2+3 improvements with modular architecture 2026-01-26 14:23:16 -06:00
design-phase.sh feat(epic-execute): UI contract - ui: harness schema, preflight, test-id planning 2026-06-04 05:28:36 -05:00
json-output.sh feat(epic-execute): domain-aware design (frontend/backend/fullstack lenses) 2026-06-03 06:25:00 -05:00
regression-gate.sh feat(scripts): port memory-safe execution and reliability improvements from revive-dev 2026-04-12 11:52:39 -05:00
tdd-flow.sh feat(epic-execute): reconcile TDD test specs with design plan 2026-06-03 06:05:33 -05:00
test-failure-filter.sh feat(epic-execute): add test failure filtering and sync improvements from revive-dev 2026-02-10 13:49:55 -06:00
utils.sh feat(scripts): port memory-safe execution and reliability improvements from revive-dev 2026-04-12 11:52:39 -05:00