DeepSeek Harness / subq-savant-1.4
Passed all 64/64 self-authored ExUnit tests yet missed 1 specification slice in post-run live verification — while S7 (Handle Ctrl-C) absorbed 53.8% of total budget ($0.14, 116 calls). Read failure diagnosis ↓
- Outcome
- 6/7 slices
- Agent marked 7/7 [x] (S7 failed audit) · 64/64 ExUnit tests passed
- Time Elapsed
- 36m
- Range 14m–1h 51m (28 runs)
- Estimated Cost
- $0.26
- USD · range $0.00–$12.90
Finished in 32.5 seconds (0.1s async, 32.4s sync) — 64 passed (64/64 at Steps 259 & 262 in session log; mix format --check-formatted clean; mix compile --warnings-as-errors clean; Credo not setup, deps: [{:mint, "~> 1.11"}]) (Agent checked off 7/7 in PLAN.md and passed 64/64 ExUnit tests; post-run holdout audit rejected S7.)
Test suite & secondary run metrics
- Test Suite
- 64/64
- 100% passed (32.5s)
- Total Tokens
- 18.35M
- 98.93% cache hit · 195.1k uncached · 121.8k out
- LLM & Tool Calls
- 269 turns
- 281 tool executions (2 errors)
- Peak Context
- 120.6k peak
- 6,608 → 120,566 prompt tokens; 121,023 total; 12.06% of 1.00M dsh cap / 4.00M native
- Git Commits
- 7
- Recorded in commit log below
Plan Completion / 6 of 7 Slices
+6 prep/wrap-up calls · $0.01 ↓- S1: PassedLaunch the CLI
- S2: PassedValidate arguments
- S3: PassedSend one bounded GET
- S4: PassedRun a paced five-second loop
- S5: PassedReport outcomes and exit codes
- S6: PassedReport timing
- S7: Missed (Peak effort bottleneck)Handle Ctrl-C
Field Notes / 4 Observations
Manual Note vs. Lossless Session Audit: 36m 27.3s Wall-Clock (36m28s Note), 7 Agent Commits, 64/64 Passing Tests (No Credo) & Identical 513 Production LoC to omp(3 points)
- Exact Wall-Clock Alignment (
36m28sNote vs.36m 27.3sSession Log) Following the pre-runinitcommit (7dcfd4eat19:38:29 WIB) and an aborted 0-token attempt at19:45:07 WIB(session-2cfad97c, HTTP 400messages/0/rolevalidation error),session-0c5ba62f-5e64-4184-817a-a57af1fcafaeopened at2026-11-20T12:54:06.844Z(19:54:06.844 WIB) and completedturn/end(reason: completed) at20:30:34.168 WIBfor an exact active duration of36m 27.32s(2,187.32s/36m). Projected20261120T125406Z.events.jsonl(1,261 events) matchesrecords/sessions/.../session.v4.jsonl.zstd(1,758 events) identically across all269step usage records. - Model Config, 7 Organic Commits & Mint Dependency
request/header(seq 15) andrequest/contextconfirmprovider: "subq",model: "subq-savant-1.4",reasoningEffort: "high",contextWindow: 1,000,000(dsh-configured cap out of Savant 1.4's4.00Mnative window), and24native tools. Starting from7dcfd4e(init), the agent made7clean slice commits (1712f4bS1 throughfffc6b4S7) spanning513production LoC across 7 modules (http.ex139,cli.ex106,runner.ex104,pacer.ex64,summary.ex47,target.ex33,stats.ex20 — matchingomp-subq-savant-1.4's exact513LoC) and685test LoC across 10 files. - 64/64 Tests Clean & No Credo: Manual
mix test(64/64passed in32.5s[0.1s async, 32.4s sync]) matches Steps259and262,mix format --check-formattedandmix compile --warnings-as-errorspassed cleanly, and Credo was not installed (depscontains only{:mint, "~> 1.11"}).
- Exact Wall-Clock Alignment (
Why S7 Failed Holdout (6/7 vs. 7/7 Claimed) Despite Looking OK in an Interactive Shell: Single
wait "$child"incbExits Immediately on Ctrl-C, Orphaningcb.escript(2 points)- Root Cause at
cb:15-19(Singlewait "$child"in POSIX/bin/sh) The launcher runsERL_AFLAGS="+B i" "$dir/cb.escript" "$@" &, trapsINTwithkill -TERM "$child", and callswait "$child"only once. In POSIX/bin/sh, catchingINTimmediately interruptswaitwith exit code130, socbexits **before**cb.escriptsettles its in-flight request or prints its summary. - Why Interactive Terminals Mask the Bug While Holdout PTY Probes Fail In a direct PTY probe (
start_new_session=True),cbexits at0.05s–1.52s(rc=130), tearing down the PTY session (SIGHUP) and killingcb.escriptbefore any summary line prints (out='^C'across all 7 probes:50ms/150msboot,800ms/1500mspacing,800msslow1.5s,800msstall3.5s, and1500mslive HTTPS). In an interactive shell (where the outer shell holds the PTY open),cbstill exits immediately (t=0.814son a1.5sslow request,t=1.516son live HTTPS), returning the prompt while the orphanedcb.escriptfinishes0.05s–1.05slater (t=1.868son slow1.5s,t=1.569son live HTTPS) and writes the summary on top of the prompt — visually looking normal interactively, yet failing S7's contract (cbmust wait for the in-flight request to settle and print the partial summary before exiting) and failing any non-interactive/piped/scripted caller.PLAN.mdLines114–117explicitly acknowledge this gap ("Known gap: under terminal Ctrl-C the summary is still truncated in the pty probe... the complete partial summary does not"), yet still marked S7[x].
- Root Cause at
Mint Connection-Reuse S3–S6 Cleared Live HTTPS (41/41 200 at 61ms p50) in 14m 52s, Before S7 Consumed 21m 27s (59% of Wall-Clock & 54% of Spend)(2 points)
- Strong Live S1–S6 Holdout Performance via Mint S1 (
--help/-hexit0, empty stderr) and S2 ([],ftp://,not-a-url,--unknown, extra args all exit2on stderr with empty stdout) passed cleanly. Using{:mint, "~> 1.11"}over a persistent connection,./cb https://rizafahmi.comachieved41/41HTTP200(0failures,p50 61 ms, p95 257 ms, vs.14/14at295 msp50 onomp-subq-savant-1.4's per-request:ssl),./cb http://rizafahmi.comachieved41/41HTTP301(p50 44 ms, p95 109 ms), and a local500 mssplit-body/dripserver completed10/10HTTP200withp50 506 ms, p95 509 ms. - Extreme S7 Bottleneck (
116Steps,21m 27s,$0.14) S1 through S6 completed in just14m 52s(151steps,$0.12). S7 alone (Steps 152–267) consumed21m 27.8s(58.9%of total wall-clock) and$0.14(53.8%of total spend) debuggingSystem.trap_signal(:sigterm, ...)shutdown races,job_outputwaits onmix test(Steps 166, 171), and a hung PTY probe killed viajob_kill(Steps 216–217).
- Strong Live S1–S6 Holdout Performance via Mint S1 (
98.93% Cache Hit Rate ($0.26 / $1.62 Saved), 3.35s/Turn Inference & Only 2 Tool Errors Across 281 Calls (Using Native write/edit Unlike dsh-deepseek-flash)(3 points)
- Unit Economics & Prefix Cache Stability: Across
269steps,subq-savant-1.4processed18,224,656prompt tokens (195,088uncached at$0.10/1M=$0.0195+18,029,568cached at$0.01/1M=$0.1803;98.93%hit rate with266/268post-Step-1 hits and only2cache-miss turns at Steps2and87as prompt grew from6,608to120,566) and121,808output tokens ($0.0609,23.4%of spend;dshbundles reasoning insideoutputTokens, streaming163,693reasoning chars), totaling18,346,464tokens and$0.260708($0.26, saving$1.62/86.2%vs. the$1.88uncached counterfactual). Cached reads accounted for69.2%of total spend. - 41.2% Inference vs. 58.7% Tool Wall-Clock Split LLM inference took
900.3s(3.35s/turnavg,2.22savg TTFT, peaking at16.8son Step18and16.5son Step4), while281tool calls took1,283.5s(58.7%, dominated by S7 PTY probes andmix testruns). Multi-tool batching remained minimal (10/269turns /3.7%,1.04tools/turn, max4). - Native
write/editAdoption & Clean Tool Error Profile Unlikedsh-deepseek-flash(0write/editcalls,36inline Python patches),subq-savant-1.4useddsh's nativewrite(36) andedit(36) tools alongside180bash,17read,8todo_write,3job_output, and1job_killcalls. Only2tool calls errored (FS_EDIT_NOT_FOUNDoneditat Step78inhttp.exand Step105inpacer_test.exs), plus4non-zerobashexits (Steps15,42,135,149) and1hung PTY probe cancelled viajob_kill(Step 217).
- Unit Economics & Prefix Cache Stability: Across
Slice / Phase Breakdown
Slice / Phase Breakdown / 9 Phases
Step Range spans transcript events (LLM + tool + system turns) · LLM Calls count completed model inference turns
| Slice / Phase | Step Range | LLM Calls | Estimated Cost |
|---|---|---|---|
PrepPreparation: workspace & Elixir 1.20.4 reconnaissance | 1–4(4 steps) | 4 | $0.01 (4%) |
S1 PassS1: CLI help, escript & SIGINT-to-SIGTERM launcher (1712f4b) | 5–26(22 steps) | 22 | $0.02 (8%) |
S2 PassS2: Target URL & CLI argument validation (4d6b31a) | 27–34(8 steps) | 8 | $0.00 |
S3 PassS3: Bounded streamed Mint HTTP/HTTPS GET client & TLS tests (3fe1432) | 35–100(66 steps) | 66 | $0.05 (19%) |
S4 PassS4: Paced 5s single-flight loop & deterministic tests (a7c2308) | 101–125(25 steps) | 25 | $0.02 (8%) |
S5 PassS5: Outcome counts, transport failures & exit codes (ac48698) | 126–138(13 steps) | 13 | $0.01 (4%) |
S6 PassS6: Elapsed duration & completed-response p50/p95 latencies (9e9a6dd) | 139–151(13 steps) | 13 | $0.01 (4%) |
S7 MissS7: Foreground Ctrl-C probes, launcher & release checks (fffc6b4) | 152–267(116 steps) | 116 | $0.14 (54%)Peak |
PostRelease verification: final todo & handoff summary | 268–269(2 steps) | 2 | $0.00 |
| Total (9 phases) | 269 steps | 269 | $0.26 |
Tokens, Cache & Cost
Tokens, Cache & Cost / 2026 SubQ Savant 1.4 API (90% cache off)
| Component | Tokens | Rate | Estimated Cost |
|---|---|---|---|
| Uncached Input | 195,088 | $0.10 / 1M | $0.019509 |
| Cached Input (cacheReadTokens) | 18,029,568 | $0.01 / 1M (90% off) | $0.180296 |
| Output (reasoning bundled by dsh) | 121,808 | $0.50 / 1M | $0.060904 |
| Total | 18,346,464 | — | $0.26 ($0.260708) |
Calls & Tool Breakdown
Calls & Tool Breakdown / Tool Loop
- LLM Inference Turns
- 269completed agent_response steps
- Tool Executions
- 281279 succeeded· 2 non-zero / error
- tool/bash180(64% · 180 ok)
- tool/write36(13% · 36 ok)
- tool/edit36(13% · 34 ok, 2 err)
- tool/read17(6% · 17 ok)
- tool/todo_write8(3% · 8 ok)
- tool/job_output3(1% · 3 ok)
- tool/job_kill1(0% · 1 ok)
Command & Interface Used
Command / Interface Used / CLI
dsh headless --permission-mode danger-full-access --approval-policy never --json < PROMPT.md (provider: subq, model: subq-savant-1.4, reasoningEffort: high)Run window: 19:54:06–20:30:34 WIB (36m 27.3s / 2,187.3s wall-clock in session.v4.jsonl.zstd; 36m28s in manual note, 19:38:29 git init; preceded by 0-token 400 validation abort at 19:45:07 WIB) • Session session-0c5ba62f-5e64-4184-817a-a57af1fcafae (subq / subq-savant-1.4, reasoningEffort: high, dsh native mode with 24 tools advertised, 269 LLM steps, 0 compactions)
Git Commits
Git Commits / 8 Checkpoints
Author: Riza Fahmi · Timestamps relative to post-run capture
7dcfd4einit