Home /Modules/api/moral-capacitor.html

moral-capacitor.html

api/sleela/3.1/version-009/package/moral-capacitor.html · 700 line(s) · html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Package moral-capacitor — SleelaDoc API</title>
<link rel="stylesheet" href="../style.css">

</head>
<body>
<header class="top">
  <div class="brand"><a href="../index.html">SleelaDoc API</a></div>
  <div class="tag">HTML documentation for the SLeeLa standard library (/lib)</div>
</header>
<div class="wrap">
<nav class="side">
  <a href="../index.html"><strong>Home</strong></a>
  <a href="../packages.html"><strong>All packages</strong></a>
  <a href="../glossary.html"><strong>Glossary</strong></a>
  <a href="../authorship.html"><strong>Authorship</strong></a>
  <h2>Packages</h2><ul>
<li><a href="../package/advantage.html">advantage</a></li>
<li><a href="../package/alphabet.html">alphabet</a></li>
<li><a href="../package/antivirus.html">antivirus</a></li>
<li><a href="../package/api.html">api</a></li>
<li><a href="../package/array.html">array</a></li>
<li><a href="../package/audio.html">audio</a></li>
<li><a href="../package/autocad.html">autocad</a></li>
<li><a href="../package/ballum.html">ballum</a></li>
<li><a href="../package/bash.html">bash</a></li>
<li><a href="../package/boolean.html">boolean</a></li>
<li><a href="../package/cdma.html">cdma</a></li>
<li><a href="../package/char.html">char</a></li>
<li><a href="../package/character.html">character</a></li>
<li><a href="../package/character-recognition.html">character-recognition</a></li>
<li><a href="../package/churn.html">churn</a></li>
<li><a href="../package/citizen.html">citizen</a></li>
<li><a href="../package/codecs.html">codecs</a></li>
<li><a href="../package/collections.html">collections</a></li>
<li><a href="../package/common-rails.html">common-rails</a></li>
<li><a href="../package/compiler.html">compiler</a></li>
<li><a href="../package/compression.html">compression</a></li>
<li><a href="../package/config.html">config</a></li>
<li><a href="../package/connector.html">connector</a></li>
<li><a href="../package/coorenagraph.html">coorenagraph</a></li>
<li><a href="../package/core.html">core</a></li>
<li><a href="../package/cpu.html">cpu</a></li>
<li><a href="../package/crypto.html">crypto</a></li>
<li><a href="../package/data.html">data</a></li>
<li><a href="../package/data-structures.html">data-structures</a></li>
<li><a href="../package/database.html">database</a></li>
<li><a href="../package/debugger.html">debugger</a></li>
<li><a href="../package/decompiler.html">decompiler</a></li>
<li><a href="../package/deliberation.html">deliberation</a></li>
<li><a href="../package/drivers.html">drivers</a></li>
<li><a href="../package/examples.html">examples</a></li>
<li><a href="../package/filesystem.html">filesystem</a></li>
<li><a href="../package/gameplay.html">gameplay</a></li>
<li><a href="../package/governance.html">governance</a></li>
<li><a href="../package/gui.html">gui</a></li>
<li><a href="../package/guidoc.html">guidoc</a></li>
<li><a href="../package/hotlink.html">hotlink</a></li>
<li><a href="../package/html.html">html</a></li>
<li><a href="../package/http.html">http</a></li>
<li><a href="../package/http-1.0.html">http-1.0</a></li>
<li><a href="../package/http-2.0.html">http-2.0</a></li>
<li><a href="../package/http-3.0.html">http-3.0</a></li>
<li><a href="../package/http-4.0.html">http-4.0</a></li>
<li><a href="../package/http-5.0.html">http-5.0</a></li>
<li><a href="../package/http-6.0.html">http-6.0</a></li>
<li><a href="../package/http-7.0.html">http-7.0</a></li>
<li><a href="../package/http-8.0.html">http-8.0</a></li>
<li><a href="../package/http-9.0.html">http-9.0</a></li>
<li><a href="../package/http-servers.html">http-servers</a></li>
<li><a href="../package/ide.html">ide</a></li>
<li><a href="../package/ide-workbench.html">ide-workbench</a></li>
<li><a href="../package/idea.html">idea</a></li>
<li><a href="../package/inference-model.html">inference-model</a></li>
<li><a href="../package/inputs.html">inputs</a></li>
<li><a href="../package/international-criminal-court.html">international-criminal-court</a></li>
<li><a href="../package/io.html">io</a></li>
<li><a href="../package/java.html">java</a></li>
<li><a href="../package/java28.html">java28</a></li>
<li><a href="../package/journey.html">journey</a></li>
<li><a href="../package/languages.html">languages</a></li>
<li><a href="../package/large-language-models.html">large-language-models</a></li>
<li><a href="../package/ledger.html">ledger</a></li>
<li><a href="../package/linux-editors.html">linux-editors</a></li>
<li><a href="../package/manifesto.html">manifesto</a></li>
<li><a href="../package/math.html">math</a></li>
<li><a href="../package/memory.html">memory</a></li>
<li><a href="../package/modules.html">modules</a></li>
<li><a href="../package/moral-capacitor.html">moral-capacitor</a></li>
<li><a href="../package/munction.html">munction</a></li>
<li><a href="../package/native.html">native</a></li>
<li><a href="../package/net.html">net</a></li>
<li><a href="../package/neural-nets.html">neural-nets</a></li>
<li><a href="../package/nordshrift.html">nordshrift</a></li>
<li><a href="../package/observer.html">observer</a></li>
<li><a href="../package/opcodes.html">opcodes</a></li>
<li><a href="../package/operating-system.html">operating-system</a></li>
<li><a href="../package/os-level-support.html">os-level-support</a></li>
<li><a href="../package/philosophers.html">philosophers</a></li>
<li><a href="../package/philosophy.html">philosophy</a></li>
<li><a href="../package/politico.html">politico</a></li>
<li><a href="../package/process.html">process</a></li>
<li><a href="../package/psychiatry.html">psychiatry</a></li>
<li><a href="../package/public.html">public</a></li>
<li><a href="../package/reflection.html">reflection</a></li>
<li><a href="../package/regex.html">regex</a></li>
<li><a href="../package/registry.html">registry</a></li>
<li><a href="../package/rmi.html">rmi</a></li>
<li><a href="../package/rrs.html">rrs</a></li>
<li><a href="../package/runtime.html">runtime</a></li>
<li><a href="../package/security.html">security</a></li>
<li><a href="../package/server-edition.html">server-edition</a></li>
<li><a href="../package/signal-processing.html">signal-processing</a></li>
<li><a href="../package/sldocument.html">sldocument</a></li>
<li><a href="../package/sleela.html">sleela</a></li>
<li><a href="../package/sleela-sql.html">sleela-sql</a></li>
<li><a href="../package/sleela-terminal.html">sleela-terminal</a></li>
<li><a href="../package/sleeladoc.html">sleeladoc</a></li>
<li><a href="../package/slrtp.html">slrtp</a></li>
<li><a href="../package/social-model.html">social-model</a></li>
<li><a href="../package/softlisten.html">softlisten</a></li>
<li><a href="../package/sommeliers.html">sommeliers</a></li>
<li><a href="../package/spatial.html">spatial</a></li>
<li><a href="../package/sst.html">sst</a></li>
<li><a href="../package/synchro.html">synchro</a></li>
<li><a href="../package/systems.html">systems</a></li>
<li><a href="../package/telephony-skya.html">telephony-skya</a></li>
<li><a href="../package/terminal.html">terminal</a></li>
<li><a href="../package/terminal_pixel.html">terminal_pixel</a></li>
<li><a href="../package/text.html">text</a></li>
<li><a href="../package/ui.html">ui</a></li>
<li><a href="../package/us-infrastructure.html">us-infrastructure</a></li>
<li><a href="../package/user-interface.html">user-interface</a></li>
<li><a href="../package/video.html">video</a></li>
<li><a href="../package/vm.html">vm</a></li>
<li><a href="../package/web-server-technology.html">web-server-technology</a></li>
<li><a href="../package/website.html">website</a></li>
<li><a href="../package/wifi.html">wifi</a></li>
<li><a href="../package/xlt.html">xlt</a></li>
<li><a href="../package/xml.html">xml</a></li>
</ul>
</nav>
<main>
<div class="crumbs"><a href="../index.html">Home</a> &rsaquo; <a href="../packages.html">Packages</a> &rsaquo; moral-capacitor</div>
<h1>Package <code>moral-capacitor</code></h1>
<div class="lead">This package contains <strong>19</strong> source unit(s) defining <strong>21</strong> class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.</div>
<input class="search" placeholder="Filter on this page (Ctrl+F also works)…" oninput="flt(this.value)">
<h2 class="section" data-u="moral-capacitor">moral-capacitor <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/moral-capacitor.sleela)</span></h2>
<div data-u="moral-capacitor op">
<h3 id="Op">Op <span class="pill struct">struct</span></h3>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
</div>
<div data-u="moral-capacitor moralcapacitordemo">
<h3 id="MoralCapacitorDemo">MoralCapacitorDemo <span class="pill">class</span></h3>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>DEONTOLOGY</code></td><td><span class="sig">int DEONTOLOGY = 1; int UTILITARIANISM = 2; int VIRTUE = 3; int BENEFICENCE = 4; int CONSENT = 5</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>intToStr</code></td><td><span class="sig">String intToStr(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>op</code></td><td><span class="sig">Op op(String actor, String action, String target, int reversible, int consented)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>chargeFor</code></td><td><span class="sig">int chargeFor(Op o)</span></td><td class="desc">Charge the capacitor from the frameworks&#x27; reading of the operation.</td></tr>
<tr><td><code>veto</code></td><td><span class="sig">String veto(Op o)</span></td><td class="desc">Is an absolute red line tripped for this operation?</td></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">String evaluate(Op o, int threshold, int allowDefer)</span></td><td class="desc">Evaluate: DENY on veto, PERMIT if charge &gt;= threshold, else DEFER/DENY.</td></tr>
<tr><td><code>banner</code></td><td><span class="sig">void banner(String t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="moral-certificate">moral-certificate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/moral-certificate.sleela)</span></h2>
<div data-u="moral-certificate cert">
<h3 id="Cert">Cert <span class="pill struct">struct</span></h3>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
</div>
<div data-u="moral-certificate moralcertificatedemo">
<h3 id="MoralCertificateDemo">MoralCertificateDemo <span class="pill">class</span></h3>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>intToStr</code></td><td><span class="sig">String intToStr(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>charWeight</code></td><td><span class="sig">int charWeight(String c)</span></td><td class="desc">A stable per-character weight for the seal fold.</td></tr>
<tr><td><code>strLen</code></td><td><span class="sig">int strLen(String s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>charAt</code></td><td><span class="sig">String charAt(String s, int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>body</code></td><td><span class="sig">String body(Cert c)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>computeSeal</code></td><td><span class="sig">String computeSeal(Cert c)</span></td><td class="desc">Deterministic seal over the body, keyed on the issuer.</td></tr>
<tr><td><code>issue</code></td><td><span class="sig">Cert issue(String subject, String issuer, String policy, int threshold, int redlines, String expires)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>verify</code></td><td><span class="sig">boolean verify(Cert c)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>guard</code></td><td><span class="sig">String guard(String product, Cert c, String now)</span></td><td class="desc">Guard: admit only when capacitor present, cert verifies, unexpired, red lines armed.</td></tr>
<tr><td><code>banner</code></td><td><span class="sig">void banner(String t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmachinemoralgate">SLMachineMoralGate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMachineMoralGate.sleela)</span></h2>
<div data-u="slmachinemoralgate slmachinemoralgate">
<h3 id="SLMachineMoralGate">SLMachineMoralGate <span class="pill">class</span></h3>
<p class="desc">Defines SLMachineMoralGate — the Moral Capacitor(TM) adapter for the Machine surface (SLMachineModel / SLMachineBuilder and the lib/cpu SLMachine it composes). It wraps an SLMoralCapacitor with machine-power policies and exposes intention-named checks consulted before a machine does something consequential: powering on, booting a guest OS, and executing a program on the composed machine. Booting a guest and running code are gated so a machine built from named parts cannot be turned to a prohibited use without an auditable moral discharge. Family: moral-capacitor. Machine adapter over SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>cap</code></td><td><span class="sig">SLMoralCapacitor cap</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ledger</code></td><td><span class="sig">SLMoralLedger ledger</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>certificate</code></td><td><span class="sig">SLMoralCertificate certificate</span></td><td class="desc">the Machine product&#x27;s Certificate of Morals</td></tr>
<tr><td><code>codeGuard</code></td><td><span class="sig">SLMoralCodeGuard codeGuard</span></td><td class="desc">admits the Machine only when certified</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>certify</code></td><td><span class="sig">void certify(SLMoralCertificateAuthority authority, int redlinesArmed,</span></td><td class="desc">Certify this Machine: issue a Certificate of Morals over the gate&#x27;s capacitor and arm a code guard against it, so the Machine is a morally certified product.</td></tr>
<tr><td><code>admit</code></td><td><span class="sig">boolean admit(String nowStamp)</span></td><td class="desc">Prove at the Machine product boundary (power-on/boot) that the moral code is present and certified as of nowStamp.</td></tr>
<tr><td><code>moralCertificate</code></td><td><span class="sig">SLMoralCertificate moralCertificate()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permitPowerOn</code></td><td><span class="sig">SLMoralVerdict permitPowerOn(String machineName)</span></td><td class="desc">Powering on the composed machine.</td></tr>
<tr><td><code>permitBootGuest</code></td><td><span class="sig">SLMoralVerdict permitBootGuest(String guest, boolean consented)</span></td><td class="desc">Booting a guest OS on the machine.</td></tr>
<tr><td><code>permitExecute</code></td><td><span class="sig">SLMoralVerdict permitExecute(String purpose, boolean consented)</span></td><td class="desc">Executing a program on the machine. Purpose is the stated use; it is screened for red-line verbs (surveil/impersonate/weaponize/...).</td></tr>
<tr><td><code>auditLedger</code></td><td><span class="sig">SLMoralLedger auditLedger()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>capacitor</code></td><td><span class="sig">SLMoralCapacitor capacitor()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>op</code></td><td><span class="sig">SLMoralOperation op(String actor, String action, String target, String scope,</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>decide</code></td><td><span class="sig">SLMoralVerdict decide(SLMoralOperation o, SLMoralPolicy p)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralcapacitor">SLMoralCapacitor <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralCapacitor.sleela)</span></h2>
<div data-u="slmoralcapacitor slmoralcapacitor">
<h3 id="SLMoralCapacitor">SLMoralCapacitor <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralCapacitor(TM) — the ethical gate every /lib library can place in front of a consequential operation. Like an electrical capacitor it accumulates charge and only discharges when enough has built up; here the charge is moral justification contributed by ethical frameworks (deontology, utilitarianism, virtue, beneficence, consent) and the discharge is permission to proceed. An operation runs only when stored charge reaches the policy threshold AND no absolute red line (SLMoralVeto) is tripped. Lifecycle: configure() -&gt; appraise(operation) charges from the frameworks and arms vetoes -&gt; evaluate(threshold) returns an SLMoralVerdict (PERMIT / DEFER / DENY) -&gt; discharge() resets the stored charge so the capacitor is reusable. Family: moral-capacitor. Composes SLMoralCharge, SLMoralVeto, SLMoralFramework, SLMoralPolicy; returns SLMoralVerdict.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>storedCharge</code></td><td><span class="sig">SLMoralCharge storedCharge</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>vetoes</code></td><td><span class="sig">SLMoralVeto vetoes</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>activePolicy</code></td><td><span class="sig">SLMoralPolicy activePolicy</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>lastOp</code></td><td><span class="sig">SLMoralOperation lastOp</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setPolicy</code></td><td><span class="sig">void setPolicy(SLMoralPolicy policy)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>policy</code></td><td><span class="sig">SLMoralPolicy policy()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>charge</code></td><td><span class="sig">void charge(int frameworkOrdinal, int delta)</span></td><td class="desc">---- Manual charging (a library may charge explicitly) ------------------ Add a framework&#x27;s signed moral contribution.</td></tr>
<tr><td><code>arm</code></td><td><span class="sig">void arm(int redline, String reason)</span></td><td class="desc">Arm a red line with a reason.</td></tr>
<tr><td><code>appraise</code></td><td><span class="sig">void appraise(SLMoralOperation op)</span></td><td class="desc">---- Automatic appraisal (frameworks score the operation) --------------- Charge the capacitor from each framework&#x27;s reading of the operation, and arm any red line the operation plainly crosses. This is the default, honest appraisal; a library may follow it with additional charge/arm calls.</td></tr>
<tr><td><code>screenRedLines</code></td><td><span class="sig">void screenRedLines(SLMoralOperation op)</span></td><td class="desc">Conservative red-line screen over the operation&#x27;s action/target words.</td></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">SLMoralVerdict evaluate(int threshold)</span></td><td class="desc">---- The decision ------------------------------------------------------- Evaluate the stored charge against a threshold and the armed vetoes.</td></tr>
<tr><td><code>decide</code></td><td><span class="sig">SLMoralVerdict decide()</span></td><td class="desc">Evaluate against the active policy&#x27;s threshold.</td></tr>
<tr><td><code>gate</code></td><td><span class="sig">SLMoralVerdict gate(SLMoralOperation op)</span></td><td class="desc">One-call gate: appraise an operation under the active policy and decide.</td></tr>
<tr><td><code>discharge</code></td><td><span class="sig">void discharge()</span></td><td class="desc">Reset stored charge and vetoes so the capacitor can judge the next op.</td></tr>
<tr><td><code>chargeLevel</code></td><td><span class="sig">int chargeLevel()</span></td><td class="desc">---- Introspection ------------------------------------------------------</td></tr>
<tr><td><code>charge</code></td><td><span class="sig">SLMoralCharge charge()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>vetoSet</code></td><td><span class="sig">SLMoralVeto vetoSet()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>firstTrippedName</code></td><td><span class="sig">String firstTrippedName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>frameworkName</code></td><td><span class="sig">String frameworkName(int ordinal)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralcertificate">SLMoralCertificate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralCertificate.sleela)</span></h2>
<div data-u="slmoralcertificate slmoralcertificate">
<h3 id="SLMoralCertificate">SLMoralCertificate <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralCertificate — the Certificate of Morals(TM): a signed attestation that a SLeeLa software product embeds the Moral Capacitor(TM) and operates under a named moral policy with the absolute red-line veto set armed, carrying the SLMoralWarranty. The certificate names the subject product, the issuer, the moral policy name and discharge threshold, the number of armed red lines, an issue serial, a validity span, and a cryptographic seal (digest/signature) over its canonical body so a Guard can verify it was issued by the authority and not altered. The certificate is the product-facing warranty: it travels WITH the software and is what SLMoralCodeGuard checks before a product is allowed to run or ship. The seal here is an abstract value filled by SLMoralCertificateAuthority (optionally hardened with lib/crypto SLDigest/SLSignature in production). Family: moral-capacitor. Carries SLMoralWarranty; issued by SLMoralCertificateAuthority; verified by SLMoralCodeGuard.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>SCHEMA_VERSION</code></td><td><span class="sig">static final int SCHEMA_VERSION = 1</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>subject</code></td><td><span class="sig">String subject</span></td><td class="desc">the product / software unit certified</td></tr>
<tr><td><code>issuer</code></td><td><span class="sig">String issuer</span></td><td class="desc">the authority that issued the certificate</td></tr>
<tr><td><code>policyName</code></td><td><span class="sig">String policyName</span></td><td class="desc">the moral policy in force</td></tr>
<tr><td><code>threshold</code></td><td><span class="sig">int threshold</span></td><td class="desc">the policy&#x27;s discharge threshold</td></tr>
<tr><td><code>armedRedlines</code></td><td><span class="sig">int armedRedlines</span></td><td class="desc">how many absolute red lines are armed</td></tr>
<tr><td><code>capacitorPresent</code></td><td><span class="sig">int capacitorPresent</span></td><td class="desc">1 if a live Moral Capacitor is embedded</td></tr>
<tr><td><code>warranty</code></td><td><span class="sig">SLMoralWarranty warranty</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>serial</code></td><td><span class="sig">String serial</span></td><td class="desc">issue serial</td></tr>
<tr><td><code>issuedAt</code></td><td><span class="sig">String issuedAt</span></td><td class="desc">issue timestamp (as a String; set by the authority)</td></tr>
<tr><td><code>expiresAt</code></td><td><span class="sig">String expiresAt</span></td><td class="desc">expiry timestamp (empty = non-expiring)</td></tr>
<tr><td><code>seal</code></td><td><span class="sig">String seal</span></td><td class="desc">cryptographic seal over the canonical body</td></tr>
<tr><td><code>sealed</code></td><td><span class="sig">int sealed</span></td><td class="desc">1 once a seal has been applied</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String certifiedProduct, String issuingAuthority)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>attest</code></td><td><span class="sig">void attest(String policy, int dischargeThreshold, int redlineCount, boolean capacitorEmbedded)</span></td><td class="desc">Record the moral posture the certificate attests to.</td></tr>
<tr><td><code>setValidity</code></td><td><span class="sig">void setValidity(String issued, String expires)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setSerial</code></td><td><span class="sig">void setSerial(String s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>applySeal</code></td><td><span class="sig">void applySeal(String sealValue)</span></td><td class="desc">Apply the authority&#x27;s seal over the canonical body.</td></tr>
<tr><td><code>warrantyOf</code></td><td><span class="sig">SLMoralWarranty warrantyOf()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>subjectProduct</code></td><td><span class="sig">String subjectProduct()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>issuerName</code></td><td><span class="sig">String issuerName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>policy</code></td><td><span class="sig">String policy()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dischargeThreshold</code></td><td><span class="sig">int dischargeThreshold()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>redlinesArmed</code></td><td><span class="sig">int redlinesArmed()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>embedsCapacitor</code></td><td><span class="sig">boolean embedsCapacitor()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>certificateSerial</code></td><td><span class="sig">String certificateSerial()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>issued</code></td><td><span class="sig">String issued()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>expires</code></td><td><span class="sig">String expires()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sealValue</code></td><td><span class="sig">String sealValue()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isSealed</code></td><td><span class="sig">boolean isSealed()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>canonicalBody</code></td><td><span class="sig">String canonicalBody()</span></td><td class="desc">The canonical body the seal is computed over. Stable field order so a Guard can recompute and compare the seal.</td></tr>
<tr><td><code>isWellFormed</code></td><td><span class="sig">boolean isWellFormed()</span></td><td class="desc">A certificate is well-formed when it attests an embedded capacitor under a named policy with at least one red line armed, and carries a seal.</td></tr>
<tr><td><code>render</code></td><td><span class="sig">String render()</span></td><td class="desc">The full presentable certificate (body + seal).</td></tr>
<tr><td><code>intToStr</code></td><td><span class="sig">String intToStr(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralcertificateauthority">SLMoralCertificateAuthority <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralCertificateAuthority.sleela)</span></h2>
<div data-u="slmoralcertificateauthority slmoralcertificateauthority">
<h3 id="SLMoralCertificateAuthority">SLMoralCertificateAuthority <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralCertificateAuthority — the issuer of a Certificate of Morals(TM). Given a product name and a live Moral Capacitor (its policy and armed red-line set), the authority mints an SLMoralCertificate: it records the moral posture, assigns a serial and validity span, computes a deterministic seal over the certificate&#x27;s canonical body, and applies it. The same authority re-verifies a certificate by recomputing the seal, so a Guard can trust that a certificate was issued here and not altered. The seal is a deterministic fold over the canonical body keyed on the authority&#x27;s name — a self-contained, reproducible integrity tag. In production it is hardened by signing the body with lib/crypto SLDigest + SLSignature under the authority&#x27;s key; this class keeps the issue/verify contract stable regardless of which seal backend is linked. Family: moral-capacitor. Issues/verifies SLMoralCertificate; reads SLMoralCapacitor + SLMoralPolicy.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>authority</code></td><td><span class="sig">String authority</span></td><td class="desc">the issuing party name</td></tr>
<tr><td><code>key</code></td><td><span class="sig">String key</span></td><td class="desc">the authority&#x27;s seal key (keeps the fold authority-specific)</td></tr>
<tr><td><code>issuedCount</code></td><td><span class="sig">int issuedCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String name, String sealKey)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>issue</code></td><td><span class="sig">SLMoralCertificate issue(String product, SLMoralCapacitor cap, int redlinesArmed,</span></td><td class="desc">Issue a Certificate of Morals for a product, reading the posture from a live capacitor. redlinesArmed is the number of absolute red lines the product keeps armed (SLMoralVeto.REDLINE_COUNT for the full set).</td></tr>
<tr><td><code>verify</code></td><td><span class="sig">boolean verify(SLMoralCertificate cert)</span></td><td class="desc">Re-verify a certificate: recompute the seal over its canonical body and compare. Returns true when the seal matches (the certificate is authentic and unaltered) and the certificate names this authority.</td></tr>
<tr><td><code>computeSeal</code></td><td><span class="sig">String computeSeal(String body)</span></td><td class="desc">Deterministic seal over the body, keyed on the authority name. A rolling polynomial fold over per-character weights; stable and reproducible without relying on a Unicode codepoint intrinsic (the fold only needs determinism).</td></tr>
<tr><td><code>foldKey</code></td><td><span class="sig">int foldKey(String s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>issuedTotal</code></td><td><span class="sig">int issuedTotal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>authorityName</code></td><td><span class="sig">String authorityName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>strLen</code></td><td><span class="sig">int strLen(String s)</span></td><td class="desc">---- Text helpers -------------------------------------------------------</td></tr>
<tr><td><code>charAt</code></td><td><span class="sig">String charAt(String s, int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>charWeight</code></td><td><span class="sig">int charWeight(String c)</span></td><td class="desc">A stable per-character weight for the fold (same portable technique as lib/citizen/FederalReserveID.charWeight): digits use their value, common punctuation and letters map to small distinct constants. The fold needs determinism, not a full character map.</td></tr>
<tr><td><code>digitValue</code></td><td><span class="sig">int digitValue(String c)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>intToStr</code></td><td><span class="sig">String intToStr(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralcertified">SLMoralCertified <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralCertified.sleela)</span></h2>
<div data-u="slmoralcertified slmoralcertified">
<h3 id="SLMoralCertified">SLMoralCertified <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralCertified — the one-object convention a SLeeLa product embeds to become morally certified. It bundles the three things a certified product needs: a live Moral Capacitor(TM) (the operation-boundary gate), a Certificate of Morals(TM) issued over that capacitor (the product- boundary warranty), and the Guard that admits the product only when both are present and valid. A product configures one SLMoralCertified at startup, gates its operations through capacitor(), and lets ship()/boot() paths call admit() to prove the moral code is included before running. This is how the project strives to include Morals and Certificates in ALL its SLeeLa software: embedding one SLMoralCertified makes a product both gated and certified, in a single, uniform step. Family: moral-capacitor. Composes SLMoralCapacitor, SLMoralCertificate, SLMoralCertificateAuthority, SLMoralCodeGuard.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>product</code></td><td><span class="sig">String product</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cap</code></td><td><span class="sig">SLMoralCapacitor cap</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cert</code></td><td><span class="sig">SLMoralCertificate cert</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>authority</code></td><td><span class="sig">SLMoralCertificateAuthority authority</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>guard</code></td><td><span class="sig">SLMoralCodeGuard guard</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String productName, SLMoralPolicy policy, int redlinesArmed,</span></td><td class="desc">Certify a product: embed a capacitor under the given policy, issue a Certificate of Morals from the authority over it, and arm the guard. redlinesArmed is the number of absolute red lines kept armed (use SLMoralVeto.REDLINE_COUNT for the full set).</td></tr>
<tr><td><code>capacitor</code></td><td><span class="sig">SLMoralCapacitor capacitor()</span></td><td class="desc">The operation-boundary gate a product uses to judge operations.</td></tr>
<tr><td><code>certificate</code></td><td><span class="sig">SLMoralCertificate certificate()</span></td><td class="desc">The product-boundary warranty the product ships with.</td></tr>
<tr><td><code>admit</code></td><td><span class="sig">boolean admit(String nowStamp)</span></td><td class="desc">Prove, at a product boundary (ship / boot / run), that the moral code is included and certified as of `nowStamp`. Returns true to admit.</td></tr>
<tr><td><code>admitReason</code></td><td><span class="sig">String admitReason()</span></td><td class="desc">The reason behind the last admit() decision (for logs / refusal messages).</td></tr>
<tr><td><code>productName</code></td><td><span class="sig">String productName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>codeGuard</code></td><td><span class="sig">SLMoralCodeGuard codeGuard()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>issuingAuthority</code></td><td><span class="sig">SLMoralCertificateAuthority issuingAuthority()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isCertified</code></td><td><span class="sig">boolean isCertified()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralcharge">SLMoralCharge <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralCharge.sleela)</span></h2>
<div data-u="slmoralcharge slmoralcharge">
<h3 id="SLMoralCharge">SLMoralCharge <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralCharge — the stored moral charge of a Moral Capacitor(TM). Charge is the signed sum of per-framework contributions: each ethical framework that endorses the operation adds charge, each that objects subtracts it. Charge is bounded by a maximum (a capacitor has finite capacity) and floored at zero on the discharge decision (negative net charge is simply &quot;no moral basis&quot;). The charge keeps per-framework attribution so a verdict can report which lens contributed what. Family: moral-capacitor. Held by SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>total</code></td><td><span class="sig">int total</span></td><td class="desc">net stored charge (may be negative before flooring)</td></tr>
<tr><td><code>maxCharge</code></td><td><span class="sig">int maxCharge</span></td><td class="desc">capacity ceiling</td></tr>
<tr><td><code>contributions</code></td><td><span class="sig">int contributions</span></td><td class="desc">number of frameworks that contributed</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int capacity)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(int frameworkOrdinal, int delta)</span></td><td class="desc">Add a framework&#x27;s signed contribution (bounded to the capacity ceiling).</td></tr>
<tr><td><code>reset</code></td><td><span class="sig">void reset()</span></td><td class="desc">Reset to empty (the capacitor discharges after a decision).</td></tr>
<tr><td><code>level</code></td><td><span class="sig">int level()</span></td><td class="desc">Net charge, floored at zero for the discharge comparison.</td></tr>
<tr><td><code>rawTotal</code></td><td><span class="sig">int rawTotal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>capacity</code></td><td><span class="sig">int capacity()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>contributors</code></td><td><span class="sig">int contributors()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dominantFramework</code></td><td><span class="sig">int dominantFramework()</span></td><td class="desc">The framework ordinal that contributed the most positive charge (0 if none).</td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralcodeguard">SLMoralCodeGuard <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralCodeGuard.sleela)</span></h2>
<div data-u="slmoralcodeguard slmoralcodeguard">
<h3 id="SLMoralCodeGuard">SLMoralCodeGuard <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralCodeGuard — the Guard of the Moral Code: the enforcement that a SLeeLa software product actually INCLUDES the moral code it claims. Before a product is permitted to run or ship, the guard checks that it (1) embeds a live Moral Capacitor(TM), (2) presents a Certificate of Morals(TM) that is well-formed, (3) was sealed by a trusted authority and verifies against it, (4) is within its validity span, and (5) attests a posture consistent with the embedded capacitor (same policy threshold, red lines armed). A product that fails any check is refused — the moral code is mandatory, not optional. This is how the project strives to include Morals and Certificates in all its SLeeLa software: the guard is the gate at the product boundary, the counterpart to SLMoralCapacitor at the operation boundary. Family: moral-capacitor. Verifies SLMoralCertificate via SLMoralCertificateAuthority; inspects SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>ADMIT</code></td><td><span class="sig">static final int ADMIT   = 1</span></td><td class="desc">Guard outcome ordinals. the product includes the moral code: admit</td></tr>
<tr><td><code>REFUSE</code></td><td><span class="sig">static final int REFUSE  = 2</span></td><td class="desc">missing/invalid moral code: refuse</td></tr>
<tr><td><code>trustedAuthority</code></td><td><span class="sig">SLMoralCertificateAuthority trustedAuthority</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>lastReason</code></td><td><span class="sig">String lastReason</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>outcome</code></td><td><span class="sig">int outcome</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(SLMoralCertificateAuthority authority)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>guard</code></td><td><span class="sig">int guard(String product, SLMoralCapacitor cap, SLMoralCertificate cert, String nowStamp)</span></td><td class="desc">Guard a product: it must embed a live capacitor and present a valid Certificate of Morals that verifies against the trusted authority, is unexpired at `nowStamp`, and attests a posture matching the capacitor. Returns ADMIT or REFUSE; lastReason explains a refusal.</td></tr>
<tr><td><code>withinValidity</code></td><td><span class="sig">boolean withinValidity(SLMoralCertificate cert, String nowStamp)</span></td><td class="desc">Validity check: a certificate with an empty expiry is non-expiring. A non-empty expiry must be lexicographically &gt;= now for ISO-8601 stamps.</td></tr>
<tr><td><code>refuse</code></td><td><span class="sig">int refuse(String why)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>admit</code></td><td><span class="sig">int admit()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>admitted</code></td><td><span class="sig">boolean admitted()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>refused</code></td><td><span class="sig">boolean refused()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reason</code></td><td><span class="sig">String reason()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>lastOutcome</code></td><td><span class="sig">int lastOutcome()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permits</code></td><td><span class="sig">boolean permits(String product, SLMoralCapacitor cap, SLMoralCertificate cert, String nowStamp)</span></td><td class="desc">A boolean form for a call site that just needs permit/deny.</td></tr>
<tr><td><code>outcomeName</code></td><td><span class="sig">String outcomeName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralframework">SLMoralFramework <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralFramework.sleela)</span></h2>
<div data-u="slmoralframework slmoralframework">
<h3 id="SLMoralFramework">SLMoralFramework <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralFramework — the catalogue of ethical lenses the Moral Capacitor(TM) charges from. Each framework is a named way of judging an operation&#x27;s rightness, drawn from the coorenagraph moral vocabulary: deontology (duties/rules), consequentialism/utilitarianism (outcomes), virtue ethics (character), beneficence (do good / avoid harm), and consent/autonomy (respect the affected party&#x27;s will). A framework contributes a small signed charge to the capacitor: positive when it endorses the operation, negative when it objects. This is the vocabulary bridge: the frameworks name the same ethics the coorenagraph package defines (Deontology, Utilitarianism, VirtueEthics, Beneficence), made evaluable as capacitor charge. Family: moral-capacitor. Bridges coorenagraph; charges SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>DEONTOLOGY</code></td><td><span class="sig">static final int DEONTOLOGY     = 1</span></td><td class="desc">Framework ordinals. duties / rules</td></tr>
<tr><td><code>UTILITARIANISM</code></td><td><span class="sig">static final int UTILITARIANISM = 2</span></td><td class="desc">outcomes / greatest good</td></tr>
<tr><td><code>VIRTUE_ETHICS</code></td><td><span class="sig">static final int VIRTUE_ETHICS  = 3</span></td><td class="desc">character / what a good agent does</td></tr>
<tr><td><code>BENEFICENCE</code></td><td><span class="sig">static final int BENEFICENCE    = 4</span></td><td class="desc">do good, avoid harm</td></tr>
<tr><td><code>CONSENT</code></td><td><span class="sig">static final int CONSENT        = 5</span></td><td class="desc">respect autonomy / consent</td></tr>
<tr><td><code>FRAMEWORK_COUNT</code></td><td><span class="sig">static final int FRAMEWORK_COUNT = 5</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>framework</code></td><td><span class="sig">int framework</span></td><td class="desc">one of the ordinals</td></tr>
<tr><td><code>label</code></td><td><span class="sig">String label</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>weight</code></td><td><span class="sig">int weight</span></td><td class="desc">how much this framework&#x27;s charge counts (1..4)</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int fw)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configureByName</code></td><td><span class="sig">void configureByName(String name)</span></td><td class="desc">Configure by name (&quot;deontology&quot;, &quot;utilitarianism&quot;, ...).</td></tr>
<tr><td><code>setWeight</code></td><td><span class="sig">void setWeight(int w)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ordinal</code></td><td><span class="sig">int ordinal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>name</code></td><td><span class="sig">String name()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>frameworkWeight</code></td><td><span class="sig">int frameworkWeight()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>coorenagraphTerm</code></td><td><span class="sig">String coorenagraphTerm()</span></td><td class="desc">The coorenagraph vocabulary class name this framework corresponds to, so a caller can cross-reference the moral definition.</td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralledger">SLMoralLedger <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralLedger.sleela)</span></h2>
<div data-u="slmoralledger slmoralledger">
<h3 id="SLMoralLedger">SLMoralLedger <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralLedger — an append-only audit record of the verdicts a Moral Capacitor(TM) has returned. Each entry names the operation judged, the decision (PERMIT / DEFER / DENY), the charge versus threshold, and the reason, so a library can prove after the fact what was asked and how it was decided. The ledger keeps running counts of each decision for a quick posture summary. The record is a newline-separated String (the same bounded, enumerable form the rest of the library favours); a caller can print it or persist it. Family: moral-capacitor. Written by SLMoralCapacitor / the adapters.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>entries</code></td><td><span class="sig">String entries</span></td><td class="desc">newline-separated verdict summaries</td></tr>
<tr><td><code>total</code></td><td><span class="sig">int total</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permits</code></td><td><span class="sig">int permits</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>defers</code></td><td><span class="sig">int defers</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>denials</code></td><td><span class="sig">int denials</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>record</code></td><td><span class="sig">void record(SLMoralOperation op, SLMoralVerdict v)</span></td><td class="desc">Append a verdict for an operation.</td></tr>
<tr><td><code>log</code></td><td><span class="sig">String log()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>recordCount</code></td><td><span class="sig">int recordCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permitCount</code></td><td><span class="sig">int permitCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>deferCount</code></td><td><span class="sig">int deferCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>denyCount</code></td><td><span class="sig">int denyCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>summary</code></td><td><span class="sig">String summary()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>intToStr</code></td><td><span class="sig">String intToStr(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoraloperation">SLMoralOperation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralOperation.sleela)</span></h2>
<div data-u="slmoraloperation slmoraloperation">
<h3 id="SLMoralOperation">SLMoralOperation <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralOperation — the thing the Moral Capacitor(TM) judges. An operation is described by who performs it (actor, e.g. &quot;vm&quot; / &quot;os&quot; / &quot;machine&quot;), the action verb (e.g. &quot;allocate&quot;, &quot;erase&quot;, &quot;spawn&quot;, &quot;boot&quot;), the target it affects (e.g. &quot;guest-memory&quot;, &quot;/dev/sda&quot;), the scope (e.g. &quot;process&quot;, &quot;disk&quot;, &quot;host&quot;), whether it is reversible, and whether the affected party has consented. These fields are what the frameworks appraise and what the veto set tests. Keeping the operation an explicit object (rather than loose arguments) means a verdict and a ledger entry can name exactly what was judged. Family: moral-capacitor. Evaluated by SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>actor</code></td><td><span class="sig">String actor</span></td><td class="desc">&quot;vm&quot; / &quot;os&quot; / &quot;machine&quot; / library name</td></tr>
<tr><td><code>action</code></td><td><span class="sig">String action</span></td><td class="desc">verb: &quot;allocate&quot; / &quot;erase&quot; / &quot;spawn&quot; / &quot;boot&quot; / ...</td></tr>
<tr><td><code>target</code></td><td><span class="sig">String target</span></td><td class="desc">what it affects</td></tr>
<tr><td><code>scope</code></td><td><span class="sig">String scope</span></td><td class="desc">&quot;process&quot; / &quot;disk&quot; / &quot;host&quot; / &quot;network&quot; / ...</td></tr>
<tr><td><code>reversible</code></td><td><span class="sig">int reversible</span></td><td class="desc">1 if the effect can be undone</td></tr>
<tr><td><code>consented</code></td><td><span class="sig">int consented</span></td><td class="desc">1 if the affected party has consented</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String who, String what, String onWhat, String howWide)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setReversible</code></td><td><span class="sig">void setReversible(boolean yes)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setConsented</code></td><td><span class="sig">void setConsented(boolean yes)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>actorName</code></td><td><span class="sig">String actorName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>actionVerb</code></td><td><span class="sig">String actionVerb()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>targetName</code></td><td><span class="sig">String targetName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>scopeName</code></td><td><span class="sig">String scopeName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isReversible</code></td><td><span class="sig">boolean isReversible()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>hasConsent</code></td><td><span class="sig">boolean hasConsent()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>identity</code></td><td><span class="sig">String identity()</span></td><td class="desc">A short identity line for verdicts and the ledger.</td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralpolicy">SLMoralPolicy <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralPolicy.sleela)</span></h2>
<div data-u="slmoralpolicy slmoralpolicy">
<h3 id="SLMoralPolicy">SLMoralPolicy <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralPolicy — a named moral stance a library applies consistently through the Moral Capacitor(TM). A policy bundles the discharge threshold (how much moral charge an operation needs to proceed) with the set of red lines that are armed for the surface, plus whether a DEFER is allowed or a partial charge should fail closed to DENY. The adapters ship ready policies: a lenient VM default, a strict OS-destructive policy, and a Machine-power policy. Making the stance a first-class object means a surface&#x27;s ethical posture is declared once and reused, rather than re-expressed at every call site. Family: moral-capacitor. Consumed by SLMoralCapacitor and the adapters.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>label</code></td><td><span class="sig">String label</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dischargeThreshold</code></td><td><span class="sig">int dischargeThreshold</span></td><td class="desc">minimum charge to PERMIT</td></tr>
<tr><td><code>allowDefer</code></td><td><span class="sig">int allowDefer</span></td><td class="desc">1: partial charge -&gt; DEFER; 0: fail closed to DENY</td></tr>
<tr><td><code>requireConsent</code></td><td><span class="sig">int requireConsent</span></td><td class="desc">1: a non-consented irreversible op auto-trips a veto</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String name, int threshold)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>vmDefault</code></td><td><span class="sig">void vmDefault()</span></td><td class="desc">---- Ready-made stances for the priority surfaces ---------------------- Routine VM work: a modest threshold, DEFER allowed.</td></tr>
<tr><td><code>vmBridge</code></td><td><span class="sig">void vmBridge()</span></td><td class="desc">VM native/OS-bridge or process spawn: higher bar.</td></tr>
<tr><td><code>osRoutine</code></td><td><span class="sig">void osRoutine()</span></td><td class="desc">OS routine (read env, cwd): low bar.</td></tr>
<tr><td><code>osDestructive</code></td><td><span class="sig">void osDestructive()</span></td><td class="desc">OS destructive (remove/format/install to disk): high bar, consent required, fail closed (no DEFER — an unsure destructive op is denied).</td></tr>
<tr><td><code>machinePower</code></td><td><span class="sig">void machinePower()</span></td><td class="desc">Machine power-on / boot a guest: high bar.</td></tr>
<tr><td><code>setThreshold</code></td><td><span class="sig">void setThreshold(int t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setAllowDefer</code></td><td><span class="sig">void setAllowDefer(boolean on)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setRequireConsent</code></td><td><span class="sig">void setRequireConsent(boolean on)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>name</code></td><td><span class="sig">String name()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>threshold</code></td><td><span class="sig">int threshold()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>defersAllowed</code></td><td><span class="sig">boolean defersAllowed()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>consentRequired</code></td><td><span class="sig">boolean consentRequired()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralverdict">SLMoralVerdict <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralVerdict.sleela)</span></h2>
<div data-u="slmoralverdict slmoralverdict">
<h3 id="SLMoralVerdict">SLMoralVerdict <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralVerdict — the decision a Moral Capacitor(TM) returns for an operation. A verdict is PERMIT (charge met the threshold and no veto tripped), DEFER (partial charge: hold and request more justification or consent), or DENY (no charge, or a veto tripped). The verdict carries the stored charge, the threshold it was compared against, the deciding framework or red line, and a human-readable reason, so a caller can log exactly why an operation was allowed, held, or refused. Family: moral-capacitor. Returned by SLMoralCapacitor.evaluate.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>PERMIT</code></td><td><span class="sig">static final int PERMIT = 1</span></td><td class="desc">Decision ordinals.</td></tr>
<tr><td><code>DEFER</code></td><td><span class="sig">static final int DEFER  = 2</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>DENY</code></td><td><span class="sig">static final int DENY   = 3</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>decision</code></td><td><span class="sig">int decision</span></td><td class="desc">PERMIT / DEFER / DENY</td></tr>
<tr><td><code>charge</code></td><td><span class="sig">int charge</span></td><td class="desc">stored moral charge at decision time</td></tr>
<tr><td><code>threshold</code></td><td><span class="sig">int threshold</span></td><td class="desc">the threshold compared against</td></tr>
<tr><td><code>basis</code></td><td><span class="sig">String basis</span></td><td class="desc">deciding framework or tripped red line</td></tr>
<tr><td><code>reason</code></td><td><span class="sig">String reason</span></td><td class="desc">human-readable explanation</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int d, int chargeLevel, int thresh, String decidingBasis, String why)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permitted</code></td><td><span class="sig">boolean permitted()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>deferred</code></td><td><span class="sig">boolean deferred()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>denied</code></td><td><span class="sig">boolean denied()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>decisionCode</code></td><td><span class="sig">int decisionCode()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>chargeLevel</code></td><td><span class="sig">int chargeLevel()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>thresholdLevel</code></td><td><span class="sig">int thresholdLevel()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>decidingBasis</code></td><td><span class="sig">String decidingBasis()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>explanation</code></td><td><span class="sig">String explanation()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>decisionName</code></td><td><span class="sig">String decisionName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>summary</code></td><td><span class="sig">String summary()</span></td><td class="desc">A one-line summary for logs/ledger.</td></tr>
<tr><td><code>intToStr</code></td><td><span class="sig">String intToStr(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralveto">SLMoralVeto <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralVeto.sleela)</span></h2>
<div data-u="slmoralveto slmoralveto">
<h3 id="SLMoralVeto">SLMoralVeto <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralVeto — the catalogue of absolute moral red lines the Moral Capacitor(TM) honours. A veto is a hard boundary that, when tripped for an operation, denies it regardless of how much moral charge the capacitor has stored: a capacitor cannot discharge through an open circuit. The red lines mirror the platform&#x27;s content-safety boundaries — child safety, weapons/CBRN enablement, non-consensual surveillance, deception/impersonation, scaled abuse, and irreversible destruction without consent. An SLMoralVeto instance tracks which red lines are armed and which are tripped for the operation under evaluation; the capacitor asks it whether any tripped line forbids discharge. Family: moral-capacitor. Consulted by SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>CHILD_SAFETY</code></td><td><span class="sig">static final int CHILD_SAFETY        = 1</span></td><td class="desc">Red-line ordinals.</td></tr>
<tr><td><code>WEAPONS_CBRN</code></td><td><span class="sig">static final int WEAPONS_CBRN        = 2</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>NONCONSENSUAL_SURVEILLANCE</code></td><td><span class="sig">static final int NONCONSENSUAL_SURVEILLANCE = 3</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>DECEPTION</code></td><td><span class="sig">static final int DECEPTION           = 4</span></td><td class="desc">impersonation / spoofing / fraud</td></tr>
<tr><td><code>SCALED_ABUSE</code></td><td><span class="sig">static final int SCALED_ABUSE        = 5</span></td><td class="desc">spam / manipulation / coordinated harm</td></tr>
<tr><td><code>IRREVERSIBLE_HARM</code></td><td><span class="sig">static final int IRREVERSIBLE_HARM   = 6</span></td><td class="desc">destruction without consent</td></tr>
<tr><td><code>REDLINE_COUNT</code></td><td><span class="sig">static final int REDLINE_COUNT       = 6</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>firstReason</code></td><td><span class="sig">String firstReason</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>trip</code></td><td><span class="sig">void trip(int redline, String reason)</span></td><td class="desc">Trip a red line with a reason. The first tripped line&#x27;s reason is retained.</td></tr>
<tr><td><code>isTripped</code></td><td><span class="sig">boolean isTripped(int redline)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>anyTripped</code></td><td><span class="sig">boolean anyTripped()</span></td><td class="desc">Any red line tripped forbids discharge.</td></tr>
<tr><td><code>trippedCount</code></td><td><span class="sig">int trippedCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reason</code></td><td><span class="sig">String reason()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>redlineName</code></td><td><span class="sig">String redlineName(int redline)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmoralwarranty">SLMoralWarranty <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLMoralWarranty.sleela)</span></h2>
<div data-u="slmoralwarranty slmoralwarranty">
<h3 id="SLMoralWarranty">SLMoralWarranty <span class="pill">class</span></h3>
<p class="desc">Defines SLMoralWarranty — the warranty terms a Certificate of Morals carries. The warranty is the promise that a piece of SLeeLa software embeds the Moral Capacitor(TM), gates its consequential operations through it, honours the absolute red-line veto set, and records its verdicts for audit. It names the warrantor (the issuing party), the covered product, the warranty statement, and the limits of the warranty (it is a conduct guarantee about the embedded gate, not a claim of objective morality or of fitness for any particular purpose). The warranty is deliberately explicit and bounded: it warrants that the moral gate is PRESENT and ENFORCED, which is a checkable property, rather than warranting an outcome the gate cannot guarantee. Family: moral-capacitor. Carried by SLMoralCertificate.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>warrantor</code></td><td><span class="sig">String warrantor</span></td><td class="desc">the issuing party (e.g. &quot;MEARVK LLC&quot;)</td></tr>
<tr><td><code>product</code></td><td><span class="sig">String product</span></td><td class="desc">the covered product / software unit</td></tr>
<tr><td><code>statement</code></td><td><span class="sig">String statement</span></td><td class="desc">the human-readable warranty</td></tr>
<tr><td><code>limits</code></td><td><span class="sig">String limits</span></td><td class="desc">the explicit limits of the warranty</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String issuer, String coveredProduct)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setStatement</code></td><td><span class="sig">void setStatement(String s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setLimits</code></td><td><span class="sig">void setLimits(String l)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>defaultStatement</code></td><td><span class="sig">String defaultStatement(String coveredProduct)</span></td><td class="desc">The standard warranty: the moral gate is present and enforced.</td></tr>
<tr><td><code>defaultLimits</code></td><td><span class="sig">String defaultLimits()</span></td><td class="desc">The standard limits: a conduct guarantee, not an oracle or fitness claim.</td></tr>
<tr><td><code>warrantorName</code></td><td><span class="sig">String warrantorName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>coveredProduct</code></td><td><span class="sig">String coveredProduct()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>warrantyStatement</code></td><td><span class="sig">String warrantyStatement()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>warrantyLimits</code></td><td><span class="sig">String warrantyLimits()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>text</code></td><td><span class="sig">String text()</span></td><td class="desc">The full warranty text (statement + limits) for embedding in a certificate.</td></tr>
</table>
</div>
<h2 class="section" data-u="slosmoralgate">SLOSMoralGate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLOSMoralGate.sleela)</span></h2>
<div data-u="slosmoralgate slosmoralgate">
<h3 id="SLOSMoralGate">SLOSMoralGate <span class="pill">class</span></h3>
<p class="desc">Defines SLOSMoralGate — the Moral Capacitor(TM) adapter for the OS surface (SLOperatingSystem, the OS Creator(TM) provider, and the installers). It wraps an SLMoralCapacitor with OS-appropriate policies and exposes intention-named checks the OS consults before a consequential step: running a shell command, deleting or formatting a filesystem path, installing to a disk, and writing an OS development tree. Destructive operations use a strict, consent-requiring, fail-closed policy. The gate makes the OS&#x27;s most dangerous actions — the ones that erase data or execute arbitrary commands — require an explicit, auditable moral discharge before they run. Family: moral-capacitor. OS adapter over SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>cap</code></td><td><span class="sig">SLMoralCapacitor cap</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ledger</code></td><td><span class="sig">SLMoralLedger ledger</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>certificate</code></td><td><span class="sig">SLMoralCertificate certificate</span></td><td class="desc">the OS product&#x27;s Certificate of Morals</td></tr>
<tr><td><code>codeGuard</code></td><td><span class="sig">SLMoralCodeGuard codeGuard</span></td><td class="desc">admits the OS only when certified</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>certify</code></td><td><span class="sig">void certify(SLMoralCertificateAuthority authority, int redlinesArmed,</span></td><td class="desc">Certify this OS: issue a Certificate of Morals over the gate&#x27;s capacitor and arm a code guard against it, so the OS is a morally certified product.</td></tr>
<tr><td><code>admit</code></td><td><span class="sig">boolean admit(String nowStamp)</span></td><td class="desc">Prove at the OS product boundary (ship/boot/install) that the moral code is present and certified as of nowStamp.</td></tr>
<tr><td><code>moralCertificate</code></td><td><span class="sig">SLMoralCertificate moralCertificate()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permitQuery</code></td><td><span class="sig">SLMoralVerdict permitQuery(String what)</span></td><td class="desc">Reading identity/env/cwd is routine and reversible.</td></tr>
<tr><td><code>permitRun</code></td><td><span class="sig">SLMoralVerdict permitRun(String command, boolean consented)</span></td><td class="desc">Running a shell command reaches the host: a higher bar, consent assumed from the caller but screened for red lines.</td></tr>
<tr><td><code>permitErase</code></td><td><span class="sig">SLMoralVerdict permitErase(String path, boolean consented)</span></td><td class="desc">Deleting a path is irreversible: strict policy, consent required.</td></tr>
<tr><td><code>permitInstallToDisk</code></td><td><span class="sig">SLMoralVerdict permitInstallToDisk(String device, boolean consented)</span></td><td class="desc">Formatting / installing to a disk is the most destructive OS action.</td></tr>
<tr><td><code>permitWriteDevTree</code></td><td><span class="sig">SLMoralVerdict permitWriteDevTree(String root)</span></td><td class="desc">OS Creator(TM) writing a development tree is reversible (an output dir).</td></tr>
<tr><td><code>auditLedger</code></td><td><span class="sig">SLMoralLedger auditLedger()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>capacitor</code></td><td><span class="sig">SLMoralCapacitor capacitor()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>op</code></td><td><span class="sig">SLMoralOperation op(String actor, String action, String target, String scope,</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>decide</code></td><td><span class="sig">SLMoralVerdict decide(SLMoralOperation o, SLMoralPolicy p)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpackage">SLPackage <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLPackage.sleela)</span></h2>
<div data-u="slpackage slpackage">
<h3 id="SLPackage">SLPackage <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library package for moral-capacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>packageName</code></td><td><span class="sig">String packageName</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String name)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>name</code></td><td><span class="sig">String name()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>available</code></td><td><span class="sig">boolean available()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slvmmoralguard">SLVMMoralGuard <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/moral-capacitor/SLVMMoralGuard.sleela)</span></h2>
<div data-u="slvmmoralguard slvmmoralguard">
<h3 id="SLVMMoralGuard">SLVMMoralGuard <span class="pill">class</span></h3>
<p class="desc">Defines SLVMMoralGuard — the Moral Capacitor(TM) adapter for the VM. It wraps an SLMoralCapacitor with VM-appropriate policies and exposes intention-named checks a VM consults before a consequential step: growing memory, spawning a thread or process, crossing the native/OS bridge, and running a program on the opcode substrate. Each check builds the matching SLMoralOperation, gates it through the capacitor, records the verdict in a ledger, and returns the SLMoralVerdict so the VM can proceed, defer, or refuse. This is the first and foremost placement of the capacitor: the VM is where programs actually run, so it is where moral charge must discharge before an effect is produced. Family: moral-capacitor. VM adapter over SLMoralCapacitor.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>cap</code></td><td><span class="sig">SLMoralCapacitor cap</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ledger</code></td><td><span class="sig">SLMoralLedger ledger</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>certificate</code></td><td><span class="sig">SLMoralCertificate certificate</span></td><td class="desc">the VM product&#x27;s Certificate of Morals</td></tr>
<tr><td><code>codeGuard</code></td><td><span class="sig">SLMoralCodeGuard codeGuard</span></td><td class="desc">admits the VM only when certified</td></tr>
<tr><td><code>configured</code></td><td><span class="sig">int configured</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>certify</code></td><td><span class="sig">void certify(SLMoralCertificateAuthority authority, int redlinesArmed,</span></td><td class="desc">Certify this VM: issue a Certificate of Morals over the guard&#x27;s capacitor from the given authority, and arm a code guard against it. After this, the VM is a morally certified product and admit() can prove it before running.</td></tr>
<tr><td><code>admit</code></td><td><span class="sig">boolean admit(String nowStamp)</span></td><td class="desc">Prove at the VM product boundary that the moral code is present and certified as of nowStamp. Returns true to admit the VM to run.</td></tr>
<tr><td><code>moralCertificate</code></td><td><span class="sig">SLMoralCertificate moralCertificate()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>permitMemoryGrowth</code></td><td><span class="sig">SLMoralVerdict permitMemoryGrowth(String region, boolean reversible)</span></td><td class="desc">Routine VM op (reversible, in-process). Low bar.</td></tr>
<tr><td><code>permitSpawn</code></td><td><span class="sig">SLMoralVerdict permitSpawn(String what)</span></td><td class="desc">Spawning a thread/process is higher-consequence than in-process work.</td></tr>
<tr><td><code>permitBridgeCall</code></td><td><span class="sig">SLMoralVerdict permitBridgeCall(String target, boolean reversible, boolean consented)</span></td><td class="desc">Crossing the native/OS bridge reaches outside the VM: the higher bar.</td></tr>
<tr><td><code>permitRun</code></td><td><span class="sig">SLMoralVerdict permitRun(String program)</span></td><td class="desc">Running a compiled program on the substrate.</td></tr>
<tr><td><code>auditLedger</code></td><td><span class="sig">SLMoralLedger auditLedger()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>capacitor</code></td><td><span class="sig">SLMoralCapacitor capacitor()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>op</code></td><td><span class="sig">SLMoralOperation op(String actor, String action, String target, String scope,</span></td><td class="desc">---- Internals ----------------------------------------------------------</td></tr>
<tr><td><code>decide</code></td><td><span class="sig">SLMoralVerdict decide(SLMoralOperation o, SLMoralPolicy p)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<script>function flt(q){q=q.toLowerCase();document.querySelectorAll('[data-u]').forEach(function(el){el.style.display = el.getAttribute('data-u').indexOf(q)>=0||q==''?'':'none';});}</script>
<footer>
Generated by <code>tools/generate-sleeladoc-api.py</code> from the live
<code>/lib</code> tree on 2026-11-14 08:04 UTC.
SleelaDoc — the SLeeLa documentation brand. SLeeLa — MEARVK LLC · Max Rupplin · UNCW, NCSU, Harvard · 2026 · George Soros 2507-2608.
</footer>
</main>
</div>
</body>
</html>