Documentation
¶
Overview ¶
Package acceptance answers one question a node must answer BEFORE a job is dispatched to it: can THIS process, running as THIS identity, actually do the work its config advertises?
It exists because of two live fleet failures on 2026-07-27 that were identical in shape and invisible until job time:
- a node whose fleet-serve ran as a different Windows account than the one that owns the harness's uv virtualenv. The venv's python.exe is a trampoline that re-execs a base interpreter under the OWNER's roaming profile, so the job died with "failed to spawn Python child process — entity not found";
- a node whose dispatcher ran as a different Unix user than the one owning the GPU lease directory, so every job failed with "state dir ... is not writable".
Neither is detectable by stat()ing files, which is what `doctor` does — the paths existed and were readable. Both are only detectable by ATTEMPTING the thing as the running identity: execute the interpreter, write to the lease dir. That distinction is the whole point of this package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
type Check struct {
Name string `json:"name"`
Status Status `json:"status"`
Detail string `json:"detail"`
}
Check is one verified capability.
func Runnable ¶
Runnable verifies an interpreter or binary can be EXECUTED by this identity, by executing it. A uv virtualenv's python.exe is a small trampoline that re-execs a base interpreter elsewhere on disk; it stats fine for everyone and runs only for the account whose profile holds that base. Nothing short of running it distinguishes the two.
func WritableDir ¶
WritableDir verifies a directory can be WRITTEN by this identity, by writing. Permission bits and ownership are not consulted: on Windows they are close to meaningless, and on Unix a group/ACL can grant or deny access that a bit-level reading of the mode would get wrong. The probe file is removed immediately.
type Report ¶
type Report struct {
Identity string `json:"identity"`
Ready bool `json:"ready"`
Checks []Check `json:"checks"`
}
Report is the whole verdict. Ready is false if ANY check failed — a node that is not ready must not be handed work.