Skip to content

fix(onboarding): plain-language first-run copy, one inline surface, and a hardening guide that does not call a tunnel privacy - #2848

Merged
vybe merged 7 commits into
devfrom
fix/2691-first-run-copy
Sep 16, 2026
Merged

vybe merged 7 commits into
devfrom
fix/2691-first-run-copy

Conversation

@obasilakis

Copy link
Copy Markdown
Contributor

Walked a fresh DigitalOcean droplet end to end. Three things, all unmet ACs on issues that are already closed-in-dev.

1. The secure step was written for whoever built it

ent#581 AC 3: "The 'why this matters' disclosure explains it in plain language, without security jargon." What shipped:

Step one is done: Trinity now hands out a name rather than an IP, and whatever terminates TLS in front of it can pick up that name. The step below is about reach rather than address…

Trinity ships the service behind the tunnel compose profile, driven by TUNNEL_TOKEN in .env, so that last step happens on the host rather than from this page.

An env var on a first-run page whose own sentence concedes the reader cannot act on it from there. The mechanism is still named; the implementation moved to the docs link.

The honesty constraints all survive — no sentence asserts a property of a connection nothing here has inspected. Two spec assertions pinned the old jargon (/whatever terminates TLS in front of it/, /cloudflared/, /TUNNEL_TOKEN/); they now pin the same claims in plainer words, each with a comment saying why. A jargon-absence assertion replaces them.

Two guards caught drafts of this and were right: /is working|works today/ is forbidden even on the reached posture, because all that is known is that a request arrived once.

2. One first-run surface, not two

AC 1: "no first-run card renders inline in the dashboard flow." ActivationChecklist was still at Dashboard.vue:256, shifting the page.

Removed — but not folded into the overlay, and that distinction matters. Its four milestones (first_agent_created, first_chat, first_schedule_created, first_channel_connected) are observed from DB state during use. Three of them cannot be true while a blocking setup overlay is up. The AC lists it beside FinishSetupCard and OnboardingWizard as something to "absorb", and that wording does not fit this one surface.

This contradicts a decision approved in #2715, which carried ActivationChecklist (ent#238) deliberately stays inline and was approved. Two artefacts disagree; raising it on ent#581 so the AC gets corrected either way.

Cost: the enterprise _activation.py milestones now have no surface. Tracked on ent#238. Restore SHA is in the commit message.

3. The hardening guide called a tunnel privacy

It presented the tunnel and a private network as equivalent postures — "Both options reach the same outcome" — then recommended the tunnel to most readers. Its own table contradicts that: Web UI → "Anyone you give the address to."

A tunnel closes the ports. It does not make Trinity private: the UI still answers anyone with the address, login as the only control — the same sentence the guide opens with. Now stated plainly, plus Step 2c, an identity gate in front of the tunnel, which is what actually gives working callbacks and a UI that does not answer strangers.

Step 2c is honest about its cost: a bypass list per inbound integration, failing quietly in both directions (too broad, nothing is protected; too narrow, bots stop delivering silently). That is the same shape as the hand-typed port list that shipped wrong in #2380, so it says to re-check it whenever a channel is added.

docs.ability.ai/getting-started/deploying/hardening still 404s — the page only exists on dev, and sync-docs-to-vertex fires on main. #2692's last AC, unaffected by this PR.

Tests

npm run test:unit — 3065 passed. One pre-existing failure, portalAgentsAtCentre.spec.js, which asserts /Aug/ against toLocaleDateString and gets 21 Αυγ on a Greek-locale machine. Untouched by this change.

Raw-color baseline: removed the deleted component's entry only. A full regeneration would have newly blessed two hardcoded colours in CanvasDocument.vue that predate this.

Refs #2691, #2692, abilityai/trinity-enterprise#581

🤖 Generated with Claude Code

…nd a hardening guide that does not call a tunnel privacy

Three things a fresh DigitalOcean droplet walk surfaced.

Copy. The secure step spoke to whoever built it: "whatever terminates TLS
in front of it", "reach rather than address", and a TUNNEL_TOKEN in .env on
a page whose own text conceded the reader cannot act on it from there. That
is ent#581's AC 3 ("plain language, without security jargon") unmet. The
mechanism is still named; the implementation is not, and the docs link
carries it. The honesty guards all stay: no sentence asserts a property of a
connection nothing here has inspected, and the two assertions that pinned
the old jargon now pin the same claims in plainer words, each with a comment
saying why it moved. The domain-reached copy also stops opening on what is
left after a green Done, and the face copy drops to two short lines.

One inline surface. ActivationChecklist was the last first-run card
rendering in the dashboard flow, against AC 1 ("no first-run card renders
inline"). It is removed, NOT folded into the overlay: its four milestones
are observed from DB state during use and cannot be true while a blocking
setup overlay is up, so the AC's "absorbs" wording never fitted this one
surface. The enterprise _activation.py milestones now have no surface --
tracked on ent#238. Restore with:
  git checkout a5ac3cf -- src/frontend/src/components/onboarding/ActivationChecklist.vue

Hardening guide. It presented a Cloudflare Tunnel and a private network as
equivalent postures differing only in integrations, then told most readers
to pick the tunnel. Its own table says a tunnel leaves the web UI reachable
by anyone with the address, so that is not privacy -- it is closed ports and
no exposed origin. The guide now says so, and adds Step 2c: an identity gate
in front of the tunnel, which is what actually delivers working callbacks
plus a UI that does not answer strangers. Step 2c is honest about the cost:
a bypass list per inbound integration, failing quietly in both directions.
The exposure sentence stops rebutting a belief the reader never held.

Raw-color baseline: the deleted component's entry removed. Not regenerated
wholesale -- that would have newly blessed two hardcoded colours in
CanvasDocument.vue that predate this change.

Refs #2691, #2692, trinity-enterprise#581

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@obasilakis
obasilakis requested a review from vybe September 16, 2026 11:37
obasilakis and others added 4 commits September 16, 2026 14:29
…ing them as a fork

The Step 2 table offered two columns and put five Broken cells in one of
them. Nobody reads that and picks the private network, so Step 2b was dead
copy: carefully written, unreachable, and the table two inches above decided
for the reader.

It was also a false fork. Every Broken cell is true only of Tailscale ALONE.
Run cloudflared and tailscaled on the same droplet, publish only the paths
third parties call, and leave the admin UI off the tunnel: the callbacks
arrive over Cloudflare, the UI answers your devices only, and nothing listens
on the public interface. That needs no Trinity change — public-access.md has
carried the path-split table all along.

The table is now three postures, tunnel-only and tailnet-only and both, with
both named as the one to aim at. Step 2c is rebuilt around that composition
rather than around Cloudflare Access; Access stays as the secondary option
for anyone who wants the UI public but gated.

Two specifics found on the way:

public-access.md's narrow ruleset is introduced as "publish only the webhook
surface rather than the whole UI" and its last row is a `/` catch-all to the
frontend — which publishes the whole UI. Anyone following it believed they
had narrowed the surface and had not. The row is replaced by a note saying
what adding it back costs, and by the observation that this list fails in the
SAFE direction: a missing entry breaks one integration loudly, where the
inverted port list in docker-firewall.sh failed open and shipped 8081
serving plain HTTP.

Telegram's Broken is ours. Trinity calls setWebhook and nothing else — zero
hits for getUpdates across src/ and docker/ — so Telegram's servers have to
reach the instance. The Bot API's long polling is outbound and would survive
a tailnet exactly as Slack's Socket Mode already does. Stated as our gap
where it was implied to be Telegram's, and filed as #2849.

Refs #2692, #2849

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copy that only parses if you know what the page used to say: "together, not
instead of each other", "not two options to pick between", "the wrong column
to read as a verdict", "reached the long way", "fails in the safe direction",
"needs no Trinity change". A reader arriving cold has no earlier draft to
compare against, so each of these spends a sentence on a position they never
held -- the same defect as the exposure line in What You Start With.

Each one is now either a statement of what happens to the reader or gone.
Step 2 states the three outcomes and who should pick which; Step 2c is the
two actions plus the one thing to keep up to date; the public-access note
says what to add and what breaks if you forget.

Refs #2692

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Pressing Save emptied the field and changed a badge. That was the whole
feedback for an action that stores a setting AND re-registers every live
Telegram webhook and rewrites every WhatsApp binding URL. Walked on a fresh
instance, it reads as though nothing happened.

A confirmation now names the value and, in the same breath, the part that is
still unknown:

    Saved. Nothing has reached <url> yet — open it in a browser to confirm
    it works.

Two different facts on purpose. The write succeeded; whether the name reaches
this server has not been established and cannot be from here. The second is
what an operator would otherwise assume the opposite of, and assuming it is
how a typo'd domain sits broken while Settings reads fine.

Deliberately NOT validation. A DNS check at save time would compare the name
against this server's address and reject every domain behind a Cloudflare
Tunnel, a load balancer or a reserved IP — the tunnel resolves to Cloudflare
by design, and that is the configuration the hardening guide recommends.
There is no reliable answer available at save time; the only proof is a
request arriving, which is what flips the posture to reached.

So this is not a claim the domain works. `postureCopy` owns that claim and
still makes it only once a request has landed.

`role="status"` so it is announced rather than only seen. Semantic tokens
(`status-success-*`), so the raw-colour ratchet stays at zero for this file.

Refs #2691

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…nbook pointed at

The runbook offered the Vendor Portal and a TRINITY_DO_APP_ID build as two
ways to do the same thing. They are not interchangeable. The portal's listing
form has a required System Image field that picks from the snapshots already
on the account, so a listing is built AROUND a snapshot and its app_id only
exists once the listing does, read from its URL. There is no app_id to supply
before the first submission, so mp-submit.sh cannot make it -- the one route
someone would reach for first is the one that does not work yet.

Split into First submission and Later releases, which is the real shape.

Also recorded: submitting CONSUMES the snapshot. The picker says so -- "the
selected snapshot will no longer be available once the listing is submitted"
-- and the runbook implied the opposite by having you keep using it. Build one
for the submission rather than spending the snapshot you still boot droplets
from.

Nothing about the built image changes between the two routes. TRINITY_DO_APP_ID
is read by an optional post-processor after the build; unset, the build does
not submit, and the image carries no listing identifier either way. Stated
explicitly because the field name invites the opposite assumption.

The submission gate is restated rather than dropped. Its substance was always
"a human boots it and uses it before anything is submitted", which img_check
cannot do; the second-pair-of-eyes part is a preference that a team of one
cannot meet. Written as the preference it is, with the reduction in cover named,
so the file stops asserting a process nobody is running.

Refs #2281

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@vybe

vybe commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

merge-train 2026-09-16: not on this train. It needs a product decision, not a code fix. CI is green, both ratchets pass, and the full frontend unit suite passes. The copy work reads well.

The decision. Removing ActivationChecklist from Dashboard.vue reverses the approved #2715 call ("deliberately stays inline"). With it gone, stores/onboarding.js has no consumer, so the enterprise per-user checklist (/api/enterprise/onboarding/checklist) has no surface at all. The body says that loss is tracked on ent#238, but ent#238 is closed, so nothing tracks it. That goes to the product owner before merge. Either the AC on ent#581 changes to match this PR, or the checklist stays and this PR keeps it.

Mechanical items to pick up in the same pass:

  • hardeningGuide.js:45: DOMAIN_PREREQUISITE now ends "The guide below shows how.", but the same string renders at Settings.vue:372, where no guide follows.
  • Five docs still say the checklist stays on the Dashboard: user-docs/getting-started/setup.md:90, user-docs/operations/dashboard.md:38, memory/architecture/frontend.md:43, memory/feature-flows/onboarding-wizard.md:108, memory/requirements/roadmap.md:73.
  • FirstRunOverlay.vue:12 names the private _activation.py in public source, which the enterprise-docs rule asks us to avoid.
  • If the removal stands, stores/onboarding.js and onboardingChecklistStore.spec.js become dead code. firstRunSteps.spec.js:362-366 also never gained ActivationChecklist.vue in its deleted-files list, although the comment says it did.

Coverage note. Every assertion this PR adds matches source text, at hardeningGuide.spec.js:341,386-387 and firstRunSteps.spec.js:379. Nothing mounts StepSecure or FirstRunOverlay, and the new domain-save confirmation has no test.

Scope note. The packer/digitalocean/README.md rewrite, which softens the "another team member QAs" gate to "prefer", and the StepSecure save confirmation are not mentioned in the description.

Rides the next train once the checklist question is settled.

obasilakis and others added 2 commits September 16, 2026 16:23
From vybe's review on #2848. Four items that hold whichever way the
ActivationChecklist question goes; the contingent ones wait for it.

DOMAIN_PREREQUISITE ended "The guide below shows how." That string renders on
BOTH the first-run step and Settings.vue:372, where nothing follows it. A
pointer that resolves on one surface and dangles on the other is exactly the
drift the shared constant exists to prevent, and I introduced it while
shortening the copy. The pointer is gone; the sentence stands alone on both.

FirstRunOverlay.vue named the private `_activation.py` in public source. The
comment now describes the loss without naming where the code lives.

The save confirmation had no test. It has one, asserting the element, the
`role="status"`, and the ordering that makes the message truthful: the value
is remembered AFTER the write resolves and BEFORE the field clears. It also
asserts the message never claims the domain works -- `postureCopy` owns that
claim and waits for a request to arrive.

That test failed on its first run and was right to. An earlier edit meant to
reset `savedUrl` at the start of each attempt never applied -- an indentation
mismatch, silently a no-op -- so a save that failed after one that succeeded
showed the error beside a stale confirmation. Fixed, and now pinned.

Still open, and not mine to settle: whether ActivationChecklist goes. The
review is right that ent#238 is CLOSED, so "tracked on ent#238" tracked
nothing -- said in the commit, the PR body and my ent#581 comment. The docs
drift, the dead store and the deleted-files list all follow from that decision
and are held until it is made.

Refs #2691

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The product owner ruled the checklist stays, and corrected the premise I
argued from. I read ent#581's AC bullet and the merged #2715 code as two
contradictory calls. They are not: the AC bullet is the earlier text, and
ent#581's design comment of 2026-09-10 — later, specific, operator-reviewed —
already says ActivationChecklist "stays inline", "deliberately not absorbed",
with the same reasoning I then re-derived independently. #2715 implemented
that faithfully. Only the AC bullet's verb was stale, and amending it is
gated on Eugene, not on this PR.

AC 1 does not force removal either. Its target was the ladder of stacked
setup cards, which is gone regardless; a self-retiring ambient marker that
renders only when entitled and hides on completion is not a first-run card.

Restored to the state on dev: the component, the Dashboard import and render,
the firstRunSteps.spec.js expectations and the raw-color baseline entry.
FirstRunOverlay.vue's header comment goes back to naming the checklist as
deliberately inline — which also removes the private-path reference I had
introduced, since the sentence needing it is gone.

One correction to my own cost framing, in the ruling's favour: no data was
ever at risk. db/product_events.py derives first-value events on read from
audit_log and agent_activities and never emits them, so the milestones live
server-side whatever the frontend does. The loss would have been the surface,
not the record.

The hardening-guide, public-access, packer README and StepSecure work in this
PR is unaffected and ships as it stands.

Refs #2691, trinity-enterprise#581, trinity-enterprise#238

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge-train 2026-09-16: product question settled. The checklist stays, and it moves to the Dashboard's systems rail in #2854, so this PR is copy and docs only. Re-checked the two commits since the earlier review. The shared DOMAIN_PREREQUISITE string no longer points at a guide that is missing on Settings, a retried save clears the stale confirmation, and the revert leaves the checklist identical to dev. CI is fully green, and there is no file overlap with #2854.

@vybe
vybe merged commit 4196a6d into dev Sep 16, 2026
28 checks passed
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