Skip to content

AI Development Index

Purpose

This document serves as the primary navigation aid for AI agents working with The Path (AI-Pi). It provides essential context for decision-making, cross-referencing, and maintaining consistency across the project. Think of it as a map that helps AI agents understand how different parts of the project relate to each other and what guidelines to follow when making changes.

Context Hierarchy

The Context Hierarchy section establishes the foundational structure of our project's documentation. It helps both AI agents and human developers understand where to find critical information and how different documents relate to each other.

Primary Documentation Sources

Documentation Sources

This section outlines our core documentation, including project scope, research objectives, and development history. These documents serve as the source of truth for project decisions and should be the first reference point for understanding any aspect of the project.

Core_Context:
  project_scope:
    path: "overview/project-scope.md"

    purpose: "Defines project boundaries and objectives"
    key_sections:
      - "Project Goals"

      - "Technical Constraints"

      - "Development Phases"

  research_objectives:
    path: "overview/research-objectives.md"

    purpose: "Research goals and methodologies"
    key_sections:
      - "Research Questions"

      - "Success Metrics"

      - "Validation Methods"

Development_History:
  logs:
    path: "meta/logs/*.md"

    purpose: "Chronological development decisions"
    analysis_priority:
      - "Technical Decisions"

      - "Implementation Details"

      - "Architecture Changes"

  social_updates:
    path: "meta/social/**/*.md"

    purpose: "Public communications and announcements"
    key_aspects:
      - "Feature Announcements"

      - "Development Progress"

      - "Community Engagement"

Cross-Reference Map

Cross-References

The Cross-Reference Map shows how different components of our project influence and depend on each other. This is crucial for maintaining consistency when making changes, as it helps identify which parts of the project might be affected by modifications to a particular component.

World_Building:
  cultural_elements:
    primary_sources:
      - path: "world_building/cultural_foundations.md"

        influences: ["game_mechanics", "character_design", "resource_systems"]
    related_mechanics:
      - path: "world_building/balance_and_meta.md"

        validates_against: ["cultural_foundations", "game_balance"]

  game_mechanics:
    battle_system:
      - path: "world_building/classes.md"

        dependencies: ["stats", "balance_and_meta"]
      - path: "world_building/stats.md"

        influences: ["character_balance", "progression"]

Technical_Implementation:
  ai_systems:
    training:
      path: "technical/ai-system/training-pipeline.md"

      validates_against: ["game_balance", "difficulty_system"]
    inference:
      path: "technical/ai-system/inference.md"

      dependencies: ["hardware_specs", "performance_metrics"]

Decision Support

This section provides frameworks and patterns for making informed decisions about project changes. It helps ensure that all modifications align with our project's goals and maintain consistency across different components.

Content Analysis Patterns

Analysis Patterns

These patterns guide the process of analyzing and updating project documentation. They help maintain consistency and ensure that changes are properly validated against our established criteria.

Documentation_Analysis:
  priority_order:
    1: "Check development logs for recent context"
    2: "Cross-reference with world building docs"

    3: "Validate against technical specifications"
    4: "Review public communications"

  consistency_checks:
    cultural_elements:
      sources: ["world_building/*", "meta/logs/*"]

      validation_points:
        - "Terminology usage"

        - "Cultural accuracy"

        - "Implementation details"

    game_mechanics:
      sources: ["world_building/balance_and_meta.md", "world_building/classes.md"]
      validation_points:
        - "Balance considerations"

        - "Cultural integration"

        - "Technical feasibility"

Implementation Guidelines

Implementation Guide

These guidelines provide concrete patterns for implementing changes in the codebase. They help bridge the gap between documentation and implementation, ensuring that our code reflects our documented intentions.

Code_Context:
  source_patterns:
    game_logic:
      - "src/game/**/*.go"

      - "src/battle/**/*.go"

    ai_components:
      - "src/ai/**/*.py"

      - "src/inference/**/*.py"

  cross_referencing:
    mechanics_to_code:
      world_building: "Translates to implementation details"
      balance_meta: "Informs system parameters"
    cultural_to_mechanics:
      traditions: "Guides feature development"
      practices: "Shapes interaction patterns"

Health Monitoring Context

Health Monitoring

This section defines our approach to system health and performance monitoring. It helps ensure that changes don't negatively impact system performance and that we maintain high standards for both technical and cultural aspects.

System_Health:
  metrics_hierarchy:
    critical:
      - "AI inference performance"

      - "Battle system stability"

      - "State management integrity"

    validation:
      performance:
        path: "technical/health/performance.md"
        thresholds: "technical/health/thresholds.md"
      cultural:
        path: "technical/health/cultural-validation.md"

        criteria: "world_building/validation-criteria.md"

Metrics and Validation

Documentation Health Metrics

This section defines key metrics and validation approaches to ensure documentation quality and effectiveness.

Documentation_Metrics:
  health_indicators:
    coverage:
      measure: "Percentage of components with complete documentation"
      target: ">= 95%"
      check_frequency: "Weekly"

    cross_reference_validity:
      measure: "Percentage of valid cross-references"

      target: "100%"
      validation_script: "scripts/validate_refs.py"

    usage_patterns:
      tracking:
        - "Documentation access frequency"

        - "Most referenced sections"

        - "Update frequency"

      analysis_period: "Monthly"

  validation_rules:
    cross_references:
      - "All links must resolve to existing documents"

      - "No circular references"

      - "Maximum reference depth of 3"

    content_quality:
      - "All code examples must be validated"

      - "Technical terms must be consistent"

      - "Cultural references must align with world-building"

  automated_checks:
    frequency: "Daily"
    tools:
      - "validate_refs.py: Cross-reference validation"

      - "doc_health.py: Documentation health metrics"

      - "consistency_check.py: Terminology consistency"

Quick Reference Guide

Common Documentation Patterns

Quick reference for frequently used documentation patterns and best practices.

Common_Patterns:
  new_feature_documentation:
    required_sections:
      - "Purpose and Overview"

      - "Technical Implementation"

      - "Cultural Integration"

      - "Testing Guidelines"

    example: "world_building/features/crafting.md"

  system_updates:
    checklist:
      - "Update relevant technical docs"

      - "Add entry to development log"

      - "Update cross-references"

      - "Validate cultural alignment"

    example: "meta/logs/2025-01-21.md"

  best_practices:
    documentation_style:
      - "Use active voice"

      - "Include concrete examples"

      - "Link to related systems"

      - "Provide context for decisions"

    example: "world_building/combat_system.md"

Change Tracking

Index Structure Changes

Tracks significant changes to the agenic-context-index structure and organization.

Index_Changes:
  2025_01_21:
    type: "Major Enhancement"
    changes:
      - "Added Documentation Health Metrics section"

      - "Implemented Quick Reference Guide"

      - "Added Change Tracking system"

    rationale: "Improve documentation quality and maintainability"

  2025_01_14:
    type: "Migration"
    changes:
      - "Moved to meta/implementation/ai/"

      - "Consolidated documentation patterns"

    rationale: "Better organization and accessibility"

Content Organization

This section helps navigate and maintain our project's extensive documentation. It provides patterns for finding information efficiently and ensuring that updates maintain our established structure.

Search Optimization

Search Patterns

These patterns help quickly locate relevant information across our documentation. They're particularly useful when making changes that might affect multiple aspects of the project.

Priority_Paths:
  world_building: "Primary source for game mechanics and cultural elements"
  technical: "Implementation details and specifications"
  meta/logs: "Development history and decisions"
  meta/social: "Public communications and announcements"

Search_Patterns:
  mechanics:
    - "world_building/*.md"

    - "technical/game-systems/*.md"

  cultural:
    - "world_building/cultural*.md"

    - "world_building/traditions*.md"

  development:
    - "meta/logs/*.md"

    - "meta/implementation/**/*.md"

Version Control Context

Version Control

Guidelines for managing documentation updates and tracking changes. This helps maintain a clear history of decisions and ensures that updates are properly validated.

Documentation_Updates:
  frequency: "Daily updates in meta/logs"
  validation: "Cross-reference with social updates"

  consistency: "Check against world building docs"

Change_Patterns:
  high_impact:
    - "Cultural element modifications"

    - "Game mechanic adjustments"

    - "AI system updates"

  requires_validation:
    - "Balance changes"

    - "Cultural implementations"

    - "System architecture"

Resource Analysis

This section helps understand the relationships and dependencies between different project components, ensuring that changes consider the full context of their impact.

Documentation Relationships

Doc Relationships

Maps out how different documents influence and depend on each other. This is crucial for maintaining consistency when updating documentation or implementing new features.

Inter_Document_Dependencies:
  world_building:
    cultural_foundations:
      influences:
        - "character_design"

        - "game_mechanics"

        - "resource_systems"

      referenced_by:
        - "balance_and_meta.md"

        - "classes.md"

        - "development_logs"

    mechanics:
      dependencies:
        - "cultural_foundations"

        - "stats_system"

      influences:
        - "ai_behavior"

        - "battle_system"

Content_Flow:
  research_to_implementation:
    path: ["research_notes", "design_docs", "technical_specs"]
    validation_points:
      - "Cultural accuracy"

      - "Technical feasibility"

      - "Performance impact"

  design_to_code:
    path: ["world_building", "technical_specs", "implementation"]
    checkpoints:
      - "Feature alignment"

      - "Cultural integrity"

      - "System compatibility"

Implementation Priorities

Implementation Order

Defines the order and importance of different project components. This helps guide development efforts and ensure that we're focusing on the most critical aspects first.

Feature_Dependencies:
  cultural_systems:
    priority: "High"
    affects: ["game_mechanics", "character_design"]
    validation: "cultural_foundations.md"

  battle_mechanics:
    priority: "High"
    affects: ["ai_behavior", "balance"]
    validation: "balance_and_meta.md"

  ai_systems:
    priority: "High"
    affects: ["game_experience", "difficulty"]
    validation: ["performance_metrics", "cultural_alignment"]

Development_Order:
  phase_dependencies:
    cultural_foundation:
      must_precede: ["character_implementation", "mechanic_design"]
      validates_against: "cultural_accuracy_criteria"

    core_mechanics:
      must_precede: ["ai_behavior", "balance_tuning"]
      validates_against: "gameplay_objectives"

Quality Assurance

This section provides frameworks for maintaining high standards across both technical and cultural aspects of the project.

Validation Framework

Validation Process

Defines specific criteria and processes for validating changes. This ensures that all modifications meet our standards for cultural accuracy and technical performance.

Cultural_Accuracy:
  primary_sources:
    - path: "world_building/cultural_foundations.md"

      priority: "Critical"
      aspects: ["terminology", "practices", "representations"]

  validation_process:
    steps:
      1: "Check against primary sources"
      2: "Review implementation context"
      3: "Validate cultural integrity"
      4: "Document decisions"

Technical_Implementation:
  performance_criteria:
    ai_inference:
      thresholds:
        response_time: "< 100ms"
        accuracy: "> 95%"
      validation: "technical/performance_metrics.md"

    game_systems:
      thresholds:
        state_updates: "< 50ms"
        battle_resolution: "< 200ms"
      validation: "technical/system_metrics.md"

Consistency Maintenance

Consistency Checks

Provides patterns for maintaining consistency across documentation and implementation. This helps prevent drift between different parts of the project.

Cross_Reference_Patterns:
  documentation:
    primary_sources:
      - "world_building/*.md"

      - "technical/specifications/*.md"

    validation_sources:
      - "meta/logs/*.md"

      - "meta/implementation/**/*.md"

  implementation:
    source_patterns:
      - "src/**/*.go"

      - "src/**/*.py"

    validation_patterns:
      - "tests/**/*_test.go"

      - "tests/**/*_test.py"

Validation_Workflow:
  documentation_updates:
    steps:
      1: "Review related documents"
      2: "Check implementation impact"
      3: "Update affected components"
      4: "Validate changes"

  code_changes:
    steps:
      1: "Check documentation requirements"
      2: "Validate cultural alignment"
      3: "Verify performance impact"
      4: "Update documentation"

AI Agent Guidelines

This section provides specific guidance for AI agents working on the project, helping them make decisions that align with our goals and standards.

Decision Making Framework

Decision Framework

Establishes clear priorities and patterns for AI agents to follow when making decisions about project changes. This helps ensure consistent and appropriate choices.

Priority_Hierarchy:
  1_cultural_integrity:
    check: "world_building/cultural_foundations.md"
    validate: "cultural_accuracy_criteria"

  2_gameplay_balance:
    check: "world_building/balance_and_meta.md"
    validate: "balance_metrics"

  3_technical_feasibility:
    check: "technical/specifications/*.md"

    validate: "performance_requirements"

Action_Patterns:
  documentation:
    search_order:
      1: "Check recent logs"
      2: "Review related docs"
      3: "Validate against metrics"
      4: "Update health indicators"
    update_requirements:
      - "Maintain cultural accuracy"

      - "Ensure technical alignment"

      - "Document decisions"

      - "Update relevant metrics"

  implementation:
    validation_order:
      1: "Cultural integrity"
      2: "Technical feasibility"
      3: "Performance impact"
      4: "Documentation health"
    documentation_requirements:
      - "Update affected docs"

      - "Log decisions"

      - "Cross-reference changes"

      - "Run validation checks"

Communication Context

Communication Standards

Defines standards for how changes and decisions should be communicated. This helps maintain clear and consistent communication across the project.

Style_Guidelines:
  documentation:
    tone: "Professional and clear"
    format: "Markdown with structured sections"
    requirements:
      - "Include context links"

      - "Reference primary sources"

      - "Document decisions"

  social_updates:
    tone: "Engaging and authentic"
    format: "Platform-appropriate with consistent branding"

    requirements:
      - "Cultural sensitivity"

      - "Technical accuracy"

      - "Community focus"

Content_Patterns:
  technical_updates:
    structure:
      - "Context and background"

      - "Implementation details"

      - "Impact and dependencies"

    validation:
      - "Technical accuracy"

      - "Documentation alignment"

  cultural_content:
    structure:
      - "Cultural context"

      - "Implementation approach"

      - "Validation criteria"

    validation:
      - "Cultural accuracy"

      - "Representation integrity"

Technical Infrastructure

Infrastructure Overview

This section defines the technical foundation of the project, including hardware specifications, deployment patterns, and system architecture considerations.

Hardware_Context:
  raspberry_pi:
    model: "Raspberry Pi 5"
    accelerator: "AI HAT+"
    constraints:
      memory: "8GB RAM"
      storage: "64GB minimum"
    validation_path: "technical/hardware/requirements.md"

  development:
    primary: "Mac Mini M1"
    requirements:
      - "TensorFlow support"

      - "Go toolchain"

      - "Python 3.9+"

Deployment_Patterns:
  model_deployment:
    source: "Mac Mini (training)"
    target: "Raspberry Pi (inference)"
    validation:
      - "Model size constraints"

      - "Inference performance"

      - "Memory usage"

  update_process:
    frequency: "Post-training"

    validation_steps:
      - "Performance benchmarks"

      - "Memory profiling"

      - "Cultural alignment check"

Data Schemas

Schema Documentation

Defines the core data structures and their relationships, ensuring consistency across different system components and languages.

Core_Schemas:
  game_state:
    path: "technical/data-schemas/game-state.md"

    implementations:
      - language: "Go"

        usage: "Server-side state management"

      - language: "Python"

        usage: "AI model integration"
    validation:
      - "Type consistency"

      - "Cross-language compatibility"

  ai_models:
    path: "technical/data-schemas/ai-models.md"

    formats:
      - "TensorFlow Lite"

      - "ONNX (future)"

    validation:
      - "Input/output compatibility"

      - "Version tracking"

      - "Performance metrics"

Schema_Dependencies:
  battle_system:
    core_types:
      - "ID"

      - "Timestamp"

      - "ActionType"

    validation:
      - "JSON serialization"

      - "WebSocket compatibility"

      - "Language interop"

AI System Integration

AI Integration

Details how AI components integrate with the game systems, including model deployment, inference patterns, and cultural alignment validation.

Model_Architecture:
  inference:
    platform: "Raspberry Pi 5 + AI HAT+"
    constraints:
      - "Memory footprint"

      - "Inference latency"

      - "Power consumption"

    validation: "technical/ai-system/behavior-model.md"

  training:
    platform: "Mac Mini M1"
    requirements:
      - "TensorFlow environment"

      - "Training data pipeline"

      - "Validation datasets"

    documentation: "technical/ai-system/training-pipeline.md"

Cultural_Integration:
  behavior_patterns:
    source: "world_building/foundations.md"
    validation:
      - "Cultural authenticity"

      - "Gameplay alignment"

      - "Player experience"

  decision_making:
    frameworks:
      - "Hoodoo traditions"

      - "Cultural practices"

      - "Historical context"

    validation: "world_building/cultural_validation.md"

Documentation Generation

Doc Generation

Defines patterns for maintaining and generating project documentation, ensuring consistency and completeness across all documentation types.

```yaml Generation_Patterns: daily_logs: script: "docs/gen_logs.py" triggers: - "New implementation"

  - "Design decisions"

  - "Cultural additions"

validation:
  - "Format consistency"

  - "Cross-references"

  - "Cultural accuracy"

technical_docs: update_frequency: "Per sprint" key_sections: - "API documentation"

  - "Schema updates"

  - "Architecture changes"

validation:
  - "Technical accuracy"

  - "Implementation alignment"

  - "Cultural considerations"

Documentation_Flow: content_hierarchy: - "Project overview"

- "Technical specifications"

- "Implementation details"

- "Cultural integration"

cross_validation: - "Technical accuracy"

- "Cultural alignment"

- "Implementation feasibility"