Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
Binary file added docs/demo/runtime-gate.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/demo/runtime-gate.tape
Original file line number Diff line number Diff line change
@@ -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
Loading