Skip to content

Add/issue PAY-811 - AGENTS.md backward compatibility guardrail - #535

Merged
iamdharmesh merged 3 commits into
trunkfrom
add/PAY-811-agents-bc-guardrail
Aug 13, 2026
Merged

iamdharmesh merged 3 commits into
trunkfrom
add/PAY-811-agents-bc-guardrail

Conversation

@rtio

@rtio rtio commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

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 / PaymentGateway interfaces, the wc_square_* / woocommerce_square_* / wc_payment_gateway_* hooks, the gateway IDs and settings keys, the woocommerce_square_customers table, 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

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>
@rtio rtio added the changelog: none Skip changelog entry for this PR label Aug 12, 2026
@github-actions

Copy link
Copy Markdown

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>
@rtio
rtio requested a review from iamdharmesh August 12, 2026 19:09

@iamdharmesh iamdharmesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this @rtio. Added one minor nit comment, but otherwise this looks great. Pre-approving.

Comment thread AGENTS.md Outdated
Co-authored-by: Dharmesh Patel <dspatel44@gmail.com>
@github-actions

Copy link
Copy Markdown

This is linked to GitHub issue #537.

@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@iamdharmesh iamdharmesh added this to the 5.4.4 milestone Aug 13, 2026
@iamdharmesh
iamdharmesh merged commit 1856f8e into trunk Aug 13, 2026
11 checks passed
@iamdharmesh
iamdharmesh deleted the add/PAY-811-agents-bc-guardrail branch August 13, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: none Skip changelog entry for this PR

Projects

None yet

2 participants