Scope Salesforce agent guidance - #937
adrian-rpf wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR scopes the Salesforce parent-sync race guard guidance into a job-local doc (app/jobs/salesforce/AGENTS.md) and replaces the root-level detailed directive with a pointer, keeping Salesforce sync operational guidance close to the relevant jobs.
Changes:
- Added
app/jobs/salesforce/AGENTS.mddescribing the parent-sync race guard, failure mode, and retry behavior for Salesforce sync jobs. - Updated root
AGENTS.mdto reference the job-specific Salesforce guidance instead of embedding the full directive.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| app/jobs/salesforce/AGENTS.md | Introduces scoped guidance for Salesforce sync jobs, including the parent-sync race guard and retry behavior. |
| AGENTS.md | Replaces the detailed parent-sync guidance with a pointer to the Salesforce jobs’ guidance doc. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Salesforce Sync Jobs | ||
|
|
||
| ## Parent-Sync Race Guard | ||
| - Before saving a child record that uses a `__r__` external-ID lookup, call `ensure_parent_synced!(model, external_id_field, external_id, label)` on the `Salesforce::SalesforceSyncJob` base class. |
Test coverage93.43% line coverage reported by SimpleCov. |
|
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Summary
app/jobs/salesforce/AGENTS.mdTests
git diff --check