One stored model; every view writes only its own part
What is stored is what the user decided: groups, components and their anchors, the port-to-port joints, the lines with what sits on them, the legs of each route with any corner choices, materials, calculations and their entered inputs, and the P&ID's positions. Everything that follows is derived by one function and never stored: generated pipes and fittings, every position, cut lengths, welds, BOM, sheets, PCF.
The P&ID gives the 3D its parts and their order, never their layout. The iso gives the 3D everything. A 3D edit changes sizes, gaps and leg lengths, never a P&ID symbol's position.
Principles
- One model, many views; stored is what was decided.
- Parts and materials are data, in
pipeparts; Portfit edits and places them. - A calculation proposes; it never changes the model by itself.
- Nothing is overwritten, and a rebuild drops no override: what loses its part is kept as an orphan.
- Dragging snaps in the browser; B-rep, sheets and calculations run in a worker.
- No AGPL/GPL code, no customer's content, every norm value with its source.
- Lengths in mm in the model; SI inside
pipeparts. - Every UI action is an MCP tool too, shipped with its milestone.
- One way in: UI and MCP commit patches through one validator.
One diagram in two layouts, and the 3D, share one tree and one undo
The P&ID and the iso are the same diagram, shown flat or isometric with a switch. The work goes flat first: draw what is connected, then switch to isometric, where an unrouted line opens as one straight run with its parts in order, and decide the legs and bends. Each layout keeps its own positions; the parts and their order are shared.
The tabs of a project: Diagram, 3D, Sheet, BOM, Calculations, History, Library. The top bar always names the revision being worked on. The tree is always on the left and shows generated parts in grey, because they follow the route rather than being placed; properties are always on the right. The sketches still show the earlier pane layout in places.
N 1500 U 600 E 900) or drawn; corners, take-offs and the cut list come from the pipe class; every joint gets a weld balloon.The library is the product's promise: parts without code
Table parts
A family is a table with any key (DN/PN, NPS/Class, a size code) and a template whose measurements are bound to its columns. Features: revolve, hole pattern, sweep (elbows), branch (tees), extrude. Every row is built and checked on save. Cells are text with their source; CSV in and out; every save a version.
Imported parts
A manufacturer's STEP per size. The worker reads its openings: bores, and flange faces with their bolt circle, which give DN/PN back. The user confirms or changes each one in a port editor. Arbitrary STEPs are never deformed to make other sizes: one file per row.
Materials
Every part has a material selector: pipeparts' grades plus the organization's own, every value with source and edition, filtered by the part's product form and by what the line's pipe class allows. The default comes from the pipe class per part kind; an override is shown as one. Calculations, BOM, weight and PED classification read it, and a change marks their results stale.
Calculations hang in the tree where they belong and read the model
A calculation is dropped onto a part, a line, a sub-skid or the skid, or offered by a part family. It sits in the tree under what it is attached to, with its status: ✓ fulfilled, ✗ not fulfilled, ↻ stale, … incomplete. A group's badge sums those below it.
Each input comes from the first source that has it: entered, part, line, group, another calculation, default. It is shown with that source. A changed source marks the result stale.
A result can propose values: a plate thickness, a schedule, a bore, a bolt size, a material. Applying one is an ordinary, undoable edit; nothing is written by itself.
Reports: per calculation as PDF or Word, German or English. Per skid, a dossier of everything below it with a status summary, frozen with an issued revision. In the long run a hydraulic network over the P&ID topology calculates the whole skid.
| Level | First modules | Later |
|---|---|---|
| Part | wall thickness, flange joint, bolting, orifice ISO 5167, plate thickness, opening reinforcement | nozzle loads |
| Line | pressure drop and velocity, wall thickness of all its parts, blowdown through a device | water hammer |
| Skid | weight and centre of gravity, PED classification, volume and blowdown | hydraulic network; stress via PCF to ROHR2 / CAESAR II |
Several users, every change a version, revisions issued and compared
Users and rights: organizations, roles (view, edit, calculate, approve, admin), per-project sharing, a guest link for a customer. Several people open one project. A save is a patch: what changed, per object and field. The server merges it with what others saved since and asks only when two people changed the same field or the merged model breaks a rule.
Versions: every save, with who, when and the change in words, also for MCP edits. Restore makes a new version. Running a calculation makes none.
Revisions: draft, issued, approved by a second person. Issuing has a gate (no stale or incomplete calculation, everything rendered) and freezes model, results, reports, sheets and weld numbers; sheets carry the revision index. Two revisions compare as a change list and a coloured 3D.
MCP: an endpoint per organization, OAuth per user, the user's rights; tools follow the UI. Issuing and approving stay with people.
Model v0 stores decisions, not geometry
One placer per part. A part is placed by an anchor (equipment, the first part of an assembly), by a joint to a placed part, or by a route. Two is an error; none is "not placed".
Routes close or say why not. A leg with no length is free and takes what is left to reach the line's end. A route that cannot close says by how much; nothing is stretched silently.
Generated parts have addresses such as L1/s2/corner. Legs have ids, so a rebuild renames nothing. Overrides and calculations hang on addresses and become orphans, not nothing, when their part goes.
Topology is stored once, in the lines: ends and the nodes on them in flow order. Branches are nodes; a reducer is a component. Results of calculations are kept beside the model, found by the hash of their inputs.
{
"schema": "portfit-model", "version": 0,
"units": {"length": "mm", "pressure": "bar(g)", "temperature": "°C",
"massflow": "kg/s"},
"groups": [ // the skid and its sub-skids
{"id": "g1", "name": "Skid 7"},
{"id": "g2", "name": "Pump module", "parent": "g1",
"place": {"at": [2400, 0, 0], "rot": [0, 0, 0]}, // a sub-skid moves as one
"design": {"p": 16, "T": 120}, // design data for what is under it
"materials": {"pipe": {"grade": "1.4571", "standard": "EN 10216-5"}}}
], // … and a material per part kind
"specs": ["CS150-EN"], // pipe classes used, from the library
"components": [
{"id": "c0", "tag": "P-101", "group": "g2",
"family": "org:pumps/cp-50", "key": {"size": "50-200"}, "params": {},
"place": {"at": [0, 0, 400], "rot": [-90, 0, 0]}}, // an anchor: the only stored positions
{"id": "c1", "tag": "HV-101", "group": "g1", "line": "L1",
"family": "org:valves/ball-dn50", // pipeparts family or an organization family
"key": {"DN": 50, "PN": 16}, "params": {},
"material": {"grade": "P265GH", "standard": "EN 10216-2",
"certificate": "3.1"}}, // absent = from the line, its group or the class
{"id": "c7", "kind": "reference", "name": "Frame", "group": "g1",
"file": "blob:9c1e…", // a STEP shown for context: no ports, not in the BOM
"place": {"at": [0, 0, 0], "rot": [0, 0, 0]}}
],
"joints": [ // only between two stored components mated directly
{"id": "j1", "a": {"c": "c0", "port": "n1"}, "b": {"c": "c2", "port": "face"},
"gap": 0, "clock": 0, "seam": {"auto": true}}
],
"lines": [
{"id": "L1", "number": "50-P-101", "spec": "CS150-EN", "DN": 50, "group": "g1",
"medium": "water", "design": {"p": 16, "T": 120}, "flow": {"m": 2.5},
"from": {"c": "c2", "port": "weld"}, "to": {"c": "c9", "port": "a"},
"nodes": ["b1", "c1", "c4"], // what sits on the line, in flow order:
// components and branch points
"materials": {}, // a material per part kind for this line
"overrides": { // on generated parts, by address in this line
"s1/corner": {"material": {"grade": "1.4571", "standard": "EN 10253-4"}}}},
{"id": "L2", "number": "25-P-102", "spec": "CS150-EN", "DN": 25, "group": "g1",
"from": {"line": "L1", "node": "b1"}, // a branch: its fitting from the class's branch table
"to": {"c": "c12", "port": "a"}, "nodes": []}
],
"routes": [
{"line": "L1",
"legs": [{"id": "s1", "dir": "N", "len": 1500}, // corner at its end: from the pipe class
{"id": "s2", "dir": "U", "len": 600,
"corner": {"kind": "bend", "xD": 3}}, // … or chosen: a bend, R = 3 × D
{"id": "s3", "dir": "E", "len": null}], // free: takes what is left to reach "to"
"at": [{"node": "b1", "leg": "s1", "at": 800, "dir": "W"},
{"node": "c1", "leg": "s2", "at": 300}]} // the node's centre, from the leg's start
],
"calcs": [ // attached to a component, a generated part,
{"id": "k1", "module": "plate_thickness", // a line or a group
"on": {"c": "c4"},
"inputs": {"corrosion": 1.0}}, // only what was entered; the rest is read
{"id": "k2", "module": "wall_thickness", "on": {"part": "L1/s1/corner"}, "inputs": {}}
],
"pid": {
"symbols": {"c1": {"x": 420, "y": 180, "rot": 0}},
"lines": {"L1": {"points": [[120, 180], [700, 180]]}}
}
}
The browser places, the worker computes, pipeparts knows the parts
derive runs in Python on the server, one implementation for UI, MCP, sheets and exports. The design behind this sheet is in docs/DESIGN.md.| Part | What it is | Comes from |
|---|---|---|
web/ | React, TypeScript, Vite; three.js viewer; P&ID and iso as SVG editors | the existing 3D editor and viewer |
server/ | Python API: organizations, users, projects, commits and merge, revisions, library, derive (route solver, placement, welds, cut list, BOM), calculation bindings, jobs, MCP | existing code: the editor's routes, accounts, autosave, the MCP pattern |
| worker | B-rep, STEP, HLR sheets, STEP reads, port recognition, calculations | existing code: job runner, STEP reader, assembly sheet |
calc | pure, versioned calculation modules (numpy, scipy, CoolProp) | existing calculation modules, cleaned of any customer's names |
| reports | one report model → PDF and Word, German and English | the existing report engine |
pipeparts | tables, families, ports, fits(), materials with p/T ratings, templates; pipeparts-cad | exists, 0.11.0 |
| store | Postgres: organizations, users, projects, commits and snapshots, revisions, libraries, results, jobs; files by content hash | new |
Two releases; a three-week spike proves the model first
| # | Milestone | Weeks | Done when |
|---|---|---|---|
| M0 | Foundations: repo layout, CI, pipeparts pinned, model schema v0 with a validator, derive skeleton with fixtures, hosting with backups | 3 | CI runs both test suites; a model file validates; the empty app is deployed and a backup restores |
| S | Spike "the model holds": throwaway; one line in three views, plus anchors, a route that must close, a branch, a reducer, an override on a generated part, two browsers saving patches, one calculation going stale | 3 | every rule of §4 is shown working or changed; the derive round trip is measured against 200 ms. If the model breaks here, fix it before M1 |
| M1 | 3D editor, users, versions: the existing editor moved over; organizations, users, rights; commits with merge, version list in words, undo, restore; groups, lines as data, anchors; worker and jobs; STEP out, assembly sheet, BOM; weld proposal; MCP read and write tools | 9–11 | two users edit one project at once and only a true conflict is asked about; a flange–gasket–flange–pipe–elbow assembly is built, versioned, restored, drawn, and built again by Claude over MCP |
| M2 | Parts and materials library: library store with versions, releases and pin; materials with selector, defaults and overrides; STEP families with port recognition and editor; table parts (grid with CSV and history, profile sketcher, revolve + hole pattern + ports) | 10–12 | a flange family from an empty table and a drawn profile, a valve family from three STEP files, both snap to pipeparts' flanges; each part has a material; taking a new library release shows what changes first |
| C1 | Calculations on parts: calculation modules packaged as calc; bindings, resolver, results by input hash; tree nodes and status, inputs with sources, proposals with Apply; reports PDF/Word de/en; modules: orifice ISO 5167, plate thickness, wall thickness, bolting | 7–9 | a plate-thickness check on an orifice plate reads Δp from the orifice calculation, fails, proposes 5 mm, is applied and passes; its report names every source; a loop of calculations is refused |
| R | Revisions: issue with gate, freeze, approve (four eyes), guest link, compare with change list and 3D colours, revision index on sheets, calculation dossier | 5 | Rev A issued and approved, Rev B compared to it, its sheets show the index; an issue with a stale calculation is refused; Rev A's files re-open unchanged |
| H1 | Pilot and hardening A: a design partner builds a real assembly; fixes; user guide; security pass over tenancy and uploads; restore drill | 3 | the partner's assembly is issued as Rev A without the developer's hands |
| Release A: assemblies, library, materials, part calculations, revisions | ≈ 40–46 | for makers of small assemblies | |
| M3 | Lines and pipe class: pipe class as data with an editor (families, materials, branch table); routes with free legs and closure; solver for corners, ends, inline parts, reducers and branches; addresses, overrides and orphans; welds and cut list | 8–10 | six legs, one branch and one reducer give the 3D and cut lengths a hand calculation confirms; an override on an elbow survives a route change |
| P1 | Schematic: the diagram's flat layout in its basic form: symbols for the part kinds in use, lines between nozzles, parts in order, tags; the flat ↔ isometric switch with an unrouted line as a straight run | 4 | a line is drawn flat, switched to isometric as a straight run, given two bends, and its parts keep their order |
| C2 | Calculations on lines and skids: pressure drop and velocity, wall thickness of a line, weight and centre of gravity, PED classification, the skid's calculation dossier | 6 | a skid report lists every calculation with its status and is frozen with Rev C |
| M4 | Iso and documents: isometric editor starting from the schematic, iso sheet (dimensions, balloons, BOM, cut list, title block), weld list, spool split, PCF out (licence checked) | 8 | a PCF opens in Spoolyard and one more reader; a fabricator accepts the sheet |
| H2 | Pilot and hardening B: a design partner routes a real skid; fixes; guide; restore drill | 3 | the partner's iso sheets go to their shop |
| Release B: schematic, lines, iso, PCF, line and skid calculations | ≈ 69–77 | for prefabrication shops and engineering offices | |
| M5 | Full P&ID: the remaining symbols, instrument bubbles and signal lines, off-page connectors, line list, tag rules; DEXPI later | 6 | the P&ID of a small skid is complete enough to issue; a 3D change shows in it |
| C3 | The whole skid: hydraulic network from the P&ID topology; blowdown of the skid's volume; PCF to stress tools | — | |
| M6 | After: STEP → template recognition; sweep, branch and extrude features for table parts; formula sheets; slopes; supports | — | |
| H1 | Pilot with a design partner; fixes; user guide; security pass; restore drill | 3 | see the milestone |
| H2 | Pilot with a design partner; fixes; guide; restore drill | 3 | see the milestone |
Part calculations need parts and materials but no lines, and nobody ships drawings without revisions: both go into release A. Lines and pipe class carry the iso, PCF, line calculations and the network, so they come before M4, M5 and C3. The basic schematic (P1) comes before the isometric editor because the work goes flat first; instruments, signals and the line list wait for M5. Because lines come late, the spike proves their rules first.
Every milestone in pieces that can be finished and shown
Weeks are the middle of each milestone's range. Each package ends in something that can be tested by itself.
| WP | What | Weeks | Done when |
|---|---|---|---|
| M0.1 | Repo layout (web/, server/, worker), CI for both test suites, licence headers, pipeparts pinned | 0.5 | a push runs TypeScript and Python tests |
| M0.2 | Model schema v0 as JSON Schema; Python validator with the rules of §4; TypeScript types generated from it | 1 | a folder of good and bad model files passes and fails as marked |
| M0.3 | derive skeleton and the fixture format (model in, derived document out) | 0.5 | a one-flange model derives its part and position |
| M0.4 | Hosting: VM, Postgres, deploy script, nightly backup off the machine, error tracking, health check | 1 | deploy from CI; yesterday's backup restores on a second machine |
| S.1 | One line in three throwaway views: 3 P&ID symbols, 3 legs typed, 3D from pipeparts meshes | 1 | changing DN in the P&ID resizes the 3D |
| S.2 | In derive: anchors, a route between two fixed ports with a free leg, a branch, a reducer; addresses; an override that survives a rebuild; round trip timed | 1 | the route closes or says by how much; a moved leg keeps the elbow's material; time at 2 000 parts known |
| S.3 | Two browsers on one project: patches, merge, a true conflict, a rule broken only together; one calculation stale by hash | 1 | written record: what held, what changed in §4, the measured round trip |
| M1.1 | The existing editor moved: viewer, tree left, properties right, library drawer, port snapping | 2 | the editor's own test assembly builds in Portfit |
| M1.2 | Organizations, users, roles, sessions, project sharing; the data-access layer and its foreign-id test | 1.5 | a user of one organization gets nothing of another through any endpoint |
| M1.3 | Commits: patch, merge per object and field, validate after merge, snapshots, conflict dialog, live head over server-sent events | 2 | the merge fixtures pass; two browsers see each other's edits in seconds |
| M1.4 | History: versions in words from the patch, grouped per author and time; restore; undo and redo | 1 | every edit kind has its sentence; restore gives a new version |
| M1.5 | Groups and sub-skids, lines as data carriers, anchors and place, reference geometry | 1 | a sub-skid moves as one; a frame STEP shows and stays out of the BOM |
| M1.6 | Worker and job queue: keys, cache, limits, retries, progress; display meshes; STEP out | 1 | the same export asked twice runs once; a killed job is retried |
| M1.7 | Assembly sheet and BOM from the existing assembly sheet; weld proposal | 1 | the sheet of the test assembly matches its parts list |
| M1.8 | MCP: OAuth, read tools, write tools for everything in M1 | 1 | Claude builds the M1 assembly from a sentence and reads it back |
| M2.1 | Library store: family versions, releases, pin per project, "what changes" before taking a new release | 1.5 | a changed flange table shows the affected parts before it is taken |
| M2.2 | Materials: pipeparts' grades and the organization's own with sources; selector with filters; defaults by class, group and line; overrides shown | 1.5 | every part shows a material and where it came from |
| M2.3 | STEP families: upload, read in a locked-down worker process, opening recognition (bores, flange faces → DN/PN), port editor, rows checked against their key | 3 | three valve files become a family; a wrong file is flagged against its row |
| M2.4 | Table grid: any key, cells with source, CSV in and out, history | 1 | 42 rows pasted from a sheet, one changed, the change is in the history |
| M2.5 | Profile sketcher: lines and arcs, measurements named by columns or expressions | 2 | the weld-neck flange's half section drawn and bound |
| M2.6 | Features revolve and hole pattern; ports on the template; every row built and checked on save | 1.5 | 42 of 42 rows build; ports on the surface; snaps to a pipeparts flange |
| M2.7 | MCP tools for the library | 0.5 | Claude adds a row and a material and places the part |
| C1.1 | Calculation modules packaged as calc, any customer's names removed, versions installed side by side in the worker | 1 | the modules' reference cases pass from the package; two versions run on one worker |
| C1.2 | Bindings: a module's declared inputs and sources, the resolver, the input hash, the results store, the dependency graph with loop check | 1.5 | each input shows value and source; a loop is refused |
| C1.3 | Tree nodes and status, the panel, run as a job, stale by lookup, light modules re-run by themselves | 1.5 | changing a line's pressure turns its parts' calculations stale, then fresh |
| C1.4 | Proposals: offered by a result, applied as a patch with its origin | 0.5 | Apply is one undoable version "from calculation k1" |
| C1.5 | Reports: PDF and Word, German and English, sources and versions on every page | 1 | one report in four forms from one report model |
| C1.6 | Four modules wired and checked against references: orifice ISO 5167, plate thickness, wall thickness, bolting | 1.5 | each module's reference cases pass through the binding |
| C1.7 | MCP: attach, run, read a result and a report, apply a proposal | 0.5 | Claude runs the plate-thickness story end to end |
| R.1 | Revision states, the issue gate, the freeze manifest, files rendered and stored at issue | 1.5 | an issued revision's files have the hashes in its manifest |
| R.2 | Approve by another user; guest link (one revision, read-only, expiring) | 1 | the issuer cannot approve; a revoked link stops working |
| R.3 | Compare: change list by id and address; the 3D with changes coloured | 1.5 | Rev A against B lists exactly the edits made between them |
| R.4 | Revision index and change note on sheets; the calculation dossier with status summary | 1 | the dossier of Rev B lists every calculation and the open points |
| H1 | Pilot with a design partner; fixes; user guide; security pass; restore drill | 3 | see the milestone |
| M3.1 | Pipe class as data and its editor: families per part kind, materials, branch table | 2 | CS150-EN entered through the editor gives the take-offs of sketch 5 |
| M3.2 | Route object: legs with ids, typed input, free legs, closure and its message | 1.5 | a route between two fixed nozzles closes; one that cannot says by how much |
| M3.3 | Solver: corners, end fittings, inline parts, reducers, branches; addresses | 3 | the fixtures with hand-calculated cut lengths pass |
| M3.4 | Overrides on generated parts; orphans listed, moved, deleted | 1 | a deleted leg leaves its elbow's override as an orphan |
| M3.5 | Welds along the route, cut list, BOM of a line; MCP route tools | 1.5 | Claude routes a line from "N 1500 U 600 E" and reads the cut list |
| P1.1 | Symbols for the part kinds in use (pipe, valve, flange pair, reducer, tee, pump, vessel, orifice), drawn by us | 1 | every part of the reference skid has a symbol |
| P1.2 | Flat editor: symbols, orthogonal lines between nozzles, tags, flow arrows; writes lines and nodes; MCP tools | 2 | the reference schematic drawn from empty; Claude adds a valve to a line and it shows as "not placed" in 3D |
| P1.3 | The flat ↔ isometric switch: an unrouted line as a straight run with its parts in order; the mismatch panel between the two | 1 | a valve moved past another in the flat layout is flagged on the route, not silently moved |
| C2.1 | Pressure drop and velocity of a line | 1.5 | against a hand calculation for water in DN 50 |
| C2.2 | Wall thickness of all parts of a line, one result per part | 1 | the thinnest part is named |
| C2.3 | Weight and centre of gravity of a group | 1 | against the sum of the BOM |
| C2.4 | PED classification per line and of the assembly | 1.5 | the category and its reason for the reference skid |
| C2.5 | The skid's dossier, frozen with a revision | 1 | Rev C's dossier re-opens unchanged |
| M4.1 | Isometric editor: opens a line from its straight run; legs drawn or typed, corners, parts slid onto legs, branches | 3 | the reference line routed from its schematic without the keyboard, and without the mouse |
| M4.2 | Iso sheet: dimensions, weld balloons, BOM, cut list, title block, revision index | 3 | a fabricator reads it without questions |
| M4.3 | Weld list with frozen numbers; spool split at field welds; PCF out | 1.5 | a PCF opens in two readers; Rev B keeps Rev A's weld numbers |
| M4.4 | The organization's title block and sheet settings | 0.5 | a second organization's sheet carries its own block |
| H2 | Pilot with a design partner; fixes; guide; restore drill | 3 | see the milestone |
| M5.1 | The remaining symbols after ISO 10628-2, one per library family kind | 1.5 | every family in the library has a symbol |
| M5.2 | Instrument bubbles, signal lines, off-page connectors | 2 | the reference P&ID complete with its instruments |
| M5.3 | Line list; tag and line-number rules | 1 | the line list of the reference skid as a table and CSV |
| M5.4 | Both directions hardened: a part added in 3D or isometric appears flat, laid out automatically; P&ID sheet with title block and revision index | 1.5 | a valve added in 3D shows in the P&ID; the P&ID is issued with Rev C |
The biggest risk is a model whose views fight each other
| Risk | Answer |
|---|---|
| A route edit feels slow because the parts come from the server | the centreline is drawn at once; derive per line, cached by hash; measured in S.2 against 200 ms, with TypeScript in the browser as the fallback |
| The model is wrong (views fight each other) | the spike S proves each rule of §4, before any of it is built properly |
| Lines arrive after Release A and force changes to what A built | the model carries lines, routes and addresses from M0; the spike exercises them; A's code never assumes "all parts are stored" |
| Calculations go stale in a cascade on every edit and the tree turns orange | light modules re-run automatically in dependency order; stale shown per node, summed per group; heavy ones re-run on request |
| A proposal applied by MCP surprises a user | MCP writes are versions marked as such; issuing and approving stay with people |
| Merging per object is not enough and people still collide | conflicts and refused saves are counted; locks per line are the next step |
| The table-part sketcher grows into a CAD of its own | M2 has revolve and hole pattern only; a profile is lines and arcs; the other features are M6 |
| The existing editor or calculation modules do not move over cleanly | M1.1 and C1.1 are first in their milestones and find out within two weeks |
| A manufacturer's STEP crashes or stalls the reader | one job, one process, with limits; the file is reported, the worker lives |
| An issued revision cannot be reproduced years later | its files are stored at issue with their hashes; old calc versions stay installed |
| P&ID grows into a project of its own | P1 holds only what drives the model; M5 only what an issued P&ID needs |
| Manufacturers' STEPs too heavy for the browser | decimated display mesh per body; the exact B-rep only in the worker |
| Sheets take minutes on a big model | per-line sheets, jobs in the worker, cache by model hash |
| Standards texts missing for strength modules | they stay "provisional" on every report until checked |
| A customer relies on a wrong calculation | reference cases per module version; every report names method, edition, versions and sources; terms say who checks |
| Licences: PCF, symbols, norm tables, material values | PCF terms checked before M4; symbols drawn by us; values only with a source |
| Customers' data lost or seen by another customer | backups off the machine with restore drills; separation in code and database, tested from outside |
| One developer | reuse of existing code; MCP tools let Claude test every feature end to end from M1; no part of the system needs daily care |
| The estimate | 69–77 weeks to Release B is over a year; the pilots after A decide whether B's order still holds |
Six decisions are taken; ten are still the owner's
Decided on 24 Nov 2026: release A first, with the wider spike before M1; saves are patches merged per object; all work found in review is scheduled and the longer totals stand; derive runs in Python on the server, with the round trip measured in the spike against 200 ms; the P&ID and the iso are one diagram in two layouts, flat first, with the basic schematic built before the isometric editor; the server is Flask on Postgres.
- Licence: closed or open core. No AGPL/GPL code either way.
- Who it is for first, by name: a design partner for the pilot. Needed before M1 ends.
- Hosting: running on a shared Hetzner server, deployed by a self-hosted runner. Open: whether Portfit stays there once it has a database and customers, and where backups go off the machine.
- Which calculation modules first, and whether formula sheets are wanted.
- Approval rules: who may issue and approve; four eyes required; may a revision be issued with a failed calculation and a deviation note?
- Existing coded parts: which of the 33 come along as a reference set.
- Sign-up and billing: not before the first release.
- Interface language at first release: English and German together, or one first.
- Terms for calculations: what reports and contract say about who checks a result.
- Error tracking: Sentry's EU region (recommended, free plan to start) or GlitchTip on the server. Needed with M1.2.
What the review found, and where each gap is answered
Section numbers are those of docs/PLAN.md. "Later" means named and left out on purpose.
| Gap | Answer |
|---|---|
| Generated parts had no identity, yet carried overrides and calculations | addresses and orphans, §4; M3.3, M3.4 |
| No part had a position; routes were over-determined | anchors, one placer per part, free legs and closure, §4; S.2, M1.5, M3.2 |
| Joints and routes both placed parts | one placer per part; joints only between stored parts, §4 |
| No branches or reducers | nodes, branch lines, reducers as components, §4; M3.3 |
| Topology kept in three places | once, in lines; mismatch shown, §4; P1.3 |
| Corner on the wrong leg, radius without unit, flow without unit | corner at the leg's end, xD, massflow in units, §4 |
| No material per line or group | materials on both, §4, §6; M2.2 |
| Calculation runs made versions; results sat in the model | results beside the model by input hash, §7; C1.2 |
| Whole-document saves collide | patches merged per object, §8; M1.3 |
| Two solvers, browser and server | one derive, in Python on the server (decided, §11) |
| Calculation loops possible | dependency graph with loop check, §7; C1.2 |
| No rule for issuing with failed or stale calculations | the issue gate, §8; R.1; decision 6 |
| Weld numbers would change between revisions | frozen at issue, §8; M4.3 |
| MCP write tools only at week 30 | tools in every milestone, §2; M1.8 onward |
| Sheet and BOM in no milestone before M4 | M1.7 |
| Packaging the calculation modules unscheduled | C1.1 |
| Hosting, backups, monitoring, tenant separation unscheduled | M0.4, M1.2, §8; DESIGN §11, §12 |
| No customer before week 55 | pilots H1 and H2; decision 2 |
| The spike tested lines, then 30 weeks ran without them | spike widened to every rule of §4 |
| Navigation: no place for calculations and history; left pane changed its job | the shell, §5; sketches to follow in M1.1 |
| Skid frame, supports, insulation not mentioned | reference geometry in v0, §4; supports and insulation later (M6) |
| Slopes, rolling offsets, imperial input | later; said in §4 and DESIGN §3.5 |
| Spools for prefabrication shops | spool split, M4.3 |
| Tag and line-number rules | M5.3 |
| Interface language and number format | the shell, §5; decision 9 |
| Project export, an organization's data on leaving | DESIGN §11; with H1 |
| Clash detection | later, not planned |
| Liability for calculation results | risk table; decision 10 |
| The P&ID came last although the work starts there | one diagram, two layouts, §5; P1 before M4 |
| Sketches 1 and 8 behind the plan; slips in sketches 2, 3, 9, 12 | redrawn with this revision |