Skip to content

feat(backend): implement M1-M2 core runtime, isolated supervisors, and SQLite persistence - #2

Merged
BerryUIKI merged 1 commit into
devfrom
feature/core-runtime-persistence
Sep 23, 2026
Merged

BerryUIKI merged 1 commit into
devfrom
feature/core-runtime-persistence

Conversation

@BerryUIKI

Copy link
Copy Markdown
Owner

Description

This PR delivers the foundational backend core runtime, execution drivers, model inventory, and local SQLite persistence for Berry AI Studio (Milestones 1 and 2).

Summary of Changes:

  • Deterministic Caching & DAG Engine (\�ackend/app/core/): NodeHash deterministic hashing, cycle detection, and ancestor resolution.
  • Durable Storage (\�ackend/app/storage/): SQLite database schema, atomic project persistence, content-addressable asset storage, and multi-root model catalog with pure-Python .safetensors\ header inspection.
  • Isolated Engine Supervisors (\�ackend/app/runtime/): ComfyUI and SD WebUI supervisors without host Python fallback, isolated virtualenv installer with interruption recovery, hardware detection, and secure credential storage with key masking.
  • Execution Drivers (\�ackend/app/runners/): High-level creative runner for txt2img, img2img, inpaint, and upscale; ComfyUI macro graph compiler; WebUI REST driver; and cloud BYOK driver.
  • API Endpoints & Automated Tests (\�ackend/app/main.py, \�ackend/tests/): Implemented endpoints and added test suites (\ est_m1_core.py\ through \ est_m6_launcher_manager.py).

Verification:

  • All 68 automated pytest tests pass locally in \�ackend/tests\ (100% passing).

@BerryUIKI
BerryUIKI merged commit 86aa080 into dev Sep 23, 2026
3 checks passed
@BerryUIKI
BerryUIKI deleted the feature/core-runtime-persistence branch October 4, 2026 20:05
BerryUIKI added a commit that referenced this pull request Oct 8, 2026
Finding #2: Embeddable package lacks venv module required by backend.
Use official installer in TargetDir mode for complete redistributable runtime.
Test venv creation capability to ensure isolated engine environments work.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant