Skip to content

Add CF7 rate limit smoke test and migrate Vibe CLI to AGENTS.md#112

Merged
jasperf merged 2 commits into
mainfrom
add/cf7-rate-limit-smoke-test
Jun 23, 2026
Merged

Add CF7 rate limit smoke test and migrate Vibe CLI to AGENTS.md#112
jasperf merged 2 commits into
mainfrom
add/cf7-rate-limit-smoke-test

Conversation

@jasperf

@jasperf jasperf commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a Playwright-based smoke test for verifying Contact Form 7 submissions after Nginx rate limit deployments and consolidates Mistral Vibe CLI configuration by replacing the custom system prompt with the built-in default. The CF7 smoke test navigates to a contact page, fills and submits the form, intercepts all CF7 REST API responses, and exits with an appropriate code for CI integration. On the tooling side, the Vibe CLI now uses its native cli prompt instead of a custom wp-ops prompt, with all repository-specific rules migrated into AGENTS.md where both Vibe and Claude Code can read them. These changes affect 7 files with 170 insertions and 69 deletions.

New Monitoring Tool:

  • Add scripts/monitoring/cf7-smoke-test.js, a Playwright script that submits a Contact Form 7 form, captures the CF7 REST API requests (schema, feedback, refill), and verifies all return HTTP 200
  • The script supports CLI flags (--name, --email, --subject, --message) for customization and returns exit code 0/1 for use in post-deploy hooks or CI pipelines
  • Form detection uses accessible role selectors, with graceful handling for optional fields like subject and message

Vibe CLI Configuration Consolidation:

  • Switch .vibe/config.toml from the custom system_prompt_id = "wp-ops" to the built-in "cli" prompt, removing the need for a separate prompt file
  • Delete .vibe/prompts/wp-ops.md entirely, migrating its useful content (branch naming conventions, CHANGELOG versioning workflow, create-pr.sh usage, co-author prohibition) into AGENTS.md

Developer Guidance Updates:

  • Expand the Git Workflow section in AGENTS.md with branch naming conventions (add/, fix/, feature/ prefixes), atomic commit guidance, CHANGELOG versioning rules (SemVer bumps with dates), and create-pr.sh usage patterns
  • Add a "Context for Tasks" checklist to AGENTS.md for identifying the relevant category, existing conventions, and companion documentation needs before starting work
  • Update CHANGELOG.md with a new [2.14.0] release entry documenting both the smoke test addition and the Vibe configuration changes

Files Changed:

jasperf added 2 commits June 23, 2026 07:47
Playwright script that fills and submits a Contact Form 7 form, then
verifies all three CF7 API requests (schema, feedback, refill) return
200. Exits non-zero on failure for CI integration.
@jasperf jasperf merged commit 4483d9c into main Jun 23, 2026
@jasperf jasperf deleted the add/cf7-rate-limit-smoke-test branch June 23, 2026 00:55
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