Tier 4.5 Autonomous System: AI agents managing self-evolution through SQLite, Pydantic, and Git.
Read this first: AGENTS.md - Single source of truth for entry point and quick start
Then read: docs/AI_START_HERE.md - Detailed onboarding guide
Architecture: docs/ARCHITECTURE.md - System architecture
Bootstrap: docs/BOOTSTRAP_PLAN.md - Implementation order
Quick Start:
# One-command setup
./scripts/bootstrap.sh # Linux/Mac
.\scripts\bootstrap.ps1 # Windows
# Run a task
python scripts/ybis_run.py TASK-123Status: CANONICAL = src/ybis/ (legacy src/agentic/ is deprecated)
Goal: Self-sustaining autonomous production with Git-based cleanup and SQLite persistence.
New Architecture (In Progress):
- Evidence-first governance: All runs produce
verifier_report.jsonandgate_report.json - Syscalls-only mutation: All file/exec operations go through
src/ybis/syscalls/ - Immutable runs:
workspaces/<task_id>/runs/<run_id>/structure - Deterministic gates: Policy snapshot + evidence = decisions
New Constitution: docs/CONSTITUTION.md - Non-negotiables for new architecture
Legacy Constitution: docs/governance/YBIS_CONSTITUTION.md - Original governance
Key principles:
- Canonical execution:
scripts/ybis_run.py TASK-123for single tasks;scripts/ybis_worker.pyfor background processing - Evidence-first governance: All runs produce
verifier_report.jsonandgate_report.json - Syscalls-only mutation: All file/exec operations go through
src/ybis/syscalls/ - Immutable runs:
workspaces/<task_id>/runs/<run_id>/structure - Legacy is deprecated:
src/agentic/remains for reference only
Quick Start:
# Run a task
python scripts/ybis_run.py TASK-123
# Or run background worker
python scripts/ybis_worker.pySee also: docs/specs/GOVERNANCE_ACTION_PLAN.md
Protocol-based plugin architecture powered by LangGraph:
- The Brain (Workflow):
src/agentic/core/graphs/orchestrator_graph.py- Manages state transitions. - The Executor (AiderEnhanced): Advanced code generation with constitutional enforcement.
- The Verifier (SentinelEnhanced): High-security gates with AST analysis and isolated testing.
- The Janitor (GitManager): Automatic atomic commits for every successful task.
- The Persistence (SQLite): Thread-safe async task management via aiosqlite.
Evidence-first governed agent runtime:
- Contracts:
src/ybis/contracts/- Pydantic models with schema_version - Syscalls:
src/ybis/syscalls/- Single enforcement point (fs, exec, git, approvals) - Control-plane:
src/ybis/control_plane/- DB operations (tasks, runs, leases, workers) - Data-plane:
src/ybis/data_plane/- Evidence artifacts, journals, approvals - Orchestrator:
src/ybis/orchestrator/- LangGraph workflows + deterministic gates - Adapters:
src/ybis/adapters/- Third-party integrations (Aider, OpenHands, etc.) - Services:
src/ybis/services/- MCP server, worker runtime - Migrations:
src/ybis/migrations/- Schema versioning
References:
- docs/ARCHITECTURE.md - Full architecture details
- docs/INTERFACES.md - Contracts, syscalls, MCP tools
- docs/WORKFLOWS.md - LangGraph routing and workflows
- docs/BOOTSTRAP_PLAN.md - Implementation task order
- Capability: Automatic maintenance, Git-driven cleanup, and Pydantic validation.
- Status: Stable.
- Goal: Migrate to evidence-first, syscalls-only, deterministic gates architecture
- Status: In progress - following docs/BOOTSTRAP_PLAN.md
- Goal: Agents designing and modifying the factory's own graph nodes.
- Concept: Architect agents using SDD (Spec-Driven Development) to mutate the system.
YBIS_Dev/
├── legacy/ # Legacy code (read-only reference)
│
├── src/agentic/ # Legacy structure (deprecated)
│ ├── core/config.py # Path Configuration
│ ├── core/graphs/orchestrator_graph.py # The Brain (LangGraph)
│ └── core/protocols.py # Data Contracts (Pydantic)
│
├── platform_data/knowledge/
│ └── LocalDB/tasks.db # Task Database
│
├── AI_START_HERE.md # Agent onboarding (legacy)
├── SYSTEM_STATE.md # Complete system state
└── README.md # This file
YBIS_Dev/
├── src/ybis/ # New platform core
│ ├── contracts/ # Pydantic models
│ ├── syscalls/ # Enforcement point
│ ├── control_plane/ # DB operations
│ ├── data_plane/ # Evidence artifacts
│ ├── orchestrator/ # LangGraph + gates
│ ├── adapters/ # Third-party integrations
│ ├── services/ # MCP server, worker
│ └── migrations/ # Schema versioning
│
├── configs/profiles/ # Policy profiles
│ ├── default.yaml
│ └── strict.yaml
│
├── workspaces/ # Immutable runs
│ └── <task_id>/
│ └── runs/
│ └── <run_id>/
│ ├── artifacts/ # verifier_report.json, gate_report.json
│ └── journal/ # events.jsonl
│
├── docs/ # Canonical documentation
│ ├── CONSTITUTION.md
│ ├── ARCHITECTURE.md
│ ├── INTERFACES.md
│ ├── WORKFLOWS.md
│ ├── BOOTSTRAP_PLAN.md
│ └── ...
│
├── AGENTS.md # Agent entry point
└── README.md # This file
Graph View:
- Neo4j Browser: http://localhost:7474 - Graph database browser
- PROJECT NEO Visualization: http://localhost:3000 - Interactive graph visualization (Sigma.js)
- Dashboard: http://localhost:8501 - Streamlit dashboard with system health
References:
- docs/specs/PROJECT_NEO_VIZ.md - Visualization strategy
- src/dashboard/viz/ - React/TypeScript visualization frontend
- src/dashboard/app.py - Streamlit dashboard
Last Updated: 2025-01-XX
System Version: 4.5.0 (Tier 4 Stable) → 0.1.0 (New Architecture)
System Integrity: 100% (Legacy) | Migration in progress (New)