References:
Do not skip tasks. Implement in this order.
Philosophy: "Dog Scales Dog" - We build the system that builds the system.
The platform evolves through incremental dogfooding, where each tier uses the previous tier to build the next.
- Human-written scripts and tools.
- Foundation for automation.
- Example: Initial setup scripts, manual test runners.
- Agents with deterministic gates and manual oversight.
- Uses Tier 1 tools to build automation.
- Example: Automated test runners, basic code generators.
- Multiple agents working together with constitution and governance.
- Uses Tier 2 agents to coordinate complex tasks.
- Example: Multi-agent planning, debate system, self-healing workflows.
- Current Status: We are transitioning from Tier 3 to Tier 4.
- Fully autonomous system that maintains and evolves itself.
- Uses Tier 3 swarms to achieve complete automation.
- Example: Self-repairing code, autonomous feature development, zero-touch operations.
Pattern: Each tier uses the previous tier to build itself. This creates a self-reinforcing evolution loop.
DoD: imports compile; tests skeleton exists.
Status: ✅ Complete - src/ybis/ structure created with all sub-modules.
DoD: Pydantic models + schema_version enforcement tests.
Status: ✅ Complete - All contracts defined in src/ybis/contracts/ (Task, Run, Evidence, Context, Protocol, Personas).
DoD: run folders + artifacts/journal directories created deterministically.
Status: ✅ Complete - src/ybis/data_plane/workspace.py implements init_run_structure().
DoD: events.jsonl append; no overwrite.
Status: ✅ Complete - src/ybis/data_plane/journal.py implements JournalWriter.
DoD: integration test for create+claim+run row.
Status: ✅ Complete - src/ybis/control_plane/db.py implements full DB operations with lease management.
DoD: patch_apply_report.json emitted; protected path checks.
Status: ✅ Complete - src/ybis/syscalls/fs.py implements protected path enforcement.
DoD: exec report emitted; policy enforced.
Status: ✅ Complete - src/ybis/syscalls/exec.py implements allowlist and policy enforcement.
DoD: deterministic parsing + artifact writing.
Status: ✅ Complete - src/ybis/orchestrator/verifier.py runs ruff, pytest, Sentinel V2, and Bandit.
DoD: deterministic decisions; approvals required for protected/high-risk.
Status: ✅ Complete - src/ybis/orchestrator/gates.py implements deterministic gate logic.
DoD: full artifact set produced; DB run status updates.
Status: ✅ Complete - src/ybis/orchestrator/graph.py implements full workflow with debate, repair, and sub-factory support.
DoD: multiple workers safe via lease TTL.
Status: ✅ Complete - src/ybis/services/worker.py implements multi-worker coordination.
DoD: external client can create task + start run via MCP tools.
Status: ✅ Complete - src/ybis/services/mcp_server.py exposes 7+ MCP tools for external integration.
- ✅ Qdrant migration planned (ChromaDB graceful degradation implemented)
- ✅ Test repairs in progress
- ✅ Retry logic with
tenacitylibrary (src/ybis/services/resilience.py) - ✅ Experience memory integration (success/failure learning)
- ✅ Advanced AST verification (Sentinel V2)
- ✅ Vision & Mission added to
AGENTS.md - ✅ Spec-Driven Development enshrined in
WORKFLOWS.md - ✅ Tier System documented in
BOOTSTRAP_PLAN.md - ✅ Port Architecture Strategy added to
ARCHITECTURE.md
- ✅ Bandit security scanner integration
- ✅ Pyan dependency graph for impact analysis
- ✅ LlamaIndex context management for legacy code
- ✅ Architecture documentation updated
- ✅ Interface documentation refreshed
- ✅ AI Dojo onboarding script created
- ✅ Bootstrap Plan closed
Status: ✅ V5.0 STABLE
The YBIS Platform has reached a stable state with:
- ✅ Complete core infrastructure (Tasks, Runs, Workers, MCP)
- ✅ Evidence-first governance (Immutable runs, Artifacts, Journals)
- ✅ Multi-worker coordination (Leases, Heartbeats)
- ✅ Advanced verification (Ruff, Pytest, Sentinel V2, Bandit)
- ✅ AI governance (Debate Engine, Multi-persona consensus)
- ✅ SOTA tool integration (Pyan, Bandit, LlamaIndex)
- ✅ Comprehensive documentation (Architecture, Interfaces, Workflows)
- ✅ Interactive onboarding (YBIS Dojo)
Next Phase: Production hardening, performance optimization, and feature expansion based on real-world usage.