Repository navigation
feat(model): model.mjs lane prints the model and effort a lane starts on - #330
Merged
Merged
Conversation
… on (#321) Lane rows live in MODEL_TABLE: mechanical on haiku at low effort, research on sonnet at medium, build on the worker row at medium (high when the expected tier is 2 or unknown), and fable at high only for a build lane with two failed lanes (--failed). An unknown kind, bad arguments or an unreadable ticket exit 2 with the usage line.
Owner
Author
|
bstack-judge: PASS+NOTES tier=2 sha=7fe7eaff0d4c65605175aaf2fba5587a309e1d47 PR 330 (closes #321): I checked out head 7fe7eaf detached. Base is 800b86d. Verdict: PASS+NOTES. CI on both OSes was still running when I looked, and Criteria and proof
Findings (none block)
Hypotheses I tested that turned out fine
[{"id":"F1","title":"duplicate --failed silently takes the last value while duplicate -R is rejected","reproduction":"node plugins/bstack/scripts/model.mjs lane build 321 --failed 2 --failed 0","base":"not run","head":"pass","blocks":"no","files":["plugins/bstack/scripts/model.mjs"]},{"id":"F2","title":"--failed selects the strongest model with no ticket given (documented decision: caller-reported count)","reproduction":"node plugins/bstack/scripts/model.mjs lane build --failed 3","base":"not run","head":"pass","blocks":"no","files":["plugins/bstack/scripts/model.mjs"]}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Request
Builds #321 (spec #318). Criteria:
model.mjs lane <kind> [<issue>] [-R owner/repo]prints JSON{ model, effort }for the kindsbuild,researchandmechanical.MODEL_TABLEand nowhere else. Defaults: mechanical on the smallest model at low effort; research on the middle model at medium; build on the worker row, at medium effort, high for expected tier 2.--failed <n>: a build lane whose ticket had two failed lanes on the largest regular model gets the strongest model. Nothing else selects it.modelis a family name, orsessionwhere the row keeps the session's model; an unknown kind or a ticket that cannot be read exits non-zero with a usage line.model.mjs workerandmodel.mjs judgeprint what they print today.Closes #321
Change
lib/models.mjs: alanesection inMODEL_TABLE(haiku/low, sonnet/medium, fable/high at--failed>= 2, build medium for expected tier 0-1, else high). A lane row withoutmodeltakes the worker row's model;{ min }matches a count.guard.mjs: the ticket read is split out asticketFacts, which throws; the worker hook keeps its catch-all.model.mjs: thelanesubcommand;workerandjudgepaths unchanged.Decisions
Expected tier:line) gets high effort: the riskier reading.--failedcounts failed lanes on the largest regular model as the caller reports them; the script does not look them up.Proof
node --test "tests/*.test.mjs": 876 pass, 0 fail (26 skipped as before). New tests intests/judge.test.mjscover each kind, the worker-row mapping,--failed, and every usage error.lane build 321 -R bfcarrasco/bstack→{"model":"session","effort":"medium"}(exposure external)... --failed 2→{"model":"fable","effort":"high"}lane research→{"model":"sonnet","effort":"medium"};lane mechanical 321 -R ...→{"model":"haiku","effort":"low"}lane build 999999 -R ...andlane review→ exit 2 with the usage lineworker 321 -R ...→session;judge 316 -R ...→sonnet, as before.