Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

test: cover server/agents policies, sync queue/redaction, and repl command router

4 months ago

9c078c9
Authored
mweinbach6/9/2026, 5:31:53 PM
- modelRouter: 42 tests over routing branches (fixed-model, cross-provider
  allowlist/connectivity, LM Studio fallback, reasoning-effort precedence)
- toolPolicy: 22 tests for role/profile tool filtering incl. MCP gating
- roles: 23 tests for role definitions, shell policy, prompt lines
- reportParser: empty/multiple/legacy/garbage <agent_report> cases
- sync queue: 55 tests (JSONL round-trip, caps, backoff, dedupe)
- sync redaction: 57 tests (allowlist, secret/path patterns, payload sanitize)
- repl command router: 35 tests across 13 slash commands

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Parent442a1c8

7 files changed
  • test/agentReportParser.test.ts+75−0
  • test/repl.command-router.test.ts+388−0
  • test/server/agents/modelRouter.test.ts+572−0
  • test/server/agents/roles.test.ts+185−0
  • test/server/agents/toolPolicy.test.ts+337−0
  • test/sync/queue.test.ts+674−0
  • test/sync/redaction.test.ts+765−0