Changelog
Notable changes, newest first. Follows Keep a Changelog and semantic versioning; before 1.0 the minor version may break things, and any break that touches stored data will say so here with a migration note.
Unreleased
Added
Importing a set reads the sheet number off every drawing in it. Until now the title blocks of an import were read only for the one drawing opened afterwards, so a set of sixty drawings arrived as sixty filenames with one sheet's worth of register. Every drawing an import newly files — from Add drawings, dropped on the window, or opened with Open PDF — now has its title blocks read before the drawing list is shown, its sheets recorded in the register in one call per drawing, and, when it is a single sheet, is renamed from
scan0042to the number and title printed on it (A-201 SECOND FLOOR PLAN). A file holding several sheets keeps its filename, because it is not any one of them; a drawing with no readable number keeps its filename too, because a guessed name is worse than a poor one. Drawings already in the project are left alone.When a new drawing's sheet number is already a drawing in the project, the reviewer is asked — naming both drawings — whether it is a new issue of it. On a yes it is filed as an issue of that drawing rather than beside it; on a no it stays a separate drawing. It is only asked when exactly one drawing matches, because two drawings sharing a number is a multi-building job, and choosing between them is not a guess to make for anybody. Filing an issue under another drawing is audited.
An import also no longer stops at the first bad file. Each file is filed, found already filed, or refused on its own, and the summary names every refused file with its reason — never its folder. Before, one oversized scan in the middle of a set left the files before it filed, the files after it not, and an error that named none of them.
Not done: scanned drawings are not read at import, because the reader uses the PDF's own text and on-device recognition is too slow and too unreliable on title blocks to run over a whole set; and the printed revision is not read.
Changed
- Dependencies brought up to date, as eight updates merged and tested together rather than one
at a time: pdf.js 6.3.289, the Tauri plugins,
uuid,logandsha20.11 on the Rust side, and in the tooling Vitest 5, ESLint 10.10, Playwright 1.63 and TypeScript 7, which the interface is now type-checked with.typescript-eslintdoes not yet support TypeScript 7, so its type-aware lint rules still run against TypeScript 6. The audit trail's hashes are unchanged by thesha2update — the tests that pin a digest pass — and every CI action is on its current major version.
Security
Refusals are written to the audit trail. The engineering rules have always required it, and no released build ever did: the only two refusals that were recorded were capability checks, and a local install runs as owner, so neither could be reached. The trail therefore held only what succeeded — and "what did this person try that the application turned away?" is a question a review actually asks. Every refusal that happens with a project open is now recorded against the act it refused, carrying the rule it broke and a code beside it so refusals can be counted by rule rather than by reading prose: a drawing or a markup import over its size ceiling, a document past the page count, a name that could not be used, a refused export, a status change refused for the capability.
The reason recorded is the refusal's own sentence — "this file is 3100 MB, over the 512 MB limit for a drawing" — which names the rule and the magnitude and never a path, a filename or anything from inside the file. A refusal with no project open is still recorded nowhere, because the trail lives inside the project.
A project package is measured before it is opened. Its size ceiling and its file-count ceiling were both declared in the threat model and compared with nothing: opening a project read the manifest and went ahead, whatever the directory held. A package is somebody else's directory — it arrives by email, on a share, on a stick — so both are now checked before the database is opened or anything is read out of it.
The measurement is bounded in the same way as the thing it protects against. It stops at the first refusal rather than counting every file in a package built to hold a hundred million of them, and it does not follow a link out of the package: one carrying a link to the root of the disk would otherwise turn the check into a walk of the whole machine, and a refusal that never arrives is no better than none. The decompressed-stream, job-timeout and concurrency ceilings remain declared and unenforced, and the diagnostics report still says so.
Writes obey the same two ceilings, so a project the application built is always one it can open. Without that, nine drawings each under the 512 MB drawing limit would together pass the 4 GB package limit, and the next open would refuse the user's own work. A file that would overfill a project is refused before it is written, with a sentence about the project rather than one calling a 40 MB photo "this file of 4 GB", and a margin is kept below each ceiling for the database to grow into. A package part of which cannot be measured — a folder that cannot be listed — is now refused rather than counted as smaller than it is.
A damaged markup set no longer empties the drawing. Loading a set replaced the drawing's markups first and read the rest of the file afterwards, so a set with a broken calibration entry threw after the markups were already gone — no message, and nothing to undo. Every entry is now checked before anything is replaced, and if the engine still refuses part of a set the drawing gets its markups back. A seeded test generates four hundred damaged sets and fails if any of them leaves a drawing with a mixture of old and new markups.
Fields that were stored without a bound now have one. A sheet's discipline and printed revision, a saved view's filter, and a measured quantity's unit and precision were assigned after validation had run, so the interface — or a title block misread as noise — could put text of any length into the project. Each is now bounded in the domain like the fields beside it. Quantities are held to what the domain's own derivation guarantees, but a value without a host calibration is still accepted: the engine owns the calibration, and refusing that would refuse every takeoff.
Every installer is installed, started and removed on a fresh machine before a release. A new job takes each platform's bundle to a fresh GitHub runner, installs it as a user would — NSIS silently on Windows, the disk image on macOS,
apton Linux, which also proves the package declares the libraries it needs — starts it, waits for the application to log the version it started as, checks it is still running, and uninstalls it. It runs after the weekly bundle build, and on every release draft before checksums and provenance are published. Its first run passed on Windows and Linux and failed on macOS, where the disk image's licence agreement waits for an answer; with that answered, all three pass. The application now writes that one startup line to its log, carrying the version and nothing else. A runner is not a real desktop: what the operating system says about an unsigned binary, and anything past startup, is still checked by hand.The host's parsers are fuzzed. A libFuzzer crate runs six targets weekly, and whenever it changes, for five minutes each: the page counter, PDF header sniffing, path containment, name checking, log redaction and markup-metadata decoding, each asserting a property rather than only that nothing crashed — a page count inside its bounds, no path resolved outside the package, no name that is more than one path component. The first run executed about 487 million inputs without finding a crash. The page counter moved into
sf-securityso a fuzzing build could reach it. pdf.js is still fuzzed by nobody here, and the security documents say so.A project database carrying anything SheetForge did not put there is refused. A project package's database is a SQLite file somebody else wrote, and SQLite keeps triggers and views in the file and runs them inside the application's own connection, on its own reads and writes. A package could have carried a trigger that rewrote a markup's status every time one was saved. Opening now compares every table, index, trigger and view with what this build's migrations produce on an empty database, by name and SQL text, and refuses any difference — including a database whose audit-trail protection was dropped. The comparison is built from the shipped migrations, not a hand-kept list, so a new migration cannot be forgotten by it.
An import is bounded at fifty thousand markups. Every record in an import is validated and written in one transaction on a blocking command; a request of millions would hold the project, and the window waiting on it, for as long as that took. The refusal says how many markups the file held, and is written to the audit trail.
Two text boundaries are property-tested rather than tested by example. The header decoder on every raw-body command now reads back exactly what
encodeURIComponentproduced for any string, and refuses rather than repairs escapes that are not UTF-8. Log redaction, which runs on text nobody wrote for a log, now keeps the whitespace of any input and leaves no absolute path standing. Neither found a defect.A damaged drawing is no longer called protected. Taking pages out of a drawing or building a redacted copy reads it a second time, with pdf-lib, and every failure to load was reported as "this drawing is protected — ask whoever issued it for an unprotected copy". A generated test over 150 damaged drawings found that 45 of the 69 refusals were files with flipped bytes, not encryption, and that the other 24 failed after loading and reached the status bar as pdf-lib's internals (
_this.catalog.Pages is not a function). An encrypted drawing is now recognised by pdf-lib's ownisEncryptedflag and called protected — not by catching its error, which cannot be recognised by type because the library's ES5 build loses the error's prototype — and anything else is called damaged. Every pdf-lib step is covered, not only the load, and a protected drawing is still refused before anything is copied out of it. The same test checks that no damaged drawing hangs the extract.The drawing engine's XFDF parser is tested. It had no test of any kind in this repository, though hostile XFDF is the threat model's named adversary. A seeded generator builds 500 documents from the vocabulary real ones use and the values real ones do not — pages of
1e9, rects ofNaN, files cut off mid-attribute — and asserts no markup reaches the drawing off the document or made of anything but numbers. It found nothing: the engine already refuses them.A project manifest is read with a ceiling. It was the first file read from a package somebody else wrote, and it was read whole, before any package limit was consulted. It is now refused from its size before a byte is read.
Every declared version is checked to agree. 0.1.2 was cut with the interface package still at 0.1.1. Seven fields across six files declare the version and no tool reads another's, so CI now fails when they disagree.
[0.1.2] — 2026-09-12
The first release that can update itself, and the first with build provenance. It is still an unsigned preview in the code-signing sense: nothing is code-signed or notarised, so SmartScreen and Gatekeeper still warn. Only the Windows build has been run by a person. See docs/status.md.
Security
- Size ceilings now apply before a file is read, not after. Importing a drawing read the whole file into memory and only then checked it against the 512 MB ceiling — so a far larger file was loaded before being refused, and a device or a named pipe dropped on the window was read until memory ran out. Files are now refused from their metadata, re-checked through the opened handle, and read no more than one byte past the ceiling, which also stops a file that reports a size it does not have. The same bounded read covers attachments, sources read back out of a project package — which may come from somebody else — and imports.
- XFDF and markup-set imports are measured. The drawing engine read these files whole inside the window, with no ceiling on the way, although the threat model names a hostile XFDF from a subcontractor as the primary adversary. They now come through the host's native picker and the same bounded read, and no route — the menu or the engine's own toolbar — can reach the old ones. Loading a markup set, which replaces every markup on the drawing, now asks first.
- The page-count ceiling is enforced. It was listed as a defence in the threat model and shown as in force in the diagnostics report, and nothing ever compared a document's page count with it. Documents past it are now refused before anything is written, on a count taken from the file's contents rather than its own claim.
- The diagnostics report no longer overstates. Ceilings that exist only as values — the job timeout, concurrency, decompressed-stream, package and archive limits — were listed under "Limits in force". They are now listed as declared and not yet enforced, and the threat model is corrected to match.
Fixed
- Jumping and zooming on a large set no longer stall for seconds after opening it. On a 200-sheet set a jump took about 3 seconds and a zoom about 4 — for the first couple of minutes after opening, whatever the distance — while opening itself took under half a second. The drawing engine's sheet panel was redrawing every thumbnail once per sheet as it read the title blocks: about 40,000 thumbnail draws, and everything else queued behind them. Its thumbnails are meant to load lazily, but the list they watch never scrolled, so every one was always "in view". Bounding the list's height makes them lazy again: 2,014 draws, done in eight seconds, a jump in 60 ms and a zoom in 87 ms. It also stops the thumbnail list pushing every other sidebar panel twenty thousand pixels down. The underlying causes are the engine's and are reported upstream.
Added
Rendering is measured. A browser test opens a synthetic 200-sheet set and times the first sheet, a jump deep into the set, a zoom, and the memory left after paging across it — against loose ceilings meant to catch an order-of-magnitude regression, with the figures printed on every run. The timings come from marks the application records locally; nothing is sent anywhere. The set is generated and lighter than a real CAD export, so the figures are a floor.
Every release file carries signed build provenance, and a bill of materials. From the next release, anybody can confirm a download was built by this repository's release workflow from a named commit, and has not been changed since:
gh attestation verify SheetForge_0.1.2_x64-setup.exe --repo ibuilder/SheetForgeFor installers that are not code-signed this is the strongest check available, and it needs no secret — it is signed with the workflow's own identity and recorded in the public Sigstore log. It does not silence SmartScreen or Gatekeeper; only a paid certificate does that. The release also gains
SBOM.cdx.json, listed inSHA256SUMS.txtand attested against the installers it describes. 0.1.1 predates all of this.Checking for updates, with an off switch. A few seconds after start SheetForge asks whether a newer version exists. It is the one network request the application makes, and ADR-0007 allows it on the condition that it can be turned off — Project ▾ → Stop checking for updates on start — so switched off, it sends nothing at all rather than asking and ignoring the answer.
A check on start only ever announces. It never raises a dialog, because one arriving while somebody types a markup turns a stray Enter into consent to download and restart. The Project menu then offers Install SheetForge 0.1.2… by name, and that asks before doing anything.
Installing downloads and verifies first, then saves every markup, then installs. The order is forced by Windows, where the installer ends the application the moment it starts. And the save is confirmed from the drawing engine's own state rather than by waiting for it, because the engine's save resolves even when it fails — waiting and carrying on would install over unsaved work.
Nothing can be updated to until a release is built with the updater key. 0.1.1 predates this and needs one manual reinstall.
Changed
A redacted copy says what it leaves out. Its bookmarks, title and other document properties are not carried over from the source — deliberately. They are text nobody reviewed when choosing what to black out, and a bookmark can be titled with exactly the name that was just removed from the sheet it points to. That was already true; what changed is that exporting now says so, since the person sending the file on would never find out by opening it. A test now fails if either the outline or the title can be recovered from a redacted copy, reading the output as a PDF reader would rather than searching its bytes — a byte search was shown to miss a planted leak.
The updater key is real. The public key shipped since the first commit had no private half anybody held, so every update would have been rejected — the updater was inert while appearing configured. A key pair was generated on the maintainer's machine, its private half stored as a repository secret and never written down anywhere else, and the public half is below. Releases from 0.1.2 on are signed with it; 0.1.1 and earlier cannot be updated from and need one manual reinstall.
0.1.1 — 2026-09-10
The first build anybody outside this repository can download. 0.1.0 was built and drafted but never published, and this supersedes it rather than following it: the 0.1.0 installers carry the pdf.js arbitrary-execution advisory below, and a Windows installer whose uninstaller demands administrator rights it does not need. Neither should reach anybody.
It is still an unsigned preview. Nothing is code-signed or notarised, so SmartScreen and
Gatekeeper will warn; and it was built without the updater signing key, so it cannot update
itself — anything installed from it stays on 0.1.1 until it is uninstalled and replaced by hand.
Verify downloads against the attached SHA256SUMS.txt. Only the Windows build has been run by a
person; the macOS and Linux builds compile in CI and nobody has launched them. See
docs/status.md.
Fixed
The Windows installer no longer asks for administrator rights. It was configured to offer both a per-machine and a per-user install, and NSIS asks for elevation when it might need it — so the installer and the uninstaller raised a UAC prompt even though the install actually landed entirely in the user's own profile, registered under
HKCU. Refuse or dismiss that prompt and the uninstall fails silently, leaving the application listed in Add or remove programs with no way to shift it. Found by installing the build and then trying to remove it.The NSIS installer is now per-user only, which needs no administrator at all. That is the right default for who actually runs this: a contractor or an estimator on a managed laptop frequently cannot elevate, and an installer that demands it is one they cannot use. Fleet deployment has the MSI, which is the path IT departments use anyway and is per-machine by design.
Security
pdf.js raised to 6.2.108, closing CVE-2026-16633 — arbitrary JavaScript execution on opening a malicious PDF, rated high. This is the library that parses the input this whole application treats as hostile, so it is the last dependency that should be behind.
The shipped configuration was already covered: the advisory's own stated mitigations are disabling PDF scripting or setting a CSP, and the application ships
script-src 'self'with no'unsafe-eval', withdangerousDisableAssetCspModificationoff. That is mitigation rather than a fix, and it does not apply to the development server, so the version was raised regardless.CI now checks the JavaScript dependencies for advisories, which it never did. The Rust half of the tree has been gated on
cargo-denysince the first commit; the JavaScript half was not gated at all, which is how the above sat in the lockfile until GitHub mentioned it on a push. Set at--audit-level=highdeliberately: a gate that fires on every transitive advisory in a build tool is a gate people learn to skip, and a check nobody reads looks like coverage without being any.
Added
A running takeoff on screen, in the sidebar under the sheet register. Totals what has been measured on the open drawing by cost code and unit, and updates as each measurement is filed. Every other quantity output here is a file, which is the wrong shape for the thing a reviewer is building while they measure: the point is catching the measurement that landed under the wrong cost code at the moment it was made, rather than in a spreadsheet the following week.
One code in two units stays two lines. Adding a volume to an area would produce a number with a plausible magnitude sitting under a real cost code — wrong in no way a reader can see.
What is not counted is said in words beneath the totals, not shown as a badge or a colour: the reader who most needs to know that three measurements are missing is the one about to quote the number.
Compare the quantities on two drawings — Project ▾ → Compare quantities with…. Totals the measured quantities of both by cost code and unit and writes the comparison as CSV: what moved, by how much, and in which direction. The lines that did not move are in the file too, because a schedule of only the differences cannot be checked — a line that held and a line that was never compared look identical without them. Measurements taken on a page with no scale, or at a scale nobody has confirmed, are excluded from the totals and named at the foot of the file rather than counted as zero.
It compares against any other drawing in the project rather than against "the previous issue of this one": every import creates its own document, so that relationship does not exist in the store today, and offering a control that could never work would be worse than asking.
0.1.0 — 2026-08-24
Built and drafted, never published — superseded by 0.1.1 before it reached anybody. The core is built and tested; the shell is young. See docs/status.md for what is verified and what is not.
Added
Reviewing
- Open a construction drawing set and navigate it: continuous or single-page, fit-width and fit-page, rotation, thumbnails, and tiled rasterisation so a D-size sheet stays readable at 800%.
- Search across sheet text, markup content and the sheet register at once, with phrase matching over the joined word stream.
- Revision compare with automatic alignment, difference clustering, and clouding of the changes.
- Slip-sheet migration with a per-markup verdict — unchanged, relocated, or needs a human — and a review queue rather than silent reapplication.
- CSI specification parsing into addressable sections and clauses, so a citation is a link.
- OCR for scanned sheets through a recogniser you supply; nothing is bundled and no engine is the default.
Marking up
- Attachments: site photos and voice notes filed into the project rather than inlined into the markup, content-addressed and size-limited. Re-hashed when read back, because a photograph of a defect is exactly the file somebody later claims was altered.
- Rectangle, ellipse, polygon, polyline, line, arrow, freehand ink, revision clouds with real scalloped arcs, text, callouts, glyph-accurate highlight, strikeout and underline, dynamic stamps, symbols, issue pins and attachments.
- Markups as structured records: subject, note, status, discipline, assignee, due date, cost code, labels, spec citation and IFC references.
- A validated status workflow, with reopening routed through the start of the review rather than jumping into the middle of it.
- Undo and redo for every locally reversible action.
Measuring
- Check a dimension. Drag along something whose length is printed on the sheet, type what it says, and get a graded answer rather than a percentage: within 1% the scale is right, within 5% is worth drawing again, beyond that something is wrong. Where a familiar mistake explains the number it is named — a half-size plot, feet read as inches, metres read as feet. A wrong scale makes every length on the page wrong and every area wrong by its square, with nothing on screen looking unusual, and this is the two-second defence.
- Distance, polyline length, area, perimeter, count, angle, radius and volume.
- Per-page calibration from a drawn dimension, a named scale preset, or a title block reading that stays provisional until a human confirms it.
- Feet-and-inches formatting and parsing.
- Every quantity carries its raw page magnitude, calibration, formula version, unit and precision, so re-calibrating a page re-derives every measurement on it.
Keeping it
- The
.sfprojproject package: content-addressed drawings kept byte-identical, SQLite records, and an integrity check that reports an altered or missing drawing rather than opening anyway. - A hash-chained, tamper-evident audit trail, immutable at the database level and exportable as NDJSON.
- Optimistic concurrency on every write, so a concurrent edit becomes a conflict somebody resolves rather than one of two edits disappearing.
- Durable writes: WAL with
synchronous = FULL, because a tablet losing power on site is the expected failure.
Exporting
- Flattened PDF, CSV and XLSX takeoff, XFDF, and BCF topics — each carrying the document revision, page, markup id, calibration and formula version.
- One sheet as a PNG, with its markups on it, at 96, 150 or 300 DPI — screen, print or plot. The markups are composited from the same renderer the viewer paints with, so an exported cloud cannot drift into a different shape from the one on screen.
- Redaction that removes the content. A Redact tool, and an export that rasterises any page carrying a redaction with the redacted areas painted out before the pixels are encoded — so the text is gone rather than covered. A black box over text a copy-paste still recovers is worse than no redaction, because it is believed. Pages with no redaction on them are copied unchanged and keep their text. Markups are not included: a redacted copy is made to be handed outside the review.
- An issue status stamped across an exported image — "NOT FOR CONSTRUCTION" or whatever you are issuing under. A marked-up review copy that reaches a subcontractor looking like an issued drawing is how somebody builds the wrong thing.
- An exported set opens with a legend: what each colour means, in words beside the swatch, with counts by discipline and status — and a tally of how many sheets carry any markup at all. Without it a recipient reads an unmarked sheet as reviewed and found correct, when it may simply never have been opened.
- Every sheet as PNGs in one ZIP, at screen or print resolution. One save dialog rather than one per sheet, and no folder picker — which would have meant a directory handle held across calls and a second place for "no command takes a path" to be got wrong.
- Exports cross to the host as raw bytes rather than as a JSON array of numbers, which cost about
five characters per byte to build, send and parse. The name and extension travel as
percent-encoded headers, so a drawing called
Plan étagekeeps its accent. This is what makes a plot-resolution image an export rather than a frozen window.
Assembling
- Extract pages into a new drawing — "send the subcontractor the six mechanical sheets". The extract is a new revision recording which issue it was cut from; the original is never edited, because a revision's identity is the hash of its bytes and editing in place would make verification report your own work as tampering. Both documents stay in the project.
Getting back to work
- The projects you had open lately, in the Project menu. Closing the application used to mean finding your work again through a folder dialog.
- The host keeps the locations and names each one to the interface by an opaque handle, so the set of places this command can reach is exactly the set of projects you have already opened through a native dialog. A project that has moved is listed and disabled rather than hidden.
Navigating
- Saved views that survive closing the project: a named place in a drawing, with the markup filter that was active when you saved it.
- The sheet register in the sidebar: the set listed by sheet number and title, with Find sheets at a revision… to answer "which sheets are at Rev C?". A sheet number nobody has checked is marked unchecked — most of them are read off title blocks by a heuristic, and on a scanned set that reading is frequently wrong.
- The drawing's own outline, in the sidebar. A construction set exported from Revit or Bluebeam carries one — disciplines at the top, sheets under them — and a 200-sheet set is much faster to move around by it than by a flat list. Hidden entirely when the document has none.
Getting started
- A tutorial drawing ships with the application: a two-page ARCH D sheet with a title block, a column grid, a legend and a graphic scale. It opens itself once, on a genuinely first run, and is available afterwards from the Project menu and from the empty screen.
- The tutorial carries its own outline, so the contents panel demonstrates itself on the first document a new user ever opens.
- The practice sheet carries a dimension printed as
144'-0"whose geometry is exactly 1296 PDF points — 144 feet at 1/8" = 1'-0". Calibrating against it and measuring the far side gives an answer the sheet itself can confirm, so the calibration lesson is checkable rather than asserted. - The sheet is generated by
scripts/make-welcome-sheet.mjsand reviewed as code; CI regenerates it and fails if the committed file has drifted.
Platform
- Windows, macOS, Linux, iOS and Android from one codebase.
- Signed update payloads, verified before they are applied.
- No telemetry, no account, no cloud. One outbound connection, for the update check, and it can be turned off.
Known limitations
Listed here as prominently as the features, because a first release is mostly a list of things nobody has checked yet. docs/status.md is the long version.
- Release binaries are not code-signed with an organisation certificate, so Windows SmartScreen and macOS Gatekeeper will warn on install.
- The drawing engine's own interface has two serious accessibility defects — empty panels that still announce themselves as lists of options, and a drawing scroller that cannot be focused by keyboard. They are in a dependency, they are listed rather than hidden, and any new defect fails the build.
- No installer has been run on a clean machine. CI packages the application on all three platforms, which proves it builds; nobody has installed one.
- The raw IPC transport is exercised only against a stub. Every export crosses that seam. The browser suite stops there by design, so the first person to export from a packaged build is testing it.
- The updater has never delivered an update, because there is no previous release to update from. That path ships unexercised end to end.
- The name "SheetForge" has not had trademark clearance — ADR-0009.
- No at-rest encryption of the project package; use full-disk encryption.
- No fuzzing corpus for hostile PDF input yet. This is the largest security gap.
- No third-party security audit and no penetration test.