Alfresco already has a concept that allows extensions to be easily plugged in: behaviours / policies. Similar to the copy callback policy, the activity poster service could provide an activity callback policy hook. Such a callback could then
- reject an activity entirely
- filter / augment data collected for the activity
- trigger additional activities (if relevant)
The callback for the policy would need to have an abstract API based on NodeRef (FileInfo is very restrictive, not everyone uses "only" files or folders) and the poster service would need to internally handle all the different API variants it provides to somehow be standardized on that policy API.
The only thing that may be needed is some way to alternatively bind policies not on the type of nodes but sites, either by preset (best practice for functionally grouping) or short name (e.g. special bootstrapped-sites).
But I may be biased towards adding a policy for this because I miss quite a lot of higher-level policies in various places…