Skip to content

Remove object_type parameter from actions

The evaluate_graph action (and perhaps other actions) has an object_type parameter which is probably no longer required as workflow caches can now only contain one object type.

Please check it is safe to remove this parameter from any actions that use it, and if so, devise a plan to remove it.

Possible future work out of scope for this task

  • Use _aggregation_entries instead of re-reading every cache per matrix job (the O(groups × caches) scan on the roadmap).

  • retire the now-redundant len(entries) != 1 checks inside evaluate_graph/best_graph

  • Shared ActionMetadata builder across best_graph, summarise, merge_graphs, plot.

  • Cross-repo refresh of causaliq-workflow/docs/architecture/cache_type_model.md.

  • Decide the fate of validation.validate_metric_specs: it is public API but now has no caller inside src after summarise adopted its alias-aware parser.

  • Optionally, apply header/format/footer to the CLI terminal table (cli/common._print_summary_table) so it matches the file outputs.

  • Cross-repo — refresh causaliq-workflow/docs/architecture/cache_type_model.md (it still shows result.reference and result.evaluated_graph).

  • Later audit — shared ActionMetadata builder once best_graph, summarise, merge_graphs and plot adopt the same contract.