<h1>Try the WCGW Safety Suite</h1>

<section class="oracle-shell">
  <div class="oracle-header">
    <p>Bring your own scenario. Name the machine at work, the people nearby and what may go awry. You get back your system mapped as a Hazard Mitigation Web graph.</p>
  </div>

  <form class="oracle-composer" id="oracle-form" method="post" autocomplete="off" data-endpoint="https://wcgw-safety-suite.vercel.app/api/try/oracle" data-config-endpoint="https://wcgw-safety-suite.vercel.app/api/try/oracle/config">
    <label for="oracle-prompt">Your scenario</label>
    <textarea id="oracle-prompt" name="prompt" rows="6" maxlength="2000" aria-describedby="oracle-prompt-counter" placeholder="Describe your system in your own words: the machine, the people nearby, and what could go wrong..."></textarea>
    <p class="oracle-counter" id="oracle-prompt-counter">0 / 2000 characters</p>
    <p class="oracle-model-info" id="oracle-model-info" role="status" aria-live="polite">Checking the configured LLM provider and model…</p>
    <div class="oracle-composer-row">
      <button class="button oracle-submit" id="oracle-submit" type="submit" disabled>Send to Oracle →</button>
      <p class="oracle-status" id="oracle-status" role="status" aria-live="polite"></p>
    </div>
    <p class="oracle-usage">Three preview attempts per IP address per rolling 24-hour window.</p>

    <fieldset class="oracle-scenario-picker">
      <legend>Example scenarios</legend>
      <div class="oracle-scenario-grid" id="oracle-scenario-grid"></div>
    </fieldset>
  </form>

  <div class="oracle-results" id="oracle-results" role="log" aria-live="polite" aria-relevant="additions"></div>

  <section class="oracle-claim beta-cta" id="oracle-claim" hidden aria-labelledby="oracle-claim-heading">
    <img class="oracle-claim-logo" src="/assets/logo-wcgw-safety-suite1.png" alt="WCGW Safety Suite" width="120" height="120">
    <h3 id="oracle-claim-heading">Keep the reasoning accountable</h3>
    <p>Your evaluation and suggestions are saved in a temporary project. Claim it to inspect the full result, record decisions, and continue in the engineering workspace.</p>
    <a class="button" id="oracle-claim-link" href="https://wcgw-safety-ui.vercel.app">Claim project and continue</a>
  </section>

  <section class="oracle-agent" aria-labelledby="oracle-agent-heading">
    <h2 id="oracle-agent-heading">For agents: send an original prompt</h2>
    <p>Call the Oracle directly with a scenario you write yourself. Name the machine, the people nearby, the motion or energy involved, and the failure you want examined. The examples above show the level of detail that helps.</p>
    <pre><code>POST https://wcgw-safety-suite.vercel.app/api/try/oracle
Content-Type: application/json

{"prompt": "Your original scenario, up to 2000 characters."}</code></pre>
    <p>Read the configured provider and model from <code>GET https://wcgw-safety-suite.vercel.app/api/try/oracle/config</code>. A successful response returns an evaluation with suggestions and a temporary project you can claim.</p>
    <p>No account is required. Three preview attempts per IP address per rolling 24-hour window.</p>
  </section>
</section>

<script src="/js/oracle.js" defer></script>
