frphank's avatar
frphank 1 year ago
Maybe ... I think this needs to be figured out and baked into the system. Don't leave solving the hard part to the user if that's what you head in mind.

Replies (4)

I anticipate that the vast majority of repositories dont have their ownership contested by anyone but fraudsters so the current implemtnation is geared towards that. Currently if there are multiple people who claim the same repository and they don't list the others as 'maintainers', gitworkshop.dev uses the one with the most references in other events. If they do, the event with the most recent created_at timestamp is used. If someone tries to game this, the intention is to add web of trust into this. ngit also uses a maintainers.yaml file embedded into the commit history to indicate which npubs to treat as authoritative. The tools are not yet geared towards multiple legitimate groups of maintainers with conflicting state. I should probably write a more polished answer and publish it as a FAQ. I'd love some more challenge around this as its better to find holes earlier rather than later when things are harder to change. What do you think?
frphank's avatar
frphank 1 year ago
Better earlier than later. Duh. > If someone tries to game this, the intention is to add web of trust into this. I believe that when I see that.
frphank's avatar
frphank 1 year ago
> Currently if there are multiple people who claim the same repository and they don't list the others as 'maintainers', gitworkshop.dev uses the one with the most references in other events. If they do, the event with the most recent created_at timestamp is used. Whatever consensus protocol you come up with must also work decentralized. Gitworkshop.dev is centralized.
frphank's avatar
frphank 1 year ago
There is also a larger problem here. Your thinking revolves around isolated, single responsitories. But the open source world has repositories referring to one another. Example: #L34 The whole chain of repositories must be decentralized and highly available. This is the problem I have to solve.