Skip to content

v0.7.4

Choose a tag to compare

@justapithecus justapithecus released this 13 Feb 03:36
· 63 commits to main since this release
7b4760c

Documented complexity, enforced bounds

Summary

v0.7.4 adds a complexity bounds contract documenting the cost of every public method, resolves all known complexity violations, and applies a focused readability pass to volume internals. No API changes; no migration required.

Highlights

  • CONTRACT_COMPLEXITY.md: Every public method now has documented cost in store calls, memory, and CPU — cost exceeding the bound is a bug
  • 4 complexity violations fixed: sort-at-load-time for blocks (CX-1/CX-6), single-pass ListPartitions (CX-3), filepath.WalkDir for fsStore.List (CX-7)
  • 3 complexity items reclassified: ListManifests validation Gets (contractually required), Snapshot(id) degraded fallback (documented path), Write partitioned memory (interface aliases, not copies)
  • Cross-references: 4 existing contracts now link to CONTRACT_COMPLEXITY.md for cost definitions
  • Readability pass: 10× fmt.Errorf → errors.New, extracted resolveParent method and ensureBlocksSortedByOffset helper

Upgrade Notes

  • No API changes; all improvements are internal and transparent
  • No migration required; existing data is compatible without modification
  • Safe to upgrade from v0.7.3

References

Full Changelog: v0.7.3...v0.7.4

What's Changed

  • docs(contracts): 📝 add complexity bounds contract and cross-references by @justapithecus in #129
  • perf(core): ⚡️ resolve complexity violations and activate CONTRACT_COMPLEXITY by @justapithecus in #130
  • refactor(core): ♻️ post-complexity readability pass in volume.go by @justapithecus in #131
  • docs(meta): 📝 v0.7.4 changelog and README update by @justapithecus in #132

Full Changelog: v0.7.3...v0.7.4