Import fingerprint: the build modules report each build's import set (issue 721, design 47 H2) #748

Merged
mesh-tools merged 8 commits from fix/fp-imports into main 2026-11-23 12:22:47 +00:00
8 Commits
Author SHA1 Message Date
jschoubben 4c290476f8 Merge remote-tracking branch 'origin/main' into fix/fp-imports 2026-11-23 13:18:59 +01:00
jschoubben e5be3c464e N1: Node's own modules are read from the probed toolchain at the imports step
Review r1 finding 4: the imports step held a fixed list of Node 22's
builtin modules (principle 11). It now reads module.builtinModules from the
installed Node at each step, and fails loud when it cannot.

Builds: design 47 H2 H-A-523, H-A-532 (DQ-6)
2026-11-23 13:18:52 +01:00
jschoubben 7b325126da H-A-553 (2): floor-silent leaves the conditions' homes
The builder's version floor went (B1a, issue 721), and with it the finding
floor-silent it raised; no home names that kind any more.

Builds: design 47 H2 H-A-553 (2), H §756
2026-11-23 12:36:37 +01:00
jschoubben 2b8e2526f2 N3: a Go import set names each package of the import closure, not its module (issue 721)
A module path digested a whole module and brought back the cascade the import
set exists to end; ModuleImports reports the import path of every package the
build resolved, still with no prefix filter, the standard library and the
module's own packages left out.

Builds: design 47 H2 H-A-541, H-A-517, H-A-539
2026-11-23 11:31:38 +01:00
jschoubben 09f66c5f5c N2: a build reports every module or package it resolved, with no prefix or scope (issue 721)
Mesh Go modules come from the seat go-package-registry, not the forge, so no
prefix or scope tells a mesh package apart. ModuleImports reports the module
path of every package the build resolved but the standard library's and the
module's own, and build_node_imports every npm package the bundles reach but
Node's own modules. The settings import-prefix and import-scope leave both
manifests and the ask.

Builds: design 47 H2 H-A-539 (withdraws H-A-534's form check and H-A-535)
2026-11-23 11:28:27 +01:00
jschoubben b117e4ab55 N1: the Node build module reads and says its import set; each build module judges by its own setting (issue 721)
The step tool build_node_imports reads, after a build, esbuild's metafile of each
TypeScript bundle's staged entrypoints and launchers and answers the mesh npm
packages among its inputs and external imports, each by its package name once
(@novox/mesh-sdk, never a sub-path); the ask's steps run it as Imports and say
the set as imports-reported on node-build-node's subject of the node. The Node
build module declares the setting import-scope (default @novox) and the Go build
module import-prefix (default the forge's Go module prefix), each filled into the
step runner's ask as ImportScope and ImportPrefix.

Builds: design 47 H2 H-A-523, H-A-517, H-A-532 DQ-6, DMC-2, DMC-3, H-A-534, H-A-535
2026-11-23 11:21:35 +01:00
jschoubben 0e35d32669 G2: a Go package artifact reports its import set (issue 721)
ModuleImports lists, beside each Go bundle's program, every package each Go
package artifact's paths hold, in the Go module that path is, tests and the
module's own directory left out, as one sorted union; so a contracts module
reports an import set and leaves the version line.

Builds: design 47 H2 H-A-532 DQ-5, H-A-518, H-A-517
2026-11-23 11:07:50 +01:00
jschoubben d625008c57 G1: the Go build module says a done build's import set as imports-reported (issue 721)
The ask's steps gain SayImports, the shared step runner's say of the seat event
imports-reported on this node's subject of node-build-go, published with the
module's SayEvent as its other events are, so the indexer hears each module's
import set from the build that read it.

Builds: design 47 H2 H-A-517, H-A-518, H-A-532 DQ-2, DMC-2
2026-11-23 11:05:59 +01:00