@@ -323,25 +323,8 @@ test_crosscheck_tolerance_does_not_hide_unrelated_dirt() {
323323 pass " Crosscheck bootstrap tolerance does not hide unrelated untracked files"
324324}
325325
326- test_repo_gitignores_every_documented_local_config () {
327- local label root_path sibling_path config_path ignored_tracked documented_configs
328- # An empty extraction means the AGENTS.md headings moved, not that every
329- # documented path is ignored: a silently empty loop would report coverage the
330- # audit no longer has.
331- documented_configs=$(
332- sed -n ' /^## 2\. Layout and state/,/^## 3\. Session start/p' " $ROOT /AGENTS.md" \
333- | grep -Eo ' config/[A-Za-z0-9_.-]+' \
334- | LC_ALL=C sort -u
335- )
336- [ -n " $documented_configs " ] \
337- || fail " no documented config/ paths were extracted from AGENTS.md; the audit covers nothing"
338- while IFS= read -r config_path; do
339- [ -n " $config_path " ] || continue
340- git -C " $ROOT " check-ignore --quiet --no-index " $config_path " \
341- || fail " documented local path is not ignored: $config_path "
342- done << EOF
343- $documented_configs
344- EOF
326+ test_repo_gitignores_local_roots () {
327+ local label root_path sibling_path ignored_tracked
345328 while IFS=' |' read -r label root_path sibling_path; do
346329 git -C " $ROOT " check-ignore --quiet --no-index " $root_path " \
347330 || fail " $label root artifact is not ignored: $root_path "
@@ -504,7 +487,7 @@ test_dirty_secondmate_skipped
504487test_crosscheck_artifacts_do_not_strand_stale_homes
505488test_artifact_bootstrap_preserves_updater_failure_status
506489test_crosscheck_tolerance_does_not_hide_unrelated_dirt
507- test_repo_gitignores_every_documented_local_config
490+ test_repo_gitignores_local_roots
508491test_diverged_secondmate_skipped
509492test_idempotent_already_current
510493test_registry_backstop_dedup_and_self_exclusion
0 commit comments