Skip to main content

H.1.8: Component Activation Test Suite

Comprehensive testing of component activation status, file integrity, metadata completeness, and registry consistency.

Target: 290+ critical components (agents, commands, prompts, critical skills)

Tests:

  1. File existence and readability
  2. Frontmatter parsing and validation
  3. Required metadata fields present
  4. Activation status consistency
  5. Component indexer registration
  6. Metadata registry integration

Usage: python3 scripts/core/activation_test_suite.py # Run all tests python3 scripts/core/activation_test_suite.py --type agent # Test agents only python3 scripts/core/activation_test_suite.py --report # Generate HTML report python3 scripts/core/activation_test_suite.py --fix # Auto-fix issues

File: activation_test_suite.py

Classes

TestStatus

Test result status.

TestResult

Result of a single test.

ComponentTestResult

Complete test results for a component.

TestSuiteResult

Complete test suite results.

ActivationTestSuite

Component activation test suite runner.

Functions

parse_frontmatter(content)

Parse YAML frontmatter from markdown content.

test_file_exists(path, component_id)

Test that component file exists.

test_file_readable(path, component_id)

Test that component file is readable.

test_frontmatter_valid(content, component_id)

Test that frontmatter is valid YAML.

test_required_fields(frontmatter, component_type, component_id)

Test that required frontmatter fields are present.

Test that recommended frontmatter fields are present.

test_has_description(frontmatter, content, component_id)

Test that component has a description (accepts description, summary, or content).

test_in_database(component_id, db_path)

Test that component is registered in the database.

test_activation_consistency(component_id, activated, file_exists, component_type)

Test that activation status is consistent.

main()

No description

passed()

No description

failed()

No description

warnings()

No description

overall_status()

No description

to_dict()

No description

Usage

python activation_test_suite.py