OpenCode / inkling-2-small-free
Full 7/7 Spec & Holdout Pass (61/61 Tests, 0 Credo Issues) on OpenCode's Free Inkling 2 Small Tier Read field notes ↓
- Outcome
- 7/7 slices
- All 7 specification slices passed · 61/61 tests
- Time Elapsed
- 1h 46m
- Range 14m–1h 51m (28 runs)
- Estimated Cost
- $0.00
- OpenCode Limited-Time Free Tier (Nov 2026 · paid rate TBD)
Test suite & secondary run metrics
Processed 73.45M tokens across 390 inference turns in 1h 46m; recovered from 7 tool errors across 389 executions.
- Test Suite
- 61/61
- 100% passed (87.1s)
- Total Tokens
- 73.45M
- 99.45% cache hit · 403.2k uncached · 317.6k out
- LLM & Tool Calls
- 390 turns
- 389 tool executions (7 errors)
- Peak Context
- 378.4k peak
- 1,929 → 378,440 prompt tokens; 379,666 total; 36.09% out of 1.05M
- Git Commits
- 10
- Recorded in commit log below
Finished in 87.1 seconds (66.8s async, 20.2s sync) — 61 passed (87.4s–87.7s across 3 full-suite runs in JSONL; mix format --check-formatted clean; mix credo: 57 checks on 24 files, 146 mods/funs, 0 issues)
Plan Completion / 7 of 7 Slices
+26 prep/wrap-up calls ↓- 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: Passed (Peak effort bottleneck)Handle Ctrl-C
Field Notes / 5 Observations
Full 7/7 Spec & Holdout Pass (61/61 Tests, 0 Credo Issues) on OpenCode's Free Inkling 2 Small Tier(3 points)
- Complete Outside-In Delivery Across 10 Commits Over 1h 45m 58s (07:44:57–09:30:55 WIB in
20261111T004457Z.events.jsonl, preceded by a 1.4sprovider.no-routefailure at 07:44:40 whenrun_opencode.fishwas initially invoked on defaultopenai/gpt-6-sol),opencode/inkling-2-small-free#high(Thinking Machines Lab's 17B-active / 594B-total MoE model) completed all 7 stages (S1–S7) plus release verification in 10 commits (2a36b6b→2f73c81). - All Verification Gates Green:
mix format --check-formattedpassed cleanly,mix credoreported 0 issues across 24 files (146 mods/funs), andmix testpassed 61/61 tests in 87.1s (66.8s async, 20.2s sync). - Strict Git Hygiene Recovery (Steps 82–83): When committing S1 at Step 82 (
git add -A), the agent noticedrecords/20261111T004440Z.*andrecords/20261111T004457Z.*had been staged into2a36b6b. On the very next step (Step 83), it rangit rm -q --cached records/... && git commit --amend --no-edit -qand used explicit paths or':!records'for the remaining 9 commits.
- Complete Outside-In Delivery Across 10 Commits Over 1h 45m 58s (07:44:57–09:30:55 WIB in
Empirically Audited & Rejected Erlang
:httpcAfter Proving 3xx/4xx/5xx Bodies Are Buffered Whole(3 points)- 24-Step Empirical
:httpcInvestigation (Steps 98–121, 5m 20s) At the start of S3, the agent built disposable probes under/tmp/opencode/httpc_exptesting:httpc.request/5withstream: :selfand{:sync, false}against local servers returning200,302,404, and503. - Pinpointing
IS_STREAMEDin OTPinetsSource (Steps 114–121) While200 OKproduced{:http, {ref, :stream_start, headers}}chunks,302/404/503returned a single buffered{{vsn, status, phrase}, headers, body}tuple. Inspecting/nix/store/.../inets/src/http_client/httpc_handler.erlat Steps 118–121 confirmed:httpconly streams200and206responses, violating the V1 contract requirement to stream and discard response bodies for every status. - Zero-Dependency
CapyBench.ConnectionOver:gen_tcp&:sslThe agent implemented a custom HTTP/1.1 client with an absolute monotonic deadline (System.monotonic_time(:millisecond) + timeout_ms), 64 KiB response-head / 8 KiB line caps, 64 KiB chunked/Content-Length/EOF body discard, keep-alive socket reuse without automatic retries, and:sslpeer verification (verify: :verify_peer,:public_key.cacerts_get/0+CB_EXTRA_CA_CERTDER injection, and:public_key.pkix_verify_hostname_match_fun(:https)).
- 24-Step Empirical
Four Real Signal & PTY Fixes in S1/S7:
+BiSIGUSR1 Wrapper, POSIX Trap Wait Loop & OTP Boot Handler(4 points)- 1. Bypassing the BEAM Break Handler (
./cb++Bi, Steps 7–68) Probing:os.set_signal(:sigint, :handle)at Step 9 raisedArgumentErrorbecause the BEAM reservesSIGINTfor its break handler, and plain escripts exited 0 on Ctrl-C without running Elixir code. After inspecting OTP'serl_signal_server.erlin/nix/store(Steps 38–43), the agent configuredescript: [main_module: CapyBench.CLI, name: "cb-escript", emu_args: "+Bi"], added a committed POSIX./cbwrapper that trapsINT/TERMand forwardskill -USR1 "$child", and installedCapyBench.SignalHandleron:erl_signal_server. - 2. Moving Signal Registration to
CapyBench.Application.start/2(Steps 320–337) During S7expectPTY testing, early Ctrl-C signals crashed the BEAM with"Received SIGUSR1\nCrash dump is being written..."on stderr becauseSIGUSR1arrived while the VM was still booting beforeCapyBench.CLI.main/1ran. CreatingCapyBench.Applicationto installCapyBench.SignalHandlerat OTP application startup eliminated the boot race. - 3. Fixing POSIX
shInterruptedwaitSIGHUP Race (Steps 338–347) Even with the boot handler installed,expectPTY runs produced empty stdout because in POSIX/bin/sh,wait "$child"returns immediately (status > 128) as soon as thetraphandler fires whilecb-escriptis still finishing its in-flight request;./cbthen exited, closing the PTY master and SIGHUP-killing the BEAM beforeCapyBench.Summarycould print. Loopingwhile kill -0 "$child" 2>/dev/null; do wait "$child"; rc=$?; donekept the PTY open untilcb-escriptsettled. - 4. Eliminating Pacing Sleep-Slicing Throughput Regression (Steps 350–357) Slicing all pacing sleeps into 10ms polling chunks caused OS timer overhead that dropped 5s loop throughput from 50 to 38–39 requests (~24% loss), breaking 3
HTTPTestassertions. Restrictingsleep_with_interrupt_check/2slicing to waits> 500ms(the post-50-cap window drain) restored 50/50 throughput while keeping Ctrl-C responsive.
- 1. Bypassing the BEAM Break Handler (
Caught & Fixed Two Subtle Contract Deviations in S6/Release Verification (4.9s Early Exit & TLS Logger on stdout)(2 points)
- 50-Start Cap Early Return at ~4.90s (Steps 262–265) While testing S6 against a local server, the agent noticed that when all 50 requests completed rapidly on a reused keep-alive connection (the 50th request dispatching at ~4.90s), the loop exited immediately at
Elapsed: 4.91 sinstead of waiting for the 5.00s start window to close. It updatedCapyBench.Benchmark(acc.started >= @max_starts) to drain the remaining start window (max(acc.deadline - current, 0)) and added a deterministic test assertingsummary.elapsed_ms >= 5_000. - OTP
:loggerWriting TLS:noticeAlerts tostdout(Steps 373–382,32c0acd) During post-S7 release verification against an untrusted HTTPS server, byte-count checks (stdout=$(wc -c < t_out.txt)B) revealed OTP's:sslhandshake logged[notice] TLS :client: ... Unknown CAtostdout, violating the contract that diagnostics go tostderr. When:logger.update_handler_config(:default, :config, %{type: :standard_error})failed at Step 377 because:logger_std_hforbids mutating:typein place, the agent removed and re-added:defaultwithtype: :standard_errorinCapyBench.Application.start/2.
- 50-Start Cap Early Return at ~4.90s (Steps 262–265) While testing S6 against a local server, the agent noticed that when all 50 requests completed rapidly on a reused keep-alive connection (the 50th request dispatching at ~4.90s), the loop exited immediately at
390 Strict Single-Tool Turns Across a 378.4k Uncompacted Context Window (99.45% Cache Hit Rate)(3 points)
- Zero Parallel Tool Calls (389 Tool Calls in 390 Steps) Across the entire 106-minute session,
inkling-2-small-freenever batched multiple tool calls in a single turn—executing exactly 1 tool call in Steps 1–389 (261 shell,76 edit,39 write,13 read) and finishing with a text summary in Step 390. - 99.45% Prefix Cache Hit Rate with Zero Compactions Prompt context grew monotonically from
1,929tokens (Step 1) to378,440tokens (Step 390;36.09%of its1,048,576context window) with zero cache evictions or compactions, serving72,730,624cached tokens against403,232uncached input tokens and317,617output tokens (207,734reasoning +109,883visible/tool output;73,451,473total tokens). - Three 120s Shell Timeouts & Seven
editMismatches All 7 tool errors wereeditoldStringmismatches (2duplicate matches,5whitespace/context misses) that were immediately resolved on the next turn. Inshell, 3 commands hit 120s timeouts: two during S1 signal probing (Step 25ctrlc2+Bdloop and Step 31find /nix/store -name "os.xml") and one at Step 218 when running the fullmix testsuite with a 120s timeout after S4 added multiple 5s-loop CLI tests.
- Zero Parallel Tool Calls (389 Tool Calls in 390 Steps) Across the entire 106-minute session,
Slice / Phase Breakdown
Slice / Phase Breakdown / 8 Phases
Step Range spans transcript events (LLM + tool + system turns) · LLM Calls count completed model inference turns
| Slice / Phase | Step Range | LLM Calls | Thinking Tokens | Estimated Cost |
|---|---|---|---|---|
S1 PassPreparation + S1: CLI help, cb-escript +Bi wrapper & SIGUSR1 handler (2a36b6b) | 1–83(83 steps) | 83 | 38,176 | $0.00 (21%) |
S2 PassS2: URL & argument validation before networking (eba5776) | 84–97(14 steps) | 14 | 8,085 | $0.00 (4%) |
S3 PassS3: :httpc streaming audit & zero-dep HTTP/1.1 + TLS client (839ca54) | 98–181(84 steps) | 84 | 45,795 | $0.00 (22%) |
S4 PassS4: Paced 5s single-flight loop & keep-alive test server (df4f6ee) | 182–220(39 steps) | 39 | 21,478 | $0.00 (10%) |
S5 PassS5: HTTP status outcomes, transport failures & exit codes (bdd3ad7) | 221–249(29 steps) | 29 | 8,169 | $0.00 (7%) |
S6 PassS6: Elapsed time, 50-cap window drain & p50/p95 latency (70a8566) | 250–272(23 steps) | 23 | 10,882 | $0.00 (6%) |
S7 PassS7: OTP boot signal handler, POSIX wait loop & expect PTY Ctrl-C (68b7170, a066cbf) | 273–364(92 steps) | 92 | 65,872 | $0.00 (24%)Peak |
PostRelease verification: OTP logger stderr swap & final sign-off (32c0acd, 2f73c81) | 365–390(26 steps) | 26 | 9,277 | $0.00 (7%) |
| Total (8 phases) | 390 steps | 390 | 207,734 | $0.00 |
Tokens, Cache & Cost
Tokens, Cache & Cost / OpenCode Limited-Time Free Tier
| Component | Tokens | Rate | Estimated Cost |
|---|---|---|---|
| Input (uncached) | 403,232 | $0.00 / 1M (limited-time free) | $0.00 |
| Cached (cacheRead) | 72,730,624 | $0.00 / 1M (limited-time free) | $0.00 |
| Output (incl. 207,734 reasoning) | 317,617 | $0.00 / 1M (limited-time free) | $0.00 |
| Total | 73,451,473 | — | $0.00 (OpenCode limited-time free tier, Nov 2026) |
Calls & Tool Breakdown
Calls & Tool Breakdown / Tool Loop
- LLM Inference Turns
- 390completed agent_response steps
- Tool Executions
- 389382 succeeded· 7 non-zero / error
- tool/shell261(67% · 261 ok)
- tool/edit76(20% · 69 ok, 7 err)
- tool/write39(10% · 39 ok)
- tool/read13(3% · 13 ok)
Command & Interface Used
Command / Interface Used / CLI
opencode run --standalone --format json --thinking --auto --archived --model opencode/inkling-2-small-free#high < PROMPT.mdRun window: 07:44:57–09:30:55 (1h 45m 58s / 6,358.2s wall-clock in opencode.log; 07:44–09:31 in manual note; preceded by a 1.4s 07:44:40 provider.no-route error on default openai/gpt-6-sol) • Session ses_e37ef566bffeASe6Rv96Hwq41w (opencode / inkling-2-small-free#high, OpenCode v2.2.7, 390 steps, 0 compactions)
Git Commits
Git Commits / 11 Checkpoints
Author: Riza Fahmi · Timestamps relative to post-run capture
2f73c81PLAN: record release verification results and unverified checks32c0acdRelease verification: route logger output to stderrf8bdd93init