Metadata-Version: 2.4
Name: event-sourced-ai-runtime
Version: 0.6.0
Summary: Event-sourced AI runtime with deterministic, governed AI action execution.
License: Copyright 2026 REŞAT <khalikinisoran@gmail.com>
        
                                         Apache License
                                   Version 2.0, January 2004
                                http://www.apache.org/licenses/
        
           TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
        
           1. Definitions.
        
              "License" shall mean the terms and conditions for use, reproduction,
              and distribution as defined by Sections 1 through 9 of this document.
        
              "Licensor" shall mean the copyright owner or entity authorized by
              the copyright owner that is granting the License.
        
              "Legal Entity" shall mean the union of the acting entity and all
              other entities that control, are controlled by, or are under common
              control with that entity. For the purposes of this definition,
              "control" means (i) the power, direct or indirect, to cause the
              direction or management of such entity, whether by contract or
              otherwise, or (ii) ownership of fifty percent (50%) or more of the
              outstanding shares, or (iii) beneficial ownership of such entity.
        
              "You" (or "Your") shall mean an individual or Legal Entity
              exercising permissions granted by this License.
        
              "Source" form shall mean the preferred form for making modifications,
              including but not limited to software source code, documentation
              source, and configuration files.
        
              "Object" form shall mean any form resulting from mechanical
              transformation or translation of a Source form, including but
              not limited to compiled object code, generated documentation,
              and conversions to other media types.
        
              "Work" shall mean the work of authorship, whether in Source or
              Object form, made available under the License, as indicated by a
              copyright notice that is included in or attached to the work
              (an example is provided in the Appendix below).
        
              "Derivative Works" shall mean any work, whether in Source or Object
              form, that is based on (or derived from) the Work and for which the
              editorial revisions, annotations, elaborations, or other modifications
              represent, as a whole, an original work of authorship. For the purposes
              of this License, Derivative Works shall not include works that remain
              separable from, or merely link (or bind by name) to the interfaces of,
              the Work and Derivative Works thereof.
        
              "Contribution" shall mean any work of authorship, including
              the original version of the Work and any modifications or additions
              to that Work or Derivative Works thereof, that is intentionally
              submitted to Licensor for inclusion in the Work by the copyright owner
              or by an individual or Legal Entity authorized to submit on behalf of
              the copyright owner. For the purposes of this definition, "submitted"
              means any form of electronic, verbal, or written communication sent
              to the Licensor or its representatives, including but not limited to
              communication on electronic mailing lists, source code control systems,
              and issue tracking systems that are managed by, or on behalf of, the
              Licensor for the purpose of discussing and improving the Work, but
              excluding communication that is conspicuously marked or otherwise
              designated in writing by the copyright owner as "Not a Contribution."
        
              "Contributor" shall mean Licensor and any individual or Legal Entity
              on behalf of whom a Contribution has been received by Licensor and
              subsequently incorporated within the Work.
        
           2. Grant of Copyright License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              copyright license to reproduce, prepare Derivative Works of,
              publicly display, publicly perform, sublicense, and distribute the
              Work and such Derivative Works in Source or Object form.
        
           3. Grant of Patent License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              (except as stated in this section) patent license to make, have made,
              use, offer to sell, sell, import, and otherwise transfer the Work,
              where such license applies only to those patent claims licensable
              by such Contributor that are necessarily infringed by their
              Contribution(s) alone or by combination of their Contribution(s)
              with the Work to which such Contribution(s) was submitted. If You
              institute patent litigation against any entity (including a
              cross-claim or counterclaim in a lawsuit) alleging that the Work
              or a Contribution incorporated within the Work constitutes direct
              or contributory patent infringement, then any patent licenses
              granted to You under this License for that Work shall terminate
              as of the date such litigation is filed.
        
           4. Redistribution. You may reproduce and distribute copies of the
              Work or Derivative Works thereof in any medium, with or without
              modifications, and in Source or Object form, provided that You
              meet the following conditions:
        
              (a) You must give any other recipients of the Work or
                  Derivative Works a copy of this License; and
        
              (b) You must cause any modified files to carry prominent notices
                  stating that You changed the files; and
        
              (c) You must retain, in the Source form of any Derivative Works
                  that You distribute, all copyright, patent, trademark, and
                  attribution notices from the Source form of the Work,
                  excluding those notices that do not pertain to any part of
                  the Derivative Works; and
        
              (d) If the Work includes a "NOTICE" text file as part of its
                  distribution, then any Derivative Works that You distribute must
                  include a readable copy of the attribution notices contained
                  within such NOTICE file, excluding those notices that do not
                  pertain to any part of the Derivative Works, in at least one
                  of the following places: within a NOTICE text file distributed
                  as part of the Derivative Works; within the Source form or
                  documentation, if provided along with the Derivative Works; or,
                  within a display generated by the Derivative Works, if and
                  wherever such third-party notices normally appear. The contents
                  of the NOTICE file are for informational purposes only and
                  do not modify the License. You may add Your own attribution
                  notices within Derivative Works that You distribute, alongside
                  or as an addendum to the NOTICE text from the Work, provided
                  that such additional attribution notices cannot be construed
                  as modifying the License.
        
              You may add Your own copyright statement to Your modifications and
              may provide additional or different license terms and conditions
              for use, reproduction, or distribution of Your modifications, or
              for any such Derivative Works as a whole, provided Your use,
              reproduction, and distribution of the Work otherwise complies with
              the conditions stated in this License.
        
           5. Submission of Contributions. Unless You explicitly state otherwise,
              any Contribution intentionally submitted for inclusion in the Work
              by You to the Licensor shall be under the terms and conditions of
              this License, without any additional terms or conditions.
              Notwithstanding the above, nothing herein shall supersede or modify
              the terms of any separate license agreement you may have executed
              with Licensor regarding such Contributions.
        
           6. Trademarks. This License does not grant permission to use the trade
              names, trademarks, service marks, or product names of the Licensor,
              except as required for reasonable and customary use in describing the
              origin of the Work and reproducing the content of the NOTICE file.
        
           7. Disclaimer of Warranty. Unless required by applicable law or
              agreed to in writing, Licensor provides the Work (and each
              Contributor provides its Contributions) on an "AS IS" BASIS,
              WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
              implied, including, without limitation, any warranties or conditions
              of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
              PARTICULAR PURPOSE. You are solely responsible for determining the
              appropriateness of using or redistributing the Work and assume any
              risks associated with Your exercise of permissions under this License.
        
           8. Limitation of Liability. In no event and under no legal theory,
              whether in tort (including negligence), contract, or otherwise,
              unless required by applicable law (such as deliberate and grossly
              negligent acts) or agreed to in writing, shall any Contributor be
              liable to You for damages, including any direct, indirect, special,
              incidental, or consequential damages of any character arising as a
              result of this License or out of the use or inability to use the
              Work (including but not limited to damages for loss of goodwill,
              work stoppage, computer failure or malfunction, or any and all
              other commercial damages or losses), even if such Contributor
              has been advised of the possibility of such damages.
        
           9. Accepting Warranty or Additional Liability. While redistributing
              the Work or Derivative Works thereof, You may choose to offer,
              and charge a fee for, acceptance of support, warranty, indemnity,
              or other liability obligations and/or rights consistent with this
              License. However, in accepting such obligations, You may act only
              on Your own behalf and on Your sole responsibility, not on behalf
              of any other Contributor, and only if You agree to indemnify,
              defend, and hold each Contributor harmless for any liability
              incurred by, or claims asserted against, such Contributor by reason
              of your accepting any such warranty or additional liability.
        
           END OF TERMS AND CONDITIONS
        
           APPENDIX: How to apply the Apache License to your work.
        
              To apply the Apache License to your work, attach the following
              boilerplate notice, with the fields enclosed by brackets "[]"
              replaced with your own identifying information. (Don't include
              the brackets!)  The text should be enclosed in the appropriate
              comment syntax for the file format. We also recommend that a
              file or class name and description of purpose be included on the
              same "printed page" as the copyright notice for easier
              identification within third-party archives.
        
           Copyright [yyyy] [name of copyright owner]
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
        
Keywords: ai,agent,governance,security,event-sourcing,audit
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Security
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: python-dotenv
Requires-Dist: pytest>=9
Provides-Extra: dev
Requires-Dist: pytest==9.1.1; extra == "dev"
Dynamic: license-file

# Event-Sourced AI Runtime

> **Tanuq — AI works. You stay in control.**
>
> Tanuq is the user-facing product built on this runtime: it governs
> AI coding agents' file changes with deterministic policies, binds
> risky changes to single-use human approval, rolls back failed
> changes automatically, and records tamper-evident evidence.

```bash
pip install -e .
tanuq init      # protect a workspace (interactive)
tanuq status
```

See `docs/QUICKSTART.md` and `docs/USER_GUIDE.md`.

### What `VERIFIED` means (Tanuq)

A governed Tanuq execute verifies in two stages: `compileall -q -f`
over the protected workspace, then pytest over real workspace tests
selected deterministically from the patch path (`related-tests-v1`
profile: `test_<stem>.py` / `<stem>_test.py` in the workspace root or
`tests/`). Two integrity rules apply: a patch can never be verified by
a test file it (or a same-run companion patch) writes, and modifying an
EXISTING test module requires single-use human approval. Only resolved
paths inside the workspace qualify — a
symlink/junction pointing outside is skipped — and the agent cannot
choose its own verifiers. With no matching test, selection falls back
to the guaranteed dummy floor under `.tanuq` (`dummy_floor` mode).
`VerificationExecutor` remains the only pass/fail authority (120s
timeout, pytest exit code 5 is FAIL); the verification subprocess runs
with a Tanuq-owned pytest config and scrubbed pytest environment
variables, so workspace pytest configuration and inherited environment
cannot steer the outcome. A failing verification rolls
the change back. The journaled evidence records both the executed
commands and the verification profile actually used. **VERIFIED** —
`tests/test_tanuq_verification_profile.py`.

---

> **Building trustworthy AI through Event Sourcing, Replay, and Verification.**
>
> **Every AI decision becomes an auditable event.**

> **Current product identity (2026-09-20):** **TANUQ** (package
> `event-sourced-ai-runtime`, CLI `tanuq`, runtime dirs `.tanuq` /
> `~/.tanuq`, auth header `X-TANUQ-Token`) is an **event-sourced,
> deterministic, human-governed file-editing agent runtime**. Governed
> actions: **modify** and **create** (new-file creation is always HIGH
> risk and requires human approval). Shipped vendor integration:
> **Claude Code** — **Edit** is governed as `modify`, **Write** as
> `create` (translation-only adapter; documented contract in
> `docs/AGENT_INTEGRATION.md`). Any agent that can run a shell can use
> the vendor-independent generic proposal channel:
> `tanuq propose --stdin-json --json`. Evidence: hash-chained journals
> with keyed chain anchor (tamper-evident). Live truth-source (current
> position, CI and test evidence): **`docs/TANUQ_PROJECT_STATE.md`**.

TANUQ is the user-facing product built on this runtime. The project
began as an event-sourcing exploration: instead of storing only the
latest state, the runtime records every action, making AI systems
replayable, recoverable, auditable, and verifiable.

---

# Vision

Traditional AI systems focus on the current state.

This project explores a different philosophy.

Every important action becomes an immutable event.

Instead of asking:

> **"What is the current state?"**

the runtime can answer:

- How did we get here?
- Which events produced the current state?
- Can every decision be replayed?
- Can the runtime recover after a crash?
- Has any event been modified?
- Can the AI inspect its own history?

The long-term goal is to build trustworthy AI systems whose behavior can always be reconstructed, verified, and explained.

---

# Why Event Sourcing?

Most AI applications discard history and only keep the latest result.

This project does the opposite.

History becomes the source of truth.

Benefits include:

- Immutable history
- Complete audit trail
- Deterministic replay
- Crash recovery
- State reconstruction
- Explainable AI
- Runtime verification

---

# Current Version

**0.6.0** (package `event-sourced-ai-runtime`, CLI `tanuq`).

Status: early-adopter productization. Current position, recent commits,
CI status and full-suite evidence are tracked live in
**`docs/TANUQ_PROJECT_STATE.md`** (canonical — this README does not
duplicate them).

---

# Current Features

## Event Store

- Immutable JSONL event storage
- Append-only architecture
- Event persistence
- Replay-ready history

---

## Replay Engine

- Runtime recovery
- State reconstruction
- Full event replay
- Crash recovery

---

## Global Sequence Engine

- Automatic sequence generation
- Sequential consistency
- Runtime validation

---

## Hash Chain

Each stored event contains:

- previous_hash
- current_hash

This creates a cryptographic chain capable of detecting event tampering.

---

## Hash Chain Verifier

Verifies:

- previous_hash
- current_hash
- chain integrity
- event consistency

Run:

```bash
python verify_chain.py
```

---

## Timeline Inspector

Displays:

- Complete event history
- Payload inspection
- Event statistics
- Sequence validation
- Runtime summary

Run:

```bash
python timeline.py
```

---

## Context Builder

Builds runtime context directly from the reconstructed state.

Supports context-aware AI responses.

---

## AI Runtime

Current supported events:

- UserQuestionReceived
- AIResponseReceived

Every interaction becomes part of the Event Store.

---

# Runtime Status

| Component | Status |
|------------|--------|
| Event Store | ✅ |
| Replay Engine | ✅ |
| Global Sequence | ✅ |
| Hash Chain | ✅ |
| Verify Chain | ✅ |
| Timeline Inspector | ✅ |
| Context Builder | ✅ |
| AI Runtime | ✅ |

---

# Core Architecture

```text
                 User
                   │
                   ▼
        UserQuestionReceived
                   │
                   ▼
                Kernel
                   │
         ┌─────────┴─────────┐
         │                   │
         ▼                   ▼
      Reducer          Event Store
                             │
      ┌──────────────────────┼──────────────────────┐
      ▼                      ▼                      ▼
 Replay Engine          Hash Chain          Timeline Inspector
      │
      ▼
 Current State
      │
      ▼
 Context Builder
      │
      ▼
  LLM Provider
      │
      ▼
AIResponseReceived
```

---

# Project Structure

```text
simulation/
│
├── agent/
├── core/
├── persistence/
├── replay/
├── security/
│
docs/
│
data/
│
timeline.py
verify_chain.py
agent_run.py
```

---

# Quick Start

Clone the repository

```bash
git clone https://github.com/khalikinisoran-jpg/olay-kaynak-platformu.git
```

Move into the project

```bash
cd olay-kaynak-platformu
```

Install dependencies

```bash
pip install -r requirements.txt
```

Run the AI runtime

```bash
python agent_run.py
```

Inspect the timeline

```bash
python timeline.py
```

Verify hash integrity

```bash
python verify_chain.py
```

---

# Verification Workflow

Every development sprint follows the same workflow.

```text
Idea

↓

Design

↓

Implementation

↓

Replay

↓

Timeline

↓

Verify Chain

↓

Git Commit

↓

Release
```

No feature is considered complete until:

- Replay succeeds
- Timeline reports HEALTHY
- Verify Chain reports VALID
- Runtime continues to operate correctly

---

# Example Runtime

```text
User

↓

UserQuestionReceived

↓

Kernel

↓

Event Store

↓

Context Builder

↓

LLM

↓

AIResponseReceived

↓

Replay Ready
```

---

# Documentation

Documentation is located inside the **docs/** directory.

Canonical entry point: **`START-HERE.md`** — `docs/ARCHITECTURE.md` (implemented flow) — `docs/SECURITY_MODEL.md` (verified boundaries) — `docs/TANUQ_PROJECT_STATE.md` (current position) + `docs/TANUQ_SKILL.md` (agent working procedure) — `docs/USER_GUIDE.md` (product manual) + `docs/QUICKSTART.md` (first 5 minutes) — `docs/ROADMAP.md` (current direction). `docs/PROJECT_MASTER.md` / `docs/PROJECT_STATE.md` are archived historical snapshots.

**Demo:** `python demo_vertical_slice.py` — first working vertical slice of the governed patch pipeline (no external services; see docstring for Scenarios A/B/C).

**Reproducible governed CLI demo (P2.3-A):** `powershell -ExecutionPolicy Bypass -File demo_cli.ps1` — uses only the real CLI (`task`/`approve --pending`/`history`), deterministic `--fake-analyzer` (no LLM key), demonstrates HIGH-risk DENY → pending approval → VERIFIED → replay DENY (single-use fingerprint binding). See Quick Start below.

**Visible product experience (P5):** `python demo_p5.py` or `powershell -ExecutionPolicy Bypass -File demo_p5.ps1` — uses the **real P5 localhost UI/service path** (`p5/server.py` view layer, `http://127.0.0.1:8766`) over the existing governed pipeline; shows proposal → HIGH approval-required → approve via canonical `ApprovalStore` → VERIFIED → replay DENY → adversarial spoof DENY (UI never writes directly, LLM claims untrusted). Also runnable as `python -m p5.server --port 8765` then open `http://127.0.0.1:8765/`.

Additional historical docs exist under `docs/` but **canonical docs above are the source of current truth**; `MISSION-N*` reports are archived outside the repo.

---

# Reproducible Governed CLI Demo (P2.3-A)

This is a governed file-editing runtime demonstration, not a production autonomous agent.

- Worker proposes via `--fake-analyzer` (deterministic, no API key). Replace with real LLM analyzer later; governance boundary is unchanged.
- Risk is system-derived (`RiskEngine`): `hello`→`hello fixed` = LOW auto-apply; `api_key = "sk-..."` = HIGH requires human approval.
- Approval binds to exact `PatchProposal` fingerprint (`path+action+reason+old/new+allowed_paths` SHA-256) and is single-use; different proposal or replay is DENY.
- Run from repository root in PowerShell:

```powershell
powershell -ExecutionPolicy Bypass -File demo_cli.ps1
# expected: DENIED WITHOUT APPROVAL -> APPROVED -> VERIFIED AFTER APPROVAL -> REPLAY DENIED -> HISTORY READ-ONLY -> OVERALL PASS
```

The script creates a temp workspace, writes `demo.txt` as exactly `hello` (no BOM), runs the HIGH-risk `task`, `approve --pending`, re-runs `task`, tests replay, and prints `history`. Exit 0 + `OVERALL PASS` only if all governance checks observed.

**Clean reproduction (prerequisites explicit):** `Windows 10/11 + Python 3.12 + PowerShell 5.1 + git`. Clean steps: `git clone <repo> && cd <repo> && python -m venv .venv && .venv\Scripts\python -m pip install -e . && .venv\Scripts\python -m pip install pytest==9.1.1 && .venv\Scripts\python -m pytest -q && powershell -ExecutionPolicy Bypass -File demo_cli.ps1`. P9 FINAL PASS @ `b2d6da7` `1213 collected / 1200 passed / 13 skipped` — hosted run 32805095789 (Ubuntu ~88s / Windows ~182s) succeeded; local full suite ~254s with 300s budget (120s budget is NOT COMPLETED). Historical P2.3-A clean-clone `9+7+6+5+48+10` + `demo_cli` `OVERALL PASS` (2026-08-23) conserved as lineage — see `START-HERE.md` First Commands.

# P5 Visible Product Experience (view layer, not authority)

Local UI is a **view layer** over the existing governed runtime (`p5/server.py`, stdlib `http.server`). Start:

```powershell
python -m p5.server --host 127.0.0.1 --port 8765
# open http://127.0.0.1:8765/  (Goal → Proposal → Governance → Approve → Execute → Verify → History)
python demo_p5.py
# expected: A LOW VERIFIED -> B HIGH APPROVAL_REQUIRED -> approve -> VERIFIED -> C REPLAY DENIED -> D ADVERSARIAL DENIED -> OVERALL PASS
```

What it demonstrates (real UI/service path, not mocks): proposal visible (target/fingerprint/diff/risk/approval-required), governance state (`PROPOSED`/`APPROVAL_REQUIRED`/`DENIED`/`VERIFIED`/`ROLLED_BACK`), canonical approval via `ApprovalStore` exact fingerprint (single-use, replay DENY preserved), execution via `WorkerActionPipeline` only (UI never calls `FileApplier`/`open(...,w)` on target), read-only history from `ApplyOutcomeJournal`. LLM claims (`approved`, `bypass_governance`, `verification_passed`) remain untrusted and are shown only as data, never as decisions. Known limitations: localhost only, no auth, no production DB, governed path unchanged — see `p5/server.py` header.

---

# Roadmap

> **Current strategic direction (2026-09-12):** **Productization-first** — run the working TANUQ product in real daily-driver usage, gather friction evidence, and grow only on proven need. The governed `modify` + `create` surface, the Claude Code Edit/Write adapter and the vendor-blind generic proposal channel are shipped; concurrency (FAZ 7), multi-file bundles (FAZ 9) and Unified Runtime remain frozen pending evidence. Live direction source: **`docs/TANUQ_PROJECT_STATE.md`**.

## Recently verified (worker-action-pipeline @ `9df6953` current HEAD; historical P9 FINAL PASS @ `b2d6da7`; foundation `24c72d0` 986 → 1278)

- [x] Worker Action Pipeline (Patch Proposal → Validation → Risk → Governance → Approval → Apply → Verify → Recovery)
- [x] Deterministic Risk + Governance + Single-Use Approval + Atomic Apply
- [x] Event Store Trust Anchor (ChainAnchor), Provenance, Evidence
- [x] Human-Governed Runtime (`--governed` / `--recovery`)
- [x] Vertical-slice demo `python demo_vertical_slice.py` — LOW pass, HIGH denied→approved, rollback (N.93, real `WorkerActionPipeline`)
- [x] Historical evidence archive 185 files (144 MISSION-N* + 19 LAYER-A-* + 22 remaining = 185, PRESERVED_RELOCATED, N.92 + N.94-R independent repro PASS)
- [x] P2.1 governed CLI (`apply`/`approve`/`history`/`status` thin wrappers over `WorkerActionPipeline`, `agent_run.py:154`) — 7 CLI apply + 5 observability tests
- [x] P2.2 natural task entry (`task --goal --fake-analyzer` -> Worker -> governed pipeline, `agent_run.py:216`) — 6 CLI task tests
- [x] P2.2-FP mechanical pending parity (`pending_proposals.json` + `approve --pending` exact fingerprint, `agent_run.py:534`) — 9 parity tests (HIGH denied→pending→verified→replay DENY, newline/BOM handling)
- [x] P2.3-A reproducible governed CLI baseline (`demo_cli.ps1` DENY→APPROVE→VERIFIED→replay DENY, clean clone + clean venv `pip install -e .` 9+7+6+5+48+10 PASS) — verified locally 2026-08-23
- [x] P3 adversarial proposals (20 tests, 8 scenarios) — real repo, zero bypass
- [x] P4 LLM as untrusted proposer (hardened `LLMCodeAnalyzer` spoof strip + 13 deterministic + live smoke `deepseek` hello→hello fixed) — proposer != authority
- [x] P5 visible product experience (`p5/server.py` localhost view layer + `demo_p5.py` A-D via real UI path) — no direct write, UI != authority, 7 UI tests, HIGH→approve→VERIFIED→replay DENY→spoof DENY, history read-only

Historical v2.0 Phases 1-4 (Developer→Production→Enterprise→Autonomous) are retained in `docs/ROADMAP.md` as context; they are not the active plan.

## Next (controlled productization, not general expansion)

- [x] P5 visible product experience (`demo_p5.py` via real UI/service path, localhost `p5/server.py`)
- [x] P6 hardening + P7 governed AgentSession (`simulation/agent/session/`) + P8 multi-file atomicity + P9 FINAL PASS (`b2d6da7` `1213/1200/13` — hosted Ubuntu ~88s / Windows ~182s, local ~254s with 300s budget; 120s is external limitation, not a hang)
- [x] Post-P9 governed ExternalAction pipeline (`b2d6da7..d42736d`): durable governed external action execution (`ExternalAction` / `ExternalActionPipeline` / `ExternalActionExecutor` / `ExternalOutcomeJournal` / `AttemptContext`), UNKNOWN/ambiguous outcomes never promoted to success, approval/idempotency correlation, runtime + CLI wiring (`agent_run.py external`) — local full-suite PASS at `d42736d` (1272/1259/13/0, local evidence only)
- [x] P10.2 documentation synchronization (commit `07326ce`) → P10.3 hygiene consolidation (executed: `2150fe3` / `acef450` / `8452e0e`)
- [x] Post-P10.3 p5 authority/integrity fixes — OPERATOR-label series P10.4-P10.6 (NOT canonical roadmap phases; canonical "P10.4 packaging hardening" label collision preserved as AMBIGUITY): `f60fa13` (UI dummy relocated out of workspace), `31c46c2` (p5 unanchored EventStore/ApprovalLedger disclosure parity), `9df6953` (approval expiry parity, 3600s TTL) — local full-suite `1278 / 1265 / 13 / 0` @ `9df6953`
- [ ] Controlled productization decisions (no autonomous/multi-agent expansion)

---

# Engineering Philosophy

This project follows a simple engineering principle.

Ideas inspire us.

Working software guides us.

Every new feature must preserve:

- Replay
- Timeline
- Verify Chain
- Runtime Stability

Every great idea first becomes a document.

Every document becomes a sprint.

Every sprint becomes working software.

---

# Release History

## v0.1.0-alpha

Initial public milestone.

Includes:

- Event Store
- Replay Engine
- Global Sequence Engine
- Hash Chain
- Verify Chain
- Timeline Inspector
- Context Builder
- AI Runtime
- Documentation
- Milestone
- Engineering Ideas Backlog

---

# License

Apache License 2.0 — see [`LICENSE`](LICENSE) for the full text.

---

# Project Motto

> **Building trustworthy AI through Event Sourcing, Replay, and Verification.**

> **Every AI decision becomes an auditable event.**

> **Ideas inspire us. Working software guides us.**
