# mosaic-telemetry-client-js — Agent Context > Patterns, gotchas, and orchestrator integration for AI agents working on this project. > **Update this file** when you discover reusable patterns or non-obvious requirements. ## Codebase Patterns ## Common Gotchas ## Quality Gates **All must pass before any commit:** ```bash npm run lint ${QUALITY_GATES}${QUALITY_GATES} npm run typecheck ${QUALITY_GATES}${QUALITY_GATES} npm test ``` ## Orchestrator Integration ### Task Prefix Use `MOSAIC-TELEMETRY-CLIENT-JS` as the prefix for orchestrated tasks (e.g., `MOSAIC-TELEMETRY-CLIENT-JS-SEC-001`). ### Package/Directory Names | Directory | Purpose | |-----------|---------| | `src/` | Main source code | | `tests/` | Test files | | `docs/scratchpads/` | Working documents | ### Worker Checklist When completing an orchestrated task: 1. Read the finding details from the report 2. Implement the fix following existing code patterns 3. Run quality gates (ALL must pass) 4. Commit with: `git commit -m "fix({finding_id}): brief description"` 5. Report result as JSON to orchestrator ### Post-Coding Review After implementing changes, the orchestrator will run: 1. **Codex code review** — `~/.claude/scripts/codex/codex-code-review.sh --uncommitted` 2. **Codex security review** — `~/.claude/scripts/codex/codex-security-review.sh --uncommitted` 3. If blockers/critical findings: remediation task created 4. If clean: task marked done ## Directory-Specific Context ## Testing Approaches