Run the ACF flow audit loop for specs/CONTRACT.md using specs/flows/ARCH_FLOWS.yaml bundles, discovery audits, and minimal contract patches. Use when asked to audit ACF-### flows, regenerate bundles, or maintain flow integrity with the cross-ref and flow checkers.
Run a deterministic loop for one ACF flow: bundle -> discovery audit -> patch specs/CONTRACT.md -> regenerate -> run checkers -> repeat until no findings.
specs/flows/ARCH_FLOWS.yaml has complete refs.sections coverage for the flow (include Definitions and Appendix A if referenced).specs/flows/ARCH_FLOWS.yaml first, then proceed.python3 scripts/extract_contract_excerpts.py \
--contract specs/CONTRACT.md \
--flows specs/flows/ARCH_FLOWS.yaml \
--flow-id ACF-XXX \
--bundle \
--out gpt/bundle_ACF-XXX.md \
--line-numbers
gpt/bundle_ACF-XXX.md as the sole input.python3 scripts/extract_contract_excerpts.py \
--contract specs/CONTRACT.md \
--flows specs/flows/ARCH_FLOWS.yaml \
--flow-id ACF-XXX \
--bundle \
--out gpt/bundle_ACF-XXX.md \
--line-numbers
python3 scripts/check_contract_crossrefs.py --contract specs/CONTRACT.md --strict --check-at --include-bare-section-refs
python3 scripts/check_arch_flows.py --contract specs/CONTRACT.md --flows specs/flows/ARCH_FLOWS.yaml --strict
rg -n "AT-\\d+" specs/CONTRACT.md | tail -n 5