Skip to content

feat: store the provenance of tasks #334

Closed

Description

@uniqueg

Part of #321: step 6 "Provenance", as decided there. Serving it is #322.

Proposal

  • run.provenance() stored in the task document (provenance) via foca.plugins.ProvenanceStore: the prospective part at creation, the retrospective part (attempts, final reason) with the backend update.
  • Collections plugin_builds and pipelines (and one for failed runs) declared in the db config with the indexes FOCA documents (TTL index for failed runs).
  • Failed pipelines stored only if plugins.provenance.record_failed (default off).
  • Tests with 100% coverage; docs (operations: collections, retention) and "Upgrading" (new collections; existing tasks have no provenance).

Acceptance criteria

  • New tasks have their provenance stored; failed runs only with record_failed.
  • Tests pass with 100% coverage; docs build and pre-commit pass.

Activity

  1. added
    priority: high
    status: blocked
    on Oct 28, 2026
  2. added
    type: feature
    workload: days
    on Oct 28, 2026
  3. added
    status: in progress
    and removed
    status: blocked
    on Oct 31, 2026
  4. removed
    status: in progress
    on Oct 31, 2026
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

    priority: hightype: featureworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions