Add/issue PAY-811 - AGENTS.md backward compatibility guardrail - #535
Merged
Merged
Conversation
Agents working in this repo had no stated rule about what counts as a public contract, so signature, hook, and schema changes could land without anyone flagging the impact. This carries over WooCommerce Core's canonical Backward Compatibility guardrail and grounds it in this plugin's real surface: the published Framework API interfaces, the wc_square_* and woocommerce_square_* hooks, the persisted gateway IDs, the woocommerce_square_customers table, and the admin/REST/Store API/Action Scheduler/WP-CLI contexts this code actually runs in. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
This is linked to GitHub issue #536. |
The Square section had drifted into exhaustive enumeration; trim it to the same producer/consumer shape the WooPayments and Core sections use. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
iamdharmesh
approved these changes
Aug 13, 2026
iamdharmesh
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for adding this @rtio. Added one minor nit comment, but otherwise this looks great. Pre-approving.
Co-authored-by: Dharmesh Patel <dspatel44@gmail.com>
|
This is linked to GitHub issue #537. |
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request:
Adds an AGENTS.md Backward Compatibility section, adapted from Core's guardrail to this plugin's surface: the vendored
Framework\Api/PaymentGatewayinterfaces, thewc_square_*/woocommerce_square_*/wc_payment_gateway_*hooks, the gateway IDs and settings keys, thewoocommerce_square_customerstable, and the admin/REST/Store-API/scheduled-sync contexts. Docs only; no code or changelog.Linear: PAY-811
How to test the changes in this Pull Request:
Read the Backward Compatibility section in AGENTS.md and confirm the named interfaces, hook prefixes, gateway IDs, and table are accurate for this repo.
Closes #536
Closes #537