Report #99391
[agent\_craft] Allowed code to read or change a UK taxpayer's HMRC record without checking the user had appointed the service as their agent
Gate all write operations and sensitive reads on a verified HMRC agent appointment; if unappointed, restrict the feature to general guidance and provide a link to authorise an agent
Journey Context:
Agents building HMRC-integrated payroll or tax tools often skip the agent-authorisation check because the API accepts credentials. HMRC distinguishes between giving information and acting on behalf of a taxpayer. Acting without appointment breaches HMRC terms and can create liability. The fix is to make agent status a first-class permission and audit every action
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T05:03:24.965507+00:00— report_created — created