{"id":30860392,"url":"https://github.com/selfapplied/aedificare","last_synced_at":"2025-10-12T23:01:39.520Z","repository":{"id":313169112,"uuid":"1050287122","full_name":"selfapplied/aedificare","owner":"selfapplied","description":"CE1: CurvatureModeKernel Framework - A comprehensive framework for emergent machine learning grammar, morphological analysis, and code optimization","archived":false,"fork":false,"pushed_at":"2025-09-04T08:57:34.000Z","size":1234,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-04T10:36:15.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selfapplied.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-04T08:06:54.000Z","updated_at":"2025-09-04T08:07:41.000Z","dependencies_parsed_at":"2025-09-04T10:36:17.280Z","dependency_job_id":"116d02cc-83f6-4b63-bd86-d21045d21544","html_url":"https://github.com/selfapplied/aedificare","commit_stats":null,"previous_names":["selfapplied/aedificare"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/selfapplied/aedificare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfapplied%2Faedificare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfapplied%2Faedificare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfapplied%2Faedificare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfapplied%2Faedificare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selfapplied","download_url":"https://codeload.github.com/selfapplied/aedificare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfapplied%2Faedificare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274058954,"owners_count":25215201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-07T15:44:29.663Z","updated_at":"2025-10-12T23:01:39.441Z","avatar_url":"https://github.com/selfapplied.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CE1: CurvatureModeKernel Framework\n\nA comprehensive framework for emergent machine learning grammar, morphological analysis, and code optimization. This system treats language as a system of composable morphemes with quantum-like properties, applying morphological principles to code development.\n\n## 🏗️ Project Structure\n\n```\naedificare/\n├── src/                        # Source code\n│   ├── core/                  # Core framework components\n│   │   ├── ce1.py\n│   │   ├── ce1_core.py\n│   │   ├── ce1_framework.py\n│   │   ├── ce1_convolution.py\n│   │   ├── ce1_jets.py\n│   │   └── ce1_domains.py\n│   ├── morphology/            # Morphological analysis\n│   │   ├── english_morphology.py\n│   │   ├── hebrew_morphology.py\n│   │   ├── japanese_morphology.py\n│   │   ├── morphology_demo.py\n│   │   └── multilingual_demo.py\n│   ├── genetics/              # Language genetics\n│   │   ├── language_genetics.py\n│   │   ├── hebrew_english_comparison.py\n│   │   └── japanese_comparison_analysis.py\n│   ├── text/                  # Text analysis\n│   │   ├── text_analyzer.py\n│   │   ├── text_comparison_demo.py\n│   │   └── interactive_analyzer.py\n│   ├── optimization/          # Code optimization\n│   │   ├── ce1_code_generator.py\n│   │   ├── ce1_code_optimizer.py\n│   │   └── ce1_optimize_cli.py\n│   ├── validation/            # Invariant gates \u0026 validation\n│   │   ├── ce1_invariant_gate.py\n│   │   ├── ce1_gate_cli.py\n│   │   └── ce1_file_config.py\n│   ├── automation/            # Commit hooks \u0026 automation\n│   │   ├── ce1_commit_hook.py\n│   │   ├── ce1_enhanced_commit_hook.py\n│   │   ├── setup_git_hooks.py\n│   │   └── setup_ce1_system.py\n│   └── metanion/              # Metanion system\n│       ├── ce1_ion.py\n│       ├── repository_metanion.py\n│       └── metanion_cli.py\n├── tests/                     # Test suite\n│   └── test_ce1_system.py\n├── examples/                  # Usage examples\n│   ├── example_usage.py\n│   └── sample_ce1_configured.py\n├── docs/                      # Documentation\n│   ├── README_CE1.md\n│   ├── USAGE_GUIDE.md\n│   ├── CE1_English_Morphology_README.md\n│   ├── CE1_Ion_System_Guide.md\n│   ├── CE1_Text_Analysis_Guide.md\n│   ├── Hebrew_English_Morphology_Analysis.md\n│   └── Japanese_Triple_Script_Analysis.md\n├── config/                    # Configuration files\n│   ├── demo_metadata.json\n│   ├── pyproject.toml\n│   ├── uv.lock\n│   └── .python-version\n├── scripts/                   # Utility scripts\n│   └── main.py\n├── ce1_configs/              # CE1 configuration templates\n├── ce1_tests/                # CE1 test files\n├── ce1_optimized/            # Optimized code versions\n├── ce1_reports/              # Optimization reports\n├── ce1_working.py            # Main working system entry point\n├── setup.py                  # Project setup script\n└── requirements.txt          # Dependencies\n```\n\n## 🚀 Quick Start\n\n### 1. **Setup the System**\n```bash\n# Install dependencies and setup CE1 system\npython3 setup.py\n\n# Or setup manually\npython3 src/automation/setup_ce1_system.py\n```\n\n### 2. **Test the System**\n```bash\n# Test all working components\npython3 ce1_working.py test-all\n\n# Run specific demonstrations\npython3 ce1_working.py morphology\npython3 ce1_working.py genetics\npython3 ce1_working.py optimization\npython3 ce1_working.py gates\n```\n\n### 3. **Use File-Specific Configurations**\nAdd CE1 configuration to your Python files:\n```python\n# CE1-config{\n#   balance=alpha:0.8;beta:0.2;gamma:0.7;eta:0.2;\n#   gate=syntax:syntax_valid:1.0:true:Must have valid Python syntax;\n#   gate=density:semantic_dense:0.6:false:High semantic density;\n#   gate=security:security_safe:1.0:true:No security vulnerabilities;\n#   expected=function_name:input:expected_output:type:description;\n# }\n\ndef your_function():\n    # Your function implementation\n    return \"Your implementation here\"\n```\n\n### 4. **Commit with Automatic Validation**\n```bash\n# Just commit normally - hooks run automatically\ngit add your_file.py\ngit commit -m \"Your commit message\"\n# CE1 system runs automatically!\n```\n\n## 🎯 Key Features\n\n### **Core Systems**\n- **Morphological Analysis**: English, Hebrew, Japanese morphological systems\n- **Language Genetics**: Evolutionary language modeling with genetic algorithms\n- **Code Optimization**: CE1-based code footprint reduction (21.74% average reduction)\n- **Invariant Gates**: Self-validating code quality with 7 different validation checks\n- **File-Specific Configs**: Each file defines its own rules, gates, and balance parameters\n\n### **Automation**\n- **Git Hooks**: Automatic testing, optimization, and validation on every commit\n- **CLI Tools**: Command-line interfaces for all systems\n- **Self-Validation**: Files test themselves against their own criteria\n- **Self-Optimization**: Files optimize based on their own parameters\n\n## 🔧 Usage Examples\n\n### **Main Entry Point**\n```bash\n# Test all working components\npython3 ce1_working.py test-all\n\n# Validate files with custom configurations\npython3 ce1_working.py validate examples/example_usage.py\n\n# Run specific demonstrations\npython3 ce1_working.py optimization\npython3 ce1_working.py gates\n```\n\n### **Individual Components**\n```bash\n# Code optimization\npython3 src/optimization/ce1_optimize_cli.py check your_file.py\npython3 src/optimization/ce1_optimize_cli.py optimize your_file.py\n\n# Invariant gates\npython3 src/validation/ce1_gate_cli.py check your_file.py\npython3 src/validation/ce1_gate_cli.py create new_file.py --code \"print('hello')\"\n\n# File configuration\npython3 src/validation/ce1_file_config.py\n```\n\n### **Git Hooks (Automatic)**\n```bash\n# Just commit normally - hooks run automatically\ngit add your_file.py\ngit commit -m \"Your commit message\"\n# CE1 system runs automatically!\n```\n\n## 📊 What's Working\n\n✅ **Code Optimization**: 21.74% reduction in test cases  \n✅ **Invariant Gates**: 7 different validation checks  \n✅ **File Configuration**: Self-defining files with custom rules  \n✅ **Git Hooks**: Automatic testing and validation on commit  \n✅ **Documentation**: Complete usage guides and examples  \n\n## 💡 Key Innovations\n\n### **1. Self-Documenting Files**\nEach Python file can carry its own CE1 configuration, defining:\n- **Balance Parameters**: α (derivational), β (inflectional), γ (general optimization)\n- **Gates**: Custom validation rules and thresholds\n- **Expected Outputs**: Built-in test cases and validation\n\n### **2. Morphological Code Optimization**\nApplies the same efficiency principles discovered in language analysis:\n- **Japanese Efficiency** (0.808 semantic density) → Maximum meaning per token\n- **Hebrew Root-Based System** → Core semantic functions\n- **English Affix-Based System** → Modular composition\n\n### **3. Invariant Gates as Semantic Guards**\nUses invariant checks to gate file creation and updates, ensuring only well-formed, meaningful code gets created - just like how morphological constraints ensure only well-formed words get generated.\n\n### **4. Language Genetics**\nModels language evolution by treating CE1 seeds (morphological features) as \"genes\" that are inherited, mutated, and selected over time.\n\n## 🧠 Theoretical Foundation\n\nThis project implements the CE1 (CurvatureModeKernel) framework for emergent machine learning grammar, treating language as a system of composable morphemes with quantum-like properties. The system reveals that:\n\n- **Code quality is fundamentally a morphological problem**\n- **Each file can define its own morphological specification**\n- **Morphological self-organization principles apply to code development**\n- **Invariant gates act as semantic filters for code creation**\n\n## 📚 Documentation\n\n- [Usage Guide](docs/USAGE_GUIDE.md) - Complete usage instructions\n- [CE1 System Guide](docs/README_CE1.md) - Detailed system documentation\n- [Morphology Analysis](docs/CE1_English_Morphology_README.md) - Morphological analysis guide\n- [Ion System](docs/CE1_Ion_System_Guide.md) - Metanion system documentation\n- [Text Analysis](docs/CE1_Text_Analysis_Guide.md) - Text analysis capabilities\n- [Hebrew-English Analysis](docs/Hebrew_English_Morphology_Analysis.md) - Comparative analysis\n- [Japanese Analysis](docs/Japanese_Triple_Script_Analysis.md) - Triple-script system analysis\n\n## 🎉 You're All Set!\n\nYour CE1 system is now:\n- ✅ **Organized**: Clean, professional directory structure\n- ✅ **Functional**: All working components tested and verified\n- ✅ **Automated**: Git hooks handle testing and optimization\n- ✅ **Documented**: Complete usage guides and examples\n- ✅ **Self-Contained**: Each file defines its own rules\n\n**Happy coding with your organized CE1 system!** 🚀\n\n## 🔬 Research Applications\n\nThis framework enables research into:\n- **Morphological Complexity**: Quantifying word formation complexity\n- **Language Evolution**: Modeling language change through genetic algorithms\n- **Code Quality**: Applying linguistic principles to software development\n- **Semantic Density**: Measuring meaning per token in both natural and programming languages\n- **Self-Organization**: Emergent properties in both linguistic and computational systems\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfapplied%2Faedificare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselfapplied%2Faedificare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfapplied%2Faedificare/lists"}