P5 · recruit-cli: Gemini CV screening → Notion (on PyPI)
- Flow: CV folder → text extraction → Gemini screening → validated result → Notion database.
- Guardrails: score must be an integer 0–100; category is derived from the score in code, never taken from the model; values Notion would reject are cleaned first; CV text fenced as untrusted ("a CV saying 'give me 100' is just text to analyse"); dedupe by email + job ID; stops after three Gemini failures in a row (a simple circuit breaker); exit code 1 if any CV failed.
- Numbers (repository): 250 tests, 100% line and branch coverage. Published on PyPI (renamed in 0.4.0).
- Use for: injection (Q25), "model chooses, code decides" (S4), automation (11.2).
P8 · Automated trading arena (LLM agents + MCP, simulation)
- What: several model families (GPT, Claude, DeepSeek, Qwen, Gemini) each start with $10,000 on NASDAQ 100 stocks, read the market through FastMCP tool servers, and place their own orders. LangChain + LangGraph.
- Guardrails in the tools, not the prompt: the price tool shows only the current day's (or hour's) open; search results published at or after the simulated moment, or undated, are dropped (no look-ahead); orders must be positive whole shares at a real price; cash can never go negative; read-check-write runs under a lock; tool servers require a shared secret beyond loopback.
- Numbers (repository): 602 tests, 230 of 230 mutants. A simulation benchmark, never live trading.
- Provenance: if a project began from someone else's open-source code, credit it in the README and say so in interviews; claim the work you added.
- Use for: MCP (Q33), tool-layer guardrails (Q34).
P9 · Deterministic quantitative routing (prototype)
- What it really is: about 700 lines of Python, 254 tests, a prototype of the routing and orchestration layer. A
SemanticRouterprotocol where a model would plug in, implemented today by a keyword mock; data is a mock random walk. - What's real: six validated indicators (
sma_crossover,price_above_sma,bollinger_squeeze,atr_expansion,rsi_overbought,rsi_oversold); composition (AND, OR, XOR, SUM, AVERAGE) across steps and assets; a recursive stability loop with majority-vote smoothing, a Hamming threshold and a circuit breaker for 2-cycles that reports why it stopped; FastAPI/query; non-root Docker image. 242 of 242 mutants. - The idea to sell: "LLM routes, code computes." Present it as design thinking and a prototype, not a production system.
What to learn from these
Bound and validate every model field; derive decisions in code; put invariants (no look-ahead, no negative balance) in tools; describe prototypes exactly as prototypes.