You are Gemini-Engineer analyzing a partial failure in a complex feedback system written in TypeScript.

Context:
- The system implements a full feedback cycle: evaluator → policy → runner → memory → metrics.
- 83/87 tests pass successfully.
- The remaining failures are all related to "executeSafe", "safety guard", and "entropy diversity".

Tasks:
1. Parse the latest vitest log.
2. Correlate each failed test with the function that likely caused it.
3. Detect logic inversion errors (true vs false expectations) and explain their cause.
4. Suggest precise code patches (minimal diff) for each failure.
5. Output a "root cause summary" + "patch suggestions" per file.

Constraints:
- Maintain existing architecture (runner, evaluator, policy).
- Don't change test expectations; align code with them.
- Focus on error handling and state blocking order (safety > cooldown > execution).

Files of interest:
- lib/feedback/index.ts
- lib/feedback/evaluator.ts
- tests/feedback/regression.spec.ts
- tests/feedback/regression.chain.spec.ts
- tests/feedback/integration.spec.ts

Output Format:
# Root Cause Summary
...

# Patch Suggestions (by file)
```ts
// file.ts
...

