Reusable regulatory guardrail components for all formation and advisory features. Import and use โ don't build your own.
All components are available via the global window.USLaunchStack object โ loaded automatically from index.html.
ACK_VERSION constant in the guardrail script controls re-acknowledgment. Bump it when disclaimer text changes to force all users to re-acknowledge.
HOW TO USE
// Option A: Require acknowledgment before feature action
// If already acknowledged โ runs callback immediately
// If not acknowledged โ shows modal, then runs callback on proceed
USLaunchStack.requireAcknowledgment('formation', function() {
// User has acknowledged โ unlock feature here
openEntityFormationWizard();
});
// Option B: Check acknowledgment without showing modal
if (USLaunchStack.checkAcknowledged('formation')) {
showFeature();
} else {
showLockedState();
}
// Option C: Auto-gate any button/link with class + data attr
// No JS needed โ the guardrail system hooks these automatically<!-- Formation feature gate (5 standard checkboxes) -->
<button class="btn btn-primary requires-ack"
data-ack-type="formation"
data-onclick="openEntityWizard()">
Start Entity Formation
</button>
<!-- FinCEN BOI feature gate (5 standard + 2 FinCEN checkboxes) -->
<button class="btn btn-primary requires-ack"
data-ack-type="fincen"
data-onclick="openBoiWizard()">
Start BOI Filing
</button>| Method | Parameters | Returns | Description |
|---|---|---|---|
| requireAcknowledgment(type, cb) | type: 'formation'|'fincen', cb: function | void | Show modal if not acknowledged. Run cb after proceed or immediately if already acked. |
| checkAcknowledged(type) | type: 'formation'|'fincen' | boolean | Check localStorage for stored acknowledgment at current version. |
usl_ack_{featureType}_v{ACK_VERSION}. Version is set to 1.1 in the script. Bump ACK_VERSION in index.html to invalidate all stored acknowledgments.
// Method A: JavaScript injection (dynamic pages)
// Add a container div at the TOP of your feature page:
<div id="featureBanner"></div>
// Then inject the banner on page load:
USLaunchStack.showBanner('formation', 'featureBanner');
// or for FinCEN features:
USLaunchStack.showBanner('fincen', 'featureBanner');
// Method B: Static HTML (server-rendered pages)
// Copy the HTML from the Formation or FinCEN preview tabs.LIVE PREVIEW โ FORMATION VARIANT
LIVE PREVIEW โ FINCEN BOI VARIANT
// Inject after every AI-generated output block:
<div id="outputWarning"></div>
USLaunchStack.showOutputWarning('formation', 'outputWarning');
// or for FinCEN:
USLaunchStack.showOutputWarning('fincen', 'outputWarning');
// Pattern: inject immediately after streaming completes
streamAIOutput(prompt, outputDiv).then(function() {
USLaunchStack.showOutputWarning('formation', 'warningDiv');
});LIVE PREVIEW โ FORMATION VARIANT
This USLaunchStack output is EDUCATIONAL TEMPLATE REFERENCE MATERIAL ONLY. It is NOT:
BEFORE forming your business entity:
All formation documents must be customized by your attorney for your specific situation before filing with the state. State requirements vary and change frequently; verify current requirements. Does not constitute legal or tax services.
LIVE PREVIEW โ FINCEN BOI VARIANT
You are PERSONALLY LIABLE for BOI filing accuracy under 31 USC ยง5336. Civil penalties up to $500 per day for non-filing or inaccurate information.
Before filing:
USLaunchStack's BOI guidance is educational reference only and does not constitute compliance counseling. This is not a substitute for licensed attorney review.
// Inject inline tooltip caveat after sensitive text
// Returns HTML string โ inject with innerHTML += or textContent
// 5 caveat types:
entityLabel.innerHTML += USLaunchStack.inlineCaveat('entity');
// "Entity selection depends on your specific tax situation..."
taxLabel.innerHTML += USLaunchStack.inlineCaveat('tax');
// "This is not tax advice. Consult a CPA or EA..."
stateLabel.innerHTML += USLaunchStack.inlineCaveat('state');
// "State requirements change frequently..."
jurisdictionLabel.innerHTML += USLaunchStack.inlineCaveat('jurisdiction');
// "Jurisdiction choice depends on specific business needs..."
foreignLabel.innerHTML += USLaunchStack.inlineCaveat('foreign');
// "Foreign investor tax compliance requires a CPA/EA/tax attorney"
// Inline alert block (non-tooltip, always visible)
container.innerHTML += USLaunchStack.inlineAlert(
'This is not tax advice; consult a CPA or EA about entity structure.'
);LIVE PREVIEW โ HOVER THE ! ICONS
Entity Recommendation: Delaware C-Corporation Entity selection depends on your specific tax situation, liability exposure, and business plans. Consult a CPA/EA (for tax) and an attorney in your state (for legal) before deciding.
Tax Benefit: Pass-through taxation available This is not tax advice. Consult a CPA or EA about tax implications of entity structure.
Jurisdiction: Delaware recommended Jurisdiction choice depends on specific business needs and tax situation. Consult your attorney and CPA before selecting.
<!-- Link to TOS from all feature pages -->
<a href="legal.html#tos-addendum">Terms of Service</a>
<a href="legal.html#privacy">Privacy Policy</a>
<a href="legal.html#no-legal">Legal Disclaimers</a>
<!-- Anchor links for specific sections:
#critical-notice โ top regulatory notice
#no-legal โ UPL disclaimer
#no-tax โ tax advice prohibition
#fincen โ FinCEN BOI liability
#formation-disclaimer โ formation feature disclaimer
#output-disclaimer โ AI output disclaimer
#safe-harbor โ approved safe harbor phrases
#prohibited โ prohibited statements list
#tos-addendum โ required TOS addendum text
#privacy โ privacy policy
-->Run through this before marking any formation/advisory feature as ready for review: