Commit graph

2 commits

Author SHA1 Message Date
jedarden
458f4d88d4 docs(bf-14tjh): add verification note for PDF fixture discovery logic
Implemented discovery logic already exists in tests/forms_integration.rs:
- discover_pdf_fixtures() uses walkdir for recursive PDF discovery
- find_pdf_fixtures() uses std::fs for non-recursive discovery
- All 6 tests pass, including test_discover_pdf_fixtures which prints discovered fixtures
- Test is idempotent with no side effects

Acceptance criteria:
 Discovers PDF files in tests/fixtures/forms/
 Prints discovered fixtures for verification
 cargo test forms_integration passes (6/6 tests)
 Test runs identically on repeated execution

Verification: notes/bf-14tjh.md
2026-07-06 12:11:59 -04:00
jedarden
77eeaeccca test(bf-59ah8): document MCP server process spawning and JSON-RPC communication implementation
Completes bead bf-59ah8 - MCP server subprocess management and JSON-RPC
message handling for SSRF blocking tests.

Implementation includes:
- RAII process guard (McpServerGuard) with bounded cleanup waits
- JSON-RPC tools/call message construction
- LSP-style framed message I/O (Content-Length headers)
- Response parsing for error messages
- Seven test cases for SSRF blocking validation

Communication layer verified working - tests successfully spawn MCP server,
send JSON-RPC messages, receive and parse responses. No orphaned processes.

Test results: 1/7 tests pass (test_ipv4_loopback_blocked handles both error
and stub responses). Other 6 tests expect SSRF blocking implementation
(separate task).

Closes bf-59ah8
2026-07-06 12:03:16 -04:00