4 Commits
Author SHA1 Message Date
davidandClaude Opus 5.5 fdb57d260d Add the coreapp skill; fix /data ownership; deploy --recreate, shell <cmd>
skills/coreapp/SKILL.md teaches a Claude Code agent to make or port an
app for Federated Core: coreapp.toml, the needs, porting an existing app,
the deploy and test loop, troubleshooting, what isn't supported yet and
how to report back. update.sh links it into ~/.claude/skills/coreapp;
uninstall.sh removes the link. Rehearsed with a small app (memo-board)
ported by a fresh agent using only the skill.

The installer now gives /data to the image's user before starting the
container: Docker created it as root, so non-root apps couldn't write.
coreapp deploy --recreate always starts a new container (to test that
data survives); coreapp shell '<command>' runs one command without a
terminal.

PLAN.md: what would change on the Core to put the installer in
/federated/bin/coreapps/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 13:50:10 -07:00
davidandClaude Opus 5.5 1108060432 coreapp: make, deploy and test apps on the Core in the VM
Apps are folders in Federated Core's generic services format (service,
docker-compose.yml.in, env.in, install, uninstall, icon.png) plus their
own Dockerfile. coreapp new scaffolds one from templates/app with an
address in 192.168.200.x; deploy builds the image, copies it to the Core
over SSH, installs it with installapp (and starts it, since the Core's
start only knows its own apps) or updates it keeping .env; check, status,
logs, shell and remove work on the Core.

Apps in development aren't registered with Federated's monitoring: deploy
drops MONITOR from the Core's copy of service. installapp/uninstallapp
traces go to private logs, not the terminal.

update.sh installs docker and docker-buildx and links coreapp into
~/.local/bin. PLAN.md: how the Core runs apps, and corrected evidence for
the Core's timers running their jobs at every boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 11:54:25 -07:00
davidandClaude Opus 5.5 0654d4c712 coreapp-vm command, uninstall.sh, stale-system check
- bin/coreapp-vm replaces scripts/create-coreserver-vm.sh: create (downloads
  and checks the CoreServer image when it's missing, resumes an interrupted
  download), list, ip, ssh (own known_hosts), start, stop, delete (asks for
  the name). update.sh symlinks it into ~/.local/bin.
- uninstall.sh removes coreapp-vm, the coreapp network, its hook and ufw
  rules; asks before deleting VMs, the image and keys.
- install.sh runs CoreDesktop's update first when the system wasn't
  upgraded in the last day, as `sibling add` does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 11:40:04 -07:00
davidandClaude Opus 5.5 b405e35ea8 coreapp-dev: a Federated Core in a local KVM VM
A CoreDesktop sibling project. install.sh and update.sh install libvirt
and QEMU/KVM and set up the coreapp VM network (10.123.0.0/24, open mode,
with a libvirt hook for NAT and firewall rules, and ufw rules for DHCP,
DNS and forwarding). scripts/create-coreserver-vm.sh creates a CoreServer
VM with root's SSH keys from cloud-init, at 10.123.0.10, with
systemd-resolved masked so the Core's DNS server survives reboots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 11:27:23 -07:00