This commit adds comprehensive plan documents for all remaining phases of the project setup system replication: ## Phase Plans Added ### Phase 2 Plan (Updated) - KB System Setup plan document - Already implemented in previous commit - Plan document now tracked in repository ### Phase 3 Plan (New) - Gitea Actions Workflows Setup - Covers .github/ documentation and workflow creation - KB lint and KB index update workflows - Customized for Tendril and Gitea platform ### Phase 4 Plan (New) - LLM Usage Guides Setup - LLM-Usage-Guide.md and Prompt-Creation-Guide.md - Initial prompt documents - Customized for Tendril project ### Phase 5 Plan (New) - Validation and Testing - Comprehensive testing procedures - Test scenarios for all system components - Troubleshooting guide ### Phase 6 Plan (New) - Customization and Final Verification - Project name and terminology verification - Directory structure verification - Final documentation review - System integration verification ## Plan Structure All plans follow consistent structure: - Overview and current state - Detailed task breakdown - Customizations for Tendril - Files to create - Dependencies and success criteria - Validation checklists - Notes and references ## Customizations All plans are customized for: - Tendril project (not "pairs") - Gitea platform (not GitHub) - Tendril-specific directory structure - Gitea Actions (with GitHub Actions compatibility notes) ## Files Added - kb/_guides/PROJECT-SETUP-GUIDE/PHASE-2-PLAN.md (5.0KB) - kb/_guides/PROJECT-SETUP-GUIDE/PHASE-3-PLAN.md (13KB) - kb/_guides/PROJECT-SETUP-GUIDE/PHASE-4-PLAN.md (8.1KB) - kb/_guides/PROJECT-SETUP-GUIDE/PHASE-5-PLAN.md (12KB) - kb/_guides/PROJECT-SETUP-GUIDE/PHASE-6-PLAN.md (11KB) Total: 5 phase plan documents, ~49KB of planning documentation
11 KiB
Phase 5: Validation and Testing - Detailed Plan
Objective: Comprehensive testing and validation of all system components
Status: Ready for Review
Date: 2025-01-27
Overview
Phase 5 validates that all components of the documentation and automation system work correctly together. This includes testing Cursor rules, KB system, phase documentation synchronization, Gitea Actions workflows, and LLM prompts.
Current State
- Phase 0: Foundation & Cursor Rules (completed)
- Phase 1: Phase Documentation System (completed)
- Phase 2: KB System Setup (completed)
- Phase 3: Gitea Actions Workflows (completed)
- Phase 4: LLM Usage Guides (completed)
- All components need validation and testing
Tasks Breakdown
Task 1: Test Cursor Rules
Objective: Verify Cursor rules are loaded and functioning correctly
Steps:
-
Verify Rules are Loaded:
- Open project in Cursor
- Check Cursor settings → Rules, Memories, Commands → Project Rules
- Verify
.cursorrulesfile is recognized - Check that rules appear in Cursor interface
-
Test Phase Documentation Synchronization:
- Edit a
blueprint.mdfile in any phase - Make a change (e.g., update status, add deliverable)
- Verify that LLM checks related documents:
changelog.mdis updatedtasks.mdis checked/updateddecisions.mdis reviewed
- Verify consistency across all documents
- Edit a
-
Test KB System Rules:
- Create a test KB file
- Verify LLM follows KB naming convention
- Verify LLM includes all required frontmatter
- Verify LLM updates index and changelog
-
Test Workflow Maintenance Rules:
- Modify a workflow file
- Verify LLM updates
.github/CHANGELOG.md - Verify LLM updates
.github/decisions.mdif decision-related - Verify LLM updates
.github/README.mdif needed
Success Criteria:
- Cursor rules are loaded and visible
- Phase documentation synchronization works
- KB system rules are followed
- Workflow maintenance rules are followed
Task 2: Test KB System
Objective: Verify KB system functions correctly end-to-end
Steps:
-
Create Test KB File:
- Create a test KB file with valid frontmatter
- Use proper naming:
YYYY-MM-DD--test-kb-file--note.md - Include all 18 required fields
- Place in appropriate category
-
Test Index Generation:
- Run:
kb/scripts/generate-index.sh - Verify script completes successfully
- Check that
kb/_index.mdis updated - Verify new file appears in index:
- File listing by category
- Topics index (if topics provided)
- Tags index (if tags provided)
- Phase relevance index (if phases provided)
- Run:
-
Test KB Lint Workflow (if Phase 3 completed):
- Push test KB file to branch
- Verify
kb-lint.ymlworkflow runs - Verify validation passes for valid file
- Create invalid file (wrong filename pattern)
- Verify workflow fails with appropriate error
-
Test KB Index Update Workflow (if Phase 3 completed):
- Push valid KB file to main branch
- Verify
kb-index-update.ymlworkflow runs - Verify
kb/_index.mdis updated automatically - Verify commit is created with update
-
Test KB Changelog Update:
- Verify changelog entry is created
- Verify format is correct
- Verify date and description are accurate
Success Criteria:
- KB files can be created with proper format
- Index generation script works correctly
- Index reflects all KB files accurately
- KB lint workflow validates files correctly
- KB index update workflow auto-updates index
- Changelog updates work correctly
Task 3: Test Phase Documentation
Objective: Verify phase documentation synchronization works
Steps:
-
Test Blueprint Modification:
- Edit a
blueprint.mdfile - Change status, add deliverable, or modify milestone
- Verify LLM checks related documents:
- Reads
changelog.md - Reads
tasks.md - Reads
decisions.md
- Reads
- Verify LLM updates documents appropriately
- Edit a
-
Test Synchronization Rules:
- Make change to blueprint status
- Verify
tasks.mdstatus is updated - Verify
changelog.mdhas new entry - Verify project name consistency
-
Test README Maintenance:
- Make significant phase change
- Verify LLM checks
README.md - Verify
README.mdis updated if needed - Verify phase statuses are accurate
-
Test Cross-Document Consistency:
- Verify project name matches across all documents
- Verify dates are consistent
- Verify status indicators are aligned
- Verify phase names match
Success Criteria:
- Blueprint modifications trigger synchronization checks
- Related documents are updated appropriately
- README is checked and updated when needed
- All documents remain consistent
Task 4: Test Gitea Actions Workflows
Objective: Verify Gitea Actions workflows function correctly
Steps:
-
Test KB Lint Workflow:
- Create valid KB file
- Push to branch
- Verify workflow runs
- Verify validation passes
- Create invalid KB file
- Verify workflow fails with clear error
-
Test KB Index Update Workflow:
- Create valid KB file
- Push to main branch
- Verify workflow runs
- Verify index is updated
- Verify commit is created
- Verify commit message is correct
-
Test Workflow Triggers:
- Verify workflows trigger on correct paths
- Verify workflows trigger on correct events
- Test with
workflow_dispatchif available
-
Test Workflow Permissions:
- Verify read permissions work for lint workflow
- Verify write permissions work for index update workflow
- Check workflow logs for errors
-
Test Workflow Documentation:
- Verify workflow changes update
.github/CHANGELOG.md - Verify workflow changes update
.github/decisions.mdif needed - Verify workflow changes update
.github/README.mdif needed
- Verify workflow changes update
Success Criteria:
- KB lint workflow validates files correctly
- KB index update workflow updates index automatically
- Workflows trigger on correct events
- Workflow permissions are correct
- Workflow documentation is maintained
Note: Testing workflows requires Gitea Actions runners to be configured. Consult docs/GITEA/Gitea-Actions-Guide.md for runner setup.
Task 5: Test LLM Prompts
Objective: Verify LLM prompt documents work correctly
Steps:
-
Test Prompt Recognition:
- Open a prompt document in Cursor
- Verify LLM recognizes it as a prompt document
- Verify LLM understands structure
-
Test Prompt Execution:
- Execute a simple prompt (e.g., Project Status Check)
- Verify LLM follows instructions
- Verify LLM gathers required information
- Verify LLM completes steps correctly
-
Test Information Gathering:
- Use prompt that requires information
- Verify LLM asks for missing information
- Verify LLM doesn't make assumptions
-
Test Validation Checklist:
- Execute prompt with validation checklist
- Verify LLM checks all items
- Verify LLM reports validation results
-
Test Error Handling:
- Test prompt with error condition
- Verify LLM handles error appropriately
- Verify LLM provides helpful error messages
Success Criteria:
- Prompts are recognized by LLM
- Prompts execute correctly
- Information gathering works
- Validation checklists are followed
- Error handling works appropriately
Comprehensive Test Scenarios
Scenario 1: Complete KB Workflow
- Create KB file with LLM assistance
- Verify file follows naming convention
- Verify frontmatter is complete
- Verify file is routed correctly
- Run index generation script
- Verify index is updated
- Update changelog
- Commit all changes together
- Push to branch
- Verify KB lint workflow runs and passes
- Merge to main
- Verify KB index update workflow runs
- Verify index is updated automatically
Scenario 2: Phase Documentation Update
- Edit phase blueprint
- Verify LLM checks related documents
- Verify changelog is updated
- Verify tasks are synced
- Verify decisions are reviewed
- Verify README is checked
- Commit changes
- Verify all documents are consistent
Scenario 3: Workflow Modification
- Modify a workflow file
- Verify LLM updates
.github/CHANGELOG.md - Verify LLM updates
.github/decisions.mdif needed - Verify LLM updates
.github/README.mdif needed - Test workflow with
workflow_dispatchif available - Verify workflow runs successfully
- Commit changes
Validation Checklist
Before completing Phase 5, verify:
- Cursor rules are loaded and functioning
- Phase documentation synchronization works
- KB system functions end-to-end
- KB index generation works correctly
- KB lint workflow validates files
- KB index update workflow auto-updates index
- Phase documentation stays synchronized
- README maintenance works
- Gitea Actions workflows function correctly
- LLM prompts execute correctly
- All test scenarios pass
- Documentation is accurate and up-to-date
Troubleshooting
Common Issues
Cursor Rules Not Working:
- Verify
.cursorrulesfile exists - Check Cursor settings
- Restart Cursor
- Verify file paths in rules
KB Validation Failures:
- Check filename pattern
- Verify all frontmatter fields present
- Check date/type match filename
- Verify routing confidence is valid
Workflow Not Running:
- Check Gitea Actions runners are configured
- Verify workflow syntax is valid
- Check workflow triggers
- Review workflow logs
Phase Docs Out of Sync:
- Manually review all documents
- Update changelog with discrepancies
- Sync tasks with blueprint
- Verify project name consistency
LLM Prompt Not Working:
- Verify prompt structure is complete
- Check all required sections present
- Test with simple task first
- Review LLM-Usage-Guide.md
Success Criteria
- All components tested and validated
- All workflows function correctly
- All synchronization rules work
- All documentation is accurate
- All test scenarios pass
- System is ready for production use
Next Steps After Phase 5
Once Phase 5 is complete:
- Phase 6: Customization and Final Verification (if needed)
- System is ready for ongoing use
Notes
- Testing should be thorough but practical
- Focus on critical paths and common workflows
- Document any issues found during testing
- Fix issues before marking phase complete
- Some tests may require Gitea Actions runners to be configured
- Consult
docs/GITEA/Gitea-Actions-Guide.mdfor workflow testing guidance
Location: kb/_guides/PROJECT-SETUP-GUIDE/PHASE-5-PLAN.md
Related:
kb/_guides/PROJECT-SETUP-GUIDE/COMPLETE-SYSTEM-REPLICATION-GUIDE.mddocs/GITEA/Gitea-Actions-Guide.md- All previous phase plans