Files
lincodex/AGENTS_ROUTING.md
2026-10-05 14:23:31 +03:00

27 lines
3.3 KiB
Markdown

# Task routing
Read AGENTS.md and this file first. Select every route touched by the task. A route selects project context and checks; it does not authorize work outside the user's scope or require delegation.
For every task that changes repository files, also read .agents/workflows/development.md and .agents/workflows/validation.md once. They apply across routes; stack standards add to them.
The source of truth for a decision depends on the subject. See .agents/sources-of-truth.md when checked-in code, contracts, configuration, and architecture documents disagree. Report the discrepancy and distinguish current behavior from intended behavior.
| Task area | Read | Validation |
| --- | --- | --- |
| Architecture and documentation | .agents/sources-of-truth.md, .agents/workflows/development.md | Update RU and EN documents together; run make docs-check. |
| Go backend | .agents/standards/backend.md, .agents/standards/testing.md | Use relevant backend Make targets; report any integration runtime requirement. |
| React and TypeScript | .agents/standards/frontend.md, .agents/standards/testing.md | Use relevant frontend Make targets, including typecheck and build when affected. |
| ML service | .agents/standards/ml.md, .agents/standards/testing.md | Use ML Make targets; model evaluation is separate from ordinary tests. |
| OpenAPI and generated clients | .agents/standards/contracts.md and the standards for each affected consumer | Bundle and lint contracts, regenerate consumers, and check generated drift. |
| PostgreSQL schema and queries | .agents/standards/database.md, .agents/standards/backend.md, .agents/standards/testing.md | Validate migrations and sqlc output with the relevant backend checks and isolated database tests. |
| Compose, Nginx, CI, or observability | .agents/standards/infrastructure.md, .agents/standards/security.md | Render Compose configuration and run the checks for each changed configuration family. |
| Authorization, personal data, files, or secrets | .agents/standards/security.md plus the standards for affected services | Review both allowed and denied access paths; verify relevant tests and logs. |
| Test strategy or validation | .agents/standards/testing.md, .agents/workflows/validation.md | State which checks ran, failed, were skipped, or remain unavailable. |
| Agent instructions or task boundaries | .agents/sources-of-truth.md, .agents/ownership.md, .agents/standards/security.md | Check links, route targets, import cycles, and that permissions were not broadened. |
| Release or deployment | .agents/workflows/release.md, .agents/standards/infrastructure.md, .agents/standards/security.md | Prepare the artifact and checks first; perform external release actions only when authorized. |
| Parallel work | .agents/ownership.md, .agents/workflows/subagents.md | Use non-overlapping ownership and an evidence-first handoff. Delegate only when requested or required by applicable instructions. |
For mixed work, follow all applicable rows. Prefer the smallest relevant checks first, then run the broader project target when changes affect shared inputs or several services. Do not claim a check passed unless it actually ran successfully.
The product's main stack is Go, React/TypeScript, and Python. This file does not prescribe a model, provider, installer, global tool setting, or local machine path.