feat: human-in-the-loop escalation, version compat, revocation-aware verification#85
Merged
imran-siddique merged 1 commit intomainfrom Mar 7, 2026
Merged
Conversation
…evocation-aware verification - Add EscalationPolicy with ESCALATE decision tier between ALLOW/DENY (#81) - InMemoryApprovalQueue and WebhookApprovalBackend for pluggable backends - Configurable timeout with default action (deny/allow) - evaluate_and_wait() for synchronous escalation flows - Wire RevocationList into CardRegistry.is_verified() (#82) - Revoked agent DIDs immediately fail verification - Setting revocation_list clears cache for instant effect - Rotation and revocation modules already existed; this wires them in - Add inter-package version compatibility checker (#83) - Machine-readable compatibility matrix - doctor() function reports installed versions and detects skew - check_compatibility() validates specific version pairs All 52 new tests pass. Closes #81 Closes #82 Closes #83 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
This was referenced Mar 7, 2026
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
Addresses three enterprise-readiness gaps identified through codebase audit:
1. Human-in-the-Loop Escalation (Closes #81)
Adds EscalationPolicy with ESCALATE tier between ALLOW/DENY. When require_human_approval triggers, agent is suspended and approval routed to pluggable backend (InMemoryApprovalQueue, WebhookApprovalBackend). Configurable timeout with default action.
2. Revocation-Aware Card Verification (Closes #82)
Wires existing RevocationList into CardRegistry.is_verified() — revoked DIDs immediately fail verification, bypassing cache.
3. Inter-Package Version Compatibility (Closes #83)
Adds compatibility matrix, doctor() function, and check_compatibility() for detecting version skew between packages.
Tests: 52 new tests, all passing
Files: 7 changed, +1,259 lines