Skip to content

dddabtc/atlas-evolution

Repository files navigation

Atlas Evolution

🇨🇳 中文文档

Atlas Evolution is a governed evolution layer for OpenClaw, Atlas Memory, and similar agent runtimes.

It helps operators ingest runtime evidence, audit what happened, generate conservative evolution proposals, review promotion risk, and resume work safely after interruption or restart.

In plain English:

  • What it is: a local operator control plane for agent evolution
  • What it is not: an "autonomous self-improving AGI" claim
  • Who it is for: people building serious agent systems who care about auditability, rollback, recovery, and human control

Why this repo exists

Most "agent evolution" demos stop at:

  • proxying model calls
  • injecting skills
  • telling a story about automatic improvement

Atlas Evolution goes after the harder operator problems:

  • runtime feedback ingestion
  • raw vs projected evidence separation
  • reviewable proposal generation
  • explicit governance and rollback context
  • restart-safe workflow state
  • handoff bundles that can be replayed later

That makes this repo much more useful for real operations around OpenClaw, Atlas, and other long-running agent systems.

What Atlas Evolution does

Atlas Evolution sits beside your runtime instead of replacing it.

  1. A task or runtime artifact comes in through the CLI, local proxy, or openclaw-import path.
  2. The system stores raw evidence in append-only ledgers.
  3. Supported signals are projected into a separate evolution-feedback ledger.
  4. The operator can inspect the raw → projected audit path.
  5. Atlas Evolution generates conservative proposals and gates them.
  6. The operator reviews readiness, risk, and rollback context before promotion.
  7. Workflow state and handoff bundles are persisted so work can continue after restart or ownership handoff.

So the right mental model is:

Atlas Evolution = governed local evolution pipeline for agent systems

Not:

  • end-to-end autonomous learning
  • online RL platform
  • self-modifying production autopilot

Who should use this

Use Atlas Evolution if you want:

  • a local agent evolution framework
  • a safer OpenClaw skill / prompt evolution workflow
  • an Atlas Memory-friendly evidence and audit layer
  • better operator workflow around review, promotion, rollback, and restart recovery

Do not pick this expecting:

  • cloud training
  • OPD / RL loops
  • magical autonomous improvement with no operator review

Key features in v1.1

Runtime ingest and audit

  • typed runtime event schema
  • CLI ingest from file or stdin
  • local HTTP ingest endpoint
  • raw inbound envelope ledger
  • projected feedback ledger
  • inspect command for raw → projected audit

OpenClaw / Atlas integration surface

  • formal OpenClaw/Atlas contract
  • openclaw-import for realistic OpenClaw operator session artifacts
  • report output that surfaces OpenClaw handoff context
  • replayable operator handoff bundles
  • official in-repo OpenClaw plugin package for export / spool / transport

Governance and operator control

  • proposal generation with conservative gate logic
  • governance metadata for readiness / risk / rollback
  • review queue with ready / risky / rollback-sensitive / blocked buckets
  • reviewable promotion artifacts
  • dry-run promotion support
  • restart-safe workflow state
  • resume command for restart recovery

Quick start

Requires Python 3.11+.

You can run this repo directly without a package install.

1. List demo skills

python3 -m atlas_evolution.cli skills --config demo/atlas.toml list

2. Route a task

python3 -m atlas_evolution.cli route \
  --config demo/atlas.toml \
  --task "review this patch for regressions"

3. Import a realistic OpenClaw operator session

python3 -m atlas_evolution.cli openclaw-import \
  --config demo/atlas.toml \
  --file demo/openclaw_sessions/sample_operator_session.json

4. Inspect, review, and resume

python3 -m atlas_evolution.cli inspect --config demo/atlas.toml --write-report
python3 -m atlas_evolution.cli review --config demo/atlas.toml --format markdown --write-report
python3 -m atlas_evolution.cli resume --config demo/atlas.toml

5. Generate and promote conservative proposals

python3 -m atlas_evolution.cli evolve --config demo/atlas.toml
python3 -m atlas_evolution.cli governance --config demo/atlas.toml --format markdown --write-report
python3 -m atlas_evolution.cli promote --config demo/atlas.toml --proposal-id prompt-code_review --dry-run --write-report

Most important commands

Runtime evidence

python3 -m atlas_evolution.cli ingest --config demo/atlas.toml --file demo/runtime_events/sample_batch.json
python3 -m atlas_evolution.cli openclaw-import --config demo/atlas.toml --file demo/openclaw_sessions/sample_operator_session.json
python3 -m atlas_evolution.cli report --config demo/atlas.toml --file demo/runtime_events/sample_batch.json --format markdown --write-report
python3 -m atlas_evolution.cli inspect --config demo/atlas.toml --write-report

Governance and promotion

python3 -m atlas_evolution.cli evolve --config demo/atlas.toml
python3 -m atlas_evolution.cli governance --config demo/atlas.toml --format markdown --write-report
python3 -m atlas_evolution.cli review --config demo/atlas.toml --format markdown --write-report
python3 -m atlas_evolution.cli promote --config demo/atlas.toml --proposal-id prompt-code_review --dry-run --write-report
python3 -m atlas_evolution.cli resume --config demo/atlas.toml

Local HTTP surface

python3 -m atlas_evolution.cli serve --config demo/atlas.toml
curl http://127.0.0.1:8765/health

Architecture

atlas_evolution/
  cli.py                 # Local CLI entrypoint
  config.py              # TOML config loader
  models.py              # Shared dataclasses
  openclaw_contract.py   # Formal OpenClaw/Atlas contract + typed models
  runtime_events.py      # Runtime-event parsing compatibility layer
  skill_bank.py          # Skill loading + deterministic retrieval
  feedback_store.py      # Append-only ledgers + audit helpers
  workflow_state.py      # Restart-safe workflow checkpoint helpers
  evolution/
    prompt_evolver.py    # Heuristic prompt/skill metadata proposals
    workflow_discoverer.py
    capability_assessor.py
    evaluator.py         # Offline evaluation gate
    governance.py        # Readiness / risk / rollback metadata
    pipeline.py          # Proposal generation + promotion logic
  runtime/
    openclaw_adapter.py  # OpenClaw operator-session adapter + handoff builder
    orchestrator.py      # Runtime/evolution glue
    proxy.py             # Minimal local HTTP server
    report_adapter.py    # Operator evidence bundle adapter
integrations/
  openclaw-plugin/       # Official OpenClaw plugin package for Atlas export/spool/transport

## Official OpenClaw plugin v0.1

Atlas Evolution now includes its first official OpenClaw integration package at `integrations/openclaw-plugin`.

The boundary is deliberate:
- **Atlas Evolution remains the control plane**
- the OpenClaw plugin stays thin and only handles export, spool, and transport
- no LLM calls, cloud loops, or self-modifying behavior live inside the plugin

The plugin exposes:
- `openclaw atlas-export ...` CLI commands
- `atlasEvolution.export` and `atlasEvolution.status` Gateway RPC methods
- `/atlas-evolution/export` and `/atlas-evolution/status` plugin HTTP routes
- append-only JSONL spool files for runtime events, operator-session artifacts, support capture, and delivery attempts

Runtime-event payloads can POST directly into Atlas Evolution's local `/v1/ingest`.
`openclaw_operator_session` artifacts stay spooled in v0.1 and are replayed through `python3 -m atlas_evolution.cli openclaw-import`, because Atlas' local HTTP surface does not expose that richer import path yet.

Local plugin verification is dependency-light:

```bash
cd integrations/openclaw-plugin
npm test
npm run verify:fixtures
npm run pack:dry-run

Honest scope

Implemented in v1.1

  • local TOML config loading
  • skill manifests from JSON
  • deterministic local retrieval
  • append-only event and feedback storage
  • formal OpenClaw/Atlas contract
  • local CLI and HTTP ingest
  • explicit openclaw-import command
  • JSON / markdown operator evidence reports
  • operator-visible inspect command
  • offline evaluation gate
  • governance metadata and review queue
  • promotion artifacts and dry-run support
  • restart-safe workflow state with resume commands
  • replayable operator handoff bundles

Deliberately not shipped in v1.1

  • no online RL
  • no OPD
  • no cloud training
  • no blind self-modification
  • no benchmark-backed evaluator yet
  • no automatic deployment into production runtimes yet

Key docs

Testing

python3 -m unittest discover -s tests -v

Current coverage focuses on:

  • config path resolution
  • skill retrieval relevance
  • runtime ingest behavior
  • raw → projected audit inspection
  • governance / review / promotion behavior
  • restart recovery and handoff replay
  • OpenClaw operator session import

Project status

Atlas Evolution v1.1 is now a runnable local operator-grade evolution system for Atlas/OpenClaw-style runtimes.

It is already useful for:

  • governed local demos
  • runtime evidence capture
  • operator review workflows
  • promotion with rollback context
  • restart-safe continuation and handoff

It is not yet the final production product. The next step is productization: tighter operator cockpit, stronger handoff packaging, and harder promotion gates.

About

Governed evolution layer for OpenClaw and Atlas Memory: runtime ingest, audit trails, reviewable proposals, rollback-safe promotion, and restart-safe handoff workflows.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors