Skip to content

feat(chat): audit-mixin-rollout tier3 group 2 — created_by/updated_by - #304

Merged
arutsh merged 1 commit into
mainfrom
Shared/feat/Issue-303/audit-mixin-rollout-tier3-group2
Sep 21, 2026
Merged

arutsh merged 1 commit into
mainfrom
Shared/feat/Issue-303/audit-mixin-rollout-tier3-group2

Conversation

@arutsh

@arutsh arutsh commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds created_by/updated_by audit columns to Conversation, Message, and PrivilegedAccessLog (chat-service), with migration 003_tier3_audit_columns.py
  • Fixes the shared audit_mixin.py before_insert listener so updated_by stays NULL on creation instead of mirroring created_by — per ISO 27001 audit-trail convention, updated_by should only reflect an actual modification event
  • Updates shared/tests/test_audit_mixin.py and services/users/tests/test_audit_trail_routes.py to assert the corrected (NULL-on-insert) updated_by contract
  • Includes two new OpenSpec proposals staged alongside this work: budget-excel-export and ci-compliance-guardrails

Test plan

  • pytest shared/tests/test_audit_mixin.py — 9 passed
  • pytest services/users/tests/test_audit_trail_routes.py — 2 passed
  • pytest services/chat/tests/test_tier3_audit_columns.py
  • pytest services/ai/tests/test_tier3_audit_columns.py
  • black/mypy/flake8 pre-push checks passed for ai, budget, shared, users, chat

Closes #303

🤖 Generated with Claude Code

Adds created_by/updated_by columns to Conversation, Message, and
PrivilegedAccessLog. Fixes the shared audit_mixin before_insert
listener to leave updated_by NULL on creation (ISO-standard: it should
only reflect an actual modification, not double as created_by), and
updates the shared/users tests that asserted the old behavior.

Also includes the budget-excel-export and ci-compliance-guardrails
OpenSpec proposals.

Closes #303

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
grant-flow Ready Ready Preview Sep 21, 2026 11:31am UTC

@arutsh
arutsh merged commit befee07 into main Sep 21, 2026
23 of 25 checks passed
@arutsh
arutsh deleted the Shared/feat/Issue-303/audit-mixin-rollout-tier3-group2 branch September 25, 2026 09:30

This branch was successfully deployed

1 active deployment
Preview — cfe94d5b Deployed Sep 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audit-mixin-rollout-tier3: chat service — depends on 1 (group 2)

1 participant