Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 114 additions & 29 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,136 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>melampus-python</title>
<meta name="description" content="Melampus keeps AI coding sessions aligned with reviewed intent and fresh local execution evidence." />
<title>Melampus 0.1.0 — keep coding agents aligned</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono:wght@400;500&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono:wght@400;500&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./brand.css" />
<link rel="stylesheet" href="./site-hub.css" />
</head>
<body>
<header class="site-header">
<div class="site-header__inner">
<div class="site-mark" aria-hidden="true"></div>
<span class="site-title font-head">melampus-python</span>
<span class="site-kicker">Documentation</span>
<a class="wordmark" href="#top"><span class="site-mark" aria-hidden="true"></span>melampus</a>
<nav aria-label="Primary navigation">
<a href="#how">How it works</a>
<a href="#compare">Unit tests</a>
<a href="./walkthrough/">Walkthrough</a>
<a href="https://github.com/melampus-org/melampus-python">GitHub</a>
</nav>
</div>
</header>

<section class="hero">
<div class="hero__inner">
<h1 class="font-head">melampus-python</h1>
<p class="hero__lede">
Static site published from <code>site/</code> via GitHub Actions.
</p>
</div>
</section>
<main id="top">
<section class="hero">
<div class="hero__inner">
<p class="eyebrow">OPEN-SOURCE ALPHA · v0.1.0</p>
<h1>Keep the coding agent<br />inside the reviewed intent.</h1>
<p class="hero__lede">
Melampus runs beside an AI coding session. When generated code drifts, it turns
fresh local evidence into an immediate gate: repair can continue; unrelated work waits.
</p>
<div class="hero__actions">
<a class="button button--primary" href="./walkthrough/">Open the visual walkthrough</a>
<a class="button" href="https://github.com/melampus-org/melampus-python/releases/tag/v0.1.0">Download 0.1.0</a>
</div>
<dl class="hero__facts">
<div><dt>15</dt><dd>contract evaluations in the demo</dd></div>
<div><dt>0.84s</dt><dd>observed drift detection</dd></div>
<div><dt>1</dt><dd>agent edit to restore the contract</dd></div>
</dl>
<p class="disclaimer">One recorded local run; timing is illustrative, not a performance claim.</p>
</div>
</section>

<section class="section" id="how">
<div class="section-head">
<p class="eyebrow">THE CONTROL LOOP</p>
<h2>Evidence reaches the agent while the code is still being written.</h2>
<p>Melampus owns a companion process and a synchronous gate inside the coding session.</p>
</div>
<div class="flow" aria-label="Coding agent control loop">
<article><span>01</span><h3>Agent edits</h3><p>The model changes watched implementation files in its normal terminal.</p></article>
<div class="flow__arrow" aria-hidden="true">→</div>
<article><span>02</span><h3>Melampus executes</h3><p>A separate local process reruns approved scenarios and records fresh evidence.</p></article>
<div class="flow__arrow" aria-hidden="true">→</div>
<article><span>03</span><h3>Gate decides</h3><p>Healthy work proceeds. Drift or missing evidence returns the session to repair.</p></article>
</div>
<div class="terminal-pair">
<div><span>TERMINAL A · SUPERVISOR</span><pre><code>melampus session \
--config examples/agent-session/melampus.yml</code></pre></div>
<div><span>TERMINAL B · CODING AGENT</span><pre><code>claude
# Codex or another agent can use the same gate</code></pre></div>
</div>
</section>

<section class="section section--ink" id="videos">
<div class="section-head">
<p class="eyebrow">WATCH THE PROTOCOL</p>
<h2>Two short demonstrations. One honest boundary.</h2>
<p>See drift and repair first, then see exactly where unit tests and Melampus overlap.</p>
</div>
<div class="video-grid">
<article class="video-card">
<video controls preload="metadata" poster="./media/agent-session-demo.jpg">
<source src="./media/agent-session-demo.mp4" type="video/mp4" />
Your browser does not support MP4 video.
</video>
<div><p class="eyebrow">22 SECONDS</p><h3>Drift → block → repair</h3><p>A generated pricing change breaks reviewed bounds. The gate blocks progression until fresh execution passes.</p></div>
</article>
<article class="video-card">
<video controls preload="metadata" poster="./media/unit-test-comparison.jpg">
<source src="./media/unit-test-comparison.mp4" type="video/mp4" />
Your browser does not support MP4 video.
</video>
<div><p class="eyebrow">COMPARISON</p><h3>Unit tests and session evidence</h3><p>Good tests still catch behavior defects. Melampus adds change-triggered execution, evidence freshness, and an agent gate.</p></div>
</article>
</div>
</section>

<section class="section" id="compare">
<div class="section-head">
<p class="eyebrow">WHAT CHANGES</p>
<h2>The oracle is familiar. The control point is different.</h2>
<p>Keep pytest and CI. Melampus packages them into a local protocol the coding agent cannot silently step around.</p>
</div>
<div class="table-wrap">
<table>
<thead><tr><th>Capability</th><th>Unit tests / CI</th><th>Melampus session</th></tr></thead>
<tbody>
<tr><th>Assert expected behavior</th><td class="yes">Yes</td><td class="yes">Yes — reuses executable checks</td></tr>
<tr><th>Run immediately after watched edits</th><td>Only with a watcher or agent discipline</td><td class="yes">Built into the supervisor</td></tr>
<tr><th>Prove evidence belongs to this revision</th><td>Usually a CI commit or test invocation</td><td class="yes">Revision-bound session evidence</td></tr>
<tr><th>Distinguish failed from missing evidence</th><td>Requires custom orchestration</td><td class="yes">Healthy, drift, and incomplete states</td></tr>
<tr><th>Block the agent's next unrelated action</th><td>Usually after push or on request</td><td class="yes">Synchronous coding-agent gate</td></tr>
</tbody>
</table>
</div>
<aside class="truth-note"><strong>A controller around pytest can provide similar protection.</strong> Melampus is useful when you want that controller, evidence model, and agent gate as one reviewed protocol.</aside>
</section>

<main class="guide">
<h2 class="font-head">Pages</h2>
<p>
Add a link here for every HTML file you drop into <code>site/</code> so
visitors can reach it from the index. The list below is also filled in
automatically at load time for any <code>*.html</code> in this folder
that is not linked manually — but an explicit, curated list is clearer,
so prefer adding links by hand.
</p>
<ul id="nav">
<li><a href="./index.html">Home</a></li>
</ul>
<section class="section section--cta" id="try">
<div>
<p class="eyebrow">TRY THE ALPHA</p>
<h2>Run the recorded example on your machine.</h2>
<p>The package is available as a verified wheel on the v0.1.0 GitHub release. Production PyPI publishing is still being configured.</p>
</div>
<pre><code>git clone https://github.com/melampus-org/melampus-python.git
cd melampus-python
uv sync --all-extras
uv run python examples/agent-session/compare_with_unit_tests.py</code></pre>
<div class="hero__actions">
<a class="button button--primary" href="./walkthrough/#try">Step-by-step setup</a>
<a class="button" href="https://github.com/melampus-org/melampus-python/tree/main/examples/agent-session">Browse the example</a>
</div>
</section>
</main>

<footer class="site-footer">
<div class="site-footer__inner">
Built and deployed automatically · edit <code>site/index.html</code> to update
<span>Melampus 0.1.0 · Apache-2.0</span>
<span><a href="https://github.com/melampus-org/melampus-python">Source</a> · <a href="https://github.com/melampus-org/melampus-python/issues">Issues</a></span>
</div>
</footer>
</body>
Expand Down
Binary file added site/media/agent-session-demo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/media/agent-session-demo.mp4
Binary file not shown.
Binary file added site/media/unit-test-comparison.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/media/unit-test-comparison.mp4
Binary file not shown.
210 changes: 85 additions & 125 deletions site/site-hub.css
Original file line number Diff line number Diff line change
@@ -1,125 +1,85 @@
/* Hub layout for site/index.html — pairs with brand.css (OPSWAT tokens). */

.site-header {
border-bottom: 1px solid var(--line);
background: rgba(248, 249, 249, 0.92);
}

.site-header__inner,
.hero__inner,
.guide,
.site-footer__inner {
max-width: 48rem;
margin: 0 auto;
padding-left: 1.5rem;
padding-right: 1.5rem;
}

.site-header__inner {
display: flex;
align-items: center;
gap: 1rem;
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}

.site-mark {
width: 0.625rem;
height: 0.625rem;
background: var(--action);
border-radius: 1px;
flex-shrink: 0;
}

.site-title {
font-size: 0.9375rem;
font-weight: 600;
}

.site-kicker {
font-size: 0.8125rem;
color: var(--mid);
}

.hero {
border-bottom: 1px solid var(--line);
}

.hero__inner {
padding-top: 3rem;
padding-bottom: 2.5rem;
}

.hero h1 {
margin: 0;
font-size: clamp(1.75rem, 4vw, 2.5rem);
line-height: 1.08;
letter-spacing: -0.02em;
font-weight: 700;
}

.hero__lede {
margin: 1rem 0 0;
font-size: 1.05rem;
line-height: 1.55;
color: rgba(12, 18, 29, 0.8);
}

.guide {
padding-top: 2.5rem;
padding-bottom: 3rem;
}

.guide h2 {
margin: 2rem 0 0.75rem;
font-size: 1.25rem;
font-weight: 600;
letter-spacing: -0.01em;
}

.guide h2:first-child {
margin-top: 0;
}

.guide p,
.guide li {
color: rgba(12, 18, 29, 0.82);
font-size: 0.95rem;
}

.guide ul {
margin: 0 0 1rem;
padding-left: 1.25rem;
}

.guide li {
margin-bottom: 0.35rem;
}

.guide a {
color: var(--action);
text-decoration: none;
}

.guide a:hover {
text-decoration: underline;
}

.guide code {
font-family: var(--font-mono);
font-size: 0.875em;
background: rgba(12, 18, 29, 0.06);
padding: 0.1rem 0.35rem;
border-radius: 3px;
}

.site-footer {
border-top: 1px solid var(--line);
padding: 1.5rem 0 2.5rem;
}

.site-footer__inner {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--mid);
}
:root { --max: 74rem; }
html { scroll-behavior: smooth; }
body { background: #f8f9f9; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(248, 249, 249, 0.94); backdrop-filter: blur(12px); }
.site-header__inner, .hero__inner, .section, .site-footer__inner { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.site-header__inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: flex; align-items: center; gap: .7rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.site-mark { width: .65rem; height: .65rem; background: var(--action); border-radius: 1px; }
nav { display: flex; gap: 1.4rem; font-size: .85rem; }
nav a { color: var(--neutral-700); text-decoration: none; }
nav a:hover { color: var(--action); }

.hero { border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #f8f9f9 65%, #e8f0ff); }
.hero__inner { padding: clamp(5rem, 10vw, 8rem) 0 3rem; }
.eyebrow { margin: 0 0 1rem; color: var(--action); font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .12em; }
.hero h1 { max-width: 62rem; margin: 0; font-size: clamp(3rem, 7.2vw, 6.3rem); line-height: .96; letter-spacing: -.055em; font-weight: 700; color: var(--neutral-1200); }
.hero__lede { max-width: 49rem; margin: 2rem 0 0; font-size: clamp(1.1rem, 2vw, 1.42rem); line-height: 1.55; color: var(--neutral-700); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .65rem 1rem; border: 1px solid var(--neutral-400); background: #fff; color: var(--neutral-1200); text-decoration: none; font-size: .9rem; font-weight: 500; }
.button:hover { border-color: var(--action); color: var(--action); }
.button--primary { border-color: var(--action); background: var(--action); color: #fff; }
.button--primary:hover { background: var(--action-strong); color: #fff; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 48rem; margin: 4.5rem 0 0; border-top: 1px solid var(--line); }
.hero__facts div { padding: 1.25rem 1rem 0 0; }
.hero__facts dt { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
.hero__facts dd { margin: .15rem 0 0; color: var(--neutral-600); font-size: .8rem; }
.disclaimer { margin: 1rem 0 0; color: var(--neutral-600); font-size: .75rem; }

.section { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 4rem; margin-bottom: 3rem; }
.section-head .eyebrow { grid-row: 1 / span 2; }
.section h2 { max-width: 49rem; margin: 0; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.section-head > p:last-child { max-width: 46rem; margin: 0; color: var(--neutral-600); font-size: 1.05rem; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.flow article { min-height: 14rem; padding: 1.5rem; border: 1px solid var(--line); background: #fff; }
.flow article > span { color: var(--action); font: 500 .72rem var(--font-mono); }
.flow h3 { margin: 3.4rem 0 .5rem; font-size: 1.15rem; }
.flow p { margin: 0; color: var(--neutral-600); font-size: .9rem; }
.flow__arrow { align-self: center; color: var(--neutral-500); }
.terminal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.terminal-pair > div { padding: 1.25rem; background: var(--neutral-1200); color: #fff; }
.terminal-pair span { color: #9fbef8; font: 500 .68rem var(--font-mono); letter-spacing: .08em; }
pre { margin: 1rem 0 0; padding: 1.15rem; overflow: auto; background: var(--neutral-1200); color: #e8edf5; font: .82rem/1.65 var(--font-mono); }
.terminal-pair pre { padding: 0; }

.section--ink { width: 100%; max-width: none; padding-left: max(1.5rem, calc((100% - var(--max)) / 2)); padding-right: max(1.5rem, calc((100% - var(--max)) / 2)); background: var(--neutral-1200); color: #fff; }
.section--ink .section-head > p:last-child { color: var(--neutral-400); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.video-card { overflow: hidden; border: 1px solid var(--neutral-800); background: var(--neutral-1100); }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.video-card > div { padding: 1.4rem; }
.video-card h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.video-card p:last-child { margin: 0; color: var(--neutral-400); font-size: .9rem; }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--neutral-1200); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .88rem; }
thead th { color: var(--neutral-600); font: 500 .72rem var(--font-mono); letter-spacing: .06em; }
tbody th { width: 34%; font-weight: 500; }
td { color: var(--neutral-700); }
.yes { color: var(--green-text); font-weight: 500; }
.truth-note { margin-top: 1rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--orange); background: var(--orange-100); color: var(--neutral-800); font-size: .9rem; }

.section--cta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; border-top: 1px solid var(--line); }
.section--cta h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.section--cta p:not(.eyebrow) { color: var(--neutral-600); }
.section--cta pre { margin: 0; align-self: start; }
.section--cta .hero__actions { grid-column: 1 / -1; margin: 0; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 2.5rem; color: var(--neutral-600); font: .74rem var(--font-mono); }
.site-footer a { color: var(--action); text-decoration: none; }

@media (max-width: 760px) {
nav a:not(:last-child) { display: none; }
.hero__inner { padding-top: 4rem; }
.hero__facts, .section-head, .terminal-pair, .video-grid, .section--cta { grid-template-columns: 1fr; }
.section-head .eyebrow { grid-row: auto; }
.flow { grid-template-columns: 1fr; }
.flow__arrow { transform: rotate(90deg); justify-self: center; }
.section--cta .hero__actions { grid-column: auto; }
.site-footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
Loading
Loading