From 47cb7224eb7d8ffb5a8e270d7de65cfb8b69094b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Dec 2025 09:48:30 +0000 Subject: [PATCH 1/3] Relax collection weight constraint - remove requirement to sum to 100 Updated activityWeight description to allow flexible weight values that don't need to sum to 100. This removes unnecessary complexity around weight recalculation when modifying collections while maintaining backward compatibility. Frontends can normalize weights as needed for display. Closes #18 Co-authored-by: aspiers <100738+aspiers@users.noreply.github.com> --- README.md | 8 ++++---- lexicons/org/hypercerts/claim/activity.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 20f2fe40..87a9a19f 100644 --- a/README.md +++ b/README.md @@ -192,10 +192,10 @@ Hypercerts-specific lexicons for tracking impact work and claims. ##### activityWeight -| Property | Type | Required | Description | -| ---------- | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `activity` | `ref` | ✅ | A strong reference to a hypercert activity record. This activity must conform to the lexicon org.hypercerts.claim.activity | -| `weight` | `string` | ✅ | The weight/importance of this hypercert activity (a percentage from 0-100, stored as a string to avoid float precision issues). The total activity weights should add up to 100. | +| Property | Type | Required | Description | +| ---------- | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `activity` | `ref` | ✅ | A strong reference to a hypercert activity record. This activity must conform to the lexicon org.hypercerts.claim.activity | +| `weight` | `string` | ✅ | The relative weight/importance of this hypercert activity (stored as a string to avoid float precision issues). Weights can be any positive numeric values and do not need to sum to a specific total; normalization can be performed by the consuming application as needed. | --- diff --git a/lexicons/org/hypercerts/claim/activity.json b/lexicons/org/hypercerts/claim/activity.json index 307de0b2..dbd23ae1 100644 --- a/lexicons/org/hypercerts/claim/activity.json +++ b/lexicons/org/hypercerts/claim/activity.json @@ -127,7 +127,7 @@ }, "weight": { "type": "string", - "description": "The weight/importance of this hypercert activity in the project (a percentage from 0-100, stored as a string to avoid float precision issues). The total activity weights should add up to 100." + "description": "The relative weight/importance of this hypercert activity (stored as a string to avoid float precision issues). Weights can be any positive numeric values and do not need to sum to a specific total; normalization can be performed by the consuming application as needed." } } } From 7abf8faa6643fca68014642cc179bb132ed629d2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Dec 2025 09:43:57 +0000 Subject: [PATCH 2/3] Initial plan From 811a8079471b28e522b9ae4221bec9f18a94dca7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Dec 2025 10:25:18 +0000 Subject: [PATCH 3/3] Trigger push after rebase