You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Low Risk
Low risk: diagnostics-only code now gathers local batch stats via filesystem enumeration instead of constructing Submitter, reducing unintended Keychain access. Main risk is minor miscounting of batch files due to the new shared collector/filtering logic.
Overview
The MCP agentd_device_snapshot path no longer constructs a Submitter (and therefore no longer touches Keychain-backed crypto/auth setup) just to compute queued local batch stats; it now reads stats directly from the local batches directory.
Local batch file enumeration/stats collection is refactored into shared helpers (LocalBatchFile.collect and LocalBatchStats.collect) and Submitter.localBatchStats() delegates to the new collector. Adds a regression test ensuring stats count both plaintext .json and encrypted batch files while ignoring unrelated files, without requiring Keychain access.
Reviewed by Cursor Bugbot for commit 13bda3f. Bugbot is set up for automated code reviews on this repo. Configure here.
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
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
Submitterfrom the read-only MCP device snapshot path.jsonand encrypted.agentdbatchfiles without touching keychain-backed crypto setupLocal verification
swift test(159 tests, 0 failures)swift build -Xswiftc -warnings-as-errorsxcrun swift-format lint --strict --recursive Sources Tests Package.swift && git diff --checkpython3 scripts/mock_chronicle.py --self-test Tests/Fixtures/chroniclepython3 scripts/macos_availability_audit.pypython3 scripts/sparkle_appcast.py self-testpython3 scripts/validate_release_metadata.py && python3 scripts/validate_pr_title.py 'fix: avoid keychain in mcp snapshot'scripts/package_app.shcodesign --verify --strict --deep --verbose=2 'dist/EvalOps agentd.app'AGENTD_INSTALL_APPLICATIONS=0 scripts/permission_smoke.sh --no-launch --no-install-applications