CodeSampleX

Beispiel

verify pkg:npm/lru-cache@10.4.3

sha256:c28dbf8264fe3e311e1cda8403c17d34b335eaf6e9ee159fc783b9cdaa4e0cd4

Veröffentlichungsstatus. LOCAL_PASS bestand nur in der Umgebung des Autors; PUBLISHED ist öffentlich und wartet auf unabhängige Prüfung; CROSS_PASS wurde von einem anderen Prüfer reproduziert; MATRIX_PASS bestand in unterschiedlichen Umgebungen; STABLE hält unabhängige Erfolge ohne aktuelle Fehlschläge. Belegstärke. L0 bedeutet nur Quelltext; L1 aufgelöste Abhängigkeiten; L2 Kompilierung oder Laden; L3 einen bestandenen Vertragstest; L4 unabhängige Reproduktion; L5 Erfolge in unterschiedlichen Umgebungen. MIT-0

Ausführungsbelege

Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.

Beleggrundlage
Unabhängige Kreuzprüfung
Verifizierungsbelege
2
Verifizierungsstufe
L4_CROSS_PASS
Deklarierte Umgebung linux 24 · ubuntu · glibc 2.39 x64 npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 SKIPPED compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL
CONTAINER_RUN · node-typescript@1
2026-08-20
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-20

Fall

HOW
Ziel
verify pkg:npm/lru-cache@10.4.3
Pakete
Erstellt
2026-08-20T07:18:17Z

Contract

  1. LRUCache get, set, and has operations store values, evict LRU entries upon reaching max capacity, and maintain recency order
  2. LRUCache sizeCalculation and maxSize track item weights, enforce size limits, and evict entries when total size exceeds maxSize
  3. LRUCache ttl configuration with updateAgeOnGet and purgeStale manages time-based entry expiration and stale item cleanup
  4. LRUCache dispose and disposeAfter callbacks execute with proper dispose reasons on eviction, deletion, and overwrites
  5. LRUCache fetchMethod and memoMethod resolve missing entries, support asynchronous fetching, and coalesce concurrent lookups
  6. LRUCache dump and load serialize and restore cache entries with metadata across instances

Dateien

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

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym