Verification Log: 08-current-run.txt

Companion verification log or original code sample for the linked tutorial, preserved in full with local user paths redacted; execution scope follows the recorded run.

(1) PEP 440 version specifiers (Python, packaging 26.3)
  >=2.0,<3     -> ['2.0.0', '2.1.0', '2.5.3']
  ~=2.1        -> ['2.1.0', '2.5.3']
  ==2.*        -> ['2.0.0', '2.1.0', '2.5.3']
  !=2.5.3,>=2  -> ['2.0.0', '2.1.0', '3.0.0']
  Pre-release 2.1.0rc1: filter excludes it when a final release is available -> ['2.1.0']
  But selects it when only pre-releases are available -> ['2.1.0rc1']
  Direct membership check '2.1.0rc1' in SpecifierSet('>=2.0') = True (differs from filter semantics)

(2) A backtracking dependency resolver (toy implementation)
  Try myapp==1.0
    Try llmkit==3.0
    x llmkit==3.0 causes conflict, backtracking
    Try llmkit==2.1
      Try tokenizerx==2.2
  Solution: {'myapp': '1.0', 'llmkit': '2.1', 'tokenizerx': '2.2'}

(3) Lockfile: pinning exact versions + content hashes
  lock: {"tokenizerx": {"version": "2.2", "sha256": "b130436f9d58671dc77b91d6898fc10e125de4106ab56...
  Install original artifact: hash verification PASSED
  Install tampered artifact: hash verification FAILED -> installation refused

(4) npm semver ranges (via Node's semver package)
  ^1.2.3     -> ["1.2.3","1.2.9","1.3.0","1.9.9"]
  ~1.2.3     -> ["1.2.3","1.2.9"]
  ^0.2.3     -> ["0.2.5"]
  1.x        -> ["1.2.3","1.2.9","1.3.0","1.9.9"]
  >=1.3 <2   -> ["1.3.0","1.9.9"]

(5) Real package-lock.json in local web/ directory
  lockfileVersion=3, 8 direct dependencies: ['esbuild', 'jsdom', 'react', 'react-dom', 'semver', 'typescript', 'vue', 'zod']; 119 total packages in lockfile (including transitive dependencies)
  react entry: {'version': '19.3.0', 'resolved': 'https://registry.npmjs.org/react/-/react', 'integrity': 'sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKt'}
Back to Tutorials Back to Learn →Back to top ↑
On this page
Tutorial diagram100%
Tutorial diagram