Skip to content

test: cover orchestrator-learning and memory-router#518

Merged
alari76 merged 2 commits into
mainfrom
test/orchestrator-coverage
Jun 15, 2026
Merged

test: cover orchestrator-learning and memory-router#518
alari76 merged 2 commits into
mainfrom
test/orchestrator-coverage

Conversation

@alari76

@alari76 alari76 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add unit tests for two previously-untested server modules surfaced by the daily coverage report.
  • server/orchestrator-learning.ts: 1% → ~96% lines, 100% funcs (38 tests) — candidate extraction, dedup/smartUpsert, aging/decay + journal compaction, finding-outcome triage learning, the skill model, and decision history. Uses an in-memory OrchestratorMemory and a temp ORCHESTRATOR_DIR.
  • server/orchestrator-memory-router.ts: 28% → 100% lines, 100% funcs (22 tests) — every memory/trust/notification route plus auth and 400/empty-monitor edge cases, mounted on an ephemeral Express app.

No source files or existing tests were modified — only two new test files added. Overall line coverage moves ~58.3% → 60.3%.

Test plan

  • npx vitest run server/orchestrator-learning.test.ts server/orchestrator-memory-router.test.ts — 60/60 pass
  • Full suite: 94 files / 2425 tests pass
  • tsc -b clean
  • eslint clean on new files

🤖 Generated with Claude Code

alari76 and others added 2 commits June 15, 2026 18:59
Add unit tests for two previously-untested server modules:

- orchestrator-learning.ts (1% -> ~96% lines): candidate extraction,
  dedup/smartUpsert, aging/decay + journal compaction, finding-outcome
  triage learning, skill model, and decision history. Uses an in-memory
  OrchestratorMemory and a temp ORCHESTRATOR_DIR.
- orchestrator-memory-router.ts (28% -> 100% lines): every memory/trust/
  notification route plus auth and 400/empty-monitor edge cases, mounted
  on an ephemeral Express app.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@alari76
alari76 merged commit 544ad55 into main Jun 15, 2026
2 checks passed
@alari76
alari76 deleted the test/orchestrator-coverage branch June 15, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant