diff --git a/README.md b/README.md index de44083..529f1d3 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Reflex Control decides whether an AI task can finish on its own, retry, or escal > [!NOTE] > **Status:** Research prototype (v0.4.0). Tested on synthetic fixtures; not production-validated. +![Accept, Retry and Escalate decisions for four task results](docs/demo/runtime-gate.gif) + - Runs fast local checks (exit codes, test results, git diffs) alongside semantic risk signals. - Blocks high-risk actions like credential leaks or schema changes with a mandatory safety veto. - Tunes acceptance thresholds across labeled tasks with statistical confidence intervals. @@ -96,6 +98,22 @@ Reflex Control evaluates agent execution steps through a multi-layer decision pi - Safe steps pass to a calibrated scoring gate that evaluates composite task quality against tuned thresholds. - Steps meeting the quality threshold finish autonomously (`Accept` or `Terminate`), avoiding unnecessary calls to larger models. +```mermaid +flowchart LR + DE["DeterministicEvidence"] --> EV["EvidenceVector"] + SE["SemanticEvidence"] --> EV + EV --> GHC["GuardedHybridComposer"] + GHC --> Veto["HARD SAFETY VETO RULES"] + GHC --> RetryRecovery["Transient Error Recovery"] + GHC --> RetryExhausted["Retry budget exhausted"] + GHC --> Quality["compute_clean_quality_index"] + Veto --> Escalate["Escalate"] + RetryRecovery --> Retry["Retry"] + RetryExhausted --> Escalate + Quality --> Accept["Accept"] + Quality --> Escalate +``` + --- ## Workspace Architecture diff --git a/docs/demo/runtime-gate.gif b/docs/demo/runtime-gate.gif new file mode 100644 index 0000000..6c75c98 Binary files /dev/null and b/docs/demo/runtime-gate.gif differ diff --git a/docs/demo/runtime-gate.tape b/docs/demo/runtime-gate.tape new file mode 100644 index 0000000..4ce77f7 --- /dev/null +++ b/docs/demo/runtime-gate.tape @@ -0,0 +1,16 @@ +Output docs/demo/runtime-gate.gif +Set Shell "bash" +Set FontSize 16 +Set Width 1200 +Set Height 260 +Set Padding 24 +Set Theme "Catppuccin Mocha" +Set TypingSpeed 40ms +Hide +Type `export PS1='$ ' PATH="$PWD/target/release:$PATH"` Enter +Type "clear" Enter +Show +Type `example-agent-runtime-gate` +Sleep 500ms +Enter +Sleep 4s