Skip to content

Record management actions in the audit log - #3

Merged
DanMat merged 1 commit into
mainfrom
feat/record-management-actions
Aug 19, 2026
Merged

DanMat merged 1 commit into
mainfrom
feat/record-management-actions

Conversation

@DanMat

@DanMat DanMat commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Wires the plugin to record api.management_written (ADR 0009, Slice 7): a new listener records each management action (schema/media/users/tokens over MCP) as kind management, mapping capability→resource and target through the existing audit columns — no new migration.

  • AuditRecorder handles the management payload shape (capability + target).
  • AuditView: a Management label + summary tile.
  • Boundary test asserts the new listener; a recorder unit test covers the mapping.

Closes the audit loop the ADR promised: every structural action an agent takes leaves a who-did-what row.

🤖 Generated with Claude Code

Listen to CoreEvents::API_MANAGEMENT_WRITTEN and record each as kind
'management', mapping capability -> resource and target through the existing
columns (no new migration). AuditRecorder now handles three payload shapes
(failure/resource, content-write/collection+slug, management/capability+target).
AuditView gains a "Management" label + summary tile; the boundary test asserts
the new listener; a recorder unit test covers the mapping.

So every schema/media/user/token action an agent takes over MCP leaves a
who-did-what row.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@DanMat
DanMat merged commit c210aa6 into main Aug 19, 2026
2 checks passed
@DanMat
DanMat deleted the feat/record-management-actions branch August 19, 2026 01:12
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.

1 participant