feat(builder): repair existing templates, a weekly check that queues repairs, and eval
The builder could only create games; nothing noticed when a live template stopped working, and there was no way to tell whether a builder change made it better or worse. - repair -id ID: boots an existing template as nodes run it; if it fails, the same investigation as for a draft runs and the model changes only what the diagnosis says. The worker handles "repair" jobs (gameId from the panel) and opens "fix(games): repair ..." on draft/<id>; a template that boots as it is reports "nothing to repair" and opens no PR. The boot and fix loop is now shared by builds and repairs. - validate.yml runs weekly and boot-tests every game; failed games are sent to the panel (X-GBR-Event: games_boot_failed) to queue repairs. - eval -ids all: builds games that already have a template from scratch, blind, and scores each draft against it (boots, same image and app, ports, ready line, settings found) into eval.md and eval.json. - research skips our own sites, so neither research nor eval reads our templates back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f11c5eaf2f
commit
f1271341ef
12 files changed
+535
-20
No files matched your search
@@ -9,7 +9,9 @@
|
||||
// go run ./cmd/gbrgames draft -name N -image I # have an AI model write a new game's template from those facts
|
||||
// go run ./cmd/gbrgames research -name N # find how a game's server runs: variants, images, Steam app
|
||||
// go run ./cmd/gbrgames build -name N -variant V # first boot, draft, and boot the draft until it works
|
||||
// go run ./cmd/gbrgames worker # take research/build jobs from the panel (see BUILDER.md)
|
||||
// go run ./cmd/gbrgames repair -id ID # fix an existing template that no longer boots
|
||||
// go run ./cmd/gbrgames eval -ids all # build known games blind and score the drafts
|
||||
// go run ./cmd/gbrgames worker # take research/build/repair jobs from the panel (see BUILDER.md)
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -41,6 +43,10 @@ func main() {
|
||||
err = runResearch(os.Args[2:])
|
||||
case "build":
|
||||
err = runBuild(os.Args[2:])
|
||||
case "repair":
|
||||
err = runRepair(os.Args[2:])
|
||||
case "eval":
|
||||
err = runEval(os.Args[2:])
|
||||
case "worker":
|
||||
err = runWorker(os.Args[2:])
|
||||
default:
|
||||
@@ -53,6 +59,6 @@ func main() {
|
||||
}
|
||||
|
||||
func usage() {
|
||||
fmt.Fprintln(os.Stderr, "usage: gbrgames validate [-games DIR] | import [-games DIR] [-all] EXPORT.json | export [-repo R] [-commit SHA] [-out FILE] | boottest-payload [-out FILE] ID | inspect-image [-game ID] [-json] [-no-pull] [IMAGE] | first-boot [-game ID | -image IMAGE] [-env K=V] [-max D] [-quiet D] [-out DIR] | draft -name NAME -image IMAGE [-steam-app ID] [-first-boot REPORT] [-provider ollama|gemini] [-model M] | research -name NAME [-notes N] [-out FILE] | build -name NAME -variant JSON|@FILE [-out FILE] | worker [-once]")
|
||||
fmt.Fprintln(os.Stderr, "usage: gbrgames validate [-games DIR] | import [-games DIR] [-all] EXPORT.json | export [-repo R] [-commit SHA] [-out FILE] | boottest-payload [-out FILE] ID | inspect-image [-game ID] [-json] [-no-pull] [IMAGE] | first-boot [-game ID | -image IMAGE] [-env K=V] [-max D] [-quiet D] [-out DIR] | draft -name NAME -image IMAGE [-steam-app ID] [-first-boot REPORT] [-provider ollama|gemini] [-model M] | research -name NAME [-notes N] [-out FILE] | build -name NAME -variant JSON|@FILE [-out FILE] | repair -id ID [-reason R] | eval [-ids all] [-out eval.md] | worker [-once]")
|
||||
os.Exit(2)
|
||||
}
|
||||
Reference in new issue
Block a user