Skip to content

feat: add candidate surfacing CLI and sync-safe skill overlay in test-audit - #428

Merged
fcakyon merged 2 commits into
mainfrom
feat/test-audit-surfacing-script
Nov 22, 2026
Merged

fcakyon merged 2 commits into
mainfrom
feat/test-audit-surfacing-script

Conversation

@fcakyon

@fcakyon fcakyon commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Bump plugins/test-audit to 1.1.0 with a zero-dependency Node ESM candidate-surfacing script (scripts/surface-candidates.mjs)
  • Detect testOnlySeams (splitting nonTestCallers, samePkgTestCallers, and otherPkgTestCallers), undercountedScripts, bundleGrepsWithBuildGuards, assertionFreeTests vs envGatedOrSkippedTests, and qaSuiteOverlap against .agents/qa/suite.mjs
  • Preserve local additions across upstream openclaw/openclaw updates by keeping CLI and tests outside skills/test-audit/, maintaining .github/scripts/test-audit/surfacing.md, and applying exact-anchor overlay patches in .github/scripts/sync-openclaw-skills.sh AFTER upstream leftover checks pass
  • Add unit and sync-overlay parity tests (plugins/test-audit/tests/surface-candidates.test.mjs) and run both test-audit and compliance tests in .github/workflows/validate-plugins.yml

Code Review & Simplifications Applied

  • Ran code-review high --fix across all 16 files prior to commit
  • Extracted production definitions from comment-stripped code (file.code) so commented-out block exports are ignored
  • Clamped self-definition token subtraction with Math.max(0, ...) and nullish guards so nonTestCallers never evaluates to NaN
  • Added regression coverage for commented-out block exports and Go doc-comment handling

Verification

  • node --test plugins/test-audit/tests/*.test.mjs plugins/compliance/tests/*.test.mjs: 13 tests, 13 pass, 0 fail
  • OpenScribe smoke test (surface-candidates.mjs --root ...): surfaced apps/extension/tests/bridge.test.mjs (492 assertions) and parsed .agents/qa/suite.mjs (43 cases, 80 routes)
  • bash .github/scripts/sync-openclaw-skills.sh and bash .github/scripts/sync-versions.sh: idempotent with clean git status
  • python3 .github/scripts/validate_plugins.py, uv run .github/scripts/antigravity.py validate, and python3 .github/scripts/validate_providers.py: all passed
  • npm run build --prefix site: 188 pages built and 49 plugin plus 127 skill pages verified
  • git diff --check: clean

…-audit

Bump plugins/test-audit to 1.1.0 with a zero-dependency Node ESM
surfacing script (scripts/surface-candidates.mjs) covering test-only
seams with split caller counts (nonTestCallers, samePkgTestCallers,
otherPkgTestCallers), undercounted single-script tests, source greps
paired with build guards, assertion-free vs env-gated/skipped tests,
and QA route overlaps against .agents/qa/suite.mjs.

Keep upstream OpenClaw syncing working via .github/scripts/sync-openclaw-skills.sh
by applying local pointers and references/surfacing.md AFTER upstream
rewrites and strict leftover checks pass. Add validate-plugins CI test
execution for test-audit and compliance test suites.

Code review (high --fix) fixes applied: extract definitions from
comment-stripped code so commented-out exports are ignored, clamp
self-definition token subtraction to prevent NaN counts, and cover
commented-out block exports in tests.

Verification:
- Unit and overlay tests: node --test plugins/test-audit/tests/*.test.mjs plugins/compliance/tests/*.test.mjs (13 pass, 0 fail)
- OpenScribe smoke test: surfaced apps/extension/tests/bridge.test.mjs (492 assertions) and .agents/qa/suite.mjs (43 cases, 80 routes)
- Sync and manifests: sync-openclaw-skills.sh and sync-versions.sh idempotent with clean git status
- Validators: validate_plugins.py, antigravity.py validate, and validate_providers.py passed
- Website build: npm run build --prefix site built 188 pages and verified 49 plugin plus 127 skill pages

verification: node --test plugins/test-audit/tests/*.test.mjs plugins/compliance/tests/*.test.mjs (13 pass, 0 fail), sync-openclaw-skills.sh, sync-versions.sh, validate_plugins.py, antigravity.py validate, validate_providers.py, npm run build --prefix site (188 pages)
verification: 13 audit and compliance tests passed, two upstream syncs preserved the staged tree, and the CLI from the generated ZIP identified an assertion-free fixture
@fcakyon
fcakyon merged commit 8e82cb3 into main Nov 22, 2026
4 checks passed
@fcakyon
fcakyon deleted the feat/test-audit-surfacing-script branch November 22, 2026 15:15
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