Designing Training Intelligence Before Writing the Code
I am about to start one of the biggest features I have built in Physara.
Training Intelligence.
Normally the temptation would be to open the repo, create a branch, start making tables, and build the backend.
This time I did the opposite.
I stopped.
Before writing the code, I wanted to design the whole system first.
Not just one screen.
Not just a workout generator.
The entire experience.
That means figuring out how someone enters their current routine, how Physara builds or improves a program, what the user sees on a training day, how they log sets, how progression works, how the system decides when to change something, and how all of that connects back to physique and nutrition.
This is basically the wireframing stage, but it is much more detailed than the kind of wireframes I used to think about.
It is really product architecture through design.
Training Intelligence Cannot Just Be a Workout Generator
There are already a million apps that can generate a workout.
That is not what I want Physara to be.
If someone opens Training Intelligence, I want Physara to understand:
- what they already do
- what they are trying to improve
- how many days they can train
- what equipment they have
- what exercises they like
- what exercises they hate
- what they did last session
- whether they are progressing
- whether their current program is actually working
- what their latest physique assessment showed
- what their nutrition phase looks like
Then the system should use that information to help manage the full training process.
That is a much bigger product than:
Pick a goal.
Get six exercises.
Train.
I want Training Intelligence to act more like the operating system for someone's training.
I Started With the Current Product
I did not want the new feature to look like a completely different app.
So I gave the design process real Physara screens.
I used:
- the current Today screen
- the Progress screen
- the finalized Physique Analyzer results
- another Analyzer results state
I also connected the Physara repository and pointed the design process at the existing Training Intelligence documents.
That mattered because there is already real logic behind this feature.
I am not designing something imaginary and then hoping the code can support it later.
The repo already contains training rules, priority prescriptions, exercise selection logic, and earlier Training Intelligence work.
The design needs to grow out of that foundation.
The First Big Decision Was User Control
One thing I do not want is Physara acting like it knows better than the person training.
Especially for someone experienced.
If I have been running a routine for months and I like most of it, I do not want an app throwing the entire thing away because it generated something different.
So Training Intelligence starts with two paths.
Optimize my current training.
Or build my training.
That difference is important.
For an experienced lifter, optimizing what they already do is probably the better experience.
The user should be able to enter their current split, exercises, sets, rep ranges, schedule, equipment, and preferences.
Physara can then look for things worth changing without destroying the parts that are already working.
For a beginner, building a program from scratch makes more sense.
Same system.
Different entry point.
That Also Changed How I Think About "Intelligence"
A smart training system does not need to change something every week.
Sometimes the correct answer is:
Keep doing what you are doing.
That sounds obvious, but a lot of "AI" products seem like they need to constantly generate something new to prove they are doing work.
I do not want that.
If someone's lifts are moving.
They are completing their sessions.
Recovery looks fine.
Their current program still matches the goal.
Then Training Intelligence should be comfortable saying:
No change recommended.
That is still a decision.
And if Physara does recommend a change, I want the user to see exactly what changed and why.
The Design Is Already Getting Into Real Gym Use
One of the first screens that stood out to me was the active workout.
It is not just a list of exercises.
The current prototype is working through things like:
- exercise order
- sets
- rep ranges
- RIR
- rest time
- previous performance
- current set logging
- exercise swaps
- technique and history
- workout completion
That is where design gets very practical.
Someone is actually going to use this between sets.
They might have 90 seconds.
They might be tired.
Their hands might be sweaty.
They are not going to want to open three menus just to record 225 pounds for 10 reps.
So the workout screen has to be fast.
The user should always be able to see the prescription and the previous session.
Logging a set should take almost no thought.
Changing the load or reps should be easy.
RIR should be quick to enter.
The rest timer should help without taking over the screen.
And swapping an exercise should not feel like rebuilding the whole program.
That is a completely different design problem from making a nice dashboard.
I Am Designing the Whole Loop, Not Just the Workout
The actual workout is only one part of Training Intelligence.
The bigger loop is:
Train.
Log what happened.
See how performance is responding.
Keep the plan or adjust it.
Continue.
Reassess later.
That is where Program Response comes back into the picture.
I started building the architecture for Program Response earlier because I needed Physara to understand the difference between what a program prescribed and what the user actually did.
That work now has a much clearer place.
Training Intelligence tells the user what to do.
Workout logging records what actually happened.
Program Response looks at that history.
Then Physara can decide whether there is enough evidence to maintain or adjust the plan.
Eventually the system can look at things like:
- adherence
- completed sets
- reps
- load
- RIR
- repeated stalls
- missed sessions
- nutrition context
- physique reassessment
The important part is that one bad workout should not automatically trigger a program change.
Training performance moves around.
The system needs repeated evidence.
Physique Analyzer Is an Input, Not the Program
This was another thing I wanted to make clear in the design.
Training Intelligence is not just a way to turn Physique Analyzer results into exercises.
If the latest physique scan says calves are the clearest development priority, that should influence the program.
It should not turn the program into calf training.
The rest of the body still needs to be trained.
The same thing applies if there are multiple priorities.
Or no priorities.
Or no physique scan at all.
Training Intelligence has to work as a complete training product without Physique Analyzer.
The physique data should make it better, not make it dependent on photos.
That separation is important because it keeps the product honest.
If Physara has visual evidence, use it.
If it does not, do not pretend it does.
Adaptive Nutrition Has Its Own Role Too
I also do not want every Physara system changing everything.
Adaptive Nutrition should own calories and macros.
Training Intelligence should own training.
They can read from each other.
They should not fight each other.
For example, if someone is in a calorie deficit and performance starts falling, the training system should understand that context.
Maybe the answer is not more volume.
Maybe the goal is to maintain intensity and remove work that is no longer productive.
But Training Intelligence should not randomly decide to increase calories.
That belongs to Adaptive Nutrition.
Giving each system a clear responsibility should make the app easier to trust.
The Wording Is Going to Matter a Lot
This is probably one of the biggest things I want to review before implementation.
Training can get technical very quickly.
RIR.
Volume.
Training block.
Split.
Progressive overload.
Maintenance volume.
Those terms are normal if you have been training for years.
A beginner may have no idea what any of them mean.
I do not want to remove the technical language because experienced users need precision.
I also do not want a beginner opening the app and feeling like they need to study exercise science before starting a workout.
So I am treating language as part of the design.
The default should be plain language first.
The precise term can still be there.
For example:
Instead of only saying:
RIR
Physara can say:
Reps left in the tank
with 2 RIR as the technical label.
Instead of asking:
What split are you running?
Ask:
How do you currently organize your workouts?
Then show examples like Upper / Lower, Push / Pull / Legs, Full Body, or something else.
Same intelligence underneath.
Better entry point for someone new.
Beginner Does Not Mean Dumbed Down
That balance matters to me.
I do not want a beginner version of Physara and an experienced version of Physara that feel like two different products.
The system should be understandable at the surface and detailed underneath.
A beginner can see:
3 sets of 8 to 10 reps.
Stop when you feel like you could still do about 2 good reps.
An experienced user can immediately understand:
3 x 8-10.
2 RIR.
Same prescription.
Different level of explanation.
That is the kind of progressive disclosure I want throughout the feature.
I Am Using Design to Find Product Problems Before Code
This is probably the biggest reason I wanted to do this stage first.
When you start coding too early, you can spend a lot of time solving the wrong problem correctly.
You can build a perfect workout table before deciding how someone is supposed to edit their routine.
You can create a progression engine before deciding how the user will understand a program change.
You can build database tables for exercise substitutions without deciding whether a swap is permanent or only for today.
Those questions are cheaper to answer in a design than after the backend is already built around an assumption.
The current blueprint is forcing me to work through things like:
What happens on a rest day?
What does Today show if the user has not set up training?
What if they only have 30 minutes today?
How does an experienced user enter a large routine without a painful setup process?
How do they lock an exercise?
What if the gym machine they need is taken?
How does Physara show a proposed change?
What happens if the user rejects it?
How does "no change recommended" look like a real conclusion instead of an empty screen?
That is exactly what I wanted from this stage.
The Design Is Closer to a Prototype Than a Sketch
When I used to hear wireframe, I thought of gray boxes.
Header here.
Button here.
Card here.
This is much closer to a working product blueprint.
The design includes whole states and interactions.
A workout can be active.
A set can be logged.
RIR can be selected.
An exercise can be swapped.
The design documents what is visible by default and what stays collapsed.
It is also thinking through offline behavior, controls, reasoning, and failure states.
That means the eventual engineering handoff should be much cleaner.
Instead of saying:
Build Training Intelligence.
I should be able to say:
Here is the approved system.
Here is how the user enters it.
Here is what every major screen is responsible for.
Here are the states.
Here is the terminology.
Here is what happens when there is not enough data.
Now build it.
The Backend Will Still Be the Hard Part
None of this makes the engineering small.
Training Intelligence will probably be one of the largest systems in Physara.
The difficult part is not generating a workout.
The difficult part is everything that happens over time.
Persisting the training profile.
Keeping program versions.
Logging workouts and individual sets.
Remembering substitutions.
Tracking progression.
Understanding whether someone actually stalled.
Knowing when not to change something.
Making proposed adjustments reversible.
Preserving user preferences.
Coordinating with nutrition.
Using physique data without overreacting to one scan.
Making the whole thing reliable if the user closes the app in the middle of a workout.
That is a lot of backend state.
Which is exactly why I do not want to improvise the product while building it.
This Is the Part People Do Not Always See
When someone sees a finished app, they usually see the screens and the features.
They do not see how much time can go into deciding what should happen before the first database migration exists.
That is the part I am working through now.
I have spent a lot of the last few months learning how important architecture is before implementation.
This feels like the product version of the same lesson.
Design the behavior first.
Decide what the system is responsible for.
Decide what it is not responsible for.
Work through the uncomfortable edge cases.
Make the wording understandable.
Then build it.
What Comes Next
Once the Training Intelligence blueprint is finished, I am going to review it again from two perspectives.
A beginner who has never heard of RIR, training volume, or a training block.
And an experienced lifter who wants real programming detail and does not want generic advice.
If both people can use the same system without either one feeling ignored, then the design is doing its job.
After that, I can finally start the implementation.
The rough build order is already becoming clear:
Training Profile.
Program persistence.
Optimize current routine or build a new one.
Workout execution and logging.
Progression.
Program Response.
Adjustment lifecycle.
Physique integration.
Nutrition context.
Reliability hardening.
It is a lot.
But this time I want the blueprint to be clear before the code starts deciding the product for me.