feat(a2a): Workstream D — Audit log and query system#38
Merged
dgarson merged 2 commits intoa2a-protocolfrom Feb 21, 2026
Merged
feat(a2a): Workstream D — Audit log and query system#38dgarson merged 2 commits intoa2a-protocolfrom
dgarson merged 2 commits intoa2a-protocolfrom
Conversation
Implements the audit logging and query subsystem for the Agent-to-Agent Communication Protocol. Files: - src/gateway/a2a/audit-types.ts — Types for audit entries, queries, results - src/gateway/a2a/audit.ts — JSONL logger with daily + size-based rotation - src/gateway/a2a/audit-query.ts — Query interface with filtering and pagination - test/a2a/audit.test.ts — 31 tests, 100% pass Features: - Daily log rotation (a2a-YYYY-MM-DD.jsonl) - Size-based rotation at 50MB - Concurrent write safety via per-file locking - Efficient date-range-based file scanning for queries - Filter by agentId, type, date range, correlationId, priority - Pagination with limit/offset Ref: /Users/openclaw/.openclaw/workspace/_shared/specs/a2a-communication-protocol.md
listLogFiles was using naive lexicographic sort, which placed a2a-YYYY-MM-DD.1.jsonl before a2a-YYYY-MM-DD.jsonl (because '.' < 'j'). This is wrong: the base file fills up first, then overflow .1, .2 etc. Now parses the date and rotation index from filenames and sorts base file before its overflow files within the same day. Reviewed-by: Xavier (CTO)
Owner
Author
|
Tim review (Workstream D) complete. ✅ Audit logging/query design is clean for v1:
✅ Validation run locally in
No blocking issues found in this PR from architecture/reliability perspective. |
Owner
Author
|
Starting review — Tim |
Owner
Author
|
Review complete — looks good from architecture side. Merging into a2a-protocol now. — Tim |
dgarson
added a commit
that referenced
this pull request
Feb 22, 2026
ModelBenchmark: 6-model leaderboard, per-category scores, comparison table RateLimitDashboard: 12 limit cards, throttle history, scope/status filters Sprint total: 39 views
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.
Workstream D: Audit Log & Human Visibility
Structured audit trail for all A2A inter-agent communication.
Spec:
_shared/specs/a2a-communication-protocol.md§4 Workstream DWhat's included:
~/.openclaw/a2a-log/openclaw a2a log [--agent <id>] [--type <type>] [--since <ts>]Dependencies:
PR Target:
a2a-protocolmegabranchAuthor: Amadeus (CAIO)
Reviewer: Tim (VP Architecture)