[AIR-3][AIS-3][BPC-3][RES-3]
⚠️ DEPRECATION NOTICE ⚠️
This document is deprecated and will be removed in future versions. Please use the canonical AI labeling documentation at docs/standards/AI_LABELING.md. The canonical document standardizes all AI labeling formats and requirements.
AI-Driven Labeling System¶
Table of Contents¶
Overview¶
This document outlines our AI-driven labeling system for tracking requests, issues, improvements, and other project items.
Label Categories¶
AIR - Anya Improvement Requests¶
Format: AIR-[number]
AIR-001: Add new relay selection algorithm
AIR-002: Enhance key backup mechanism
AIR-003: Implement advanced repository connectivity
AIS - Anya Implementation Specifications¶
Format: AIS-[number]
AIS-001: Nostr protocol integration specification
AIS-002: Repository management system design
AIS-003: Key subscription workflow
AIT - Anya Issue Tracking¶
Format: AIT-[number]
AIT-001: Connection timeout with specific relays
AIT-002: Message encryption performance bottleneck
AIT-003: Key recovery process failure
AIM - Anya Integration Modules¶
Format: AIM-[number]
AIP - Anya Intelligence Patterns¶
Format: AIP-[number]
AIE - Anya Intelligence Enhancements¶
Format: AIE-[number]
AIE-001: Enhanced pattern recognition
AIE-002: Improved decision making
AIE-003: Advanced learning capabilities
Usage Guidelines¶
1. Creating New Items¶
## AIR-004: Implement Advanced Message Threading
## Description
Add support for hierarchical message threading with AI-driven organization.
## Requirements
- Thread depth management
- Message relationship tracking
- Automatic thread categorization
- AI-powered relevance sorting
## Implementation Notes
- Use ML for thread categorization
- Implement thread depth limits
- Add message relationship metadata
2. Referencing Items¶
// In code comments
/// Implements AIR-004: Advanced message threading
/// Related: AIS-002 (Relay management)
pub struct MessageThread {
// Implementation
}
3. Commit Messages¶
git commit -m "AIR-004: Implement message threading core
- Add thread structure
- Implement depth management
- Add relationship tracking
Relates to: AIS-002, AIP-001"
Integration with Issue Tracking¶
GitHub Issues Template¶
name: Feature Request
about: Suggest an idea for Anya
title: 'AIR-XXX: '
labels: 'enhancement'
body:
- type: markdown
attributes:
value: |
Thanks for suggesting an improvement!
- type: input
id: air-number
attributes:
label: AIR Number
description: Assigned AIR number for this request
placeholder: 'AIR-XXX'
validations:
required: true
Pull Request Template¶
## Description
Implements [AIR-XXX]
## Related Items
- AIS-XXX: Related specification
- AIT-XXX: Fixes issue
- AIP-XXX: Uses pattern
## Changes
- Detailed changes...
## Testing
- Test coverage...
AI Integration¶
1. Automatic Labeling¶
def suggest_ai_label(content):
"""Suggest appropriate AI label based on content analysis."""
if is_feature_request(content):
return generate_air_number()
elif is_specification(content):
return generate_ais_number()
elif is_issue(content):
return generate_ait_number()
# etc.
2. Relationship Detection¶
def detect_relationships(item):
"""Detect relationships between AI-labeled items."""
related_items = []
for reference in find_references(item.content):
if is_ai_label(reference):
related_items.append(reference)
return related_items
3. Progress Tracking¶
def track_ai_items():
"""Track progress of AI-labeled items."""
stats = {
'AIR': {'total': 0, 'completed': 0},
'AIS': {'total': 0, 'completed': 0},
'AIT': {'total': 0, 'resolved': 0},
'AIM': {'total': 0, 'integrated': 0},
'AIP': {'total': 0, 'implemented': 0},
'AIE': {'total': 0, 'enhanced': 0},
}
# Calculate statistics
return stats
Best Practices¶
- Unique Numbering
- Numbers are never reused
- Sequential assignment
-
Include in all relevant documentation
-
Cross-Referencing
- Link related items
- Maintain relationship graphs
-
Document dependencies
-
Documentation
-
Include AI labels in:
- Code comments
- Commit messages
- Pull requests
- Documentation
- Issue tickets
-
Tracking
- Regular status updates
- Progress monitoring
- Relationship mapping
- Impact assessment
Tools Integration¶
1. GitHub Actions¶
name: AI Label Validation
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
validate-labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check AI Labels
run: |
python .github/scripts/validate_ai_labels.py
2. VS Code Extension¶
{
"ai-labeling.patterns": {
"AIR": "AIR-\\d{3}",
"AIS": "AIS-\\d{3}",
"AIT": "AIT-\\d{3}",
"AIM": "AIM-\\d{3}",
"AIP": "AIP-\\d{3}",
"AIE": "AIE-\\d{3}"
}
}
Examples¶
Feature Implementation¶
/// AIR-004: Advanced Message Threading
/// Implements thread management with AI-driven organization
/// Related:
/// - AIS-002: Relay Management Specification
/// - AIP-001: Smart Message Routing
pub mod message_threading {
// Implementation
}
Issue Resolution¶
/// AIT-002: Fix message encryption performance
/// Implements optimized encryption using parallel processing
/// Enhancement: AIE-001 (Pattern Recognition)
pub fn optimize_encryption() {
// Implementation
}
Integration Module¶
/// AIM-001: Nostr Integration
/// Implements core Nostr functionality
/// Specifications:
/// - AIS-001: Protocol Integration
/// - AIS-002: Relay Management
pub mod nostr {
// Implementation
}
Documentation Infrastructure¶
## AIR-003: Repository Connectivity Standardization
## Updates GitHub URLs across the codebase for consistent references
## Related:
## - AIS-002: Repository Management
## - AIM-003: Bitcoin Core Bridge
## PowerShell script for URL consistency
function Update-RepositoryUrls {
param(
[string]$OldUrl = "github.com/botshelomokoka/anya-core",
[string]$NewUrl = "github.com/anya-org/anya-core"
)
# Implementation details...
}
Last updated: 2025-03-06