okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
aff3a132f
main
1"""What the entry points are ALLOWED to do differently, with the reason. Everything else must be identical in every machine class x model set: 2`strata launch`, the app's plain Load and the app's Models-screen Load start the engine with the same arguments and the same environment. 3 4The golden files are the data; `test_entry_points_agree.py` applies this list to them. A new difference has to be added here WITH a reason, which is the review.""" 5 6#: Run-config keys that differ between the Terminal and the app by design (app vs launch). 7BY_DESIGN = { 8"api_key" :"the app generates its own key; the Terminal asks for none unless --api-key" , 9"aliases" :"the app lists the API model names clients may use" , 10"port" :"the app's engine listens on 18500, the Terminal's on 8080 (or --port)" , 11"fit_max_tokens" :"the app asks the engine to shorten a requested answer to the room left in the context (the agent asks for long answers)" , 12"mcp" :"the app keeps its tool-server settings in the run config" , 13"log" :"the app writes the engine log into its install folder, the Terminal into the folder it was started in" , 14"engine_ready_s" :"how long the app waits for the engine to answer; the Terminal derives its own wait from the model's size" , 15"args_derived" :"launch's own bookkeeping stamp of the arguments it derived (a copy of args)" , 16"args_written" :"launch's own bookkeeping stamp of the arguments it wrote (a copy of args)" , 17} 18 19#: Environment variables the engine start adds, which differ by design. 20ENV_BY_DESIGN = { 21} 22 23#: Intended differences of the Models-screen Load alone. 24MODELS_SCREEN = { 25"drafting" :"the Models screen's Load saves the person's Drafting choice ('auto' unless they changed it) into the model's settings; launch and the plain Load save none" , 26} 27 28#: The request-slot rule (CLEAN-1A item 1a.6, owner decision 11-07). Not a difference to allow but a fact the golden files pin: with the plain Load following Auto, NVIDIA 72 GB 29#: runs DFlash2, which answers one request at a time, so the app writes no `parallel` and no `--batch ... --batch-mtp` there, exactly as the Models-screen Load always did. 30#: (On main the plain Load ran the MTP and wrote `parallel: 3`; that was a consequence of the missing drafter, not a policy.) The app's own default of several request slots 31#: (apps/host/server/native-parallel.mjs) applies to a run that is not DFlash2; no cell of the matrix needs it. 32REQUEST_SLOTS = "no cell writes `parallel` from either app entry point"