番付the record of work

Every piece, numbered.

A carpenter inks a number onto each timber so it returns to its exact place in the frame. Same here: one entry per release, breaking changes named rather than buried, and the pieces still on the bench at the bottom of the sheet.

  1. 0.2.0

    A harder API surface

    The fixes a first production audit asks for. They are breaking, so the whole line moves together — and the ERP modules go major, because an out-of-range module is a hard boot error rather than a warning.

    publishedframework 0.2.0 · modules 2.0.0 · kigumi-cli 0.2.0

    • breakingThe catalog — /openapi.json, /api/models and /api/:name/view — is no longer anonymous. It follows the same ACLs as the data it describes: a request with no token runs as the guest and sees only what a public Read ACL exposes, credentials that do not verify get a 401, and a model you cannot read answers 404 exactly like one that does not exist. Note the shape of this: a tokenless request is not rejected, it succeeds as the guest — a client that keys “please log in” off a 401 will show an empty screen instead.
    • breakingServeOptions is #[non_exhaustive]. Build it with ServeOptions::new(jwt_secret) and assign the fields you need, so the next field the framework adds is a recompile rather than a compile error in every adopter binary in existence.
    • breakingOpenAPI paths are keyed on the model name (/api/sale.order), not the table. The old spec published paths that 404 against the very server it describes — every model with a dotted name, which is all of them.
    • breakingAn account.tax whose amount_type is not percent, fixed or division is now a 400. It used to fall through to the percentage branch and compute a wrong number in silence, on a money path.
    • breakingA duplicate action, form view, report, service or ledger report fails the boot. These lookups are all first-match over the registry, so a collision used to resolve by crate link order — the same source tree could change behavior after an unrelated dependency bump.
    • breakingThe five ERP modules require framework >=0.2, <0.3 and are published as 2.0.0. Since check_compat makes an out-of-range module refuse to boot, a minor bump would have let Cargo pick a version that cannot run.
    • added[server].cors_allowed_origins, and the same field on ServeOptions for adopter binaries. Empty by default, so nothing changes for anyone already behind a reverse proxy.
    • addedA daily gc_queues job bounds the event outbox, webhook deliveries, background jobs and refresh tokens. It never removes an outbox row that still has a delivery waiting to be retried — those rows cascade, and a retry legitimately waits days.
    • fixeddelete_secured is one transaction: the row, its polymorphic attachment and thread cleanups, and the delete event now commit together or not at all. A failure after the DELETE used to leave the record gone with its attachments orphaned.
    • fixedThe “tolerate an unmigrated table” path uses a savepoint. Swallowing the error inside a transaction returned Ok on a transaction Postgres had already aborted, and the caller then failed on its next statement with something unrelated.
  2. 0.1.1

    Release hygiene

    The published crates had fallen fourteen commits behind the repository, so cargo install kigumi-cli was building a version without any of the summer's work. This is that gap, closed — and the publish tooling that let it open, fixed.

    publishedframework 0.1.1 · kigumi-cli 0.1.2 · modules unchanged at 1.0.0

    • addedEverything between the launch and here reaches crates.io: the integration test kit, runtime custom fields merged into the AI surface, long-lived API keys, MCP over HTTP, an S3 blob store, structured tracing, per-locale UI contracts, the public portal primitive and SSO over OpenID Connect.
    • changedAuth can answer 503 under load: the password hash is shed rather than queued, so a verification flood degrades instead of exhausting the pool.
    • changedLogin is case-insensitive. Accounts that differ only by case now collide — check for them before upgrading.
    • changedThe guest identity on auth: false routes carries the public group. If you already had a group by that name, it now means something to the framework.
    • fixedDocumentation that described things the code does not do: two environment variables that were read but never wired to anything, a web README still calling the admin a mockup on in-memory data, and an uninstall docstring claiming a restart was needed when the handler refreshes live.
  3. 0.1.0

    First cut

    The frame goes up. Eighteen crates published together: the framework, five ERP modules, and the tooling around them.

    publishedframework 0.1.0 · modules 1.0.0 · kigumi-cli 0.1.1

    • addedThe metamodel and its projections: one #[model] generates the Postgres schema, the REST API, the OpenAPI 3.1 document, the JSON UI contract and the security policy — no second copy to keep aligned by hand.
    • addedSecurity as data: ACLs, record rules, field groups and multi-company scope, enforced in the data layer rather than in each handler, so a new endpoint cannot forget them.
    • addedThe register_*! seams — actions, computes, constraints, services, jobs, routes, reports, seeds, sequences and versioned migrations — each verified at build time.
    • addedLive record subscriptions over SSE, a job queue on Postgres and signed outbound webhooks. Postgres is the queue; there is no broker to run.
    • addedkigumi new scaffolds an agent-ready workspace, and kigumi-mcp puts the same catalog in front of an AI agent over the Model Context Protocol, with the ACLs enforced on every tool call.

木取りthe cutting plan

Still to be cut.

The same plan the landing page carries, kept in one place so the two can never disagree.

on the bench — next releases

  • 01Admin panel out of the boxThe contract-driven admin embedded in the server binary: scaffold, migrate, serve — and open a working UI. Menus and the last per-model knowledge move into the server contract, where the rest already lives.
  • 02OpenTelemetry exportAn opt-in otel feature: OTLP traces end-to-end — from the HTTP span through the data layer to triggers and jobs — then metrics, to the same collector. The tracing substrate already ships; this is its export layer.
  • 03Per-tax accounting mappingRepartition lines route each tax to its own ledger account, with sign and factor — withholding and reverse charge become pure configuration. No national rule ever enters the code.
  • 04Guardrails before 1.0Public-surface checks in CI so a release cannot break the contract by accident, formatting and lint gates, and tests on the runtime every scaffolded app boots through. The discipline has to exist before the stability promise does.

seasoning — on the horizon

  • 01Framework 1.0 + LTSA stability contract on the metamodel and the register_*! seams, enforced by semver checks in CI — a release cannot break the surface silently. Then an LTS branch per major.
  • 02Groups as first-class dataReal membership records and implied groups in the database — role management on the same secured CRUD, contract and audit trail as any other model.
  • 03Operations toolingkigumi db dump / restore / verify and blob garbage collection — the backup contract is already designed and adversarially reviewed; it becomes code.
  • 04E-invoicing localizationsPeppol and the Italian SDI as optional modules on the existing seams — jobs, signed webhooks, the outbox. The frame stays country-free; countries are pieces you slot on.

no dates on the sheet — a piece ships when the joint fits