A NodeType compile failure belongs to its source owner, never the platform
What happened
A failed NodeType compile means one type's Source/ did not compile and that type parks. The
compiler itself is not faulty. The platform's compile service logged every such failure at Error
under its own category, MeshWeaver.Graph.Configuration.MeshNodeCompilationService. No route matched
that category, so the filer fell back to the core repository. It opened
CompilationException in EmitPipeline.EmitCore there three times in one week
(Systemorph/MeshWeaver#8662, #8658 and #8529). One of those failures was in source authored in a
client's own space. This is the case the category names the logger
describes, in its sharpest form: for a compile failure the logger is never the owner.
The rule (owner decision, 2026-11-30)
A compile failure belongs to whoever owns the failed type's source:
- for a package type, the package's repository;
- for mesh-authored source, the space owner.
It is never the platform's.
Core reports every compile failure at Warning, so it no longer reaches the red-log watcher at
all. The line names the owner on its second line (Owner: package 'Edu' (module …) or
Owner: the space that authored this source …). It also carries scope fields: NodeTypePath,
CompileFailureOwner (package / space), and for a package OwningPackage and
OwningModuleVersion. The durable signal is the type's own CompilationStatus / CompilationError,
and every package repository refuses a non-compiling NodeType at its PR gate. See core
Doc/Architecture/DanglingNodeTypes → Every compile failure is its source owner's.
The watcher (this repository, CompileFailureOwnership) handles any compile failure that still
reaches it at Error, for example from an image that predates the core change:
| The failed type's root | What happens |
|---|---|
A package declared by a package: route |
Filed in that package's repository. The routing is determined, and no agent override applies. |
| Anything else: a space, an undeclared package, an unreadable root, or a line in which core says the source belongs to a space | Classified InMeshCode with the compile-failure evidence, which is withheld. The incident is recorded on its private node and is never triaged, filed or commented on. |
A package is declared in deployment configuration as a LogWatch:Routes entry whose prefix is
package: followed by the package id:
"LogWatch": {
"Routes": [
{ "Prefix": "package:Edu", "Repository": "Systemorph/MeshWeaver.Education" }
]
}
No log category or stack frame starts with package:, so such an entry never changes ordinary routing.
🚨 Why it is not a new options field or a new classification. MeshWeaver.Observability.Contract
ships with the portal image, while the Observability module lands on its own. The first version
of this change added CompileFailureOwnership, LogWatchOptions.PackageRoutes and a new
UnroutedCompileFailure value to the Contract. The live-update guard
(ShippedModulesLiveUpdateGuardTest) refused the module: "It requires
'MeshWeaver.Observability.CompileFailureOwnership (MeshWeaver.Observability.Contract)', which this build
does not have". A module running on an older image would also have called that image's
IsWithheldFromPublic, which does not know a new value, and so would have PUBLISHED what this change
withholds. So all the logic lives in the module, and the classification is the existing InMeshCode,
which every image already withholds. A module must never require Contract surface newer than the image
it lands on.
When no package: route is declared, no compile failure is ever filed. That is the safe default: the cost is a
missed ticket, never a leak. A root is never guessed to be a package. A partition that merely shares
a package's name is not routed unless it is declared, and core's "a space authored this" line wins
over a declared entry with the same name.
Every publication boundary reads the classification through InMeshCodeRoots.Reclassify. So an
incident recorded before this change, with no classification and possibly a pending File or Comment,
is also retired silently rather than published. RepositoryRouter.Resolve withholds an unclassified
compile failure on its own as well.
Pinned by ACompileFailureGoesToItsSourceOwnerTest (a space's failure is never filed; an unclassified
one is withheld at every boundary; a declared package is filed in its own repository; an undeclared or
space-marked root is never routed; a loader fault from the same category still routes by category).