Repository navigation
PromptFixer 0.3.0
Added
-
npm run visual -- --against <ref>compares the interface with a commit instead of with
approved pictures: the ref is checked out into.elastishot/against/<sha>, built there and
served by its own server, its screens become the pictures of that one run, and the working tree
is compared with them. Nothing has to be approved or committed first, and your approved pictures
are neither read nor written. A screen the ref cannot be driven to is reported as new; a ref no
screen of which can be captured (v0.1.0, which predates the hooks the check drives the page by)
is an error that says so. -
CI keeps its reports. A third job compares every screen of a pushed commit with the commit it
was pushed onto (a pull request: its target branch) and keeps the Elastishot report as the
elastishot-reportartifact, with its table as the job's summary page; a difference does not
fail that job, a comparison that could not be made does. The acceptance job keeps
docs/ATDD-RESULTS.pdfas the run printed it (acceptance-report) and shows the traceability
table as its summary page. Both are kept for 14 days whatever the run's outcome. -
Every saved result records the build that produced it. A library entry gains
appVersion,
andGET /api/library/exportgains one for the file as a whole, beside the unchanged format
version. The scoring rules change between releases, so a score that has moved since you saved
it is either a rule change or a defect — and this is what tells them apart.
It is never guessed. A save is written by this build and gets this version; an import keeps
whatever the exporting build wrote, because that entry's provenance is not ours to restate; and
an entry carrying no version — saved before the field existed, or imported from a build that did
not write one — stays unknown, and the library drawer shows it as "version unknown" rather than
claiming a build that never saw it. Re-saving an entry stamps it with the build that rewrote it,
the same writeupdatedAtalready describes. -
server/version.jsis the single import for the running version.server/index.jsand
server/store.jsboth read it from there instead of parsingpackage.jsonthemselves, so the
version is still written down in exactly one place. -
The running version is shown in the interface, beside the app name, so a bug report can name
the build it came from without going looking for it.GET /api/configgainsversion, read
frompackage.jsonexactly asGET /api/healthreads it, so the two cannot disagree and the
version is still written down in only one place. -
The rewrite appears as it is written.
POST /api/fixstreams its progress when the request
asks for it (Accept: application/x-ndjson): one JSON object per line, reporting each attempt,
the rewrite as the model produces it, and finally the same result body the route returned before.
A request without that header gets exactly the JSON object it always did. The rewrite is the
first field the grammar emits, so it can be read out of a reply that is still arriving; the Fixed
tab shows it as plain text while the fix runs, because the scores, the diff and the marks all
need the finished result. -
The spinner says which wait this is. A line beside the Fix button names it: waiting for the
job in front of it (only one model job runs at a time), loading the model, writing the rewrite,
or the second attempt after a rewrite failed the quality check. That last one used to double the
wait with nothing on screen to explain it. -
The editor warns about an over-long prompt while you type.
GET /api/local/statusreports
inputBudgetTokens, the room the prompt has once the reply is reserved, so a prompt too big for
the local model is flagged under the editor in under a second instead of being refused half a
minute later, once the model has loaded and counted it. A warning, never a block: the estimate is
four characters to the token and the real budget follows the context the model managed to load. -
Real numbers on the load and the download. Loading the model shows a progress bar instead of
a bare spinner for about fifteen seconds, and the download shows its speed and how long is left
next to the percentage. -
The model is released when nobody is using it. After fifteen minutes with nothing to do it is
unloaded and the memory goes back, so the app can sit open next to a browser and a test runner on
an 8 GB laptop; the next fix loads it again. Release model does it at once. Set
PROMPTFIXER_IDLE_UNLOAD_MS=0to keep it loaded for ever. -
A stalled local fix is stopped. A generation that produces nothing for five minutes is ended
rather than holding the single model queue for the rest of the session. It is a stall limit, not
a stopwatch on the whole run: every chunk the model emits resets it, so a slow machine is never
cut off mid-answer. Measured on a CPU-only machine, a first fix takes about 100 s and a "fix
again" — which sends the whole previous rewrite back, and may be retried once — comfortably
exceeds five minutes while working perfectly.PROMPTFIXER_FIX_TIMEOUT_MSchanges the limit,
0removes it. -
Disk is checked before a download, and can be reclaimed from inside the app. A 2.5 GB
download that will not fit is refused in under a second, naming both numbers, instead of failing
an hour in; free space that cannot be read never blocks a download.DELETE /api/local/model/:tierdeletes a model and any part-finished download of it, and the row under
the provider selectors shows what each tier occupies and offers to delete it — so trying all
three tiers no longer means clearing 8.2 GB by hand from a hidden folder. -
"Nothing leaves your machine" is now a test, not a claim. Acceptance scenario F11 was the
project's only manual charter: a person unplugging a network cable. It now runs on every push.
The server is started underacceptance/support/netwatch.mjs, which intercepts outbound TCP
(and so TLS, HTTP, HTTPS andfetch), UDP, and the wholednsresolution family, and records
every destination that is not this machine. A full session — score, fix, save, list, export,
import, and the same session again in a real browser — has to leave that record empty. The test
proves the watcher works before trusting it, by making a deliberate call off the machine and
asserting it was caught, and it fails if the session starts a child process, because a child's
traffic is the one thing the watcher cannot see through. The browser half asserts the page
requests nothing beyond its own origin, from the first request of the document load onwards,
and blocks service workers outright. -
The watcher has its own regression suite,
server/netwatch.test.js: seventeen checks, each one
a way code reached the network past an earlier version of it. A port passed as a string rather
than a number;dns.resolve*, which builds its socket in C++ and so never appears at the socket
layer; an ESMimport { lookup } from 'node:dns', which binds to the unpatched function because
a builtin's named exports freeze when the facade is first instantiated;execSync, which does
not call thespawnSyncexport; a worker created withexecArgv: []; a connected UDP socket,
whosesendnames no address; a TLS tunnel whose destination exists only asservername; and a
Windows UNC path, which carries bytes to another host with no socket to it. All were found by
trying to break the watcher on purpose and all are now closed. The watcher is installed through
NODE_OPTIONSrather than a command-line flag, because a worker and a spawned node child
inherit the environment but not the flag. -
F11 refuses to vouch for a machine with a proxy variable set: a proxy on loopback makes every
destination look like this machine, so a clean result there would mean nothing. The harness
blanks the proxy variables for every server under test and the watcher reports any that survive. -
docs/PRIVACY.md: one page naming every host the app can reach and when, where
your prompts and library are stored, what F11 checks, and "What the test does not cover" —
the page to hand to whoever approves software where you work.
Changed
- The app no longer builds its model engine from source.
getLlama()was called with the
defaultbuild: 'auto', which on a machine with no matching prebuilt binary resolves a release
from GitHub, clones llama.cpp and may fetch a toolchain — real network traffic, unasked, from an
app whose headline claim is that it makes none. It is now called withbuild: 'never'and
skipDownload: true, so a missing binary is a clear error instead of a silent download. The
installer ships the binary, so this only fires on a platform there is no build for. - A fix is no longer a pure function of the prompt, and the documentation now says so. Up to two
rewrites from your own library go to the model as examples, so the input changes as the library
grows. "Repeatable runs" in the README says what to turn off before comparing or timing two runs. - The error path of
POST /api/fixfinishes a streaming reply with anerrorevent. The status
line has already gone out as 200 by the time the model is called, so a failure that used to
arrive as a status code now arrives as the last line of the stream.
Download: PromptFixer-0.3.0-win-x64.exe (339 MiB). Windows 10/11, 64-bit. The model (2.5 GB, or the 1 GB "lite" tier) is downloaded on first run; installing over an earlier version keeps your library and the model.
Verify: installer SHA-256 39dde4aaf5e9ac4b059d256280002211d5e78a89ffc65dc375e7965c5d71b0d7 (SHA256SUMS.txt is attached). PowerShell: (Get-FileHash .\PromptFixer-0.3.0-win-x64.exe).Hash.ToLower() must equal it.
Not code-signed yet: Windows shows "Windows protected your PC" - More info, then Run anyway. Compare the hash first. Full guide: docs/INSTALL.md.
Built by the Release workflow from commit 502d675.