⚠️ IMPORTANT: contribution `work` events record the project creator, not the contributor
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 8/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- graphql, typescript
- Domain
- api, authorization
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Elixir
- Stars
- 18
- Forks
- 4
- Avg merge
- 22d 17h
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from interfacerproject/zenflows
-
transfer into an existing resource hands the source resource's rights and custody to the receiverOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
-
workstream:authz-integration
Difficulty 5/5 Over a week Newbie friendliness 5/100
interfacerproject/zenflows#74 · 12 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Allow users to register with email addressesMay be free again @protodeniz claimed this 1302 days ago, and no pull request is open. Open
interfacerproject/zenflows#54 · 1 assignee ·
All issues in interfacerproject/zenflows
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
intellij-elixir/intellij-elixir#4938 ·
Maintainers usually reply within 1 day
-
Attribute selectors match elements without the attribute; [x^=''] matches everythingPossibly taken @bardrop claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
expert-lsp/expert#1040 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
ash-project/ash_mysql#278 · 2 comments ·
-
L: github:actions L: javascript
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
dependabot/dependabot-core#17100 ·
Maintainers usually reply within 2 days