Agent migrated guidance catalog
This file preserves current instructions that were previously inline in the long AGENTS.md but are not yet fully split into narrower docs. Nothing here was intentionally dropped during the compact-governance migration.
Developing specfact-cli-modules
Bundle code in specfact-cli-modules imports from specfact_cli. For local IDE work in the modules repo, run hatch env create there, keep specfact-cli available at ../specfact-cli, and select the modules repo .venv in the IDE.
Code conventions
- Python 3.12 target (3.11+ runtime), line length 120, Google-style docstrings
snake_casefor files, modules, and functionsPascalCasefor classesUPPER_SNAKE_CASEfor constants- All data structures use Pydantic
BaseModelwithField(...)and descriptions - CLI commands use
typer.Typer()andrich.console.Console()
CLI command pattern
Use @beartype, @require, and @ensure on public command functions and keep command implementations typed and contract-bound.
Backlog command topology
specfact backlog ceremony standupspecfact backlog ceremony refinementspecfact backlog analyze-depsspecfact backlog delta status|impact|cost-estimate|rollback-analysisspecfact backlog verify-readinessspecfact project link-backlogspecfact project health-checkspecfact project devops-flow --stage <plan|develop|review|release|monitor> --action <...>specfact project snapshot|regenerate|export-roadmap
Testing
Contract-first coverage remains the primary testing philosophy. Test structure mirrors source under tests/unit/, tests/integration/, and tests/e2e/. Guard environment-sensitive logic with os.environ.get("TEST_MODE") == "true".
CI/CD
Key workflows in .github/workflows/ include tests.yml, specfact.yml, pr-orchestrator.yml, and build-and-push.yml.