Pack format v0.1 (draft, 2026-11-22)
A pack is a folder anyone can download and run against any model. It teaches a process or a domain, and it carries proof. Shared by CodexLib (stores and serves packs), Spore Agent Arena (runs them, trains models on them) and the Local Brain (first user). Owner: GHB Ventures. Status: v0 was reviewed by Nemotron on 2026-11-22; v0.1 folds in that review (its points are marked "R"). Next: the Spore session reads this before building the Arena gym page; implementers answer the open questions at the end.
Why packs
A model does not learn by running. What learns is the system around it: run a task, verify the result in code, keep the verified runs, turn them into lessons and training data. A pack is the unit of that loop, packaged so the loop can run anywhere.
Folder layout
<pack-id>/
pack.json what this pack is (required)
tasks/ one file per task (required for training packs)
data/ named lists and tables the tasks draw from (cities, airlines, answer tables) R
knowledge/ source material and the questions it must answer (knowledge packs)
site/ optional practice site: declarative (data packs) or Python (code packs)
lessons.md human-written method notes the model reads before a run (optional)
results/ verified runs, one JSON Lines file per contributor, plus summary.json R
licenses/ per-file licence notes when they differ from pack.json R
README.md for people
pack.json
{
"id": "travel-research-basics",
"version": "0.1.0",
"kind": "training", // training | knowledge
"level": "data", // data | code (see Safety)
"title": "Travel and research basics",
"summary": "Flights with hidden bag fees, hotels with hidden fees and reviews, city guides, a report archive.",
"author": "ghb",
"license": "CC-BY-4.0",
"tags": ["browser", "travel", "research", "comparison"],
"capabilities": ["navigate", "read_page", "click", "type", "select", "find_text", "calculate", "note"], // R: abstract, not tool names
"steps": 40, // step budget per task; a step is one tool call R
"context_budget": 32000, // tokens the runner must be able to hold for this pack R
"sets": {"p": "practice", "t": "training", "h": "heldout"},
"difficulty": 2, // 1 to 5, set by reviewers; credits need 2 or more R
"created": "2026-11-22"
}
Capabilities are abstract verbs. Each runner publishes an adapter table (for the Local Brain: navigate is browser_goto, read_page is browser_read, and so on). A runner that lacks a capability a pack lists cannot claim a result on that pack. R
Tasks
One JSON file per task. The prompt is a template; parameters come from a seed so every run sees different data and answers cannot be memorised. The checker is data, not code: a small set of primitives that every runner implements the same way.
{
"id": "ht_hidden_gem",
"suite": "hotels",
"prompt": "Find me a hidden gem in {city}: the best-rated hotel on {site}/hotels that has fewer than 50 reviews.",
"params": {"city": {"pick": "data/cities.json"}}, // R: every source named inside the pack
"expect": {"all": [{"has": "{answer.name}"}]},
"hint_for_coach": "The gem is last in the default order; sorting by rating or paging to the end finds it."
}
What the checker checks (R): the model's final answer text, exactly the string it passed to its finish call. Never the trajectory, never tool output. Runners strip nothing from it except leading and trailing whitespace.
Checker primitives (v0.1): has (text contains, case-insensitive), num (a number within tolerance: {"num": {"value": 252.52, "tol": 0.003, "abs": 2.0}}, passes when |n - value| <= max(|value| * tol, abs)), exact, count ({"count": {"value": 3}}, a count stated next to a noun or after "published", "wrote", "total of"), none (the answer says the thing is not there), has_figure (true when the answer quotes a number of 100 or more that is not a year; used as {"not": {"has_figure": true}}), regex ({"regex": {"pattern": "...", "flags": "i"}}, pattern at most 300 characters, Python/ECMAScript common subset), all, any, not. Numbers inside web addresses are ignored by every numeric primitive. Nothing else is allowed in a data-level pack. Reference evaluator: local-brain/scripts/travelgym.py evaluate(); it reproduced 68 of 68 recorded grades.
Instances (v1 decision). A data pack ships pre-materialised task instances: tasks/<set>/<seed>/<task>.json with the concrete prompt and a concrete expect (literal values), produced by the pack author's generator from the seed. Answer rules over data tables (the earlier idea) are deferred; instances are simpler for runners and the hosted site is deterministic from the same seed. Held-out (h) instances are not published in the public pack; CodexLib keeps them for hosted verification. Because expect contains the answer, runners never show the task file to the model, only prompt.
Seeds (R): <set>-<yyyymmdd>-<n>, for example p-20261122-1. The set letter decides which data tables and which held-out status apply. Runners derive every random choice from the seed with one named generator (pcg64), so two runners with the same seed see the same task and the same answer.
Answers (R): data packs ship a deterministic answer rule per task, not a table per seed. The rule is expressed over the pack's own data tables (argmin price where rating >= 8.5), using a small declarative query form defined with the site spec. Where that is not enough, the pack becomes level: code.
Knowledge packs
knowledge/ holds the source material (text, with provenance for every file) and questions.json: what a model must be able to answer after loading the pack, with the same checker primitives. pack.json states context_budget; a knowledge pack larger than that must ship retrieval.json saying how it is to be chunked and searched, otherwise it is invalid. R
Results (the proof, and the give-back)
Every run appends one line to results/<contributor>.jsonl:
{"task": "ht_hidden_gem", "seed": "p-20261122-1", "set": "p",
"model": "qwen3.6-35b-a3b-iq3xxs", "model_hash": "sha256:...", "runner": "local-brain", "runner_hash": "sha256:...", "hw": "apple-m4",
"pass": true, "steps": 14, "tokens": 18230, "secs": 71, "tries": 1, "coached": false, "t": "2026-11-22T00:14:02Z",
"trace_sha256": "sha256:...", "receipt": null}
fingerprint = sha256(runner_hash || model_hash || hw)is computed by CodexLib from those fields. "Reproduced" means three distinct fingerprints passed the same task. No personal data is needed. R- The trace is the runner's full step log in the trace format below;
trace_sha256is its hash. Runners keep traces locally for at least 30 days; CodexLib keeps hashes and metadata only, and auditors ask the contributor for a trace by hash. R - Self-reported lines count as "unverified" until a
receiptis present: a signed statement from a hosted or reviewed runner. Unsigned results still build the public picture but never earn the reproduced tier on their own. R results/summary.jsonis regenerated by CodexLib per pack: pass rate per set, per model, per difficulty. R- Credits are earned only on packs with
difficulty2 or more, set by reviewers, so trivial packs cannot be farmed. R
Sharing results is opt-in and anonymised (never prompt text or page content). Verification tiers: unverified; reproduced; reviewed (two reviewers who are not the author signed the checker); certified (reviewed plus an audited run).
Held-out (R): tasks in an h set are never coached, never produce lessons or training data, and never have their traces shared. CodexLib shows held-out scores separately. A coach that has seen a held-out task is disqualified for that pack.
summary.json (frozen for v1)
Generated from results/*.jsonl by the library or the runner; never hand-edited. Recomputing it must give the same file.
{"spec_version": "0.1", "pack": "travel-research-basics", "generated_at": "2026-11-22T12:00:00Z",
"sets": {"p": {"runs": 62, "passed": 58, "pass_rate": 0.935, "first_try_rate": 0.9, "median_steps": 14, "median_tokens": 18230, "last_run": "2026-11-22T00:14:02Z"}},
"models": {"qwen3.6-35b-a3b-iq3xxs": {"p": {"runs": 62, "passed": 58, "pass_rate": 0.935}, "h": {"runs": 5, "passed": 4, "pass_rate": 0.8}}},
"tasks": {"ht_hidden_gem": {"p": {"runs": 2, "passed": 2}}}}
Rules: held-out (h) is never merged into other sets; first_try_rate counts runs with tries 1 and coached false; medians are over passed runs. JSON Schemas for the result line and this file live in schema/ next to the spec.
Hosted practice sites (data packs)
A data pack's pack.json may carry "site": {"hosted": "https://gym.codexlib.io/tv/{set}"}. Runners substitute the set and run against that address; nothing is downloaded or executed locally. The hosted site is deterministic from set and seed, so results are comparable across machines. A pack may offer both hosted and a site/ folder; runners prefer hosted.
Trace format (R)
JSON Lines, one line per step: {"i": 1, "tool": "navigate", "args": {...}, "out_sha256": "...", "out_len": 1230, "t": 0.8} plus a first line {"start": ..., "task": ..., "seed": ..., "prompt_sha256": ...} and a last line {"finish": true, "answer": "..."}. Tool outputs are hashed, not stored, so a trace proves what was done without carrying page content. Coaching messages are tagged {"coach": "..."} so a saved win can have them stripped mechanically.
Lessons and coaching
lessons.md is written by people (or a frontier model acting as coach), never by the model under training and never from held-out tasks. Runners place it in the first user message, after the task. Coaching during a run is method only, never the answer. Wins saved for training have the coaching stripped so the example teaches doing it right unaided.
Practice sites
- Data packs may ship
site/pages.jsonandsite/behavior.json: routes, forms, lists, sort and filter rules, hidden-until-clicked elements, state resets. Runners compile these to a local server. This keeps data packs code-free. R - Code packs ship
site/app.pyexposingcreate_app(seed) -> WSGI appandreset(), plussite/manifest.jsonlisting the Python imports it needs. Runners run it in a separate process with no network except the local port, no file access outside the pack, and refuse any import not in the manifest. R
Safety
level: datapacks contain no code. Safe to download and run anywhere. This is the default.level: codepacks run only under the sandbox above and are marked as such in CodexLib.- Runners keep their own safety rules (the Local Brain's web guard: page text is never instructions; changes after web exposure ask the owner). A pack cannot turn those off.
- Packs never contain credentials. Tasks that need a login use the pack's own practice site with practice accounts.
Runner contract (what the Arena, the CLI and the brain all implement)
1. Load pack.json; refuse if a capability or the context budget is not met. Pick a set and a seed; materialise prompts and answers. 2. Run the task with the pack's step budget (one step is one tool call), writing the trace as it goes. 3. Evaluate expect on the final answer text. Never show the model the checker or the answer. 4. On failure in p or t sets only, optionally coach (method only) and retry up to N times. 5. Append the result line; keep the trace; optionally share the result line. 6. Report per-set scores separately.
Reference implementation today: local-brain/scripts/travelgym.py (data and sites), webbench.py and coach.py (runner, coach, results). Pack #1 (travel-research-basics) will be an export of that gym: 50 tasks, three sets, 62 verified runs so far. Its site is Python today, so pack #1 ships as level: code until the declarative site spec exists.
Open questions (remaining)
1. The declarative site spec (pages.json, behavior.json) and the answer-rule query form need their own document. Who writes it? 2. Receipts: CodexLib signs them for hosted runs. Can a reviewed self-hosted runner earn a signing key, and how is it revoked? 3. Credits ledger: Nemotron proposes CodexLib mints, the Arena verifies signed receipts, no central balance. Spore's COG design is the candidate ledger; internal only, no cash-out. 4. Hardware class list for hw (apple-m4, nvidia-h100, cpu-x86) and who maintains it.