From 63b43a0f4d775265c0c37136a1acda0579f33636 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Mon, 13 Mar 2023 21:25:54 -0500 Subject: [PATCH] Add example of negatively citing a zero-value post Also adds misc. notes --- forum-network/notes/forum.md | 8 ++++ forum-network/notes/matrix.md | 9 +++++ .../src/classes/dao/validation-pool.js | 3 +- forum-network/src/index.html | 1 + forum-network/src/tests/all.test.html | 1 + forum-network/src/tests/forum7.test.html | 26 +++++++++++++ .../src/tests/scripts/forum/forum6.test.js | 9 +---- .../src/tests/scripts/forum/forum7.test.js | 39 +++++++++++++++++++ 8 files changed, 86 insertions(+), 10 deletions(-) create mode 100644 forum-network/notes/matrix.md create mode 100644 forum-network/src/tests/forum7.test.html create mode 100644 forum-network/src/tests/scripts/forum/forum7.test.js diff --git a/forum-network/notes/forum.md b/forum-network/notes/forum.md index 2a3f76a..8057d1b 100644 --- a/forum-network/notes/forum.md +++ b/forum-network/notes/forum.md @@ -10,3 +10,11 @@ Effective power can be considered as a flow rate of posts; (value per post) / (d Internal energy is similar to Forum total value / DAO total reputation Total available reputation is similar to thermodynamic free energy + +--- + +Examples to add: + +- Incinerator + +- Negatively cite a zero-value post -- intent is to show how governance might cite a post as a counter-example diff --git a/forum-network/notes/matrix.md b/forum-network/notes/matrix.md new file mode 100644 index 0000000..f5a0f5b --- /dev/null +++ b/forum-network/notes/matrix.md @@ -0,0 +1,9 @@ +Matrix is a communications network. +It has a client-server, server-server decentralized architecture. +Rooms are synced (eventually consistent) among all servers with clients participating in the room. + +Matrix supports "Application Services", which are limited to funcion in a passive mode, meaning they only piggyback on top of the existing protocols. + +Synapse, a Matrix server implementation, supports "Modules" + +The Matrix devs recognize the need for a robust reputation system and are in pursuit of funding and development for that purpose. diff --git a/forum-network/src/classes/dao/validation-pool.js b/forum-network/src/classes/dao/validation-pool.js index 4781608..d288b29 100644 --- a/forum-network/src/classes/dao/validation-pool.js +++ b/forum-network/src/classes/dao/validation-pool.js @@ -54,8 +54,7 @@ export class ValidationPool extends ReputationHolder { || [null, undefined].includes(duration) ) { throw new Error( - `Duration must be in the range [${params.voteDuration.min}, ${ - params.voteDuration.max ?? 'Inf' + `Duration must be in the range [${params.voteDuration.min}, ${params.voteDuration.max ?? 'Inf' }]; got ${duration}`, ); } diff --git a/forum-network/src/index.html b/forum-network/src/index.html index d587684..b3836c6 100644 --- a/forum-network/src/index.html +++ b/forum-network/src/index.html @@ -21,6 +21,7 @@
  • Redistribute power through subsequent support
  • Destroy a post after it has received positive citations
  • Initially zero-valued posts later receive citations
  • +
  • Negatively cite a zero-valued post