Skip to content

Commit 797b959

Browse files
committed
Science Commit 5.
1 parent 27f2f03 commit 797b959

13 files changed

Lines changed: 1178 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ Approximate heap/RSS at steady state on Linux x86_64, Java 21 with virtual threa
259259
| NationalFinanceID (port 49152) | ~20 MB | Keypair generator + profile cache |
260260
| Communicator (port 49199) | ~15 MB | Chat history + message queues |
261261
| Weather/Calendar/ASCII | ~10 MB | Lightweight socket handlers |
262+
| GrayPortRegistry (port 9999) | ~30 MB | NIO selector + block map + AI gate + DB pool |
263+
| Gray85 Crème Registry (port 10085) | ~35 MB | NIO selector + block map + Crème state + AI gate + DB pool |
262264

263265
**Totals (approximate):**
264266

configuration/masquerade-modules.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,28 @@
8989
<description>Presidential species/postal/art/science module. NC college block.</description>
9090
</module>
9191

92+
<!-- modules/gray — Installer ID Tech™ Port Registry -->
93+
94+
<module id="GrayPortRegistry">
95+
<name>Installer ID Tech™ Port Registry</name>
96+
<port>9999</port>
97+
<masquerade-aware>true</masquerade-aware>
98+
<class>modules.gray.GrayPortRegistryServer</class>
99+
<trust-level>9.0</trust-level>
100+
<source>modules/gray</source>
101+
<block>Independent</block>
102+
<description>Control-loop independent port registry. 30M ports/block, 1000 blocks. Bitcoin/Dash. AI-gated binding.</description>
103+
</module>
104+
105+
<module id="Gray85CremeRegistry">
106+
<name>Installer ID Tech™ Gray.85 Crème Registry</name>
107+
<port>10085</port>
108+
<masquerade-aware>true</masquerade-aware>
109+
<class>modules.gray85.Gray85PortRegistryServer</class>
110+
<trust-level>9.0</trust-level>
111+
<source>modules/gray.85</source>
112+
<block>Independent</block>
113+
<description>85/100 open, 15/100 Crème-locked (planetary clean). $1000 USD Crème unlock. AI-gated.</description>
114+
</module>
115+
92116
</masquerade-modules>
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!--
3+
Gray.85 Module — Crème Port Registry Configuration
4+
===================================================
5+
Same architecture as Gray, but 15 out of every 100 ports are implicitly
6+
and tightly locked under Crème — auditor control already clean, planetary.
7+
8+
Crème ports: Auditor-controlled, planetary clean. Locked by default.
9+
Opened only for $1000 USD donations, for an hour or more.
10+
11+
Ratio: 85 open / 15 Crème-locked per 100 ports in every block.
12+
Blocks: 30,000,000 ports each, 1000 blocks initially.
13+
Crème-locked ports per block: 4,500,000 (15%)
14+
15+
Brand: Installer ID Tech™
16+
Database: nwe_gray85_registry (MySQL)
17+
Client port: 10085
18+
19+
Author: Max Rupplin — MEARVK LLC — Installer ID Tech™
20+
-->
21+
<gray85-port-registry>
22+
23+
<!-- Service configuration -->
24+
<service port="10085" host="0.0.0.0" name="Installer ID Tech™ Gray.85 Crème Registry"
25+
banner="Installer ID Tech™ Gray.85 — 85/100 open, 15/100 Crème-locked (planetary clean) — $1000 USD to unlock Crème"
26+
enabled="true"/>
27+
28+
<!-- AI binary gate -->
29+
<ai-gate enabled="true" class="modules.gray85.PortBindingGate85"
30+
description="Binary 1/0 gate — enforces Crème lock on 15% ports"/>
31+
32+
<!-- Block configuration -->
33+
<blocks>
34+
<block-size>30000000</block-size>
35+
<initial-blocks>1000</initial-blocks>
36+
<total-ports>30000000000</total-ports>
37+
</blocks>
38+
39+
<!-- Crème configuration — 15 of every 100 ports locked -->
40+
<creme>
41+
<ratio-locked>15</ratio-locked>
42+
<ratio-open>85</ratio-open>
43+
<ratio-base>100</ratio-base>
44+
<locked-ports-per-block>4500000</locked-ports-per-block>
45+
<nature>planetary-clean</nature>
46+
<auditor-control>already-clean</auditor-control>
47+
<description>Crème ports are auditor-controlled, planetary. Already clean. Implicitly tight-locked.</description>
48+
<unlock-donation-usd>1000.00</unlock-donation-usd>
49+
<unlock-minimum-duration-hours>1</unlock-minimum-duration-hours>
50+
<unlock-terms>
51+
<term name="hour" hours="1" price-usd="1000.00" price-btc="0.015"/>
52+
<term name="day" hours="24" price-usd="5000.00" price-btc="0.075"/>
53+
<term name="week" hours="168" price-usd="20000.00" price-btc="0.30"/>
54+
</unlock-terms>
55+
</creme>
56+
57+
<!-- Standard lease terms (for the 85% open ports) -->
58+
<lease>
59+
<default-term>month</default-term>
60+
<terms>
61+
<term name="month" days="30" price-btc="0.00015" price-usd="10.00"/>
62+
<term name="year" days="365" price-btc="0.0015" price-usd="100.00"/>
63+
<term name="multi-year" days="1095" price-btc="0.004" price-usd="250.00"/>
64+
</terms>
65+
<minimum-donation-usd>10.00</minimum-donation-usd>
66+
<accepted-currencies>
67+
<currency name="Bitcoin" symbol="BTC" primary="true"/>
68+
<currency name="Dashcoin" symbol="DASH" primary="false"/>
69+
</accepted-currencies>
70+
</lease>
71+
72+
<!-- NIO binding: 127.0.X.X range -->
73+
<nio-binding>
74+
<ip-range-start>127.0.0.1</ip-range-start>
75+
<ip-range-end>127.0.255.255</ip-range-end>
76+
<ports-per-ip>65536</ports-per-ip>
77+
</nio-binding>
78+
79+
<!-- MySQL database -->
80+
<database>
81+
<name>nwe_gray85_registry</name>
82+
<host>localhost</host>
83+
<port>3306</port>
84+
<user>nwe</user>
85+
<tables>
86+
<table name="leases" description="Standard port block leases (85% open)"/>
87+
<table name="creme_unlocks" description="Crème unlock events — $1000+ donations"/>
88+
<table name="connections" description="Client connection log — IP, domain, time, geo, bitcoin"/>
89+
<table name="payments" description="Bitcoin/Dash transaction records"/>
90+
<table name="blocks" description="Port block allocation and Crème status"/>
91+
</tables>
92+
</database>
93+
94+
<!-- Startup: enabled by default -->
95+
<startup auto-start="true" priority="6"/>
96+
97+
</gray85-port-registry>
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
-- nwe_gray85_registry — MySQL schema for Installer ID Tech™ Gray.85 Crème Port Registry
2+
-- 15/100 ports Crème-locked (planetary clean, auditor-controlled)
3+
-- Unlockable for $1000 USD donation, 1 hour minimum
4+
-- Author: Max Rupplin — MEARVK LLC
5+
6+
CREATE DATABASE IF NOT EXISTS nwe_gray85_registry
7+
CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
8+
9+
USE nwe_gray85_registry;
10+
11+
-- Standard port block leases (85% open ports)
12+
CREATE TABLE IF NOT EXISTS leases (
13+
id BIGINT AUTO_INCREMENT PRIMARY KEY,
14+
block_id INT NOT NULL,
15+
term VARCHAR(20) NOT NULL DEFAULT 'month',
16+
btc_txid VARCHAR(128) NOT NULL,
17+
client_ip VARCHAR(45) NOT NULL,
18+
leased_at DATETIME NOT NULL,
19+
expires_at DATETIME NOT NULL,
20+
active BOOLEAN DEFAULT TRUE,
21+
INDEX idx_block (block_id),
22+
INDEX idx_expires (expires_at),
23+
INDEX idx_client (client_ip)
24+
) ENGINE=InnoDB;
25+
26+
-- Crème unlock events — $1000+ donations
27+
CREATE TABLE IF NOT EXISTS creme_unlocks (
28+
id BIGINT AUTO_INCREMENT PRIMARY KEY,
29+
block_id INT NOT NULL,
30+
port_offset INT NOT NULL COMMENT 'Offset within the Crème 15% range',
31+
btc_txid VARCHAR(128) NOT NULL,
32+
client_ip VARCHAR(45) NOT NULL,
33+
donation_usd DECIMAL(10,2) NOT NULL,
34+
duration_hours INT NOT NULL DEFAULT 1,
35+
unlocked_at DATETIME NOT NULL,
36+
expires_at DATETIME NOT NULL,
37+
active BOOLEAN DEFAULT TRUE,
38+
INDEX idx_block (block_id),
39+
INDEX idx_expires (expires_at),
40+
INDEX idx_txid (btc_txid)
41+
) ENGINE=InnoDB;
42+
43+
-- Client connection log
44+
CREATE TABLE IF NOT EXISTS connections (
45+
id BIGINT AUTO_INCREMENT PRIMARY KEY,
46+
ip VARCHAR(45) NOT NULL,
47+
domain VARCHAR(255),
48+
connected_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
49+
geo VARCHAR(128),
50+
bitcoin_addr VARCHAR(64),
51+
INDEX idx_ip (ip),
52+
INDEX idx_time (connected_at)
53+
) ENGINE=InnoDB;
54+
55+
-- Bitcoin/Dash payment records
56+
CREATE TABLE IF NOT EXISTS payments (
57+
id BIGINT AUTO_INCREMENT PRIMARY KEY,
58+
btc_txid VARCHAR(128) NOT NULL UNIQUE,
59+
block_id INT NOT NULL,
60+
term VARCHAR(20) NOT NULL,
61+
payment_type ENUM('lease','creme_unlock') NOT NULL DEFAULT 'lease',
62+
client_ip VARCHAR(45) NOT NULL,
63+
amount_btc DECIMAL(18,8),
64+
amount_usd DECIMAL(10,2),
65+
currency VARCHAR(10) DEFAULT 'BTC',
66+
paid_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
67+
INDEX idx_txid (btc_txid),
68+
INDEX idx_block (block_id),
69+
INDEX idx_type (payment_type)
70+
) ENGINE=InnoDB;
71+
72+
-- Port block allocation with Crème status
73+
CREATE TABLE IF NOT EXISTS blocks (
74+
block_id INT PRIMARY KEY,
75+
start_port BIGINT NOT NULL,
76+
end_port BIGINT NOT NULL,
77+
open_ports INT NOT NULL DEFAULT 25500000 COMMENT '85% of 30M',
78+
creme_ports INT NOT NULL DEFAULT 4500000 COMMENT '15% of 30M — locked',
79+
status ENUM('available','leased','reserved') DEFAULT 'available',
80+
lease_id BIGINT,
81+
INDEX idx_status (status)
82+
) ENGINE=InnoDB;
83+
84+
-- Pre-populate 1000 blocks
85+
DELIMITER //
86+
CREATE PROCEDURE IF NOT EXISTS populate_gray85_blocks()
87+
BEGIN
88+
DECLARE i INT DEFAULT 0;
89+
WHILE i < 1000 DO
90+
INSERT IGNORE INTO blocks (block_id, start_port, end_port, open_ports, creme_ports, status)
91+
VALUES (i, i * 30000000, (i * 30000000) + 29999999, 25500000, 4500000, 'available');
92+
SET i = i + 1;
93+
END WHILE;
94+
END //
95+
DELIMITER ;
96+
97+
CALL populate_gray85_blocks();

0 commit comments

Comments
 (0)