docs(examples): intelligence-coding-bench — full Intelligence SDK over the webcode benchmark#418
Merged
Merged
Conversation
…nchmark with the full Intelligence SDK
Imports the EXACT webcode-matrix grid + tasks and wraps every harness×model cell in all three
Tangle Intelligence layers:
1. withTangleIntelligence — the billing boundary + effort tiers ('off' = provable passthrough floor)
2. createWaterfallCollector — the per-tool cost waterfall (sum of spans IS the billed cost)
3. createOtelExporter + loopEventToOtelSpan — stream spans to an OTLP/HTTP collector
- new examples/intelligence-coding-bench/{intelligence-coding-bench.ts,README.md}
- webcode-matrix exports its grid + tasks + WebCodeTask so the example reuses the same benchmark
- bidirectional README links (main showcase row + webcode-matrix back-link)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new example that takes the
webcode-matrixharness×model coding benchmark and wraps every cell in the full Tangle Intelligence SDK. It imports the exact grid + task set next door (no fork) and adds only the instrumentation.The three intelligence layers (all on one cell)
withTangleIntelligence(cell, { project, effort })effort ∈ off·eco·standard·thorough·max;'off'= provable passthrough floor (intelligence spend clamped to 0, cell still runs)createWaterfallCollector()createOtelExporter()+loopEventToOtelSpanOTEL_EXPORTER_OTLP_ENDPOINTset)Two seams: the boundary wraps the whole cell (works over any async fn); the internal trace rides
openSandboxRun'shooks(the one run-verb that emits per-tool spans).Linked, both ways
webcode-matrixexports itsgrid+tasks+WebCodeTask; this example imports them — same benchmark, observability view.webcode-matrix/README.md.Verification
tscclean on examples (0 errors); biome clean.withTangleIntelligencepassthrough returns input unchanged; the otel-hook adapter produces a valid span (normalized traceId + spanId + name);createOtelExporter()is undefined without an endpoint.openSandboxRunpattern fromwebcode-matrix. The full 12-cell live run needsSANDBOX_API_KEY+EXA_API_KEYand is not CI-run (cost) — same aswebcode-matrix.