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
346 changes: 97 additions & 249 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/web/app/(app)/agents/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";

export const metadata = pageMetadata({
path: "/agents",
title: "Execution Nodes",
description: "Nirium's execution nodes on Stellar: what each one does, what it is allowed to sign, and on which network it runs.",
title: "How it works",
description: "Nirium's 3 nodes: what each one does, what it is allowed to sign, and on which network it runs.",
});

export default function AgentsLayout({ children }: { children: React.ReactNode }) {
Expand Down
131 changes: 13 additions & 118 deletions apps/web/app/(app)/agents/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,79 +33,9 @@ export default function AgentsPage() {
return () => { cancelled = true; };
}, []);

// 30-nov-2026: los nodos de Tesorería, Payouts y bóveda se archivaron (ver /treasury).
const NODE_ORDER = ['audit-node', 'settlement-hub', 'policy-gate'];
const nodes = [
{
id: "rebalance-node",
statusLabel: lang("MAINNET · INVITE-ONLY", "MAINNET · POR INVITACIÓN"),
statusColor: "bg-emerald-400/10 text-emerald-400 border-emerald-400/20",
dotColor: "bg-stellar-teal",
accentBorder: "border-stellar-teal/20",
icon: Activity,
iconColor: "text-stellar-teal",
name: lang(
"Rebalance Node",
"Nodo de Rebalanceo"),
role: lang(
"Autonomous rebalancing of a vault's idle funds (USDC or CETES, one asset per vault) into the vault's own strategy and back, based on thresholds the vault owner sets, no human approval per call. Designed to run continuously; to date, 4 real rebalances, self-funded, all on 6 Aug 2026, none since.",
"Rebalanceo autónomo del saldo ocioso de una bóveda (USDC o CETES, un activo por bóveda) hacia la estrategia de esa misma bóveda y de regreso, según umbrales que fija el dueño de la bóveda, sin aprobación humana por llamada. Diseñado para correr de forma continua; a la fecha, 4 rebalanceos reales, autofinanciados, todos el 6-ago-2026, ninguno desde entonces."),
// Revisado contra rebalanceDecision.ts / scripts/rebalancer.ts (8-nov-2026):
// no es un spread. Es la tasa de CETES de la bóveda (medida desde su
// propia posición, o la de referencia declarada si aún no hay historia)
// contra dos umbrales del dueño, con banda muerta entre ellos.
cycle: lang("Checks every 10 minutes by default", "Revisa cada 10 minutos por defecto"),
trigger: lang(
"The vault's measured yield (or the CETES reference rate, until there is history) reaches the owner's entry threshold (invest idle cash) or drops to the exit threshold (unwind); between the two, it does nothing",
"El rendimiento medido de la bóveda (o la tasa de referencia de CETES, mientras no hay historial) llega al umbral de entrada del dueño (invierte el efectivo ocioso) o baja al de salida (recoge lo invertido); entre los dos, no hace nada"),
authorized: lang(
"Invest and Unwind between the vault's own strategies - no swaps, no destination address",
"Invest y Unwind entre las estrategias de la propia bóveda - sin swaps y sin dirección de destino"),
audit: lang(
"SHA-256 + IPFS anchor when a run is recorded (opt-in)",
"SHA-256 + anclaje IPFS cuando se registra una corrida (opcional)"),
// 21-nov-2026 (G2): era una ruta relativa, que en nirium.xyz da 404.
metric: (
<>
{lang("Health is public - see ", "Salud pública - ver ")}
<a href="https://nirium-agent-mainnet.fly.dev/api/public/rebalancer-health" target="_blank" rel="noopener noreferrer" className="text-stellar-teal hover:underline break-all">nirium-agent-mainnet.fly.dev/api/public/rebalancer-health</a>
{lang(
"; a non-zero problem count there is expected when a dependency hiccups, not a silent failure",
"; un conteo de problemas distinto de cero ahí es esperado cuando falla una dependencia, no una falla silenciosa")}
</>
),
locked: false,
},
{
id: "payroll-node",
statusLabel: lang("MAINNET · EARLY ACCESS · INVITE-ONLY", "MAINNET · ACCESO ANTICIPADO · POR INVITACIÓN"),
statusColor: "bg-emerald-400/10 text-emerald-400 border-emerald-400/20",
dotColor: "bg-stellar-teal",
accentBorder: "border-stellar-teal/20",
icon: Send,
iconColor: "text-stellar-teal",
name: lang(
"Disbursement Node (Bulk Payouts)",
"Nodo de Dispersión (Pagos Masivos)"),
role: lang(
"Disburse funds from one company wallet to up to 100 recipients per batch (99 if the batch carries a fee) - contractors, freelancers, B2B partners - in a single signed batch payment. Non-custodial - the company signs in its own wallet, Nirium never holds funds.",
"Dispersa fondos desde una wallet de la empresa a hasta 100 destinatarios por lote (99 si el lote lleva comisión) - contratistas, freelancers, socios B2B - en un solo lote de pago firmado. Non-custodial - la empresa firma en su propia wallet, Nirium nunca custodia fondos."),
cycle: lang("On-demand / per run", "Bajo demanda / por corrida"),
trigger: lang(
"Company builds and signs a payout run",
"La empresa arma y firma una corrida de pago"),
authorized: lang(
// No es "sponsored": executePayroll.ts (onboardEmployee) arma un
// changeTrust que firma el propio destinatario y su cuenta paga la
// reserva. Verificado el 8-nov-2026.
"Batch USDC/XLM payment (up to 100 recipients per batch, 99 if the batch carries a fee) + USDC trustline the recipient adds and signs itself",
"Pago batch USDC/XLM (hasta 100 destinatarios por lote, 99 si el lote lleva comisión) + trustline USDC que el propio destinatario agrega y firma"),
audit: lang(
"Tamper-evident IPFS receipt per run (optional LCP legal layer - pending a legal opinion)",
"Recibo IPFS por corrida donde cualquier cambio se nota (capa legal LCP opcional - pendiente de opinión legal)"),
metric: lang(
"Mainnet early access · independent service payments only · Freighter-signed",
"Mainnet early access · solo pagos de servicios independientes · firmado con Freighter"),
locked: false,
},
{
id: "policy-gate",
// Reemplaza a "Compliance Sentinel" (2026-11-03): esa tarjeta
Expand All @@ -117,8 +47,8 @@ export default function AgentsPage() {
// esta es la mitad real. Texto igual al de
// packages/agent/src/services/nodeRegistry.ts (la fuente real) -
// si se actualiza uno, actualizar el otro.
// Sin "SDK" en lo público (regla de AGENTS.md: ese enrutamiento ya
// costó un prescreen de SCF). Es el paquete `nirium` en npm.
// Sin "SDK" en lo público: se nombra la capacidad, no la
// categoría técnica. Es el paquete `nirium` en npm.
statusLabel: lang("SHIPPED · NPM PACKAGE", "PUBLICADO · PAQUETE NPM"),
statusColor: "bg-emerald-400/10 text-emerald-400 border-emerald-400/20",
dotColor: "bg-green-400",
Expand Down Expand Up @@ -156,8 +86,8 @@ export default function AgentsPage() {
"Settlement Hub",
"Hub de Liquidación"),
role: lang(
"On mainnet, Nirium's own x402 test endpoint (/premium/market, $0.05) settles on-chain; signals and execute answer 501 there without charging. x402Serve() lets you charge for your own API the same way. Third-party use on mainnet is not something we promote until we have a written legal opinion, and compliance is the integrator's own responsibility.",
"En mainnet, el endpoint x402 de prueba de Nirium (/premium/market, $0.05) liquida en cadena; signals y execute responden 501 ahí sin cobrar. x402Serve() te deja cobrar por tu propia API de la misma forma. No promovemos su uso por terceros en mainnet hasta tener una opinión legal por escrito, y el cumplimiento es responsabilidad de quien integra."),
"On mainnet, Nirium's own x402 test endpoint (/premium/market, $0.05) settles on-chain; signals answers 501 there without charging. x402Serve() lets you charge for your own API the same way. Third-party use on mainnet is not something we promote until we have a written legal opinion, and compliance is the integrator's own responsibility.",
"En mainnet, el endpoint x402 de prueba de Nirium (/premium/market, $0.05) liquida en cadena; signals responde 501 ahí sin cobrar. x402Serve() te deja cobrar por tu propia API de la misma forma. No promovemos su uso por terceros en mainnet hasta tener una opinión legal por escrito, y el cumplimiento es responsabilidad de quien integra."),
cycle: lang("On-demand", "Bajo demanda"),
trigger: lang("Paid HTTP requests (x402)", "Requests HTTP pagados (x402)"),
authorized: lang(
Expand Down Expand Up @@ -203,44 +133,6 @@ export default function AgentsPage() {
"Anclajes en mainnet - conteo en vivo en /stats"),
locked: false,
},
{
// Revisado contra packages/contracts/src/nirium_vault.rs (8-nov-2026).
// Antes decía que pausa, cambio de cosignatarios y cierre de bóveda
// requerían multisig 2-de-3. En el contrato: solo pause/unpause usan
// admin + 1 cosignatario, y solo si hay cosignatarios registrados (si no,
// el admin solo); set_cosigners es solo del admin; close_vault lo firma
// el dueño de la bóveda.
id: "vault-operations",
statusLabel: lang("TESTNET · CONTRACT ADMIN", "TESTNET · ADMIN DEL CONTRATO"),
statusColor: "bg-red-500/10 text-red-400 border-red-500/20",
dotColor: "bg-red-400",
accentBorder: "border-red-500/20",
icon: Lock,
iconColor: "text-red-400",
name: lang(
"Vault Operations Node",
"Nodo de Operaciones de Vault"),
// Confirmado en la cadena el 8-nov-2026 (instance storage de
// CARTJI…Q5SICV vía Soroban RPC): solo AdminAddress, Treasury y
// contadores; ningún Cosigner1/Cosigner2. O sea, hoy pausa el admin solo.
role: lang(
"Emergency controls of the NiriumVault contract. The contract supports a 2-of-3 pause (admin plus one cosigner), but the testnet deployment (contract CDMFURE6…) has no cosigners registered yet (checked on-chain, 21 Nov 2026), so today pausing or resuming takes the admin's signature alone. Each owner closes their own vault with their own signature. Never runs autonomously.",
"Controles de emergencia del contrato NiriumVault. El contrato admite una pausa 2-de-3 (admin más un cosignatario), pero el despliegue de testnet (contrato CDMFURE6…) todavía no tiene cosignatarios registrados (revisado en la cadena, 21 nov 2026), así que hoy pausarlo o reanudarlo requiere solo la firma del admin. Cada dueño cierra su propia bóveda con su propia firma. Nunca corre de forma autónoma."),
cycle: lang("Manual only", "Solo manual"),
trigger: lang(
"Admin request (no cosigners registered yet)",
"Solicitud del admin (aún sin cosignatarios registrados)"),
authorized: lang(
"Contract pause/unpause · cosigner changes (admin only)",
"Pausa/reanudación del contrato · cambio de cosignatarios (solo el admin)"),
audit: lang(
"Pause and unpause emit on-chain events",
"La pausa y la reanudación emiten eventos en la cadena"),
metric: lang(
"Human signatures only - no autonomous action",
"Solo firmas humanas - ninguna acción autónoma"),
locked: false,
},
];

return (
Expand All @@ -267,8 +159,8 @@ export default function AgentsPage() {
{/* Antes prometía "rastro de auditoría criptográfico" para los 6;
Policy Gate y Vault Operations no lo tienen (ver su campo Audit). */}
{lang(
"6 nodes: what each one does, what it is allowed to sign, and on which network it runs.",
"6 nodos: qué hace cada uno, qué puede firmar y en qué red corre.")}
"3 nodes: what each one does, what it is allowed to sign, and on which network it runs.",
"3 nodos: qué hace cada uno, qué puede firmar y en qué red corre.")}
</p>
</motion.div>

Expand Down Expand Up @@ -310,9 +202,11 @@ export default function AgentsPage() {

{/* ── NODE CARDS ─────────────────────────────────────────── */}
<div className="space-y-5 mb-16">
{nodes.map((node, i) => (
{/* 27-nov-2026: los nodos de Audit Trail, x402 y la política primero; los de
Tesorería y Payouts después, bajo "en pausa". */}
{[...nodes].sort((a, b) => NODE_ORDER.indexOf(a.id) - NODE_ORDER.indexOf(b.id)).map((node, i) => (
<div key={node.id}>
<motion.div
key={node.id}
initial={{ opacity: 0, y: 24 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
Expand Down Expand Up @@ -368,6 +262,7 @@ export default function AgentsPage() {
{node.metric}
</div>
</motion.div>
</div>
))}
</div>

Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/(app)/analytics/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { pageMetadata } from "@/lib/pageMetadata";

export const metadata = pageMetadata({
path: "/analytics",
title: "Network Telemetry",
description: "Receipts, settlements and node activity on Stellar, with links to the transactions behind them. Panels with sample data are labeled.",
title: "Reporting",
description: "Payments, receipts and what you can download: public data from mainnet and testnet as CSV or JSON, with links to the transactions behind them.",
});

export default function AnalyticsLayout({ children }: { children: React.ReactNode }) {
Expand Down
Loading
Loading