Skip to contents

Reads bundle_manifest.json from dir, verifies SHA-256 digests for every artifact (spec.yaml, simulation.R, report.qmd), validates spec.yaml with validate_spec_ir(), and statically verifies simulation.R with verify_compiled_r_ast().

Usage

verify_spec_bundle(dir)

Arguments

dir

Character path to an exported bundle directory.

Value

An S3 object of class spec_bundle_verification with elements valid, issues, manifest, spec_validation, and ast_verification.

Examples

spec <- new_spec_ir()
out_dir <- file.path(tempdir(), "specshiny_verify_example")
export_spec_bundle(spec, out_dir, overwrite = TRUE)
verify_spec_bundle(out_dir)
#> ✔ Bundle verification PASSED (SHA-256 checksums, spec_ir validation, and static AST check all clean).
unlink(out_dir, recursive = TRUE)