CodeSampleX

Sample

verify electronToChromium in pkg:npm/electron-to-chromium@1.5.403

sha256:c93bad18cf0391557bcbce4ff290b8e9907cdb9cb416d2baaaac92f60d367be8

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment linux 24 · ubuntu · glibc 2.39 x64 npm

Verification-run environments

Environment Contract Stages Run
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-26

Case

HOW
Goal
verify electronToChromium in pkg:npm/electron-to-chromium@1.5.403
Packages
Symbols
  • electronToChromium
Created
2026-08-26T05:16:14Z

Contract

  1. electronToChromium(query) with major.minor string queries 'versions' map and returns major Chromium version string (e.g. '1.4' -> '53', '34.0' -> '132', '44.0' -> '152')
  2. electronToChromium(query) with major.minor.patch string (split length > 2) queries 'fullVersions' map and returns full Chromium version string (e.g. '1.4.0' -> '53.0.2785.113', '0.20.0' -> '39.0.2171.65', '34.0.0' -> '132.0.6834.83')
  3. electronToChromium(1) numeric literal is coerced to '1.0' and returns '49', whereas electronToChromium('1') string literal is uncoerced and returns undefined
  4. electronToChromium(number) converts numeric float values to strings (e.g. 1.4 -> '53')
  5. electronToChromium('34') returns undefined because major-only queries require a minor version segment ('34.0')
  6. electronToChromium(query) returns undefined for unknown or unmapped version strings ('999.0', 'unknown')
  7. electronToChromium(null) and electronToChromium(undefined) throw TypeError when accessing split method

Files

  • NOTES.md
  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Download the source artifact (tar.gz)

Origin Seeder

anonymous