feat(router): smart routers and per-member rate limits (#9)

Add smart routers: virtual models that score each request and route it to admin-defined model tiers. A retryable failure moves the request to a higher tier. The classifier v2 extracts prose, finds the original ask in long tool loops, adds an uncertainty margin and reads tool-output failures. Sessions, outcome signals, bounded calibration, adaptive selection within a tier, gated saturation downgrade, a first-byte timeout and an opt-in timeout fallback are included. Every new feature is off by default.

Add per-member group limits, a tokensPerMinute window that counts uncached input and output, rate-limit headers in three dialects, soft pacing before the hard limit, and a limitExemptKinds list so embedding and reranking traffic never counts toward or hits a limit.

Fix yaegi named-result state that made smartContentSize grow between calls.
This commit is contained in:
2026-11-25 00:40:30 +00:00
committed by GitHub
parent 6fb048b599
commit 4c61d19a72
154 changed files with 73356 additions and 286 deletions
+188
View File
@@ -0,0 +1,188 @@
[
{
"id": "ho-cc01",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "yo"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "one-word greeting"
},
{
"id": "ho-cc02",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "lol ok thx bye"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "sign-off"
},
{
"id": "ho-cc03",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "whats a good name for a black cat"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "light creative naming"
},
{
"id": "ho-cc04",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "hey, i'm bored. tell me something weird about octopuses"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "trivia small talk"
},
{
"id": "ho-cc05",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "how tall is mt everest in feet?"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "single fact lookup"
},
{
"id": "ho-cc06",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "good morning! it's raining again here, any ideas for a cozy sunday?"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "small talk with mild suggestion"
},
{
"id": "ho-cc07",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "hi"
},
{
"role": "assistant",
"content": "Hello! How can I help?"
},
{
"role": "user",
"content": "nothing really just testing if you're up"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "history small talk"
},
{
"id": "ho-cc08",
"group": "chitchat",
"lang": "en",
"intent": "chitchat",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "recommend a sci-fi book like Dune but shorter"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "recommendation, low can do it"
}
]
+346
View File
@@ -0,0 +1,346 @@
[
{
"id": "ho-dbg01",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "why does this deadlock\n\nfunc (l *Ledger) Transfer(from, to int, amt int64) error {\n\tl.accts[from].mu.Lock()\n\tdefer l.accts[from].mu.Unlock()\n\tl.accts[to].mu.Lock()\n\tdefer l.accts[to].mu.Unlock()\n\tif l.accts[from].bal < amt { return ErrFunds }\n\tl.accts[from].bal -= amt\n\tl.accts[to].bal += amt\n\treturn nil\n}\n\ngoroutine 1 [semacquire, 4 minutes]:\nsync.runtime_SemacquireMutex(0xc0001a2058, 0x0, 0x1)\nsync.(*Mutex).lockSlow(0xc0001a2054)\nmain.(*Ledger).Transfer(0xc0001a2000, 0x1, 0x2, 0x64)\n\t/app/ledger.go:57 +0x8a\ngoroutine 18 [semacquire, 4 minutes]:\nsync.(*Mutex).Lock(...)\nmain.(*Ledger).Transfer(0xc0001a2000, 0x2, 0x1, 0x32)\n\t/app/ledger.go:57 +0x9c\nmain.worker(0xc00009e000)\n\t/app/main.go:31 +0x65\ncreated by main.main\n\t/app/main.go:19 +0x7d\n"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "terse; classic lock-order inversion visible in dump, needs reasoning about fix"
},
{
"id": "ho-dbg02",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "make it O(n log n)\n\n```python\ndef count_inversions(a):\n c = 0\n for i in range(len(a)):\n for j in range(i+1, len(a)):\n if a[i] > a[j]: c += 1\n return c\n```"
}
]
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "merge-sort inversion counting; known algorithm but not trivial"
},
{
"id": "ho-dbg03",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "is this migration safe to run online?\n\n```sql\nBEGIN;\nALTER TABLE payments ADD COLUMN status_v2 text NOT NULL DEFAULT 'new';\nCREATE INDEX idx_payments_status_v2 ON payments(status_v2);\nUPDATE payments SET status_v2 = status;\nALTER TABLE payments DROP COLUMN status;\nCOMMIT;\n```\npayments is ~600M rows, pg 13"
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "index build + full-table update + drop in one txn: blocking locks, rewrites, rollback paths; must spot multiple hazards"
},
{
"id": "ho-dbg04",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "getting 'TypeError: Cannot read properties of undefined (reading 'map')' in my react component, items comes from useQuery data. fix?\n\n```jsx\nfunction List({q}){\n const {data} = useQuery(['items',q], fetchItems);\n return <ul>{data.items.map(i=><li key={i.id}>{i.name}</li>)}</ul>\n}\n```"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "missing loading guard; textbook"
},
{
"id": "ho-dbg05",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "pod keeps CrashLoopBackOff, describe says Liveness probe failed: connection refused. app listens on 8080.\n\n```yaml\ncontainers:\n- name: api\n image: reg/api:1.4\n ports: [{containerPort: 8080}]\n livenessProbe:\n httpGet: {path: /healthz, port: 80}\n initialDelaySeconds: 2\n periodSeconds: 3\n failureThreshold: 1\n```"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "probe port 80 vs 8080 plus aggressive thresholds; easy spot"
},
{
"id": "ho-dbg06",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "ci only: TestCacheExpiry fails ~1 in 20 runs w/ -race clean. uses time.Sleep(50ms) then asserts entry gone, ttl 40ms, janitor ticks every 25ms. laptop never fails. whats going on and how do i make it deterministic without sleeping"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "flaky timing test; needs clock injection design"
},
{
"id": "ho-dbg07",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "we see p99 latency double after adding 2 read replicas behind pgbouncer in transaction mode. avg is flat. replicas are same size. what would you check first and why could more capacity make tails worse?"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "open-ended perf diagnosis with several plausible mechanisms (replication lag retries, pool imbalance, cache cold)"
},
{
"id": "ho-dbg08",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "select * from users where id = 5; returns nothing but i can see user 5 in the admin page??"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "vague but typically trivial cause; mid acceptable"
},
{
"id": "ho-dbg09",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "regex to match an ipv4 address, not just 4 groups of digits"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "known regex"
},
{
"id": "ho-dbg10",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "write a regex that matches strings with balanced parentheses, any nesting depth. js flavor"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "impossible in classic regex; must explain limits and give alternative; mid can"
},
{
"id": "ho-dbg11",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "sessionize this: events(user_id, ts) one row per click. new session when gap > 30 min. need session_id and per-session duration, postgres. also first-touch utm per session from events.utm. data has ~2B rows so no self-joins pls"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "window functions with gap detection and first_value; performance constraint"
},
{
"id": "ho-dbg12",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "top 5 customers by total order amount last 30 days, tables customers(id,name) orders(id,customer_id,amount,created_at) postgres"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "basic aggregate"
},
{
"id": "ho-dbg13",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "pandas: df.groupby('region')['sales'].mean() but i want it sorted desc and only top 3"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "basic pandas"
},
{
"id": "ho-dbg14",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "A/B test, conversion 4.1% vs 4.6%, we peeked at p every day for 3 weeks and it hit p=0.04 on day 19. n=18k per arm. can we ship? what would you do"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "sequential-testing / peeking inflation reasoning"
},
{
"id": "ho-dbg15",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Traceback (most recent call last):\n File \"/srv/app/worker.py\", line 88, in run\n result = handler(job)\n File \"/srv/app/handlers/export.py\", line 142, in export_csv\n writer.writerow(row)\n File \"/usr/lib/python3.11/csv.py\", line 154, in writerow\n return self.writer.writerow(self._dict_to_list(rowdict))\nUnicodeEncodeError: 'ascii' codec can't encode character '\\xe9' in position 12: ordinal not in range(128)\n\njust tell me which line of mine is the problem, no need for a lecture"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "scary traceback but answer is read off: export.py:142 / open() encoding"
},
{
"id": "ho-dbg16",
"group": "debug",
"lang": "en",
"intent": "debug",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "fatal error: all goroutines are asleep - deadlock!\n\ngoroutine 1 [chan send]:\nmain.main()\n\t/tmp/x.go:9 +0x45\nexit status 2\n\nwhich line? thx"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "scary dump, trivial unbuffered send; answer is line 9"
}
]
+154
View File
@@ -0,0 +1,154 @@
[
{
"id": "ho-ds01",
"group": "design",
"lang": "en",
"intent": "design",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "design a collaborative text editor backend with offline edits, CRDT vs OT tradeoffs, how do you GC tombstones without breaking late-joining clients? ~50k concurrent docs"
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "deep distributed-systems tradeoffs, GC safety"
},
{
"id": "ho-ds02",
"group": "design",
"lang": "en",
"intent": "design",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "monolith or microservices for a 6 person team building a b2b invoicing app? we're pre-seed"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "opinion with well-known answer"
},
{
"id": "ho-ds03",
"group": "design",
"lang": "en",
"intent": "design",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "we need multi-region active-active for a payments ledger, strict no double-spend, RPO 0. sketch the architecture and say honestly what we give up. cockroach vs spanner vs rolling our own with consensus per account"
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "consistency vs latency under partition, hard tradeoffs"
},
{
"id": "ho-ds04",
"group": "design",
"lang": "en",
"intent": "design",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "which db for a todo app, postgres or mongo"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "trivial recommendation"
},
{
"id": "ho-ds05",
"group": "design",
"lang": "en",
"intent": "design",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "how should i structure the event schema for an audit log that must be queryable by actor, resource and time range, retained 7 years, and be tamper evident"
}
]
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "schema + hash chain design; moderate"
},
{
"id": "ho-ds06",
"group": "design",
"lang": "en",
"intent": "design",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "explain the difference between a mutex and a semaphore"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "textbook"
},
{
"id": "ho-ds07",
"group": "design",
"lang": "en",
"intent": "design",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "design the rollout for changing our primary key type from int to uuid on a table referenced by 14 other tables, zero downtime, with a 9TB database and a monthly deploy freeze"
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "multi-table online key migration with constraints"
}
]
+134
View File
@@ -0,0 +1,134 @@
[
{
"id": "ho-ed01",
"group": "edit",
"lang": "en",
"intent": "edit",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "rename the variable `x` to `count` in this function\n\n```js\nfunction tally(list){ let x=0; for(const i of list){ if(i.ok) x++; } return x; }\n```"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "mechanical rename"
},
{
"id": "ho-ed02",
"group": "edit",
"lang": "en",
"intent": "edit",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "add retry w/ exponential backoff + jitter to this, max 5 tries, only on 5xx/timeouts\n\n```go\nfunc fetch(ctx context.Context, url string) ([]byte, error) {\n\tresp, err := http.Get(url)\n\tif err != nil { return nil, err }\n\tdefer resp.Body.Close()\n\treturn io.ReadAll(resp.Body)\n}\n```"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "small well-known pattern"
},
{
"id": "ho-ed03",
"group": "edit",
"lang": "en",
"intent": "edit",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "convert to async/await:\n\n```js\nfunction load(id, cb){ getUser(id, (e,u)=>{ if(e) return cb(e); getOrders(u.id,(e2,o)=>{ if(e2) return cb(e2); cb(null,{u,o}); }); }); }\n```"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "mechanical conversion"
},
{
"id": "ho-ed04",
"group": "edit",
"lang": "en",
"intent": "edit",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "we have a package-level `var db *sql.DB` and `var cfg Config` used from ~40 funcs across handlers/, jobs/ and billing/. refactor to constructor injection so each package is unit-testable, without a big-bang change. give me the migration plan in steps that each compile and pass tests, plus the target struct layout for the 3 packages"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "incremental DI refactor plan, needs design judgement but mid-tier workable"
},
{
"id": "ho-ed05",
"group": "edit",
"lang": "en",
"intent": "edit",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "add a docstring to this\n\n```python\ndef f(a, b=None):\n return [x for x in a if x != b]\n```"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "docstring only"
},
{
"id": "ho-ed06",
"group": "edit",
"lang": "en",
"intent": "edit",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "add cursor pagination to GET /orders (currently returns all rows ordered by created_at desc, id is uuid v4). must be stable under concurrent inserts and not use OFFSET. show sql + handler changes + response shape"
}
]
}
]
},
"session": null,
"minTier": 1,
"maxTier": 1,
"notes": "keyset on (created_at,id) tuple; mid-level standard task"
}
]
+158
View File
@@ -0,0 +1,158 @@
[
{
"id": "ho-fu01",
"group": "followup",
"lang": "en",
"intent": "followup",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "how do i undo my last git commit but keep the changes"
},
{
"role": "assistant",
"content": "Run `git reset --soft HEAD~1`. Your changes stay staged."
},
{
"role": "user",
"content": "and?"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "one-word follow-up on easy git answer"
},
{
"id": "ho-fu02",
"group": "followup",
"lang": "en",
"intent": "followup",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "why is my kafka consumer lagging even though cpu is idle? 12 partitions, 3 consumers, max.poll.interval.ms default, handler does an http call per record"
},
{
"role": "assistant",
"content": "Likely the per-record synchronous HTTP call serialises you; with 4 partitions per consumer you are bound by round-trip latency, and slow calls can also exceed max.poll.interval.ms causing rebalances. Options: batch, async with bounded concurrency, or raise partitions/consumers."
},
{
"role": "user",
"content": "ok do it, give me the version with bounded concurrency but keep offset commits correct"
}
]
},
"session": {"replay": true},
"minTier": 1,
"maxTier": 2,
"notes": "session-required: follow-up carries a real design task: ordering plus commit correctness"
},
{
"id": "ho-fu03",
"group": "followup",
"lang": "en",
"intent": "followup",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "write a haiku about monday"
}
]
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Alarm bites the dawn / coffee steams, the inbox groans / week begins again"
}
]
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "another one"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "bare follow-up on trivial creative task"
},
{
"id": "ho-fu04",
"group": "followup",
"lang": "en",
"intent": "followup",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "is it safe to run ALTER TABLE orders ADD COLUMN note text on a 400M row postgres 14 table in prod"
},
{
"role": "assistant",
"content": "Yes on PG11+: adding a nullable column with no default is a catalog-only change and takes a brief ACCESS EXCLUSIVE lock. Set lock_timeout so you do not queue behind long transactions."
},
{
"role": "user",
"content": "what if i want NOT NULL default 'n/a'"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "narrow follow-up with a known answer (PG11+ fast default)"
},
{
"id": "ho-fu05",
"group": "followup",
"lang": "en",
"intent": "followup",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "explain why this prints 3 3 3: for (var i=0;i<3;i++){setTimeout(()=>console.log(i))}"
},
{
"role": "assistant",
"content": "var is function scoped so all closures share one i, which is 3 by the time callbacks run. Use let."
},
{
"role": "user",
"content": "why"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "terse why on closure basics"
}
]
+168
View File
@@ -0,0 +1,168 @@
[
{
"id": "ho-ma01",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "prove that sum of first n odd numbers is n^2"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "induction textbook"
},
{
"id": "ho-ma02",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "∫ x e^x dx"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "integration by parts"
},
{
"id": "ho-ma03",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "prove there are infinitely many primes congruent to 3 mod 4"
}
]
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Euclid-style proof with a mod-4 argument"
},
{
"id": "ho-ma04",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "number of ways to tile a 2xn strip with 1x2 dominoes and 2x2 squares? give recurrence, closed form, and prove it"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Jacobsthal recurrence derivation and closed form"
},
{
"id": "ho-ma05",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "find all functions f:N->N such that f(f(n)) + f(n) = 2n + 3 for all n. full proof"
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "functional equation; needs careful proof"
},
{
"id": "ho-ma06",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "expected number of draws to collect all 10 distinct coupons"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "coupon collector, 10*H_10"
},
{
"id": "ho-ma07",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "let f be continuous on R with f(x+y)=f(x)+f(y). show f(x)=cx. then what breaks if we drop continuity?"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Cauchy equation; discussion of Hamel basis"
},
{
"id": "ho-ma08",
"group": "math",
"lang": "en",
"intent": "math",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "whats 17% of 240"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "arithmetic"
}
]
+386
View File
@@ -0,0 +1,386 @@
[
{
"id": "ho-ne01",
"group": "nonenglish",
"lang": "pl",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Cześć! Co polecasz na szybki obiad, mam tylko ryż, jajka i trochę warzyw?"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "Polish casual cooking ask"
},
{
"id": "ho-ne02",
"group": "nonenglish",
"lang": "pl",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Dlaczego mój program w Go się zawiesza? Dwie gorutyny, jedna trzyma mutex A i czeka na B, druga odwrotnie, ale tylko czasem. Jak to zaprojektować, żeby nie było deadlocka i nie stracić współbieżności przy 64 kontach bankowych i przelewach między nimi?"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Polish lock-ordering design for concurrent transfers"
},
{
"id": "ho-ne03",
"group": "nonenglish",
"lang": "de",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Kannst du bitte diesen Satz korrigieren: 'Ich habe gestern zu dem Arzt gegangen und er hat mir ein Medikament verschreibt.'"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "German grammar fix"
},
{
"id": "ho-ne04",
"group": "nonenglish",
"lang": "de",
"intent": "nonenglish",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Zeige, dass jede Gruppe der Ordnung 15 zyklisch ist, und erkläre, wo genau der Satz von Sylow gebraucht wird."
}
]
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "German group theory proof via Sylow"
},
{
"id": "ho-ne05",
"group": "nonenglish",
"lang": "es",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "oye, ¿cómo se dice 'no pasa nada' en inglés según el contexto? me da miedo sonar raro"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "Spanish phrase translation chat"
},
{
"id": "ho-ne06",
"group": "nonenglish",
"lang": "es",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Tengo un servicio de rate limiting distribuido con Redis y ventana deslizante; bajo carga con 6 réplicas se cuelan hasta 2x las peticiones permitidas en los bordes de la ventana. ¿Cómo lo rediseño para que sea casi exacto sin que Redis sea el cuello de botella?"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Spanish distributed rate limiter design"
},
{
"id": "ho-ne07",
"group": "nonenglish",
"lang": "fr",
"intent": "nonenglish",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Peux-tu résumer en deux phrases : 'Le conseil municipal a adopté hier un budget en hausse de 3 %, principalement pour la rénovation des écoles et des pistes cyclables.'"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "French short summary"
},
{
"id": "ho-ne08",
"group": "nonenglish",
"lang": "fr",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Ma migration Postgres ajoute un index unique sur une table de 200 millions de lignes avec des écritures continues. Comment la faire sans verrou bloquant, gérer les doublons existants, et revenir en arrière si ça échoue?"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "French online-migration planning"
},
{
"id": "ho-ne09",
"group": "nonenglish",
"lang": "zh",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "你好,帮我想一个周末去杭州玩的简单行程吧"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "Chinese travel itinerary chat"
},
{
"id": "ho-ne10",
"group": "nonenglish",
"lang": "zh",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "我们的分布式事务用的是TCC,最近在网络分区后出现了悬挂和空回滚,同时Try超时重试导致重复预留库存。请给出幂等、防悬挂的完整设计,并证明在最坏情况下库存不会超卖。"
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "Chinese TCC idempotency/anti-hanging design with correctness argument"
},
{
"id": "ho-ne11",
"group": "nonenglish",
"lang": "ja",
"intent": "nonenglish",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "取引先へのお詫びメールを丁寧な敬語に直してください:「昨日は打ち合わせに遅れてすみませんでした。資料は今日中に送ります」"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "Japanese keigo rewrite"
},
{
"id": "ho-ne12",
"group": "nonenglish",
"lang": "ja",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Kubernetesで、HPAがCPU使用率は低いのにスケールアウトし続けて、ノードが足りずPodがPendingになります。カスタムメトリクスとPDB、topologySpreadConstraintsの相互作用を踏まえて原因の切り分け手順を教えてください。"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Japanese k8s autoscaling diagnosis"
},
{
"id": "ho-ne13",
"group": "nonenglish",
"lang": "ru",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Привет! Подскажи, как по-русски вежливо отказаться от приглашения на свадьбу коллеги?"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "Russian polite refusal"
},
{
"id": "ho-ne14",
"group": "nonenglish",
"lang": "ru",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Докажи, что для любого простого p > 3 число p^2 - 1 делится на 24, и обобщи на произведение двух различных простых."
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Russian number theory proof"
},
{
"id": "ho-ne15",
"group": "nonenglish",
"lang": "ar",
"intent": "nonenglish",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "مرحبا، كيف حالك؟ اقترح علي اسما لمقهى صغير"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "Arabic small talk/naming"
},
{
"id": "ho-ne16",
"group": "nonenglish",
"lang": "ar",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "عندي نظام طوابير رسائل يعيد تسليم الرسائل أحيانا ويسبب خصما مزدوجا من الرصيد. صمم لي حلا يضمن المعالجة مرة واحدة فعليا مع قاعدة بيانات عادية وبدون معاملات موزعة، واشرح حالات الفشل."
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "Arabic exactly-once effect design under failures"
},
{
"id": "ho-ne17",
"group": "nonenglish",
"lang": "hi",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "नमस्ते! मुझे एक छोटा सा जन्मदिन संदेश लिखना है दोस्त के लिए, थोड़ा मज़ेदार।"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "Hindi birthday message"
},
{
"id": "ho-ne18",
"group": "nonenglish",
"lang": "hi",
"intent": "nonenglish",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "मेरे Python async सर्विस में asyncio.gather के साथ कुछ tasks cancel होने पर connection pool लीक हो रहा है और shutdown पर hang होता है। कारण समझाओ और सही cancellation-safe पैटर्न दो।"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "Hindi asyncio cancellation-leak debugging"
}
]
+126
View File
@@ -0,0 +1,126 @@
[
{
"id": "ho-out01",
"group": "output",
"lang": "en",
"intent": "output",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Extract the fields from this: 'Invoice 4411 from Nordwind GmbH dated 2025-03-02, total EUR 1,284.50, due in 30 days.'"
}
],
"response_format": {
"type": "json_schema",
"json_schema": {
"name": "inv",
"schema": {
"type": "object",
"properties": {
"number": {
"type": "string"
},
"vendor": {
"type": "string"
},
"date": {
"type": "string"
},
"total": {
"type": "number"
},
"currency": {
"type": "string"
},
"due_days": {
"type": "integer"
}
},
"required": [
"number",
"vendor",
"total"
]
}
}
}
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "simple extraction into schema"
},
{
"id": "ho-out02",
"group": "output",
"lang": "en",
"intent": "output",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 32000,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "write me a haiku about autumn"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "large max_tokens must not inflate a haiku"
},
{
"id": "ho-out03",
"group": "output",
"lang": "en",
"intent": "output",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "implement raft leader election and log replication in go, with a test harness that injects partitions and checks the log matching property"
}
],
"max_tokens": 16000
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "large distributed-systems implementation with correctness property"
},
{
"id": "ho-out04",
"group": "output",
"lang": "en",
"intent": "output",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "give me a json list of 5 fruit names"
}
],
"response_format": {
"type": "json_object"
}
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "trivial json output"
}
]
+134
View File
@@ -0,0 +1,134 @@
[
{
"id": "ho-rw01",
"group": "rewrite",
"lang": "en",
"intent": "rewrite",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Can you please fix the grammar and spelling in this email? Keep my tone, I don't want it to sound stiff. Thank you so much!\n\nHi Marcus, I hope this email finds you well and that you had a wonderful weekend. I am writing to you today because me and my colleague Sarah have been discussing the quarterly report that you sent over on Thursday and we was wondering if it would be possible for you to maybe take another look at the numbers in section three, as there seem to be a few figure's that dont quite add up with the ones from last year. We really appreciate all of your hard work on this and we know your very busy, so there is absolutely no rush, whenever you get a chance would be perfectly fine. Also, I wanted to say thanks again for helping us out with the onboarding last month, it really made a difference to the new hires and they all has said how welcoming everyone were. Please let me know if there is anything that I can do to help. Warm regards, Priya"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "grammar fix of a long but easy email"
},
{
"id": "ho-rw02",
"group": "rewrite",
"lang": "en",
"intent": "rewrite",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "make this shorter and more direct, its going to my boss:\n\nHi Marcus, I hope this email finds you well and that you had a wonderful weekend. I am writing to you today because me and my colleague Sarah have been discussing the quarterly report that you sent over on Thursday and we was wondering if it would be possible for you to maybe take another look at the numbers in section three, as there seem to be a few figure's that dont quite add up with the ones from last year. We really appreciate all of your hard work on this and we know your very busy, so there is absolutely no rush, whenever you get a chance would be perfectly fine. Also, I wanted to say thanks again for helping us out with the onboarding last month, it really made a difference to the new hires and they all has said how welcoming everyone were. Please let me know if there is anything that I can do to help. Warm regards, Priya"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "tighten email, light editing"
},
{
"id": "ho-rw03",
"group": "rewrite",
"lang": "en",
"intent": "rewrite",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "translate to german pls: 'Thank you for your patience. Your order has shipped and should arrive within 3-5 business days. If you have any questions, reply to this email.'"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "short translation"
},
{
"id": "ho-rw04",
"group": "rewrite",
"lang": "en",
"intent": "rewrite",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "turn these meeting notes into clean bullet points:\n\nmon call w/ acme - they want sso by q3, we said maybe q4. pricing: they push back on seat price, ask 15% off. Dana to send revised quote fri. risk: their IT freeze in aug. next sync wed 2pm"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "notes cleanup"
},
{
"id": "ho-rw05",
"group": "rewrite",
"lang": "en",
"intent": "rewrite",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Rewrite this product blurb so it sounds friendlier and less corporate: 'Our solution leverages synergistic paradigms to deliver best-in-class scheduling outcomes for enterprise stakeholders.'"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "tone rewrite of one sentence"
},
{
"id": "ho-rw06",
"group": "rewrite",
"lang": "en",
"intent": "rewrite",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "Could you kindly help me write a polite but firm reply to a landlord who has not fixed the heating for two weeks? I would like to mention that I have already called twice and that I know the legal deadline is 14 days. Please keep it under 150 words. Many thanks in advance."
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "verbose polite ask, simple letter drafting"
}
]
+88
View File
@@ -0,0 +1,88 @@
[
{
"id": "ho-sec01",
"group": "security",
"lang": "en",
"intent": "security",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "security review pls, anything exploitable?\n\n```go\nfunc verify(tok string) (*Claims, error) {\n\tparsed, _ := jwt.Parse(tok, func(t *jwt.Token) (interface{}, error) {\n\t\tif t.Header[\"alg\"] == \"none\" { return nil, nil }\n\t\treturn publicKeyPEM, nil\n\t})\n\tc := parsed.Claims.(jwt.MapClaims)\n\treturn &Claims{Sub: c[\"sub\"].(string), Admin: c[\"admin\"] == true}, nil\n}\n```\nwe issue RS256 tokens, publicKeyPEM is a []byte of our RSA public key"
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "alg confusion (HS256 with public key as HMAC secret), swallowed error, nil key, unchecked type assertions panic"
},
{
"id": "ho-sec02",
"group": "security",
"lang": "en",
"intent": "security",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "```python\[email protected]('/user')\ndef user():\n name = request.args['name']\n cur.execute(\"SELECT * FROM users WHERE name = '%s'\" % name)\n return jsonify(cur.fetchall())\n```\nwhats wrong here"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "textbook SQL injection"
},
{
"id": "ho-sec03",
"group": "security",
"lang": "en",
"intent": "security",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "our webhook endpoint verifies HMAC with `if sig == expected:` and then json.loads the body, also fetches `payload['callback_url']` to post status. threat model this for me, what are the real risks and which should we fix first"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "timing compare, replay, SSRF; prioritisation"
},
{
"id": "ho-sec04",
"group": "security",
"lang": "en",
"intent": "security",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "is it ok to store user passwords as sha256(password + salt) with a per-user random salt? just curious"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "known guidance: use argon2/bcrypt"
}
]
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+220
View File
@@ -0,0 +1,220 @@
[
{
"id": "ho-tp01",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "ok i know this is a long one but just tell me which package it blew up in, nothing else\n\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x4f2a31]\n\ngoroutine 53 [running]:\nsvc/billing.(*Invoice).Total(0x0)\n\t/repo/billing/invoice.go:61 +0x31\nsvc/api.(*Handler).Checkout(0xc0000a8000, {0x7a1c40, 0xc0001d6000}, 0xc0002a2200)\n\t/repo/api/checkout.go:118 +0x1c5\nnet/http.HandlerFunc.ServeHTTP(0x1, {0x7a1c40, 0xc0001d6000}, 0xc0002a2200)\n\t/usr/local/go/src/net/http/server.go:2136 +0x29\n"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "scary panic paste; answer is billing (nil Invoice receiver)"
},
{
"id": "ho-tp02",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "hey can u explain in one sentence what this error means: ECONNREFUSED 127.0.0.1:5432"
}
]
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "common error, one sentence"
},
{
"id": "ho-tp03",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "thx. can you reformat this into a markdown table, nothing else:\nname,qty,price\nwidget,4,3.20\ngizmo,1,19.99\nthing,12,0.45\n"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "easy formatting even with data"
},
{
"id": "ho-tp04",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "our service has 3 replicas behind a load balancer and each keeps a local cache of feature flags refreshed every 30s. a flag flip needs to be atomic across all replicas for a compliance cutover; how do we do that safely?"
}
]
},
"session": null,
"minTier": 1,
"maxTier": 2,
"notes": "hard prose, no paste: atomic cutover vs eventual consistency, epoch/versioned flags"
},
{
"id": "ho-tp05",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "is it possible to prove that a lock-free queue is linearizable just by testing it? what would you do instead"
}
]
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "conceptual hard: testing vs model checking/proof"
},
{
"id": "ho-tp06",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "i pasted the whole 800 line config below, you dont need to read it, just say 'yes' if you got it.\n\nsetting_0: value_0\nsetting_1: value_1\nsetting_2: value_2\nsetting_3: value_3\nsetting_4: value_4\nsetting_5: value_5\nsetting_6: value_6\nsetting_7: value_7\nsetting_8: value_8\nsetting_9: value_9\nsetting_10: value_10\nsetting_11: value_11\nsetting_12: value_12\nsetting_13: value_13\nsetting_14: value_14\nsetting_15: value_15\nsetting_16: value_16\nsetting_17: value_17\nsetting_18: value_18\nsetting_19: value_19\nsetting_20: value_20\nsetting_21: value_21\nsetting_22: value_22\nsetting_23: value_23\nsetting_24: value_24\nsetting_25: value_25\nsetting_26: value_26\nsetting_27: value_27\nsetting_28: value_28\nsetting_29: value_29\nsetting_30: value_30\nsetting_31: value_31\nsetting_32: value_32\nsetting_33: value_33\nsetting_34: value_34\nsetting_35: value_35\nsetting_36: value_36\nsetting_37: value_37\nsetting_38: value_38\nsetting_39: value_39\nsetting_40: value_40\nsetting_41: value_41\nsetting_42: value_42\nsetting_43: value_43\nsetting_44: value_44\nsetting_45: value_45\nsetting_46: value_46\nsetting_47: value_47\nsetting_48: value_48\nsetting_49: value_49\nsetting_50: value_50\nsetting_51: value_51\nsetting_52: value_52\nsetting_53: value_53\nsetting_54: value_54\nsetting_55: value_55\nsetting_56: value_56\nsetting_57: value_57\nsetting_58: value_58\nsetting_59: value_59\nsetting_60: value_60\nsetting_61: value_61\nsetting_62: value_62\nsetting_63: value_63\nsetting_64: value_64\nsetting_65: value_65\nsetting_66: value_66\nsetting_67: value_67\nsetting_68: value_68\nsetting_69: value_69\nsetting_70: value_70\nsetting_71: value_71\nsetting_72: value_72\nsetting_73: value_73\nsetting_74: value_74\nsetting_75: value_75\nsetting_76: value_76\nsetting_77: value_77\nsetting_78: value_78\nsetting_79: value_79\nsetting_80: value_80\nsetting_81: value_81\nsetting_82: value_82\nsetting_83: value_83\nsetting_84: value_84\nsetting_85: value_85\nsetting_86: value_86\nsetting_87: value_87\nsetting_88: value_88\nsetting_89: value_89\nsetting_90: value_90\nsetting_91: value_91\nsetting_92: value_92\nsetting_93: value_93\nsetting_94: value_94\nsetting_95: value_95\nsetting_96: value_96\nsetting_97: value_97\nsetting_98: value_98\nsetting_99: value_99\nsetting_100: value_100\nsetting_101: value_101\nsetting_102: value_102\nsetting_103: value_103\nsetting_104: value_104\nsetting_105: value_105\nsetting_106: value_106\nsetting_107: value_107\nsetting_108: value_108\nsetting_109: value_109\nsetting_110: value_110\nsetting_111: value_111\nsetting_112: value_112\nsetting_113: value_113\nsetting_114: value_114\nsetting_115: value_115\nsetting_116: value_116\nsetting_117: value_117\nsetting_118: value_118\nsetting_119: value_119\nsetting_120: value_120\nsetting_121: value_121\nsetting_122: value_122\nsetting_123: value_123\nsetting_124: value_124\nsetting_125: value_125\nsetting_126: value_126\nsetting_127: value_127\nsetting_128: value_128\nsetting_129: value_129\nsetting_130: value_130\nsetting_131: value_131\nsetting_132: value_132\nsetting_133: value_133\nsetting_134: value_134\nsetting_135: value_135\nsetting_136: value_136\nsetting_137: value_137\nsetting_138: value_138\nsetting_139: value_139\nsetting_140: value_140\nsetting_141: value_141\nsetting_142: value_142\nsetting_143: value_143\nsetting_144: value_144\nsetting_145: value_145\nsetting_146: value_146\nsetting_147: value_147\nsetting_148: value_148\nsetting_149: value_149\nsetting_150: value_150\nsetting_151: value_151\nsetting_152: value_152\nsetting_153: value_153\nsetting_154: value_154\nsetting_155: value_155\nsetting_156: value_156\nsetting_157: value_157\nsetting_158: value_158\nsetting_159: value_159\nsetting_160: value_160\nsetting_161: value_161\nsetting_162: value_162\nsetting_163: value_163\nsetting_164: value_164\nsetting_165: value_165\nsetting_166: value_166\nsetting_167: value_167\nsetting_168: value_168\nsetting_169: value_169\nsetting_170: value_170\nsetting_171: value_171\nsetting_172: value_172\nsetting_173: value_173\nsetting_174: value_174\nsetting_175: value_175\nsetting_176: value_176\nsetting_177: value_177\nsetting_178: value_178\nsetting_179: value_179\nsetting_180: value_180\nsetting_181: value_181\nsetting_182: value_182\nsetting_183: value_183\nsetting_184: value_184\nsetting_185: value_185\nsetting_186: value_186\nsetting_187: value_187\nsetting_188: value_188\nsetting_189: value_189\nsetting_190: value_190\nsetting_191: value_191\nsetting_192: value_192\nsetting_193: value_193\nsetting_194: value_194\nsetting_195: value_195\nsetting_196: value_196\nsetting_197: value_197\nsetting_198: value_198\nsetting_199: value_199"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "large paste but trivial acknowledgement"
},
{
"id": "ho-tp07",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "short q: why does `0.1 + 0.2 != 0.3` in js"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "textbook floating point"
},
{
"id": "ho-tp08",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "anthropic",
"request": {
"model": "smart/auto",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "short q: can raft elect two leaders in the same term, and if the answer is no, what exactly breaks the proof once membership changes use single-server steps?"
}
]
}
]
},
"session": null,
"minTier": 2,
"maxTier": 2,
"notes": "terse but deep Raft membership safety question"
},
{
"id": "ho-tp09",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "error[E0382]: borrow of moved value: `cfg`\n --> src/main.rs:14:20\n |\n10 | let cfg = load();\n12 | let h = thread::spawn(move || run(cfg));\n14 | println!(\"{}\", cfg.name);\n | ^^^^^^^^ value borrowed here after move\n\nfix pls"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 1,
"notes": "scary rustc error, common move fix (clone/Arc)"
},
{
"id": "ho-tp10",
"group": "trap",
"lang": "en",
"intent": "trap",
"wire": "openai",
"request": {
"model": "smart/auto",
"messages": [
{
"role": "user",
"content": "kubectl get pods -n prod\nNAME READY STATUS RESTARTS AGE\napi-7d9f8c6b5-2xk4q 0/1 CrashLoopBackOff 14 (2m ago) 41m\napi-7d9f8c6b5-9jr7t 0/1 CrashLoopBackOff 14 (3m ago) 41m\n\nwhat does CrashLoopBackOff mean, in plain words"
}
]
},
"session": null,
"minTier": 0,
"maxTier": 0,
"notes": "scary output, definitional question"
}
]