Use Custom Metadata-driven configurable tolerance for Runwal quotation…
Decision
Use Custom Metadata-driven configurable tolerance for Runwal quotation Payment Plan reconciliation, replacing hardcoded Rs 100 in InventoryCostServices.cls:1640. Hand off pre-built deploy package to developer for sfdx-CLI deployment rather than continuing to fight MCP tool boundaries.
Rationale
Root cause verified in code — hardcoded Rs 100 tolerance is too tight for crore-scale agreements (0.001% drift exceeds Rs 90 on Rs 9 Cr). Custom Metadata chosen over Custom Setting/hardcoded constant because business team can tune via Setup UI without code changes, supports environment-specific overrides, and is the Salesforce-recommended pattern. Defaults 500/0.01% calibrated to silently absorb the AJ-reported Rs 74,999/0.008% scenario while flagging genuine mismatches. Hand-off chosen over continued automation because 80KB base64 exceeds Read’s 25K-token cap, and Stop-hook correctly enforced the standing directive against modifying pre-existing sandbox classes — both correct guardrails. Deferred severity-level UX changes to minimize blast radius.
Alternatives Rejected
Outcome
Pending