df4b88685b
Reported as a blocker by an independent re-review, and correctly: the previous commit changed _bounded_stack to take the caller's entries and our own entry separately, updated _apply_client_headers, and missed _client_stack. That runs on every construction path, so every MemoryClient(...) raised TypeError. A total SDK outage, introduced by the fix for a cosmetic truncation bug. The whole suite stayed green because nothing constructed a client. That is the actual defect here, so the test file exists as much for the gap as for the bug: it builds a client, asserts the header reaches it, and covers the two bounding rules directly. Confirmed it fails against the broken call site and passes against the repaired one. AsyncMemoryClient is deliberately not constructed: its validation path makes a real request to /v1/ping/, and a unit test needing the network is worse than none. It shares _client_headers with the sync client, which is what the construction test guards. tests/test_client_surface_headers.py 5 passed, plugin suites 312 passed 8 skipped. Claude-Session: https://claude.ai/code/session_01C7tEmH86HAr7GoAAKCEHZb