feat: implement issue #2185 — dev-lead fix-bot-comment edits a verbatim org-standard stub on a standards-sync PR when a bot suggests it — the PR drifts from the template it syncs
Problem
dev-lead fix-bot-comment edits a verbatim org-standard stub on a standards-sync PR when a bot suggests it — the PR drifts from the template it syncs
From the issue: On a standards-sync PR, a dev-lead fix-bot-comment pass will edit a verbatim org-standard caller stub when a review bot suggests it. The PR then no longer matches the template it exists to sync, and with auto-merge on it can land that way.
Risk
Low — changes automation shell logic under scripts/, covered by shellcheck (--severity=warning) and the bats suite.
Test plan
Tests added/updated: tests/dev-lead/unit/test_sync_stub_guard.bats,tests/dev-lead/unit/test_sync_stub_readonly_guardrail.bats. Verification: bash scripts/dev-lead-lint.sh (shellcheck --severity=warning) ran pre-commit; the bats suite runs in CI.
Rollback
Revert this PR. No non-revertible side effects (no tags, migrations, or external state).
Monitoring
This PR's Lint (shellcheck) and bats checks show pass/fail; watch subsequent dev-lead / pr-review runs for behavioral regressions.
Closes #2185