Repository navigation
chore(deps): bump vendored audit-harness to 1.4.0 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| source-repo: jeremylongshore/intent-audit-harness | ||
| source-version: v1.3.1 | ||
| source-tarball: https://github.com/jeremylongshore/intent-audit-harness/archive/refs/tags/v1.3.1.tar.gz | ||
| installed-at: 2026-07-29T06:10:55Z | ||
| source-version: v1.4.0 | ||
| source-tarball: https://github.com/jeremylongshore/intent-audit-harness/archive/refs/tags/v1.4.0.tar.gz | ||
| installed-at: 2026-09-05T02:13:18Z |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| v1.3.1 | ||
| v1.4.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,6 +183,21 @@ def d_perf(repo, deps): | |
| def d_a11y(repo, deps): | ||
| if any(x in deps for x in ("axe-core", "@axe-core/playwright", "jest-axe", "pa11y")): | ||
| return True, "a11y tooling dep" | ||
| # Accessibility is not a web-only layer. QML, native, CLI/TUI, mobile, and | ||
| # desktop projects commonly assert roles, names, focus, keyboard routing, | ||
| # contrast, or screen-reader contracts in ordinary language-native tests. | ||
| # Keep the filename signal test-specific so an accessibility.md design | ||
| # document alone does not masquerade as executable evidence. | ||
| if has_dir(repo, "a11y", "accessibility"): | ||
| return True, "a11y/accessibility test dir" | ||
| test_exts = (".js", ".ts", ".py", ".go", ".rs", ".java", ".kt", ".cs", ".rb") | ||
| if has_file_matching( | ||
| repo, | ||
| lambda f: ("a11y" in f.lower() or "accessibility" in f.lower()) | ||
| and ("test" in f.lower() or "spec" in f.lower()) | ||
| and f.lower().endswith(test_exts), | ||
|
Comment on lines
+191
to
+198
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- changed hunk ---'
git diff -- .audit-harness/scripts/audit.py
printf '%s\n' '--- relevant definitions and callers ---'
rg -n -A35 -B12 'def (has_dir|has_file_matching|d_a11y)|d_a11y|a11y/accessibility test dir' .audit-harness/scripts/audit.pyRepository: intent-solutions-io/buzz Length of output: 7476 🤖 get_repo_knowledge executed:
Length of output: 1772 Scope accessibility evidence to test locations. 🤖 Prompt for AI Agents |
||
| ): | ||
| return True, "a11y/accessibility test file" | ||
| return False, "no accessibility test infrastructure detected" | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,11 @@ count_pattern() { | |
| local label="$1" | ||
| local pattern="$2" | ||
| local count | ||
| count=$(grep -rn "$pattern" "$TEST_DIR" 2>/dev/null | wc -l) | ||
| # `|| true`: under pipefail a zero-match grep exits 1, which killed the whole | ||
| # scan mid-report (truncated output, exit 1) on any clean directory — the | ||
| # "gate that looks like it ran" failure class from 1.3.1. wc's count is | ||
| # captured either way. | ||
| count=$(grep -rn "$pattern" "$TEST_DIR" 2>/dev/null | wc -l) || true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/usr/bin/env bash
set -o pipefail
set +e
count=$(grep -rn 'needle' /path/that/does/not/exist 2>/dev/null | wc -l) || true
printf 'count=%s\n' "$count"Repository: intent-solutions-io/buzz Length of output: 170 🏁 Script executed: #!/usr/bin/env bash
set -o pipefail
printf '%s\n' '--- target script ---'
sed -n '1,135p' .audit-harness/scripts/bias-count.sh
printf '%s\n' '--- related shell options and callers ---'
rg -n -C 3 'bias-count|TEST_DIR|count=.*grep|grep -rn' .audit-harnessRepository: intent-solutions-io/buzz Length of output: 17654 🤖 get_repo_knowledge executed:
Length of output: 1753 Do not mask
🤖 Prompt for AI Agents |
||
| TOTAL_BIAS=$((TOTAL_BIAS + count)) | ||
| printf " %-30s %d\n" "$label" "$count" | ||
| } | ||
|
|
@@ -88,13 +92,20 @@ count_pattern "Symmetric input (1,1)" "(1, 1)" | |
| count_pattern "Symmetric input (100,100)" "(100, 100)" | ||
| count_pattern "Range-only assertion" "assert.*<=.*<=" | ||
| count_pattern 'Substring check (in str)' '" in ' | ||
| # Source-introspection tests: a test whose evidence is reading the | ||
| # implementation source (inspect.getsource, reading files under src/) instead | ||
| # of asserting observable behaviour of a public interface. Deterministic | ||
| # counterpart of the prose rule in auto-remediation.md; advisory like every | ||
| # other bias pattern here (promotion to blocking goes through fp-rate). | ||
| count_pattern "Source-introspection (getsource)" "inspect\.getsource\|getsource(" | ||
| count_pattern "Source-read test (src/ file)" "readFileSync([^)]*src/\|open([^)]*['\"]src/" | ||
| echo | ||
|
|
||
| # Count test functions | ||
| TEST_COUNT=$(grep -rn "def test_\|it('\|it(\"\\|test('\|test(\"" "$TEST_DIR" 2>/dev/null | wc -l) | ||
| # Count test functions (`|| true` — see count_pattern) | ||
| TEST_COUNT=$(grep -rn "def test_\|it('\|it(\"\\|test('\|test(\"" "$TEST_DIR" 2>/dev/null | wc -l) || true | ||
|
|
||
| # Count total assertions | ||
| ASSERT_COUNT=$(grep -rn "assert\b\|assertEqual\|expect(" "$TEST_DIR" 2>/dev/null | wc -l) | ||
| # Count total assertions (`|| true` — see count_pattern) | ||
| ASSERT_COUNT=$(grep -rn "assert\b\|assertEqual\|expect(" "$TEST_DIR" 2>/dev/null | wc -l) || true | ||
|
|
||
| # Assertion density | ||
| if [ "$TEST_COUNT" -gt 0 ]; then | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Update the command inventory.
This adds a released
worktree-runcommand, but the README still states that 17 commands are released and the command table omits it. Update the count and add aworktree-runtable entry.🤖 Prompt for AI Agents