Coding Agent Instructions
This guide provides specific heuristics and rules for AI coding agents operating within the Vox ecosystem. It synthesizes recent codebase integrity work into canonical policies to prevent regressions.
Stale Documentation Risk
- Check SSOT Inventories First: When a user asks you to implement a new feature, verify whether similar features are documented as retired or deprecated. Cross-reference
AGENTS.mdanddocs/src/architecture/legacy-retirement-roadmap.md. - Beware of Pointers to Deleted Code: Older documentation may refer to crates or systems that have been renamed or archived (e.g.
vox-deibeing repurposed from orchestrator to a small HITL crate). - Do Not Hallucinate Features: If a surface is not declared in
architecture-index.mdorAGENTS.md, do not assume it exists. Do not writeimports for non-existent internal crates. - Use Search Proactively: Always rely on
grep_searchand exact file reads (view_file) before modifying large modules.
God Object Defactor Checklist
- Size Limits: Prevent any module or strut from becoming a "God Object". Files over 500 lines or structs with >12 methods must be broken down into specific domains.
- Skeleton Code is Forbidden: Leaving skeleton implementations (
todo!(),unimplemented!(), orpass) will break CI workflows. A file must either be structurally complete or explicitly marked asstub/todoviaTOESTUB. - Component Consolidation: Respect the split-compiler consolidation. For instance,
vox-lexer,vox-parser, etc., have all been merged intovox-compiler. Do not create or request these old architectures.
Enforcement
Your operations are checked locally by AGENTS.md boundaries. When in doubt, prefer decomposition and explicitness over shell cleverness. Ensure that any output avoids the "Retired Surfaces" constraints listed in the core agent prompts.