Repository navigation
Environment: lab, corpus, knowledge base and GPU arms move here from inference-server - #3
Merged
Merged
Conversation
…rom inference-server From inference-server main (ef9ce63) plus open PRs #97 (mixed corpus classes) and #99 (knowledge entries), as-is: lab/ (session loop, agent, tools, ledger, workspace, budget, sandbox/grader, canaries, profiler, VM + providers), corpus/ with its builder, knowledge/, ENVIRONMENT.md, the lab tests; roofline.py into validity/. Rewiring for the split: lab/engine.py locates the engine (LAB_ENGINE_REPO, default ../inference-server) and its python (LAB_ENGINE_PYTHON or its .venv); the grader's lint/tests, the jails and the agent's shell use the engine's interpreter; profile stages only its harness into the pristine tree so the jail never opens this repo; lab.vm pushes both trees (engine to LAB_VM_DIR, this repo to LAB_VM_ENV_DIR, run --env runs here). regimes default to the local corpus and pool every manifest class. pyproject (extras, pytest/ruff config), conftest (engine path, skips without it), CI (lab, referee scripts, weekly corpus provenance). Lab ledger and runs are gitignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nference-server) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts pin theirs; README examples use --env Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
regimes: corpus loads go through lab.corpus (hashes verified, a changed trace refuses); a stream that dies or a client-side failure is a crash row, never a lost request; 4xx/503 are explicit rejections, other 5xx are crashes; a one-token answer never meets the limits; the load search stops below start/16 and probe durations are capped at 4x the tier length; closed-loop schedules are generated lazily; saturated confirms up to three levels. lab: profile bundles copied into the workspace (lab/runs/) are ignored by the audit, so a > 5 MB trace no longer ends the run as a violation the agent never committed. roofline.py docstring says what it is. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
The other half of AdvayMonga/inference-server#100. After both merge, inference-server is the engine and its stack, and this repo is the whole environment. Stacked on #2 (regimes): merge #2 first, or retarget this PR to
main.Moved in, as-is
From inference-server
main(ef9ce63) plus its open PRs #97 (mixed corpus classes) and #99 (knowledge entries):lab/: session loop, agent, tools, ledger, workspace, budget, sandbox/grader, canaries, profiler,vm.pywith the Verda/Nebius/Crusoe providers,vm-setup.shcorpus/withbuild_corpus.pyandfetch_traces.pyknowledge/,ENVIRONMENT.md,tests/test_lab_*.pyvalidity/roofline.pyRewired for two repos
lab/engine.py: the engine repo isLAB_ENGINE_REPO(default../inference-server); its interpreter isLAB_ENGINE_PYTHON, or that repo's.venv/bin/python.profilestages only its harness (__init__,profile,bundle,gpu) into the pristine tree under_harness/. The jail therefore never opens this repo, which holds.envand the ledger.lab.vmpushes both trees: the engine toLAB_VM_DIR(its.venvis on PATH) and this repo toLAB_VM_ENV_DIR(default~/BlameGraph).run --envruns here;setupbuilds the engine's venv.regimesdefaults to the localcorpus/and pools every manifest class.pyproject.toml(optional extras plus pytest/ruff config),tests/conftest.py(finds the engine; tests that drive engine code skip without it), CI (lab pytest + ruff, referee/regime scripts, weekly corpus provenance).lab/ledger/andlab/runs/are gitignored.Verified
ruff check .is clean (this also removed 2 pre-existing unused imports inlogs/so CI lint passes).testtool gives PASS (lint, 360 engine tests);profiletool writes a bundle.For you
lab/ledger/from your inference-server checkout into this repo'slab/ledger/if you want the history.LAB_VM_*, provider credentials,ANTHROPIC_API_KEY) here, plusLAB_ENGINE_REPOif the engine isn't at../inference-server.🤖 Generated with Claude Code