v0.11.0: config provenance + run stamps (#40)#59
Merged
NewGraphEnvironment merged 2 commits intomainfrom Apr 27, 2026
Merged
Conversation
Two layers in one PR: 1. provenance: block in config.yaml + cfg$provenance + lnk_config_verify() 2. lnk_stamp() with full runtime scope, supersedes #24 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Closes the drift attribution loop. Pipeline outputs that shift between runs on the same DB state can now be traced back to which input changed. Supersedes the narrower scope of #24. - inst/extdata/configs/{bcfishpass,default}/config.yaml: provenance: blocks with sha256 checksums for every tracked file. External files record source URL + upstream_sha + path within source repo. Generated files record generated_from + generated_by + generator_sha. - lnk_config() parses provenance, exposes cfg$provenance (named list). - lnk_config_verify(cfg, strict) recomputes sha256, returns drift tibble. Warns on drift; strict = TRUE errors. - lnk_stamp(cfg, conn, aoi, db_snapshot) + lnk_stamp_finish() + format.lnk_stamp(type) + print.lnk_stamp(). Captures provenance with current observed checksums, software versions and git SHAs (3-tier fallback: env var, .git/HEAD walk, NA), DB snapshot row counts when conn is provided. - data-raw/compare_bcfishpass_wsg.R emits stamp markdown at head of every WSG run; captured to log via standard stderr redirect. - 121 new tests; 453 total pass. - digest added to Suggests. Version bump 0.10.0 -> 0.11.0. Closes #40 Relates to #24 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
NewGraphEnvironment
added a commit
that referenced
this pull request
Apr 27, 2026
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Config-bundle provenance + run stamps. Pipeline outputs that shift between runs on the same DB state can now be traced back to which input changed.
inst/extdata/configs/{bcfishpass,default}/config.yamlcarryprovenance:blocks with sha256 checksums for every tracked file (12 files each). External (bcfishpass) files recordsourceURL +upstream_sha(ea3c5d8, synced 2026-04-13) +pathwithin source repo. Generatedrules.yamlrecordsgenerated_from+generated_by+generator_sha. Hand-authored files record link's git sha at edit time.lnk_config()parses provenance, exposescfg$provenance.print(cfg)shows count of tracked files.lnk_config_verify(cfg, strict)recomputes sha256 for every provenanced file, returns(file, expected, observed, drift, missing)tibble. Warns on drift;strict = TRUEerrors.digestadded to Suggests.lnk_stamp(cfg, conn, aoi, db_snapshot)returns anlnk_stampS3 list capturing provenance + software versions + git SHAs (3-tier fallback) + DB snapshot row counts + AOI + start_time.lnk_stamp_finish(stamp, result, end_time)finalizes;format(stamp, "markdown")renders for report appendix or run-log dump.data-raw/compare_bcfishpass_wsg.Remits stamp markdown at the head of every WSG run, captured intodata-raw/logs/*.txtvia the standard stderr redirect.Numbers
Files
R/lnk_config.R— extended (provenance parsing)R/lnk_config_verify.R— newR/lnk_stamp.R— new (lnk_stamp,lnk_stamp_finish,format.lnk_stamp,print.lnk_stamp)inst/extdata/configs/bcfishpass/config.yaml—provenance:blockinst/extdata/configs/default/config.yaml—provenance:blockdata-raw/compare_bcfishpass_wsg.R— stamp emissiontests/testthat/test-lnk_config.R— extendedtests/testthat/test-lnk_config_verify.R— newtests/testthat/test-lnk_stamp.R— newDESCRIPTION—digestto Suggests; 0.10.0 → 0.11.0NEWS.md— 0.11.0 entryTest plan
devtools::test(): 453 PASS, 0 FAILlnk_config_verify()runs clean on both bundleslnk_stamp()runs without DB; with DB; renders markdown/code-checkround 1: 1 fragile finding fixed (.lnk_read_git_headempty-file edge)Cross-refs
Closes #40. Supersedes the narrow report-appendix scope of #24 (markdown rendering of the run stamp covers that consumer).
🤖 Generated with Claude Code