How Offstack is packaged for source-free deployment and verified against real invocations.
Status: v15.0.0 uses VibeInstaller's nuitka_module backend (§0 below). Sections §1–§6 preserve the historical Nuitka --onefile (simulator.exe) and PyInstaller onedir notes from 2026-11-09 through 2026-11-17 (including the --include-data-files Lambda worker bundling contract).
0. Current v15.0.0 Packaging & Distribution
Offstack v15.0.0 ships through three distribution paths:
- Windows Enterprise Installer (VibeInstaller
nuitka_modulebackend — primary):
- Driven by
installer_config.json("backend": "nuitka_module","version": "15.0.0","app_exe_name": "offstack.cmd","output_base_filename": "Offstack-Enterprise-Setup-15.0.0"). - Built via
vibeinstaller.cli build, compiling Offstack's Python packages into native.pydextension modules (0non-runtime.pysource modules shipped) and installing exact pinned dependencies fromrequirements-enterprise.txt(core runtime + all 12 RDBMS drivers, includingpymssql,oracledb,ibm-db,hdbcli,duckdb). - Bundles non-Python runtime assets and host bridges required at runtime:
lambda_routes.json,env.json,lambda_api/*.mjs,docs/OFFSTACK_AI_MANUAL.txt,table_schemas/, cloud cassettes (config/{azure,gcp,oci}_cassettes), andOffstack.DotnetHost.{dll,deps.json,runtimeconfig.json}underlambda_service/dotnet_host/publish/so.NET 8Lambda handlers run from packaged installs without source. - Launched via
offstack.cmd(OFFSTACK_ROOT/TOOLKIT_APP_ROOTanchor config/data lookups), passingdep-auditand21/21install-verifychecks (pluscluster --helpandcompany-cloud --helpsmoke checks).
- Local Python Wheel (
pyproject.toml):
hatchlingpackages the importable service/engine Python modules (pip wheel --no-deps ./pip install <wheel>).start.pyremains a root repository/installer launcher rather than an installed console script (pyproject.tomldocuments this deliberately).
- Linux
x86_64& Container Builds:
scripts/package_linux_release.shpackagesdist-linux/offstackinto deterministic.tar.gz,.deb, and RPM specs for--edition free|pro|enterprise.deploy/ci/Dockerfile.propackages the Linux payload into a non-root container exposing--unified-port 4566(--tls:4567) andHEALTHCHECK /healthz.
Verification invariant (unchanged across all backends): --help alone is never sufficient for a lazy-importing launcher. Always run real SDK calls from a source-free working directory via scripts/verify_packaged_lambda.py, tests/test_packaged_default_invocation.py, and tests/test_nuitka_module_packaging_paths.py.
1. Historical --onefile Artifact (simulator.exe, 2026-11-09)
A Nuitka --onefile executable named simulator.exe, compiled from Offstack's start.py.
The name is not cosmetic. Every consumer that ships the simulator launches a file literally called simulator.exe:
ArtificialIntelligenceHarness/gateway/simulator_helper.pyresolves a
simulator.exe beside the app and spawns it with --persist --state-file … --dynamodb-port 13160 --s3-port 13161 --s3-data-dir ….
- The VibeInstaller payload script (
build/package.py) writes
start "simulator" /min "%~dp0simulator.exe" … and kills it by image name.
So "building Offstack's exe" means compiling from the Offstack checkout and still calling the output simulator.exe. A differently-named binary would be invisible to every launcher.
2. How it is built
The compile lane already exists in VibeInstaller (vibeinstaller/build/simulator.py) and is shared by every product that ships the simulator. It does the two things a hand-rolled Nuitka command gets wrong:
# vibeinstaller/build/simulator.py:163-172
subprocess.run(
[_build_python(), "-m", "nuitka", "--onefile", "--msvc=latest",
f"--output-dir={scratch}", f"--output-filename={exe_name}",
"--assume-yes-for-downloads", ENTRY_SCRIPT],
cwd=str(sim_src), env=nuitka_env, …)
env=nuitka_envfrom_check_nuitka_compiler(), which preloads the MSVC
environment via vcvars. Without it Nuitka compiles with a non-MSVC toolchain and the onefile bootstrap spins at 100% CPU without spawning its payload — measured in the lane's own history (no preload: 8,091,648 B, hangs; vcvars preloaded: 4,002,816 B, runs).
--msvc=latestpins the same backend.
Pointing it at Offstack is a call, not a new build system:
from vibeinstaller.build.simulator import build_or_fetch_simulator
build_or_fetch_simulator(Path("../toolkits/offstack"), out_exe,
exe_name="simulator.exe",
build_timeout=3600) # see the timeout note below
exe_name is already a keyword argument (simulator.py:81), so the compiler is generic; only the CLI path and stage_simulator_exe hardwire the name.
The build budget must be raised for Offstack
build_or_fetch_simulator defaults to build_timeout=900. That is sized for v1 and is not enough for Offstack: measured 2026-11-09, the first Offstack build was killed by the wall after 900 s still mid-Scons, with 447 of its translation units compiled and ~460 MB of intermediates on disk. v1's entire start.build tree is 72 MB; Offstack's crosses 460 MB, because its closure carries SQLAlchemy and sixteen service packages where v1 carried five stdlib-only ones. Budget an hour.
A timeout does not lose the work — the scratch dir is content-addressed by the source hash and deliberately kept, so the next run relinks the objects already compiled instead of starting cold (simulator.py:132-149).
Where the build puts things
| Path | |
|---|---|
| scratch (content-addressed, reused across retries) | %LOCALAPPDATA%\VibeInstaller\builds\simulator_build_<hash12>\ |
| shared artifact cache (one entry per source hash) | %LOCALAPPDATA%\VibeInstaller\cache\simulator_<sha256>\simulator.exe |
| the staged payload copy | <dist>/simulator.exe |
The cache key (simulator_hash) is SHA-256 over every *.py under the checkout, plus every run-time data file the build ships, plus Nuitka/MSVC/interpreter/compression tags. Verified 2026-11-09: v1 hashes fee46f6b…, Offstack hashes ab4e1d63… — different directories hash differently, so switching source cannot silently reuse the v1 binary.
The data-file term was added 2026-11-10 and changed every existing key. A *.py-only hash keys an artifact that also carries files Python never imports, so fixing one of those files produced the same key and a guaranteed false HIT — which is exactly how the Lambda workers stayed unbundled across a rebuild. The corollary for anyone building: the first build after that change is a cold one for every product, and each cold build leaves ~450-480 MB of intermediates under %LOCALAPPDATA%\VibeInstaller\builds\simulator_build_<hash12>\ (measured: 451 MB for ab4e1d63, 453 MB for 40c75d2d, 477 MB for 9d6fc29b — mid-compile, the figure climbs as objects accumulate). Those directories are the largest thing this lane produces and are kept deliberately (a retry relinks what is already compiled) — so a cache-key change churns disk in proportion to the number of builds, and an aborted build leaves its own 450+ MB behind unless the scratch is removed. Delete simulator_build_<hash12> for a hash you have abandoned; the cache entry and staged artifact are separate and are not affected.
3. What must be true for the compile to be correct
--help is not a sufficient gate for Offstack, and this is the trap that has historically shipped broken binaries.
start.py imports the service packages lazily, inside main():
def _start_dynamodb(port, db_path):
from dynamodb.server import DynamoDBServer # ← not at module scope
So a onefile that dropped sqlalchemy, http.server or an entire service package still answers --help and exits 0 — which is exactly how the earlier PyInstaller build reported === BUILD OK === while dying at boot with ModuleNotFoundError: No module named 'http' (see BUILD_NOTES.md).
Nuitka's bytecode-level analysis does follow those imports, so --follow-imports alone is normally enough. The only proof is running it. The gate for Offstack is therefore:
- launch the exe from a directory containing no
.pyfiles (it cannot
fall back to a checkout on sys.path),
- wait for the ports to answer,
- do a real DynamoDB write→read and an S3 put→get.
build.expected_output in installer_config.json already names the marker ( Offstack ), which start.py prints only after binding every port. That marker check should be run against cached artifacts too, not only fresh compiles — the lane's own cache-hit gate runs --help (middleman.py:534), which as shown above would pass a binary with no service packages at all.
This is not theoretical for this project: the PyInstaller-era build in BUILD_NOTES.md shipped a binary that answered --help and died on its first real invocation. Run §4's four checks on any artifact you bank, including one that came from a cache hit.
The cache-hit gate and the fresh-compile gate are the same function (_smoke_run_exe, simulator.py:118 and :202). A cached artifact is not trusted less — both are equally weak for a lazy importer. That is the whole point: a cache hit means "these bytes compiled once", not "these bytes were shown to work". Only §4's checks establish the latter.
4. Verified builds
2026-11-09 — ab4e1d63…: services only
| Source hash | ab4e1d639ab74f1c… (v1's is fee46f6b3c527678… — no collision) |
| Artifact | offstack.exe, 34.8 MB, Nuitka 4.2.1, MSVC 14.44 (cl.exe) |
| Build time | killed at 900 s on the first attempt; completed inside 3600 s after relinking 447 objects |
| Cached at | %LOCALAPPDATA%\VibeInstaller\cache\simulator_ab4e1d63…\offstack.exe |
This artifact cannot execute Lambda. It predates the data-file fix: it contains no lambda_api/*.mjs, so every invocation returns 502. It also has the co-bind hole. Keep it only as the record of what was measured; do not gate anything against it.
2026-11-10 — 40c75d2d…: Lambda executes
| Source hash | 40c75d2d3fbe1268… |
| Artifact | simulator.exe, 34.8 MB, Nuitka 4.2.1, MSVC 14.44 |
| Cached at | %LOCALAPPDATA%\VibeInstaller\cache\simulator_40c75d2d…\simulator.exe |
| Reproduce with | python scripts/verify_packaged_lambda.py <exe> |
The .mjs workers are found inside the onefile payload — verified by listing the onefile_<pid>_* extraction directory while the exe ran. They land at the payload root, not under lambda_api/, which is why the flat --include-data-files=<src>=<name> destination is correct rather than preserving the source layout.
All four routes, from a directory with no .py files:
/health 200 {"status":"ok","service":"offstack-example",...}
/caller 200 {"account":"000000000000","arn":"arn:aws:iam::000000000000:user/local-dev",...}
/tables 200 {"tables":[]}
/buckets 200 {"buckets":[]}
/caller and /buckets only pass because of the set_service_endpoints fix that landed with this build — see §4.1.
2026-11-11 — PyInstaller onedir: two silent build defects
Built from the tip that added Kinesis, Step Functions, and the S3/SQS delivery bridges.
| Artifact | dist/offstack/offstack.exe, 10.8 MB, PyInstaller 6.19.0, Python 3.13 |
| Layout | onedir — exe beside _internal/, not onefile |
| Reproduce | python -m PyInstaller offstack.spec --noconfirm then boot it |
Both defects below produced EXIT=0 from the builder and a green test suite. Only booting the exe found them.
server_base.py was not in the bundle. It is imported by 18 service modules and appeared in neither datas nor hiddenimports, so the exe died on its first service import:
ModuleNotFoundError: No module named 'server_base'
kinesis and stepfunctions were likewise absent from SERVICE_PACKAGES, which is worse: the spec excludes exactly the packages it names from PYZ, so those two would have been missing from the bundle with no error at all. Both lists are now derived — packages from an explicit list that a test pins against SHIPPED_PACKAGES, root modules by parsing service imports (_service_root_modules()), the same technique hiddenimports already used.
config._sim_home() ignored sys._MEIPASS. Onedir writes its datas to _internal/ beside the exe. The anchor returned the exe's own directory, so lambda_routes.json, env.json and table_schemas/ were never found. The symptom was one line among eighteen successful binds:
No lambda config at ...\dist\offstack\lambda_routes.json — API Gateway not started
Every port bound, the banner printed, the exit code was clean, and API Gateway was simply absent. sys._MEIPASS now wins for frozen builds; Nuitka's __compiled__.containing_dir is still checked first, and both are covered by tests in tests/test_start_readiness.py.
Verified afterwards from the banner plus a boto3 sweep of the running exe: DynamoDB write/read, S3 put/get, an S3 notification config round-trip, PutRecord on Kinesis, an SQS CreateQueue, and a Step Functions execution reaching SUCCEEDED.
The generalisation, since this is now the third packaging round: a hand-written list of "things to include" is the recurring defect, because omission is silent and the builder reports success. Derive inclusion from the code. And for a lazy importer, the only proof is a boot that binds every port — §3's argument, re-earned.
2026-11-17 — rebuilt from the tip that fixed Step Functions integrations
| Artifact | dist/offstack/offstack.exe, 8.3 MB, PyInstaller 6.19.0, Python 3.13 |
| Layout | onedir — exe beside _internal/ |
| Reproduce | pyinstaller offstack.spec --noconfirm, then boot it |
| Build log | clean exit 0; four WARNING: Hidden import ... not found — psycopg2, MySQLdb, pysqlite2, importlib_resources.trees |
Those four warnings are the PostgreSQL/MySQL DBAPI drivers. They are expected in a SQLite-only build and are the reason a packaged binary using --state-file postgresql+psycopg://… will fail: the driver is not in the bundle. Worth stating plainly because "runs on any RDBMS" is a headline claim, and the shipped artefact currently proves it for SQLite alone.
Boot verification (23 services bound, then a boto3 sweep against the running exe) — 10 of 11 probes passed:
| probe | result |
|---|---|
STS GetCallerIdentity | pass |
DynamoDB CreateTable/PutItem/GetItem | pass |
S3 PutObject | pass |
SSM PutParameter/GetParameter | pass |
SQS CreateQueue | pass |
Step Functions sqs:sendMessage → message on the queue | pass |
S3 CreateBucket | BucketAlreadyOwnedByYou — correct: the bucket persisted from the previous run against the same state file |
The Step Functions row is the one that mattered: it is the fix landed the same day (stepfunctions/integrations.py), and it demonstrates the packaged binary really drives the integration dispatch, not just that it imports.
A trap worth recording, because it cost a diagnostic detour: the first sweep reported STS/SQS/SSM answering HTTP 400 with empty bodies. They were not. A uvicorn process from an unrelated service was bound to 127.0.0.1:13162-13164, and a specific-bind socket beats Offstack's 0.0.0.0 bind on the same port — so boto3 reached that process. The tell was server: uvicorn in a one-line curl -i. Relaunching on 141xx turned 6 passes into 10 for no code change. Check netstat before believing a port-level failure from a fixed-port run.
2026-11-17 (late) — df56a4b1…: the Lambda path is reachable again
| Artifact | dist/offstack.exe, 38,437,376 B, Nuitka 4.2.1 onefile, MSVC 14.3 (cl 14.3) |
| SHA-256 (first 16) | df56a4b18eaea490… |
| Built from | 1a83fea + the route-resolver fix below (uncommitted at build time) |
| Reproduce | build_offstack_exe.cmd, then python scripts/verify_packaged_lambda.py <exe> |
An earlier compile the same evening (a95efa0f…, 38,438,400 B) was built while the resolver was still being edited — Nuitka had already compiled that module when the last edit landed. It passed every check below, but it is not byte-identical to the tree and is superseded by this one. Recorded because "the build succeeded" and "the build contains what you think" are different claims, and only a timestamp comparison distinguishes them.
The build the same day produced an artefact that booted all 23 services, bound every port and printed the banner — and answered 403 Missing Authentication Token for every Lambda route. The cause was not packaging: RouteResolver._load returned early whenever a control-plane store was present and never opened the bundled lambda_routes.json. Making API Gateway v1/v2 real services that day meant a store is always present, so the file had become dead in the artefact while every source test, which constructs the resolver with no store, stayed green. See COVERAGE_CENSUS_2026-11-17.md, "The route table that was never a fallback".
Verification of this artefact, in order:
offstack.exe --help— exit 0, all 23 services including--schemas-port,
--apigateway-port, --apigatewayv2-port.
- Manual boot from a
mktemp -ddirectory, every port0— all 23 services
bound (4607/4608 default for RDS, the rest ephemeral), banner printed.
scripts/verify_packaged_lambda.py— all four routes:
/health -> 200 {"status":"ok","service":"offstack-example","method":"GET","path":"/health"}
/caller -> 200 {"account":"000000000000","arn":"arn:aws:iam::000000000000:user/local-dev",...}
/tables -> 200 {"tables":[]}
/buckets -> 200 {"buckets":[]}
state file exists: True (4096 B)
OFFSTACK_PACKAGED_EXE=<exe>+
pytest tests/test_packaged_default_invocation.py — passes: reached the marker from a foreign cwd with API Gateway present.
- A real invocation through the bundled sidecar, with no flags. Copied
the exe plus lambda_routes.json, env.json and table_schemas/ into an empty directory (the layout an installer produces) and booted with no arguments. All 23 listeners bound, and every route answered:
/health {"status":"ok","service":"offstack-example","method":"GET","path":"/health"}
/caller {"account":"000000000000","arn":"arn:aws:iam::000000000000:user/local-dev",...}
/tables {"tables":[]}
/buckets {"buckets":[]}
Before rewriting lambda_routes.json to point at a copied handler tree, the same boot answered 502 Lambda invocation error: [WinError 267], because the shipped sidecar names ./examples/lambda, which is a checkout path and not part of an install. That is the correct failure -- the route was read and dispatched, and only the target directory was absent. It is recorded because it is the one open consumer question: a launcher that ships the bundled routes also has to ship a handler tree, or supply its own lambda_routes.json. Not fixed here; noted so it is not a surprise.
Item 4 is the one that proves the default config anchor, and it is worth being explicit about why. Step 3 hands the exe an explicit --lambda-config, so it shows the resolver reads a file; it says nothing about whether the packaged binary can find its own. lambda_routes.json is a sidecar beside the exe (config._sim_home() resolves to __compiled__.containing_dir), and start.py starts API Gateway only when that path is a file. Items 4 and 5 run with no arguments from a temp directory, so API Gateway being present is the proof that the sidecar was located.
A rebuild hazard, measured again. The first build_offstack_exe.cmd run on this artefact succeeded and then failed at the last step:
Nuitka: Successfully created '...\offstack.exe'
Access is denied.
ERROR: could not move offstack.exe into dist\
A leftover onefile process from an earlier verification run still held dist\offstack.exe. Nuitka's onefile is two processes and taskkill /T on the bootstrapper does not always reach the payload; the survivors had to be killed by Windows PID (Stop-Process -Id …), because the Git-Bash ps -W PIDs and the Win32 PIDs differ. The exe was intact at the repo root and the move succeeded once they were gone — so a failed move is not a failed build.
4.1 An exe-only check would have missed this
The first packaged run passed /health and /tables and failed /caller and /buckets with connect ECONNREFUSED 127.0.0.1:80. That looks like a packaging failure. It was not: start.py registered AWS_ENDPOINT_URL_* from the requested ports, so a service on --port 0 produced http://127.0.0.1:0, and an SDK pointed at port 0 falls back to port 80. Reproduced identically from source with the same config, which is what localised it.
The lesson is about the gate, not the bug: verify a spread of routes, at least one per backing service. A single handler exercising DynamoDB would have passed on a binary where S3 and STS were unreachable.
Verification history of the 2026-11-09 build
Passed, in this order:
- The lane's own
--helpsmoke gate. - Launched from a directory containing no
.pyfiles — DynamoDB and S3
ports both answered, so the onefile is genuinely self-contained.
CreateTable→PutItem→GetItemround-trip on DynamoDB, proving
SQLAlchemy is compiled in rather than resolved from a checkout.
CreateBucket→PutObject→GetObjecton S3, provinghttp.serveris
compiled in.
- The state file on disk carried exactly the table the exe created, and
ListTables on a fresh state file returned [] before the write.
A hazard this test surfaced
The first launcher-argv run reported ~600 tables from a brand-new state file. That response did not come from the exe: another simulator already held 13160/13161, and on Windows a second bind silently coexists with the first (allow_reuse_address), so the client talked to the squatter while our process happily started behind it. The exe's own database had 0 tables.
This is not an Offstack bug — gateway/simulator_helper.py documents the same mechanic and its SimOwnershipError exists to catch it — but any verification of a packaged binary must read the state file it was told to use and confirm ListTables starts empty, or it will pass against someone else's data.
Since 2026-11-10 this hazard is closed in Offstack itself. Every listener derives from server_base.ExclusiveThreadingHTTPServer, whose allow_reuse_address is False on Windows, so a second live bind raises OSError (WinError 10048) and start.py exits 1 with no banner. The check above is still worth doing — it costs nothing and it is the same discipline that caught the original — but a foreign process can no longer impersonate us silently. See STARTUP_CONTRACT.md §4.
Lambda execution: the data files the build must freeze
The Lambda invoker shells out to three Node scripts in lambda_api/: lambda_worker.mjs (warm), lambda_cold_worker.mjs (cold) and lambda_wrapper.mjs. Total 15,840 bytes. Nothing in Nuitka's import analysis sees them — they are opened at run time, not imported — so a build that does not name them produces a binary that starts cleanly, serves DynamoDB and S3, and returns
502 Handler process exited with code 1
for every Lambda invocation. This was measured on the 2026-11-09 artifact: start.dist contained zero .mjs files and offstack.spec did not mention them either.
Two halves are required, and either alone is insufficient:
- Bundle them. The lane's Nuitka command must carry
"--include-data-files=lambda_api/lambda_worker.mjs=lambda_worker.mjs",
"--include-data-files=lambda_api/lambda_cold_worker.mjs=lambda_cold_worker.mjs",
"--include-data-files=lambda_api/lambda_wrapper.mjs=lambda_wrapper.mjs",
relative to the checkout CWD (the lane already runs with cwd=sim_src). The right-hand side is the destination next to the exe, which is where lambda_api/invoker.py:_worker_path() looks when frozen. --include-package-data would not help: Nuitka's package-data collection covers resource files inside importable packages, and these are plain files in a directory.
- Resolve them from the right root. A onefile extracts to a temporary
directory, so os.path.dirname(__file__) points into the extraction root and never at the frozen copies. _worker_path() returns the exe-adjacent path when frozen and falls back to the source-relative path otherwise.
"When frozen" needs care, because the obvious test is wrong: Nuitka does not set sys.frozen. PyInstaller does. Nuitka's own stdlib config carries a workaround for packages that expect it (stdlib3.nuitka-package.config.yml: "workaround for 'sys.frozen' not being set"), because setting it globally changes third-party behaviour. What Nuitka does set is __compiled__ in every compiled module, so the check is sys.frozen or "__compiled__" in globals(). Testing only sys.frozen takes the source branch in the one build that matters — silently, with the symptom landing back at "cannot find module" from Node.
tests/test_lambda_worker_files.py pins all of this without needing a build: it exercises the frozen branch by injection and asserts the packaging doc records the flag. A build is still required to prove the two halves compose — run it with Node present (the consumer needs Node on PATH regardless) and invoke a real handler.
A stale dist/ breaks the Nuitka build (found 2026-11-11)
The shared lane discovers .mjs runtime data by globbing the checkout and keys the result by BASENAME, because a onefile extracts them flat. It excludes node_modules and dot-directories only. A PyInstaller build leaves dist/offstack/_internal/lambda_api/lambda_cold_worker.mjs in the checkout, which collides with the source copy and aborts the compile with
[simulator] two data files share the basename 'lambda_cold_worker.mjs': ...
the flat layout next to the exe cannot carry both
The fix in the lane is to add dist, build and any other output directory to _DATA_FILE_EXCLUDE_PARTS (VibeInstaller/vibeinstaller/build/simulator.py:48); until then, remove or move a stale dist/ before compiling. Both directories are gitignored, so this only ever bites a machine that has built before.
5. Wiring it into a product
installer_config.json:
"simulator": {
"source": "../toolkits/offstack",
"strict": true,
"build_timeout": 3600
}
source names the checkout to compile from, not a binary, and is required once the section is declared. strict: true makes a missing or failed binary fail the build instead of producing an installer whose helper launches a file that is not there. build_timeout is what lets a cold Offstack compile finish (§2); without it the 900 s default applies.
There is no way to ship v1 and Offstack side by side in one payload: the stager writes a single <dist>/simulator.exe. It is a swap.
The two lane defects this work found — both now fixed upstream
Both were measured here on 2026-11-09 and fixed in VibeInstaller commits 7d091dd and 63b5262. They are recorded because a consumer on an older checkout still has them, and because the fix shapes what a correct build looks like.
The stager read a slot shared by every product. It defaulted to builds/simulator_exe/simulator.exe, which on this host held v1's 8,002,048-byte binary. A machine that built v1 and then built an Offstack product packaged v1 into the Offstack installer — silently, cache warm or cold, because the stager never consulted the cache and never asked where the bytes came from. Pre-warming the cache did not help for exactly that reason.
The fix is structural, not a comparison: stage_simulator_exe(expect_source=…) resolves the artifact through the content-addressed lane for that checkout (builds/simulator_exe/<hash12>/simulator.exe), so a foreign binary lives in a directory the call never opens. A byte-size check would have been worthless here — and is worthless in general, because the artifacts this project compares (v1 at 8,002,048 B, a onefile of another closure) are not reliably distinguishable by size.
build_timeout was not expressible. The simulator section accepted only source + strict, so the CLI path was pinned to 900 s — not enough for Offstack and guaranteed to fail on it. It is now a config key, threaded cli.py → stager → build_or_fetch_simulator, defaulting to 900.
Verified after the fixes: staging with expect_source=<offstack checkout> produced the 34.8 MB artifact from the ab4e1d639ab7 lane, while v1's shared slot entry sat untouched beside it.
6. Consumer-side requirements
Because the binary carries no Python tree, the consumer must not depend on the simulator's source being present — but it does still depend on these:
- Launch argv. Unchanged from v1 (§1). Offstack accepts the same flags.
- Writable CWD for
logs/.start.pydoes
os.makedirs(os.path.join(_HERE, "logs"), exist_ok=True) where _HERE is the exe's directory. A payload under C:\Program Files\… is read-only to a non-elevated user, so either install per-user, or launch with a writable CWD — nothing else in Offstack writes beside the exe.
- SQLAlchemy is compiled in; it is no longer a pip dependency at runtime.
- Data files.
--lambda-config,--env-file,--stack-fileand the SSM
parameter source are read from paths the caller supplies, defaulting to the CWD. A packaged product must pass them explicitly rather than rely on the checkout-relative defaults.
7. v15.0.0 VibeInstaller (nuitka_module) Windows packaging workflow
This section records the v15.0.0 Windows packaging facts behind the §0 summary. VibeInstaller is the only active installer toolkit for the Windows artifacts; the archived installer-toolkit is not used or recommended.
7.1 Enterprise dual-host parity
The Enterprise installer is Offstack-Enterprise-Setup-15.0.0.exe, produced by the vibeinstaller nuitka_module backend from installer_config.json. On a source-free install it ships 465/465 native .pyd extension modules with 0 non-runtime .py source modules, and 21/21 INSTALL-VERIFY checks pass (dep-audit: 0). It bundles the v15.0.0 docs/OFFSTACK_AI_MANUAL.txt. The same artifact was parity-verified on both build hosts (Machine #1 and Machine #2) — 465/465 .pyd and 21/21 INSTALL-VERIFY on each — so the packaging lane is reproducible across machines, not tuned to one box.
7.2 Edition split (Free / Pro / Enterprise) for Windows
Windows artifacts are built per edition via scripts/build_windows_edition.py on top of VibeInstaller (never a hand-rolled Nuitka command) with OFFSTACK_EDITION set to free, pro, or enterprise:
- free — ephemeral, memory-only runtime (
editions/free/persistence_runtime.py).
It refuses durable persistence, snapshots, DR, migrations, and the cluster / company-cloud subcommands, installs from requirements-free.txt (keeping duckdb==2.0.1 for S3 Select/S3Tables while withholding duckdb-engine and all external RDBMS drivers). All clouds remain enabled; only persistence and external DBs are withheld.
- pro — full persistence across the external RDBMS backends.
- enterprise — Pro plus the multi-host cluster fabric and DR/migration
surfaces.
The edition is selected at build time; the resulting installer and the offstack.cmd launcher are edition-specific. Because the underlying edition modules are read at import time, the edition split is exercised by tests/test_stage46_edition_split.py and tests/test_stage46_edition_wiring.py rather than by any build-time flag alone.
7.3 Linux and container reminders
The Linux and container paths described in §0 are unchanged and independent of the Windows edition split: scripts/build_linux_x86_64.sh produces the frozen ELF, scripts/package_linux_release.sh packs it into deterministic .tar.gz / .deb / RPM spec for --edition free|pro|enterprise, and Dockerfile (multi-stage, debian:trixie-slim runtime, no system Python) plus deploy/ci/Dockerfile.pro (non-root, unified port 4566) wrap the Linux payload.
Want a live walkthrough or evaluation setup for Offstack? Message George Vranjesevic or reach out at george@developmentsnapshot.com.