CodeSampleX

Sample

verify pkg:npm/%40isaacs/balanced-match@4.0.1

sha256:f3def8c4726d5b78b815ccf11700c200623c9eea1d6708b3a1f3690e4ca3daf5

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/%40isaacs/balanced-match@4.0.1
Packages
Created
2026-08-20T14:11:12Z

Contract

  1. balanced extracts the first matching pair of balanced delimiters and returns start, end, pre, body, and post substrings
  2. balanced matches balanced nested delimiter pairs by identifying the outermost balanced match
  3. balanced matches the first closed delimiter pair when multiple sequential delimiter pairs are present
  4. balanced supports RegExp delimiters for matching dynamic and formatted delimiters
  5. range returns character index bounds of the first balanced delimiter match
  6. balanced returns undefined when delimiters do not match or remain unclosed

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous