fix(okf): fail closed in check-okf.sh --changed on missing base or merge-base #103

Merged
clawdie merged 2 commits from clawdie/fix/okf-changed-fail-closed into main 2026-11-22 16:44:55 +01:00 AGit
Owner

Align clawdie-iso/scripts/check-okf.sh --changed with colibri/scripts/check-okf.sh
and the NUL-safe full-scan path:

  • Fail closed (exit 1) when --base / OKF_BASE_REF does not resolve to a commit
    or has no merge-base with HEAD (preventing vacuous PASS: 0 on shallow/missing
    CI checkouts).
  • Include untracked non-ignored *.md files in --changed mode using NUL-delimited
    git output (-z) and enforce the same embedded-newline fail-closed guard.
  • Add 5 regression checks in tests/check-okf-scan-test.sh covering missing base,
    unrelated history (no merge-base), valid changed Unicode + deleted doc,
    untracked invalid markdown, and embedded-newline filenames in --changed mode.

Verified: 9/9 PASS on Debian 13 (debby) and FreeBSD 15.1-RELEASE-p7 (valhala).

Align clawdie-iso/scripts/check-okf.sh --changed with colibri/scripts/check-okf.sh and the NUL-safe full-scan path: - Fail closed (exit 1) when --base / OKF_BASE_REF does not resolve to a commit or has no merge-base with HEAD (preventing vacuous PASS: 0 on shallow/missing CI checkouts). - Include untracked non-ignored *.md files in --changed mode using NUL-delimited git output (-z) and enforce the same embedded-newline fail-closed guard. - Add 5 regression checks in tests/check-okf-scan-test.sh covering missing base, unrelated history (no merge-base), valid changed Unicode + deleted doc, untracked invalid markdown, and embedded-newline filenames in --changed mode. Verified: 9/9 PASS on Debian 13 (debby) and FreeBSD 15.1-RELEASE-p7 (valhala).
fix(okf): fail closed in check-okf.sh --changed on missing base or merge-base (Sam & Antigravity)
All checks were successful
format-check / gates (pull_request) Successful in 2m52s
f9d65accee
Align clawdie-iso/scripts/check-okf.sh --changed with colibri/scripts/check-okf.sh
and the NUL-safe full-scan path:
- Fail closed (exit 1) when --base / OKF_BASE_REF does not resolve to a commit
  or has no merge-base with HEAD (preventing vacuous PASS: 0 on shallow/missing
  CI checkouts).
- Include untracked non-ignored *.md files in --changed mode using NUL-delimited
  git output (-z) and enforce the same embedded-newline fail-closed guard.
- Add 5 regression checks in tests/check-okf-scan-test.sh covering missing base,
  unrelated history (no merge-base), valid changed Unicode + deleted doc,
  untracked invalid markdown, and embedded-newline filenames in --changed mode.

Verified: 9/9 PASS on Debian 13 (debby) and FreeBSD 15.1-RELEASE-p7 (valhala).
docs(okf): update check-okf.sh header comment to match --changed gate
All checks were successful
format-check / gates (pull_request) Successful in 3m15s
297a285423
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
clawdie/clawdie-iso!103
No description provided.