Skip to content

kenanay/AykenOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

417 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AykenOS

The Constitutional AI Operating System

Anayasal Yapay Zeka İşletim Sistemi

This document is subordinate to PHASE 0 – FOUNDATIONAL OATH. In case of conflict, Phase 0 prevails.

Copyright (c) 2026 Kenan AY. All rights reserved.

License: Proprietary Author: Kenan AY Status: Protected

Oluşturan: Kenan AY Düzenleyen / Geliştiren / Mimari Sorumlu: Kenan AY (bilgilendirme metadata'sı; runtime yetkisi değildir) Oluşturma Tarihi: 01.01.2026 Son Güncelleme: 02.06.2026 Closure Evidence: local-freeze-p10p11 + local-phase11-closure + run-local-phase12c-closure-2026-03-11 + run-local-p13-kill-switch-20260315T000051Z + phase15-official-closure + phase16-verification-layer-mvp-complete Evidence Git SHA (Phase-10/11): 9cb2171b | Evidence Git SHA (Phase-12C): 01d1cb5c | Evidence Git SHA (Phase-13): 40158350 | Evidence Git SHA (Phase-15): 48970cd0 | Evidence Git SHA (Phase-16): 489868f8 Closure Sync / Remote CI (Phase-10/11): fe9031d7 (ci-freeze#22797401328 = success) 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 Remote CI (Phase-16): Verification Layer MVP complete (2026-04-25) CURRENT_PHASE: 17 (Phase-17 OFFICIALLY CLOSED; Phase-18 ayrı transition olmadan aktif değildir) Freeze Zinciri: make ci-freeze = 40 kapılı strict suite (normative spec-purity dahil) | make ci-freeze-local = local performance authority Authority Durumu: Issue #145 tek-maintainer authority kararıyla giderildi; PR #142, PR #144, PR #148, PR #149, PR #151, PR #150, PR #152 ve Phase-17 closure decision package birleşti. Closure exact-SHA kanıtı main SHA 416a5392 üzerinde yenilendi, gerekli uzak acceptance kontrolleri PASS verdi ve phase17-official-closure tag'i aynı SHA'ya doğrulandı Yakın Hedef: Phase-18 Platform Constitution RFC setini yazmak; mevcut somut çıktılar docs/specs/phase18-platform-constitution/MODULE_MANIFEST_SCHEMA.md, docs/specs/phase18-platform-constitution/CAPABILITY_CONTRACT_SPECIFICATION.md, docs/specs/phase18-platform-constitution/WORKSPACE_LIFECYCLE_SPECIFICATION.md ve docs/specs/phase18-platform-constitution/PACKAGE_METADATA_SCHEMA.md, explicit pointer transition olmadan Phase-18 aktive edilmez Ring0 Export Ceiling: 193 symbols (current enforced ceiling) Performance Baseline Candidate: gha-ubuntu24-20260518.149.1-X64 (authorized run 26370359958 artifact'i PR'a import edildi; SHA f129d4aa locked acceptance PASS verdi, ancak tek basina closure authority değildir) Development Status: Phase-16 OFFICIALLY CLOSED ✅ | Phase-17 OFFICIALLY CLOSED ✅ | SINGLE-MAINTAINER AUTHORITY ALIGNED (#145 RESOLVED) ✅ | PR #142/#144/#148/#149/#151/#150/#152 + closure decision package MERGED ✅ | EXACT-SHA REMOTE EVIDENCE PASS ✅ | Phase-18 TRANSITION DECISION PACKAGE ONLY

Proje Durumu: Core OS Phase 4.5 TAMAMLANDI ✅ | Phase 10-17 kapanış kayıtları mevcut ✅ | Phase 17 Execution Pipeline OFFICIALLY CLOSED ✅ (2026-05-31) | CURRENT_PHASE=17 🔄 | Phase-18 ayrı transition olmadan aktif değil 🔒 | 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: 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: OFFICIALLY CLOSED ✅ | tag phase17-official-closure at 416a5392 | full ci-freeze (26712333892), locked performance (26715068398, 26712374737) ve Phase-17 QEMU evidence lanes (26712374742, 26712374736, 26712374727, 26712374744, 26712374728) PASS | reports/phase17_official_closure_candidate/ Phase 18 Status: TRANSITION DECISION PACKAGE ONLY | Proposed direction: Platform Constitution; kernel expansion/new syscalls/AI authority forbidden unless a separate phase RFC and closure authority exists Architecture Quick Map: docs/specs/phase12-trust-layer/AYKENOS_GATE_ARCHITECTURE.md Active Execution Roadmap: docs/roadmap/CONSTITUTIONAL_STABILIZATION_ROADMAP_2026_05_23.md + Phase-18 Platform Constitution RFC set | accepted main SHA 416a5392 uzerinde bounded uzak evidence PASS; official closure tag doğrulandı; Phase-18 explicit transition gerektirir 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.

⚠️ CI Mode: ci-freeze workflow varsayılan olarak CONSTITUTIONAL modda çalışır (PERF_BASELINE_MODE=constitutional); provisional yol yalnız diagnosis/baseline artifact adayıdır ve acceptance/closure otoritesi değildir. Ayrıntı: Constitutional CI Mode, Provisional CI Mode ve Performance Baseline Policy.


Phase Status

  • Current Phase: 17
  • Status: OFFICIALLY CLOSED / PHASE-18 TRANSITION NOT ACTIVATED
  • Last Official Closure: 17 (Execution Pipeline, 2026-05-31)
  • Candidate Next Phase: 18 (Platform Constitution; transition decision package only)
  • Verification Layer: COMPLETE (MVP delivered 2026-04-25)
  • Closure Index: reports/phase17_official_closure_candidate/closure_index.json
  • Phase-17 Authority Note: phase17-official-closure resolves to the reviewed exact-SHA evidence subject; Phase-18 activation still requires a separate transition decision.

🎯 Latest Breakthrough (2026-04-24)

Ring3 First-Retirement Starvation SOLVED

  • Problem: Pure proof-off koşuda userland'e geçiliyor ama _start içindeki ilk instruction bile retire etmiyor
  • Solution: minimal_bcib_first_retire_probe.S ile izole edildi
  • Evidence: A, B, C karakterleri başarıyla syscall üzerinden basıldı
  • Result: Ring3 infrastructure PROVEN, syscall path WORKING, instruction retirement VALIDATED

Next Focus: Phase-18 Platform Constitution RFC setini yazmak; mevcut çıktılar docs/specs/phase18-platform-constitution/MODULE_MANIFEST_SCHEMA.md, docs/specs/phase18-platform-constitution/CAPABILITY_CONTRACT_SPECIFICATION.md, docs/specs/phase18-platform-constitution/WORKSPACE_LIFECYCLE_SPECIFICATION.md ve docs/specs/phase18-platform-constitution/PACKAGE_METADATA_SCHEMA.md, CURRENT_PHASE explicit pointer transition olmadan 18 yapılmayacaktır.

Authority Model

  • Official Closure
    • Phase-tagged, immutable
    • Verified via ayken closure verify
  • Verified Head
    • Development SHA validated by remote ci-freeze
    • Verified via ayken head verify
  • Authority Lineage
    • Advisory ancestry diagnostics only
    • Exposed via ayken head lineage
    • Must not inherit verified authority across SHAs

Current verified-head records live under reports/verified_heads/<FULL_SHA>.json. These records are SHA-scoped CI projections. ayken head verify only succeeds when an exact record for the current SHA is available locally. Authority lineage, when added, is diagnostic context only.

A verified head is not a closure.


🔒 IMPORTANT LEGAL NOTICE

This software is proprietary and confidential. All rights reserved by Kenan AY.

⚖️ Usage Restrictions:

  • Educational viewing permitted for learning purposes
  • Commercial use prohibited without license
  • Modification prohibited without written permission
  • Distribution prohibited without authorization
  • Reverse engineering prohibited

� Licensing Contact:

For commercial licensing, partnerships, or permissions:


🎯 Proje Vizyonu

AykenOS, yapay zeka destekli, yenilikçi ve çoklu mimari işletim sistemi projesidir. Geleneksel işletim sistemlerinden farklı olarak, execution-centric (yürütme merkezli) bir mimari benimser ve AI-native (yapay zeka doğal) tasarım prensipleriyle geliştirilmiştir.

Mimari Dönüşüm

  • Ring0 (Kernel Mode): 12 execution-centric mekanizma syscall'ı (1000-1011 aralığı)
  • Ring3 (User Mode): Tüm politika kararları (VFS, DevFS, AI, scheduler) kullanıcı modunda
  • Capability-Based Security: Yetenek tabanlı güvenlik modeli ile erişim kontrolü
  • BCIB Execution Engine: Binary Compressed Instruction Bundle formatı ile veri-odaklı yürütme

🚀 Temel Özellikler

Execution-Centric Syscall Interface (1000-1011)

ID Syscall Açıklama
1000 sys_v2_map_memory Bellek haritalama
1001 sys_v2_unmap_memory Bellek haritalama kaldırma
1002 sys_v2_switch_context Bağlam değiştirme
1003 sys_v2_submit_execution BCIB yürütme gönderimi
1004 sys_v2_wait_result Yürütme sonucu bekleme
1005 sys_v2_interrupt_return Kesme dönüşü
1006 sys_v2_time_query Zaman sorgulama
1007 sys_v2_capability_bind Yetenek bağlama
1008 sys_v2_capability_revoke Yetenek iptal etme
1009 sys_v2_exit Süreç sonlandırma
1010 sys_v2_debug_putchar Ring3 debug heartbeat
1011 sys_v2_complete_execution Yürütme slot yaşam döngüsü tamamlama

ABI authority: shared/abi/syscall_v2.h sabit 1000-1011 / 12 yüzeyini tanımlar; shared/abi/ayken_abi.h bu yüzey için 0x00010001 sürümünü taşır.

Çoklu Mimari Desteği

  • UEFI/x86_64: Tam özellikli kernel ve bootloader ✅
  • ARM64: Bootloader implementasyonu 🔄
  • RISC-V: Bootloader implementasyonu 🔄
  • Raspberry Pi: Özel bootloader desteği ✅
  • MCU: Mikrodenetleyici bootloader ✅

📁 Proje Yapısı

AykenOS/
├── kernel/              # C tabanlı çekirdek (Ring0, x86_64)
├── bootloader/          # Çoklu mimari bootloader'lar
├── userspace/           # Ring3 bileşenleri (Rust + C)
│   ├── libayken/       # Ring3 VFS/DevFS/Scheduler (C)
│   ├── bcib-runtime/   # BCIB execution engine
│   ├── semantic-cli/   # Semantic CLI
│   ├── dsl-parser/     # DSL parser
│   └── proofd/         # Proof daemon service
├── ayken-core/          # AI/data systems (Rust)
│   └── crates/
│       ├── abdf/       # Ayken Binary Data Format
│       ├── bcib/       # Binary CLI Instruction Buffer
│       └── proof-verifier/ # Trust layer verification
├── ayken/               # Constitutional governance tool (Rust)
├── docs/                # Dokümantasyon
│   └── specs/phase12-trust-layer/  # Phase 12 spesifikasyonları
├── scripts/ci/          # CI gate scriptleri
├── tests/               # External invariant-based scenarios and validators
├── tools/test_runner/   # External scenario runner + normalizer + validator pipeline
├── tools/ci/            # CI test araçları
├── evidence/            # CI gate evidence (auto-generated)
└── constitution/        # Constitutional framework

🛠️ Derleme ve Çalıştırma

Gereksinimler

  • clang + ld.lld — Kernel toolchain
  • nasm — Assembler
  • qemu-system-x86_64 — Test/emülasyon
  • cargo / rustc — Rust bileşenleri (opsiyonel)

Temel Komutlar

# Temiz build
make clean && make all

# EFI disk imajı + QEMU
make efi-img
make run

# Profil bazlı build
make release          # Optimized (default)
make validation       # Debug + instrumentation
make validation-strict # Validation + -Werror

CI Gates

# Pre-CI discipline (local, ~30-60s)
make ci-gate-abi
make ci-gate-boundary
make ci-gate-hygiene
make ci-gate-constitutional
make ci-gate-ring3-user-leaf-rule
make ci-gate-test-naming
make ci-gate-error-codes
make ci-gate-kernel-test-pipeline
make ci-kernel-tests

# Tam CI suite
make ci-freeze        # strict freeze suite (fail-closed)
make ci-freeze-local  # local freeze suite (local perf authority active)
make ci-gate-performance-local  # local perf gate with auto-init gitignored baseline

Rust Bileşenleri

cd ayken-core && cargo build && cargo test
cd userspace && cargo build && cargo test
cd ayken && cargo build && ./target/debug/ayken check

📊 Proje Durumu

Tamamlanan Fazlar

Faz Durum Açıklama
Phase 1 — Core Kernel ✅ CLOSED UEFI boot, bellek, GDT/IDT, sürücüler
Phase 1.5 — Stabilization ✅ CLOSED Ring3 round-trip, toolchain doğrulama
Phase 2 — Execution-Centric ✅ CLOSED 11 syscall at closure; current v2 ABI extends the ratified surface to 12
Phase 2.5 — Legacy Cleanup ✅ CLOSED POSIX kaldırma, Ring0 policy temizliği
Phase 3.4 — Multi-Agent ✅ CLOSED Gate A-E tamamlandı
Phase 4.3 — Performance ✅ CLOSED HashMap→Indexed (3-5x), 80%+ mem azalma
Phase 4.4 — Ring3 Model ✅ CLOSED Ring3 execution, syscall roundtrip
Phase 4.5 — Policy Accept ✅ CLOSED Gate-4 policy-accept proof operasyonel
Phase 10 — Runtime ✅ OFFICIALLY CLOSED CPL3 entry, deterministic runtime
Phase 11 — Verification ✅ OFFICIALLY CLOSED Ledger, ETI, replay, proof bundle
Phase 12 — Trust Layer ✅ OFFICIALLY CLOSED tag phase12-official-closure-confirmed, remote CI run 23099070483 (PR #62)
Phase 13 — Distributed Observability ✅ OFFICIALLY CLOSED tag phase13-official-closure-confirmed, remote CI run 23706742211 (PR #81)
Phase 14 — Distributed Observability Hardening ✅ OFFICIALLY CLOSED Replay determinism, proofd boundary, cross-node graph, observability UX
Phase 15 — BCIB Execution Engine v3 ✅ OFFICIALLY CLOSED Three-layer BCIB runtime, 293 tests PASS, 12 property tests PASS
Phase 16 — Verification Layer MVP ✅ OFFICIALLY CLOSED Evidence chain integrity, trust anchor, constitutional enforcement, 3 gates operational

Phase 12 Detayı

Phase 12 trust layer kapsamında tamamlananlar:

  • P12-01..P12-18 — Tüm gate'ler GREEN (20/20 PASS)
  • ✅ Authority Sinkhole Absorption — gate_authority_sinkhole_absorption.sh
  • ✅ Authority Sinkhole Companion Flow/Producer
  • ✅ Trust Reuse Runtime Evaluator / Surface / Emitter
  • ✅ Verification Context Object + Verifier Attestation
  • ✅ Verification Diversity Floor / Ledger / Producer
  • ✅ Cartel Correlation gate
  • ✅ proofd service observability boundary
  • ✅ Cross-surface basin alignment metrics
  • ✅ Remote ci-freeze run 23099070483 confirmed (PR #62)
  • ✅ Official closure tag: phase12-official-closure-confirmed at 1d79d4b1

CI Gate Durumu (18 Mart 2026)

Gate Durum
ABI ✅ PASS
Boundary ✅ PASS
Hygiene ✅ PASS
Constitutional ✅ PASS
Ring0 Exports ✅ PASS
Syscall v2 Runtime ✅ PASS
Sched Bridge Runtime ✅ PASS
Policy Accept ✅ PASS
Performance ✅ PASS
proofd-service ✅ PASS

Worktree-Local Ring3 User-Leaf Rule

  • ci-gate-ring3-user-leaf-rule artik active, local deterministic, fail-closed enforcement olarak baglidir.
  • Runtime authority zinciri: P10_TEXT_FRAME_WITNESS -> P10_POST_CR3_TEXT_PROBE -> P10_RING3_USER_CODE
  • Bu gate executable user-leaf rule'unu korur; broader ci-gate-ring3-execution-phase10a2 strict/global authority iddiasi yerine gecmez.

📚 Dokümantasyon

  • Architecture Map: docs/specs/phase12-trust-layer/AYKENOS_GATE_ARCHITECTURE.md
  • Phase 13 Hazırlık: docs/specs/phase12-trust-layer/PHASE13_ARCHITECTURE_MAP.md
  • Verification Observability: docs/specs/phase12-trust-layer/VERIFICATION_OBSERVABILITY_MODEL.md
  • Trust Reuse Runtime: docs/specs/phase12-trust-layer/TRUST_REUSE_RUNTIME_SURFACE_SPEC.md
  • Authority Sinkhole: docs/specs/phase12-trust-layer/AUTHORITY_SINKHOLE_COMPANION_FLOW_SPEC.md
  • Constitutional CI Mode: docs/operations/CONSTITUTIONAL_CI_MODE.md
  • Freeze Workflow: docs/roadmap/freeze-enforcement-workflow.md
  • Active Execution Roadmap: docs/roadmap/CONSTITUTIONAL_STABILIZATION_ROADMAP_2026_05_23.md
  • Phase-18 Transition Decision: PHASE18_TRANSITION_DECISION.md
  • Phase-18 Module Manifest Schema: docs/specs/phase18-platform-constitution/MODULE_MANIFEST_SCHEMA.md
  • Phase-18 Capability Contract Specification: docs/specs/phase18-platform-constitution/CAPABILITY_CONTRACT_SPECIFICATION.md
  • Phase-18 Workspace Lifecycle Specification: docs/specs/phase18-platform-constitution/WORKSPACE_LIFECYCLE_SPECIFICATION.md
  • Phase-18 Package Metadata Schema: docs/specs/phase18-platform-constitution/PACKAGE_METADATA_SCHEMA.md
  • Documentation Index: docs/development/DOCUMENTATION_INDEX.md
  • Ring3 User-Leaf Rule: docs/governance/RING3_USER_LEAF_ALLOCATION_RULE.md
  • Ring3 Runtime Closure Note: docs/governance/RING3_RUNTIME_CLOSURE_NOTE.md
  • Test Naming Convention: docs/governance/TEST_NAMING_CONVENTION.md
  • Test Pipeline Contract: docs/governance/TEST_PIPELINE_CONTRACT.md

� Lisans

AykenOS iki lisans modeli ile dağıtılır:

ASAL v1.0 — AykenOS Source-Available License

  • ✅ Eğitim, araştırma, kişisel kullanım
  • ❌ Ticari kullanım yasak

ACL v1.0 — AykenOS Commercial License

  • ✅ Ticari ürünler, SaaS, entegrasyon
  • ✅ Binary dağıtımı
  • Lisans için: kenanay@example.com

🎯 Sonraki Hedefler

Kısa Vadeli (Phase-18 Transition):

  • PHASE18_TRANSITION_DECISION.md merged; this is not Phase-18 activation.
  • CURRENT_PHASE transition decision; explicit pointer update olmadan Phase-18 aktive edilmez.
  • Platform ABI schema draft.
  • Module manifest schema RFC draft: docs/specs/phase18-platform-constitution/MODULE_MANIFEST_SCHEMA.md.
  • Capability contract RFC draft: docs/specs/phase18-platform-constitution/CAPABILITY_CONTRACT_SPECIFICATION.md.
  • Workspace lifecycle contract RFC draft: docs/specs/phase18-platform-constitution/WORKSPACE_LIFECYCLE_SPECIFICATION.md.
  • Package metadata schema RFC draft: docs/specs/phase18-platform-constitution/PACKAGE_METADATA_SCHEMA.md; identity/version/publisher/hash/signature/dependency/compatibility only.
  • Trust classification validation gate; trust level capability grant degildir.
  • Plugin boundary contract draft.

Orta Vadeli:

  • Phase-19 Platform Runtime MVP.
  • Phase-20 Capability Ecosystem / Module Registry.
  • Deferred Validation Backlog: BCIB completeness, SMP safety, exhaustive race coverage ve advanced interrupt validation.

Uzun Vadeli:

  • Phase-21 Semantic CLI Integration.
  • Phase-22 AI Runtime Foundation.
  • Phase-23+ Agent Systems.
  • Ekosistem geliştirme

Son Güncelleme: 02 Haziran 2026 - Phase-17 resmi kapanış otoritesi phase17-official-closure tag'iyle 416a5392 üzerinde doğrulandı; CURRENT_PHASE=17; Module Manifest, Capability Contract, Workspace Lifecycle ve Package Metadata RFC draft'lari Phase-18 Platform Constitution pre-activation setine eklendi; explicit transition olmadan Phase-18 aktif değildir. Düzenleyen / Geliştiren / Oluşturan / Mimari Sorumlu: Kenan AY (metadata only; runtime/karar yetkisi değildir).

© 2026 Kenan AY — AykenOS Project

About

AykenOS is an AI-native, execution-centric experimental operating system redefining OS architecture with Ring3 policy control, capability-based security, BCIB execution engine, and constitutional governance infrastructure.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors