feat: #3591388 add grants-hash render cache context for entity access

Replace the placeholder 'user' cache context with user.entity_access_grants:{type}:{op}, a calculated context keyed on a hash of the user's grants. Register the context service, invalidate a per-type records cache tag on rebuild(), and document both.

Add stateful- and dynamic-grants test sub-modules plus kernel and functional coverage.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Closes #3591388

Merge request reports

Loading