Frontmatter
| id | 9913 |
| title | fix(ai): Implement JSON recovery/repair in DreamService Tri-Vector Synthesis |
| state | Closed |
| labels | bugaiarchitecture |
| assignees | tobiu |
| createdAt | Apr 12, 2026, 1:37 PM |
| updatedAt | Apr 14, 2026, 12:33 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9913 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [ ] 9954 Epic: The Self-Healing Protocol, [ ] 9890 feat: DreamService 4th REM Vector — executeNLActionDigest(), [x] 9903 RLAIF Trajectory Curation & Whitebox E2E Pre-Flight |
| closedAt | Apr 13, 2026, 2:38 PM |
fix(ai): Implement JSON recovery/repair in DreamService Tri-Vector Synthesis
Closedbugaiarchitecture
tobiu marked this issue as blocking #9903 on Apr 12, 2026, 1:40 PM
tobiu marked this issue as blocking #9890 on Apr 12, 2026, 1:40 PM
tobiu marked this issue as blocking #9954 on Apr 13, 2026, 1:13 PM
tobiu cross-referenced by PR #9964 on Apr 13, 2026, 1:45 PM
tobiu cross-referenced by PR #9967 on Apr 13, 2026, 2:02 PM
tobiu closed this issue on Apr 13, 2026, 2:38 PM
tobiu assigned to @tobiu on Apr 14, 2026, 12:33 AM
tobiu cross-referenced by PR #10100 on Apr 19, 2026, 4:24 PM
Context
Sandman is regularly failing to digest large sessions due to
[WARN] Failed to validate extracted Tri-Vector A2A payload. The local OS LLM is occasionally generating trailing text or invalid quote schemas during extraction, breaking Zod strict validation.Objective
We must implement a JSON-repair loop (e.g., regex sanitization, AST validation) or an automated LLM retry mechanism natively inside
executeTriVectorExtractionbefore dumping the payload.