Skip to content

Script reference

Each page is generated from the help comment at the top of the script, so it matches the code in the repository.

Script What it says it does
factory2/lib/Build.psm1 The agent steps of scripts/factory.ps1: plan, then implement (the same step again with the failure text on every later cycle).
factory2/lib/Gate.psm1 The gate job’s logic: build the plugin the way the plugin repo’s CI does on a runner without Flare’s DLL (it builds
factory2/lib/Telemetry.psm1 Events for one factory run, as JSON Lines, always at debug level.
factory2/lib/VmQueue.psm1 The line for the Flare VM. Runs that need it take a numbered ticket and wait their turn, first come first served. The one at the front
scripts/accept.ps1 Acceptance check of one change: an agent uses the change in real Flare, in a VM, as a writer would, and reports whether the
scripts/catches.ps1 Shows which layer of the factory’s checks caught what, from a local path
scripts/factory.ps1 Builds one issue of abmorrill4/house-style and merges it, from this machine, with your own Claude and gh logins.
scripts/factory/New-FactoryVM.ps1 Builds (or rebuilds) the code factory’s Hyper-V VM: Windows installed from an ISO, unattended, ready for PowerShell Direct.
scripts/factory/Set-FactoryEgress.ps1 Limits where the factory VM can connect: the Anthropic API, GitHub, NuGet and the Bifrost gateway, and nothing else.
scripts/graph.ps1 Keeps the code graph of the plugin repo current, for working out what a change can affect.
scripts/guest/repl.ps1 Runs in the Flare VM’s interactive session, as a scenario. Starts Flare, then runs whatever PowerShell vm-session.ps1 drops in
scripts/queue.ps1 Builds a list of issues one after another with scripts/factory.ps1 and stops at the first one that does not finish.
scripts/related.ps1 Shows what already exists for a new tester report, so triage starts by asking whether it was fixed, is already tracked, or was decided befor
scripts/release-gate.ps1 Runs the full Flare e2e suite on main of abmorrill4/house-style shortly before the nightly release, and holds the release when it fails.
scripts/reports.ps1 Keeps the reports repo current. A tester report is closed once every issue made from it has been closed.
scripts/run-agent/Invoke-Agent.ps1 Runs one headless claude -p call with the verified restricted flag set and classifies the result.
scripts/runs.py Read the factory’s run events: one run as a timeline, or many runs as numbers.
scripts/vm-do.ps1 Sends one command to the Flare VM session that scripts/vm-session.ps1 keeps open, and prints the answer. No elevation needed.
scripts/vm-e2e.ps1 Runs House Style e2e scenarios in an idle Flare VM (HSFACTORY or HSFACTORY2) on this host. No GitHub push needed.
scripts/vm-proof.ps1 The facts about the build in a Flare VM, for the record. Dot-source it, then: Get-BuildProof -Session $s -PluginDir
scripts/vm-session.ps1 Opens Flare in an idle Flare VM and keeps it open, so something can drive it like a user: run commands, read the pane’s state,