···314314 match vertex with
315315 | Content_vertex _ -> None
316316 | Iri_vertex iri ->
317317- Forest.find_opt forest.resources iri
317317+ Option.some @@
318318+ match Forest.find_opt forest.resources iri with
319319+ | None ->
320320+ Reporter.fatalf Internal_error "Attempted to export publication but tree `%a` has not yet been planted" Iri.pp iri
321321+ | Some result -> result
318322 in
319323 match publication.format with
320324 | Json_blob ->
···365369 Forest.plant_resource (T.Article article) forest.graphs forest.resources
366370 | Job.Publish publication ->
367371 export_publication ~env ~forest publication
372372+ (* TODO: This MUST be deferred until after all the trees have been evaluated. *)
368373 end
369374370375let eval : transition = fun forest ->