Browse Source

assetorigin_check: skip _mint/_bake workdirs alongside _build in the sidecar walk

The G-135 checker's directory walk skipped only {.git _build} - authored
2026-07-28, before the G-155 _build -> _mint/_bake workdir renames. A
default 'check' sweep would descend any _mint staging or _bake kit trees
under its territory (src/ minus buildsuites, scriptlib/, goals/) and
could classify staged asset copies. Skip set is now
{.git _build _mint _bake}; usage comment updated to match.

Verified: selftest 16/16 passed; default check sweep 9/9 verified.

Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.com
master
Julian Noble 7 days ago
parent
commit
7c3ae51464
  1. 6
      scriptlib/developer/assetorigin_check.tcl

6
scriptlib/developer/assetorigin_check.tcl

@ -28,8 +28,8 @@
# Find *.assetorigin.toml sidecars under the given files/directories and
# classify each paired asset. Default paths: src/ (minus buildsuites/),
# scriptlib/ and goals/ under the repo root containing this script - the
# versioned territory where records live; .git and _build subtrees are
# always skipped. Build outputs (bin/, root modules/ and lib/) and
# versioned territory where records live; .git, _build, _mint and _bake
# subtrees are always skipped. Build outputs (bin/, root modules/ and lib/) and
# reference material are walked only when named explicitly. Findings
# (artifact-absent, replaced, source-absent, stale) print one line each;
# verified and ignored records are counted, and listed too with -all.
@ -241,7 +241,7 @@ proc find_sidecars {paths {skipdirs {}}} {
set p [lindex $queue 0]
set queue [lrange $queue 1 end]
if {[file isdirectory $p]} {
if {[file tail $p] in {.git _build} || $p in $skips} continue
if {[file tail $p] in {.git _build _mint _bake} || $p in $skips} continue
foreach sub [lsort [glob -nocomplain -directory $p *]] {
lappend queue $sub
}

Loading…
Cancel
Save