Skip to content

Record the execution context declared by the computation library #3

Closed

Description

@PierreRaybaut

Problem

The recorder builds the execution context of an activity from the description of the call given by the computation library (describe_call), but keeps only two fields of it: the global options read (options) and the metadata of inputs read (metadata_read, recorded as digests). Any other rule the computation depends on and that the library declares cannot be recorded, so that a replay cannot check it.

This is needed by Sigima to record the convention used to select image pixels in regions of interest (pixel centers since Sigima 1.4): activities recorded with an earlier convention must be refused explicitly (unsupported_context) instead of being reported as different.

Proposal

When the description holds a context mapping, the recorder adds its entries, as plain JSON data, to the execution context of the activity. A replay already passes the whole recorded context back to the library (prepare_execution(..., context=...)), which checks it. Without such a mapping (current Sigima versions), nothing changes. No change of the ledger schema (context is a free object).

Activity

  1. PierreRaybaut commented on Oct 25, 2026

    @PierreRaybaut
    ContributorAuthor

    Implemented by #4 (merged into develop).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions