fallbackSubjectFor function
The DETERMINISTIC fallback subject when there is no inference (not wired,
offline, a failed run, or unparseable output): type from the bead's
issueType, scope from its substation (metadata.rig), description from
its TITLE with the bead id stripped out — id-free, compliant, and never the
old grid: <id>.
Implementation
ConventionalSubject fallbackSubjectFor(
Bead bead, {
required String foreignRef,
}) => sanitizeConventionalSubject(
type: conventionalTypeFor(bead.issueType),
scope: _rigOf(bead),
description: fallbackDescriptionFor(bead, foreignRef: foreignRef),
foreignRef: foreignRef,
fallbackType: conventionalTypeFor(bead.issueType),
);