@mastra/factory: restore Work/Review onEnter (or equivalent board override) — work/review IDs still reserved since 0.13
Ask
Allow replacing or wrapping Work and Review board onEnter (or an equivalent hook) without reserving the work / review IDs forever.
Why
@mastra/factory 0.13 removed rules.work / rules.review. The package README says there is no built-in override or replacement API, and those board IDs remain reserved.
Downstream cannot:
- append an assessment brief to bundled
factory-triage(investigate-only today) - gate
executeon durable risk/value labels - inject a short friction brief into station
arguments
Those policies have to live as unused functions until an override API returns. GitHub integration rules still replace; Work/Review boards do not.
Observed (@mastra/factory 0.14)
Re-entering triage only re-runs bundled factory-triage. Cards can sit in “needs approval” / intake with no installed path to record an assessment and leave the stage.
Related
- Overlay / rules-customization feature requests: https://github.com/mastra-ai/mastra/issues/22037 https://github.com/mastra-ai/mastra/issues/22042
- Skill text overrides (different surface): https://github.com/mastra-ai/mastra/pull/21462
mergeFactoryRuleOverrides/onEntermerge shape: https://github.com/mastra-ai/mastra/issues/21898
This is not a request to disable a GitHub onEvent handler. It is a request to customize Work/Review board onEnter again.
Source: mastra-ai/mastra