Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .kiro/specs/tools-verification-layer/.config.kiro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"specId": "1e36e75e-3f38-48d1-8ada-2b57dc4a9405", "workflowType": "requirements-first", "specType": "feature"}
1,007 changes: 1,007 additions & 0 deletions .kiro/specs/tools-verification-layer/design.md

Large diffs are not rendered by default.

494 changes: 494 additions & 0 deletions .kiro/specs/tools-verification-layer/requirements.md

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions .kiro/specs/tools-verification-layer/tasks.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions ARCHITECTURE_FREEZE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# ARCHITECTURE_FREEZE.md

**Project:** AykenOS
**Version:** 1.2
**Status:** ACTIVE FREEZE
**Version:** 1.3
**Status:** ACTIVE FREEZE (Phase-17 Integration)
**Effective Date:** 2026-02-13
**Last Update:** 2026-04-25 (Phase-17 Verification Layer Integration)
**Owner:** AykenOS Core Architecture Team
**Authority:** Kenan AY

Expand Down
191 changes: 176 additions & 15 deletions Makefile

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,24 @@ This document is subordinate to PHASE 0 – FOUNDATIONAL OATH. In case of confli
**Remote CI (Phase-12):** `ci-freeze#23099070483 = success` (PR #62)
**Remote CI (Phase-13):** `ci-freeze#23706742211 = success` (PR #81)
**Remote CI (Phase-15):** `ci-freeze#24213727039 = success` (PR #104) | tag `phase15-official-closure`
**CURRENT_PHASE:** `15` (`Phase-15 OFFICIALLY CLOSED — CURRENT_PHASE=15 — Phase-16 Faz B ACTIVE DEVELOPMENT`)
**CURRENT_PHASE:** `16` (`Phase-16 OFFICIALLY CLOSED — CURRENT_PHASE=16 — Phase-17 Execution Pipeline PENDING`)
**Freeze Zinciri:** `make ci-freeze` = strict freeze suite | `make ci-freeze-local` = local freeze suite with local performance authority
**Acil Blocker:** `yok` (Ring3 first-retirement starvation SOLVED 2026-04-24)
**Yakın Hedef:** Phase-16 Faz B completion (BCIB worker payload debug + kernel integration)
**Acil Blocker:** `yok` (Verification Layer MVP COMPLETE 2026-04-25)
**Yakın Hedef:** Phase-17 Execution Pipeline (BCIB worker payload + kernel integration + real workload validation)
**Ring0 Export Ceiling:** `193 symbols` (current enforced ceiling)
**Performance Baseline:** `gha-ubuntu24-20260406.80.1-X64`
**Development Status:** Phase-16 Faz B ACTIVE | Ring3 infrastructure PROVEN | BCIB worker payload debug IN PROGRESS
**Development Status:** Phase-16 OFFICIALLY CLOSED ✅ | Verification Layer MVP COMPLETE ✅ | Phase-17 Execution Pipeline PENDING 🔄

**Proje Durumu:** Core OS Phase 4.5 TAMAMLANDI ✅ | Phase 10 runtime CLOSED (official) ✅ | Phase 11 verification substrate CLOSED (official) ✅ | Phase 12 trust layer OFFICIALLY CLOSED ✅ | Phase 13 distributed observability OFFICIALLY CLOSED ✅ | Phase 14 observability hardening OFFICIALLY CLOSED ✅ | Phase 15 BCIB Execution Engine v3 OFFICIALLY CLOSED ✅ | CURRENT_PHASE=15 ✅ | Phase-16 Faz B ACTIVE DEVELOPMENT ✅ | Ring3 First-Retirement Breakthrough ACHIEVED ✅ | Architecture Freeze ACTIVE ✅
**Proje Durumu:** Core OS Phase 4.5 TAMAMLANDI ✅ | Phase 10 runtime CLOSED (official) ✅ | Phase 11 verification substrate CLOSED (official) ✅ | Phase 12 trust layer OFFICIALLY CLOSED ✅ | Phase 13 distributed observability OFFICIALLY CLOSED ✅ | Phase 14 observability hardening OFFICIALLY CLOSED ✅ | Phase 15 BCIB Execution Engine v3 OFFICIALLY CLOSED ✅ | Phase 16 Verification Layer MVP OFFICIALLY CLOSED ✅ | CURRENT_PHASE=16 ✅ | Phase-17 Execution Pipeline PENDING 🔄 | Architecture Freeze ACTIVE ✅
**Boot/Kernel Bring-up:** UEFI→kernel handoff doğrulandı ✅ | Ring3 process preparation operasyonel ✅ | ELF64 loader çalışıyor ✅ | User address space creation aktif ✅ | Syscall roundtrip doğrulandı ✅ | IRQ-tail preempt doğrulama hattı mevcut ✅
**Phase 10 Status:** Runtime determinism officially closed ✅ | remote `ci-freeze` run `22797401328`
**Phase 11 Status:** Replay + KPL + proof bundle officially closed ✅
**Phase 12 Status:** OFFICIALLY CLOSED ✅ | tag `phase12-official-closure-confirmed` at `1d79d4b1` | remote `ci-freeze` run `23099070483` (PR #62)
**Phase 13 Status:** OFFICIALLY CLOSED ✅ | tag `phase13-official-closure-confirmed` at `8b23fe0d` | remote `ci-freeze` run `23706742211` (PR #81) | Architecture Map §4 workstreams COMPLETE
**Phase 14 Status:** OFFICIALLY CLOSED ✅ | all 5 workstreams merged | `obs-cli` consumer crate complete | Phase-14 observability invariants preserved
**Phase 15 Status:** OFFICIALLY CLOSED ✅ | tag `phase15-official-closure` at `48970cd0` | remote `ci-freeze` run `24213727039` (PR #104) | BCIB Execution Engine v3: three-layer architecture, 293 tests PASS, 12 property tests PASS | `ayken-cli` v0.1 (Faz A wrapper) shipped | `tools/ayken-cli/`
**Phase 16 Status:** Faz B ACTIVE DEVELOPMENT 🔄 | Ring3 first-retirement starvation SOLVED (2026-04-24) | Syscall infrastructure PROVEN | BCIB worker payload debug IN PROGRESS | Kernel integration PENDING
**Phase 16 Status:** OFFICIALLY CLOSED ✅ | Verification Layer MVP COMPLETE | Evidence chain integrity verified | Trust anchor established | `make verify-system` → 3 gates → PASS | Constitutional rule enforcement active | Fail-closed behavior confirmed
**Phase 17 Status:** PENDING 🔄 | Execution Pipeline preparation | BCIB worker payload integration | Real workload validation | System completion phase
**Architecture Quick Map:** `docs/specs/phase12-trust-layer/AYKENOS_GATE_ARCHITECTURE.md`
**Canonical Technical Definition:** AykenOS is a deterministic verification architecture that separates kernel execution, verification semantics, evidence artifacts, and distributed diagnostics into explicit layers. The kernel provides mechanism, userspace verification services produce artifact-bound verdicts and receipts, and parity/topology surfaces expose cross-node observability without elevating diagnostics into authority or consensus.

Expand All @@ -46,8 +47,10 @@ This document is subordinate to PHASE 0 – FOUNDATIONAL OATH. In case of confli

## Phase Status

- **Current Phase:** `15`
- **Current Phase:** `16`
- **Status:** `OFFICIALLY CLOSED`
- **Next Phase:** `17` (Execution Pipeline)
- **Verification Layer:** `COMPLETE` (MVP delivered 2026-04-25)
- **Closure Index:** `reports/phase15_official_closure/closure_index.json`
- **Next Phase:** `16` (`Faz B ACTIVE DEVELOPMENT` — Ring3 breakthrough achieved, BCIB worker payload debug in progress)

Expand Down
151 changes: 118 additions & 33 deletions ayken-docs-web/DOCUMENTATION_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
**AykenOS - The Constitutional AI Operating System**
*Anayasal Yapay Zeka İşletim Sistemi*

**Son Güncelleme:** 26 Nisan 2026
**Proje Durumu:** Phase-16 Faz B (Ring3 Infrastructure PROVEN)
**Dokümantasyon Versiyonu:** v2.1

## 📋 Genel Strateji

### Hedef Kitle
Expand Down Expand Up @@ -39,22 +43,27 @@ docs/
### Seviye 2: Alt Kategoriler

#### 01-baslangic/
- `hizli-baslangic.html` - Quick Start Guide
- `hizli-baslangic.html` - Quick Start Guide ✅ (Mevcut)
- `sistem-gereksinimleri.html` - System Requirements
- `kurulum-rehberi.html` - Installation Guide
- `kurulum-rehberi.html` - Installation Guide ✅ (Mevcut)
- `ilk-adimlar.html` - First Steps
- `vs-code-kurulumu.html` - VS Code Setup
- `kod-yapisini-kesfetme.html` - Code Structure Exploration ✅ (Mevcut)
- `mimari-felsefe.html` - Architectural Philosophy ✅ (Mevcut)

#### 02-mimari/
- `genel-bakis.html` - Architecture Overview
- `genel-bakis.html` - Architecture Overview ✅ (Mevcut)
- `cekirdek-mimari.html` - Kernel Architecture
- `kullanici-alani.html` - Userspace Architecture
- `guvenlik-modeli.html` - Security Model
- `bellek-yonetimi.html` - Memory Management
- `surecler-ve-threadler.html` - Processes & Threads
- `ring0-ring3-ayirimi.html` - Ring0/Ring3 Separation
- `syscall-arayuzu.html` - Syscall Interface (1000-1010)
- `bcib-execution-engine.html` - BCIB Execution Engine

#### 03-anayasal-sistem/
- `anayasal-yonetisim.html` - Constitutional Governance
- `anayasal-yonetisim.html` - Constitutional Governance ✅ (Mevcut)
- `kural-sistemi.html` - Rule System
- `allow-sistemi.html` - Allow System
- `waiver-sistemi.html` - Waiver System
Expand All @@ -63,6 +72,9 @@ docs/
- `mars-sistemi.html` - Module Architecture Risk Score
- `arre-sistemi.html` - Allow → Refactor Recommendation Engine
- `arh-sistemi.html` - Auto-Refactor Hints
- `ci-gates.html` - CI Gates System (21+ Gates)
- `evidence-system.html` - Evidence System
- `phase-matrix.html` - Phase Matrix Authority

#### 04-gelistirme/
- `gelistirici-rehberi.html` - Developer Guide
Expand All @@ -71,106 +83,179 @@ docs/
- `debugging.html` - Debugging Guide
- `performans-optimizasyonu.html` - Performance Optimization
- `ci-cd-entegrasyonu.html` - CI/CD Integration
- `build-system.html` - Build System (Makefile)
- `toolchain-setup.html` - Toolchain Setup
- `qemu-testing.html` - QEMU Testing
- `ring3-development.html` - Ring3 Development

#### 05-api-referans/
- `abdf-api.html` - ABDF Format API
- `bcib-api.html` - BCIB Format API
- `kernel-api.html` - Kernel API
- `userspace-api.html` - Userspace API
- `cli-komutlari.html` - CLI Commands
- `cli-komutlari.html` - CLI Commands (ayken-cli v0.1)
- `rust-crates.html` - Rust Crates Reference
- `syscall-reference.html` - Syscall Reference (1000-1010)
- `abi-specification.html` - ABI Specification
- `capability-api.html` - Capability System API

#### 06-felsefe/
- `tasarim-felsefesi.html` - Design Philosophy
- `turk-yaklasimi.html` - Turkish Approach
- `anayasal-ilkeler.html` - Constitutional Principles
- `determinizm.html` - Determinism
- `mimari-estetiği.html` - Architectural Aesthetics
- `execution-centric-paradigm.html` - Execution-Centric Paradigm
- `ai-native-design.html` - AI-Native Design Philosophy
- `mechanism-policy-separation.html` - Mechanism-Policy Separation

#### 07-topluluk/
- `katkida-bulunma.html` - Contributing Guide
- `davranis-kurallari.html` - Code of Conduct
- `topluluk-rehberi.html` - Community Guide
- `iletisim.html` - Communication Channels
- `etkinlikler.html` - Events & Meetups
- `governance-participation.html` - Governance Participation
- `constitutional-compliance.html` - Constitutional Compliance Guide

#### 08-ornekler/
- `basit-uygulama.html` - Simple Application
- `kernel-modulu.html` - Kernel Module
- `userspace-servisi.html` - Userspace Service
- `anayasal-entegrasyon.html` - Constitutional Integration
- `performans-olcumu.html` - Performance Measurement
- `bcib-worker-example.html` - BCIB Worker Example
- `ring3-policy-example.html` - Ring3 Policy Example
- `capability-usage.html` - Capability Usage Examples

#### 09-sorun-giderme/
- `sik-sorunlar.html` - Common Issues
- `hata-kodlari.html` - Error Codes
- `debug-araclari.html` - Debug Tools
- `performans-sorunlari.html` - Performance Issues
- `anayasal-ihlaller.html` - Constitutional Violations
- `build-problems.html` - Build Problems
- `qemu-issues.html` - QEMU Issues
- `ring3-debugging.html` - Ring3 Debugging
- `ci-gate-failures.html` - CI Gate Failures

#### 10-referans/
- `terimler-sozlugu.html` - Glossary
- `komut-referansi.html` - Command Reference
- `yapilandirma-referansi.html` - Configuration Reference
- `mimari-kararlari.html` - Architecture Decision Records
- `surum-notlari.html` - Release Notes
- `phase-history.html` - Phase History
- `constitutional-rules.html` - Constitutional Rules Reference
- `performance-baselines.html` - Performance Baselines

## 🎯 Öncelik Sıralaması

### Faz 1: Temel Dokümantasyon (Hafta 1-2)
**Hedef**: Yeni kullanıcıların sistemi anlayıp kullanmaya başlaması
**Durum**: Phase-16 Faz B breakthrough sonrası güncelleme

1. **Kritik Öncelik**:
- `01-baslangic/hizli-baslangic.html` ✅ (Mevcut)
- `01-baslangic/kurulum-rehberi.html`
- `02-mimari/genel-bakis.html`
- `03-anayasal-sistem/anayasal-yonetisim.html`
- `01-baslangic/kurulum-rehberi.html` ✅ (Mevcut - güncelleme gerekli)
- `02-mimari/genel-bakis.html` ✅ (Mevcut - Phase-16 güncellemesi gerekli)
- `03-anayasal-sistem/anayasal-yonetisim.html` ✅ (Mevcut)

2. **Yüksek Öncelik**:
- `01-baslangic/sistem-gereksinimleri.html`
- `01-baslangic/vs-code-kurulumu.html`
- `04-gelistirme/gelistirici-rehberi.html`
- `06-felsefe/tasarim-felsefesi.html`
- `01-baslangic/sistem-gereksinimleri.html` (Yeni - Phase-16 gereksinimleri)
- `01-baslangic/vs-code-kurulumu.html` (Yeni)
- `04-gelistirme/gelistirici-rehberi.html` (Yeni - Ring3 development odaklı)
- `06-felsefe/execution-centric-paradigm.html` (Yeni - 11 syscall paradigması)

### Faz 2: Teknik Derinlik (Hafta 3-4)
**Hedef**: Geliştiricilerin sistem üzerinde çalışmaya başlaması
**Odak**: Ring3 infrastructure ve BCIB worker development

1. **Kritik Öncelik**:
- `03-anayasal-sistem/kural-sistemi.html`
- `03-anayasal-sistem/allow-sistemi.html`
- `03-anayasal-sistem/waiver-sistemi.html`
- `05-api-referans/cli-komutlari.html`
- `03-anayasal-sistem/ci-gates.html` (Yeni - 21+ gates sistemi)
- `03-anayasal-sistem/phase-matrix.html` (Yeni - Phase Matrix Authority)
- `05-api-referans/syscall-reference.html` (Yeni - 1000-1010 syscalls)
- `05-api-referans/cli-komutlari.html` (Güncelleme - ayken-cli v0.1)

2. **Yüksek Öncelik**:
- `02-mimari/cekirdek-mimari.html`
- `02-mimari/kullanici-alani.html`
- `04-gelistirme/kod-standartlari.html`
- `05-api-referans/abdf-api.html`
- `05-api-referans/bcib-api.html`
- `02-mimari/ring0-ring3-ayirimi.html` (Yeni - Constitutional boundary)
- `02-mimari/bcib-execution-engine.html` (Yeni - Phase-15 BCIB v3)
- `04-gelistirme/build-system.html` (Yeni - Makefile sistemi)
- `04-gelistirme/ring3-development.html` (Yeni - Ring3 policy development)

### Faz 3: İleri Seviye (Hafta 5-6)
**Hedef**: Uzman kullanıcılar ve katkıda bulunanlar için kaynak
**Odak**: Constitutional system ve performance optimization

1. **Kritik Öncelik**:
- `03-anayasal-sistem/ahs-sistemi.html`
- `03-anayasal-sistem/ahts-sistemi.html`
- `03-anayasal-sistem/mars-sistemi.html`
- `07-topluluk/katkida-bulunma.html`
- `03-anayasal-sistem/ahs-sistemi.html` (Güncelleme - ≥95 threshold)
- `03-anayasal-sistem/evidence-system.html` (Yeni - Immutable evidence)
- `07-topluluk/constitutional-compliance.html` (Yeni - Compliance guide)
- `08-ornekler/bcib-worker-example.html` (Yeni - Phase-16 Faz B)

2. **Yüksek Öncelik**:
- `03-anayasal-sistem/arre-sistemi.html`
- `03-anayasal-sistem/arh-sistemi.html`
- `08-ornekler/anayasal-entegrasyon.html`
- `09-sorun-giderme/sik-sorunlar.html`
- `03-anayasal-sistem/ahts-sistemi.html` (Güncelleme)
- `03-anayasal-sistem/mars-sistemi.html` (Güncelleme)
- `09-sorun-giderme/ring3-debugging.html` (Yeni - Ring3 troubleshooting)
- `09-sorun-giderme/ci-gate-failures.html` (Yeni - CI gate debugging)

### Faz 4: Tamamlama (Hafta 7-8)
**Hedef**: Kapsamlı referans ve topluluk kaynakları
**Odak**: Performance baselines ve multi-architecture support

1. **Orta Öncelik**:
- Kalan API referans sayfaları
- Detaylı örnekler ve tutorial'lar
- Sorun giderme rehberleri
- Topluluk ve katkı rehberleri
- `10-referans/phase-history.html` (Yeni - Phase 1-16 history)
- `10-referans/performance-baselines.html` (Yeni - Baseline locks)
- `08-ornekler/capability-usage.html` (Yeni - Capability examples)
- `09-sorun-giderme/build-problems.html` (Yeni - Build troubleshooting)

## 📊 Proje Durumu Güncellemesi (2026-04-26)

### Tamamlanan Fazlar
- ✅ **Phase-15**: BCIB Execution Engine v3 (Official Closure)
- ✅ **Phase-16 Faz A**: ayken-cli v0.1 (92% Complete)
- 🔄 **Phase-16 Faz B**: Ring3 Infrastructure (30% - Ring3 breakthrough achieved)

### Kritik Başarılar
- ✅ Ring3 First-Retirement Starvation SOLVED (2026-04-24)
- ✅ Syscall Infrastructure PROVEN
- ✅ Instruction Retirement VALIDATED
- ✅ 293 unit/integration tests + 12 property tests PASS

### Güncel Teknik Metrikler
```
Kod Tabanı: ~55,000 LOC (kernel + userspace + tools)
Test Kapsamı: ~75-80%
Constitutional Tests: 350+ passing
CI Gates: 21+ active
Architecture Health: ≥95 (AHS threshold)
```

### Dokümantasyon Güncellemesi Gereken Alanlar

1. **Ring3 Infrastructure** (Yüksek Öncelik)
- Ring3 first-retirement breakthrough
- Syscall path validation
- Instruction retirement proof
- BCIB worker payload development

2. **Constitutional System** (Yüksek Öncelik)
- 21+ CI gates sistemi
- Phase Matrix Authority
- Evidence system (immutable)
- Performance baseline locks

3. **Build System** (Orta Öncelik)
- Profile-based builds (release/validation)
- Feature flag system
- Multi-platform support
- Deterministic builds

4. **API References** (Orta Öncelik)
- ayken-cli v0.1 commands
- BCIB v3 API
- Syscall 1000-1010 reference
- Capability system API

## 📝 İçerik Standartları

Expand Down
12 changes: 6 additions & 6 deletions docs/development/PROJECT_STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Bu dokümantasyon, AykenOS projesinin dizin yapısını ve bileşenlerini detayl

**Güncel Durum:**
- **Core OS:** Phase 4.5 TAMAMLANDI ✅
- **Phase 10–13:** OFFICIALLY CLOSED ✅
- **Phase 14:** OFFICIALLY CLOSED ✅ (distributed observability, 5 workstream)
- **Phase 15:** OFFICIALLY CLOSED ✅ (BCIB Execution Engine v3, ci-freeze#24213727039, PR #104)
- **CURRENT_PHASE:** 15
- **Phase 16:** Faz B ACTIVE DEVELOPMENT ✅ (Ring3 breakthrough achieved 2026-04-24)
- **Phase 10–15:** OFFICIALLY CLOSED ✅
- **Phase 16:** OFFICIALLY CLOSED ✅ (Verification Layer MVP COMPLETE)
- **CURRENT_PHASE:** 16
- **Phase 17:** PENDING 🔄 (Execution Pipeline + System Completion)
- **Verification Layer:** `tools/verification/` COMPLETE ✅ (Evidence chain, trust anchor, constitutional enforcement)
- **Ayken CLI:** `tools/ayken-cli/` v0.1 (Faz A wrapper) — CC=clang enforcement, fail-closed
- **ayken/:** experimental/parked — `ayken/STATUS.md`
- **Latest Breakthrough:** Ring3 first-retirement starvation SOLVED
- **Latest Achievement:** Verification Layer MVP delivered with evidence chain integrity

---

Expand Down
Loading
Loading