mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-08 01:08:39 -10:00
Make the dormant verification primitive enforceable: - Wire _verification_gate() into run_autonomous(_async): blocking hook failures block a success outcome and feed captured stdout/stderr back as feedback; never-passing checks end at max_iterations, not success. - Fix lossy _run_verification_hooks re-wrap (preserve details/error/duration). - Add declarative FileCheckHook (exists/non_empty/contains/json_field==equals), no shell; CommandVerificationHook now accepts a string command. - Feed the goal judge executable evidence; a failing blocking hook short-circuits to continue without spending a judge call. - add_verification()/remove_verification() for runtime registration. - Add 'verification' run-journal event kind and YAML `verification:` config parity mapping command:/file: shapes onto the two hook classes. Opt-in only: agents without verification_hooks are unchanged. Co-authored-by: MervinPraison <[email protected]>