.cursor/skills/lecun-framework-compliance/SKILL.md
Validates that new features and services align with LeCun's world model framework. Use when creating new services, adding features, reviewing architecture decisions, or questioning whether a component fits the intelligence-first architecture.
npx skillsauth add avra-cadavra/avrai lecun-framework-complianceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Every component in the system maps to a specific role in LeCun's autonomous machine intelligence architecture. If a proposed change doesn't fit this framework, it doesn't belong.
| LeCun Component | Role | Our Implementation | Phase |
|----------------|------|-------------------|-------|
| Perception Module | Observes the world, produces state | WorldModelFeatureExtractor (105-115D) + FeatureFreshnessTracker | 3.1 |
| World Model | Predicts next state given state + action | TransitionPredictor (ONNX MLP) | 5.1 |
| Cost Module (Critic) | Evaluates state-action pair quality | EnergyFunctionService (ONNX critic) | 4.1 |
| Actor | Proposes action sequences to minimize cost | MPCPlanner (N-step simulation) | 6.1 |
| Guardrail Module | Hard constraints actor cannot violate | Diversity, safety, doors, notification constraints | 6.2 |
| Short-Term Memory | Recent observations and predictions | EpisodicMemoryStore (state, action, outcome tuples) | 1.1 |
| Configurator | Adjusts modules based on context | DeferredInitializationService + FeatureFlagService | 3.5, 7.3 |
| Latent Variable | Represents future uncertainty | Variance head + multi-future z-vector sampling | 5.3 |
Before creating or modifying any service, answer these:
UnifiedOutcomeCollector.AnonymousCommunicationProtocol (not AdvancedAICommunication).MessageType (Phase 3.6.2).// ❌ BAD: New hardcoded formula
final score = 0.4 * vibeScore + 0.3 * locationScore + 0.3 * timingScore;
// ✅ GOOD: Use energy function
final energy = await energyFunction.energy(userStateEmbed, actionEmbed);
// ❌ BAD: Action without outcome tracking
await userService.joinCommunity(communityId);
// ✅ GOOD: Capture episodic tuple
final stateBefore = await featureExtractor.extractFeatures(agentId);
await userService.joinCommunity(communityId);
final stateAfter = await featureExtractor.extractFeatures(agentId);
await episodicMemory.store(EpisodicTuple(...));
// ❌ BAD: Sharing raw data over mesh
await advancedAICommunication.sendEncryptedMessage(personalityData, 'ai_network');
// ✅ GOOD: Share anonymized gradients via unified mesh
await anonymousComm.sendEncryptedMessage(
dpProtectedGradient,
MessageType.gradient,
);
AnonymousCommunicationProtocoldocs/MASTER_PLAN.md (Philosophy + Methodology section, LeCun Framework Mapping)docs/agents/reports/ML_SYSTEM_DEEP_ANALYSIS_AND_IMPROVEMENT_ROADMAP.mddevelopment
--- name: world-model-development description: Guides world model development patterns: state/action encoders, ONNX inference, feature extraction pipeline, latency budgets. Use when implementing world model components, state encoders, action encoders, feature extractors, or ONNX models. Core skill for Phases 3-6. --- # World Model Development Patterns ## Core Principle All world model components follow LeCun's autonomous machine intelligence framework. State observations flow through a percep
tools
Implements base workflow controller patterns for multi-step processes. Use when creating complex workflows that require orchestration of multiple steps with error handling and rollback.
testing
--- name: widget-test-patterns description: Guides widget test patterns: BLoC testing, user interactions, state changes, material app setup. Use when writing widget tests, testing UI components, or validating widget behavior. --- # Widget Test Patterns ## Core Pattern Widget tests verify UI behavior: user interactions, state changes, and visual display. ## Basic Widget Test Setup ```dart testWidgets('widget displays correctly', (WidgetTester tester) async { // Arrange: Create widget awa
testing
--- name: test-template-generation description: Generates test templates: unit, widget, integration, service tests following project patterns. Use when creating new tests or ensuring tests follow project standards. --- # Test Template Generation ## Available Templates Test templates are located in `test/templates/`: - `unit_test_template.dart` - `widget_test_template.dart` - `integration_test_template.dart` - `service_test_template.dart` ## Unit Test Template ```dart /// SPOTS Component Uni