Do countries (with rule of law) exist where a court ruling can be achieved before an action is taken?
<p>Let's say I want to</p>
<ol>
<li>Create a <a href="https://www.uber.com/" rel="nofollow noreferrer">taxi-like</a> service that avoids requiring medallion</li>
<li>Create a <a href="https://www.airbnb.com/" rel="nofollow noreferrer">hotel-like</a> service that can avoid zoning and insurance laws</li>
<li>Create a <a href="https://www.investopedia.com/terms/t/taxhaven.asp" rel="nofollow noreferrer">tax scheme</a> involving moving money in interesting ways so that I can pay less taxes</li>
<li>Refuse to <a href="https://masterpiececakes.com/" rel="nofollow noreferrer">decorate a cake</a> with offensive-to-me decoration</li>
</ol>
<p>From what I know of US law, you can get a lawyer to advise you (and if the offence is criminal, that may help lower the penalty). However, if after preforming the action, the state decides that what you did is against the law, you can still get in trouble.</p>
<p>Are there jurisdictions where I can go to a court with my proposal for what I plan to do, argue for it, and receive a binding judgement? By binding, I mean of similar strength of common Double jeopardy rules. That way, if later I get sued I can show a previous court ruling stating that what I am doing is fine.</p>

<p><a href="/questions/tagged/united-states" class="post-tag" title="show questions tagged &#39;united-states&#39;" rel="tag">united-states</a></p>
<p>Processes vary greatly from country to country on this matter.</p>
<p>In the U.S., most courts (including the federal courts) cannot issue advisory opinions that are binding, subject to some narrow exceptions in fact patterns different from those you are envisioning.</p>
<p>But, if there is a &quot;bona fide dispute&quot; involving an actual case or controversy between two or more well defined parties, it is sometimes possible to get a declaratory judgment from a court regarding what a law means, or the meaning of contract.</p>
<p>For example, if you are in a position where you have no choice but to administer a law one way or the other in a particular upcoming case, you can usually ask a court for guidance.</p>
<p>Also, some administrative agencies can enter into binding agreements with citizens regarding how it will treat a particular activity (the comments give the example that is typical of the IRS issuing a private letter ruling to a taxpayer) in advance.</p>
<p>Sometimes an agency charged with enforcing a law (e.g. a prosecutor's office) can likewise make a binding interpretation of the law that people to whom the binding interpretation of it are legally entitled to rely upon.</p>
<p>Furthermore, even when these options are not available, something called an opinion letter from an attorney in the U.S., while not binding courts in later litigation, can mitigate the harm suffered from breaking the law because you will usually be found to have acted in good faith in interpreting the law even if you are wrong, and may shift some of the exposure to monetary harm from a misinterpretation of the law to the author of the opinion letter if you are a person whose reliance on the opinion letter is expressly intended by the author of the opinion letter.</p>

<h2>Yes</h2>
<p>The status of <a href="https://en.wikipedia.org/wiki/Advisory_opinion" rel="nofollow noreferrer">advisory opinions</a> varies across the world.</p>
<p>US Federal courts are prohibited from giving them, but some state courts can and do, albeit rarely. Courts in Australia can’t, but those in Canada can.</p>
<p>Many international tribunals can be asked for them including the International Criminal Court and the European Human Rights Court.</p>

<p>If you have a business idea and feel that a competitor might be unhappy about it, the competitor would be tempted to cause maximum damage to you by letting you invest lots of money in your idea, and then sue you just when your idea starts making money. What you would want is either be sure that you won't get sued, or not invest any money.</p>
<p>In this situation you can ask a court for a declaratory judgement. The competitor can avoid any cost by declaring that they won't sue you, otherwise the court will have to decide whether they can sue you or not.</p>

civil-procedure jurisdiction rules-of-court