syntropion 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. syntropion-1.0.0/.env.example +10 -0
  2. syntropion-1.0.0/.github/workflows/ci.yml +45 -0
  3. syntropion-1.0.0/.gitignore +12 -0
  4. syntropion-1.0.0/BRANDING.md +68 -0
  5. syntropion-1.0.0/CHANGELOG.md +17 -0
  6. syntropion-1.0.0/Dockerfile +37 -0
  7. syntropion-1.0.0/Fikir.md +1487 -0
  8. syntropion-1.0.0/HONEST_METRICS.md +131 -0
  9. syntropion-1.0.0/LICENSE +21 -0
  10. syntropion-1.0.0/PKG-INFO +6 -0
  11. syntropion-1.0.0/README.md +159 -0
  12. syntropion-1.0.0/docker-compose.yml +29 -0
  13. syntropion-1.0.0/docs/arastirma/01_agentic_software_ve_fikir_degerlendirme.md +89 -0
  14. syntropion-1.0.0/docs/arastirma/02_KARAR_RAFE_KALDIR.md +61 -0
  15. syntropion-1.0.0/foundry_core/__init__.py +8 -0
  16. syntropion-1.0.0/foundry_core/api.py +603 -0
  17. syntropion-1.0.0/foundry_core/circuit_breaker.py +160 -0
  18. syntropion-1.0.0/foundry_core/cli.py +196 -0
  19. syntropion-1.0.0/foundry_core/code_synthesizer.py +373 -0
  20. syntropion-1.0.0/foundry_core/database.py +327 -0
  21. syntropion-1.0.0/foundry_core/gtm_swarm.py +114 -0
  22. syntropion-1.0.0/foundry_core/honest_metrics.py +501 -0
  23. syntropion-1.0.0/foundry_core/plugin_loader.py +122 -0
  24. syntropion-1.0.0/foundry_core/quota_governor.py +119 -0
  25. syntropion-1.0.0/foundry_core/revenue_router.py +134 -0
  26. syntropion-1.0.0/foundry_core/schema.sql +158 -0
  27. syntropion-1.0.0/foundry_core/schemas.py +183 -0
  28. syntropion-1.0.0/foundry_core/security.py +203 -0
  29. syntropion-1.0.0/foundry_core/shared_memory_ipc.py +137 -0
  30. syntropion-1.0.0/foundry_core/socratic_engine.py +195 -0
  31. syntropion-1.0.0/foundry_core/stake_gate.py +135 -0
  32. syntropion-1.0.0/foundry_core/vesting_engine.py +148 -0
  33. syntropion-1.0.0/mcp/server.py +197 -0
  34. syntropion-1.0.0/pyproject.toml +24 -0
  35. syntropion-1.0.0/requirements.txt +7 -0
  36. syntropion-1.0.0/synapse +1 -0
  37. syntropion-1.0.0/syntropion +14 -0
  38. syntropion-1.0.0/tests/conftest.py +29 -0
  39. syntropion-1.0.0/tests/test__fail_rate_limit_hit_dallar.py +279 -0
  40. syntropion-1.0.0/tests/test__known_tables_dallar.py +241 -0
  41. syntropion-1.0.0/tests/test__require_tenant_for_venture_dallar.py +279 -0
  42. syntropion-1.0.0/tests/test_api.py +136 -0
  43. syntropion-1.0.0/tests/test_api_circuit_and_plugins.py +122 -0
  44. syntropion-1.0.0/tests/test_api_deep.py +287 -0
  45. syntropion-1.0.0/tests/test_circuit_breaker.py +117 -0
  46. syntropion-1.0.0/tests/test_cli.py +32 -0
  47. syntropion-1.0.0/tests/test_cli_dallar.py +447 -0
  48. syntropion-1.0.0/tests/test_cli_deep.py +91 -0
  49. syntropion-1.0.0/tests/test_code_synthesizer.py +162 -0
  50. syntropion-1.0.0/tests/test_code_synthesizer_dallar.py +786 -0
  51. syntropion-1.0.0/tests/test_concurrency.py +114 -0
  52. syntropion-1.0.0/tests/test_database.py +147 -0
  53. syntropion-1.0.0/tests/test_database_dallar.py +600 -0
  54. syntropion-1.0.0/tests/test_gtm_swarm.py +72 -0
  55. syntropion-1.0.0/tests/test_honest_metrics.py +288 -0
  56. syntropion-1.0.0/tests/test_honest_metrics_dallar.py +213 -0
  57. syntropion-1.0.0/tests/test_known_tables_dallar.py +282 -0
  58. syntropion-1.0.0/tests/test_mcp_server.py +111 -0
  59. syntropion-1.0.0/tests/test_plugin_loader.py +109 -0
  60. syntropion-1.0.0/tests/test_plugin_loader_dallar.py +338 -0
  61. syntropion-1.0.0/tests/test_quota_governor.py +69 -0
  62. syntropion-1.0.0/tests/test_readme_count_dallar.py +39 -0
  63. syntropion-1.0.0/tests/test_revenue_router.py +55 -0
  64. syntropion-1.0.0/tests/test_schemas_dallar.py +600 -0
  65. syntropion-1.0.0/tests/test_security.py +75 -0
  66. syntropion-1.0.0/tests/test_security_rate_limit_dallar.py +248 -0
  67. syntropion-1.0.0/tests/test_shared_memory_ipc.py +92 -0
  68. syntropion-1.0.0/tests/test_shared_memory_ipc_dallar.py +298 -0
  69. syntropion-1.0.0/tests/test_socratic_engine.py +117 -0
  70. syntropion-1.0.0/tests/test_stake_gate.py +71 -0
  71. syntropion-1.0.0/tests/test_vesting_engine.py +51 -0
  72. syntropion-1.0.0/web/app.js +522 -0
  73. syntropion-1.0.0/web/assets/brand/logo_opt_10_bespoke_monogram_1789200229196.jpg +0 -0
  74. syntropion-1.0.0/web/assets/brand/logo_opt_1_syntropy_knot_1789200076183.jpg +0 -0
  75. syntropion-1.0.0/web/assets/brand/logo_opt_2_brutalist_grid_1789200090562.jpg +0 -0
  76. syntropion-1.0.0/web/assets/brand/logo_opt_3_hex_facet_core_1789200106432.jpg +0 -0
  77. syntropion-1.0.0/web/assets/brand/logo_opt_4_entropy_wave_1789200121185.jpg +0 -0
  78. syntropion-1.0.0/web/assets/brand/logo_opt_5_dual_orbit_sigil_1789200135234.jpg +0 -0
  79. syntropion-1.0.0/web/assets/brand/logo_opt_6_monolith_keystone_1789200150782.jpg +0 -0
  80. syntropion-1.0.0/web/assets/brand/logo_opt_7_socratic_prism_1789200172652.jpg +0 -0
  81. syntropion-1.0.0/web/assets/brand/logo_opt_8_chevron_link_1789200191074.jpg +0 -0
  82. syntropion-1.0.0/web/assets/brand/logo_opt_9_vault_seal_1789200209842.jpg +0 -0
  83. syntropion-1.0.0/web/assets/brand/syntropion_chamfered_monogram.jpg +0 -0
  84. syntropion-1.0.0/web/assets/brand/syntropion_primary_knot.jpg +0 -0
  85. syntropion-1.0.0/web/assets/brand/syntropion_vault_seal.jpg +0 -0
  86. syntropion-1.0.0/web/assets/logo.jpg +0 -0
  87. syntropion-1.0.0/web/index.html +317 -0
  88. syntropion-1.0.0/web/styles.css +847 -0
@@ -0,0 +1,10 @@
1
+ # SYNTROPION OS — Autonomous Venture Studio Configuration
2
+ SYNAPSE_ENV=production
3
+ SYNTROPION_DB_PATH=syntropion.db
4
+ SYNTROPION_SECRET_KEY=syntropion-sovereign-master-key-2026-secure-token
5
+ STRIPE_API_KEY=sk_test_mock_stripe_syntropion_key
6
+ LITELLM_ENDPOINT=http://127.0.0.1:4000/v1
7
+ SHM_IPC_ENABLED=true
8
+ SHM_IPC_PATH=/dev/shm/syntropion_treasury_ipc
9
+ HOST=0.0.0.0
10
+ PORT=8000
@@ -0,0 +1,45 @@
1
+ name: SYNTROPION OS CI/CD
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, main ]
6
+ pull_request:
7
+ branches: [ master, main ]
8
+
9
+ jobs:
10
+ test-and-verify:
11
+ name: Test & Coverage Verification
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.11", "3.12"]
16
+
17
+ steps:
18
+ - name: Checkout Source Code
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+
26
+ - name: Cache Pip Dependencies
27
+ uses: actions/cache@v4
28
+ with:
29
+ path: ~/.cache/pip
30
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
31
+ restore-keys: |
32
+ ${{ runner.os }}-pip-
33
+
34
+ - name: Install Dependencies
35
+ run: |
36
+ python -m pip install --upgrade pip
37
+ pip install -r requirements.txt
38
+ pip install pytest pytest-cov httpx
39
+
40
+ - name: Execute Test Suite with Coverage Gate
41
+ env:
42
+ SHM_IPC_PATH: /dev/shm/syntropion_ci_ipc
43
+ SYNTROPION_DB_PATH: :memory:
44
+ run: |
45
+ python -m pytest -v --cov=syntropion_core --cov-report=term-missing --cov-fail-under=98
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ .pytest_cache/
5
+ .coverage
6
+ htmlcov/
7
+ *.db-journal
8
+ *.db-wal
9
+ *.db-shm
10
+ .fallback_shm_ipc.bin
11
+ .mergen-id
12
+ *.db
@@ -0,0 +1,68 @@
1
+ # 💎 SYNTROPION OS — Marka ve Kurumsal Kimlik Rehberi
2
+
3
+ Bu belge, **SYNTROPION OS** (Otonom Yapay Zekâ Girişim Stüdyosu & Mikro-SaaS Fabrikası) için belirlenen kurumsal marka kimliğini, seçilen logoları ve kullanım standartlarını tanımlar.
4
+
5
+ ---
6
+
7
+ ## 🏛️ 1. Marka Adı ve Etimolojisi
8
+
9
+ * **Resmi İsim:** **SYNTROPION** / **SYNTROPION OS**
10
+ * **Kavramsal Köken:** Fizikteki *Syntropy* (negatif entropi — kaostan, karmaşadan düzen, yapı ve canlılık üretme ilkesi) + dinamik güç/çekirdek eki (*-ion*).
11
+ * **Marka Vaadi:** Dağınık ve kaotik sektör problemlerini $10'luk mikro-sermaye, 5 aşamalı Sokratik sorgulama ve AST kod senteziyle kendi kendine yeten kârlı mikro-SaaS girişimlerine dönüştürmek.
12
+
13
+ ---
14
+
15
+ ## 🎨 2. Seçilen Kurumsal Logolar
16
+
17
+ Tüm logo varyasyonları [`web/assets/brand/`](web/assets/brand/) dizini altında yüksek çözünürlüklü vektör raster formatında muhafaza edilmektedir.
18
+
19
+ ### 🌟 Birincil Logo (Varsayılan): Sentropi Düğümü (Option 1)
20
+ * **Konum:** [`web/assets/logo.jpg`](web/assets/logo.jpg) & [`web/assets/brand/syntropion_primary_knot.jpg`](web/assets/brand/syntropion_primary_knot.jpg)
21
+ * **Form:** İki zıt yönlü, dik açılı monolitik titanyum ve zümrüt yeşili braketin birbirine kenetlenerek oluşturduğu 'S' harfi.
22
+ * **Kullanım Alanı:** Web portalı başlığı, CLI terminal banner'ı, resmi bültenler ve ana karşılama ekranları.
23
+ * **Tasarım Dili:** Pentagram & İsviçre grafik tasarım okulu (International Typographic Style), saf 2B vektör monolit.
24
+
25
+ ### 🛡️ Yedek & Özel Kullanım 1: Kasa Mührü (Option 9)
26
+ * **Konum:** [`web/assets/brand/syntropion_vault_seal.jpg`](web/assets/brand/syntropion_vault_seal.jpg)
27
+ * **Form:** 60 derecelik açısal kesiklere sahip eşmerkezli üç koruma halkası ve merkezdeki geometrik 'S' kasası.
28
+ * **Kullanım Alanı:** Akıllı sözleşme doğrulamaları, %75 Hazine & $10 Emanet kasası ekranları, değişmez Merkle denetim defteri belgeleri.
29
+ * **Tasarım Dili:** Kriptografik güvenlik ve kurumsal bankacılık mührü.
30
+
31
+ ### 💎 Yedek & Özel Kullanım 2: Pahlı Lüks Monogram (Option 10)
32
+ * **Konum:** [`web/assets/brand/syntropion_chamfered_monogram.jpg`](web/assets/brand/syntropion_chamfered_monogram.jpg)
33
+ * **Form:** 45 derecelik çapraz köprü ve dış pahlı köşelerle birbirine bağlanan minimalist üst ve alt yatay çubuklar.
34
+ * **Kullanım Alanı:** Favicon (16x16 / 32x32), mobil uygulama simgeleri, API profil rozetleri.
35
+ * **Tasarım Dili:** Zamansız lüks teknoloji ve kurumsal tipografik monogram.
36
+
37
+ ---
38
+
39
+ ## 🎨 3. Resmi Renk Paleti
40
+
41
+ | Renk İsmi | Hex Kodu | RGB | Açıklama ve Rol |
42
+ | :--- | :--- | :--- | :--- |
43
+ | **Syntropion Emerald** | `#10B981` | `rgb(16, 185, 129)` | Birincil aksan rengi; yaşam, büyüme ve pozitif nakit akışını temsil eder. |
44
+ | **Brushed Titanium** | `#CBD5E1` | `rgb(203, 213, 225)` | İkincil yapı rengi; monolitik mühendislik ve tipografik netlik. |
45
+ | **Deep Obsidian** | `#0A0D12` | `rgb(10, 13, 18)` | Arka plan ve zemin; karanlık mod derinliği ve göz yormayan kontrast. |
46
+ | **Dark Slate Matrix** | `#0F172A` | `rgb(15, 23, 42)` | Kart ve panel zeminleri; cam efektleri (glassmorphism) katmanı. |
47
+ | **Arctic Cyan Accent** | `#14B8A6` | `rgb(20, 184, 166)` | IPC telemetri ve sistem sağlık sinyalleri. |
48
+
49
+ ---
50
+
51
+ ## 📁 4. Dizin ve Sembolik Bağ Haritası
52
+
53
+ ```
54
+ /home/gokun/projects/02_sahis/
55
+ ├── 18-Syntropion/ <-- Gerçek Proje Kök Dizini
56
+ │ ├── web/assets/
57
+ │ │ ├── logo.jpg <-- Birincil Logo (Seçenek 1)
58
+ │ │ └── brand/ <-- Tüm Seçenekler ve Yedek Logolar
59
+ │ │ ├── syntropion_primary_knot.jpg (Seçenek 1)
60
+ │ │ ├── syntropion_vault_seal.jpg (Seçenek 9)
61
+ │ │ ├── syntropion_chamfered_monogram.jpg (Seçenek 10)
62
+ │ │ └── logo_opt_*.jpg (Tüm Vektör Alternatifleri)
63
+ │ ├── BRANDING.md <-- Bu Rehber Belge
64
+ │ └── syntropion_core/ <-- Çekirdek Motor
65
+ ├── 18-OtonomYapayZekaGirisimStudyosu -> /home/gokun/projects/02_sahis/18-Syntropion
66
+ ├── Syntropion -> /home/gokun/projects/02_sahis/18-Syntropion
67
+ └── syntropion -> /home/gokun/projects/02_sahis/18-Syntropion
68
+ ```
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ Tüm önemli değişiklikler burada belgelendirilir. Biçim
4
+ [Keep a Changelog](https://keepachangelog.com/) temel alınır.
5
+
6
+ ## [Unreleased]
7
+
8
+ ### Düzeltildi
9
+ - **Metrik uydurma kaldırıldı** (2026-09-29, "C" notu sonrası):
10
+ `b2b_subscriptions` tablosu **0 satır** iken $44,175 MRR +
11
+ 275 abone iddia ediliyordu. İddialar SİLİNMEDİ, düzeltme
12
+ raporu README'ye eklendi (bkz. "C Notunun Nedeni").
13
+ Metrikler artık yalnızca veritabanından okunuyor.
14
+
15
+ ### Notlar
16
+ - Sürüm numaralandırması henüz başlamadı; ilk kararlı sürüm
17
+ yayınlandığında eklenecek.
@@ -0,0 +1,37 @@
1
+ # ==============================================================================
2
+ # SYNTROPION OS — Production Docker Container
3
+ # Lightweight, hardened microkernel container for autonomous micro-SaaS studio
4
+ # ==============================================================================
5
+
6
+ FROM python:3.11-slim
7
+
8
+ ENV PYTHONDONTWRITEBYTECODE=1 \
9
+ PYTHONUNBUFFERED=1 \
10
+ HOST=0.0.0.0 \
11
+ PORT=8000 \
12
+ SYNTROPION_DB_PATH=/app/data/syntropion.db \
13
+ SHM_IPC_PATH=/dev/shm/syntropion_treasury_ipc
14
+
15
+ WORKDIR /app
16
+
17
+ RUN apt-get update && apt-get install -y --no-install-recommends \
18
+ curl \
19
+ && rm -rf /var/lib/apt/lists/*
20
+
21
+ COPY requirements.txt .
22
+ RUN pip install --no-cache-dir -r requirements.txt
23
+
24
+ COPY syntropion_core/ ./syntropion_core/
25
+ COPY web/ ./web/
26
+ COPY syntropion ./syntropion
27
+ RUN chmod +x ./syntropion && ln -sfn syntropion synapse
28
+
29
+ RUN mkdir -p /app/data
30
+
31
+ EXPOSE 8000
32
+
33
+ HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
34
+ CMD curl -f http://localhost:8000/healthz || exit 1
35
+
36
+ ENTRYPOINT ["./syntropion"]
37
+ CMD ["run-server", "--host", "0.0.0.0", "--port", "8000"]