Skip to content

Add live protocol proof widget to homepage#260

Merged
GsCommand merged 1 commit into
mainfrom
codex/add-live-proof-widget-to-homepage
May 21, 2026
Merged

Add live protocol proof widget to homepage#260
GsCommand merged 1 commit into
mainfrom
codex/add-live-proof-widget-to-homepage

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • Replace the homepage's simulated proof animation with an honest, live protocol loop that calls production runtime and verifier endpoints and demonstrates that valid receipts verify and tampered receipts reject.
  • Surface the Resolve → Sign → Verify → Tamper → Reject flow so visitors can watch real signing and verification behavior without introducing secrets, changing APIs, or altering schemas.

Description

  • Inserted a new “Live Protocol Proof” section into public/index.html (placed after the hero/receipt preview) with eyebrow/headline/subheadline, five live step rows (Resolve, Sign, Verify, Tamper, Reject), summary panels, CTAs, and a collapsible raw-JSON view.
  • Implemented plain-browser JavaScript that calls POST https://runtime.commandlayer.org/trust-verification/sign/v1.0.0 to obtain a receipt, posts the receipt to POST https://runtime.commandlayer.org/verify for verification, clones and tampers the receipt (result.payload.message), and re-posts to /verify to demonstrate rejection, while compacting long hashes and showing per-step statuses.
  • Kept the existing hero receipt animation but relabeled it as a preview and modified the original animation script to be an explanatory preview while the new live widget performs the real calls; added transport/error handling to surface TRANSPORT_ERROR and the message “Runtime or verifier unavailable. No success was faked.”

Testing

  • Ran npm install and npm test, and the test suite completed with all tests passing (26 passed, 0 failed).
  • Ran the example checks under examples/webhook-auto-verify with npm install and npm run check, and npm run check completed successfully.
  • Attempted npm run build but the repository does not define a build script, so no build step was executed.

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
commandlayer-commandlayer-org Ready Ready Preview, Comment May 21, 2026 10:51pm
commandlayer-org Ready Ready Preview, Comment May 21, 2026 10:51pm
commandlayer-org111 Ready Ready Preview, Comment May 21, 2026 10:51pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant