fix(openapi): harden story 2.1 production lifecycle
CI / Rust Checks (push) Failing after 4m6s
CI / UI Checks (push) Has been skipped
CI / Frontend E2E (push) Has been skipped
CI / Community Image Smoke (push) Has been skipped
CI / Deploy (push) Has been skipped

This commit is contained in:
bsodfather committed 2026-08-29 00:48:22 +03:00
1 parent 2c94af6791
commit bc03c33387
46 files changed
+2198 -276

No files matched your search

+9
View File
@@ -80,6 +80,15 @@ impl ArtifactStore {
})
}
/// Verifies that the pinned root is still the same private directory that
/// was accepted at startup. This does not open data by pathname and is
/// suitable for a process readiness probe.
pub fn check_health(&self) -> Result<(), ArtifactError> {
let root = self.root()?;
let _lock = RootLock::shared(root)?;
ensure_root_unchanged(root)
}
/// Compatibility constructor. I/O returns the opening error fail-closed.
pub fn new(root: impl AsRef<Path>) -> Self {
Self {