Mondaic

salvus.flow.acta.memo.publish

salvus.flow.acta.memo.publish salvus flow acta memo publish

Publish cached results through shared content-store bindings.

A result blob records its envelope key and output references. Binding the key to this blob lets other machines discover the result.

Functions

publish()

def publish(
    store: ContentStoreBase, key: str, output_refs: Mapping[str, Any]
) -> str: ...

Write a result blob for key and bind the key to it.

Repeated publication replaces the key’s binding; the last write wins.

Parameters
  • store ContentStoreBase — Where to write the blob and the binding.
  • key str — The envelope key this result was computed for.
  • output_refs Mapping[str, Any] — Mapping from output name to digest(s).
Returns str — The digest of the result blob.

resolve()

def resolve(store: ContentStoreBase, key: str) -> dict[str, Any] | None: ...

Return the published output_refs for key, or None.

Return None for missing, invalid, unsupported, or unreadable results, including results whose output data is missing.

Parameters
  • store ContentStoreBase — The store to consult, nearest tier first.
  • key str — The envelope key to resolve.
Returns dict[str, Any] | None