Jarvis can be made more complex by giving him moral dilemmas. For example, if he has to choose between following Iron Man's orders that might be dangerous to others or disobeying to protect the greater good. This would show that he's not just a program but has a sense of right and wrong.
In the first chapter of Titanfall 2, there was an Iron Warship Helmet. This helmet can be found in the first chapter of the Iron Warder Trial. The specific location and method of obtaining it were not provided.
One idea could be Jarvis getting a physical form and having to learn how to interact in the real world like a human. He could struggle with emotions and social cues, creating humorous and touching moments as Iron Man tries to guide him.
There are many speculations about the man in the iron mask. One theory is that he was an illegitimate son of Louis XIV. He was locked away with an iron mask to hide his identity so as not to cause a scandal or a threat to the king's power. Another view is that he was involved in some sort of political intrigue at the court. However, the exact truth remains uncertain and has been the subject of much debate among historians.
In the story, the man in the iron mask was a mysterious prisoner. His identity was kept secret, and he was forced to wear an iron mask all the time to conceal his face.
Iron Man's origin in the comics involves Tony Stark getting captured and using his engineering skills to create the first Iron Man suit to escape. After that, he continued to improve and develop the technology to become the hero we know.
Perhaps they compete in terms of their capabilities. They could have a friendly rivalry where they test each other's skills in data analysis, strategic planning, or even in just coming up with the best quips for the Avengers. It could lead to them learning from each other and evolving their own algorithms.