Repository navigation
Description
Summary
A first-time self-host walkthrough of Trinity surfaced six small defects in the deploy scripts, .env.example, MCP server, and Docker healthcheck. None are blocking, but together they make the "clone → start → login" path frustratingly easy to get wrong. Fixes are additive and low-risk.
Context
Friction report from a fresh clone + start.sh walkthrough. .env setup was entirely implicit, port 80 conflicted with no documented override, start.sh printed a misleading admin/password login hint, the MCP server logged a wrong URL (localhost:3000/api-keys), leftover agent containers persisted across re-installs, and docker compose ps flagged mcp-server as unhealthy despite it serving traffic.
Doc-side gaps (docs.ability.ai/getting-started pages) are tracked separately; the in-repo docs/user-docs/guides/* were already corrected alongside the generate-user-docs playbook in the same session.
Acceptance Criteria
-
scripts/deploy/start.sh— Auto-generateSECRET_KEYandINTERNAL_API_SECRETif blank (mirror the existingCREDENTIAL_ENCRYPTION_KEYpattern atstart.sh:20-28); fail fast with a clear message ifADMIN_PASSWORDis blank so the operator can't boot into an unusable state. -
.env.example— AddFRONTEND_PORT=80with an inline comment explaining remap-on-conflict. The variable is already read bydocker-compose.yml:83andstart.sh:43but isn't documented as user-tunable anywhere reachable from the quickstart. -
scripts/deploy/start.sh:48,50— Replace the literallogin: admin/passwordhint with something that reflects reality (e.g.login: admin (password from .env)), or drop the hint entirely. A new user will take "password" as the literal default. -
src/mcp-server/src/index.ts:59andsrc/mcp-server/README.md:62— Remove or correct the hardcodedhttp://localhost:3000/api-keyshint. Port is wrong (frontend default is 80, not 3000) and ignoresFRONTEND_PORToverrides. Prefer reading from env or dropping the URL. - Clean-reinstall path — Either add a
--cleanflag toscripts/deploy/stop.shor ship a siblingclean.shthat removes lingeringagent-*containers and thetrinity-agent-networkDocker network. Without this, a fresh install inherits leftover state and the first new agent collides onAGENT_SSH_PORT_START(2222). -
src/mcp-server/Dockerfile:30-31— Healthcheck currently doeswget --spider http://127.0.0.1:8080/mcp. The/mcpendpoint doesn't answer a HEAD probe cleanly anddocker compose psshowsunhealthydespite the service being alive. Point it at/health(which returns 200) instead.
Technical Notes
- All six are independent — can ship as one PR or split; recommend one PR since they're all onboarding hygiene.
- No schema, API, or runtime-behavior changes. No migration needed.
- Verify Feature/process engine #6 manually by running
docker compose psafter./scripts/deploy/start.sh— MCP server should showhealthywithin 30s. - For Setup improvements #5, confirm that
docker network rm trinity-agent-networkis safe when the compose stack is down (it is — network is re-created bycompose up).
Source: onboarding friction report, 2026-04-21.
Activity
chore(tests): baseline 6 pre-existing sys.modules writes in test_plat…
fix(onboarding): six defects in self-host deploy path (#443) (#833)
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).