CodeSampleX

Sample

verify pkg:npm/path-to-regexp@8.4.2

sha256:d1885bc270eecc923f7bb07b638a5c8f1ebe40ef4e319b50a89eac3250a32caa

Publication state. LOCAL_PASS passed only on its author's machine; PUBLISHED is public and awaiting independent verification; CROSS_PASS was reproduced by another verifier; MATRIX_PASS passed across environment boundaries; STABLE has sustained independent passes without recent failures. Evidence strength. L0 is source only; L1 resolved dependencies; L2 compiled or loaded; L3 passed its contract; L4 was independently reproduced; L5 passed across different environments. MIT-0

Execution evidence

Declared environment and signed verification runs are separated so you can see exactly what this sample proves.

Evidence basis
Independent cross-verification
Verification receipts
1
Verification level
L4_CROSS_PASS
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@1
2026-08-20

Case

HOW
Goal
verify pkg:npm/path-to-regexp@8.4.2
Packages
Created
2026-08-20T13:56:46Z

Contract

  1. match(path) matches named parameters and returns the matched path and decoded parameter object
  2. match(path) matches wildcard parameters (*splat) capturing multi-segment paths as an array of decoded strings
  3. match(path) matches optional path segments wrapped in braces ({/:id}) returning empty parameters when omitted
  4. compile(path) transforms a parameter object into a URL path string, properly encoding parameter values
  5. compile(path) transforms array parameters for wildcard segments into delimited path segments
  6. pathToRegexp(path) returns an object containing a RegExp instance and keys array matching parameter definitions
  7. parse(path) produces a TokenData structure and stringify(data) reconstructs the pattern string
  8. match and parse throw PathError for invalid path syntax such as missing parameter names or unclosed braces

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous