Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/pwg-derive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ DERIVE='
# PROVEN-WITH-AXIOMS and its 2.2 correspondence state is RECONCILED." And:
# a waived leg, an unavailable leg and any BRIDGE-PENDING leg do not count.
# Also require at least one current receipt with a full 40-character commit,
# resolving the leg’s receipt IDs through the supplied receipt map.
# resolving the receipt IDs of the leg through the supplied receipt map.
def counts($leg; $receipts):
($leg.token | accepted)
and $leg.state == "RECONCILED"
Expand Down
13 changes: 8 additions & 5 deletions scripts/test-gate-falsifiability.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,14 @@
# without ever exercising its target. This plants exactly that and asserts the suite
# reports FAILURE. Measured: this canary FAILS against the pre-fix harness.
meta_canary() {
local out
out=$( PASS=0; FAIL=0
pwg_case reject "meta-probe (expected to be reported as FAILING)" '.theorems[0].pwg = ' >/dev/null 2>&1
printf 'FAILCOUNT=%s' "$FAIL" )
if printf '%s' "$out" | grep -q 'FAILCOUNT=1'; then
# Isolate the probe's counters by saving and restoring them (not a subshell),
# so the probe's expected FAIL never leaks into the suite's totals.
local saved_pass="$PASS" saved_fail="$FAIL" probe_fail
PASS=0; FAIL=0
pwg_case reject "meta-probe (expected to be reported as FAILING)" '.theorems[0].pwg = ' >/dev/null 2>&1
probe_fail="$FAIL"
PASS="$saved_pass"; FAIL="$saved_fail"
if [ "$probe_fail" -eq 1 ]; then

Check failure on line 243 in scripts/test-gate-falsifiability.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=hyperpolymath_trope-checker&issues=AaH0OKI-lSOJflccukE4&open=AaH0OKI-lSOJflccukE4&pullRequest=129
ok "a canary whose own jq program is broken is reported as FAILURE (meta-canary)"
else
bad "a BROKEN canary still reported PASS — the suite cannot detect its own breakage"
Expand Down
Loading