Feature-selected build source receipts — 23 October 2026
The canonical application builder resolved cargo metadata before constructing
its feature options. Native descriptor generation and Wasm compilation received
the requested features, while the package list used for source snapshots and the
source archive used the default graph. An enabled optional local dependency
outside the application package root could therefore be compiled without its
manifest, implementation, build script or embedded assets appearing in the
canonical source archive. The source before/after comparison could also miss
changes to that omitted dependency.
Source base: bb1e51680ba5e06dde5d897e8e273f17460cb064, isolated worktree
/srv/shared/code/icrustmem-showtime-sdk, branch
showtime/sdk-production-fixes-20261023. The original SDK checkout was left
untouched. The current implementation is
ver1/tools/build-app.py; this note records
the focused investigation, rather than a frozen replacement implementation.
The correction constructs the existing feature argument list before resolving
application metadata, then passes that identical list to metadata and both
application builds. It preserves repeated feature arguments, --all-features
and --no-default-features; SDK-tool metadata and compilation remain independent
of application feature names. Locked offline dependency resolution remains
mandatory, with no --no-deps or platform filter. The prepare, inspect, check-wire,
typed root generator, compiler flags and artifact publication code are unchanged.
Method and result
Nine regression tests extend the existing Python process-boundary contract fixtures. Six cover default, specific, repeated, all, no-default, and combined feature requests, comparing metadata arguments with native and Wasm compilation arguments while checking the SDK tool receives no application feature flags.
The archive fixture creates real optional dependency directories outside the
application root: an envelope crate, two vendored transitive crates, a build
script and an embedded binary asset. Its metadata fixture exposes those packages
only when the metadata command requests the enabling feature. The unmodified
source_snapshot and archive_sources functions read their actual files; the
test checks both recorded hashes and decoded archive bytes. A negative control
removes the feature option from metadata alone, reproducing the prior command:
both application builds still request the feature, but the required source-file
assertion fails because the archive omits the optional inputs. A final test
changes an enabled dependency after prepare and verifies that source comparison
rejects publication without a completion marker.
Validation from the isolated worktree:
$ python3 ver1/tools/test-build-app.py
Ran 48 tests in 21.759s
OK
$ python3 -m py_compile ver1/tools/build-app.py ver1/tools/test-build-app.py
exit 0
$ git diff --check
exit 0
This suite includes the existing concurrency contracts. It does not invoke Cargo, compile Rust or execute actual Wasm. The process fixtures validate argument propagation and real archive input handling; they are not independent evidence of Cargo's resolver or application runtime behavior. Actual application build comparison is coordinated separately against the previously source-closed control. No claim of binary identity is inferred from these Python tests.
The normal archive continues to capture local packages and effective build
configuration. Registry sources, standard-library sources and generated
OUT_DIR sources retain the builder's existing debug-artifact behavior. This
fix does not claim a complete compiler-toolchain source archive or introduce a
new build mode. Maintained usage belongs in building.