<github.com/OpenHands/automation/pull/751> feat(fa...
# proj-automation
c
github.com/OpenHands/automation/pull/751 feat(factories): add the Factory model and automation link
@modern-fireman-99755 Thanks very much for the thorough review. Fixes are up with one question to you: github.com/OpenHands/automation/pull/751#…
BTW if you want to see where this is headed from UI perspective I now have a couple of PRs with videos (still in draft): github.com/OpenHands/OpenHands/pull/19800 - video github.com/OpenHands/OpenHands/pull/19811 - video
m
I looked into the factories PR (automation#751) to understand how a factory differs from a plugin and from tags. Short version: it isn’t a plugin, but it overlaps a lot with tags, and I think we should make the split explicit. For listing they are the same thing. I ran both side by side at the PR head, on PostgreSQL and SQLite, and
?tag=software-factory
and
?factory_id=<id>
return the same automations. The difference is control: only
manage_automations
can change a factory’s members, a creator without it can no longer edit an automation once it is in a factory, and the factory has a stable id for worklogs and the run token. Tags stay more flexible: several per automation, set by the creator, and exported by git sync, which skips factory_id. What bothers me is that we would have two answers to “which automations are my factory”. The API still describes tags as “Labels for grouping and filtering automations, e.g. ‘software-factory’“, the new Factories section in AGENTS.md doesn’t mention tags, and the /software-factory skill still groups by the tag. I’d give each one job: a tag describes an automation, a factory owns it. Concretely: 1. In #751, change the tag example to something descriptive and write the rule down in AGENTS.md. 2. In extensions, have the skill create a factory when the service lists
factories
in its capabilities, and keep the tag only as a fallback for older services. 3. Add a one-off way to adopt an existing tag into a factory, so current setups aren’t left tag-only. 4. Later, export factory membership through git sync, since our own factory lives in a git-synced repo. Does that match how you see it?
c
Great proposal. Yes when automation tags showed up I worried about the eventual confusion. The value of tags over a strict hierarchy is that they can be multi-dimensional and can represent cross-cutting concerns such as a tech stack or a policy grouping. I’ve not heard a use case from a customer yet--with one exception which is probably actually an agent-profile use case rather than an automation tags use case--but maybe we will encounter one. Factories on the other hand will quickly evolve to include related data that can’t be represented by tags. When one is looking to monitor and evaluate the effectiveness of their agent system as a whole, users will look to factories, not to individual automations since it is the factory that represents the SDLC. 1, 2 - I agree with no reservations. 3. I wonder if we have enough tag usage to justify the keeping around the code of this. Tags are relatively new and I doubt we have customers with the scale that would justify this. We can always provide a script example of how a person could do that conversion with a script that makes a few API calls. 4. This could make sense. It isn’t clear to me how git sync evolves now that we have automation plugins. Expressing my ignorance not an opinion. 5. I do think we should add support for factories into our plugin system so that a plugin can create a factory and populate it with automations that are packaged in the same plugin or are referenced via other plugins (which promotes sharing and reuse across an organization.)
m
I wonder if we have enough tag usage to justify the keeping around the code of this. Tags are relatively new and I doubt we have customers with the scale that would justify this.
We do use in OSS
c
If you had a script to convert tags to factories it would be a one time change, no?
github.com/OpenHands/automation/pull/751#… Can we handle git sync and other concerns on this thread as a follow-on?
m
Ok but can we reise as much code as possible? Because otherwise will be super difficult to maintain. I can giv another look in a moment
💯 1
ty 1
c
@quick-window-91705 I am hoping this will merge tomorrow. If you have any concerns, please do speak up.
m
left some nits. For me is good to merge if for @quick-window-91705 is good
q
lgtm; a nit im considering is renaming
factory_id
to
group_id
(or something of that sort) “Factory” could be a UI naming convention imo; underneath we’re assigning a group id (and future automation use cases might not be factory/coding tasks related, and still requiring grouping)
(not blocking feedback though feel free to merge)
c
@quick-window-91705 do you mind going on record as a human approver on this one so I can continue with the stack? (Would have asked Vasco but for timezone.)github.com/OpenHands/automation/pull/751
👍 1
✅ 1
ty 1