DRAFT - requires review by a qualified lawyer before publication
Scope of this draft: verified against the code as of 2026-11-24. Items marked
[TO CONFIRM]are not verified. Items marked[TODO - not implemented yet: ...]describe promises the product does not yet keep.
Privacy Policy - Trivelo
Last updated: [DATE]
1. Who we are
The controller of your personal data is:
- Name: [OPERATOR NAME]
- Address: [ADDRESS], Cyprus (EU)
- Contact: [CONTACT EMAIL]
We have not appointed a Data Protection Officer. [TO CONFIRM whether one is required]
2. What the service is
Trivelo is an AI coaching service for endurance athletes (triathlon, cycling and running). Access is invite-only. You sign in through Telegram (the bot and the Telegram Mini App) and connect your training account at Intervals.icu. We do not use Strava data.
Only adults may use the service (see section 9).
3. Personal data we collect and store
The list below reflects the database schema and code paths. Field names are for reference only.
a. Account and identity
- Telegram user ID, first and last name as shown by Telegram, and your timezone (
athletes). - Role (athlete or admin) and account timestamps.
- Your Intervals.icu athlete ID and connection status (
athlete_integrations).
b. Training profile and plans
- Sports, primary sport, strength setting and other preferences (
athletes,preferences). - Events and races: name, distance, date, priority, notes (
events). - Training blocks / macrocycle phases, including weekly plans generated for you (
training_blocks,weekly_plans). - Constraints you report, such as injuries, illness, travel or availability, with a free-text description (
constraints). - Daily briefs and weekly summaries we generate for you (
daily_briefs). - Performance thresholds and Dot scores derived from your data (
athlete_thresholds,dot_history).
c. Health data (special category data under GDPR Article 9)
- Voluntary illness and symptom reports, including symptom kinds, severity, start and end dates and notes (
symptoms_log, written by the/sickand/recoveredcommands and the wellness API). - Injury and illness constraints (
constraints) and injury-related coaching notes (coach_observations). - Recovery and wellness metrics pulled from Intervals.icu: heart-rate variability (HRV), resting heart rate, sleep duration and score, weight, SpO2, steps, and readiness and fatigue values. These are read from Intervals.icu when needed. We do not keep a separate wellness table in our database. [TO CONFIRM that no wellness copy is cached beyond the request]
d. Training activity data (from Intervals.icu)
- Activity summaries, laps, best efforts and power curves (
activity_analysis). - Detailed activity streams (for example heart rate and power time series), stored as compressed files in object storage under
activities/{athlete_id}/...(see section 6). - Plan-versus-actual analysis results.
e. Coaching memory
- Short observations about you that the AI coaches save so they can give more relevant advice. Each observation is at most 240 characters, with a kind, weight, confidence and an optional expiry date (
coach_observations). See section 5.
f. Audit trail
- A record of each AI agent call: agent name, trigger, model, token counts, latency, error, and a short output summary (first 280 characters of agent output) (
agent_decisions). The input summary column exists but is not written.
g. Chat content
- Messages you send to the bot are passed to the AI models to produce replies (see section 6). We do not keep a chat-transcript table. Telegram's bot conversation state (FSM) may be stored in Redis when
REDIS_URLis set, otherwise in process memory. [TO CONFIRM the content and retention of FSM state] - Free-text fields you write (for example event notes, constraint descriptions and symptom notes) are stored as described above.
h. Access tokens and sessions
- Intervals.icu OAuth access and refresh tokens, stored encrypted (section 7).
- Temporary OAuth state records, stored as hashes (
oauth_states), and a webhook de-duplication log (provider_webhook_events). - The session cookie described in section 11.
i. Legacy data (retained for history, no longer collected)
- Daily wellness check-ins (
subjective_wellness), post-session questionnaires with pain and fueling fields (session_feedback) and a nutrition profile with medical flags (athlete_fueling_profile). These features have been removed. Their rows remain in the database, may still be shown in activity history, and are not added to. They are health-related and are covered by the same safeguards as other health data.
j. Knowledge base
- Scientific papers, podcast show notes and similar public sources. These contain no personal data about you.
4. Purposes and lawful bases
| Purpose | Data | Lawful basis (GDPR Art. 6) |
|---|---|---|
| Provide accounts and sign-in | a | Performance of a contract |
| Generate plans, briefs and coaching replies | b, d, e, g | Performance of a contract |
| Use health data (illness, injury, recovery) to adjust coaching | c | Explicit consent (Art. 9(2)(a)) [TODO - not implemented yet: consent capture screen and withdrawal record; the code has no consent step] |
| Coaching memory across sessions | e | Performance of a contract and consent (see section 5) [TO CONFIRM] |
| Security, debugging and cost control via the audit trail | f | Legitimate interests [TO CONFIRM balancing test] |
| Operating the service and preventing abuse | h | Legitimate interests |
| Operator administration and daily admin digest | a, f | Legitimate interests |
5. Automated decisions and AI
Coaching advice is produced with the help of AI models and deterministic rules. The rules include readiness verdicts, safety rules and load rules. These can limit or change the advice you see. They do not have a legal effect on you, but they affect your training. See the Terms for limits on the advice. [TO CONFIRM that this meets Art. 22 analysis]
Retention of coaching memory:
- Observations are deleted on schedule (section 6).
- Observations unseen for 30 days lose confidence each day and are deleted when confidence falls below 1 (daily job at 03:30 UTC).
6. Recipients and processors
| Recipient | What is sent | Purpose | Location | Notes |
|---|---|---|---|---|
| Anthropic (Claude API) | Prompts for each agent call. These include your profile, plans, events, constraints, symptom reports, recovery and activity summaries, coaching memory, and your messages. | AI coaching replies, plans, briefs | [TO CONFIRM] (US) | Data retention terms and any zero-retention agreement: [TO CONFIRM] |
| Voyage AI | Search queries for the knowledge base. Queries are fixed text per coach, plus planner queries built from your race distance, training phase and open constraint description (your free text). Knowledge documents are embedded at ingestion. No other athlete data is embedded. | Knowledge search | [TO CONFIRM] | Only when the Voyage key is configured |
| Intervals.icu | Your OAuth-authorised account: read activities, wellness, sport settings, best efforts, power curve, laps and streams. Write planned workouts when sync is on. | Source of your training data; plan sync | [TO CONFIRM] | Intervals.icu is also your own account and is governed by its own terms |
| Telegram | Messages and bot interactions, and Mini App data | Sign-in and messaging | [TO CONFIRM] | Telegram's own privacy policy applies |
| Hosting provider | All stored data | Hosting | [TO CONFIRM provider and location] | No hosting provider is named in the repository. The deployment guide describes a self-managed VPS behind Caddy or nginx. |
| Object storage (S3-compatible) | Activity stream files and knowledge-base source files | Storage | Same as hosting [TO CONFIRM] | Endpoint is configurable |
Not currently active:
- Weather (OpenWeatherMap / Open-Meteo): the client code exists, but nothing calls it, and weather is set to empty in the agent state. No location is sent. If this changes, this section and the lawful basis must be updated.
- Strava: not used. The OAuth code exists behind the
STRAVA_ENABLEDflag, which defaults to off. [TO CONFIRM the flag is off in production] - Analytics and advertising: none found in the code. [TO CONFIRM]
Sub-processors: [TO CONFIRM for each processor above].
7. Security
Measures in place today, as verified in the code:
- Intervals.icu tokens are encrypted at rest with Fernet keys (MultiFernet, with key rotation). The encryption envelope binds each ciphertext to its athlete and provider, so a copied value fails to decrypt. Token encryption is required when provider OAuth is enabled.
- Plaintext tokens are not written to logs or error messages (per the code design).
- Telegram sign-in data is checked against the bot token before a session is issued.
- The session cookie is
HttpOnly,SameSite=LaxandSecureoutside development (see section 11). - Admin routes require the admin role. The bot can be restricted to an allowlist of Telegram user IDs (
TELEGRAM_ALLOWED_USER_IDS). An empty list means no restriction. - Intervals.icu webhooks are checked against a shared secret.
Gaps and things we do not claim:
- The bot allowlist does not limit web sign-in. Anyone with valid Telegram sign-in data gets an account row. [TODO - not implemented yet: enforce the invite list on web sign-in]
- If
WEBHOOK_SECRETis not changed from its default, the session signing key and webhook secret are weak. [TODO - security hardening: require a strong secret at startup] - HTTPS is required by Telegram for webhooks. The deployment guide shows Caddy with Let's Encrypt, but enforcement at the production edge is the operator's responsibility. [TO CONFIRM production TLS]
- Encryption at rest for the database and object storage: [TO CONFIRM]
- Access logging, backups and incident response procedures: [TO CONFIRM]
- We hold no security certifications (for example ISO 27001 or SOC 2).
8. Retention
| Data | Retention | Mechanism |
|---|---|---|
| Coaching observations | Deleted when the per-row expiry passes, or after 60 days when no expiry is set | Weekly job, Monday 03:15 UTC |
| Coaching observation confidence | Decays after 30 days unseen; deleted below confidence 1 | Daily job, 03:30 UTC |
| Symptom episodes | Closed automatically when open for more than 3 days (the row is kept with an end date) | Daily job, 04:00 UTC |
| OAuth state records | Pruning function exists but is not scheduled. [TODO - not implemented yet: schedule pruning of expired oauth_states] | None |
| Webhook de-duplication log | Model describes 7-day pruning, not scheduled. [TODO - not implemented yet: schedule pruning of provider_webhook_events] | None |
| Agent audit trail, plans, briefs, activity analysis, events, constraints, legacy health data | Kept until account deletion | None |
| Activity stream files | Kept until account deletion [TO CONFIRM] | None |
| Backups | [TO CONFIRM retention period and deletion from backups] | None |
| Telegram chat history | Governed by Telegram | Telegram |
We do not yet delete your data automatically when you stop using the service. [TODO - not implemented yet: account closure and deletion workflow]
9. Children
The service is for adults aged 18 and over. We do not knowingly process data about anyone under 18. If you believe a minor has an account, contact us at [CONTACT EMAIL] and we will delete it.
[TO CONFIRM: the migration history contains tables for a separate children's pilot (kids_*, migration 0021). Confirm these tables are not used in this deployment, and whether they should be dropped.]
10. Your rights
Under the GDPR you have the right to:
- Access your data.
- Rectification of inaccurate data.
- Erasure of your data.
- Restriction and objection to processing based on legitimate interests.
- Data portability (a machine-readable copy).
- Withdraw consent for health data processing at any time, without affecting processing already done.
- Lodge a complaint with the Office of the Commissioner for Personal Data Protection of Cyprus (www.dataprotection.gov.cy) [TO CONFIRM URL]
How to exercise these rights: email [CONTACT EMAIL]. We will reply within one month.
Current status (honest summary):
- Access and portability: [TODO - not implemented yet: athlete data export endpoint or command; an admin can view some data through the admin area only]
- Erasure: [TODO - not implemented yet: athlete self-service deletion. The admin area can hard-delete an athlete record, which cascades to linked rows. This does not delete data held by Intervals.icu, and the admin route is not available to athletes.]
- Withdrawal of health-data consent: [TODO - not implemented yet: consent record and withdrawal flow]
- Rectification: [TODO - not implemented yet: athlete-facing edit of profile and constraints, where not already available in the bot]
- Disconnecting Intervals.icu: available through the integrations API (
DELETE /api/v1/integrations/{ref}), which revokes the stored tokens with Intervals.icu. [TO CONFIRM whether an in-app control exists for athletes, given the athlete web routes are admin-gated.]
11. Cookies and similar technologies
We set one cookie, ic_session. It holds a signed session token, expires after 24 hours, and is HttpOnly, SameSite=Lax and Secure outside development. It is strictly necessary for signed-in use. We do not use advertising or analytics cookies. [TO CONFIRM]
12. International transfers
Some processors (for example Anthropic and Telegram) may process data outside the EEA. Where this happens, transfers rely on the mechanisms the processor provides, such as Standard Contractual Clauses. [TO CONFIRM for each processor]
13. Changes to this policy
We will update this page when processing changes. [TO CONFIRM how material changes are notified; a bot notice is not implemented.]
14. Contact
[OPERATOR NAME], [ADDRESS], Cyprus. Email: [CONTACT EMAIL].