atris 3.77.0 → 3.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/commands/brief.js +8 -2
- package/commands/engine.js +14 -4
- package/commands/gm.js +3 -0
- package/commands/mission.js +23 -2
- package/commands/rating.js +7 -1
- package/lib/builder-pick.js +888 -0
- package/lib/claude-spend-guard.js +24 -0
- package/lib/fleet.js +145 -19
- package/lib/gm-season.js +33 -4
- package/lib/held-autosweep.js +559 -0
- package/lib/held-pull-requests.js +42 -15
- package/lib/landing-check.js +296 -0
- package/lib/runner-command.js +78 -38
- package/lib/task-db.js +105 -30
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -433,6 +433,8 @@ atris mission run --fleet --slots 3 # staff up to 3 engines
|
|
|
433
433
|
atris mission run --fleet --dry-run # preview the staffing only
|
|
434
434
|
```
|
|
435
435
|
|
|
436
|
+
Each job goes to the builder its real results favor. The fleet counts what each engine landed and missed since Nov 1, on jobs like this one and on the rest (the same plays `atris rating` shows), gives every engine a fair chance, and prints the pick under the job with the numbers behind it. A landing counts only when its commit is on origin's default branch (the branch `origin/HEAD` names, never a guess), is no older than the claim it lands (five minutes of clock skew allowed), and no other claim recorded the same commit first: a commit counts once, for the first claim that recorded it, and not again for a later claim on the same job (reopened and claimed again, by the same engine or another) or for another job. That is judged on every landing record in the task store, in every workspace that shares it and every later review pass. A landing pays the engine that finished the job: when a stalled or dead engine's job is finished by another, the engine that finished it is credited, and a landing whose hand-in names several engines without saying which finished counts for none. The folder is judged in one order. With no git, no origin, or `origin/HEAD` not set (`git remote set-head origin --auto` sets it), no landing can be checked, so jobs are dealt in turn and the flight says why in one line. With an engine's landing on record, the flight fetches origin's default branch once before it picks (so a merge from a minute ago counts); if that fetch fails, jobs are dealt in turn with one line, and if it works the landings are checked. With only misses on record, they steer on their own, with no fetch. Everything git does before a pick shares one five-second budget and never prompts: its input is closed, `GIT_TERMINAL_PROMPT` is 0, and ssh runs in batch mode unless you set your own ssh command, which is left as it is and mentioned in one line. A play counts toward the kind of job it was when the engine took it: the claim, whether made by the fleet or by `task do`, saves the job's title and tags, so tagging or renaming a finished job later changes nothing, and a claim made before that was saved counts at half weight. New engines get tried; engines that keep missing get fewer jobs. An engine that is out of credit, cooling, or one the Claude spend guard would stop (a paid model nobody approved, or a pay-per-use key) is never picked, and the flight says which. The guard's own hook (`atris spend guard install`) stays the real guard on every unattended Claude run; this check only avoids picking an engine the hook would refuse, so where it is unsure it leaves Claude out. The fleet's own launch is judged by the `--model` the fleet itself passes, read through the `ANTHROPIC_DEFAULT_*_MODEL` remaps in the environment the worker will really get (a sealed one-lap worker gets none); with no `--model`, by `ANTHROPIC_MODEL` in that same environment, else the paid default. No Claude settings file is read, from any home. A custom launch template (`ATRIS_RUNNER_COMMAND_TEMPLATE`) is never read for its model, because a model in it can be a flag, a word of the prompt, another command's, or one the shell works out only when it runs. It counts as a model nobody can tell, which counts as paid, so Claude is left out with one line saying so, unless `ATRIS_CLAUDE_SPEND_OK` approves `default`; `--engine claude` still uses it. Your own choices come first and are never picked for, with results or without: `--engine <name>` sends every job to one engine, a job that names its engine gets it, and a job assigned to a member goes to that member's own engine, the same one `atris member` uses. A choice the flight cannot give is never given to someone else: a job that names an engine this flight does not have, or whose member's engine it does not have, is left out of the flight, with one line naming the job and why. It is taken out before the flight is staffed, so it takes no slot and holds no file against another job. The pick goes on who a job is assigned to and the engine it names, as the task list showed them; the claim asks the store for both again, inside its own transaction, and a job that now says something else is not claimed for the old choice. It is left for the next flight with one line, and the task list is drawn again so that flight reads the job as it is now. An engine list you name is never filtered, on the first pick or on a retry. If an engine dies mid-job, the next one is picked the same way; if it stalls and the roster lists a backup order, the roster's order stands. `--pick turns` (or `ATRIS_PICK=turns`) deals engines in turn, as before.
|
|
437
|
+
|
|
436
438
|
## Verifiable Feedback Loop
|
|
437
439
|
|
|
438
440
|
Under the hood, Atris can keep score on real repo work.
|
|
@@ -473,6 +475,7 @@ atris rating <member> # one member's rating here, next to its engine's
|
|
|
473
475
|
- Engines are rated in the combine: Loop Bench tasks from the atris repos, each graded by the tests that shipped with it. No engine is a 99 yet.
|
|
474
476
|
- Each engine's card also rates its Python tasks, its JavaScript tasks, the tasks the Atris prompt was never tuned on, and how rarely a try broke another test, with its median time and pay-per-use price per finished task.
|
|
475
477
|
- Members are rated on the same scale from the jobs they landed in your workspace over the last 30 days. Landed means accepted or merged; drops and abandons count against them. `atris gm` shows the same numbers.
|
|
478
|
+
- When a person merges a builder's pull request, the builder is usually credited within the hour, by an `atris brief`, `atris rating`, `atris gm` or flight that reaches GitHub; `atris task sweep --held` does it right away. `ATRIS_HELD_SWEEP=off` stops the automatic check.
|
|
476
479
|
- The session boot shows the build engine's rating, for example `build opus 5.5 (86 ovr)`. The combine grades building only, so review and search engines show none.
|
|
477
480
|
|
|
478
481
|
## Benchmark Harness
|
package/commands/brief.js
CHANGED
|
@@ -479,7 +479,7 @@ function renderOwnerHtml(data) {
|
|
|
479
479
|
blocks: [
|
|
480
480
|
{ type: 'title', headline: 'atris brief', sub: `${needs} ${needs === 1 ? 'thing needs' : 'things need'} you, ${done} landed this week` },
|
|
481
481
|
...ownerBlocks(shown),
|
|
482
|
-
{ type: 'close', tagline: '
|
|
482
|
+
{ type: 'close', tagline: 'This screen only reads your jobs.' },
|
|
483
483
|
],
|
|
484
484
|
}, { title: 'atris brief' });
|
|
485
485
|
}
|
|
@@ -559,7 +559,11 @@ function showHelp() {
|
|
|
559
559
|
console.log(' atris brief outcome <brief_id> --result pass|fail|partial --note <text> [--json|--raw]');
|
|
560
560
|
console.log(' atris brief review [--lessons] [--json] [--limit N]');
|
|
561
561
|
console.log('One screen: what needs you, what got done this week, and how the team is doing.');
|
|
562
|
-
console.log('
|
|
562
|
+
console.log('It reads your jobs. Before the screen it may quietly check GitHub and credit or release held jobs');
|
|
563
|
+
console.log('whose pull request merged or closed. A merge is usually credited within the hour, by a command that');
|
|
564
|
+
console.log('reaches GitHub; atris task sweep --held does it right away.');
|
|
565
|
+
console.log('ATRIS_HELD_SWEEP=off turns that off.');
|
|
566
|
+
console.log('--days N sets the older landed list in --json.');
|
|
563
567
|
}
|
|
564
568
|
|
|
565
569
|
function isBriefLedgerSubcommand(value) {
|
|
@@ -795,6 +799,8 @@ async function briefCommand(args = [], root = process.cwd(), io = {}) {
|
|
|
795
799
|
showHelp();
|
|
796
800
|
return 0;
|
|
797
801
|
}
|
|
802
|
+
// A person's merge pays the builder with no command: the held-job check runs here.
|
|
803
|
+
require('../lib/held-autosweep').autoSweepHeld({ root });
|
|
798
804
|
|
|
799
805
|
const data = buildBriefData(root, { days: flags.days, owner: true });
|
|
800
806
|
if (flags.json) {
|
package/commands/engine.js
CHANGED
|
@@ -2294,10 +2294,13 @@ function parseDispatchArgs(args) {
|
|
|
2294
2294
|
let base = '';
|
|
2295
2295
|
let json = false;
|
|
2296
2296
|
let yolo = false;
|
|
2297
|
+
let pick = '';
|
|
2297
2298
|
for (let i = 0; i < args.length; i += 1) {
|
|
2298
2299
|
const a = args[i];
|
|
2299
2300
|
if (a === '--engine') { engine = args[i + 1] || ''; i += 1; continue; }
|
|
2300
2301
|
if (a.startsWith('--engine=')) { engine = a.slice('--engine='.length); continue; }
|
|
2302
|
+
if (a === '--pick') { pick = args[i + 1] || ''; i += 1; continue; }
|
|
2303
|
+
if (a.startsWith('--pick=')) { pick = a.slice('--pick='.length); continue; }
|
|
2301
2304
|
if (a === '--prompt-file') { promptFile = args[i + 1] || ''; i += 1; continue; }
|
|
2302
2305
|
if (a.startsWith('--prompt-file=')) { promptFile = a.slice('--prompt-file='.length); continue; }
|
|
2303
2306
|
if (a === '--base') { base = args[i + 1] || ''; i += 1; continue; }
|
|
@@ -2307,13 +2310,19 @@ function parseDispatchArgs(args) {
|
|
|
2307
2310
|
if (a.startsWith('--')) continue;
|
|
2308
2311
|
taskIds.push(a);
|
|
2309
2312
|
}
|
|
2310
|
-
return { taskIds, engine, promptFile, base, json, yolo };
|
|
2313
|
+
return { taskIds, engine, promptFile, base, json, yolo, pick };
|
|
2311
2314
|
}
|
|
2312
2315
|
|
|
2313
2316
|
function runDispatchCommand(args, root) {
|
|
2314
|
-
const { taskIds, engine, promptFile, base, json, yolo } = parseDispatchArgs(args);
|
|
2317
|
+
const { taskIds, engine, promptFile, base, json, yolo, pick } = parseDispatchArgs(args);
|
|
2315
2318
|
if (!taskIds.length || !engine) {
|
|
2316
|
-
console.error('usage: atris engine dispatch <task-id> [<task-id> ...] --engine <engine> [--prompt-file <f>] [--yolo]');
|
|
2319
|
+
console.error('usage: atris engine dispatch <task-id> [<task-id> ...] --engine <engine> [--prompt-file <f>] [--yolo] [--pick rating|turns]');
|
|
2320
|
+
return 2;
|
|
2321
|
+
}
|
|
2322
|
+
// --pick rating|turns: what to do when the engine named here dies or stalls. rating (the default) hands the
|
|
2323
|
+
// job to the builder its results favor, turns keeps the old rule.
|
|
2324
|
+
if (args.some((arg) => arg === '--pick' || String(arg).startsWith('--pick=')) && !require('../lib/builder-pick').parsePickFlag(pick)) {
|
|
2325
|
+
console.error('engine dispatch: --pick takes rating or turns');
|
|
2317
2326
|
return 2;
|
|
2318
2327
|
}
|
|
2319
2328
|
const canonical = canonicalEngineName(engine);
|
|
@@ -2359,6 +2368,7 @@ function runDispatchCommand(args, root) {
|
|
|
2359
2368
|
engine: canonical,
|
|
2360
2369
|
prompt: promptOverride,
|
|
2361
2370
|
yolo,
|
|
2371
|
+
...(pick ? { pick } : {}),
|
|
2362
2372
|
...(base ? { checkoutBase: base } : {}),
|
|
2363
2373
|
...(pin.roster_model ? { model: pin.roster_model } : {}),
|
|
2364
2374
|
...(pin.roster_effort ? { effort: pin.roster_effort } : {}),
|
|
@@ -2623,7 +2633,7 @@ function engineCommand(args = [], deps = {}) {
|
|
|
2623
2633
|
if (sub === 'help' || args.includes('--help') || args.includes('-h')) {
|
|
2624
2634
|
console.log('\n atris engine watch [<id>|latest] [--no-follow]\n follow one live transcript or list running engine work');
|
|
2625
2635
|
console.log('\n long read-only asks: atris engine ask "..." --engine agy --timeout <seconds>\n quick asks default to 120 seconds; explicit jobs allow up to 3600\n follow live work with atris engine watch latest');
|
|
2626
|
-
console.log('\n atris engine roster + current default\n atris engine roster [--json] show every job and its workers in order: search, build, review, and your own\n flags a model with a newer version on this machine, or a pin not proven in 30 days\n (a landed run, or "verified 2026-09-30" on its line, proves it)\n atris engine roster confirm renew every dated worker for 30 days\n atris engine roster session [clear]\n show or drop the roster changes for this shell only\n atris engine roster --available\n tools on this machine and the models each one offers\n atris engine roster set <job> <tool> <model>\n swap the lead of a job to a tool and model this machine offers; the old lead becomes the first backup\n atris engine roster set --member <name> <tool> <model>\n give one member its own model; every other job stays put\n atris engine roster --runs [job]\n the last 20 runs, newest first, with tool, model, time, and outcome\n atris engine assign <job> <tool> [--like <kind>] [--model <m>] [--effort <level>] [--max "20 min"] [--prep <job>] [--backup "<tool> [model]"] [--days <n>] [--add] [--session | --everywhere]\n atris engine assign <job> --promote "<tool> [model]" | --remove <tool> | --clear [--session | --everywhere]\n sets the lead worker of the job; --promote moves one of its workers to the top as written;\n --add puts one more at the end; jobs: search, build, review,\n or your own like "small build" (--like search|build|review when the name does not say);\n --prep search has that job read the task first and hand this worker a short brief;\n --everywhere is for all projects; --session is this shell only (set ATRIS_ROSTER_SESSION=<name>)\n atris engines --chart show the fleet as an org chart\n atris engine list --json [--all] full registry: default + engines with tier, roles, fallback, health (--all includes hidden engines)\n atris engine set <name> --duty leader|errands|learning [--models "a, b"]\n arrange the fleet and save its model policy\n atris engine resolve <role> or <job> [--json]\n choose the best ready engine for navigator|executor|validator or a roster job;\n notes always answers: its roster pick, else agy then haiku\n atris engine health <name> --set ready|not_installed|credit_out\n flip runtime health, for example when credits run out\n atris engine doctor [--json]\n probe which engine CLIs are installed here and sync that into health policy\n atris engine <name> make that engine the default here\n atris engine test [name] preflight: run the engine CLI headless, report pass/fail\n atris engine bench [names...] [--runs N]\n ranked latency scoreboard of engine passes\n atris engine ask "<question>" --engine <name> [--engine <name> ...]\n ask several engines in parallel without allowing edits\n atris engine ask --jobs <jobs.json>\n ask different read-only questions in parallel\n atris engine validate <receipt-path|latest> [--engine <name>]\n check ask answers with a different read-only referee\n atris engine validate scoreboard\n show pass rates by worker engine\n atris engine sweep [--apply] [--json]\n list ssh-agents that engine shells left running; --apply rechecks and stops them\n atris engine dispatch <task-id> [<task-id> ...] --engine cursor|codex [--prompt-file <f>] [--yolo]\n one-command claim, worktree, build, verify, ship, ready\n atris engine login <provider> --yes\n upload a local provider CLI login to the backend vault\n atris engine login <provider> --computer [--seat <name>]\n atris engine login <provider> --business <id> [--seat <name>]\n sign in on an Atris computer by device flow\n atris engine login --list | --remove <provider>\n list or remove vaulted provider logins\n atris engine seats show which named accounts are ready to work\n atris engine seed <provider> --business <id>|--user\n push a vaulted login onto an Atris computer\n atris engine reset back to the house default\n --engine <name> one run on that engine (mission run / autopilot / run)\n');
|
|
2636
|
+
console.log('\n atris engine roster + current default\n atris engine roster [--json] show every job and its workers in order: search, build, review, and your own\n flags a model with a newer version on this machine, or a pin not proven in 30 days\n (a landed run, or "verified 2026-09-30" on its line, proves it)\n atris engine roster confirm renew every dated worker for 30 days\n atris engine roster session [clear]\n show or drop the roster changes for this shell only\n atris engine roster --available\n tools on this machine and the models each one offers\n atris engine roster set <job> <tool> <model>\n swap the lead of a job to a tool and model this machine offers; the old lead becomes the first backup\n atris engine roster set --member <name> <tool> <model>\n give one member its own model; every other job stays put\n atris engine roster --runs [job]\n the last 20 runs, newest first, with tool, model, time, and outcome\n atris engine assign <job> <tool> [--like <kind>] [--model <m>] [--effort <level>] [--max "20 min"] [--prep <job>] [--backup "<tool> [model]"] [--days <n>] [--add] [--session | --everywhere]\n atris engine assign <job> --promote "<tool> [model]" | --remove <tool> | --clear [--session | --everywhere]\n sets the lead worker of the job; --promote moves one of its workers to the top as written;\n --add puts one more at the end; jobs: search, build, review,\n or your own like "small build" (--like search|build|review when the name does not say);\n --prep search has that job read the task first and hand this worker a short brief;\n --everywhere is for all projects; --session is this shell only (set ATRIS_ROSTER_SESSION=<name>)\n atris engines --chart show the fleet as an org chart\n atris engine list --json [--all] full registry: default + engines with tier, roles, fallback, health (--all includes hidden engines)\n atris engine set <name> --duty leader|errands|learning [--models "a, b"]\n arrange the fleet and save its model policy\n atris engine resolve <role> or <job> [--json]\n choose the best ready engine for navigator|executor|validator or a roster job;\n notes always answers: its roster pick, else agy then haiku\n atris engine health <name> --set ready|not_installed|credit_out\n flip runtime health, for example when credits run out\n atris engine doctor [--json]\n probe which engine CLIs are installed here and sync that into health policy\n atris engine <name> make that engine the default here\n atris engine test [name] preflight: run the engine CLI headless, report pass/fail\n atris engine bench [names...] [--runs N]\n ranked latency scoreboard of engine passes\n atris engine ask "<question>" --engine <name> [--engine <name> ...]\n ask several engines in parallel without allowing edits\n atris engine ask --jobs <jobs.json>\n ask different read-only questions in parallel\n atris engine validate <receipt-path|latest> [--engine <name>]\n check ask answers with a different read-only referee\n atris engine validate scoreboard\n show pass rates by worker engine\n atris engine sweep [--apply] [--json]\n list ssh-agents that engine shells left running; --apply rechecks and stops them\n atris engine dispatch <task-id> [<task-id> ...] --engine cursor|codex [--prompt-file <f>] [--yolo] [--pick rating|turns]\n one-command claim, worktree, build, verify, ship, ready; if the engine dies or stalls, the job goes to the builder its results favor (--pick turns keeps the old rule)\n atris engine login <provider> --yes\n upload a local provider CLI login to the backend vault\n atris engine login <provider> --computer [--seat <name>]\n atris engine login <provider> --business <id> [--seat <name>]\n sign in on an Atris computer by device flow\n atris engine login --list | --remove <provider>\n list or remove vaulted provider logins\n atris engine seats show which named accounts are ready to work\n atris engine seed <provider> --business <id>|--user\n push a vaulted login onto an Atris computer\n atris engine reset back to the house default\n --engine <name> one run on that engine (mission run / autopilot / run)\n');
|
|
2627
2637
|
return 0;
|
|
2628
2638
|
}
|
|
2629
2639
|
if (isFreshWorkspace(root)) {
|
package/commands/gm.js
CHANGED
|
@@ -1907,6 +1907,9 @@ async function gmCommand(...args) {
|
|
|
1907
1907
|
showHelp();
|
|
1908
1908
|
return;
|
|
1909
1909
|
}
|
|
1910
|
+
// A person's merge pays the builder with no command: the held-job check runs here, for the workspace the
|
|
1911
|
+
// board shows.
|
|
1912
|
+
require('../lib/held-autosweep').autoSweepHeld({ root: boardWorkspaceRoot(args) });
|
|
1910
1913
|
|
|
1911
1914
|
if (positional(args)[0] === 'target') {
|
|
1912
1915
|
const at = args.indexOf('target');
|
package/commands/mission.js
CHANGED
|
@@ -758,6 +758,7 @@ function printJsonOrText(payload, lines, asJson) {
|
|
|
758
758
|
|
|
759
759
|
const MISSION_RUN_VALUE_FLAGS = [
|
|
760
760
|
'--slots',
|
|
761
|
+
'--pick',
|
|
761
762
|
'--max-ticks',
|
|
762
763
|
'--max-idle-ticks',
|
|
763
764
|
'--max-wall',
|
|
@@ -10256,14 +10257,34 @@ async function parseAndValidateMissionRunPhase(args) {
|
|
|
10256
10257
|
// safe-lane tasks, build in parallel worktrees, land serially. Humble flag,
|
|
10257
10258
|
// full loop, see lib/fleet.js. --dry-run previews the staffing only.
|
|
10258
10259
|
if (hasFlag(args, '--fleet')) {
|
|
10259
|
-
const { runFleetFlight, flightExitCode } = require('../lib/fleet');
|
|
10260
|
+
const { runFleetFlight, flightExitCode, FLEET_CAPABLE } = require('../lib/fleet');
|
|
10261
|
+
const { parsePickFlag } = require('../lib/builder-pick');
|
|
10260
10262
|
const slots = Math.max(1, Number(readFlag(args, '--slots', '')) || 3);
|
|
10263
|
+
// --pick rating|turns: rating (the default) deals each job to the builder its results favor, turns deals
|
|
10264
|
+
// in turn as the fleet always did. --engine <name> sends every job to that engine and skips the picker.
|
|
10265
|
+
const pickFlag = readFlag(args, '--pick', '');
|
|
10266
|
+
if ((pickFlag || args.some((arg) => arg === '--pick' || String(arg).startsWith('--pick='))) && !parsePickFlag(pickFlag)) {
|
|
10267
|
+
exitMissionError('--pick takes rating or turns', 2, asJson);
|
|
10268
|
+
}
|
|
10269
|
+
const engineFlag = readFlag(args, '--engine', '').toLowerCase();
|
|
10270
|
+
if (engineFlag && !FLEET_CAPABLE.includes(engineFlag)) {
|
|
10271
|
+
exitMissionError(`--engine for a fleet takes one of ${FLEET_CAPABLE.join(', ')}`, 2, asJson);
|
|
10272
|
+
}
|
|
10273
|
+
if (engineFlag && !hasFlag(args, '--dry-run')) {
|
|
10274
|
+
try {
|
|
10275
|
+
require('../lib/engine-registry').requireEngineBin(engineFlag);
|
|
10276
|
+
} catch (err) {
|
|
10277
|
+
exitMissionError(err.message, 2, asJson);
|
|
10278
|
+
}
|
|
10279
|
+
}
|
|
10261
10280
|
// Default: cut build worktrees from origin/master (checkoutBase). --base
|
|
10262
10281
|
// keeps launcher-HEAD only when the operator asks for it explicitly.
|
|
10263
10282
|
const baseOverride = readFlag(args, '--base', '');
|
|
10264
10283
|
const flight = await runFleetFlight({
|
|
10265
10284
|
slots,
|
|
10266
10285
|
dryRun: hasFlag(args, '--dry-run'),
|
|
10286
|
+
pick: pickFlag,
|
|
10287
|
+
...(engineFlag ? { engine: engineFlag } : {}),
|
|
10267
10288
|
log: asJson ? () => {} : console.log,
|
|
10268
10289
|
...(baseOverride ? { checkoutBase: baseOverride } : {}),
|
|
10269
10290
|
});
|
|
@@ -12485,7 +12506,7 @@ atris mission - durable goal + loop + owner + proof state
|
|
|
12485
12506
|
atris mission set-verifier <id> "<cmd>" [--json]
|
|
12486
12507
|
atris mission route set <id> [--file <route.json>|--file -] [--json] Validate and save a falsifiable route from a JSON file or stdin
|
|
12487
12508
|
atris mission "<objective>" [--owner <member>] Shortcut for: atris mission run "<objective>"
|
|
12488
|
-
atris mission run --fleet [--slots 3] [--dry-run] [--json] Staff every idle capable engine on claimable safe-lane tasks: parallel worktree builds, serial rebase-before-ship landings, receipt in atris/runs
|
|
12509
|
+
atris mission run --fleet [--slots 3] [--dry-run] [--json] [--pick rating|turns] [--engine <name>] Staff every idle capable engine on claimable safe-lane tasks: parallel worktree builds, serial rebase-before-ship landings, receipt in atris/runs/. Each job goes to the builder its real results favor (--pick turns deals in turn; --engine sends every job to one engine)
|
|
12489
12510
|
atris mission run "<objective>" --cloud [--lane fast|pro|max] [--agent <id>] Enqueue on the Atris backend instead of running local ticks
|
|
12490
12511
|
atris mission run ["objective"|<member> ["objective"]|id|--due] [--owner <member>] [--budget quick|long|deep] [--max-ticks 4] [--max-wall 3600] [--cadence "15m"] [--detach] [--land --repo <path> --verify "git diff --check"]
|
|
12491
12512
|
[--native-goal-status active|paused|usageLimited] [--native-goal-objective "..."] [--manual-ack] [--allow-native-goal-supersede] [--take-goal-slot]
|
package/commands/rating.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
const { hasFlag } = require('../lib/arg-parser');
|
|
9
9
|
const { modelLabel } = require('../lib/roster-models');
|
|
10
10
|
const rating = require('../lib/atris-rating');
|
|
11
|
+
const { steeringSummary } = require('../lib/builder-pick');
|
|
11
12
|
|
|
12
13
|
const USAGE = [
|
|
13
14
|
'usage: atris rating [engine | member] [--json]',
|
|
@@ -151,6 +152,8 @@ function ratingCommand(args = [], deps = {}) {
|
|
|
151
152
|
write(`${USAGE}\n`);
|
|
152
153
|
return 0;
|
|
153
154
|
}
|
|
155
|
+
// A person's merge pays the builder with no command: the held-job check runs here.
|
|
156
|
+
require('../lib/held-autosweep').autoSweepHeld({ root: deps.root });
|
|
154
157
|
const json = hasFlag(args, '--json');
|
|
155
158
|
const name = args.filter((arg) => !arg.startsWith('-')).join(' ').trim();
|
|
156
159
|
const cards = rating.combineCards();
|
|
@@ -172,16 +175,19 @@ function ratingCommand(args = [], deps = {}) {
|
|
|
172
175
|
return 1;
|
|
173
176
|
}
|
|
174
177
|
const here = readHere(deps);
|
|
178
|
+
// Steering: the fleet picks each job's builder from the results above. The line shows only while that is on.
|
|
179
|
+
const steering = steeringSummary({ root: deps.root || taskDb.workspaceRoot(process.cwd()), env: deps.env || process.env });
|
|
175
180
|
if (json) {
|
|
176
181
|
write(`${JSON.stringify({
|
|
177
182
|
schema: 'atris.rating.v1',
|
|
178
183
|
scale: { floor: 25, top: 99, means: rating.SCALE_LINES.join(' ') },
|
|
179
184
|
combine: { bench: rating.COMBINE.bench, month: rating.COMBINE.month, tasks: rating.COMBINE.tasks, unseen: rating.COMBINE.unseen, engines: cards },
|
|
180
185
|
here,
|
|
186
|
+
steering,
|
|
181
187
|
}, null, 2)}\n`);
|
|
182
188
|
return 0;
|
|
183
189
|
}
|
|
184
|
-
write(`${rating.renderCombine(cards)}${here ? `\n\n${renderHere(here)}` : ''}\n`);
|
|
190
|
+
write(`${rating.renderCombine(cards)}${here ? `\n\n${renderHere(here)}` : ''}${steering.on ? `\n\n${steering.line}` : ''}\n`);
|
|
185
191
|
return 0;
|
|
186
192
|
}
|
|
187
193
|
|