Sample
Handle comment prefixes, negation flags, basename matching, dotfiles, and globstar segments in minimatch
sha256:3ae907b811ef9a96a655b6cdb6cbaf64b9acc9b816653b98a3ea8d76e57b190c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- node
- Operating system
- linux
- Architecture
- x64
- Runtime
- node
- Language
- node
- Package manager
- npm
Verification-run environments
- Execution context
- node 22
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Language
- javascript
- Package manager
- npm
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18
Case
- Goal
- Handle comment prefixes, negation flags, basename matching, dotfiles, and globstar segments in minimatch HOW
- Packages
-
minimatch 10.1.1
- Environment
- node
- Created
- 2026-08-18T00:17:47Z
Commonly assumed
patterns starting with a hash character match literal hash-prefixed filenames by default
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- assert minimatch treats leading hash characters as comments that match nothing by default, requiring nocomment or backslash escaping to match literal hashes
- assert negation patterns with leading exclamation marks invert matches by default, while flipNegate preserves positive matches and nonegate matches literal exclamation marks
- assert matchBase matches slash-less patterns against path basenames but is ignored when the pattern contains a slash
- assert dotfiles are excluded from wildcards and globstars by default unless explicitly matched or dot mode is enabled
- assert globstar matches zero or more directory levels when isolated between slashes but acts as a single wildcard when concatenated with other characters
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18 · ed25519:d91480838ac982c9