CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

jbaruch/nanoclaw-host

Host rules and skills for NanoClaw deployment, image package inventories, private browser access, plugin promotion, staging and upstream updates.

Quality

89%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

ugos-compose-projects.mdskills/host-contracts/references/

UGOS Compose Projects

Operational contract for Docker Compose projects on UGOS Pro (NASync) where the compose file is source-of-truth in the repo and UGOS Pro's Projects UI is the operator's Start/Stop surface.

Before creating a symlink, registering a project or using Start, verify that the checkout matches the approved consumer and exact reviewed revision and that the project has explicit NAS runtime authority. Then confirm the project name and directory in Step 1 of the registration skill. Keep the Mini-era NanoClaw orchestrator and its NAS rollback copy stopped on the NAS, even if a project row already exists. NAS storage paths confer no runtime authority. Separately authorized storage or archive sidecars retain their NAS procedures.

Topology

  • A sidecar's Compose file lives under container/<project>/docker-compose.yaml. The repo-root orchestrator topology applies only to an explicitly authorized legacy NAS deployment.
  • Directory symlink at /volume1/docker/<project>/ resolves to the in-repo dir — UGOS Pro discovers compose files via this path
  • .env symlink at <repo>/container/<project>/.env → ../../.env
  • Linux resolves the relative target against the symlink's own parent — the chain /volume1/docker/<project>/.env → <repo>/container/<project>/.env → ~/nanoclaw/.env resolves through both layers
  • Docker derives the compose project name from the symlinked directory basename
  • Compose YAML carries ${VAR} placeholders only; docker compose interpolates from the symlinked .env at spawn time

Registration is a DB INSERT

  • UGOS Pro renders the Projects UI from /volume1/@appstore/com.ugreen.docker/db/docker_info_log.db, table compose
  • The DB is root:root 644 — INSERT requires sudo, runs interactively from a TTY (ssh -t nas)
  • The row's path column points at the symlinked compose file (e.g. /volume1/docker/<project>/docker-compose.yaml); UGOS UI Start/Stop drives docker compose against that path
  • Registering via UGOS Pro's "Create Project" UI flow instead of a direct INSERT rewrites the compose file at the symlinked path and leaks env values into the tracked repo file — forbidden
  • See Skill(skill: "add-ugos-project") for the walkthrough and skills/add-ugos-project/scripts/register-ugos-project.sh for the INSERT-statement contract

UI is Start/Stop only

  • Operator action via UGOS Pro UI on a symlinked project is limited to Start and Stop
  • Never invoke UGOS Pro's "Edit" UI on a symlinked project — UGOS dumps UI-entered env into the compose file's environment: block and the dir symlink lands those literals in the tracked repo file
  • Never paste literal env values into UGOS Pro's project env UI — same failure mode; env values stay in ~/nanoclaw/.env (gitignored), reached through the .env symlink chain
  • A credential among them follows rules/host-conventions.md Credentials live in the vault
  • Compose edits flow through repo PR review and ./scripts/deploy.sh only

Surface sync

When adding, removing, or renaming a UGOS Pro compose project, update each in lock-step:

  • The DB row's name, path, and content (or DELETE for removal)
  • The directory symlink at /volume1/docker/<project>/
  • The .env symlink inside the project's compose dir
  • Any deploy.sh agent-kill / orphan-cleanup grep predicates that match ^<project> or ^nanoclaw-
  • The consuming repo's CHANGELOG
  • See coding-policy: context-artifacts Surface Sync for the broader pattern

README.md

tile.json