-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(agent-metrics): add encrypted usage snapshots - #7443
Open
timmstudio wants to merge 6 commits into
Open
Conversation
Signed-off-by: Victra <victra@timmstudio.com>
Signed-off-by: Victra <victra@timmstudio.com>
Subscribes to kind:44200 agent turn metrics (NIP-AM), decrypts them via the existing NIP-44 helper, and renders a ring + detail sheet on bot rows in the members sheet, mirroring the desktop agent status feature added in fe526bd. Signed-off-by: Victra <victra@timmstudio.com>
Signed-off-by: Victra <victra@timmstudio.com>
Signed-off-by: Victra <victra@timmstudio.com>
Validate encrypted event envelopes consistently, bound archive and mobile history work, and make snapshot merging deterministic across desktop and mobile. Close review findings around identity isolation, pagination ties, unavailable states, and cancellation-test ordering. Signed-off-by: Victra <victra@timmstudio.com>
🔐 Codex Security Review
Status: review required for the current range.
The current range is
3c7f288c60d67df78577b237e27c3dfc8831aaa1...4a3d36300265ecbf8f4ee4c869f04b8ec011ec5b.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 4a3d36300265ecbf8f4ee4c869f04b8ec011ec5bto authorize a new review.
Any previous review applies only to its recorded range.
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.
Summary
44200agent usage snapshotsChanges
p/agenttags, owner/agent binding, forbiddenhtags, and encrypted payload sizesbuzz metrics publishfor cloud or external producers(timestamp, event id)conflict resolutionTesting
cargo fmt --all -- --checkcargo test -p buzz-core -p buzz-agent -p buzz-acp -p buzz-clicargo clippy -p buzz-core -p buzz-agent -p buzz-acp -p buzz-cli --all-targets -- -D warningsdart format --output=none --set-exit-if-changed lib testflutter analyzeflutter test— 2,129 passedpnpm checkpnpm typecheckpnpm test— 6,463 passedpnpm buildScreenshots / recording
Not attached from this Linux build host: GTK/WebKit development libraries are unavailable, so the Tauri application cannot be launched here. Desktop rendering states and mobile interactions are covered by automated component/widget tests; visual confirmation can be added from a supported development machine.
Local environment limitation
The complete native Tauri application could not be compiled or launched because
glib-2.0,gtk+-3.0, andwebkit2gtk-4.1development packages are unavailable. To validate the changed native archive code,agent_usage.rsandmetric_store.rswere compiled in a minimal Rust harness and executed against in-memory SQLite, confirming the 64-agent request limit, eight-candidate fallback bound, newest-first ordering, and SQL-side agent filtering. Repository CI remains responsible for the full native matrix.