Skip to content

feat(platform-core): Capability Registry runtime wiring (W3)#74

Merged
selimmujdeci merged 2 commits into
mainfrom
feat/capability-registry-wiring
Jul 12, 2026
Merged

feat(platform-core): Capability Registry runtime wiring (W3)#74
selimmujdeci merged 2 commits into
mainfrom
feat/capability-registry-wiring

Conversation

@selimmujdeci

Copy link
Copy Markdown
Owner

Amaç (Roadmap FAZ 2 · W3)

Daha önce foundation olarak hazırlanan Capability Provider Adapter + runtime provider'ları
İLK kez gerçek capabilityRegistry singleton'ına — SALT-OKUNUR AYNA MODUNDA — bağlar.
Yeni özellik/mimari değişikliği değil; yalnız mevcut foundation'ı güvenli aktive etmek.
Bağımlılık: ✅ W2 Vehicle HAL Wiring.

Salt-okunur analiz bulgusu (varsayım yok)

grep "apability" SystemBoot.tsBOŞ: Registry boot'a hiç bağlı değildi (W2'nin aksine).
Foundation mevcut: capabilityRegistry (PR #48), capabilityProviderAdapter (PR #52),
runtimeCapabilityProviders. Eksik olan yalnız runtime wiring.

Hedef veri akışı

createRuntimeCapabilityProviders({ env: { navigator, deviceTier } })   (gerçek browser-API kanıtı)
  → createCapabilityProviderAdapter({ registry, providers })           (kanıt → registry.resolveCapability)
  → capabilityRegistry                                                 (singleton; kimse tüketmez)

En küçük güvenli kapsam (bilinçli)

Yalnız yan-etkisiz, salt-okunur browser-API + deviceTier kanıtı bağlanır:
device.gps/microphone/bluetooth/wifi/cellular, navigation.gps. Probe-tabanlı provider'lar
(secureStorage / AI BYOK config / modül runtime readiness / offline map-routing) bilinçli
bağlanmadı
→ ilgili capability'ler Registry'de unknown kalır (zero-trust, dürüst boşluk).
Bu, yeni yan etki / yeni modül import'u / native çağrı eklemeden en küçük gerçek-kanıt akışını
sağlar; gerçek probe'lar sonraki PR'da eklenir (foundation'ın tasarımı da bu — probe DI).

Kural uyumu

HAL/store/registry sahibi değişmez · adapter yalnız köprü · Event Bus / Capability tüketici
migrasyonu / Deep Scan / Platform Kernel YOK
· UI/native/SQL/OBD/CAN dokunulmaz · yeni timer/
polling yok · import yan etkisiz (start...() çağrılana dek inert) · tek-instance guard ·
fail-soft (dışarı exception kaçmaz) · zero-leak (cleanup adapter dispose) · dedup (_last imza) ·
O(1). capabilityRegistry PAYLAŞILAN singleton → cleanup dispose ETMEZ.

Değişen dosyalar

Dosya Ne
platform/system/platformCoreCapabilityWiring.ts yeni — W2 deseninin analog'u wiring
platform/system/SystemBoot.ts Wave 2 additive _reg kaydı (savunmacı try/catch)
__tests__/platformCoreCapabilityWiring.test.ts yeni — 32 test
docs/DEVICE_VALIDATION_LEDGER.md #58 🔴 cihaz bekliyor

Doğrulama

🤖 Generated with Claude Code

Selim and others added 2 commits July 12, 2026 20:31
…ers→adapter→registry

Daha once foundation olarak hazirlanan Capability Provider Adapter + runtime provider'lari
ILK kez gercek capabilityRegistry singleton'ina SALT-OKUNUR AYNA modunda baglar. SystemBoot
Wave 2'de additive kayit (_reg, LIFO shutdown; savunmaci try/catch fail-soft).

Zincir: createRuntimeCapabilityProviders({env:{navigator,deviceTier}}) → createCapability
ProviderAdapter({registry,providers}) → capabilityRegistry.

EN KUCUK GUVENLI KAPSAM: yalniz yan-etkisiz browser-API + deviceTier kanidi baglanir
(device.gps/microphone/bluetooth/wifi/cellular, navigation.gps). Probe-tabanli provider'lar
(secureStorage/AI BYOK/modul readiness/offline map-routing) BILINCLI baglanmaz → ilgili
capability'ler Registry'de unknown kalir (zero-trust, durust bosluk; gercek probe'lar ayri PR).

Kurallar korundu: HAL/store/registry sahibi degismez · adapter yalniz kopru · Event Bus/Deep
Scan/Platform Kernel/tuketici migrasyonu YOK · UI/native/SQL/OBD/CAN dokunulmaz · yeni timer/
polling yok · import yan etkisiz · tek-instance guard · fail-soft · zero-leak · dedup (adapter
_last imza) · O(1). capabilityRegistry PAYLASILAN singleton → cleanup dispose ETMEZ.

Test: 32 yeni test (yasam dongusu/dedup/duplicate/fail-soft/bounded status/kapsam-siniri/
SystemBoot sira kilidi). Tam suite 3603 yesil (202 dosya), tsc temiz, lint 0 error, build OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0141GKY1eQru4Ap1PWN4VVst
…fied, cihaz bekliyor

providers→adapter→registry ayna modu host-dogrulandi (32 test, suite 3603, tsc/lint/build
temiz). Cihazda started/providerCount/resolvedCount + regresyon yoklugu dogrulanmali.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0141GKY1eQru4Ap1PWN4VVst
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
car-launcher-pro Ready Ready Preview, Comment Jul 12, 2026 5:38pm
carospro Ready Ready Preview, Comment Jul 12, 2026 5:38pm

@selimmujdeci selimmujdeci merged commit 518a7cb into main Jul 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant