Added#
billsays what a Bedrock or Vertex model id is when it leaves the id unpriced.us.anthropic.claude-sonnet-4-6,anthropic.claude-haiku-4-5-20251001-v1:0andclaude-sonnet-4-5@20250929are named with their platform and, when the catalogue knows it, the Claude model inside. They stay unpriced, because each platform sets its own prices, and the hint says how to price them with an overlay. (#858)trazum model-pricingreads the contracted rates your organisation already gave Claude Code in itsmodelPricingmanaged setting and writes them as a pricing overlay, sobilland every command that takes--pricingshow the figure Claude Code shows. What the table cannot say (batch, fast mode) keeps the catalogue's figure and is named per model; a key it cannot place, a row Claude Code would drop and a rate of zero are named and priced nowhere. A receipt line priced by any overlay now carries the overlay's date rather than the catalogue's. (#856)bill --prom-outwrites the bill in the Prometheus text format, and a Grafana dashboard reads it. (#844) Teams that already run Grafana want the spend in the same place. The file is the--otlp-outpayload written as text, sample for point, for the node exporter's textfile collector: Trazum pushes nothing. Each closed UTC day is its own series, labelledtrazum_day, with no timestamp, because Prometheus refuses a scraped sample stamped a day back. Every cost sample keepstrazum_cost_basis="api-equivalent", what could not be priced is its own metric, and what a day still being measured held is a gauge of its own.docs/grafana/trazum-bill.jsoncharts it, and says on every panel with money that it is API-equivalent.bill-prom.test.jsholds that the samples add to the bill, that each matches its OTLP point, that a project name with a quote and a backslash survives, and that the dashboard queries no metric or label the file does not write.- Staging and production for the web app, a
nextchannel on npm, and the three GitHub Environments stated in the repository. (#829)- The web app. Every merge to main is built by Vercel as a staged production deployment: "Auto-assign Custom Production Domains" is off on the Vercel project, so the build serves its own address until it is promoted, and promotion does not rebuild it.
.github/workflows/promote-web.ymlis the button: started by hand from main, under theproductionenvironment and its reviewer, it runsscripts/promote-web.mjs, which reads the deployment from Vercel's API and refuses anything but a ready, staged production build of the project (a preview would be rebuilt with production variables), then promotes it and waits until Vercel says the job succeeded.rollbackputs production back on a build that served it before. After a rollback Vercel turns automatic assignment off, and the next promotion turns it back on; the job warns when that happens. The Vercel token, project id and team id are secrets of theproductionenvironment and nowhere in the repository; the token goes toapi.vercel.comand to no other host.docs/setup.md, "Staging and production", has the flow, why a staged deployment and not a custom environment, how to roll back, and the Vercel pages it rests on, each with the date it was read. - npm. A version
X.Y.Z-next.Npublishes to thenextdist-tag and never tolatest.scripts/npm-channel.mjsdecides the channel inrelease.yml'sdecidejob and refuses a prerelease on main, a tag that does not name the manifests' version, and any other prerelease word. Every upload passes--tagfrom that answer;npm-serves.mjswaits on the same tag and fails at once iflatestnames a prerelease; the GitHub release, the attached files and the MCP registry listing run forlatestonly.prepare-release.mjs 3.1.0-next.1moves the lockstep versions and nothing else, and the tests that hold a document to the current version read the release onlateston a next's tree (recordedVersion).docs/releasing.md, "A next prerelease", is the procedure: a branch, a tag, never a merge. - Environments.
.github/environments.jsonstatesstaging,productionandrelease, each with a required reviewer, the branches that may use it and the names of its secrets.npm run environmentscompares GitHub with it andnpm run environments -- apply --yeswrites it, the waynpm run rulesetdoes for the branch; the weeklyRepository settingsrun compares and never writes. No job runs understagingyet: Vercel's Git integration builds it. - Tests.
npm-channel.test.js,web-promotion.test.jsandenvironments.test.js. Planted one at a time and put back, each caught by the test named: listed on the pull request.
- The web app. Every merge to main is built by Vercel as a staged production deployment: "Auto-assign Custom Production Domains" is off on the Vercel project, so the build serves its own address until it is promoted, and promotion does not rebuild it.
- The site publishes
llms.txtandllms-full.txt, and a page for people building on the JSON. (#827)scripts/build-docs-site.mjswrites both throughscripts/llms-txt.mjsintoapps/web/public, from the documents/docsalready publishes and in the manifest's order, and, like the rest of what that script writes, they are not committed.llms.txtfollows llmstxt.org (read on 2026-11-19): an H1, a blockquote summary, H2 sections of markdown links with a one-line note each, andOptionallast.llms-full.txtis the same documents, unchanged, in one file.trazum.config.jsonignores the two files, which are copies of documents and not prompts. Nothing in either is typed: the summary, links and descriptions are read from the documents.docs/building-on-the-json.md, linked fromdocs/README.mdand the README, links each command's contract indocs/json-output.md, says the contracts are versioned and held by tests, says what is stable and what is not, and says nothing uploads usage.llms-txt.test.jsholds what the builder makes (twice, to the same bytes) to the documents and the page tojson-output.md's sections. Planted and caught, results on the pull request: a builder that emits an extra line, a document deleted but still in the manifest and linked, and a link from the new page to a section ofjson-output.mdthat does not exist. trazum bill --agent <name>bills one coding agent's records, and--timezone <zone>cuts days in a zone instead of UTC. (#826)--agent claude-code|codex|gemini-cli(or the name the bill prints, in any case) keeps that agent's records in the statement, the receipt, the side files and--otlp-out; a plain log or a provider export belongs to no agent and is left out, said on stderr with the count. An unknown agent is refused by name with the three known ones, and so is a known one with no record among what was read, which exits 1 like every refusal inbill.--timezone Europe/Madridcuts--by day,--by week,--by month, the automatic month table, the span line and what a bare--since/--untilday means in that zone, throughIntl.DateTimeFormatwith no new dependency; a day the clocks made 23 or 25 hours long is billed whole. The statement says which calendar it is on. An invalid zone is refused by name before any file is read.--timezoneis refused, by flag, beside--otlp-out,--markdown-out,--html-out,--pdf-outand a--csv-shapeother thanslice, which cut their days in UTC, and both flags are refused beside--git-range;--receipt,-oand--sendcombine, because a receipt holds instants and no day. Without either flag the output is unchanged, held byte for byte bybill-agent-timezone.test.jsfor--by day,weekandmonth, and the receipt gains no field, sodocs/json-output.mdhas nothing to add. Documented indocs/commands.md, underbill; messages and help in English and Spanish. Planted one at a time and put back, each caught by a named test in that file: the agent filter ignored (in the statement, and in the OTLP file), the zone ignored, an unknown agent accepted, an invalid zone accepted, a zone line printed with no flag, a bare--untilday ended 24 hours after it began instead of at the next local midnight,--otlp-outlet through beside--timezone, Codex import evidence leaking onto another agent's receipt, a bare--sinceday read in UTC under--timezone, and--agentaccepted beside--git-range. The results are recorded on the pull request.trazum bill --git-range <range> --deliverysets the spend recorded in a repository beside what local git shows landed in the same range. (#825) It adds two lines at the end of the--git-rangeview and changes none above them: the commits of the range (merge commits counted and named), the pull requests git names by number, the UTC days on which a commit was committed, and the figure of the sessions inside the span divided by each. Pull requests come from local git alone, by the number inMerge pull request #N from ...on a merge commit or in... (#N)closing the subject of a squash commit, counted once per number; a pull request merged by rebase names none, so the count is a floor and the line says so, and with none named there is no per-pull-request figure and never a $0. Only metadata is read: the log is asked for the parents, the commit time and the subject, the subject is read for a number and dropped, and no author name, email, message, branch or hash is read out or printed, and no pull request number is printed. The wording rule of #777 holds: the figures are what was recorded during a window divided by counts over the same window, and the line says they are not what any commit, pull request or day cost; nothing says a change caused the spend. One flag rather than a--by commit|pr|day, because--byalready cuts a bill into days, weeks and months and a row per commit or pull request would be a figure for one change, which the transcripts cannot give.--deliverywithout--git-rangeis refused by name. Without the flag the output is unchanged, held byte for byte bybill-git-delivery.test.jsagainst a statement written by hand, and checked once more by running the CLI built fromorigin/mainand this one on one made-up repository: stdout, stderr and exit code identical in 10 runs (five invocations, both languages). Documented indocs/commands.md, underbill; help and messages in English and Spanish; the machine-readable output is not touched, sodocs/json-output.mdhas nothing to add. Tests are inpackages/cli/test/bill-git-delivery.test.js, on made-up repositories in temporary directories, with the money worked out by hand ($2 per million input tokens on Claude Sonnet 5.5: $4.00 over 8 commits, 2 pull requests and 2 days). Planted one at a time and put back, each caught by the test named: the author name asked of git (asks git for the parents, the commit time and the subject, and nothing else) or printed (names no author, message, branch, hash or pull request number), a line saying a commit cost the amount or caused it, in English and in Spanish (says what the figures are, and that none of them is what a commit cost), the delivery lines printed without the flag (adds lines and changes none...,prints, without the flag, exactly what it printed before the flag existed), a pull request counted once per commit (reads a pull request number from the two shapes GitHub writes, and only those), a number read from the middle of a subject (the same test), the merge shape read on a one-parent commit (the same test), a zero count divided to $0 (names no figure per pull request when none is named...,divides, and gives no figure where the count is zero), days cut by author time (counts a day by when the commit landed, not when it was written) and--deliveryaccepted without--git-range(is refused without --git-range, by name). The results are recorded on the pull request. Not measured: how long the secondgit logtakes on a very large range.trazum gateway --metrics-port <n>serves what the gateway counted, for Prometheus to scrape, and a Grafana dashboard reads it. (#824)GET /metricson a second loopback port, off unless given: calls measured, the provider's tokens by kind, their cost at the catalogue's list rates withtrazum_cost_basis="api-equivalent", calls with no list price, calls forwarded and not measured by cause, 402s by the reason the refusal body gave, substitutions, free paths and an unreachable provider, all since the process started. The cost is priced by the same function the live budget charges with,priceGatewayUsage, taken out ofGatewaySpend.settlefor it. A second port, not a path on the proxy's, becauserouteis the one reader of a caller's URL there; the scrape port has no upstream, binds to127.0.0.1throughlistenGateway, and refuses a rebound page throughrefuseHost. Counts and names only: the labels are the provider, the model,metadata.trazum_label, a reason and a cause, and no session, prompt or response; nothing is pushed. A model and a label are the caller's text, so past 1,000 distinct pairs a call naming a new one is left out whole and counted intrazum_gateway_calls_dropped_total.docs/grafana/trazum-gateway.jsoncharts it. Documented indocs/gateway.mdanddocs/commands.md; help and messages in English and Spanish.gateway-metrics.test.jsdrives calls through the proxy against a stub provider and reads the scrape; a guard insecurity.test.jsholds the port to forwarding nothing, guarding the host first, recording no session, and listening on loopback.- The Claude Code status line says how much of your plan's window is used and when it resets. (#823) On a subscription the question is when you run out, not what a call cost. Claude Code hands the status line
rate_limitson a Pro, Max or Ultra plan, or behind a gateway that sets a spend limit, and the line now shows it beside the session's figure:5h 23%, resets 14:20 · 7d 41%, resets Sat 09:00, andspend 62% of $500/month, resets Mar 1where a spend limit is set. Only what Claude Code sent is shown: a window without its percentage or its reset, or whose reset has passed, is left out, and a percentage is rounded down, so a window at 99.6% is not shown as used up. On an API key, and before a session's first response, Claude Code sends none and the line shows no plan figure: Trazum keeps no table of plan limits and works out no counter from tokens. Field names and units are from Claude Code's status line documentation, read on 2026-11-20. The status line suite runs the script on each case; planting a window whose reset has passed, a window without a percentage, a percentage rounded up, or the separator printed with nothing after it each fails it. trazum wastepoints out the waste in a coding-agent session, priced, and changes nothing. (#822)trazum waste <session>.jsonlreads a Claude Code transcript and the transcripts of its subagents and names three costs: a file read again (the same path and range as an earlier read in the same conversation, no edit of it between, not an errored read), MCP servers loaded and never called, and a CLAUDE.md carried on every turn. It is a command of its own rather than a section ofbill, because its answer is a short list of named costs each with the reason it is or is not priced, andbillanswers whose spend a slice is. Prices are at the bundled, dated catalogue as API-equivalent cost, throughprofileUsage; it loads no config and refuses--pricing,--pricing-liveand--config. A saving is computed from the session's own counts and never a percentage taken from elsewhere: a repeated read is priced by the prompt growth across the call that made it (P(next) - P(this) - output(this)tokens), carried on every later call of that conversation until the prompt shrinks (a compaction), as the difference between the conversation priced as it was and priced without those tokens. It is a lower bound, priced only where the call made no other tool call, and the rest are counted and said to be unpriced. MCP servers are named and not priced, because a server's tool-definition tokens are not recorded in a transcript; the loaded list is read from thedeferred_tools_deltaandmcp_instructions_deltaattachments, whose field names were checked on 2026-11-19 against a real Claude Code transcript, and from anmcp_serverslist on asystemline, which that transcript did not have;--mcp-servers a,bnames them instead and the output says so. CLAUDE.md is the one estimated figure: its size is astatof the file in the session's directory (or--claude-md), its tokens are bytes over the estimator's divisor of 4, and the cost is shown with the estimator's published band, 33%, either side. It recommends and edits no file, and reads counts and paths only: no message text, command, tool result or file content reaches the report, held by a test that plants a secret in each.--min-reads <n>(default 3) chooses what is listed;--jsonprints a document withschemaVersionandkind: "trazum-waste", held in both directions to its table indocs/json-output.mdand listed indocs/format.md, whose count of emitted documents moves from twenty-five to twenty-six. Documented indocs/commands.md; messages in English and Spanish; the command count moves from 58 to 59 wherever it is stated. Tests are inpackages/core/test/session-waste.test.jsandpackages/cli/test/waste.test.js, on made-up transcripts in temporary directories with the money worked out by hand (two repeated reads of 3,000 tokens each on Claude Opus 5 are $0.042; a 4,000-byte CLAUDE.md over six calls is $0.0145). Planted one at a time and put back, each caught by the test named: a write between two reads ignored (does not count a read that follows a write to the same file), the read range ignored (does not count a different range of the same file as the same read), an errored read counted (ignores a read the tool reported as an error), every conversation merged (keeps every conversation apart...), no reset at a compaction and the output tokens not subtracted (prices the context a repeat added and carried...), a repeat priced although other tool calls shared its growth (counts a repeat made beside other tool calls and does not price it), a server given a price (does not price it: the definitions are not in the transcript), the band's sign reversed (prices the tokens a size implies...),--min-readsignored (lists only files read at least --min-reads times...), a removed tool still loaded (forgets a tool the transcript later says was removed), an unreadable call counted as free (says it cannot tell when a call could not be read as usage...), the working directory copied into the report (carries nothing of what was said, run or returned into the report), the CLAUDE.md content opened or a file written (opens no file for its content except the transcripts), a pricing overlay accepted (refuses a pricing overlay, a missing path...) and a documented JSON field removed (documents every field in docs/json-output.md, and emits no other). Not planted: the check that the transcript pairs with its usage line for line, which has no input that can break it short of a defect in the converter. Not measured: how long it takes on a very large transcript, and what share of real sessions' repeats are priced rather than counted.trazum session-guardis a Claude Code hook that warns once, then stops a session, at two dollar figures you set. (#821)trazum session-guard install --warn 5 --stop 15 --on-cannot-tell fail-openwrites one hook to~/.claude/settings.json, on theUserPromptSubmitandPreToolUseevents. Each time it runs it reads the session's transcript and its subagents' transcripts, converts them asfrom-claude-codedoes, and prices them at the bundled, dated catalogue. Under--warnit is silent. At or over--warnit says so once per session, as{"systemMessage": ...}at exit 0. At or over--stopit blocks every time, with exit code 2 and the reason on standard error. Both are the forms Claude Code's hooks page (code.claude.com/docs/en/hooks, read 2026-11-19) documents, and the page and date are in a comment insession-guard.ts. Nothing has a default: a missing--warn,--stopor--on-cannot-tellis refused by name, and so is a--warnthat is not below--stop. A transcript that cannot be read, a missing one, and a model the catalogue has no price for follow--on-cannot-tell, with the meaning it has ongateway, and never count as $0; calls that were priced count as a floor, so an unpriced model cannot hide a stop. Every figure is worded as API-equivalent cost, not what was paid, in English and Spanish. It reusesproactive's door: the same write function, backup, JSON-as-data reading and record in~/.trazum/proactive.json, souninstallremoves exactly its own hook and the containers it made, and a hook of yours that mentionssession-guardis never taken for its own. "The warning was given" is a file in the status line's cache directory and nowhere else. It loads no config and refuses--pricingand--pricing-live; nothing leaves the machine. Not available on Windows. The hook reads the whole transcript on every prompt and tool call, and how long that takes has not been measured. Documented indocs/commands.md; the command count in the README, the plugin page,docs/licensing.mdand the web app's sample text moves from 57 to 58. Tests are inpackages/cli/test/session-guard.test.js, on made-up transcripts with the money worked out by hand ($25 per million output tokens on Claude Opus 5, so 100,000 tokens is $2.50) and temporary homes only. Planted one at a time and put back, each caught by the test named: no warning given (warns between the figures...,warns at exactly the warning figure), warning repeated (gives the warning once per session...), no stop (blocks at exactly the stop figure...), stop below the threshold (does not block just under the stop figure), an unpriced model priced at $0 (never prices a model with no price at zero...), and the install touching another hook (adds the hook to both events and touches no other hook...).- A weekly cross-check of Google, DeepSeek, Moonshot, xAI and Mistral against LiteLLM's model list, as a signal to re-read a provider's page. (#820)
scripts/price-crosscheck.mjs, run by the same scheduled CI job asprice-drift.mjs, reads LiteLLM's publicmodel_prices_and_context_window.jsonand reports, for the providersprice-drift.mjscannot read: a LiteLLM chat model the catalogue does not price (missing), an input, output or cache-read rate that differs from the catalogue's (differs, with the catalogue's source page and read date beside it), and a file with nothing for a provider (unread). LiteLLM is a signal, not a source: nothing is copied and the script never writespricing.tsor any file. A LiteLLM rate that equals the row's base, its rate in force today or any of its tiers (DeepSeek's peak hours, a long prompt) is agreement, reported as a note naming the tier, and a row the catalogue has retired is a note and is not compared. Ids are matched exactly after taking off LiteLLM's provider prefix, never by resemblance; a catalogue model LiteLLM does not list is a note. On the weekly schedule a differing rate or an unread file fails the run and a missing model only reports; on other runs it never fails.CONFIRMED_DIFFERENCESrecords a row a person re-read and found right.raw.githubusercontent.comis now decided intrusted-hosts.test.jsas public data, no credential. Documented indocs/releasing.mdanddocs/pricing-dataset.md.price-crosscheck.test.jsruns a fixture LiteLLM file (a missing model, a differing rate, a matching rate, a provider out of scope) against a stand-in catalogue; the plants (a missing model not reported, a differing rate not reported, an equal rate reported, a write topricing.ts, an out-of-scope provider reported, tiers ignored,retiredignored) are recorded on the pull request. - A plan can carry an edit to a tracked file, and the Action can open the pull request that makes it. (#796)
planwrote what to do andverifysaid whether it worked; for a change that is an edit to a prompt, the tool already produced the new text and stopped at printing it.- The action.
trazum plan <log> --editsadds anedit-fileaction for each prompt filelabelsintrazum.config.jsonmaps a workload to: the text thesaferules make of it (--reorderfirst moves stable blocks ahead of the first placeholder), recorded by the SHA-256 of the file before and of the text after, with the steps, the level and the rules left off. The text itself is not in the plan, so a hand-edited plan has nowhere to put other text;applyPlanEditin the core is the only way to the new text, and it refuses a file that is not the one the plan saw and a result that is not the one it promised. Only a file git tracks gets an edit (isTrackedingit.ts, the one module that runs git), never a source file, and a mapped label that gets none is named with the reason. An edit projects no saving: its figure is the workload's bill as the log measured it, and the file's tokens before and after are labelled as the estimator's.--min-usdkeeps edits, which carry no money to be under. Nothing is written to the file. - Verify.
verifyhashes each edited file where it is now. Arrived needs both the promised text in the file and the workload's input tokens per call below the plan's baseline in the newer log. The file still as the plan found it did not arrive; a file holding anything else, or gone, iscannot-tell: file-changedand fails--gate; where nothing can read the file (the browser tab) it iscannot-tell: file-not-readand fails nothing. - The document.
PlanDocumentgains theedit-filekind,detail.edit, the assumptionfile-is-what-label-sendsand the two cannot-tell reasons, and staysschemaVersion: 1: additions only, and a plan written before them parses and verifies as it did.parsePlanDocumentrefuses anedit-fileaction whose edit is missing, names a path that is absolute, climbs with.., has an empty or.segment, a backslash or a control character, or names.git, or carries a level other thansafe. The HTTP savings API and the MCP savings tools keep refusing anedit-fileaction: they take text, not a repository, and could only answer that the file cannot be read. - The Action. A new input,
plan-pull-request, off unless'true', makes the plan fromusage-logand runs one new step,Open the plan's pull request(action/open-plan-pr.mjs), the only step of the Action that writes to a repository. Through the Git Data API it reads each file from the default branch, makes the edit again there, writes one commit on a new branchtrazum/plan-<hash of the edits>and opens one pull request whose body is the plan. It refuses the whole pull request when one file moved on; creates nothing when the plan has no edit or every edit is already on the default branch; reuses the open pull request for the same edits, does not reopen a closed one, and leaves alone a branch of that name with no pull request; creates no ref but its own, calls no merge endpoint, and sets no label, reviewer or assignee. It never fails the build for not opening.docs/ci.mdshows it in a job of its own withcontents: writeandpull-requests: write; no other step gains a permission or the token. The mode refusestarget,weekly-summaryand every gate and window beside it. - Tests.
packages/core/test/plan-edit.test.js,packages/cli/test/plan-edits.test.js(a real git repository in a temporary directory) andaction/test/open-plan-pr.test.mjs, which drives the step against an in-memory stand-in for the GitHub API with no socket. Planted one at a time and put back, 20 caught and 0 escaped: a file the plan did not list added to the commit; text other than the promised text committed;plan --editswriting the file; a pull request opened with no change (both guards removed); a second pull request for the same plan, once by naming the branch after the whole document and once by not looking for the existing pull request; the default branch as the ref; a file's mode dropped; Markdown that is not the plan accepted as the body; a file that moved on accepted; an edit to a source file; a path climbing out of the repository; an edit projecting a saving; verify arriving on the file without the log; verify reading a file still as planned-from as arrived; an untracked file given an edit; verify not reading the files;--min-usddropping an edit; the step run withoutplan-pull-request; anedit-fileaction with no edit parsed.
- The action.
trazum bill --receipt --send <url>posts the receipt to an organisation's HTTPS endpoint, and nothing else leaves. (#789) The body is the bytes--receiptwrites, onePOST, one attempt, no retry and nothing in the background. The key is read fromTRAZUM_RECEIPT_KEYas a bearer header, is not accepted as a flag and is removed from anything printed, a response body included. The URL goes throughwatch --webhook's owncheckWebhook(https except on loopback, no credentials in the URL), and a redirect is refused. The receipt is written before the send, so a refusal or an error leaves it in place; the run then exits 3, and stderr carries the status and the response body, never the request headers.--sendwithout--receiptis refused by name.receipt-send.tsis added to the outbound modulesSUPPORT.mdlists. Documented indocs/commands.md, underbill; messages in English and Spanish.bill-send.test.jsreceives the bytes on a local server, and the plants (a prompt in the request, the key printed, a redirect followed, plain http to a remote host accepted) are recorded on the pull request.- OpenSSF Scorecard runs on
mainand its result is on the README. (#787).github/workflows/scorecard.ymlruns the Scorecard action, pinned to a commit, on every merge tomainand weekly, and publishes the result the README's badge shows.SECURITY.mdsays what the score covers and what it does not. It is not a required check. - On a pull request, the Action's comment says what the change does to each prompt's cost against the base branch. (#785) The Action gated a prompt on its token budget and on drift past a recorded baseline; it did not say that this change makes these prompts cost so much more or less a month than they do on the base.
- The command.
trazum check <target> --base <ref>reads the prompts under the target at that commit and here, and gives every prompt that differs, was added or was removed a row: tokens on both sides, input cost on both sides and the difference. The base is read from the clone withgit ls-treeandgit showthroughgit.ts(new:commitOf,filesAt), never fetched; a ref the clone does not have is reported as not compared, with the fix, and never replaced by the working tree. A ref starting with a dash is refused before git runs. Paths the directory walk would skip are skipped at the base too, through the newwalkIncludesbesidewalkPromptsin the core. A prompt marked in a source file is compared prompt by prompt.--jsoncarries it asagainstBase;--markdown-outputs the table at the top of the report. - What a figure is. Input tokens at the model's input price, both sides at the same prices, so a repricing cannot read as a change the pull request made. Output is left out, because a prompt edit does not set it. The model is
usage.model, or the default, and the report says which. Every row names its price per million input tokens and the day that price was read: the provider's review date in the catalogue (reviewedForModels), or a local overlay's own date. - The volume. A month is the calls somebody stated: a new config key,
volumes, gives calls a month per label, andlabels(the mapplan --editsreads) says which prompt file the label sends. A prompt with no stated volume is priced per call and counted as such; several labels sending one file add up, and one of them without a volume leaves the file per call. A volume for a labellabelsdoes not map, or a negative one, is refused. - The gate.
--max-monthly-increase-usd, and the Action inputmax-monthly-increase-usd, off unless set: fails when the prompts with a stated volume cost more than that much more a month on the head, names the changed prompts it could not judge, and fails when the base could not be read. The Action passesgithub.event.pull_request.base.shato the check step throughenv:, so on a pull request the table is in the same report and the same comment, one percomment-keyas before; it refuses the limit off a pull request, withusage-log, withweekly-summaryand withplan-pull-request.actions/checkoutneedsfetch-depth: 0for the base to be in the clone, whichdocs/ci.mdshows. Without it and without the limit, the Action does not compare, so a default shallow checkout's report is unchanged. - Tests.
packages/cli/test/check-base.test.js(a real git repository with a base and a head, and the expected table worked out by hand in its header),action/test/base-comparison.test.mjs(runs the check step's own script with bash against a stand-in CLI, and posts the rendered table twice throughpost-comment.mjs) and awalkIncludesagreement test inwalk-ignore.test.js. Planted one at a time and put back, 15 caught and 0 escaped: the base read from the head; a missing volume treated as one call a month; a price without its date, once in the rendered row and once in the report;walkIncludeskeeping a dot directory; a volume for an unmapped label accepted; the gate never breaching; the gate breaching at the limit exactly; a gate on an unreadable base passing; the Action not handing over the base; the Action running the limit off a pull request; a dashed ref reaching git; a marked prompt taking its file's volume; a label with no volume skipped in a sum; the base not held to the walk's rules.
- The command.
- The price catalogue is published as an open dataset, with every release. (#784)
scripts/pricing-dataset.mjswritespackages/core/src/pricing.ts, read from the built@trazum/core, as one JSON document per release: one row per model and rate (input, output, each band, service tier, past period and promotion, the cache and batch ratios a model states, the geography multiplier and the web search fee), each with its provider, its unit, the pages that provider's prices were read from and the date. 3.0.1's document holds 734 rows for 91 models in 223,259 bytes, athttps://trazum.vercel.app/datasets/pricing/3.0.1.json, besideschema-1.json(a JSON Schema) andchangelog.json. MIT, the repository's licence.docs/pricing-dataset.mdis the page for whoever consumes it.- Sources are per provider, because the catalogue keeps them so. The pages were prose above each date in
PROVIDER_REVIEWED;PROVIDER_SOURCESinpricing.tsis that prose as data, the pages read on the date (Google's at aistudio.google.com, Mistral's at its inference page and three model cards), andprovider-sources.test.jsfails on a page the comment above the date does not name. No model is given a source of its own. No price or other catalogue value changed. - Patterns from literals. The validator compiles a schema
patternonly from a table of literals, one for each pattern the schema names, and refuses any other, so no regular expression is ever built from the document it checks (Codacy, PR #809). - What it refuses. A price of zero, below zero or not a number stops the build, naming the model; so do an empty value anywhere but a batch ratio (the catalogue's
nullfor "no batch API"), a provider with no date or no page, and a field of the catalogue the script does not know how to write. A ratio a model does not state gets no row: the catalogue's defaults are published once, indefaults. A model the catalogue does not price has no row at all. Nothing is fetched. - Releases.
prepare-release.mjswrites the next version's document, the changelog and the schema from the catalogue as built, and refuses to rewrite a version already published. Theassetsjob ofrelease.ymlcopies the document astrazum-pricing-<version>.jsononly when it is byte for byte what the catalogue at the published commit builds, andSHA256SUMScovers it. 3.0.1's document was written after 3.0.1 was cut, from apricing.tswhose only change since that tag isPROVIDER_SOURCES, so it is on the site and not on the release, andchangelog.jsonnames no release asset for it. - Held by
test/pricing-dataset.test.mjs: the document read back, by code that shares nothing with the builder, isMODELSfield for field; every row has its provider's pages and date; no value is zero; the published document is exactly what the script builds whilepricing.tsis the file it records (by SHA-256); every published version satisfies the schema and lists what changed since the one before; the changelog and the schema are what the script writes. Planted and caught, each then restored: a row without a date (in the published file, and from the builder for xAI's rows), a value that differs from the catalogue (Fable 5.2's input 8 to 9 in the published file, and a band's output written as its input by the builder), a model priced at zero (Fable 5.2's input at 0 inpricing.ts, and a row at 0 in the published file), a page named nowhere in its review comment, a provider with no pages, a catalogue field left out, a ratio filled with the default, a schema keyword the validator does not read, a hand edit tochangelog.jsonand to a document'schanges, the upload removed fromrelease.yml,prepare-release.mjsnot writing the dataset, andwriterewriting a published version. One plant was not caught, and is not a fault the guard claims:mistral.ai/pricingas a Mistral page, which the comment does name (the August review began there); the guard checks that a page is named, not that it was read on the date.
- Sources are per provider, because the catalogue keeps them so. The pages were prose above each date in
- The two workflows that act outside the repository are held by a test. (#779)
workflow-guards.test.jscheckspr-guide.yml(the fetched script is pinned to a full commit and SHA-256, checked strictly before it runs, never run for a fork, and the job writes only to pull requests and issues) andmirror-to-n0.yml(it runs only on a push tomainor by hand, never prints or stores the URL with its token, and pushesHEAD:mainalone). The mirror now does nothing unless all three of its secrets are set; it checked the host only, so a missing user or token would have failed every push tomain. trazum bill --git-range <range>says what was recorded in this repository's sessions while a range of commits was written. (#777)trazum bill ~/.claude/projects --git-range main..HEAD, run from the repository, takes the times of the range fromgit log(the earliest author time to the latest author or commit time, so a rebased commit still starts the span at the day it was written) and sums the Claude Code records of this repository's project whose timestamps fall in it. The output says what the figure is: everything recorded in this repository during that span, not the cost of the change, in English and Spanish, and nothing in it says the change caused the spend.- Which project is this repository's, without reading a branch or a path out of a transcript. Claude Code names a project's folder after its absolute path, every character that is not a letter or a digit written as
-. That encoding cannot be undone and is not: git gives the repository's root, the same encoding is applied to it, and a record belongs to the repository when the folder it was found in has that name (the label--label-from-projectalready puts on every record).gitBranchandcwdstay dropped by the reader. A session started in a subdirectory or a worktree sits in a folder of another name and is not matched, a session read from a single file has no folder to match, and when nothing matches the command says so instead of printing $0. Records from Codex, Gemini CLI and logs have no such folder and are counted as left out. - Sessions that cross an edge are named, not added. A session whose first and last call are both inside the span is in the figure. One that began before it or went on after it is listed with its first and last call and what each side cost, and is in neither the figure nor the left-out calls. A call with no timestamp is counted out; a call to a model the catalogue does not price is named, never $0.
- Git. The log call is
commitTimesinpackages/cli/src/git.ts, the one module that runs a program. It reads times only (no author name, subject or hash), refuses a range that begins with-or holds a space or control character before it reaches the argv, and tells a range git refused from a git that could not run. The flag is refused beside--since,--until,--label,--no-label-from-project,--by,--receipt,--table,--stamp,-oand every--*-out, by name. - The Action does not take it. The sessions are on the developer's machine and a hosted runner usually has none;
docs/commands.mdsays so and shows the step for a runner that does. No input was added toaction.yml. - Tests.
packages/cli/test/bill-git-range.test.jsbuilds a real repository in a temporary directory with fixed author and commit dates (one commit rebased, so the two differ) and made-up sessions, and checks the figure worked out by hand: $3.00 + $1.00 = $4.00 over 4 calls in 2 sessions, two straddling sessions at $0.20 / $2.00 and $0.40 / $2.00, 2 calls of wholly outside sessions, 1 record of another project and 1 undated call left out. Planted one at a time and put back, 10 of 10 caught: a record of a wholly outside session counted; a straddling session counted as inside; a branch name from a transcript in the output (the reader passedgitBranchon and the straddle row printed it); the author time ignored; another project's records counted; a range reaching git as an option (--output=wrote a file); the edge instants excluded; the undated call counted; a worktree folder matched by prefix; the output reworded to say the change caused the spend.
- Which project is this repository's, without reading a branch or a path out of a transcript. Claude Code names a project's folder after its absolute path, every character that is not a letter or a digit written as
trazum bill --otlp-out <file>writes the measured bill as OpenTelemetry metrics. (#776) Per UTC day, project, model and agent:trazum.bill.cost(USD,asDouble),trazum.bill.tokens(bytrazum.token.type) andtrazum.bill.calls, with what the catalogue cannot price as its owntrazum.bill.unpriced.callsandtrazum.bill.unpriced.tokens, which carry no dollar figure. Every cost point carriestrazum.cost.basis=api-equivalent, because on a plan the figure is not what was paid. It is written throughotlp.tsunderdoctor --otlp-out's encoding rules (64-bit integers as strings, money as a double) and it sends nothing: shipping the file is the collector's job. No OpenTelemetry dependency. A day still being measured is not a point: today, and any day the--since/--untilwindow cuts, are left out of every metric and named in the resource (trazum.bill.open_days,open_calls,open_cost_usd,open_tokens,open_unpriced_calls), as are calls with no clock (trazum.bill.undated_*), all present at zero when empty, so the series plus those attributes add to the bill.bill-otlp.test.jsround-trips a fixture to the totals the bill's own JSON prints, to within 1e-9 dollars, and by project and model. Planted and caught, with the results recorded on the pull request: a cost point with notrazum.cost.basis, a day written closed that is still open (at the end of the day, and at either end of a window), a cost 1% off the bill, cache reads dropped from the tokens, unpriced calls not carried, money written as an integer, a dropped agent attribute, and an open day not counted in the resource. Documented indocs/commands.md, underbill; help text in English and Spanish.- Every published price is in a committed snapshot, and a test fails when the catalogue moves without it. (#763)
scripts/price-snapshot.mjswritespackages/core/test/fixtures/price-snapshot.jsonfrom the catalogue: the 734 rows the pricing dataset publishes, the default ratios, and each provider's date and pages, one row to a line.price-snapshot.test.jscompares it with the catalogue. Measured on 2026-11-20 by moving each of the 681 published prices in turn: all 681 fail it, including the 19 a sample had found no test held (OpenAI's Flex and Fast tiers, four cache-write ratios of 1, three Mistral figures). It says a price did not move by accident, never that it is right. No price was changed.
Changed#
- The share page and the engine's API routes are bounded by the size of what they are given. (#889) A shared link's numbers are computed at most once every ten minutes per instance, and only the numbers and rule ids are kept, never the prompt; revoking a link still takes effect at once.
/api/compare,/api/optimizeand the share page, when it computes, also count the characters each address hands the engine, two million a minute shared between them, as well as the requests. - CI, the contributor guide and the web image move to Node 26 together. (#883) Node 26 has been LTS since 2026-10-28. Every workflow's
setup-node,CONTRIBUTING.mdand the Dockerfile's base, pinned by the digest Docker Hub serves fornode:26-alpine, now name it, and a test holds the three to one major.enginesstays at>=20: what you may run is unchanged. - What CI and the image install is pinned by hash. (#874) The Dockerfile's
node:22-alpineis now pinned to the digest Docker Hub served for it on 2026-11-21. The three tools CI installed by name and version (acorn,playwright-core,@codecov/bundle-analyzer) now come from lockfiles of their own in.github/tools/, installed withnpm ci, so every file is checked against a hash. Dependabot raises all four. A test holds each. - No workflow grants a write permission at the top of its file. (#873)
cla.yml,backfill-releases.yml,pr-guide.ymlandlabels.ymlgave their writes to the whole file, so a job added beside the one that needs them would have inherited them. Each write is now on its job, the top of every file is read-only, and a test holds it. OpenSSF Scorecard's first run found the first two. - Vercel no longer builds the agent's working branch, which only ever repeated
main. (#849) After each merge that branch is reset tomainand pushed, and Vercel built the same commit again as a preview: two of the nine deployments in the 24 hours to 2026-11-20 13:06 UTC.apps/web/vercel.jsonturns off deployments forclaude/**and sets nothing else; pull request previews and production are unchanged. - A pull request adds its changelog entry as a file in
changes/, and the release folds them intoCHANGELOG.md. (#847) Every pull request used to edit the same## Unreleasedsection of a 1.1 MB file, so two open pull requests always conflicted there, and a merge after a release once put an entry inside a published version (#666). Now each change ischanges/<issue>.<kind>.md;prepare-release.mjsfolds them under the new version, newest issue first, and deletes them; the site's changelog page shows them as pending.pr-readiness.mjsandnpm run donerequire one such file and refuse a line added toCHANGELOG.mdoutside a release. The 27 entries that were underUnreleasedmoved to files verbatim: folded back, they are the same text. - The landing tells its whole story by scrolling, on one pinned desk with its one laptop (#837). The hero opens it, short enough that the laptop, open, already stands under it in the first screen (measured at scroll 0: 349px of its lid at 1440x900, 202px at 1280x720, all of it at 390x844 and its top 90px at 390x664); then one stage stays pinned to the end while the chapters' words scroll past beside it (under it, below 1100px wide), and each chapter changes the stage: the laptop lands and the objects arrive in front of it;
billis typed as soon as it has, and printed, and a paper receipt slides out from under the laptop's side, cut at that side while it comes out so that it never lies over the screen's text, and comes to rest lying flat beside it; each object takes its turn, once, in the order they lie (the CI gate withcheckand its exit status, the breaker withsession-guard checkwarning then stopping, the clock with--agentand--timezone, the pencil withoptimize, the calendar withmodels), lifting and turning pressed while the same screen types that command over the last output, which gives way to it (the screen is never blank between two), and prints its output, scrolling up as a terminal does; why the number holds up, on the stage: the receipt comes forward over the screen and beside each of its lines a note on paper of its own, with a leader rule from the line and shown whole, gives the page its rate was read from and the date, and the receipt is laid back down flat as the chapter ends; thenbill examples/unpriced-model.jsonl, a new five-call example log, showsllama-3.3-70b-instructnamed and kept out of the total, never counted as $0, the screen tagging the file as an example; what never leaves goes on the screen; and the closing, the lid's turn, closes the lid over it and ends on the command, the dashboard and GitHub. The budget check for agents is one compact band after the story, a single line on a wide window: the repository has no runnable example ofspend_guard. Scrolling back walks it back. The seven objects are real buttons at every point and after the story: a press shows its output over whatever the scroll had (!important, which outranks the keyframes without stopping them), and scrolling into the next chapter lets it go. A press of an object whose chapter is not the current one also puts that object's card where the chapter's was, beside the desk or under it, a copy for the eye that assistive technology skips. The chapters are one table,apps/web/lib/story-timeline.ts, which sizes their slots and times the keyframes; which chapter is current is read by anIntersectionObserver, never a scroll listener. Every character on the screen and the receipt is the built CLI's:scripts/draw-landing-terminal.mjsrunsbill, the gate, the hook (fed the input Claude Code sends), the clock,optimize,models(with the clock set to the day the newest rates were read) and the example log, then runs each again in a 60-column window (COLUMNS=60, the narrowest the CLI draws for), the transcript a screen too narrow for 80 columns shows instead, so a table is never wrapped mid-row (models, which the CLI does not narrow, is cut after itsoutputcolumn there, and a line says so); it writes the receipt frombill --receiptthrough the core'sformatUsd, each line with the first of the core'sPROVIDER_SOURCESfor its provider beside the date. Depth within the identity: no drawn table, the floor shown only by hard shadows from one light at the top left and one shared perspective, the objects lying on it in front of the laptop and clear of its deck, the receipt lying flat beside it and unmoved when the lid closes, side faces on the objects, layers arriving at different rates, the pressed object lifting off its shadow. Without JavaScript the story is every output, the receipt and every chapter in reading order; reduced motion pins the desk and shows each chapter's last state at once, in order; a phone gives the laptop the gutters' width (its deck's front edge and its shut lid inside the window), its screen the 60-column transcript, the seven objects in one row, holds each chapter's card just under the desk with the next one right behind it, and brings a focused link below the desk. A chapter's card names its command at its prompt under the sentence, never as a small capital label over the heading; every word on the receipt is 11px or larger; its torn foot is one triangle repeated as a mask. Copy in the five marketing languages, French, German and Portuguese under the existing note. Measured at 4x CPU throttle over a wheel scroll of the whole page, three runs each on the scroll timeline and the script at 1440x900 and 390x844, after the fixes the review of recordings asked for: no long task, a layout shift of 0.0000 to four places in every run, the median frame 17 ms in every run, the 90th percentile 17 ms in eleven runs and 33 ms in one, the 99th 33 ms in eleven and 50 ms in one, the longest 67 ms in two runs. Each element's keyframes run only over its own stretch of the story, nothing tilted rises with an opacity, and the section's height and starting places are written down, because without them a fifth of the frames dropped at 1440x900 and the page showed a layout shift of 0.0203 at 390x844. The web suite'slanding-story.test.mjs, the theme test and eight browser flows hold it, two of them at 1440x900 and 1280x720 for the desk in the window: the lid in the first screen, the objects and their names inside the window, the receipt never over the screen's text, each note whole and clear, the shut laptop inside the window, the objects clear of the laptop's deck, the receipt lying flat and the band after the story never under the stage. Planted one at a time and put back, each caught by the test named: a chapter whose object is not the pressed one, in the timeline (each object takes its turn once, in the order the objects lie), in the motion (while a chapter is current, its own object is lifted and pressed, and no other) and in the page (the browser flowlanding: scrolling tells the whole story, "the check chapter: the object pressed"); a figure typed on the receipt (carries no figure of its own); a second laptop (the page draws one laptop and one screen); a chapter's output written in the page (the page shows every line of it, in order, once) or edited in the generated file (lib/landing-terminal.ts is what scripts/draw-landing-terminal.mjs writesandthe model kept out of the total is the one the CLI named); a rate's date typed in the page (carries no figure of its own) or edited in the generated file, and a rate's page edited there (lib/landing-terminal.ts is what scripts/draw-landing-terminal.mjs writesandeach line of the receipt carries the page its rate was read from and the date, both the core’s). And, for the review of recordings: the ghost total back behind the laptop (no ghost figure stands behind the stage); an output going off before the next comes on, the old blank screen (from the bill’s prompt to the end, some output is always whole on the screen); the laptop landing halfway through the arrival (the bill is typed as soon as the laptop has landed); the command as a label over a chapter's heading (no small label stands alone above a heading); the receipt at 9.5px on a phone and a 13-point torn edge (the receipt’s words are 11px or larger, and its torn edge is one tooth repeated); a calendar row as wide as 80 columns in the narrow transcript (the narrow screen’s transcript is the same commands in a 60-column window; the generator itself refuses to write one); the receipt not cut at the laptop's side while it prints (the browser flows at 1440x900 and 1280x720, "the receipt over the screen's text"); a press that leaves the chapter's card in place (the press flows on the desktop and the phone, "the card in view, the pressed object's"); and the phone's cards not held under the desk (the phone flow, "a card in view under the desk"). - The roadmap carries eight issues from a review of what other AI cost tools do (#820 to #827). Each is our own take, held to the rules here: a LiteLLM cross-check that only tells a person to re-read a provider page, a per-session spend guard for Claude Code, priced waste findings, plan limits from the agent's own signals, Prometheus metrics, spend beside delivery from local git,
bill --agentand--timezone, andllms.txt..github/milestones.jsonplaces each in one milestone, and the open-work table and the ordered list inROADMAP.mdare redrawn by their scripts. - Four more counts the documents state are derived from what they count, and written in digits. (#778) The MCP server's tools, from
TOOLS; the criterianpm run donechecks, fromCRITERIA; the browser flows, fromFLOWS; and the languages of the token ground truth, from the names of its prose samples.derived-counts.test.jsholds each against every page, as it already held commands, rules and samples, and refuses one spelled as a word. Writing them as digits found two that had drifted: the documents said 25 and 26 browser flows, and there are 28. The README's architecture diagram is held for its MCP line too. - The Action pin in
docs/setup.mdanddocs/running.mdmoves to 3.0.1 (9b0b245). The 3.0.1 release PR was prepared without the 3.0.0 tag fetched, soprepare-releasefound no newer tag and left the pin at 2.7.12; the docs-pin guard insecurity.test.jscaught the two releases of lag. - The Homebrew formula names
@trazum/cli3.0.1, with the SHA-25659eb2a96…079aof the tarball npm serves, checked againstsha256sumon that tarball.
Fixed#
- The CI tools' lockfiles move from
.github/tools/totools/. (#886) In their own Dependabot entry, their updates were still refused by GitHub, and those were the only directories under.github/. A test holds that Dependabot watches nothing there and that no package manifest lives there. - The CI tools no longer share a Dependabot entry and group with the root's npm updates. (#881) With all four directories in one group, GitHub refused the combined pull request, and the root's routine updates went with it. The three tools #874 pinned now have an entry and a group of their own, so a refusal there cannot hold back the root's.
trazum taskandtrazum filterspeak the reader's language. (#871) They were run before the language was read, so--localebroke them (trazum task --help --locale esprinted an error) andLANGdid nothing. Both now take--localeand the environment like every other command, and their help and errors, and the errors of the task analysis they run, are in Spanish when the reader asks for it.- A 404 under
/app,/adminor/csays the language it is in. (#868) For a reader in French, German or Portuguese it went out with French, German or Portuguese words and<html lang="en">, because the page read the site's five languages and the layout the application's two. The 404 page now reads the surface's list, as the layout does. trazum <command> --helpshows that command's usage and flags, as the README always said. (#865) It printed the whole help, 1,332 lines, for every command buttask. It now prints the command's usage line, its section of the help in the reader's language, and where the rest is;trazum --helpis still the whole help.- The Spanish help names every placeholder in Spanish, one word for each thing. (#864) It said
-o <file>two lines under-o <fichero>,--label <name>beside--label <nombre>, and called the same file<archivo>in some places and<fichero>in others. - The public site says which language it is in, in every language it speaks. (#862) A page in French, German or Portuguese went out declared English, a language chosen on the site never reached the page's
lang, and the titles around the English-only docs, changelog and roadmap were declared Spanish on the Spanish site, so a screen reader read them with the wrong language's rules. The Compare tab's examples also follow a language chosen in the app now, as the Optimise tab's already did. - The web app's guided tour and its phone menu are modal in fact, not only in name. (#860) The tour is a native dialog, so Tab no longer walks out onto the page under the dim and Escape gives focus back to the button that opened it; with the phone menu open, the page underneath is inert, so a screen reader no longer reads what the menu covers.
- The triage workflow runs again: its sparse checkout carries
scripts/changes.mjs. (#851) #848 madepr-readiness.mjsimport that module, and the triage jobs, which check out only the scripts they run, stopped atERR_MODULE_NOT_FOUNDbefore labelling anything.sparse-checkout.test.jsnow follows the imports of every script a sparse job runs and fails on a file its checkout leaves out. - The landing's story clears its stage as it ends, and its laptop reads as a thin laptop. (#841) At the end of the story the stage let go with the shut laptop, the receipt and the seven objects still on it, and the closing card stopped with its foot on the rule of the band after the story (1440x900, and in a screenshot of production). Now each thing leaves once the story is done with it: the receipt after its chapter, and in a new last chapter with no words the closing card, the objects and the shut laptop, while the band after the story comes up over the emptying stage, so the stage is never a window of nothing. What has left is hidden, so it is not reached or read out; a press or focus inside the story brings it back, and with reduced motion it is gone at once. The laptop is drawn as a thin aluminium laptop, with no vendor's logo: thin even bezels, a camera, rounded corners, dark keys with a half-height function row, speaker grilles and a wide trackpad. On a wide window each chapter's words had also drifted 16px further from their moment on the stage per chapter, 176px by the end, from a gap the column kept from its still layout; it has none now. The web suite holds the clearing, and the browser flows check that each thing is gone at the end.
- The landing's laptop is on from the first screen, and a tall window no longer leaves the stage half empty. (#839) A recording of the deployed landing at 1788x1176 showed three faults. The laptop's screen stayed blank black until the reader scrolled; the bill's prompt and its cursor are now drawn from the story's first frame, and the command stays untyped until its chapter types it. The pinned stage kept the laptop and the objects at the top of the window and left the floor under them empty; it now shares what the window leaves over above the laptop and under the objects. The seven objects came up strung down a diagonal, each taking 30% of their beat; each now takes 90%, so the row arrives nearly as one. The web suite holds the first frame: planting the blank screen back fails it.
- Three low-severity findings from a security audit are closed. (#818) None is a demonstrated loss of a secret or of code execution.
trazum serveandtrazum gatewayno longer answer a web page that rebinds its own hostname to 127.0.0.1. Both bound to loopback and read neitherHostnorContent-Type, so a page could sendtext/plain(no preflight) toPOST /costand read the measured spend, the budget and the policy verdicts, and the gateway's 402 body carried the standing. A request whoseHostis notlocalhost,127.0.0.1or[::1]on the bound port is now a403, and a POST that is notapplication/jsona415(after routing, so an unknown path is still a404). A client that posted withoutcontent-type: application/jsonnow gets415:curl -dneeds-H 'content-type: application/json', whichdocs/commands.mdnow shows. Provider SDKs and the documented clients already sent it. The checks are inpackages/cli/src/loopback-guard.ts; a Unix socket skips theHostcheck.- The web app's operator endpoint is no longer a free choice of model. With
TRAZUM_LLM_BASE_URLset to a server that checks no key (Ollama),llm: { apiKey: "x", model: "any-model" }ran any model the operator had pulled. On that endpoint a caller'sllm.modelis now used only if the operator listed it in the newTRAZUM_ALLOWED_LLM_MODELS; otherwiseTRAZUM_LLM_MODELruns. A key still checks nothing on such a server, which SECURITY.md now says. The route's comment, which said the endpoint costs the operator nothing, is corrected. mirror-to-n0.ymldeclarespermissions: contents: readand checks out withpersist-credentials: false. It pushes to N0 with its own secret in the URL, so the GitHub token was unused and sat in.git/config.security.test.jsnow fails on any workflow without a top-levelpermissions:.- Tests.
loopback-guard.test.jssends the rebound request overnode:http(attackerHost,Origin,text/plain) to both servers;api.test.mjsnames a model on a keyless operator endpoint;security.test.jsreads the workflows. Planted and put back: the Host check removed from each server, the content-type check removed from each server, the caller's model honoured again, thepermissions:block removed,persist-credentialsset totrue; each failed the test named for it.
- The Homebrew formula waits until npm's packages are a day old. (#816) Homebrew installs with
npm --min-release-age=1, and on 2026-11-19brew install davmunrey/trazum/trazumfailed on a Mac withETARGET: No matching version found for @trazum/core@3.0.1 with a date before ..., because the tap had moved to a version npm had published seven hours earlier.scripts/homebrew-formula.mjsnow reads the publish time of the CLI and of every@trazum/dependency it pins, and refuses to write the formula before the youngest is a day old, naming the moment it may.RELEASES.mdsays so in the Homebrew step. - A line of backticks no longer takes quadratic time to optimise. (#814) The three code-fence patterns in
structure.tsopened with`{3,}, and on a line with no newline after it the engine gave the run back one backtick at a time: 11.6 s at 100,000 backticks, and one anonymousPOST /api/optimizeat the 400,000-character cap held the web app for 187 s. The opening run is now atomic (a lookahead and a backreference), so it is never given back, and the same 200,000-backtick input takes well under a second.security.test.jsgains a backtick run and a tilde run with no newline; with the old pattern planted back, the backtick fixture took 48 s and failed. - A release's MCP registry check reads every page. (#806) The registry's search answers 30 entries a page and names the next one in
metadata.nextCursor. The check read only the first page, so 3.0.0, the thirtieth version, passed, and 3.0.1, the thirty-first, failed a minute after it had published correctly and was listed with its npm package and its.mcpb. The check now follows the cursor until there is none.security.test.jsfails when the cursor is removed from the step. - A web session no longer starts with
package-lock.jsonchanged. The session-start hook installed withnpm install, which rewrote the lockfile in the layout of the container's npm; npm 10.9 dropped 48libclines a newer npm had written. It now runsnpm ci, which installs the lockfile as it is. (#788)
Security#
- CodeQL, the dependency review and Scorecard run their latest releases. (#884)
github/codeql-action4.39.4,actions/dependency-review-action5.0.1 andossf/scorecard-action2.6.0, each pinned by its tag's commit. A result the Scorecard API refuses still fails the workflow, as before 2.6.0, and that workflow can no longer read the Actions cache. - The files on a release are attested: who built them, from which commit. (#875) The
.vsix, the.mcpb, the pricing dataset, the bill of materials andSHA256SUMScarry one build-provenance attestation, signed by the release workflow and attached astrazum-v<version>.sigstore.json;gh attestation verifychecks a file against it (RELEASES.md, "Checking them").