-
-
Notifications
You must be signed in to change notification settings - Fork 107
feat: Phase 3 - Add proximity cache introspection infrastructure #1852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…1848) Phase 1 fix for update propagation architecture issue. Changes: - Remove early return when node is at optimal location with no other peers - Properly exclude self when finding next-best peer for subscription - Allow subscription attempts even when isolated (for future peer joins) This prevents nodes from becoming isolated when they're at the optimal network position for a contract. Previously, such nodes would skip subscription entirely, breaking the delta-sync update propagation model. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
…#1848) The root cause of subscription timeouts was a transaction ID mismatch: - RequestRouter created one transaction ID for tracking the client request - But subscribe operation created a different transaction ID internally - Result delivery used the operation's ID, not the RequestRouter's ID - Client was waiting for wrong transaction ID, never received response Changes: - Add start_op_with_id() to subscribe operations (like other ops have) - Use RequestRouter's transaction ID when starting subscribe operations - Ensures client waits for the correct transaction ID This fixes the "Timeout waiting for subscribe response" error in River. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
[Codex] Thanks for continuing to iterate on #1848! Stepping through the request routing shows two issues we still need to address:
Happy to take another look once those are addressed. |
[AI-assisted debugging and comment] Response to [Codex] FeedbackThank you for the detailed review! These issues have been addressed in PR #1853 (Phase 4 implementation), which builds upon PR1852. Here's what was fixed: Issue 1: Missing
|
Summary
Motivation
This Phase 3 work establishes the foundation for monitoring proximity cache behavior in Freenet nodes. By adding introspection capabilities, developers and operators can observe:
Changes Made
Test Infrastructure
The new
test_proximity_cache_query
test validates:Current Implementation
Phase 3 returns stub data but provides the complete framework:
Follow-up Work
This infrastructure enables the implementation of actual proximity cache data collection and propagation logic in subsequent phases.
Testing
Checklist
[AI-assisted debugging and comment]