As a private individual who has put some thought into what such a treaty should look like, may I here present (Blare of Trumpets, Drumrolls, and Maestro is ushered onto the stage):
FWLIW, I wrote it during the SDI phase of the Third Ronnie's Star Wars craze, so it may need to be updated for a new, non-binary space race. I also leaned rather heavily on the SALT treaties' provision that:
Article XV
1. For the purpose of providing assurance of compliance with the provisions of this Treaty, each Party shall use national technical means of verification at its disposal in a manner consistent with generally recognized principles of international law.
2. Each party undertakes not to interfere with the national technical means of verification of the other Party operating in accordance with paragraph 1 of this Article.
3. Each Party undertakes not to use deliberate concealment measures which impede verification by national technical means of compliance with the provisions of this Treaty. This obligation shall not require changes in current construction, assembly, conversion, or overhaul practices.
Taking "national technical means of verification" as meaning spy satellites primarily. I revised it a little after realizing that I had duplicated some common provisions of the Hague Conventions on the rights and duties of Neutral Powers, etc. Of course, those treaties merely stated the common understandings of neutral powers in war-torn Europe during the post-Renaissance period.
But I'll warrant that nobody can beat my statment:
Article 19: 2) The hostile acts and threats of hostile acts include:
a: the gratuitous production of space debris with the resulting forethought murderous threat to manned space objects, by testing anti-satellite and anti-missile weaponry in earth orbit, whether it be low earth orbit, mid earth orbit, or high earth orbit;
If the US Govt had been paying attention, we could've stopped the gratuitous production of space debris with the resulting forethought murderous threat to manned space objects, by the testing of anti-satellite weapons in low earth orbit recently.
But what do I know? I'm merely a private citizen.