Skip to content

Rebuild verify badge demo as protocol-ready embedded verification page#257

Merged
GsCommand merged 1 commit into
mainfrom
codex/rebuild-verify-badge-demo-for-embedded-ui
May 21, 2026
Merged

Rebuild verify badge demo as protocol-ready embedded verification page#257
GsCommand merged 1 commit into
mainfrom
codex/rebuild-verify-badge-demo-for-embedded-ui

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • Replace the old demo page with a protocol-ready embedded verification badge example that explains how apps can surface verifier results inside product UIs.
  • Ensure the demo uses the canonical proof model (json.sorted_keys.v1, SHA-256, Ed25519, vC4WbcNoq2znSCiQ, runtime.commandlayer.eth) and removes stale/top-level proof fields and framing.
  • Provide an embeddable snippet and runtime-driven badge behavior so products can render real verification outcomes (verified, invalid, transport error) instead of faked samples.

Description

  • Rebuilt public/verify-badge-demo.html to include the required hero, badge states, what-it-does/does-not-do lists, verifier checks, live proof tie-in, embed example, demo receipt links, canonical proof model text, canonical nav/Docs dropdown, and footer groups.
  • Updated public/js/verify-badge.js to accept commandlayer-verify-badge while preserving cl-verify-badge for backward compatibility and to inject appropriate styles for both classes.
  • Normalized runtime results so the badge maps real verifier responses to VERIFIED, INVALID, or TRANSPORT_ERROR, adjusted displayed field keys (hash_matches) and made missing URL / fetch errors surface as TRANSPORT_ERROR.
  • Audited and referenced only existing demo receipts (/receipts/demo-valid-receipt.json and /receipts/demo-tampered-receipt.json) and did not change API routes or schema files.

Testing

  • Ran npm install in the repo, which completed successfully.
  • Ran npm test, which executed the test suite and reported all tests passing (26 tests passed).
  • Attempted npm run build, which failed because no build script is defined in the repository.
  • Ran cd examples/webhook-auto-verify && npm install and npm run check in the example, both of which completed successfully.

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:28pm
commandlayer-org Ready Ready Preview, Comment May 21, 2026 10:28pm
commandlayer-org111 Ready Ready Preview, Comment May 21, 2026 10:28pm

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