006. Offline first: everything ships in the extension
The VS Code extension works with no network. Everything it runs ships inside its package, and nothing it shows loads from the internet.
- Status: Accepted. Its cost is under review.
- Date: 2026-11-12.
- Supersedes: none.
- Superseded by: none.
Context#
The extension used to need things from outside. Its copy of the Arche command line failed at once without an Arche checkout nearby, because it could not find TypeScript. Some pages loaded KaTeX from a CDN. On 2026-11-12 the user asked that the extension work offline, with every library it uses inside it.
Decision#
- Everything the extension runs ships in the
.vsix: archec with the diagram layout engine, the Pyodide and TypeScript runtimes, and KaTeX. - No webview and no generated page loads anything from the network: no CDN, no remote image.
- The platform builds also carry the native tools: the CAD engine (a portable Python and build123d) and GHDL for the FPGA tests. Each file they fetch at build time is checked against a pinned hash.
- What is online by nature stays online: the Arche Store, issue trackers,
parts searches, Polarion and Claude. What may leave the machine is set by
archec config, offline by default (AI-assisted engineering). - A new runtime dependency of archec or of the Arche command line is bundled, or it is not added.
Consequences#
- The extension works on a plane, behind a firewall, and on a machine that must not reach the internet.
- Its known cost is size. Each platform
.vsixis about 300 MB, over Open VSX's limit of 256 MiB. Unless Open VSX grants the publisher a larger limit, it can only get the universal package, with no CAD and no GHDL. - The web extension weighs about 35 MB, and every user downloads every extension, whether their model uses it or not.
- The review proposes native tools as versioned toolchains, fetched once and checked by their hashes (finding A7). Whether to keep this rule as it is, or change it that way, is the user's decision. A new ADR will record it.