Skip to content

build: require jq for repository settings tests - #132

Merged
bketelsen merged 1 commit into
mainfrom
ci-gap/require-jq-mutation-tests-f412
Aug 30, 2026
Merged

bketelsen merged 1 commit into
mainfrom
ci-gap/require-jq-mutation-tests-f412

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

The repository-settings mutation-boundary suite depends on jq, but the
repository toolchain previously pinned only Node and the four behavioral tests
were conditionally skipped when jq was absent. That let the reproducible
verify gate pass without exercising the dry-run/apply boundary.

This change:

  • adds jq = "1" to mise.toml and locks jq 1.8.2 with checksums and GitHub
    attestation provenance for all seven supported platforms;
  • removes the jq availability probe and every conditional skip from
    test/apply-repo-settings.test.mjs, so the real script failure becomes a
    failing test signal;
  • updates the canonical contributor instructions to name Node and jq as the
    shared mise toolchain and to run mise install before the gate.

scripts/apply-repo-settings.sh is unchanged.

Risk tier

Risk tier: high — test/** is the review-required quality-gates
protected boundary in policies/agent-governance.json. The change strengthens
that gate and does not alter the repository-settings mutation script or any
workflow.

Docs housekeeping

No new docs or significant decisions. The live AGENTS.md and contributor
instructions in README.md were updated for toolchain consistency;
conformance aliases were untouched and continue to resolve to the canonical
target.

Verification

  • mise install && npm ci && npm run verify green on the committed tree:
mise all tools are installed
ok   docs_index_coverage: 1.000 (required 1)
ok   link_integrity: 1.000 (required 1)
ok   symlink_resolution: 1.000 (required 1)
organization authority valid: 7 declarations, 0 verification profiles, 0 Goals, 7 valid fixtures, 18 rejection fixtures
ok   bash_syntax: 6/6
1..61
# tests 61
# pass 61
# fail 0
# skipped 0

The apply-repo-settings suite ran exactly 4 tests with 0 skipped:

ok 1 - the default invocation plans a drifted setting and issues no mutating call
ok 2 - --apply issues exactly the expected mutation
ok 3 - an already-conformant repository is idempotent in both modes
ok 4 - the fake gh records a body-bearing call with no -X as a POST mutation
  • Missing-tool rejection proved with the committed test file under a
    deliberately jq-free PATH: the three cases that invoke the real script
    failed with jq is required; the harness-only fourth case passed, and the
    test signal exited 1 with 0 skipped.
1..4
# tests 4
# pass 1
# fail 3
# skipped 0
missing-jq direct test exit: 1 (expected nonzero)
  • git status --porcelain was empty after the full verification run.
  • node scripts/check-docs.mjs green (included in npm run verify; output
    shown above).
  • Scaffold unchanged — .agents/skills/frostyard-docs-site/scaffold/ was
    not touched.
  • Workflows unchanged — no file under .github/workflows/ was touched.

@bketelsen
bketelsen marked this pull request as ready for review August 30, 2026 03:04
@bketelsen
bketelsen added this pull request to the merge queue Aug 30, 2026
Merged via the queue into main with commit 4073c08 Aug 30, 2026
3 checks passed
@bketelsen
bketelsen deleted the ci-gap/require-jq-mutation-tests-f412 branch August 30, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant