mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(verifier): add SetupAction to walk setup without the seeded root
This commit is contained in:
1 parent
bf983266ed
commit
2dea0e57d4
2 files changed
+42
No files matched your search
@@ -139,6 +139,16 @@ export function installRuntime(
|
||||
() => INPUT_CORPUS[rng.intN(INPUT_CORPUS.length)] ?? "",
|
||||
);
|
||||
defineLockedGlobal("__sanderlingExtractors__", () => evaluateExtractors());
|
||||
// __sanderlingSetupAction__ walks ONLY the setup generator once, for the LLM
|
||||
// action generator (Go), which drives selection itself and must not run the
|
||||
// seeded action root — but still wants setup's precondition steps (e.g. login)
|
||||
// to run first. Returns null when setup is unset or yields nothing.
|
||||
defineLockedGlobal("__sanderlingSetupAction__", () => {
|
||||
resolveRoot();
|
||||
const setup = resolveSetup();
|
||||
if (!setup) return null;
|
||||
return serializeAction(walk(setup, rng, host));
|
||||
});
|
||||
defineLockedGlobal("__sanderlingNextAction__", () => {
|
||||
// resolveRoot runs first: on web it also resets the per-tick candidate
|
||||
// cache, which setup's walk below must see fresh.
|
||||
|
||||
Reference in new issue
Block a user