HiNet.

Documentation  /  Network integration note

HiNet Decentralized Network — Integration Note

Synthesis across the seven draft specs: Identity/Registry (P-I), Routing/Aggregation (P-J), Grand Monorepo (P-K), Onboarding/Harness (P-H), Owner-Identity & Proof-of-Personhood (HiNet-Owner-Identity-and-Proof-of-Personhood.md — proof-of-personhood + biometric owner key, the Sybil gate for payout routing), Query-Classification & Quorum-Cache (HiNet-Query-Classification-and-Quorum-Cache.md — query→topic-set→quorum-cache keying), and Quorumz-Map Integration (HiNet-Quorumz-Map-Integration.md — the node pool as a Quorumz-map layer). Purpose: lock the shared contracts, fix the build order, and surface the decisions only the owner can make.


1. Cross-cutting decisions that MUST stay consistent

These are the load-bearing contracts. If any one drifts between specs, the others silently break.

1.1 One key, one identity, everywhere

Resolved — node_id derivation unified. P-I §1.2 is authoritative: icore_ + crockford_base32(sha256(0x01‖pubkey)[:20]) (domain byte, 20 bytes → 32 chars). P-H (Onboarding) now references P-I's formula rather than restating a divergent one, so ids are consistent network-wide.

1.2 The registry is the shared backbone (index, never authority)

Resolved — one API surface + one CompetenceSignature. - Endpoints: unified on P-I's /v1/* — the earlier route-name variants across specs were renamed to match; GM's /refs + /coordinator and the relay/ledger sit as namespaces on it. Anti-replay unified on P-I's challenge-nonce (P-J's nonce+ts ±120s is a compatible profile). - CompetenceSignature: the per-speciality model is canonical. Competence is now per-speciality Verifiable Competence Attestation (Routing §2.5) with a derived effective_strength; P-I §4.1's single node-level competence_centroid is demoted to a coarse ANN discovery hint, and the registry stores per-(node, speciality) attestation rows (Node-Identity §4.5).

1.3 How routing consumes the capability index (clean seam)

1.4 How the monorepo reuses node identity + the economy


2. Dependency order + phased build roadmap

Dependency spine: Identity module (P-I §1)hinet-registry (P-I §2)network routing + GM refs (P-J/P-K)real P2P transport + decentralized FSDHT/settlement/TEE-zk. Onboarding + harness (P-H) are mostly local and can proceed in parallel from day one. Three newer specs slot onto this spine: Owner-Identity & Proof-of-Personhood (HiNet-Owner-Identity-and-Proof-of-Personhood.md) hangs off the identity module (P-I §1) — proof-of-personhood + biometric owner key, hardened at P1 as the Sybil gate for payout routing; Query-Classification & Quorum-Cache (HiNet-Query-Classification-and-Quorum-Cache.md) layers onto network routing (P-J) at P1 — query→topic-set→quorum-cache keying over discovery; Quorumz-Map Integration (HiNet-Quorumz-Map-Integration.md) surfaces the registry node pool as a Quorumz-map layer, available once the registry lands at P1.

Phase What ships Depends on Buildable on existing hinetd?
P0 — Local, now (no central deps) Onboarding funnel state machine + DownloadManager (instrument the existing silent prefetch into resumable/retry/progress); /node/model/plan rationale; name-your-node; progressive readiness; switch-to-smaller. Identity module (in-process Ed25519, node_id, recovery phrase, sign the existing audit chain). Harness extractionPluginRegistry/PluginManifest, wrap existing vault+dev tools as plugins, consent+audit gating on write/egress. ask_mode:own. Cursor/VSCode bridge + one-click config; hinet CLI (read-only dev agent over existing confined tools); SSE trace. RAM-adaptive select, /v1/agent loop, dev tools, audit chain, consent store — all [EXISTS] Yes — this is the bulk of P-H + the identity module, no registry/P2P needed.
P1 — Registry backbone (central, no P2P) hinet-registry (Cloud SQL+pgvector, Cloud Run, dedicated GCP). NodeRecord + register/heartbeat/revoke/upsert + handle (first-claim) + signed-record export (the forward-compat hook). CompetenceSignature (declared) from DeltaView → ANN discover + tag filters. Registration funnel step (A6). network ask-mode as LAN/loopback simulation: discovery via registry, committee/MoA + retrieval-union aggregation, QueryReceipt/AnswerReceipt split computed+logged, Tier-1 signed receipts on the audit chain. P0 identity + the registry service Registry is new; the node-side (RegistryClient, competence build, committee aggregator) rides existing /v1/agent.
P2 — Real transport + GM MVP (central + decentralized-FS, no DHT) Relay (outbound tunnel) → real signed-HTTP WAN fan-out + endpoint challenge-response. GM MVP: IPLD dag-cbor objects on IPFS + central pinning; RefRegistry (monotonic signed, audit-chained refs); Proposal/Review/MergeDecision/GovernanceDoc; single-maintainer + single-builder gate (hermetic BuildWorkOrderBuildReceipt); AttributionRecord; dev-agent contribution tools (repo_* consent, human-approval on egress). ask_mode:auto right-sizing router. challenged competence proofs. P1 registry + a decentralized-FS/pinning stack Node side reuses dev-tool confinement + ComputeBackend seam; central pinning + IPFS are new.
P3 — Decentralization + trust hardening (later/research) libp2p (PeerId from the same key) / gossipsub / Kademlia DHT; Helia content-addressed receipts first. MoErging/weight-merge on an attested qCore host (TEE); BTX. Settlement (metering/micropayments/on-chain). TEE (Tier 3) / zkLLM (Tier 5) verification. Transparency log, decentralized naming (D4) + ANN (D5), IPNS/on-chain refs, iCorp private overlay, genesis-key rotation, wallet binding, usage royalties. P2 No — needs external protocol/infra investment.

Critical-path note: P-J's network and P-K's whole model both hard-depend on the P-I identity module + registry. Build the identity module + thin registry first even though P-H's funnel/harness looks like the "product" — the funnel's registration step and the harness's network mode are stubs until P1 lands. P0 (local funnel + identity + harness) delivers standalone value with zero central dependency and should start immediately.


3. Top open decisions for the owner

Ranked by how much they gate the build.

  1. P2P protocol & transport phasing. Three candidate steps: (a) LAN/loopback simulation (P-H MVP, tests aggregation+attribution with no relay), (b) relay-based signed-HTTP over Quorumz (P-J MVP — real WAN, laptops are outbound-only behind NAT), (c) libp2p (AutoNAT/Circuit-Relay/DCUtR + gossipsub + DHT) — build, or adopt SAM (Sovereign Agent Mesh) (Google, Apache-2.0), which packages libp2p relay + environment-agnostic crypto identity + MCP tool routing as a ready substrate. Evaluate adopt-vs-build at P3 (caveats: unsupported project; keep our self-certifying identity + transport-agnostic wire so SAM is swappable). See Routing §4.2. Decision: confirm the sim → relay → libp2p order, and when libp2p is worth it. Keep every wire message (QuorumRequest/AnswerReceipt) transport-agnostic so the same bytes ride HTTP or a libp2p stream unchanged. (P-H A-iv, P-J §4.2.)

  2. Decentralized-FS choice for GM + VaultReplication. IPFS/Helia + central pinning is the MVP both specs assume; Arweave for permanent tagged releases; Storj/Filecoin for paid durable pinning. Decision: ratify IPFS-MVP as the shared substrate for GM (plaintext) and VaultReplication (ciphertext), and pick the pre-token anti-spam bond currency (reputation-only vs off-chain credit) since pinning economics gate GM spam control. (P-K §2.2, §7, §11.5, §11.9.)

  3. Central-vs-DHT registry — and when to pay for decentralization. Central Cloud SQL now (fast global discovery, capability ANN, handle uniqueness, single cold-start reach) vs DHT/on-chain later (censorship-resistant, but ANN-on-DHT and sybil-resistant naming are the genuinely hard parts, D4/D5). This one decision covers both identity discovery and GM ref anchoring. Recommendation to confirm: central-MVP with signed-record export as the migration hook; target a hybrid where the registry stays a bootstrap + naming authority + optional fast index even after a DHT lands. (P-I §5, P-K §2.3.)

  4. Aggregation default. Ship committee/MoA + retrieval-union only for MVP: it's the only mode that works across different anchor DNAs/compat-classes, moves no weights or raw data, and hits ~ceiling quality — the privacy default. MoErging/weight-merge is deferred (needs an attested qCore host + Δ_public exchange). Decision: confirm committee-only MVP with the mode-selector's MoErging branches feature-flagged to COMMITTEE so no re-architecture when the host lands. (P-J §3.2, §3.3.)

Secondary decisions to settle early (they shape schemas): - Registration default: opt-in + strong nudge (sovereign ethos) vs opt-out (network effect). Recommend opt-in. (P-H A-i.) - Sybil gating strength / owner_ref mandatory: anonymous nodes in the public pool vs account/wallet-gated registration — privacy vs sybil-resistance. (P-I D6/D7, P-J §5.5.) - CompetenceSignature centroid model (single node-level vs per-speciality) and node_id formula — see the ⚠️ reconciliations in §1.2/§1.1; these must be fixed before the registry DDL and the ANN index are built, not after. - Two-key vs one-key identity (D1) and id-stability across genesis rotation (D2) — recommend the two-key split + pin-id-to-genesis, since routing/GM/economy all assume a stable, reputation-bearing node_id that survives key rotation.


Next: Node identity & registry →  ·  All documentation →