feat(infra): Phase 0 provisioning + dev status dashboard

- scripts/phase0-provision.sh: idempotent root setup (nginx, PostgreSQL,
  Redis, certbot/TLS, UFW). Opens 22/2222/80/443 before enabling UFW so SSH
  and Gitea git-SSH can't be locked out. Redis/Postgres stay localhost-only.
- infra/nginx/feedthepyre.com.conf: vhost serving the status page; commented
  web(:3000)/api(:4000) reverse-proxy blocks ready for app deploy.
- infra/status/: data-driven dev status dashboard (status.json + gen-status.mjs
  + prebuilt index.html), served at feedthepyre.com.
- ecosystem.config.cjs (PM2), infra/systemd/pm2-pyre.service, infra/logrotate/pyre,
  scripts/backup.sh — process mgmt + ops (inert until apps are built).

Built by 4 parallel agents, reviewed by 2 audit agents; audit fixes applied
(logs dir creation, port-citation accuracy, status truthfulness). pm2 installed
user-level. Privileged steps gated on `sudo bash scripts/phase0-provision.sh`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-31 02:34:13 +00:00
parent c20094ab56
commit 571e5d04d2
13 changed files with 1629 additions and 0 deletions

38
infra/status/README.md Normal file
View File

@@ -0,0 +1,38 @@
# PYRE Status Dashboard
A static, self-contained dark "ember"-themed page the team uses to track PYRE MVP
progress. It is a **snapshot**, not live telemetry.
## Files
- **`status.json`** — the single source of truth. All content on the page
(phases, checklists, infra, dates, links) comes from here.
- **`index.html`** — the prebuilt rendered page. Committed so the page works even
before anyone runs the generator. Self-contained: inline CSS, no external
requests, no JS.
- **`README.md`** — this file.
## Editing & regenerating
1. Edit **`status.json`** — flip an item's `"done"` to `true`, update a phase
`"state"` (`todo` / `in_progress` / `done`), or bump `"updated"`.
2. Regenerate the page from the repo root:
```bash
node scripts/gen-status.mjs
```
The generator is dependency-free (plain Node ESM, no npm install). It reads
`infra/status/status.json` and rewrites `infra/status/index.html`, recomputing
the overall % complete from the item done-counts. It prints the output path
when finished.
3. Commit the regenerated `index.html` alongside the `status.json` change so the
prebuilt page stays consistent with the data.
## Deployment
The provision script deploys `infra/status/*` to `/var/www/feedthepyre/status`,
and nginx serves it as the site root (`feedthepyre.com`) until the real PYRE app
ships. Because `index.html` is prebuilt and self-contained, deployment is a plain
file copy — no build step or generator run is required on the server.

306
infra/status/index.html Normal file
View File

@@ -0,0 +1,306 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PYRE / Prometheus Protocol — Status Dashboard</title>
<style>
:root {
--bg: #0a0a0a;
--panel: #141210;
--panel-2: #1b1815;
--border: #2a241e;
--ember: #ff5a1f;
--ember-soft: #ff8a4f;
--text: #ede6df;
--muted: #9a8f84;
--ok: #6ad17a;
--todo: #6b6258;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: radial-gradient(1200px 600px at 50% -200px, #1a0f08 0%, var(--bg) 60%);
color: var(--text);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
a { color: var(--ember-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
header.site {
border-bottom: 1px solid var(--border);
padding-bottom: 1.5rem;
margin-bottom: 2rem;
}
.title {
font-size: clamp(1.8rem, 5vw, 2.8rem);
margin: 0;
letter-spacing: 0.5px;
background: linear-gradient(90deg, var(--ember), var(--ember-soft));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.tagline { color: var(--muted); font-style: italic; margin: 0.4rem 0 1rem; }
.links a {
display: inline-block;
margin-right: 1rem;
font-size: 0.9rem;
border: 1px solid var(--border);
padding: 0.35rem 0.7rem;
border-radius: 6px;
background: var(--panel);
}
.links a:hover { border-color: var(--ember); text-decoration: none; }
.overall {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.25rem 1.5rem;
margin-bottom: 2rem;
}
.overall-head {
display: flex; justify-content: space-between; align-items: baseline;
margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.overall-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.overall-pct { font-size: 1.6rem; font-weight: 700; color: var(--ember); }
.bar {
height: 16px; width: 100%;
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 999px; overflow: hidden;
}
.bar > span {
display: block; height: 100%;
background: linear-gradient(90deg, var(--ember), var(--ember-soft));
box-shadow: 0 0 18px rgba(255, 90, 31, 0.6);
}
h2.section {
font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase;
color: var(--muted); margin: 2.25rem 0 1rem;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1rem;
}
.card {
background: var(--panel);
border: 1px solid var(--border);
border-left: 3px solid var(--todo);
border-radius: 10px;
padding: 1.1rem 1.25rem;
}
.card.in_progress { border-left-color: var(--ember); }
.card.done { border-left-color: var(--ok); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.card-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.phase-id { color: var(--ember); font-weight: 700; display: block; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.badge {
flex: none;
font-size: 0.65rem; letter-spacing: 1px; font-weight: 700;
padding: 0.25rem 0.55rem; border-radius: 999px;
border: 1px solid var(--border); color: var(--muted);
text-transform: uppercase; white-space: nowrap;
}
.badge.in_progress { color: #0a0a0a; background: var(--ember); border-color: var(--ember); }
.badge.done { color: #0a0a0a; background: var(--ok); border-color: var(--ok); }
.badge.todo { color: var(--todo); }
.count { color: var(--muted); font-size: 0.8rem; margin: 0.5rem 0 0.75rem; }
ul.checklist { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.2rem 0; font-size: 0.92rem; color: var(--muted); }
.item.done { color: var(--text); }
.item .mark { color: var(--todo); font-weight: 700; flex: none; width: 1rem; text-align: center; }
.item.done .mark { color: var(--ok); }
.infra-panel {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.25rem 1.5rem;
}
.infra-panel .count { margin-top: 0; }
.infra-grid { columns: 2; column-gap: 2rem; }
@media (max-width: 520px) { .infra-grid { columns: 1; } }
footer.site {
margin-top: 3rem; padding-top: 1.5rem;
border-top: 1px solid var(--border);
color: var(--muted); font-size: 0.85rem;
}
footer.site .disclaimer { color: var(--ember-soft); margin-top: 0.35rem; }
</style>
</head>
<body>
<div class="wrap">
<header class="site">
<h1 class="title">PYRE / Prometheus Protocol</h1>
<p class="tagline">Burn the dead. Feed the PYRE. Claim the Spawn.</p>
<nav class="links">
<a href="https://git.lumiai.dev/RogueWave/pyre">Repository</a>
<a href="https://feedthepyre.com">feedthepyre.com</a>
<a href="../../docs/PYRE_MVP_DESIGN.md">Design Doc</a>
</nav>
</header>
<section class="overall">
<div class="overall-head">
<h2>Overall MVP Progress</h2>
<span class="overall-pct">12%</span>
</div>
<div class="bar"><span style="width: 12%"></span></div>
<p class="count">6 of 50 phase deliverables complete</p>
</section>
<h2 class="section">Development Phases</h2>
<div class="grid">
<article class="card in_progress">
<header class="card-head">
<h3><span class="phase-id">Phase 0</span> Server &amp; Repo Setup</h3>
<span class="badge in_progress">IN PROGRESS</span>
</header>
<p class="count">6 / 8 complete</p>
<ul class="checklist">
<li class="item done"><span class="mark"></span><span>VPS configured (pyre user, SSH key, root disabled, UFW, Fail2ban)</span></li>
<li class="item done"><span class="mark"></span><span>Claude Code installed</span></li>
<li class="item done"><span class="mark"></span><span>Repo initialized</span></li>
<li class="item done"><span class="mark"></span><span>pnpm workspace created</span></li>
<li class="item done"><span class="mark"></span><span>web/api/worker skeleton</span></li>
<li class="item"><span class="mark"></span><span>Postgres + Redis running</span></li>
<li class="item"><span class="mark"></span><span>nginx configured</span></li>
<li class="item done"><span class="mark"></span><span>Environment templates</span></li>
</ul>
</article>
<article class="card todo">
<header class="card-head">
<h3><span class="phase-id">Phase 1</span> Wallet Scanner</h3>
<span class="badge todo">TODO</span>
</header>
<p class="count">0 / 6 complete</p>
<ul class="checklist">
<li class="item"><span class="mark"></span><span>Wallet connect frontend</span></li>
<li class="item"><span class="mark"></span><span>Scan endpoint</span></li>
<li class="item"><span class="mark"></span><span>Token account fetch</span></li>
<li class="item"><span class="mark"></span><span>Basic classification</span></li>
<li class="item"><span class="mark"></span><span>Scan results UI</span></li>
<li class="item"><span class="mark"></span><span>Protected/skipped UI</span></li>
</ul>
</article>
<article class="card todo">
<header class="card-head">
<h3><span class="phase-id">Phase 2</span> Close Empty ATAs</h3>
<span class="badge todo">TODO</span>
</header>
<p class="count">0 / 6 complete</p>
<ul class="checklist">
<li class="item"><span class="mark"></span><span>Identify empty token accounts</span></li>
<li class="item"><span class="mark"></span><span>Build close-account tx</span></li>
<li class="item"><span class="mark"></span><span>Decode tx preview</span></li>
<li class="item"><span class="mark"></span><span>Wallet signing</span></li>
<li class="item"><span class="mark"></span><span>Confirmation tracking</span></li>
<li class="item"><span class="mark"></span><span>Receipt page</span></li>
</ul>
</article>
<article class="card todo">
<header class="card-head">
<h3><span class="phase-id">Phase 3</span> Burn Junk</h3>
<span class="badge todo">TODO</span>
</header>
<p class="count">0 / 5 complete</p>
<ul class="checklist">
<li class="item"><span class="mark"></span><span>Incinerate-only classification</span></li>
<li class="item"><span class="mark"></span><span>Burn transaction builder</span></li>
<li class="item"><span class="mark"></span><span>Burn-then-close flow</span></li>
<li class="item"><span class="mark"></span><span>Stronger confirmations</span></li>
<li class="item"><span class="mark"></span><span>Receipt update</span></li>
</ul>
</article>
<article class="card todo">
<header class="card-head">
<h3><span class="phase-id">Phase 4</span> Prometheus Generator</h3>
<span class="badge todo">TODO</span>
</header>
<p class="count">0 / 6 complete</p>
<ul class="checklist">
<li class="item"><span class="mark"></span><span>Generation input from receipt</span></li>
<li class="item"><span class="mark"></span><span>Meta mixer</span></li>
<li class="item"><span class="mark"></span><span>Spawn name/ticker/lore generation</span></li>
<li class="item"><span class="mark"></span><span>Image prompt generation</span></li>
<li class="item"><span class="mark"></span><span>Safety checks</span></li>
<li class="item"><span class="mark"></span><span>Admin approval UI</span></li>
</ul>
</article>
<article class="card todo">
<header class="card-head">
<h3><span class="phase-id">Phase 5</span> Manual Pump.fun Launch Workflow</h3>
<span class="badge todo">TODO</span>
</header>
<p class="count">0 / 5 complete</p>
<ul class="checklist">
<li class="item"><span class="mark"></span><span>Approved Spawn package</span></li>
<li class="item"><span class="mark"></span><span>Metadata JSON</span></li>
<li class="item"><span class="mark"></span><span>Operator launch checklist</span></li>
<li class="item"><span class="mark"></span><span>Mint/url/tx record input</span></li>
<li class="item"><span class="mark"></span><span>Public Spawn record page</span></li>
</ul>
</article>
<article class="card todo">
<header class="card-head">
<h3><span class="phase-id">Phase 6</span> Essence / Round Prototype</h3>
<span class="badge todo">TODO</span>
</header>
<p class="count">0 / 6 complete</p>
<ul class="checklist">
<li class="item"><span class="mark"></span><span>Safe swap candidate detection</span></li>
<li class="item"><span class="mark"></span><span>Route quote preview</span></li>
<li class="item"><span class="mark"></span><span>Net Essence estimate</span></li>
<li class="item"><span class="mark"></span><span>Round dashboard</span></li>
<li class="item"><span class="mark"></span><span>Contribution database record</span></li>
<li class="item"><span class="mark"></span><span>No claim promises until on-chain logic exists</span></li>
</ul>
</article>
<article class="card todo">
<header class="card-head">
<h3><span class="phase-id">Phase 7</span> PYRE Core Program</h3>
<span class="badge todo">TODO</span>
</header>
<p class="count">0 / 8 complete</p>
<ul class="checklist">
<li class="item"><span class="mark"></span><span>Anchor program — create round</span></li>
<li class="item"><span class="mark"></span><span>Contribute Essence</span></li>
<li class="item"><span class="mark"></span><span>Contribution receipt PDA</span></li>
<li class="item"><span class="mark"></span><span>Lock round</span></li>
<li class="item"><span class="mark"></span><span>Register Spawn</span></li>
<li class="item"><span class="mark"></span><span>Claim Spawn</span></li>
<li class="item"><span class="mark"></span><span>Refund failed round</span></li>
<li class="item"><span class="mark"></span><span>Tests</span></li>
</ul>
</article>
</div>
<h2 class="section">Infrastructure</h2>
<div class="infra-panel">
<p class="count">6 / 11 provisioned</p>
<ul class="checklist infra-grid">
<li class="item done"><span class="mark"></span><span>Node.js 22</span></li>
<li class="item done"><span class="mark"></span><span>pnpm</span></li>
<li class="item done"><span class="mark"></span><span>Git + Gitea remote</span></li>
<li class="item done"><span class="mark"></span><span>DNS (feedthepyre.com)</span></li>
<li class="item done"><span class="mark"></span><span>Monorepo scaffold + docs</span></li>
<li class="item done"><span class="mark"></span><span>pnpm install + typecheck clean</span></li>
<li class="item"><span class="mark"></span><span>nginx</span></li>
<li class="item"><span class="mark"></span><span>PostgreSQL</span></li>
<li class="item"><span class="mark"></span><span>Redis</span></li>
<li class="item"><span class="mark"></span><span>PM2</span></li>
<li class="item"><span class="mark"></span><span>TLS (Let&#39;s Encrypt)</span></li>
</ul>
</div>
<footer class="site">
<div>Last updated: 2026-05-31</div>
<div class="disclaimer">Static snapshot generated from status.json — not live telemetry.</div>
</footer>
</div>
</body>
</html>

128
infra/status/status.json Normal file
View File

@@ -0,0 +1,128 @@
{
"project": "PYRE / Prometheus Protocol",
"tagline": "Burn the dead. Feed the PYRE. Claim the Spawn.",
"repo": "https://git.lumiai.dev/RogueWave/pyre",
"domain": "https://feedthepyre.com",
"updated": "2026-05-31",
"phases": [
{
"id": 0,
"name": "Server & Repo Setup",
"state": "in_progress",
"items": [
{ "label": "VPS configured (pyre user, SSH key, root disabled, UFW, Fail2ban)", "done": true },
{ "label": "Claude Code installed", "done": true },
{ "label": "Repo initialized", "done": true },
{ "label": "pnpm workspace created", "done": true },
{ "label": "web/api/worker skeleton", "done": true },
{ "label": "Postgres + Redis running", "done": false },
{ "label": "nginx configured", "done": false },
{ "label": "Environment templates", "done": true }
]
},
{
"id": 1,
"name": "Wallet Scanner",
"state": "todo",
"items": [
{ "label": "Wallet connect frontend", "done": false },
{ "label": "Scan endpoint", "done": false },
{ "label": "Token account fetch", "done": false },
{ "label": "Basic classification", "done": false },
{ "label": "Scan results UI", "done": false },
{ "label": "Protected/skipped UI", "done": false }
]
},
{
"id": 2,
"name": "Close Empty ATAs",
"state": "todo",
"items": [
{ "label": "Identify empty token accounts", "done": false },
{ "label": "Build close-account tx", "done": false },
{ "label": "Decode tx preview", "done": false },
{ "label": "Wallet signing", "done": false },
{ "label": "Confirmation tracking", "done": false },
{ "label": "Receipt page", "done": false }
]
},
{
"id": 3,
"name": "Burn Junk",
"state": "todo",
"items": [
{ "label": "Incinerate-only classification", "done": false },
{ "label": "Burn transaction builder", "done": false },
{ "label": "Burn-then-close flow", "done": false },
{ "label": "Stronger confirmations", "done": false },
{ "label": "Receipt update", "done": false }
]
},
{
"id": 4,
"name": "Prometheus Generator",
"state": "todo",
"items": [
{ "label": "Generation input from receipt", "done": false },
{ "label": "Meta mixer", "done": false },
{ "label": "Spawn name/ticker/lore generation", "done": false },
{ "label": "Image prompt generation", "done": false },
{ "label": "Safety checks", "done": false },
{ "label": "Admin approval UI", "done": false }
]
},
{
"id": 5,
"name": "Manual Pump.fun Launch Workflow",
"state": "todo",
"items": [
{ "label": "Approved Spawn package", "done": false },
{ "label": "Metadata JSON", "done": false },
{ "label": "Operator launch checklist", "done": false },
{ "label": "Mint/url/tx record input", "done": false },
{ "label": "Public Spawn record page", "done": false }
]
},
{
"id": 6,
"name": "Essence / Round Prototype",
"state": "todo",
"items": [
{ "label": "Safe swap candidate detection", "done": false },
{ "label": "Route quote preview", "done": false },
{ "label": "Net Essence estimate", "done": false },
{ "label": "Round dashboard", "done": false },
{ "label": "Contribution database record", "done": false },
{ "label": "No claim promises until on-chain logic exists", "done": false }
]
},
{
"id": 7,
"name": "PYRE Core Program",
"state": "todo",
"items": [
{ "label": "Anchor program — create round", "done": false },
{ "label": "Contribute Essence", "done": false },
{ "label": "Contribution receipt PDA", "done": false },
{ "label": "Lock round", "done": false },
{ "label": "Register Spawn", "done": false },
{ "label": "Claim Spawn", "done": false },
{ "label": "Refund failed round", "done": false },
{ "label": "Tests", "done": false }
]
}
],
"infra": [
{ "label": "Node.js 22", "done": true },
{ "label": "pnpm", "done": true },
{ "label": "Git + Gitea remote", "done": true },
{ "label": "DNS (feedthepyre.com)", "done": true },
{ "label": "Monorepo scaffold + docs", "done": true },
{ "label": "pnpm install + typecheck clean", "done": true },
{ "label": "nginx", "done": false },
{ "label": "PostgreSQL", "done": false },
{ "label": "Redis", "done": false },
{ "label": "PM2", "done": false },
{ "label": "TLS (Let's Encrypt)", "done": false }
]
}