โšก OMNISKILL v3.0 Documentation

Migration Guide: v0.2.0 โ†’ v2.0.0

What Changed

OMNISKILL v3.0.0 upgrades from a passive skill/agent framework to an active execution platform. Pipelines now run through a real orchestrator engine, guardrails are enforced (not just documented), and sequential thinking is a first-class protocol.

The upgrade is fully backward compatible. Existing skills, agents, bundles, and pipelines continue to work without modification.

Breaking Changes

None. All existing content is forward-compatible:

New Capabilities

Feature Description
Pipeline Orchestrator Real execution engine with PipelineExecutor, PipelineState, ArtifactValidator
Guardrails Engine 10 Iron Laws enforced at runtime; anti-rationalization detection
Sequential Thinking DECOMPOSE โ†’ REASON โ†’ VALIDATE โ†’ SYNTHESIZE chain-of-thought
Lifecycle Hooks Python hooks for session_start, pre_step, post_step, on_failure, on_deviation
Deviation Protocol STOP โ†’ DOCUMENT โ†’ ASK โ†’ LOG workflow when agents go off-spec
Enhanced Metacognition Stuck-loop detection, complexity scaling, escape hatch, confidence calibration
State Persistence Pipeline state saved to disk; survives session restarts
CLI Commands run, status, resume, list, cancel for pipelines

New Directory Structure

omniskill/
โ”œโ”€โ”€ hooks/                          # NEW โ€” Python lifecycle hooks
โ”‚   โ”œโ”€โ”€ session_start.py
โ”‚   โ”œโ”€โ”€ pre_step.py
โ”‚   โ”œโ”€โ”€ post_step.py
โ”‚   โ”œโ”€โ”€ on_failure.py
โ”‚   โ””โ”€โ”€ on_deviation.py
โ”œโ”€โ”€ synapses/
โ”‚   โ”œโ”€โ”€ metacognition.md            # Upgraded to v2.0.0
โ”‚   โ”œโ”€โ”€ guardrails.md               # NEW โ€” Anti-rationalization engine
โ”‚   โ””โ”€โ”€ sequential-thinking.md      # NEW โ€” Chain-of-thought protocol
โ”œโ”€โ”€ schemas/
โ”‚   โ”œโ”€โ”€ guardrails.schema.yaml      # NEW
โ”‚   โ”œโ”€โ”€ deviation-log.schema.yaml   # NEW
โ”‚   โ””โ”€โ”€ thinking-trace.schema.yaml  # NEW
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ engine.py                   # NEW โ€” PipelineExecutor core
โ”‚   โ”œโ”€โ”€ state.py                    # NEW โ€” PipelineState management
โ”‚   โ””โ”€โ”€ validation.py               # NEW โ€” ArtifactValidator
โ”œโ”€โ”€ tests/                          # NEW โ€” 150 tests across 8 files
โ””โ”€โ”€ docs/
    โ”œโ”€โ”€ architecture.md             # NEW
    โ”œโ”€โ”€ guardrails.md               # NEW
    โ”œโ”€โ”€ sequential-thinking.md      # NEW
    โ””โ”€โ”€ pipeline-orchestration.md   # NEW

Using the New Pipeline Engine

CLI

# Run a pipeline
python scripts/admin.py --pipeline run sdd-pipeline --input "Build auth system"

# Check status
python scripts/admin.py --pipeline status <pipeline-id>

# Resume a paused/failed pipeline
python scripts/admin.py --pipeline resume <pipeline-id>

# List active pipelines
python scripts/admin.py --pipeline list

# Cancel a running pipeline
python scripts/admin.py --pipeline cancel <pipeline-id>

SDK

from sdk.omniskill import OmniSkill

os = OmniSkill()
pid = os.execute_pipeline("sdd-pipeline", {"input": "Build auth system"})
status = os.get_pipeline_status(pid)
os.resume_pipeline(pid)
os.cancel_pipeline(pid)

Guardrails: Before vs. After

Before (v0.2.0): Guardrails were prose guidance in the metacognition synapse. Agents could acknowledge them and move on.

After (v2.0.0): Guardrails are an enforced engine with: - 10 Iron Laws โ€” hard constraints checked at every step - Forbidden phrases โ€” patterns that trigger automatic deviation flags - Rationalization tables โ€” known rationalization patterns mapped to correct responses - Anti-rationalization synapse โ€” active detection of agents justifying spec deviations

Violations trigger the Deviation Protocol: STOP โ†’ DOCUMENT โ†’ ASK โ†’ LOG. The agent must pause, document the deviation, get explicit approval, and log the outcome.

Upgrade Steps

  1. Pull the latest version โ€” git pull or update your copy to v2.0.0
  2. No migration required โ€” existing skills, agents, and pipelines work as-is
  3. Optional: Add lifecycle hooks in hooks/ to customize pipeline behavior
  4. Optional: Use the new CLI/SDK pipeline commands for real orchestration
  5. Run tests โ€” python -m pytest tests/ to verify everything works

That's it. Your existing OMNISKILL content is fully compatible with v2.0.0.