From ec02ebd75ea210b3bb5697862ac5df27df49269d Mon Sep 17 00:00:00 2001 From: Giovanny Amador <219895655+Eras256@users.noreply.github.com> Date: Wed, 25 Nov 2026 13:50:09 -0600 Subject: [PATCH] fix(web): more accurate receipt copy on home and /verify, snippet re-run with 0.20.0 Co-Authored-By: Claude Opus 5.5 --- apps/web/app/(app)/docs/page.tsx | 4 +-- apps/web/app/(app)/verify/page.tsx | 2 +- apps/web/app/page.tsx | 47 +++++++++++++++--------------- apps/web/components/ui/ChatBot.tsx | 4 +-- apps/web/dictionaries/en.json | 8 +++-- apps/web/dictionaries/es.json | 8 +++-- apps/web/lib/privateAnchors.ts | 1 + 7 files changed, 39 insertions(+), 35 deletions(-) diff --git a/apps/web/app/(app)/docs/page.tsx b/apps/web/app/(app)/docs/page.tsx index 788694e2..91c6af85 100644 --- a/apps/web/app/(app)/docs/page.tsx +++ b/apps/web/app/(app)/docs/page.tsx @@ -473,8 +473,8 @@ CID: QmehRz7Xab8Cg27fypBiffVgW11Yoac6BJcgd3g1pH5V7m )} null {lang( - ", it is verified in record mode (sha-256 of JSON.stringify(record)). That's what the CLI has done since 3.2.6 and the GitHub Action does too; /verify does it once V1 ships.", - ", se verifica como modo record (sha-256 de JSON.stringify(record)). Así lo hacen la CLI desde 3.2.6 y el GitHub Action; /verify lo hará con V1." + ", it is verified in record mode (sha-256 of JSON.stringify(record)). That's what the CLI has done since 3.2.6; the GitHub Action and /verify do it too.", + ", se verifica como modo record (sha-256 de JSON.stringify(record)). Así lo hace la CLI desde 3.2.6; el GitHub Action y /verify también." )} diff --git a/apps/web/app/(app)/verify/page.tsx b/apps/web/app/(app)/verify/page.tsx index 59dfa744..af7f7896 100644 --- a/apps/web/app/(app)/verify/page.tsx +++ b/apps/web/app/(app)/verify/page.tsx @@ -333,7 +333,7 @@ function VerifyContent() { -
+

{tv.example_intro}{' '} diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index cef1ab39..0fc6ec87 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -27,20 +27,19 @@ import { isNiriumtoberLive, niriumtoberHref } from "@/lib/niriumtober"; import { niriumtoberHit, trackFunnel } from "@/lib/attribution"; import { MAINNET_API_URL, PROOF_TX_HASH, PROOF_TX_URL } from "@/lib/constants"; -// El snippet de abajo se corrió TAL CUAL contra nirium@0.18.0 el 9-nov-2026 -// (Node 24, express 5.3, @x402/* 2.30.0, facilitador de OpenZeppelin en +// El snippet de abajo se corrió TAL CUAL contra nirium@0.20.0 el 25-nov-2026 +// (Node 24, express 5.3.0, @x402/* 2.32.0, facilitador de OpenZeppelin en // testnet, cuentas nuevas fondeadas con Friendbot): 402 sin pago, 200 con // pago y {"tempC":21}, 0.05 USDC liquidado en esta tx (verificada en Horizon, -// ledger 5637422). La corrida anterior fue con 0.16.0 el 4-oct -// (d121b61c...). Si se edita el snippet, hay que volver a correrlo y cambiar -// este hash. +// ledger 5922472). La corrida anterior fue con 0.18.0 el 9-nov (97f11e97...). +// Si se edita el snippet, hay que volver a correrlo y cambiar este hash. // -// Ojo, visto en la misma prueba: el facilitador de testnet respondió 504 en +// Ojo, visto en la prueba del 9-nov (el 25-nov, 2 de 2 pagos salieron bien): el facilitador de testnet respondió 504 en // 6 de 9 intentos y aun así liquidó el pago, así que el cliente pagó y recibió // 402. Es del facilitador, no del snippet, pero quien lo pruebe puede verlo. // Verificación externa de holistis: sus 21 casos y su resultado público (19-nov-2026). const HOLISTIS_RESULT_URL = 'https://github.com/nirium-protocol/nirium/pull/396#issuecomment-7016710117'; -const SNIPPET_TESTNET_TX = '97f11e97d81924b8874f4643bcb59720cc59dfc4248beae5059422b7ae800b90'; +const SNIPPET_TESTNET_TX = '0ab43362e90d5d123ade51ea906fa760c7d042dfd4d01c5ca8815aa6e6025e24'; const SNIPPET_TESTNET_TX_URL = `https://stellar.expert/explorer/testnet/tx/${SNIPPET_TESTNET_TX}`; const SERVE_SNIPPET = `import express from 'express'; @@ -92,13 +91,10 @@ const POLICY_WAIT_THEN_ALLOW_TX = '63fe315ad191c12d8baab4e7d146dc4b8cd7bb0c0ce97 const POLICY_RACE_ALLOW_TX = '20b9f5a21f012001488630e4f5be7a64c69f6a39648ad53b092d724df3c9b57c'; const stellarTestnetTx = (hash: string) => `https://stellar.expert/explorer/testnet/tx/${hash}`; -// Ancla propia de Nirium en mainnet (agent.id "selftest-nirium", 21-oct-2026): -// firmada y con record embebido, así /verify muestra el resultado completo -// (hash recalculado y firma válida). Es la misma que usa el botón de ejemplo -// de /verify. La anterior (QmZEuGg…) solo declaraba un hash, sin firma, y en -// /verify no mostraba quién la ancló. Se enlaza a /verify y no a un gateway -// público, que a veces tarda o limita. -const AUDIT_ANCHOR_CID = 'QmaAXCmpqaptjDTJoRPcyFBUywrvuA7GfLyArVaQwd5VDM'; +// Aviso propio en mainnet (25-nov-2026): el hash de la política de jurisdicciones v1.5, +// firmado con una llave de pruebas de Nirium. Uso propio, no se cuenta como uso. Es el +// mismo ejemplo de /verify. `nirium verify --evidence --require-signature` pasa. +const AUDIT_ANCHOR_CID = 'Qmd7yun1FUDZ3p2DK36BxRpLaAA2EQjjWfZ1S77R4Z1v4F'; const AUDIT_ANCHOR_URL = `/verify?cid=${AUDIT_ANCHOR_CID}`; // Recibo firmado de un integrador externo (TIA, agent.id "tia-api", llave GATT3…), // mainnet, 12-nov-2026. `nirium verify` → SIGNATURE: VALID. Es su cuarto anclaje. @@ -163,9 +159,9 @@ export default function Home() { items: [ { icon: FileCheck, - title: lang('Signed mainnet anchor (our own test)', 'Ancla firmada en mainnet (prueba propia)'), + title: lang('Our own policy notice, signed and anchored on mainnet (own use)', 'Nuestro propio aviso de política, firmado y anclado en mainnet (uso propio)'), detail: `${AUDIT_ANCHOR_CID.slice(0, 18)}…`, - cta: lang('verify it, 2026-10-21', 'verifícala, 2026-10-21'), + cta: lang('verify it, 2026-11-25', 'verifícalo, 2026-11-25'), href: AUDIT_ANCHOR_URL, }, { @@ -231,7 +227,7 @@ export default function Home() { icon: Terminal, title: lang('The snippet above, run verbatim', 'El snippet de arriba, corrido tal cual'), detail: `${SNIPPET_TESTNET_TX.slice(0, 20)}…`, - cta: lang('testnet, 2026-11-09', 'testnet, 2026-11-09'), + cta: lang('testnet, 2026-11-25', 'testnet, 2026-11-25'), href: SNIPPET_TESTNET_TX_URL, }, ], @@ -284,8 +280,8 @@ export default function Home() { className="mt-5 text-base sm:text-lg text-white/60 max-w-2xl mx-auto leading-relaxed" > {lang( - 'The ledger already proves who paid, how much and when. Nirium keeps what it can\'t: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them. Payment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.', - 'El ledger ya prueba quién pagó, cuánto y cuándo. Nirium guarda lo que falta: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos. Rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.')} + 'The ledger already proves who paid, how much and when. Audit Trail records what it can\'t: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them. Payment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.', + 'El ledger ya prueba quién pagó, cuánto y cuándo. Audit Trail registra lo que falta: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos. Rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.')} {lang('Prove what the chain doesn\'t show', 'Demuestra lo que la cadena no muestra')}

{lang( - 'A Stellar payment is already public on the ledger. Audit Trail covers what is not: what your policy decided, including payments it refused and never signed, a record of what each payment bought, and any document or event off chain. Anyone can check it from a hash alone, and if anyone changes a receipt, it shows: the CID no longer matches.', - 'Un pago en Stellar ya es público en el ledger. Audit Trail cubre lo que no está ahí: lo que decidió tu política, incluidos los pagos que rechazó y nunca firmó, un registro de qué compró cada pago, y cualquier documento o evento fuera de la cadena. Cualquiera lo revisa solo con el hash, y si alguien cambia un recibo, se nota: el CID deja de coincidir.')} + 'A Stellar payment is already public on the ledger. Audit Trail covers what is not: the quote or terms behind a payment, what your policy decided (including payments it refused, or held for a person), what was delivered, and any later correction. Anchor just a hash and the document stays with you. Anyone can check a receipt from its CID, and if anyone changes it, it shows: the CID no longer matches.', + 'Un pago en Stellar ya es público en el ledger. Audit Trail cubre lo que no está ahí: la cotización o los términos detrás de un pago, lo que decidió tu política (incluidos los pagos que rechazó, o retuvo para una persona), qué se entregó y cualquier corrección posterior. Ancla solo un hash y el documento se queda contigo. Cualquiera revisa un recibo con su CID, y si alguien lo cambia, se nota: el CID deja de coincidir.')}

nirium cid receipt.json {lang(' shows it is the original, without relying on us.', ' demuestra que es el original, sin depender de nosotros.')}

- + + {lang('See examples: before paying, the decision, the delivery and afterwards', 'Ver ejemplos: antes de pagar, la decisión, la entrega y después')} + + {lang('Verify a receipt for a payment that never happened (AgentLedger blocked it, mainnet, 18 Nov 2026)', 'Verifica el recibo de un pago que nunca ocurrió (AgentLedger lo bloqueó, mainnet, 18 nov 2026)')}
@@ -422,7 +421,7 @@ export default function Home() {

- {lang('Ran verbatim with nirium@0.18.0 on testnet (9 Nov 2026): ', 'Corrido tal cual con nirium@0.18.0 en testnet (9 nov 2026): ')} + {lang('Ran verbatim with nirium@0.20.0 on testnet (25 Nov 2026): ', 'Corrido tal cual con nirium@0.20.0 en testnet (25 nov 2026): ')} {lang('402, then paid, then 200', '402, luego pago, luego 200')} . @@ -568,7 +567,7 @@ export default function Home() {

x402 • - MPP (testnet) + MPP (testnet, nirium 0.19.8) • {/* LCP salía aquí como "estándar abierto". Es la capa propia de Nirium, apagada mientras dura la revisión legal: no va en esta fila. */} diff --git a/apps/web/components/ui/ChatBot.tsx b/apps/web/components/ui/ChatBot.tsx index 403b2f69..57d9d971 100644 --- a/apps/web/components/ui/ChatBot.tsx +++ b/apps/web/components/ui/ChatBot.tsx @@ -85,7 +85,7 @@ const ChatBot = () => { // what the linked page already says - this guide never states a fact of its own. const kb: Record = { es: { - home: "El ledger de Stellar ya prueba quién pagó, cuánto y cuándo. **Nirium guarda lo que falta**: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos.\n\nSon rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.\n\n→ [Verifica un recibo](/verify) · [Docs](/docs)", + home: "El ledger de Stellar ya prueba quién pagó, cuánto y cuándo. **Audit Trail registra lo que falta**: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos.\n\nSon rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.\n\n→ [Verifica un recibo](/verify) · [Docs](/docs)", verify: "Pega un CID en [/verify](/verify), sin cuenta. Comprueba que el registro **no cambió** desde que se ancló y, si viene firmado, **qué llave lo firmó**. No prueba que su contenido sea verdad. Si guardaste tu copia del recibo, `nirium cid recibo.json --expect ` demuestra que es el original.\n\nAhí hay un ejemplo de un pago que nunca ocurrió: su política lo bloqueó, no hay transacción, y solo el recibo guarda la decisión.\n\nCómo anclar los tuyos: [Docs](/docs).", payouts: "[Payouts](/payouts) paga hasta **100 destinatarios** (contratistas, freelancers, pagos B2B; no es nómina de empleados) desde la wallet de una empresa, en un solo lote que **tú firmas**. Cada corrida se ancla en IPFS.\n\nEn testnet está abierto. En mainnet es **solo por invitación**.", pricing: "Planes y precios en [/pricing](/pricing). Nirium **nunca cobra un porcentaje** del dinero que mueves o guardas.", @@ -118,7 +118,7 @@ const ChatBot = () => { default: "Soy Nirium Guide. Puedo llevarte a:\n\n[Verifica un recibo](/verify) · [Payouts](/payouts) · [Treasury](/treasury) · [Developers](/developers) · [Docs](/docs) · [Precios](/pricing)\n\n¿Qué necesitas?" }, en: { - home: "Stellar's ledger already proves who paid, how much and when. **Nirium keeps what it can't**: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them.\n\nPayment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.\n\n→ [Verify a receipt](/verify) · [Docs](/docs)", + home: "Stellar's ledger already proves who paid, how much and when. **Audit Trail records what it can't**: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them.\n\nPayment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.\n\n→ [Verify a receipt](/verify) · [Docs](/docs)", verify: "Paste a CID at [/verify](/verify), no account needed. It checks the record **has not changed** since it was anchored and, if it is signed, **which key signed it**. It does not prove its contents are true. If you kept your copy of the receipt, `nirium cid receipt.json --expect ` proves it's the original.\n\nThere's an example of a payment that never happened: its policy blocked it, there is no transaction, and only the receipt records the decision.\n\nHow to anchor your own: [Docs](/docs).", payouts: "[Payouts](/payouts) pays up to **100 recipients** (contractors, freelancers, B2B payouts; not employee payroll) from one company wallet, in a single batch **you sign**. Every run is anchored to IPFS.\n\nOpen on testnet. On mainnet it is **invite-only**.", pricing: "Plans and prices are at [/pricing](/pricing). Nirium **never charges a percentage** of the money you move or hold.", diff --git a/apps/web/dictionaries/en.json b/apps/web/dictionaries/en.json index 78ad02aa..1745f3de 100644 --- a/apps/web/dictionaries/en.json +++ b/apps/web/dictionaries/en.json @@ -55,10 +55,12 @@ "receipt_title": "A receipt adds", "receipt_items": [ "What doesn't fit in a memo: \"0.02 USDC paid for GET /signals, request r-123, response delivered\"", - "A payment that never happened: if a policy refuses a $25 charge, there is no transaction; the decision can be anchored as a receipt", + "A payment that never happened, or one held for approval: a policy refuses a $25 charge, so there is no transaction, or waits for a person; the decision can be anchored as a receipt", "Records that never touch the chain: a partner's exchange-rate quote, the evidence behind an escrow release, the invoice or order being paid, or which version of the terms a user accepted", + "Several parties: each one signs its own part, so a missing or out-of-order step can be detected", + "A correction: a new receipt names the one it fixes, and the original stays as it was", "Private evidence: only its hash is public; the file stays with you, and anyone you give it to can check it matches", - "Who stands behind it: signed with the declarer's own Stellar key, so anyone can check the signer said it, not Nirium, and any later change shows" + "Who stands behind it, when it is signed: the declarer's own Stellar key, so anyone can check the signer said it, not Nirium, and any later change shows" ], "proves_footer": "If all you need to prove is the transfer, link the transaction. A receipt shows a record hasn't changed since it was anchored; it doesn't prove the record is true.", "design_notes_link": "Design notes", @@ -66,7 +68,7 @@ "planned_title": "What verification will add", "planned_items": [ "Anchors on Stellar itself: each batch of receipts gets one Merkle root in a Soroban contract, so a receipt can be proven from Stellar alone and its time comes from the ledger, not our server clock", - "Policy-decision receipts built in: every ALLOW or DENY from the pre-sign hook anchored automatically, including payments that were refused and never signed (AgentLedger already anchors its own decisions by hand)", + "Policy-decision receipts built in: every ALLOW or DENY from the pre-sign hook anchored automatically, including payments that were refused and never signed (AgentLedger anchored five of its own by hand on 18 Nov 2026)", "One receipt format for Stellar payments, x402 payments and escrow releases", "Reconciliation that flags a payment with no receipt, or a receipt with no payment" ], diff --git a/apps/web/dictionaries/es.json b/apps/web/dictionaries/es.json index d78861ea..936c649c 100644 --- a/apps/web/dictionaries/es.json +++ b/apps/web/dictionaries/es.json @@ -55,10 +55,12 @@ "receipt_title": "Un recibo agrega", "receipt_items": [ "Lo que no cabe en un memo: \"0.02 USDC por GET /signals, petición r-123, respuesta entregada\"", - "Un pago que nunca ocurrió: si una política rechaza un cobro de $25, no hay transacción; la decisión se puede anclar como recibo", + "Un pago que nunca ocurrió, o uno retenido: una política rechaza un cobro de $25, así que no hay transacción, o espera a una persona; la decisión se puede anclar como recibo", "Registros que nunca tocan la cadena: la cotización de un socio, la evidencia detrás de la liberación de un escrow, la factura u orden que se pagó, o qué versión de los términos aceptó un usuario", + "Varias partes: cada una firma lo suyo, así se puede detectar un paso que falta o está fuera de orden", + "Una corrección: un recibo nuevo nombra al que corrige, y el original queda como estaba", "Evidencia privada: solo su hash es público; el archivo se queda contigo y quien lo reciba puede comprobar que coincide", - "Quién responde por él: firmado con la propia llave de Stellar de quien lo declara; cualquiera puede comprobar que lo dijo quien firmó, no Nirium, y si alguien lo cambia después se nota" + "Quién responde por él, cuando va firmado: la propia llave de Stellar de quien lo declara; cualquiera puede comprobar que lo dijo quien firmó, no Nirium, y si alguien lo cambia después se nota" ], "proves_footer": "Si solo necesitas probar la transferencia, enlaza la transacción. Un recibo muestra que un registro no cambió desde que se ancló; no prueba que lo que dice sea verdad.", "design_notes_link": "Notas de diseño", @@ -66,7 +68,7 @@ "planned_title": "Lo que agregará la verificación", "planned_items": [ "Anclas en Stellar mismo: cada lote de recibos deja una raíz Merkle en un contrato de Soroban, así un recibo se prueba solo con Stellar y su hora viene del ledger, no del reloj de nuestro servidor", - "Recibos de decisiones de política integrados: cada ALLOW o DENY del hook anclado automáticamente, incluidos los pagos rechazados que nunca se firmaron (AgentLedger ya ancla sus propias decisiones a mano)", + "Recibos de decisiones de política integrados: cada ALLOW o DENY del hook anclado automáticamente, incluidos los pagos rechazados que nunca se firmaron (AgentLedger ancló cinco de las suyas a mano el 18 nov 2026)", "Un solo formato de recibo para pagos en Stellar, pagos x402 y liberaciones de escrow", "Conciliación que marca un pago sin recibo, o un recibo sin pago" ], diff --git a/apps/web/lib/privateAnchors.ts b/apps/web/lib/privateAnchors.ts index f53ac382..840aaa89 100644 --- a/apps/web/lib/privateAnchors.ts +++ b/apps/web/lib/privateAnchors.ts @@ -25,6 +25,7 @@ const DEFAULT_OWN_KEYS = [ 'GC473KU66OO5KCJV22Y5W7VLZV2XUQ3EHUEKRULBNI2OIOH7M2L3K2VA', // mainnet 'GBKRSEOACTOKL3O5IVEVAKKHPUHSNEL7OSLYDB57ODGIFQFYOT3B4HXP', // testnet + 'GCE5L5ZAXXLI4J6ZTMPIZKQBJLPUET33YCIZSQIC2AAMDV2U4A7FZE5Z', // mainnet, aviso de política v1.5 (25-nov-2026) ]; /**