@arcanea/council 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @arcanea/council
|
|
2
|
+
|
|
3
|
+
Guardian Council consensus mechanics — Byzantine, Raft, Gossip, and Gate Quorum protocols for the Ten Guardians.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @arcanea/council
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
const { Council } = require('@arcanea/council');
|
|
15
|
+
const { RaftConsensus } = require('@arcanea/council/consensus');
|
|
16
|
+
|
|
17
|
+
const council = new Council({ guardians: 10 });
|
|
18
|
+
|
|
19
|
+
// Run a Raft consensus round
|
|
20
|
+
const raft = new RaftConsensus(council);
|
|
21
|
+
const decision = await raft.propose({
|
|
22
|
+
action: 'deploy:artifact',
|
|
23
|
+
requiredMajority: 0.6
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
console.log(decision.accepted); // true | false
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
| Export | Description |
|
|
32
|
+
|---|---|
|
|
33
|
+
| `Council` | Core council orchestrator for the Ten Guardians |
|
|
34
|
+
| `ByzantineConsensus` | Byzantine fault-tolerant consensus protocol |
|
|
35
|
+
| `RaftConsensus` | Raft leader-election and log replication |
|
|
36
|
+
| `GossipProtocol` | Gossip-based state dissemination |
|
|
37
|
+
| `GateQuorum` | Gate Quorum — threshold-based gating decisions |
|
|
38
|
+
|
|
39
|
+
### Subpath Exports
|
|
40
|
+
|
|
41
|
+
- `@arcanea/council/consensus` — all consensus protocol implementations
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcanea/council",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Guardian Council consensus mechanics — Byzantine, Raft, Gossip, and Gate Quorum protocols for the Ten Guardians",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcanea/guardian-memory": "
|
|
43
|
+
"@arcanea/guardian-memory": "^0.1.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^25.3.0",
|