Skip to content

refactor(audit): centralized AuditBuffer logging and audit.use channel list#119

Merged
rokde merged 4 commits into
mainfrom
split/audit-buffer-refactor
May 22, 2026
Merged

refactor(audit): centralized AuditBuffer logging and audit.use channel list#119
rokde merged 4 commits into
mainfrom
split/audit-buffer-refactor

Conversation

@rokde
Copy link
Copy Markdown
Contributor

@rokde rokde commented May 22, 2026

Summary

  • Replace ad-hoc `RunLogWriter` with a centralized `AuditBuffer` Monolog handler; bind it as a singleton and merge `clonio.json` logging overrides into `config/logging.php`.
  • Replace `audit.default` and per-channel `deliver_to` with a single `audit.use` active-channel list driving `AuditDeliveryService`.
  • Update Audit Add/Delete/List commands, `InitCommand`, and `ConfigService` for the new shape; refresh docs and the cloning-run PRD.

Test plan

  • `composer test` green
  • `clonio audit:add` and `audit:list` reflect new `use` semantics
  • A cloning run still emits process log + audit artefact via configured channels
  • Migrate an existing `clonio.json` with `audit.default` and verify a warning / fallback path is acceptable

🤖 Generated with Claude Code

@rokde rokde self-assigned this May 22, 2026
@rokde rokde merged commit bf65495 into main May 22, 2026
16 checks passed
@rokde rokde deleted the split/audit-buffer-refactor branch May 22, 2026 15:17
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