oc_reflect
Record and retrieve structured reflections from task failures to guide recovery, including diagnosis, next plans, and actions to avoid. Use to analyze and improve automation reliability.
Instructions
Create, get, or list structured task-failure reflection artifacts. Reflections are passive recovery guidance only; OpenChrome never executes nextPlan automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | REQUIRED Reflection action: create, get, list, or validate. | |
| id | No | (get) Reflection id | |
| scope | No | (create/list) domain, taskFingerprint, optional contractId/urlPattern | |
| trigger | No | (create) stuck, plan_failed, contract_failed, workflow_partial, or timeout | |
| evidence | No | (create) journalEntryIds, hintRules, failedAssertions, and lastTools | |
| diagnosis | No | (create) bounded diagnosis text | |
| nextPlan | No | (create) passive next-trial plan items | |
| avoid | No | (create) actions/strategies to avoid repeating | |
| confidence | No | (create) confidence 0..1 | |
| expiresAt | No | (create) optional unix ms expiry | |
| limit | No | (list) max records, default 3, max 100 | |
| includeExpired | No | (list) include expired reflections for debugging | |
| success | No | (validate) whether using this reflection succeeded |