# Brief: make the deployed starter set runnable (execution on CARLOS + runner install)

Branch `enable-execution` from main 0cb576b, which is DEPLOYED to
https://equipo.bds.oncarlos.com (CARLOS app `equipo`, account `oficina`,
flagship; arm64 instance; env today: EQUIPO_ORIGIN, EQUIPO_OWNERS,
CARLOS_SMTP_*; secret EQUIPO_INSTANCE_KEY). Paul approved enabling
execution and enrolling docs-t1 (2026-11-05). Gaps found:

1. scripts/install path: packaging/install/install-v1.sh asserts
   `not r.get('uncertified_policies')`; the starter-set manifest has 15
   uncertified policies, so install refuses. Partial releases must
   install; dispatch already refuses uncertified routes
   (`provider_policy_uncertified`). Keep every other assertion; require
   at least one certified direct policy.
2. Runner assets: the installer downloads
   `$origin/releases/<version>/{install-manifest.json,equipo-runner,
   equipo-tool-proxy,install-v1.sh}` served by InstallAssets from
   EQUIPO_RUNNER_RELEASE_DIR on the instance, but a CARLOS instance only
   receives the app binary. Decision: `make release` embeds the matching
   runner release assets (built for linux/amd64 by release-runner) into
   the instance binary (go:embed or an equivalent generated package,
   with digests checked against the install manifest), and InstallAssets
   serves the embedded copy when EQUIPO_RUNNER_RELEASE_DIR is unset.
   `make release` must build release-runner first (or depend on it) so
   a release can't ship mismatched assets. Keep binary size sane;
   report it.
3. Execution on CARLOS: EQUIPO_EXECUTION_ENABLED=1 also requires
   EQUIPO_EXECUTION_MARKER_PATH (absolute, not in the DB's directory;
   see internal/equipo/execution_startup.go). Find how a CARLOS app gets
   a persistent writable directory (read the platform docs at
   ~/amadan.net/carlos/platform, e.g. `carlos help`, docs/ on app data
   dirs, CARLOS_* env the platform injects) and choose the marker path;
   decide whether EQUIPO_ALWAYS_ON is needed for runner connectivity and
   say why. Do NOT run `carlos env set` or deploy: write the exact
   commands in the report for the controller.
4. Enrolment: document the exact steps to install and enrol a runner on
   docs-t1 as user paulca, no root, from the deployed instance (what
   Paul must click in the app, what one-time code if any, and the
   command(s)), including EQUIPO_CLAUDE_PATH pinning to
   ~/.local/share/claude/versions/2.1.312 (Claude auto-updated to
   2.1.318) and reuse of the existing dedicated homes and bindings from
   the live gate (~/.local/share/equipo-runner/{runner.env,bindings.json}).
   If the installer would overwrite or conflict with those, say how to
   reconcile.
Tests for 1-3; ONE full `make -k ci` (rerun at most twice); a dry
`make release` into scratch proving embedded assets are served with
correct digests. Commit subject < 80, body
`Co-Authored-By: Astra <noreply@openai.com>`, push.
CONTROLLER-REPORT-enable-execution.md with the commands. OFFLINE: no
provider launches, no deploys, no env changes. Scratch removed; no
copy-review server. Print a five-line summary.
