Expand pubsub, economy, routing-advanced, and platform categories.

Manual pass adds listChannels, totalSupply, openCount, listSessionIds, new api.md files, corrected trust/reactive/conflict getStats docs, and category README hubs for routing-advanced, measurement, pear-platform, and trust-security.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 00:58:14 -04:00
co-authored by Cursor
parent 0a75712c81
commit f1536f9b6b
19 changed files with 176 additions and 367 deletions
+12 -7
View File
@@ -1,18 +1,23 @@
# Trust & security
**Path:** `modules/trust-security/` · **Modules:** 5 (production)
**Path:** `modules/trust-security/` · **Modules:** 8 (production)
Reputation scoring, attestations, trust graphs, circuit breakers, and peer allowlists.
Reputation, attestations, trust graphs, encrypted topics, key/session rotation, multisig, and blind handoffs.
## Modules
| Module | Protocol | Highlights |
|--------|----------|------------|
| [hyper-p2p-reputation-system](./hyper-p2p-reputation-system/) | `reputation-system/v1` | Decay scores, `getStats` merges metrics |
| [hyper-p2p-attestation-chain](./hyper-p2p-attestation-chain/) | `attestation-chain/v1` | `chainLength()`, linked attestations |
| [hyper-p2p-trust-graph](./hyper-p2p-trust-graph/) | `trust-graph/v1` | Edge weights between peers |
| [hyper-p2p-circuit-breaker](./hyper-p2p-circuit-breaker/) | `circuit-breaker/v1` | Failure thresholds |
| [hyper-p2p-peer-allowlist](./hyper-p2p-peer-allowlist/) | `peer-allowlist/v1` | Explicit peer admission |
| [hyper-p2p-reputation-system](./hyper-p2p-reputation-system/) | `reputation-system/v1` | Decay scores, attestations, bans |
| [hyper-p2p-attestation-chain](./hyper-p2p-attestation-chain/) | `attestation-chain/v1` | `chainLength()`, append-only links |
| [hyper-p2p-trust-graph](./hyper-p2p-trust-graph/) | `trust-graph/v1` | Weighted edges, path trust |
| [hyper-p2p-encrypted-topic](./hyper-p2p-encrypted-topic/) | `encrypted-topic/v1` | Topic-scoped XOR payloads |
| [hyper-p2p-key-rotation](./hyper-p2p-key-rotation/) | `key-rotation/v1` | Scheduled material rotation |
| [hyper-p2p-session-rotation](./hyper-p2p-session-rotation/) | `session-rotation/v1` | Versioned session tokens |
| [hyper-p2p-multisig-threshold](./hyper-p2p-multisig-threshold/) | `multisig-threshold/v1` | Threshold proposals |
| [hyper-p2p-blind-pair-handoff](./hyper-p2p-blind-pair-handoff/) | `blind-pair-handoff/v1` | Offer/accept/complete handoff |
Note: local **circuit-breaker** lives under `routing-advanced`, not this category.
## Test
@@ -61,8 +61,7 @@ const mod = new HyperP2PAttestationChain(opts)
## getStats()
Returns `{ ...this._stats }` — typically `ops`, `errors`, and module-specific counters (`created`, `relays`, `open`, `peers`, etc.).
Library-only modules may include `mode: 'local'`.
`{ ops, errors, length, protocol: 'attestation-chain/v1' }``length` matches `chainLength()`.
## Errors
@@ -104,8 +104,7 @@ const mod = new HyperP2PReputationSystem(opts)
## getStats()
Returns `{ ...this._stats }` — typically `ops`, `errors`, and module-specific counters (`created`, `relays`, `open`, `peers`, etc.).
Library-only modules may include `mode: 'local'`.
Merges `_stats`, `metrics`, and `peers` (score map size). Prefer this over the stub `{ ops, errors }` noted in older README text.
## Errors