Add deterministic hash utility for artifacts
Objective
Introduce a shared deterministic hashing utility for all pipeline artifacts.
Why this matters
Pipeline correctness depends on stable artifact identity.
Without a shared hashing mechanism, cache + validation are unreliable.
Parallelization metadata
Track
scripts
Depends on
Safe to run in parallel with
- pipeline nodes
- remotion cleanup
Merge risk
Files in scope
Primary:
Required implementation
1. Deterministic hashing function
Must:
- accept JSON or buffer
- produce stable SHA-256
2. Normalize JSON before hashing
Sort keys recursively.
3. Export helper
hashArtifact(content): string
Constraints
Acceptance criteria
Functional
Unit tests
Verification commands
Run hash on same object twice.
Expected result:
Explicitly out of scope
- pipeline integration changes
Suggested branch
refactor/s7-hash-utils
Suggested commit slug
phase-3-step-6-hash-utils
Add deterministic hash utility for artifacts
Objective
Introduce a shared deterministic hashing utility for all pipeline artifacts.
Why this matters
Pipeline correctness depends on stable artifact identity.
Without a shared hashing mechanism, cache + validation are unreliable.
Parallelization metadata
Track
scriptsDepends on
Safe to run in parallel with
Merge risk
Files in scope
Primary:
scripts/config/hash.tsRequired implementation
1. Deterministic hashing function
Must:
2. Normalize JSON before hashing
Sort keys recursively.
3. Export helper
hashArtifact(content): stringConstraints
Acceptance criteria
Functional
Unit tests
Verification commands
Run hash on same object twice.
Expected result:
Explicitly out of scope
Suggested branch
refactor/s7-hash-utilsSuggested commit slug
phase-3-step-6-hash-utils