@ feat(lab): md-swap 2x2 arms, deepseek usage + 32K budget, claude-p auth isolation

↗ view on GitHub · Eli Ziff · 2026-08-04 · 52b8bf8a

- lab-beaver-arm.ts: add mike_markdown_swap_v1 / mike_markdown_e2e_v1 /
  mike_markdown_read_upstream_draft_v1 arms + surface conformance checks
  (2x2 read/write matrix: control, markdown-swap, markdown-e2e, reverse-swap)
- upstreamMikeBenchmarkSurface.ts: MARKDOWN_SWAP_GENERATE_DOCX_TOOL (markdown
  draft) + UPSTREAM_MIKE_MARKDOWN_SWAP_LAB_TOOLS
- localAssistantTools.ts: markdown_swap/e2e tool shapes + MIKE_READ_DOCX_MARKDOWN
  (serve Pandoc drafting-source markdown on docx reads for the e2e arm)
- deepseek.ts: aggregate streamed usage (include_usage) into NormalizedLlmUsage;
  MAX_TOKENS 16K->32K (reasoning stream ate the whole budget on LAB smoke run)
- claudeP.ts: delete (not blank) ANTHROPIC_* auth env for claude -p child
  isolation; surface stdout result-envelope hint when stderr is empty
- chat.ts: wire markdown_swap/e2e shape flags into run surface
- AGENTS.md: forbid OpenAI per-token spend (flat-rate surfaces only)

Co-Authored-By: Claude <noreply@anthropic.com>
@
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents 01d8c62b
Stats 7 files changed , +325 , -23
Part of claude-p transport: alternative LLM backend via the Claude CLI

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-52b8bf8a.md from inside the repo you want the change in.

⬇ Download capture-commit-52b8bf8a.md