# ApiVault Bug Advisor Bridge

The Bug Advisor classifies error records submitted through the Public Developer Debug API.

## Example

```lua
AV:ReportError({
    message = "attempt to index field 'settings' (a nil value)",
    file = "MyAddon/Core.lua",
    line = 88,
    stack = debugstack and debugstack() or nil,
    category = "runtime-error",
})
```

ApiVault can then generate:

```text
- normalized bug category
- linked APIs/events/secure patterns
- likely cause checklist
- safe fix direction
- exportable debug note
```

## Policy

```text
- Advice is generated from error text and metadata.
- Source context is required for definitive fixes.
- Secure/taint issues remain inspect-only.
- No automatic code changes are made.
```
