#!/usr/bin/env bash # SC6 content-retention decision — extracted from 99-dryrun.sh so the DROP detector (the deterministic # guard against the llm-security 87-file-drop class, commit 836b8e9) is independently unit-testable # (5d112cb). Given the extract's git-tracked file count, the live monorepo's count for the same paths, and # whether an intentional >1MB blob-strip applies to this target, it prints the SC6 report-cell label and # EXITS NON-ZERO on a real DROP — a shortfall NOT explained by a blob-strip. A blob-strip target may # legitimately shed >1MB blobs, so a shortfall there is reported (exit 0), never failed. # # Usage: sc6-check.sh # blob_strip: True/true → intentional >1MB strip (shortfall allowed); anything else → shortfall = DROP. set -u ext="${1:?ext_files}" live="${2:?live_files}" blob="${3:-false}" if [ "$ext" -lt "$live" ]; then case "$blob" in True|true) echo "${ext}/${live} (blob-strip)"; exit 0 ;; *) echo "${ext}/${live} DROP"; exit 1 ;; esac fi echo "${ext}/${live}" exit 0