You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create structured resources to help AI agents guide users through environment configuration creation. This includes a decision-tree questionnaire template and a curated dataset of example configurations covering common deployment scenarios (minimal development, production with HTTPS, monitoring-enabled, etc.).
AI agents currently have tools (create template, validate, JSON schema, documentation) but lack structured guidance for gathering requirements and mapping them to valid configurations. This leads to trial-and-error interactions and potential configuration errors.
Overview
Create structured resources to help AI agents guide users through environment configuration creation. This includes a decision-tree questionnaire template and a curated dataset of example configurations covering common deployment scenarios (minimal development, production with HTTPS, monitoring-enabled, etc.).
AI agents currently have tools (
create template,validate, JSON schema, documentation) but lack structured guidance for gathering requirements and mapping them to valid configurations. This leads to trial-and-error interactions and potential configuration errors.Specification
See detailed specification: docs/issues/339-provide-config-examples-and-questionnaire-for-ai-agents.md
Implementation Plan
Phase 1: Add Description Field to Schema (1 hour)
descriptionfield toschemas/environment-config.jsonsrc/application/command_handlers/create/config/dto.rsOption<String>, free-text, no length constraints at schema levelPhase 2: Questionnaire Template (1 hour)
docs/ai-training/questionnaire.mdwith full decision treePhase 3: Core Example Configurations (2-3 hours)
cargo run -- validate --env-filePhase 4: Extended Example Configurations (2-3 hours)
Phase 5: Documentation and Index (1 hour)
docs/ai-training/README.mdwith overview and scenarios tablePhase 6: Integration Test for Examples (30 minutes)
tests/validate_examples.rsdocs/ai-training/examples/validatecommand and assert successtests/e2e/validate_command.rsbut for multiple filesAcceptance Criteria
Quality Checks:
./scripts/pre-commit.shcargo run -- validate --env-filecargo test validate_examples(validates all examples automatically)Task-Specific Criteria:
descriptionfield added to schema and validateddocs/ai-training/questionnaire.mdcargo run -- validate --env-filefixtures/testing_rsa)use_staging: true)use_stagingoruse_staging: false)tests/validate_examples.rscreated and passingRelated