Skip to content

feat(inventory): persist committed snapshots - #4

Draft
chalabi2 wants to merge 3 commits into
aep86/l3-inventory-snapshotfrom
aep86/l4-inventory-material
Draft

feat(inventory): persist committed snapshots#4
chalabi2 wants to merge 3 commits into
aep86/l3-inventory-snapshotfrom
aep86/l4-inventory-material

Conversation

@chalabi2

@chalabi2 chalabi2 commented Jul 27, 2026

Copy link
Copy Markdown
Owner

🔧 Purpose of the Change

  • New feature implementation
  • Bug fix
  • Documentation update
  • Code refactoring
  • Dependency upgrade
  • Other

📌 Related Issues

✅ Checklist

  • I've updated relevant documentation
  • Code follows Akash Network's style guide
  • I've added/updated relevant unit tests
  • Dependencies have been properly updated
  • I agree and adhered to the Contribution Guidelines

📎 Notes for Reviewers

  • Persists exact signed snapshot payloads in provider persistent config.
  • Keeps records pending until L-10 confirms a successful on-chain post.
  • Serves posted snapshots by latest record or exact SHA-256 hash.
  • Exposes latest posted snapshot metadata through public provider status.
  • Live challenge snapshots never mutate committed snapshot state.
  • Missing snapshot state leaves the existing status response unchanged.
  • L-10 owns periodic generation, broadcast, retry, and post confirmation.

@chalabi2
chalabi2 force-pushed the aep86/l4-inventory-material branch from 20e27da to 8065a08 Compare July 27, 2026 18:34
chalabi2 added 2 commits July 27, 2026 16:59
Keep exact signed payloads pending until a successful chain post marks them public, and recover both pending and posted records across provider restarts.

Signed-off-by: Joseph Chalabi <chalabi.joseph@gmail.com>
Expose only successfully posted snapshots by latest record or exact hash while keeping live challenge requests read-only.

Signed-off-by: Joseph Chalabi <chalabi.joseph@gmail.com>
@chalabi2
chalabi2 force-pushed the aep86/l4-inventory-material branch from 8065a08 to 469b9db Compare July 28, 2026 00:00
@chalabi2
chalabi2 changed the base branch from aep86/l4-inventory-base to aep86/l3-inventory-snapshot July 28, 2026 00:00
Expose metadata for the latest posted signed inventory snapshot through the
existing provider status response. Missing or unreadable snapshot state leaves
the legacy status response available.

Signed-off-by: Joseph Chalabi <chalabi.joseph@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant