Add agentic documentation for OpenShift enhancements#1992
Conversation
Introduce ai-docs/ with structured documentation covering platform concepts, operator patterns, engineering practices, and development workflows. Includes AGENTS.md navigation index and knowledge graph for AI agent navigation. generating using the /platform-docs skill here: openshift-eng/ai-helpers#437
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Adds evaluation framework to test AI agent usage of CLAUDE.md and ./ai-docs/ documentation using promptfoo and Claude Agent SDK. Test Scenarios (6 total): 1. Navigation (2 tests): - Finding enhancement process documentation - Finding operator pattern documentation 2. Enhancement Authoring (1 test): - Designing fictional "ClusterPowerScheduler" enhancement from scratch - Tests agent applies patterns without copying existing enhancements 3. Anti-Pattern (3 tests) - What docs PREVENT: - Rejects v1 API from start → Requires v1alpha1 graduation - Rejects custom ClusterOperator conditions → Requires Available/Progressing/Degraded - Rejects breaking field rename → Requires deprecation process Key Design: Agents are NOT told to read documentation. They must naturally discover CLAUDE.md exists and follow navigation guidance. Tests verify agents read and apply repo-specific rules by checking "Documentation Used" section in responses. Usage: make eval # Run all 6 tests (~30-60 min) make eval-navigation # Run navigation tests only make eval-anti-pattern # Run anti-pattern tests only make eval-view # View results in web UI make eval-clean # Clear cache Prerequisites: - Node.js 22.22.0+ or 20.20.0+ - Set ANTHROPIC_VERTEX_PROJECT_ID or ANTHROPIC_API_KEY Files: - promptfooconfig.yaml: Test definitions (6 scenarios) - test/eval/run-eval.sh: Runner script (uses npx) - test/eval/README.md: Complete documentation
|
@Prashanth684: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Introduce ai-docs/ with structured documentation covering platform concepts, operator patterns, engineering practices, and development workflows. Includes AGENTS.md navigation index and knowledge graph for AI agent navigation.
generating using the /platform-docs skill here: openshift-eng/ai-helpers#437