Skip to content

Releases

Inventari 0.13.0

Choose a tag to compare

@jureqq jureqq released this 23 Nov 22:08

The second release under the two-week rhythm. Most of it is the production
module, which now follows a small producer's batch from the plan to the
label and the recall; the rest makes Inventari something an AI agent can
work with — a module package a coding agent can be handed, and an MCP server
an agent can read and correct the stock through.

For people using it, a production run can take several days — started,
filled in portions and finished, for wine, cheese, beer or anything else that
matures — and every run files its output under a dated batch with a
best-before, labels to print, a one-page batch record and a trace for a
recall. A BOM writes the product's ingredient list, allergens and nutrition
for its label, and a formula costs out on the day it is written, labour from
its steps' minutes included. A new Plan screen lays the planned runs out
by day, lists what they need and orders what is missing. Value movement
states what the stock was worth over a period, a delivery cost that reached
no product has a place of its own, and closing a month says what it would
leave behind. Brazilian Portuguese is a sixth maintained language, and every
page names its browser tab. Many of the fixes come from a pass that walked
each flow and checked that what a screen reported actually happened: a day
on Stock on a date is the organization's day, a moved location keeps its
history, corrections and returns keep to what the shelf holds, and screens
stop offering an account the buttons its server would refuse.

For instance administrators, the server's logs go to the host's journal
and outlive a deploy, with a nightly encrypted copy that leaves the host
beside the backups; finished rows — published events, old mail, read
notifications — are deleted on a schedule the installation sets; and a site
of your own can be served by the same Caddy beside the application. The
offsite copy's BACKUP_RCLONE_REMOTE now names the parent directory: the list
of what to do on the way from 0.12.0 is below.

For module authors, module new-community writes an AGENTS.md that
hands an AI coding agent the module rules, and MODULE_QUICKSTART.md says how
to build a module with one and check what it built. A module can close what
it opened at shutdown, make new-module writes the one file other modules
may import from, and the module SDK and core_api gain what this release's
modules needed: reading an uploaded sheet, a package's effective expiry, an
expiry window, the value of work in progress and a cost added to a receipt
after it arrived.

Upgrading from 0.12.0

Update as DEPLOYMENT.md's Updating says. Six changes break an
installation, a client, a module or a script, and each says what the
affected party must do:

Instance administrators

  • The offsite copy's destination. BACKUP_RCLONE_REMOTE names the parent
    of the offsite copy, not the directory the backups land in: the service
    appends backups/, and the server logs go to logs/ beside it. An
    installation that has the copy on and sets
    <remote>:<bucket>/<path>/backups sets <remote>:<bucket>/<path>, which
    writes to the same place; one whose backups sit directly at
    <remote>:<bucket>/<path> sets <remote>:<bucket>. Until it does, the next
    sync writes to a new backups/ below the old value and leaves the files
    already there unsynced — nothing is deleted. DEPLOYMENT.md, Upgrading with
    the copy already on
    , has the steps.

The REST API and its clients

  • Cook a batch for stock. POST /maker/recipes/from-recipe without
    batch_yield_qty, for an output kept in a weight or volume unit, answers
    400 BRIDGE_YIELD_REQUIRED instead of storing the recipe's servings as the
    yield (12 servings became a 12 kg yield). A client sends the amount one
    batch makes; a product counted in pieces still takes the servings. An
    ingredient line whose unit the ingredient's stock cannot be read in is
    refused with 400 BOM_LINE_UNIT_NOT_CONVERTIBLE.
  • Process steps. A production formula's process_steps are objects,
    {text, minutes}, not bare sentences. A reader of GET /maker/recipes/{id}
    or of the catalogue reads step.text; a writer may still send plain
    strings, which are stored as steps with no duration. Steps stored by 0.12.0
    are rewritten by the module's upgrade, so nothing is entered again.
  • The cost breakdown. GET /api/v1/maker/breakdown/{template_id} answers
    the whole batch cost — ingredients, fixed costs and labour — in
    total_cost, and maker_api.compute_unit_cost_async the whole cost per
    unit; both answered the ingredients alone. A client or a module that wanted
    the ingredients' part reads the new ingredients_cost, and each entry's
    percentage_of_total is now a share of the whole.
  • The ingredient defaults seed. POST /api/v1/recipes/ingredient-defaults/seed
    is gone: it seeded the defaults of every organization on the installation,
    and any member of one organization could call it. A script that called it
    stops calling it; the recipes module does the same work once at start-up.
  • Six routes no screen called, each superseded by one that stays. A script
    that used one switches to its replacement (Removed lists them).

Not marked Breaking, but worth a look before you update:

  • The production stack's containers write to the host's journal instead of
    Docker's per-container log, which a recreate deleted. Make the journal
    persistent and give it a retention and a size cap as DEPLOYMENT.md,
    Keeping the server's logs, says — a journal kept only in memory is gone
    on a reboot — set LOG_RETENTION_DAYS in .env to the same period, which
    the privacy page states, and put scripts/export-logs.sh in root's cron for
    the daily encrypted copy.
  • Once a day the backend deletes finished rows: outbox events published more
    than 7 days ago, sent and failed mail queued more than 120 days ago, read
    notifications older than 90 days and unread ones older than a year. An
    installation that keeps them longer sets EVENT_OUTBOX_RETENTION_DAYS,
    EMAIL_JOB_RETENTION_DAYS, NOTIFICATION_READ_RETENTION_DAYS or
    NOTIFICATION_UNREAD_RETENTION_DAYS in .env before it updates. The first
    run on an older instance works through the backlog in batches.
  • The upgrade rewrites ai_usage_logs as exact numbers and blocks that table
    while it does, so the migration step takes longer on an installation with a
    long AI history. A stored cost that was not a usable number becomes
    unknown.
  • An ingredient that has a BOM of its own is taken from its own stock first,
    on BOM lines saved before the upgrade too. Mark a line Always make fresh
    to keep making it every time.
  • A BOM line whose unit cannot be read in the ingredient's stock unit — 300 g
    of a product kept in pieces — is refused when it is saved, and a production
    run refuses one stored earlier. The Composition tab marks such a line as a
    unit mismatch until a unit is set.
  • A completed or archived shopping list is no longer written to: adding to it
    from a recipe or a meal plan is refused until it is reactivated.
  • A picture of more than 60 million pixels is refused as unreadable, as an
    item's or a recipe's cover and by Vision AI.
  • A print layout whose template code does not parse or render is refused when
    it is saved; one stored earlier prints with the built-in layout until it is
    corrected or reset.
  • A location that equipment is or ever was checked out to can no longer be
    deleted; archive it instead.

Added

For people using it

  • A production run can be started, filled in portions and finished on
    different days, for wine, cheese, beer, ferments and anything else that
    matures. Start run takes the ingredients off the records on the day you
    name and leaves the run In progress (in the list, on its page and in To
    do); Add portion puts part of the output on the shelf with its own day and
    batch; the BOM's process steps are ticked with the day each was done; Finish
    run
    closes it on a later day at the quantity the whole run made, and its
    unit cost divides what the start took by what came out. Cancelling a run in
    progress gives the ingredients back to the batches they came from. A run
    filled in portions can end up with several batches: its page and its batch
    record name them all, each has its own labels to print, and a hold or a
    release acts on every one. As when a run is completed in one step, Start
    run
    lets you choose which batch of each ingredient the run takes, and a
    portion and the finish take the best-before you give them (the day made plus
    the product's shelf life when you leave it empty). What a started run took is counted as work in progress in
    the stock value and in the as-of valuation (work_in_progress_value), so the
    warehouse does not look poorer between start and finish. New endpoints: POST /maker/production/orders/{id}/start, /portions and /finish, and PUT .../steps/{index}; modules that report a stock value can register a reader
    with register_work_in_progress_provider. For module authors, the valuation
    API also gains add_value_to_layer_async (a cost that arrives after the
    receipt, once per layer and dated from the day it is added, so an as-of
    report about an earlier instant reads what it did then), a record_receipt_async
    that answers the layer it opened, and unpriced_stays_unknown for a caller
    that will state the cost itself later instead of borrowing the older stock's
    rate.
  • A production run files its output under a dated batch. A run nobody named a
    batch for names its own from its day and a counter, unique among the
    product's batches. The batch carries the day the run was made and a
    best-before of that day plus the product's shelf life — set in days on the
    card of a product that has a BOM — which the person closing the run may
    change; the stock it puts away carries the same date, so the ...
Read more

Inventari 0.12.0

Choose a tag to compare

@jureqq jureqq released this 10 Nov 20:34

The first release after the public 0.11.0, and the first under a fixed rhythm:
a minor release every two weeks, on a Monday. It makes what 0.11.0 shipped
safer to run and easier to build on, rather than adding a new area.

For people using it, the shopping lists and the production module are
the ones that changed most. A shopping list now tops a line up when a recipe,
a meal plan or a production run needs more of it, instead of treating the line
as covered whatever its quantity, and it warns when another open list asks for
the same goods. Stock takes, returns, receiving and issuing, approvals and the
equipment register lost the rough edges a pass over every screen found, on a
phone included: nothing records a count of zero for an empty box any more, a
return can be duplicated, a saved-twice receipt leaves one draft, and a
picture replaced on a product shows at once. Recently visited fills again,
and every refusal, date and number reads in the reader's language and decimal
mark.

For instance administrators, an account can be created and erased from
the command line (manage.py user create-admin --lang, manage.py user erase), the API key prefix and the default scopes of a new key give away and
grant less, the notification socket no longer writes its token into access
logs, an invitation answers every refusal with one sentence, and a few
operations steps (the update and restore commands, the off-host backup copy,
the PgBouncer connection count) are corrected. The list of what to do on the
way from 0.11.0 is below.

For module authors, the module rules are stricter where a mistake used to
pass in silence — a table declared on Core's base, a manifest version that
cannot be compared, a name taken by another module's pick-order strategy — and
the module SDK gains the helpers the guides asked authors to write
themselves: paging by cursor, attachment types, a quantity step, recently
visited records, a status badge permission and more.

Upgrading from 0.11.0

Update as DEPLOYMENT.md's Updating says; its migration step also renames
locations that share a name under one parent (see Fixed). Fourteen changes break a client, a script or a module, and each says
what the affected party must do:

The REST API and its clients

  • Authentication errors. A request with no credential at all to an
    authenticated route answers with the coded error object, {"detail": {"code": "NOT_AUTHENTICATED", "message": …, "lang": …}}, in the reader's
    language, not the bare English {"detail": "Not authenticated"}. A client
    that reads an error body in the documented order (the object, then the list,
    then the string) needs no change; one that compared the string reads code
    instead. The status and the WWW-Authenticate: Bearer header are unchanged.
  • Invitation refusals. The refusal code ORGANIZATION_INVITE_WRONG_EMAIL
    is no longer sent: an invitation that is used with another address, or is
    expired, used, withdrawn or unknown, answers ORGANIZATION_INVITE_INVALID
    with one sentence that says what to try. A client that branched on the old
    code treats the two alike.
  • Invitation codes need an address. POST /organizations/my/invitation-code
    requires email, the address the invitation is for, and answers 422 without
    it. A script that issued bearer codes names the invitee instead. Codes
    already issued without an address keep working until they expire.
  • Product search hits. The document product search returns added_date
    (the day the record was added, a date and not a timestamp) instead of
    created_at on a stock hit; a client that read created_at reads
    added_date. A hit that totals several interchangeable records says
    merged: true.
  • Approval notes. The approve, reject and request-approval routes of
    documents and purchase orders read the note from the JSON body as
    {"notes": "..."} and no longer read a notes query parameter. A client
    that still sends one moves it to the body, or the note is not recorded.
  • Notification socket. /api/v1/ws/notifications takes the access token
    as a subprotocol, not as a token query parameter: the client offers
    bearer and then the token (Sec-WebSocket-Protocol: bearer, <token>) and
    the socket answers with bearer. A client that still sends the token in
    the address is refused with close code 4001.
  • Recipe cost lines. A production recipe's fixed cost line takes one of
    LABOR, PACKAGING, OVERHEAD or OTHER; POST /maker/recipes/{id}/cost-lines and its PATCH answer 422 for any other
    kind. A client that sent another kind sends OTHER and puts what it is in
    the label.
  • Recipe picking quantities. The recipe picking answers send
    quantity_consumed, item_remaining_quantity,
    ingredient_remaining_quantity (a scan) and restored_quantity (an undo)
    as strings, as every other stock quantity in the API does. A client that
    read them as numbers parses them as decimals. The
    recipe.picking_completed event keeps numbers, as every event payload does.
  • Shopping suggestions route removed. GET /api/v1/stats/shopping-suggestions
    answered with placeholder figures and no screen used it. A client reads
    GET /api/v1/shopping-lists/suggestions, which computes them from the stock
    and its history.

Module authors

  • CoreModelBase. A community module can no longer declare its tables on
    CoreModelBase from the module SDK: module install, module validate
    and module discovery refuse it, however the base is reached. A table
    declared on it lands in Core's metadata, where Core's autogenerate proposes
    it as a core migration. Declare the tables on ModuleModelBase and create
    them in the module's own migrations (MODULES_GUIDE.md, "Database
    Migrations").
  • Validation rules. The core forms a module can contribute validation
    rules to are item_create and item_edit. storage_create and
    storage_edit were accepted by the type but no location form ever ran a
    rule; a module that declares one removes it.
  • Launcher badge. A module's useStatusBadge hands over labelKey, an
    i18n key in full form, instead of label; the tile translates it with
    { count }, so a plural follows the number. A module that returned
    { count, label: t("...") } returns { count, labelKey: "<module>:..." }.
  • Manifest version. A module manifest's version is three numbers and
    nothing after them (MAJOR.MINOR.PATCH). 0.3.0-beta and 1.0.0.5
    validated before and could not be compared by the upgrade check; such a
    manifest is refused and its module numbers itself as three parts.
  • Pick-order strategy names. A pick-order strategy name belongs to the
    module that registered it first. warehouse_api.register_pick_order_strategy
    raises ContractViolationError for a name another module holds, where it
    used to replace that module's strategy, the default walk included, in
    silence. A module that reused a name registers its own.

Not marked Breaking, but worth a look before you update:

  • A new API key no longer starts with the permission to read the
    organization's details and member list. A script that creates a key through
    POST /api-keys without naming a permission gets a key that answers 403 on
    /organizations/my/members; name org:read to keep the old behaviour.
  • An API key's shown prefix is inv_live_ and six characters, where it was
    eleven, on the API keys page and in the audit log. Existing keys are
    shortened on upgrade and keep working. Audit entries already written keep
    the longer prefix, which still begins with the short one, so a script
    comparing prefixes compares the start.
  • The backend's memory limit defaults to 2g instead of 1536m, so the four
    workers it starts by default fit the size DEPLOYMENT.md gives one. An
    installation that sets BACKEND_MEM_LIMIT in .env keeps its value.
  • An installation that enabled the Open Food Facts database or the off-host
    backup copy with --profile on its commands adds the profiles to
    COMPOSE_PROFILES in .env before its next update (see Fixed).
  • GET /items/archived answers next_cursor and takes cursor; offset
    still answers and is deprecated.
  • An item edit or a new record that sends a unit weight for a product from the
    shared catalogue is refused with UNIT_WEIGHT_OF_SHARED_PRODUCT; sending the
    weight the product already records is not a change.
  • Equipment attachments and product files take one list of file types: the
    old binary Word format (.doc) is refused by both, and Equipment takes
    .zip.
  • Webhook endpoints subscribed to item.transferred, item.deactivated or
    item.status_changed show them as withdrawn; nothing ever sent them.

Added

For people using it

  • Shopping lists top up a line that is already on them. A recipe added to a
    list that carries its ingredient raises the line by what that recipe needs;
    a recipe the line was made for raises it by what it now needs beyond that
    (more servings, or less of the goods left on the shelf); "Update list" on a
    meal plan raises a line when the plan needs more; and a production run's
    shortage raises the listed line when the run needs more. A line already
    ticked off keeps its quantity and the rest becomes a new line; a line is
    never lowered. A line of the same product in another unit counts as its
    amount in the unit asked for, so 500 g of plums already listed leaves 3.5 kg
    of a 4 kg shortage to buy (it used to count as 500 kg), and a line in a unit
    that does not convert covers nothing. Recipes added together subtract the
    stock on the shelf from what they need between them, not each against the
    whole shelf, and a "From recipes" sheet that adds nothing because the list
    already asks for all of it says so.
  • When a recipe's "Add missing", a meal plan's "Generate Shopping List" or a
    list's "From recipes" writes goods that another open s...
Read more

v0.11.0

v0.11.0 Pre-release
Pre-release

Choose a tag to compare

@jureqq jureqq released this 02 Nov 22:26

The first public release, and the one that makes the warehouse documents a
light warehouse management system that an ordinary phone can run. Deliveries
are received and orders picked with the phone's camera; several dispatches are
picked in one walk along numbered locations; picked goods are packed into
numbered packages, each with a slip and a label; and a dispatch leaves with
its carrier and tracking number recorded, linked to the carrier's tracking
page and announced by a webhook. The user guide walks the whole path in "From
pick to parcel". Left out on purpose: no carrier is contacted (no carrier
labels, rates or status updates), dispatches are not grouped into waves, and a
return is a document rather than a process.

This is an alpha release. The REST API as a whole is experimental in
0.11: its routes and bodies still follow the screens they serve. Three parts
of it are stable from 0.11.0, with a guard each. Every collection is a
page
: {"items", "total", "limit", "offset", "has_more"}, with limit and
offset query parameters. Each list states its own default and ceiling in
the API reference: most take 50 rows by default and 200 at most, the product
list 100 and 1000. The
feeds that page by cursor (item history, webhook deliveries, the stock
movement ledger, the audit journal) answer with next_cursor, and the 27
routes that are not a collection of rows — a fixed vocabulary, the six expiry
buckets, the newest-N activity feed — stay plain arrays and say why beside the
route in the code. A list that grows with the organization — the products, the
stock, the movement journal — counts at most ten thousand rows and says so in
total_capped; the documents and purchase-order lists carry each document's
lines counted and summed, and the document's own address carries the lines.
A business refusal answers with its own machine-readable code, the
upper-cased key of its sentence in the message catalogue, and the translated
sentence in message; the codes are listed in
docs/api/ERRORS.md. API keys have
their own header and permissions. The contract DTOs, the stable core_api
namespaces, the module manifest, the webhook envelope and the print protocol
are the other surfaces to build on;
docs/subsystems/CONTRACTS_STABILITY.md
lists every public surface and the promise its class makes.

Added

Stock, at home, in the office or in a warehouse

  • A tree of locations of any depth, shown as a path (Home › Garage › Shelf A), with products allowed on any level. Moving a location that holds
    stock asks whether it was carried somewhere else or the layout is only being
    corrected, and a physical move is recorded for everything inside it.
  • Products and their records: quantities in the product's own unit,
    batches with a state (active, quarantined, recalled…), expiry and freeze
    dates, reservations, a minimum quantity with a running-low rule, and custom
    fields — set on a location, a rack or a whole warehouse and asked of every
    product placed below it. Products import from and export to a spreadsheet; a
    sheet of more than 200 rows is imported as a job the import screen follows
    (POST /items/import answers 202, the job is read at
    GET /items/import/jobs/{id}). The export of a large catalogue is written
    row by row, so it does not grow the server, and continues on a second sheet
    past a million rows. An opened package can have its own use-by date; its
    expiry is the earlier of that date and the batch's expiry.
  • Which stock leaves first is set per product — FIFO, or FEFO by earliest
    expiry — and a category gives the products created under it their starting
    setting.
  • A journal of every movement, and the stock as it stood on any past date.
  • Stock takes: count a location from a phone or a desk, blind if the
    counter should not see what is expected, shelf by shelf with the phone's
    camera; Close location counts what nobody found as zero. A count that
    changed the stock writes one numbered adjustment, and a setting puts every
    location in To do once it has gone a chosen number of days uncounted.
  • Labels: QR codes for products and locations from a label pool, an
    internal EAN-13 for a product without a manufacturer's code, product labels
    with the code as a barcode and the lot and expiry date, and shelf labels in
    Code 128, which a phone's camera reads as well as a 1D scanner. Labels
    download as images or print through the print agent (a Brother P710BT, a
    CUPS queue or any command).
  • Scanning: the camera of an ordinary phone, on every scanning screen — no
    scanner to buy. A USB or Bluetooth scanner that types like a keyboard is
    supported on the same screens, but has not yet been tried with real
    hardware. A product scan says where each record stands; a location label
    says what is on that shelf and how much.

Warehouse

  • A start screen made of the day's actions — Receive goods, Issue goods,
    Move and Count — each one screen on a desk and on a phone. The numbered
    document the office needs is written in the background, and every posting
    answers with that document, prints it and offers Undo.
  • Numbered documents in your own vocabulary: eight neutral codes (IN,
    OUT, INT, INTERNAL_IN, INTERNAL_OUT, CORRECTION, ADJUSTMENT,
    SCRAP) named by the profile — PZ, WZ, MM, PW, RW for "PL Magazyn"; GRN,
    DN, ST for "UK Warehouse", WE, WA, UML for "DE Lager", BR, BL, BT for
    "FR Entrepôt", AE, AS, TR for "ES Almacén". A draft posts in one action; a posted receipt,
    issue, move or write-off is undone in one press where nothing has used the
    goods since. A write-off records why (damaged, expired, quality, other —
    required wherever it is posted from) and what it cost, from the cost layers
    it drew, and its printout says both (the cost is left off where the layers
    could not value the goods). A document register, closed
    periods, bulk confirm and one PDF for a selection; the register says when
    its totals include scrap and how many documents were posted without a
    price. A printout follows the organization's country — the Polish PZ form
    for Poland, the standard layout elsewhere — and the language it is asked in.
  • Receiving: one sheet that asks where the goods come from — a
    supplier, a customer's return or an internal receipt — loads what the
    supplier's waiting purchase order still expects, takes rows pasted from a
    spreadsheet and posts with one press; on a phone, one card per item with
    large buttons. Each line names
    the shelf the putaway rules chose and why. A location can receive in two
    steps — into a receiving area, then put away as tasks in To do. More than
    an order expects is refused past its tolerance, except for someone allowed
    to receive over it, who is first asked about every surplus the delivery
    brings; a warehouse setting caps the surplus nobody may pass. A line says
    how much of what arrived is damaged or waiting for a quality decision and
    why, on the sheet and on the phone's card: that part goes to quarantine, and
    the order counts the whole delivery as received.
  • Putaway and occupancy: putaway rules with the fill of each of their
    shelves, product limits per shelf, and one screen showing how full every
    location is, as a tree or a heat map. Putting goods away somewhere other
    than the suggestion asks whether that place is now the product's home — an
    ordinary putaway rule written from the floor — except in a warehouse marked
    as storing wherever there is room.
  • Replenishment from reserve: a location marked as reserve fills the pick
    locations of its warehouse before anything is bought; only what reserve
    cannot cover becomes a draft purchase order.
  • Picking: with the phone's camera, several dispatches in one session
    along each location's Walk order number, with progress per dispatch. A
    dispatch may name a zone and take from the shelves under it, splitting each
    line by the product's removal order. Confirm the location by scan makes
    picking, receiving and put-away ask for the shelf's label first. A session
    can be handed to a colleague with its scans, and the audit log says who
    took it over, which scans a closed-and-discarded session dropped, and how
    much of a receipt was held back in quarantine and under which reason.
    Before a walk starts, the dispatches that stock cannot cover are listed
    with what was ordered and what is available, and the person starts without
    them or anyway; a pick finishes short, and a skipped pick or receipt line
    is settled, only after someone chose the reason, which decides whether the
    rest is owed on a backorder. Without a scanner a
    dispatch or a session prints a Pick list on paper: the lines in the
    same walk order, the location code first, and a barcode of the document.
  • Packing and shipping: picked goods go into numbered packages
    (OUT/2026/0042-P1) with a weight, a packing-slip PDF and a package label,
    downloaded or sent to the label printer; completing a dispatch records its
    carrier and tracking number, typed or read from the parcel label with the
    phone's camera, linked to the tracking page of InPost, DHL, DPD, GLS, Poczta
    Polska, UPS, FedEx or a link template of the organization's own.
  • Start, Board and History: the Start screen's To do lists what needs
    doing — receipts and dispatches, deliveries ordered but not received,
    planned production, counts
    that fell due, put-away tasks, documents waiting for a decision and your own
    tasks — each as one sentence with the button that does it, given to a person
    or taken. A leftover from a short dispatch says whether the stock for it has
    arrived, and the ones that can be issued come first. The Board shows the same
    work in three columns with this week's dock-to-stock time; History tells every completed movement ...
Read more