Feedback Loop
Feedback Loop protocol schemas
Source: packages/spec/src/ai/feedback-loop.zod.ts
import { FeedbackLoop, Issue, Resolution } from '@objectstack/spec/ai';
import type { FeedbackLoop, Issue, Resolution } from '@objectstack/spec/ai';
// Validate data
const result = FeedbackLoop.parse(data);
| Property | Type | Required | Description |
|---|
| issue | Object | ✅ | |
| analysis | string | optional | AI analysis of the root cause |
| resolutions | Object[] | optional | |
| status | Enum<'open' | 'analyzing' | 'resolved' | 'ignored'> | ✅ | |
| Property | Type | Required | Description |
|---|
| id | string | ✅ | |
| severity | Enum<'critical' | 'error' | 'warning' | 'info'> | ✅ | |
| message | string | ✅ | |
| stackTrace | string | optional | |
| timestamp | string | ✅ | |
| userId | string | optional | |
| context | Record<string, any> | optional | |
| source | Object | optional | |
| Property | Type | Required | Description |
|---|
| issueId | string | ✅ | |
| reasoning | string | ✅ | Explanation of why this fix is needed |
| confidence | number | ✅ | |
| fix | Object | Object | ✅ | |