Repository navigation
Project Status
What is built, what is proven, and what is deliberately unfinished. Status here is recorded as works / scaffolded / stubbed, never as a checkbox — because checkbox inflation is the mechanism by which a team stops noticing the core does not work.
This page will go stale. The live status is
HANDOFF.md— test counts, what landed last, what is next, each verified against the code. Open work is in issues. Where this page and the code disagree, the code is right.
As of 2026-08-28: 1 291 backend tests collected, 1 285 passed, 6 skipped — the Bambu hardware cases that need a printer plugged in — with all six backend gates green. The frontend's 218 tests and audit gates were last verified 2026-08-27.
- The pricing engine and the quote/preview API
- STL analysis and the model catalogue with staff curation
- Inventory with AMS-slot locations
- The storefront configurator, checkout with delivery and payment, order tracking with the nine-stage pipeline and queue position
- The customer account — profile, loyalty ladder, addresses, uploads, receipts, sessions
- The farm console
- The journal with an RSS feed
- Fleet, production, scheduling and the virtual farm harness
- The settings screen, with write-only encrypted secrets and an audited «было · стало» per save
- One-image containers with a release gate that runs them
The system runs on a real host. A farm exists in production mode on Ubuntu, and getting it there found nine defects that all six gates and 1 174 tests had passed over — four of them in units committed hours earlier the same day. Those are catalogued in Troubleshooting, because each is a shape worth recognising.
Both need hardware or an account this repository cannot supply.
tools/bambu_spike.py proved the protocol against a real X2D, in standalone code
importing nothing from Printorian — telemetry and control proven, the FTPS write still
pending storage in the test machine. Phase 4's exit criterion was demonstrated with the
mock driver.
The product's own path between those two is the largest unproven assumption in the system, and the one that could still say the design is wrong.
What exists so that proving it is one command rather than a project:
-
tests/contract/test_bambu_hardware.py— the same contract the mock driver is held to, run against a real machine. Credentials come from a git-ignoredprinters.local.toml; without it every test skips. Read-only by default; the half that physically prints is behind a second opt-in, because a suite that can start a print by accident is one nobody runs. -
docs/RUNBOOK-FIRST-PRINT.md— the procedure in order, with what each failure means.
This needs a person and a printer. Nothing further can be verified without one.
Payments run against the mock and manual providers. The YooKassa adapter exists and
its unit tests prove the request it builds matches the documented shape, but it has never
been exercised against the gateway with live merchant credentials. T-Pay can only be
completed in a live store. 54-ФЗ receipt handling is built and unit-tested but not
confirmed against the fiscal operator.
| Concern | State |
|---|---|
| Version control, branch protection |
Done — main protected, three required checks, linear history |
| CI, three jobs including one that runs the images | Done |
| Container images, scanned, SBOM'd, cosign-signed | Done |
| The farm host itself | Running, and not reproducible — the systemd units are files; the Ansible role that installs them does not exist (#15) |
| Backups, scheduled and drilled | Done locally — 03:00 daily, drill Sundays |
| Off-site backup | Nothing. Every copy of the farm's data is on one machine (#16) |
| The storefront edge | Unbuilt. No customer can reach the system today — only the console, on the LAN (#18) |
| Continuous deployment | Manual (#19) |
| Metrics |
Stubbed — no exporter, no /metrics (#20) |
| Alerting | None. The only monitor is a person looking at a screen (#22) |
| Secrets | Environment variables and a gitignored file. SOPS + age is decided and not adopted |
Seventeen of twenty-one design-kit screens are built. Every public screen ships; the four that do not are all control-realm.
| Screen | Realm | State |
|---|---|---|
promo catalog configurator checkout cabinet account auth blog blog-post
|
public | built — all nine |
dashboard orders fleet materials users postproduction packaging
|
control | built |
settings |
control | built — scalars; the table-valued settings and the diagnostics panel remain |
service |
control | not built — needs nothing the others produce |
purchasing |
control | not built |
store |
control |
not built — after purchasing; receiving is what puts a batch in a cell |
logistics |
control | not built — waits on the zones table |
For the unbuilt ones the design kit is the specification.
Not oversights. Changing any of them is a decision, not a cleanup.
| Why it is like that | |
|---|---|
customer_storage_quota_bytes displayed, not enforced |
Refusing a quote mid-configuration is the wrong UX. Growth is bounded by model_retention_days instead |
| Rate limiting and sign-in lockout are in-process | Correct for one API process. Counters reset on restart; a second replica would get its own allowance |
No /metrics endpoint |
/health/workers gives the honest liveness signal meanwhile |
| Off-site backup sync has a recipe, no committed job | Needs farm-specific credentials |
assignment_records is not partitioned |
Bounded by planning frequency, not by the clock. /health/ready now reports when the trigger fires; #44 stays open until it does |
| TypeScript held at 5.x |
openapi-typescript crashes on TS 7. The reason and three failed workarounds are recorded in .github/dependabot.yml
|
| Six queries sort on a timestamp alone | Read in one pass and left that way on purpose — each decides presentation, not membership |
Both were found by an adversarial pass over prose that claimed the opposite, and neither is fixed:
-
The SLA credit is not audited. The sweep overwrites
orders.sla_creditin place; nothing writes anorder_eventsrow and the event it publishes persists nowhere. No prior value of the credit exists anywhere. -
An order does not pin the SLA terms it was sold under. Only the policy code is
stored, so editing
standardre-prices every unshipped promise. This is precisely what ADR-0020 exists to prevent.
Detail: SLA and Variance.
| Risk | Mitigation |
|---|---|
| Bambu firmware restricts LAN control | The Phase-0 spike before commitment; manual as a permanent first-class fallback; pin firmware and test upgrades on one machine |
| Human slicing becomes the bottleneck | The PreparedPlate cache makes it a one-time cost per configuration; measure prep-queue depth and escalate to headless slicing if it saturates |
| Mesh estimate diverges from sliced truth | The variance gate, recorded variances, and a calibration report. The estimator is expected to be wrong at first and to improve measurably |
| Scope creep | ADRs for locked decisions. Messenger bots, animated icons and plugin hosts are the canonical examples of what not to build before the spine works |
| Payment and 54-ФЗ complexity | Isolated behind a provider interface; fiscalization is its own scoped task, not an afterthought of checkout |
| The single on-prem server | A tested restore drill; UPS; degraded mode where printers keep printing while the server is down and reconcile on reconnect |
Resin workflow (wash/cure, vat tracking, exposure profiles), multi-tenant SaaS, multi-site, mobile native apps, an in-app slicer, AI camera failure detection, messenger bots, and a runtime plugin system.
Each is reopenable with an ADR; none is on the critical path to the scenario.
- Writing the Ansible role, against a host whose correct end state is known and reproducible — the cheapest time is now. (Ansible cannot run on a Windows control node, so it needs WSL or a container.)
- The edge — a VPS, DNS and an object-storage bucket that nobody has yet.
- Off-site backup — the largest single gap.
- The first real print — a printer, and somebody in the room.
- A live payment run — a merchant account.
- Development and Governance — how work is tracked and closed
- Deployment — the stages, and what each is missing
- Architecture — the decisions all of this follows from
Printorian wiki · the code is the source of truth · open work lives in issues · current state in HANDOFF.md
Concepts
Workflow
Lifecycles
- Order Lifecycle
- Job Lifecycle
- Scheduling and Dispatch
- Materials and Inventory
- Fleet and Drivers
- Post-Production and Packing
Money
Running it
- Installation
- Configuration
- Deployment
- Operations
- Backup and Restore
- Database Maintenance
- Troubleshooting
Building it