Skip to content

[codex] Split hive/runtime stabilization#228

Draft
jbcupps wants to merge 12 commits into
mainfrom
codex/split-hive-runtime-stability
Draft

[codex] Split hive/runtime stabilization#228
jbcupps wants to merge 12 commits into
mainfrom
codex/split-hive-runtime-stability

Conversation

@jbcupps

@jbcupps jbcupps commented Apr 12, 2026

Copy link
Copy Markdown
Owner

What changed

This PR establishes the split Abigail Hive + Abigail Entity Runtime architecture and makes the new Windows local-launch path workable on a managed machine.

  • adds Hive-owned runtime control-plane contracts, registration, heartbeat, assignment, forge approval, and outbox sync plumbing
  • adds the new hive-app and entity-runtime-app desktop roots
  • replaces the split-app placeholder windows with minimal usable GUIs for Hive control and Runtime chat/status
  • moves the unsigned stabilization path into explicit CI/release workflow handling
  • removes alpha-era NSIS upgrade-preservation hooks from the stabilization lane
  • adds Windows build-policy diagnostics plus a stable %LOCALAPPDATA%\Abigail\cargo-target launch flow
  • adds a browser fallback harness for local testing if desktop shells are blocked

Why

The old super-app path was carrying too much alpha-era coupling, and local Windows development was blocked by Application Control when Cargo executed generated build-script binaries from the repo-local target directory. This change turns the split architecture into a working local path and gives us both a desktop and browser fallback for pre-MVP validation.

Developer impact

  • use pwsh ./scripts/dev/launch_split_stack.ps1 for the split-stack local launch flow
  • use pwsh ./scripts/diagnose_windows_build_policy.ps1 to capture JSON diagnostics when Windows policy blocks desktop builds
  • split desktop builds now standardize on %LOCALAPPDATA%\Abigail\cargo-target
  • the new Hive and Runtime windows now expose real minimal GUIs instead of static splash pages

Validation

  • cargo check -p abigail-hive-app -p abigail-entity-runtime-app
  • cargo test -p hive-daemon
  • cargo test -p entity-daemon
  • cargo clippy -p entity-daemon -p hive-daemon -p abigail-hive-app -p abigail-entity-runtime-app --tests -- -D warnings
  • node scripts/check_unsigned_stabilization.mjs
  • pwsh -NoProfile -File scripts/diagnose_windows_build_policy.ps1
  • pwsh -NoProfile -File scripts/dev/launch_split_stack.ps1 -OpenBrowser:$false

Comment thread crates/entity-daemon/src/outbox.rs Dismissed
Comment thread crates/entity-daemon/src/outbox.rs Dismissed
jbcupps added 9 commits April 12, 2026 21:02
Fix race condition in AbnormalBrainScreen where the onReady callback
never fired because parent re-renders invalidated the useEffect timeout.
Use useRef for the callback and useCallback in the parent.

Auto-install Ollama when not found: start_managed_ollama now downloads
and silently installs Ollama, starts the server, and pulls the bundled
model (llama3.2:3b) in a background task instead of failing immediately.

Add InstallingOllama lifecycle state so the frontend can show install
progress (0-40%) distinct from model download progress (40-100%).

Fix Windows file-handle contention: explicitly drop the tokio File
before executing the downloaded installer.

Include split-app MVP: per-entity provider config, streaming chat in
entity-runtime-app, message-bus observability, and Hive provider UI.

Made-with: Cursor
…N env var

These tests spawn hive-daemon and entity-daemon binaries which must be
pre-built. The stability CI job handles this explicitly; the generic
cargo test --workspace run skips them to avoid build-order races.

Made-with: Cursor
Both hive-daemon and entity-daemon integration tests spawn daemon
binaries that must be pre-built. Skip them in the generic workspace
test run; the stability job builds binaries and sets the env var.

Made-with: Cursor
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.

2 participants