Skip to content

fix: address 2026-09-01 full code review CRITICAL and HIGH findings - #169

Merged
eldonm merged 3 commits into
mainfrom
fix/2026-09-01-code-review
Sep 1, 2026
Merged

fix: address 2026-09-01 full code review CRITICAL and HIGH findings#169
eldonm merged 3 commits into
mainfrom
fix/2026-09-01-code-review

Conversation

@eldonm

@eldonm eldonm commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

Addresses the 13 CRITICAL and the majority of HIGH/MEDIUM findings from the 2026-09-01 full code review (82 files, +2,327/−295).

Security & correctness

  • UTF-8 incremental decode for simulated streaming (chunking.py) — fixes non-Latin reply corruption (C1)
  • Separate {agent_id}:interact:enabled cache key + InteractWalker.spawn() lock/finalize semantics (C2)
  • Graph repair: serializable reattach_ctx, per-node edge scratch paging (C3, C4)
  • Orchestrator: turn-scoped prompt cache via ContextVar (turn_cache.py); type-safe _normalize (C5, C6)
  • Facebook: fail-closed verify token, page-id filter, CDN allowlist + Bearer attachment download (C7–C9)
  • Interview custom_tools: vault namespacing + delete access checks (C10)
  • Path safety module (jvagent/scaffold/path_safe.py) wired into CLI/scaffold/bundler (C11–C13)

Memory, channels, response

  • Conversation re-read under lock; get_last_interaction() before Interaction.create(); artifact reap order; deferred-save flush
  • WhatsApp per-loop locks, async wamid dedup, MCP truncation; SSE dedup (id, type, seq); partial-delivery retry guard

Tests

  • ~15 new test modules covering chunking, path safety, cache keys, graph repair, Facebook, memory, CLI routing, etc.

Out of scope (follow-ups)

Test plan

  • pre-commit run --all-files
  • pytest tests/ (full suite green at commit time)
  • CI on this PR

Made with Cursor

Eldon Marks and others added 3 commits September 1, 2026 15:47
Harden streaming UTF-8 decode, action cache isolation, walker lock/finalize
semantics, orchestrator turn-scoped prompt cache, graph repair serialization,
Facebook/MCP/path-traversal security, memory deferred-save flushing, channel
dedup, SSE egress, and CLI destructive-sync guards. Adds regression tests and
review doc.

Co-authored-by: Cursor <cursoragent@cursor.com>
_first_app_root_path broke on the first subcommand, so
``validate examples/jvagent_app`` defaulted to cwd and CI failed.
Restore continue-after-subcommand parsing; add regression test.

Co-authored-by: Cursor <cursoragent@cursor.com>
Trailing whitespace, black, and isort on tests and review doc so CI
pre-commit hook matches local gate.

Co-authored-by: Cursor <cursoragent@cursor.com>
@eldonm eldonm self-assigned this Sep 1, 2026
@eldonm
eldonm merged commit e47db0d into main Sep 1, 2026
3 checks passed
eldonm added a commit that referenced this pull request Sep 1, 2026
fix: 2026-09-01 code review (#169 + batch 2) for dev integration
eldonm added a commit that referenced this pull request Sep 1, 2026
revert: undo PR #169 — route code review via dev
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