singularity-forge/docs/plans
Mikael Hugo 553ba23b89 integrate: hook quick wins into UOK dispatch loop
Integration of 3 quick wins into existing UOK infrastructure:

1. Model Learning (Quick Win #2) → metrics.js
   - Record outcomes to model-learner for per-task-type performance tracking
   - Hook: recordUnitOutcome() now calls ModelLearner.recordOutcome()
   - Fire-and-forget: never blocks outcome recording on learning failure
   - Enables adaptive model routing decisions in downstream gates

2. Self-Report Fixing (Quick Win #1) → triage-self-feedback.js
   - Auto-fix high-confidence reports (>0.85) in applyTriageReport()
   - Hook: After triage and requirement promotion, apply auto-fixes
   - Fire-and-forget: never blocks report application on fix failure
   - Returns reportsAutoFixed count for triage metrics

3. Knowledge Injection (Quick Win #3) → already integrated in auto-prompts.js
   - Already active in execute-task prompt template
   - Semantic matching with graceful degradation

All integration points:
- Fire-and-forget: learning/fixing failures never block dispatch
- UOK-native: use existing outcome recording, db, gates
- Backward compatible: applyTriageReport now async, but callers handle it
- No new dependencies: all modules already in codebase

Testing: 2934 tests pass (no regressions from integration)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-06 22:34:41 +02:00
..
README.md chore: commit current worktree state 2026-05-04 19:28:39 +02:00
todo-triage-2026-05-06-plan.md integrate: hook quick wins into UOK dispatch loop 2026-05-06 22:34:41 +02:00

docs/plans/

Implementation plans promoted from ~/.sf/ planning state.

What belongs here

  • Plans that have been reviewed and promoted from .sf/ milestone planning.
  • Documents describing how a feature or slice will be implemented.

What does NOT belong here

  • Agent working files, task summaries, or raw .sf/ milestone directories.
  • Draft plans that have not yet been reviewed.

Naming convention

<slug>-plan.md — e.g., promote-only-state-plan.md

See also