Skip to content

Create lib/mock-gsd-agent.cjs with fake Task() agent stubs #248

@snipcodeit

Description

@snipcodeit

Description

Implement a fake GSD agent runner that intercepts Task() spawns in MGW commands during tests. Stubs should: accept the prompt/subagent_type, return configurable outputs, and record spawn calls for assertion. Config via test/fixtures/agents/ JSON files.

Acceptance Criteria

  • Create lib/mock-gsd-agent.cjs with fake Task() agent stubs

Milestone Context

Milestone v6 — Local Testing & Simulation Framework
Phase Phase 47: Mock Infrastructure
GSD Route plan-phase
Phase Position Phase 1 of 4 in milestone

Milestone Goal

Offline test suite with mock GitHub API and fake GSD agents to validate MGW orchestration logic without requiring live GitHub tokens or active Claude API calls.

Phase Goal

Build the foundational mock layer — GitHub API interceptors and fake GSD agent stubs that respond predictably so test scenarios can run fully offline.

Dependencies

create-lib-mock-github-cjs-with-github-api-int

Scope Hints

  • Estimated route: plan-phase
  • Labels: testing,infrastructure

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions