I don’t think so, I think it became clear during the discussion that it wouldn’t work. I also suspect that you’d met plenty of obstacles had you actually tried to implement it.
I don’t remember all the details now, it’s better to dig up where it was discussed before. Wasn’t that on GitHub somewhere?
It’s not only about “rules”, how do you actually track this? When users have copied YAML snippets here and there, or had AIs generate them, and they don’t have any overview over what’s where, how do they find that document to uninstall that particular add-on that causes problems? What happens if different YAML files conflict? Would it just be “additive”, or would you also have the ability to “deny” certain add-ons from installing? Or certain versions?
Then there’s the startup timing. Are the YAML files parsed in time, so that the system has the final answer to what bundles should and shouldn’t be installed when it needs that information? If versioning becomes a reality, you’d have further possibility for conflicts, with different YAML documents asking for different versions of the same add-on.
These are “challenges” I see immediately, but instead of trying to think through it all again, try to find where it was discussed.
There’s no natural separation between “marketplace add-ons” and other add-ons. An add-on is an add-on, it can have different sources. It can be the community marketplace, a JSON marketplace, a local JAR, a local KAR, or a Karaf feature (which downloads using Maven). “Official” add-ons comes as standard either as KARs or Karaf features, but the marketplace also has support for KAR files (although quite broken IMO). I think most of the JSON marketplace add-ons are actually KARs. So, the distinction is quite artifical.
I don’t think it would ever work in any way satisfactory if made part of the “general YAML format”. As a YAML alternative to addons.cfg, sure, but is YAML actually a preferable format/syntax?
I’m not so sure, I actually think YAML is one of the more “messy” ways you can present information. The one good thing it has going for it, is the multiline strings that let you embed whole scripts or documents inside the YAML while keeping it readable. Except for that, I’d prefer almost any other format, JSON, or even XML.
In any case, making it possible to have addons.yaml instead of addons.cfg, would be a pretty marginal “improvement”.