Agent-agnostic review loop: PDF upload, external refs, push delivery #104

Closed
opened 2026-11-27 17:56:09 +00:00 by jfro · 0 comments
Owner

Part of #99 (agent plan review). Keeps the loop agent-agnostic: any MCP client (Claude Code, Claude Desktop, Fortysix, others), not just one.

1. Bring-your-own PDF: an upload_pdf(name, folder_id, pdf_base64 | url) write tool, gated like make_pdf, so an agent can send a plan it rendered itself instead of only rm-analyzer templates.

2. A reference field on documents: an optional external_ref (free text, like plan-xyz@v2) set by make_pdf/upload_pdf, stored on the document and returned by list_documents, read_pages and list_changes (#103). This lets any agent match a returned document to its plan and revision without parsing the footer.

3. Optional push delivery: polling list_changes stays the baseline. On top of it:

  • MCP resource subscriptions (resources/subscribe + notifications/resources/updated) for clients that stay connected.
  • A webhook per API key (URL + signing secret) for agents that don't, sending the same change events as list_changes.

Done when: an agent with no rm-analyzer templates can upload its own plan PDF tagged plan-xyz@v1, get told (by poll, subscription or webhook) when it's moved to a review-done folder, and see external_ref on the change event.

Part of #99 (agent plan review). Keeps the loop agent-agnostic: any MCP client (Claude Code, Claude Desktop, Fortysix, others), not just one. **1. Bring-your-own PDF:** an `upload_pdf(name, folder_id, pdf_base64 | url)` write tool, gated like `make_pdf`, so an agent can send a plan it rendered itself instead of only rm-analyzer templates. **2. A reference field on documents:** an optional `external_ref` (free text, like `plan-xyz@v2`) set by `make_pdf`/`upload_pdf`, stored on the document and returned by `list_documents`, `read_pages` and `list_changes` (#103). This lets any agent match a returned document to its plan and revision without parsing the footer. **3. Optional push delivery:** polling `list_changes` stays the baseline. On top of it: - MCP resource subscriptions (`resources/subscribe` + `notifications/resources/updated`) for clients that stay connected. - A webhook per API key (URL + signing secret) for agents that don't, sending the same change events as `list_changes`. **Done when:** an agent with no rm-analyzer templates can upload its own plan PDF tagged `plan-xyz@v1`, get told (by poll, subscription or webhook) when it's moved to a review-done folder, and see `external_ref` on the change event.
jfro closed this issue 2026-11-27 20:01:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer#104
No description provided.