feat(ai): audit-mixin-rollout-tier3 group 1 — created_by/updated_by - #302
Merged
arutsh merged 3 commits intoSep 20, 2026
Merged
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…or ai-service models Adds AuditMixin/AuditColumnsMixin to AIAuditLog, AIPrompt, UserProviderKey, CustomerAiDefaults, and PrivilegedAccessLog so created_by/updated_by populate automatically via the existing audit-mixin-auto-population mechanism. PrivilegedAccessLog's created_by is asserted to match its existing actor_user_id field rather than treated as a second, unrelated source of truth. Closes #301 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ag coverage-guard metadata - black --check was failing in CI on the 4 models edited for audit-mixin-rollout-tier3 group 1 (shorter uuid.uuid4() default now fits the mapped_column call on one line). - Add scripts/git-hooks/pre-push mirroring each service's CI lint step (black/mypy/flake8), scoped to whichever service(s) a push touches, documented in WORKFLOW.md. - Tag audit-mixin-coverage-guard's priority/author/depends_on in its .openspec.yaml. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
arutsh
deleted the
Shared/feat/Issue-301/audit-mixin-rollout-tier3-group1
branch
September 20, 2026 16:34
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AuditMixin/AuditColumnsMixintoAIAuditLog,AIPrompt,UserProviderKey,CustomerAiDefaults, andPrivilegedAccessLogsocreated_by/updated_bypopulate automatically via the existingaudit-mixin-auto-populationmechanism.idtype annotations (Mapped[t.GUID]→Mapped[uuid.UUID]) that the mixin's ownidcolumn exposed as a real mypy conflict.PrivilegedAccessLog'screated_byis asserted to match its existingactor_user_idfield in a test, rather than treated as a second, unrelated source of truth (per design.md's decision).Test plan
services/aifull test suite passes (131 tests)created_byon insert (all 5 models) andupdated_bybehavior split by mutability (populated on update forAIPrompt/UserProviderKey/CustomerAiDefaults; staysNULLfor append-onlyAIAuditLog/PrivilegedAccessLog)--max-line-length=100) and mypy clean on touched filesCloses #301
🤖 Generated with Claude Code