Skip to content

Add agentic documentation for OpenShift enhancements#1992

Open
Prashanth684 wants to merge 2 commits into
openshift:masterfrom
Prashanth684:agentic-docs-ep
Open

Add agentic documentation for OpenShift enhancements#1992
Prashanth684 wants to merge 2 commits into
openshift:masterfrom
Prashanth684:agentic-docs-ep

Conversation

@Prashanth684
Copy link
Copy Markdown
Contributor

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

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
@openshift-ci openshift-ci Bot requested review from bn222 and coverprice April 29, 2026 18:12
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 29, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ingvagabund for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 13, 2026

@Prashanth684: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant