docs(validation): update agent configs, skills, ADRs, specs
- qa-tester: add validation v2 testing checklist - speckit.plan: add component reuse scan for frontend - molecular-cot-logging: add Svelte logger + CLI reader - semantics-svelte: add RSM model-first protocol, frontend stack - templates: update plan/tasks/ux-reference templates - ADR-0004: add llm_dashboard_validation plugin registration - ADR-0008: add assistant tool registry for v2 validation - Specs: update 017 tasks from 51 to 99
This commit is contained in:
@@ -277,6 +277,21 @@ search_contracts query="users" type="Model"
|
||||
Frontend logging uses `log()` from `$lib/cot-logger`, emitting **JSON lines** per MolecularCoTLogging protocol.
|
||||
Import: `import { log } from "$lib/cot-logger";`
|
||||
|
||||
The logger is a TypeScript module at `frontend/src/lib/cot-logger.ts` with full type support:
|
||||
|
||||
```typescript
|
||||
import { log } from "$lib/cot-logger";
|
||||
|
||||
// Before an operation:
|
||||
log("ComponentName", "REASON", "What we are about to do", { param: value });
|
||||
|
||||
// After successful verification:
|
||||
log("ComponentName", "REFLECT", "Operation completed", { result: value });
|
||||
|
||||
// On error or fallback:
|
||||
log("ComponentName", "EXPLORE", "Operation failed", { param: value }, "Error description");
|
||||
```
|
||||
|
||||
### Marker Reference
|
||||
|
||||
| Marker | When | Signature |
|
||||
|
||||
Reference in New Issue
Block a user