⚠️ IMPORTANT: contribution `work` events record the project creator, not the contributor
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 8/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- graphql, typescript
- Ambito
- api, authorization
Direzione di ricerca
This needs a product decision before any code, so start by reading the three options in the issue and the addContributor path in hooks/useProjectCRUD.ts (GUI repo), which calls resources.contributeToResource. Work out why the signer's provider and receiver end up as the creator, and check how the authorization rules in #71–#73 constrain it. Done means a chosen option is recorded on the issue, with follow-up SDK and GUI tasks split out. Don't implement a fix until that decision exists.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Important, needs a design decision before release. Found during the authorization workstream (#74). It doesn't block the RBAC PRs, but it means the economic record of who contributed is wrong today, and the authorization rules now make the obvious fix impossible from the GUI alone.
What happens
When a project is created with contributors, the GUI (hooks/useProjectCRUD.ts, addContributor) calls the SDK's resources.contributeToResource(processId, designSpec), which sends:
createEconomicEvent(event: {
action: "work" inputOf: $process provider: $agent receiver: $agent # $agent = the signer, i.e. the project creator
resourceConformsTo: $conformsTo effortQuantity: { hasNumericalValue: 1 hasUnit: $unitOne }
})
The contributor never appears in the event. Their id only reaches the inbox notification ("you have been added as a contributor") and the contributors list in the project's metadata. Each "contribution" is a work event in which the creator worked for themselves, repeated once per contributor.
Why it matters
- ValueFlows attribution is wrong. In VF,
providerof aworkevent is the agent who did the work. Traces, DPP history and anything that reads events will credit the creator, not the contributor. - Economics/reputation. Strengths/idea points use the contributor id separately, so the events and the points already disagree.
- Metadata vs. record.
metadata.contributors(editable, unauthenticated as a claim) is the only place the contributor is named, and metadata is not a control or provenance fact.
Why the GUI can't simply fix it
With the authorization stack (#71–#73), the signer must act for the event's provider or receiver. So the creator cannot create a work event with provider: <contributor>. That is correct: otherwise anyone could attribute work to anyone, or impersonate them.
Options (to discuss)
- Contributor confirms (recommended direction): the creator publishes an intent (
work, provider = contributor,inputOfthe creation process). The contributor accepts it from their inbox, and that creates theworkevent signed by them, satisfying the intent. This is VF-native and fits the existing invited-party rule. It needs a small GUI flow on the contributor's side. - Receiver-side record: the creator records a
workevent withreceiver: creatorand the contributor as provider, allowed by a new policy rule. This weakens "you can't attribute work to someone else" and is not recommended. - Keep attribution out of economic events: drop the self-
workevents and treatmetadata.contributorsas an unverified list until (1) exists.
Scope
Backend policy is fine as is. The fix is a product/flow decision, then SDK and GUI work. Until then, any report on "who contributed" should be read from neither the events nor the metadata as authoritative.
Refs #74. Evidence: real signed probe and code paths described in interfacerproject/interfacer-gui#919.
- Lingua principale
- Elixir
- Stelle
- 18
- Fork
- 4
- Merge medio
- 22g 17h
- PR unite (30g)
- 1
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di interfacerproject/zenflows
-
transfer into an existing resource hands the source resource's rights and custody to the receiverAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
-
workstream:authz-integration
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
interfacerproject/zenflows#74 · 12 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
Allow users to register with email addressesForse di nuovo libera @protodeniz l’ha presa 1302 giorni fa e non c’è nessuna pull request aperta. Aperta
interfacerproject/zenflows#54 · 1 assegnatario ·
Tutte le issue di interfacerproject/zenflows
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
intellij-elixir/intellij-elixir#4938 ·
I maintainer di solito rispondono entro 1 giorno
-
Attribute selectors match elements without the attribute; [x^=''] matches everythingForse già presa @bardrop l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
expert-lsp/expert#1040 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
ash-project/ash_mysql#278 · 2 commenti ·
-
L: github:actions L: javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
dependabot/dependabot-core#17100 ·
I maintainer di solito rispondono entro 2 giorni