Appearance
Service Agent Task Packs
Canonical service packs in this directory are handoff packs for one service owner agent. Orchestrator, alias, cutover, deprecated, and feature packs coordinate service owners and are not independent service-agent rows unless the agent matrix explicitly promotes them. The packs are intentionally scoped so parallel agents can audit, investigate, code, test, and fix without editing the same files.
Coverage gate:
bash
sh scripts/test/service-task-pack-coverage.shRuntime/deploy/docs checkpoint for an integrated service-agent wave:
bash
make test-agent-dispatch
make test-frontend-boundary
make test-compose-migrations
make test-service-readiness
make test-runtime-foundation
pnpm docs:build
git diff --checkmake test-compose-migrations renders deploy/docker-compose.yml and checks that every active service in scripts/dev/services.sh has a Compose runtime entry with the correct service Dockerfile, SERVICE_NAME, HTTP_ADDR, and service-owned migration/DSN wiring when that service owns SQL migrations.
Every service pack must include owner scope, legacy evidence paths, writable files, orchestrator-owned shared files, acceptance criteria, verification commands, and an explicit pointer to the shared agent workflow below. The gate also checks canonical alias mappings so agents do not create duplicate implementation directories such as services/question-service or services/organization-service. It also treats scripts/dev/services.sh as the active runtime manifest: every listed service must appear as an implementation owner in the responsibility matrix, workflow matrix, wave board, dispatch roster, API docs, and VitePress navigation.
Shared agent workflow:
- Audit the assigned service against its task pack and the responsibility matrix before writing code.
- Investigate the cited legacy source and current Go implementation for the exact workflow being changed.
- Code one small vertical workflow inside the task pack's writable scope.
- Test the focused workflow and then run the service verification command.
- Fix defects found by tests, route rehearsals, docs build, or diff hygiene checks before handing off.
Global rules:
- Work only under
go-platform/unless a task explicitly says otherwise. - Legacy code under
/Users/velikho/Desktop/WORKING/HOCTAPAZ/node-platform/apps/apiis evidence, not an edit target. - Frontend apps call only
api-gatewayor an approved BFF; frontend paths in task packs are read-only evidence unless explicitly delegated. Keepmake test-frontend-boundarygreen when frontend code is touched. - Do not revert unrelated worktree changes.
- Keep one owner per file. Shared files such as root
Makefile, Compose, Helm, gateway route examples, and docs indexes are orchestrator-owned unless a task assigns them. - Active service directories must keep a service-local
Makefilethat includesscripts/dev/service.mkforrun,test,lint,docker-build, and schema workflow commands. The deprecateduser-servicescaffold is retirement-only and is not an active service workflow target. iam-serviceis the canonical service name for auth/login/session/access work./api/authand/v1/authare compatibility route namespaces only; do not create anauth-servicetask pack, OpenAPI contract, deployment, or runtime directory.- If a service pack asks the service agent to add route, live, or browser proof while route files are orchestrator-owned, it must include a
Delegated gateway verification scopesection naming the exact route examples, test scripts, docs/QA files, and Make targets that may be edited only for that delegated subtask. - Every code task needs focused tests plus the service verification command.
- The manifest
firstVerificationis the mandatory first command in each service pack'sVerification:section and in its matchingSVC-*workflow matrix row. The service-task-pack guard rejects missing or stale commands. - DB-backed runtime services and schema migration jobs must use their service-owned Postgres role and database. Do not add deploy/runtime
DATABASE_URLvalues that use the shared bootstraphoctapazrole. - Route cutover tasks must include rollback evidence and default-route safety.
- IAM/Profile default route promotion uses
docs/agents/service-tasks/iam-profile-default-cutover-proof.md; fixture or non-default rehearsal evidence alone is not enough to promote/api/auth*or profile compatibility routes.
Core docs to read first:
docs/architecture/service-responsibility-matrix.mddocs/agents/service-agent-wave-board.mddocs/agents/service-workflow-test-matrix.mddocs/architecture/service-boundaries.mddocs/architecture/target-go-microservices.mddocs/agents/agent-handoff-format.md
Suggested handoff closeout:
- List task ID and docs read.
- List legacy files read.
- List files changed.
- List tests run.
- List open risks, rollback notes, and the next recommended task.