Metadata-Version: 2.4
Name: omega-cognitive-kernel
Version: 0.5.19
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Summary: Python bindings for omega-cognitive-kernel: Online strategy-patch runtime with audit and rollback
Keywords: cognitive,agent,runtime,patch,adaptive,ai
Author: Omega Core Contributors
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# Omega Cognitive Kernel

**Training-free online strategy adaptation** — patch a structured `RuleEffect`, measure the consequence, roll back if needed.

> When error rises, the kernel emits a bounded policy patch, persists it as cognitive state, and changes the next cycle’s decisions.  
> **No weight updates. No code execution. Full audit trail.**

```
World (L0) → Reflect & patch (L1) → Meta-modulate (L2) → bias next L0
```

## Why this exists

Most adaptive systems either:
- require expensive retraining / fine-tuning, or
- allow arbitrary code changes that are hard to audit and reverse.

Omega takes a third path: **structured, reversible policy patches**.

| Doc | Topic |
|-----|--------|
| **[docs/PRODUCT.md](docs/PRODUCT.md)** | Positioning & monetization posture |
| **[docs/INTEGRATING.md](docs/INTEGRATING.md)** | Embed + adapters + config |
| **[docs/CLOSED_LOOP.md](docs/CLOSED_LOOP.md)** | Safety switches + trajectory |
| **[docs/DASHBOARD.md](docs/DASHBOARD.md)** | Desktop operator UI |
| **[docs/PORTABILITY.md](docs/PORTABILITY.md)** | no_std / WASM / embedded portability |
| **[docs/API_0.5.md](docs/API_0.5.md)** | 0.5 surface (schema + replay + events) |
| **[docs/ROADMAP_0.5.md](docs/ROADMAP_0.5.md)** | 0.5 roadmap |
| **[docs/L2_BENCHMARK.md](docs/L2_BENCHMARK.md)** | Reproducible L2 baseline comparison |
| **[docs/CRATES_IO.md](docs/CRATES_IO.md)** | crates.io notes |

---

**Status:** research prototype (**v0.5.6** on [crates.io](https://crates.io/crates/omega-cognitive-kernel)). Schema versioned; trajectory replay; event stream; strategy weight; multi-workspace dashboard; `status --json`.

---

## Install

**Library (crates.io):**

```bash
cargo add omega-cognitive-kernel
```

```toml
omega-cognitive-kernel = "0.5.6"
```

**CLI / dashboard from git tag:**

```bash
cargo install --git https://github.com/4jb5nkddkb-dot/omega-cognitive-kernel --tag v0.5.6 --locked
cargo install --git https://github.com/4jb5nkddkb-dot/omega-cognitive-kernel --tag v0.5.6 --locked --features gui --bin omega-dashboard
```

Or download binaries from [Releases](https://github.com/4jb5nkddkb-dot/omega-cognitive-kernel/releases).

---

## Quick start

```bash
cargo run --release -- demo
cargo run --release -- run --steps 20
cargo run --release -- status
cargo run --release -- status --json
cargo run --release -- audit --summary
cargo run --release -- replay --tail 15
cargo run --release -- benchmark-l2 --runs 20 --json
cargo run --release --features gui --bin omega-dashboard
```

Default: **`self_modify_enabled = false`**.

---

## Library API

```rust
use omega_cognitive_kernel::Kernel;

fn main() -> omega_cognitive_kernel::Result<()> {
    let mut kernel = Kernel::open(None)?;
    let report = kernel.run("maintain coherent self-model", 10)?;
    println!(
        "err {:.3} → {:.3} (decreased={})",
        report.early_avg_err, report.final_avg_err, report.error_decreased
    );
    let replay = kernel.replay_trajectory(10)?;
    println!("trajectory rows={} patches={}", replay.rows, replay.patches);
    kernel.save()?;
    Ok(())
}
```

---

## Version map

| Version | Meaning |
|---------|---------|
| **0.4.x** | Integrator freeze + PER + dashboard intro |
| **0.5.0** | Schema migrate + trajectory replay |
| **0.5.1** | Dashboard Replay tab + required GUI release artifacts |
| **0.5.2–0.5.4** | Event hooks / poll_after, strategy weight, multi-workspace, CLI parity |
| **0.5.5** | `status --json` + HTTP `/status` example |
| **0.5.6** | examples in crate package; **on crates.io** — **current** |

See [CHANGELOG.md](CHANGELOG.md).

---

## License & Brand

This project is released under the **MIT License** — see [LICENSE](LICENSE).

The names "Omega", "Omega Kernel", and "Omega Cognitive Kernel", together with related branding, are trademarks of the copyright holder(s). The MIT license grants rights to the *source code*; it does **not** grant trademark rights. See [NOTICE](NOTICE) for the full trademark and open-core posture statement.

Commercial plugins, hosted multi-tenant services, managed policy packs, and enterprise control-plane features may be offered under separate terms in the future.

---

*Omega Cognitive Kernel — patch, remember, measure, roll back.*

