Repository navigation
Fixes
-
In a narrow terminal nothing folds back to the left edge that could keep its indent, and nothing is split inside a value (#33). In both looks, on a terminal, a line breaks only at a space, keeps its indent when it wraps, and never splits a path, a URL, a command or a quoted value; a piece too long for any line is left whole for the terminal to fold. At 60 and 80 columns: the verdict line,
error:andnote:lines, the lines of a verb's questions (such as the note underinit's question on the model's name) and every line of the guided session keep their indent in the pretty look, where the terminal started them again at the left edge, and the session wraps its rows and its numbered steps in both looks, where it wrapped nothing; the reference solution's call and its reply, a JSON value on your own tools among them, break only between their members, where a quoted string was cut in two; what the model is shown, the tools and the wrong answers wrap at their indent; a command to copy, broken before its flags at 78 columns, is broken to fit a narrower terminal, a flag never parted from its value; and in the plain look the examples and exit codes of--helpwrap at their column. Piped output is unchanged, and--jsonis never wrapped. -
An unnamed set of your own tools is called by its file's name (#33). The settings line,
init's closing line and the guided session's summary saidyour tools (<the path in tasks.toml>), which a long path ran to two lines on each; they now name the file (your tools (petstore-openapi-3.0.json)), anddoctorgives the whole path once. A named set is called by its name, as before. -
A run stopped before its first model call no longer prints a raw
Event loop is closed(#52). When the start-up watchdog, a cap or Ctrl-C cancels an episode, the harness kills its processes and does not wait for them. If one of them still held its output pipes when the run ended, they were closed later, after the run's event loop had closed, and three raw lines (Exception ignored in …, a traceback,RuntimeError: Event loop is closed) reached stderr, how often depending on how busy the machine was. A run now waits for each process it started to be reported ended, and closes it, before its event loop closes. -
The versions Poisson Tasks is tested with are in the repository, and CI installs them (#40). Only
verifiersandtiktokenare pinned, so a fresh install takes the newest release of everything else the package allows, which can be newer than what a release was tested with.constraints.txtnow pins every package a checkout installs at the version the whole suite last passed on, and each release carries it at its tag:pip install poisson-tasks -c constraints.txtinstalls those versions and no others (docs/before-a-run.md). The package's own requirements are unchanged, floors and no ceilings, so installing into an environment you already have resolves as before, and every published Prove still installs beside it. CI's jobs without Prove install from the file; the jobs with Prove do not, so a new release of a dependency is met there first.
Docs
- The README leads with install, a first run and reading the card (#41). It is about 15 kB where it was about 19 kB. The reference material it held moved to the docs pages it links: each dial's levels and depth's full numbers to
docs/knobs-and-arms.md, and the cost and footprint list to a new page. It keeps the dials with their evidence, the published cards, the commands and what is not claimed, and links to poissonlabs.ai. - New page, for the site's sidebar:
docs/before-a-run.md, "Before a run: what it costs, and what it changes on your machine". Every item a first run writes outside your folder (the tokenizer file, uv for the harness, verifiers' cache and the temporary files), the limit on open files a run raises, the commands verifiers installs besidepoisson-tasks, and what goes over the network. - New page, for the site's sidebar:
docs/own-tools-reference.md, "Your own tools: how the responses are made, and the contract hash". The reference half ofdocs/own-tools.md, moved whole: the answers to calls, reads and writes, the errors in each format's idiom, the store, the reads on the bad-data dials, and how a tool file's contract hash is computed and what moves it. - The densest docs pages are in shorter sections (#51).
docs/knobs-and-arms.mdgains the fourteen dials at a glance, which recipes reach which dial, the turn budgets as a table, and checked blocks for the pin ledger on the block knob and for the two refusals ofbaddataandlagged.docs/own-tools.mdkeeps the guide (what you can bring, a first run, the refusals, the dials, the settings and the card) in subsections, lists and tables, with checked blocks for the[own]tableinitwrites, a flow task andverify's refusal, and links the reference page for the rest. No fact or figure was dropped.docs/calibration.mdis unchanged: it is rendered by the card code, and a shorter rendering waits for a release that changes that code. - The contract hash's example is corrected. Among what does not move the hash, the page read "
éagainsté", the same character twice; it now reads "\u00e9againsté", a JSON escape against the character it stands for.
Tests
- Existing tests were edited, each in its own commit: the test that holds the exact set of pages under
docs/gainsbefore-a-run.md, and thenown-tools-reference.md; the test that looks for the504and429statuses on the own-tools page looks for them on the reference page, where the errors table moved. - More existing tests were edited, each in its own commit, with no assertion changed: the two tests that compare the pretty look's first line and error lines on a terminal with the plain look's, and the two that read the guided session's
latest cardrow, read a line that wraps as the one line it is; and four tests of the model-B install start its driver from the package the test imported, not the checkout'ssrc/, so they pass where the package is installed from a wheel beside the checkout's tests, as they did not (#53). - New tests: the wrap rule, both looks and the guided session at 60 and 80 columns (
tests/test_fx_layout.py), a run stopped while its bootstrap's pipes are still open (tests/test_fx_run_reaps_children.py), and the tested versions and which CI jobs install them (tests/test_fx_constraints.py).