Skip to content

fix: open bug-scan PRs — chat_context await, Pi pull autonomy, predictive_loop#47

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/slack-bug-resolution-7a8d
Draft

fix: open bug-scan PRs — chat_context await, Pi pull autonomy, predictive_loop#47
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/slack-bug-resolution-7a8d

Conversation

@cursor

@cursor cursor Bot commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Addresses three bugs from the daily bug scan (2026-07-21) with open PRs never merged to main:

  1. PR fix(chat): await latest_briefing in build_chat_context #6 — chat_context: build_chat_context() called briefing loader without await, silently dropping the 24h briefing block from LLM context.
  2. PR fix: Pi pull stale briefing autonomy fallback + replay timestamp bypass #42 — node_briefing: After 6h staleness, Pi pull/RAG/mesh gossip got autonomy fallback instead of stored LLM briefing (delta-sync hash churn). Replay protection now 401 on malformed X-Node-Timestamp.
  3. PR fix(predictive-loop): ACH writeback index misalignment + mesh cache wipe #45 — predictive_loop: ACH writeback index misalignment; store_peer_predictions() in hot path wiped GNN mesh cache each run.

Tests

  • backend/test_chat_context.py (new)
  • backend/tests/test_edge_autonomy_backend.py, test_predictive_loop.py, test_mesh_identity.py

Not in scope

Open in Web View Automation 

- chat_context: await get_latest_briefing() so briefing block reaches LLM context
- node_briefing: get_latest_briefing(allow_autonomy_fallback=False) for Pi pull/RAG/mesh gossip
- predictive_loop: index-aligned ACH writeback; remove mesh cache wipe from hot path
- auth: reject malformed X-Node-Timestamp instead of skipping replay check

Regression tests added/updated in test_chat_context, test_edge_autonomy_backend,
test_predictive_loop, test_mesh_identity.

Co-authored-by: soookooothaiii <soookooothaiii@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant