Every result number on this page is fake: the real values were scaled in proportion so the client’s data stays private. The conclusions are unchanged.
Training plans that bend without breaking.
The fitness platform offers private coaching for adventure training: obstacle races, mountain objectives, long-distance running. A coach writes the plan. On any day the client can ask for something different, and the engine adjusts that one session while the plan stays exactly as the coach wrote it.
Each exercise gets two options: the same movement with fewer reps and longer rest, or a similar movement one step easier. Harder works the same way.
The engine offers a replacement from the same pillar of the plan, so a grip day stays a grip day and the week stays balanced.
The session moves later, never disappears, and the rest of the block is re-ordered so the same kind of session doesn't land twice in a row.
Every option has already passed the client's safety filters (injuries, equipment, level, and exercises they never want to see) before it is offered.
Fictional figures, scaled from the real results.
The platform describes every exercise with the same ten numbers. Workouts, sessions and program weeks are summed from their exercises, so they use the same ten numbers. A swap on one exercise can then be checked against the shape of the whole week.
Shape: five axes that always add up to 1. They say what the exercise looks like, not how hard it is.
Hardness: one intensity number from 0 to 1, kept separate from the shape.
Stimulus: strength, muscle growth and endurance. These come from the prescription, because 5×4 and 3×18 of the same lift train different things. The exercise itself doesn't carry them.
Mental demand: grit, monotony, discomfort. This is the number to lower when someone is mentally flat rather than physically tired.
"Easier" lowers intensity and holds the shape. A leg session made easier is still a leg session.
Each set has a fixed cost for setup and focus, and hard seconds count more than easy ones. Counting raw seconds makes a plank look bigger than a heavy squat.
Every session is a copy of the coach's workout that records what was actually served. Planned and delivered can be compared afterwards.
One option keeps the movement and changes the dose. The other keeps the dose and changes the movement. Both are scaled to the same effort.
Injuries, level, equipment and the client's never-show list filter every option. A blocked exercise is replaced with the closest safe one. If none exists, the session is refused rather than served half-made.
Clients can turn down a workout, never a whole pillar. Simulations showed this keeps weekly balance with no pillar missed.
Counted in raw seconds, the uphill session reads as a core day, because the progressive plank holds are long. Counted in effort units, it reads as the cardio session the coach wrote. Every "how much of this was cardio" question in the engine is answered in effort units.
The machinery is built and live. What limits it now is the coaching content, which only the coach can supply.
Each level below builds on the one before it. Samples follow the structure of the coach's data export of 3 November 2026, with identifiers replaced and values changed.
Reading the samples. Values like ex·1a2b3c4d stand in for the real identifier or coach-written note: 8 random hex characters, generated once and never saved, so a value tells rows apart but cannot be traced back. Exercise names are shown in the clear because they are the method. The numbers keep the export's structure and the engine's arithmetic, but the values are changed. No user data appears anywhere; rows marked illustrative show the shape of a record, not a person. Details are in About the samples.
Every exercise has exactly one primary movement function, such as hip_hinge, vertical_pull or loaded_carry. A database index enforces the "exactly one". Substitution stays within a function, so a pull-up can become a lat pulldown but never a squat. On top of the function sit the shape axes, intensity and mental demand.
All profiles were filled by rule so the engine could run: intensity from difficulty (), mental demand at × intensity, and the shape copied from a default for each movement function. That is why a Pull-Up and a Barbell Row have identical shapes. have been reviewed. The engine's output is only as good as these numbers, so the coach's review is the step that makes it real.
The same Back Squat trains different qualities depending on how it is prescribed. The platform reads the rep count against a small rules table, so retuning the system is an edit to that table, with no code change and no deploy.
Known limit: timed work is converted to rep-equivalents, so a 30-second all-out sprint scores as endurance. Splitting out power would need a fourth weight, which is best left until there are real training logs.
To sum exercises into a workout, each slot needs a weight. Raw time under tension fails: four sets of five heavy squats take about a minute, three 45-second planks take over two, and the squat day reads as a core day. Effort units fix this with a fixed cost per set and a multiplier that grows with intensity. Both numbers sit in a config table and can be tuned once real logs exist.
Distance is essential here. Much of the obstacle-race content is prescribed in metres ("120m uphill sprint", "3km run"). Without a pace per 100 m, every one of those would score as a 30-second default.
Chair Pose and Calf Jumps are prescribed as holds of 20 s, 40 s and 60 s. Their exercises aren't marked as timed, so the engine reads 20 / 40 / 60 as reps at 3 seconds each: 360 working seconds instead of 120. Workout 4 is overstated as a result. The fix is a data change: mark both exercises as timed.
Workouts 1 and 3 are "as many rounds as possible" formats, but their slots describe a single round. Workout 1 scores units, less than the 8-minute warm-up run on its own (). Their real load depends on the rounds completed, which the plan doesn't record yet. Two slots (Leg Swings, Monkey Bars) also have no measurable quantity and fall back to 30 s per set.
Raw %MVIC is muscle activation as a percentage of a maximal voluntary contraction. It is stored uncapped, because published values pass 100 (a hip thrust reaches about 170% on the glutes), and clamping would erase the differences the research exists to show. Share divides it so each exercise's muscles add up to 1, which is what fatigue tracking uses. Relative load compares each muscle with the exercise's top muscle. A muscle at 60% or more of the top is primary. Injury risk also uses relative load, because shares shrink as more muscles are entered.
This is why the safety check uses relative load. The erectors are only 25% of a Romanian Deadlift by share, which looks harmless. Against the top muscle they are at 0.58, and that is enough to block the lift for a client with a flexion-intolerant back (see Safety below).
Option A keeps the exercise and changes the dose: sets, reps and rest move by multipliers chosen from how the client feels. Option B keeps the dose and moves one rung along the same movement function. If copying the dose would make no sense, B takes its own reference prescription, scaled to match A's effort. Examples are a rep-based substitute for a timed hold ("Dead Bug for 40 seconds") or metres on a rep exercise ("Wall Ball, 3000 m").
hip_hingeFrom Romanian Deadlift (advanced, 0.70), "easier" looks one rung down. Candidates are then ranked by the score below and filtered for safety and equipment. If every exercise had the same difficulty, every intensity would be equal and "easier" would find nothing. The test suite checks for exactly that failure.
| Direction | Client capacity | Rule | Sets | Reps | Rest | Δ intensity |
|---|---|---|---|---|---|---|
| easier | 0.00–0.40 | Deep deload | ×0.75 | ×0.60 | ×1.50 | −0.25 |
| easier | 0.40–0.70 | Standard deload | ×1.00 | ×0.75 | ×1.30 | −0.15 |
| easier | 0.70–1.00 | Light trim | ×1.00 | ×0.85 | ×1.15 | −0.08 |
| harder | 0.00–0.85 | Step up | ×1.00 | ×1.10 | ×0.90 | +0.10 |
| harder | 0.85–1.00 | Push on | ×1.00 | ×1.20 | ×0.80 | +0.18 |
There is no "how do you feel" input yet, so capacity is fixed at 0.65 and the middle rule of each direction applies.
Same function first. Only when no legal candidate is left does the engine widen to the same family (push, pull, legs, core, cardio), and it labels the result "closest movement in the same family". A candidate must also share a primary muscle with the original.
| All five slots on option B | Intensity | Mental | Legs | Cardio | Effort |
|---|---|---|---|---|---|
| Planned | 0.597 | 0.574 | 0.236 | 0.244 | 859 |
| Delivered | 0.412 | 0.416 | 0.233 | 0.267 | 531 |
Hardness down 31%, mental load down 28%, and the leg emphasis barely moved. That is the point of keeping shape and hardness apart.
The risk index takes the coach's reviewed rating when one exists. Without one, it falls back to a formula over the muscles the injury touches. Only muscles at 50% or more of the exercise's top muscle count:
This is the case the first version of the engine got wrong. It only excluded primary muscles, so it offered Romanian Deadlift to a client with a bad back, because the erectors are secondary on that lift. Hip Thrust is promoted instead.
The answers are turned into a per-exercise list and discarded. No table or column can hold them. An uncleared red flag pauses training. The check is asked again after 28 days, or after the coach imports new ratings.
A blocked slot is replaced, never dropped: the closest legal exercise not already in the session takes the slot at the original's effort, and the reason is recorded. If no legal exercise exists in the family, the session is refused. Stopping mid-workout for pain stores no reason. The client can download a report for a clinician, and their description of the pain is added in the browser without ever reaching the database.
A plan is built from pillars, such as Endurance, Uphill, Grip Strength and Agility & Climb. When a client rejects a workout, the replacement comes from the same pillar. It is scored on closeness in intensity, shape and mental load, plus current muscle fatigue, recency and the number of safety swaps it would need. "Not a grip day today" becomes "here is the easiest grip session".
| Strategy | Intensity error | Repeats |
|---|---|---|
| Intensity ladder, one rung | 0.172 | 4.2% |
| Nearest intensity | 0.174 | 4.9% |
| Nearest profile | 0.160 | 2.1% |
| Weighted (chosen) | 0.168 | 2.2% |
Weighted is close to the best on both measures, and it is the only strategy that also accounts for fatigue, recency and safety.
| Pillar swap allowed | Redirected in-pillar | |
|---|---|---|
| Weekly shape drift | 0.028 | 0.021 |
| Pillars missed per week | 0.14 | 0.00 |
Carrying a missed pillar over as debt was also simulated. It did nothing, because the owed pillar is always already on the schedule.
The remaining sessions are a pool of pillars still owed. The engine repeatedly takes the pillar with the most sessions left. If that pillar was the last one trained, it takes the runner-up and puts the leader back. A skipped session goes back into the pool and is never dropped. The next session is never the pillar just skipped, unless nothing else is left.
| Method | Back-to-back repeats | Min gap | Churn | ms |
|---|---|---|---|---|
| Keep order | 11.73 | 1.00 | 39.7 | 1.0 |
| Bubble repair | 4.55 | 1.02 | 38.0 | 1.1 |
| Max-remaining heap (used) | 0.00 | 2.00 | 0.0 | 1.4 |
| Local search | 0.71 | 1.46 | 38.6 | 76.4 |
| Simulated annealing | 0.05 | 1.95 | 38.7 | 257.1 |
The heap wins on every measure at once. It is also provably optimal: at 57% of sessions in one pillar, where 11 repeats are mathematically unavoidable, it produced exactly 11. Churn is zero because the result depends only on what is still owed, so skipping one day barely moves the rest of the calendar. It works at 2 to 6 sessions a week with no special cases.
A session copy is refused if any of its exercises lacks a profile. Without that guard, a workout where one exercise has no profile returns a confident average of the others: plausible, and wrong.
The AI boundary (designed, not built). A future language model would turn "legs are dead, go easy" into one validated row of structured intent, and do nothing else. It never writes SQL and never touches a session. Everything after that row is the deterministic engine above.
invalid, and the session is left alone.There is no separate backend. The engine is written as database functions, and the website calls a small set of entry points.
app_* entry points.| # | Migration | What it does | Live |
|---|---|---|---|
| 1 | 20261007171400 | Baseline: the schema as found | reference |
| 2 | 20261007180000 | Engine fixes, enrolment plan, security lockdown | yes |
| 3 | 20261007180100 | Drop legacy password hashes | yes |
| 4 | 20261007200000 | Overview page, sign-up rate limit | yes |
| 5 | 20261007210000 | Program cover paths | yes |
| 6 | 20261008090000 | Profile access, account deletion | yes |
| 7 | 20261008120000 | Trial funnel content | yes |
| 8 | 20261102120000 | Billing entitlements | held back |
| 9 | 20261102130000 | Safety filters, body check | yes · 11 Nov |
| 10 | 20261102140000 | Risk rating import function (sheet not imported) | yes · 11 Nov |
| 11 | 20261103100000 | Schedule heap, workout swap, fatigue | yes · 11 Nov |
| 12 | 20261103110000 | Before-workout flow, stop for pain | yes · 11 Nov |
Every change follows the same path: back up live → apply and test on a throwaway copy → apply to live in one transaction, with the owner's explicit OK each time → regenerate types. The last rehearsal gave 102 passing checks. The only failure was the billing test, which is expected while billing isn't live.
All Access at CHF 40 a month and Single Program at CHF 80 one-time, with a 7-day refund guarantee. The database decides access, because the public key lets anyone query it directly. Turning payments on means applying migration 8 and flipping the switch together. Applying the migration alone would lock everyone out of the obstacle-race program. The iOS build keeps payments off, because Apple requires in-app purchase.
An Infomaniak Node.js site on the company's domain, built from branch IOS, which is never merged into main. Deploys go by upload: a script packs the committed app into a folder, which is uploaded, rebuilt and restarted. Secrets live in an env file on the server. Public contact is a contact@ address on the company's domain.
The company's marketing deck draws the path a client takes, from first noticing the brand to sharing an adventure with someone else.
The full ordered list is in docs/SESSION_HANDOFF.md. Coaching judgement (difficulty, muscle values, contraindications, profiles) belongs to the coach. Software can draft it, but drafts stay marked as drafts.
Rows. Modelled on the coach's sheet export in data-csvs/sheets/, dated 3 November 2026, and the risk review sheet exercise_risk_index_review.csv: same columns and structure, changed values. No live database was queried, and no user table was read.
Hashing. Exercise, slot, workout, plan and condition ids, and the coach's written notes and workout descriptions, are shown as kind· plus 8 random hex characters. The mapping was used once and never saved, so even small integer ids cannot be recovered. The same id gets the same value everywhere on the page, so rows can still be joined by eye.
In the clear. Exercise names, movement functions and pillar names, because they are the method being explained. Numeric values are changed from the export but keep its structure and the engine's arithmetic; the originals are drafts, not reviewed coaching values.
Recomputed for this page. Effort units and workout roll-ups use the engine's own formula (f_effort_units) with the seed config: 20 s per set, 0.35 + 0.65 × intensity, 30 s fallback. The live views may weight things slightly differently.
Quoted from earlier runs. The two-option card and the planned-vs-delivered table are modelled on engine output on a database copy in August 2026, run on demo data, with values changed. Simulation tables come from the reference scripts in the repo root (workout_swap_sim.py, schedule_engine_sim.py, rhythm_test.py), as recorded in ENGINE_SPEC.md.
Illustrative. The intent row has random placeholder ids and describes no real person.
Further reading in the repo. PROJECT_OVERVIEW.md, ENGINE_SPEC.md, DATA_DICTIONARY.md, PAYMENTS_RUNBOOK.md, how_to_run.txt, docs/SESSION_HANDOFF.md.
Personal notes
What I wrote about this project for my portfolio, arranged around the questions it answers.
We believe that adventure is something we all need throughout our lives.
We think that the first step towards one day walking into the unknown with confidence, vitality and excitement is to be fit. Fit enough not to have to worry about injury or physical hardship while appreciating the view.
I started coaching in high school. The school paid me by the hour to give fitness lessons in the school gym on lunch breaks. Then I created a profile on a website that hosts private teachers for languages, maths, music and sport, and started coaching individuals at home or at free public outdoor gyms. I was paid by the hour and dealt with everything personally.
When I was away travelling or studying for exams, my absence left a hole in my clients' routine. So I decided to create an app and go online. I started learning Next.js, React and SQL during spring break in my first year of uni.
While registering for a startup competition in July, a hackathon organised by my university for starting a company, I teamed up with the people who are now my co-founders. The winners received funding for no equity. We came second.
Together we are building an app that revolutionises the sports app. It brings in elements directly from my education in data science and business, and from my experience in the military, solo travelling, nursing and coaching. The others bring strategic, financial and operational business understanding, AI and technical development, and brand building and marketing.
The app is in development.
Most of my clients have been satisfied and come back.
One of them works at a trading company, building a good career while holding on to a balance between work and a healthy life. He is now in Thailand, learning Muay Thai. One young lady ran her first obstacle race; another turned a situation around and became fit for life. My youngest, just 12 and playing professional golf at international level, would like to challenge himself to bike up the local mountain.
Fit enough to appreciate the view.