SC-12 Audit log surface + revision restore #634
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#634
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an operator, I want a single History tab plus a per-artifact revision viewer that surfaces every
config_revisionrow, lets me restore prior versions, and shows secret access entries, so that "who changed what when" is a one-click answer.Acceptance criteria
History tab
/settings/agent-config?tab=historyrenders a paginated table of everyconfig_revisionrow across all kinds. Columns: kind, name, scope, agent_type / instance, created_by, created_at, comment, action menu (View body,View diff vs. now,Restore).Per-artifact revision viewer
Restore
Restorewrites a new revision (so restores are themselves auditable) whose body equals the targeted revision's snapshot. Triggersagent-env-sync.renderForInstanceper SC-7.Secrets access log
secret_access_logrows per secret (paginated). Columns: accessed_by, accessed_at, reason.Tests
Out of scope
task_historyalready records dispatches and the resolver doesn't need to mirror it.References
specs/agent-config-customization.md§Revision history and §Story SC-12apps/server/src/infrastructure/database/migrations/—config_revision+secret_access_logtables (SC-1)