Compare commits

..
Author SHA1 Message Date
eric 5dcdc1cdc6 Merge branch 'main' into v2.1 2026-11-01 22:07:09 +00:00
eric b88dfb1e94 deploy 2026-11-01 16:43:28 -05:00
eric b427fa4217 Mainnet 2026-10-29 11:45:51 -04:00
eric b3a1179703 Remove markets 2026-10-28 18:33:52 -04:00
eric eea2deb1fb Removed markets 2026-10-28 17:09:58 -04:00
eric 216a419c0b Observer integration step 2026-10-23 10:20:58 -04:00
eric bd3d36a7e1 Bounded test succeeded; native RandomX miner accepted one block 2026-10-22 21:25:39 -04:00
eric 176d1927a8 Added pilot-bound Monero observation persistence and the one-shot monero:pilot-observe command 2026-10-22 20:04:05 -04:00
eric 36963fed30 Added the guarded, one-shot monero:pilot-address command 2026-10-22 19:10:08 -04:00
eric 83d3d104c1 operator/library-only Wallet-RPC address creation and recovery 2026-10-22 18:55:05 -04:00
eric 2ecb42c019 Durable, beneficiary-bound subaddress index reservation 2026-10-22 17:26:13 -04:00
eric 84e6e08209 Validation-only pilot contract 2026-10-22 16:11:36 -04:00
eric 359f0df32d Separate identity-only pilot custody foundation 2026-10-22 15:40:37 -04:00
eric d8780701e6 monerod get_info 2026-10-22 15:22:23 -04:00
eric 3f04c3afa9 Real XMR pilot 2026-10-22 14:40:00 -04:00
eric 52559f65d7 Ledger-side credit and withdrawal-intent paths 2026-10-22 13:28:55 -04:00
eric 4fea176877 Opt-in, mainnet-only deposit-address API 2026-10-22 11:44:32 -04:00
eric b865807272 Signed, beneficiary-bount Monero subaddress enrollment 2026-10-22 11:33:38 -04:00
eric 5d607c1521 Removed SHKeeper 2026-10-22 10:45:32 -04:00
eric e835238d05 Hardened systemd deployment contract for read-only Monero observer 2026-10-22 10:08:15 -04:00
eric 158981e965 Implemented and validated the separate Monero observation-worker path 2026-10-22 09:38:20 -04:00
eric 12f80fdc53 Private CLI workflow for reviewed depowit operations 2026-10-22 02:09:07 -04:00
eric 05aead39ae Reviewed release and reorg-hold resolution 2026-10-21 22:24:42 -04:00
eric 9f82f050b4 Verified incoming transfers against Monero Wallet PRC 2026-10-21 21:34:46 -04:00
eric af646dcc32 First deposit integration slice 2026-10-21 20:07:27 -04:00
eric e3b2261da3 Stagenet rehearsal passed 2026-10-21 18:38:25 -04:00
eric 40f4aa6d4e Started Walet RPC auth work without adding MD5 Digest support 2026-10-21 17:33:33 -04:00
eric f00ea55dfd Stagenet wallet rehearsal passed 2026-10-21 16:53:59 -04:00
eric 0534cde1a9 Added wallet-identity check before allocation 2026-10-21 15:25:00 -04:00
eric c8cf8245fc Wallet subaddress creation with retry recovery 2026-10-21 15:12:05 -04:00
eric e70199ecb0 Implemented PostgreSQL v3 allocation-registry groundwork 2026-10-21 14:59:15 -04:00
eric ee5dc35330 Implemented the next deposit-observation step without activating live deposits 2026-10-21 14:09:55 -04:00
eric 79abaa78f2 Read-only Monero wallet-RPC observer 2026-10-21 13:05:57 -04:00
eric c07f3a737b Loopback HTTP benchmark 2026-10-21 12:40:00 -04:00
eric 74f269923c Moved canonical transaction, NFT, and mempool reads into a separate read-only Ledger SQLite connection 2026-10-21 12:24:53 -04:00
eric 4566271ce3 Moved canonical transaction, NFT, and mempool fact reads into the reconciliation worker's own read-only SQLite snapshot 2026-10-21 12:18:33 -04:00
eric 9282c0234d Moved reconciliation row selection and order/listing status evaluation into the worker thread 2026-10-21 11:35:37 -04:00
eric 7b6873921a Worker-owned reconciliation commits 2026-10-21 11:07:36 -04:00
eric a127a40293 Reconciliation uses 32-row SQLite slices 2026-10-21 10:29:45 -04:00
eric 6adfda3cf0 Extended benchmark 2026-10-21 10:14:34 -04:00
eric 687b628424 Market-journal reconciliation benchmark 2026-10-21 10:06:56 -04:00
eric 1f11210b5b Bounded reconciliation increment 2026-10-21 09:57:50 -04:00
eric 8b0e2287a5 Paired-backup verifier now checks more than the manifest hash 2026-10-21 02:39:02 -04:00
eric 0ac2073038 Cold-restore rehearsal 2026-10-20 23:18:14 -04:00
eric 5b21074462 Separate one-shot utility 2026-10-20 23:04:29 -04:00
eric ccc6eef951 Added native RandomX integration check 2026-10-20 20:20:31 -04:00
eric 7025c37390 Added opt-in canonical observer polling lifecycle 2026-10-20 20:11:57 -04:00
eric 8cfcf6c025 Strengthened the disposable reorg rehearsal 2026-10-20 19:31:08 -04:00
eric 22da9764eb Per-order terminal reorg linkage 2026-10-20 19:08:19 -04:00
eric e1fbf5e5af Disposable canonical-event inbox rehearsal 2026-10-20 18:50:02 -04:00
eric ca8ff48628 Paid-sale workflow 2026-10-20 17:38:34 -04:00
eric 621611ecd9 TLS 2026-10-20 17:09:22 -04:00
eric 447314440b Strengthen financial reconciliation checks 2026-10-20 16:56:13 -04:00
eric 7734d8ae90 Environment variables 2026-10-20 16:24:01 -04:00
eric 4cac26d84b Persistent PostgreSQL sandbox deployment 2026-10-20 16:02:18 -04:00
eric 84a505c4a5 NFT sale-lock protocol 2026-10-20 15:38:37 -04:00
eric c254c4c537 Custodial financial storage 2026-10-20 15:21:47 -04:00
eric e48081f041 Canonical indexes and recoverable market observation 2026-10-20 14:35:45 -04:00
eric fc65e497a8 Custodial markets 2026-10-20 14:04:59 -04:00
eric 4e753b35fe Recommendation 2026-10-20 13:08:57 -04:00
eric bcd8630a8e Planning 2026-10-20 13:00:08 -04:00
eric a1de67ea14 XMR native 2026-10-20 12:09:58 -04:00
eric 558427545f Production plan 2026-10-20 11:48:34 -04:00
eric d6f230d6b9 Marketplace documentation 2026-10-20 10:54:50 -04:00
eric 2814b46b73 Documentation and UI 2026-10-20 10:40:18 -04:00
eric f2bd3e38e2 RPC 2026-10-20 10:12:33 -04:00
eric 2dd7382004 SHKeeper 2026-10-20 10:06:38 -04:00
eric 55f26d3fad Deployment monitoring and recovery tooling 2026-10-20 09:49:41 -04:00
eric 9d61c177b7 Consensus calibration 2026-10-20 09:26:12 -04:00
eric 4080114085 encryption 2026-10-20 05:27:18 -04:00
eric 3cee89d023 Improvements 2026-10-20 04:07:37 -04:00
eric 0cc5032857 Security 2026-10-20 03:40:26 -04:00
eric 9850fd8554 Markets 2026-10-20 03:14:08 -04:00
eric b1d2b5c10e Trades 2026-10-19 21:47:38 -04:00
eric f8eeae826f Logo 2026-10-19 20:32:25 -04:00
eric baad477ca5 More scalable data storage 2026-10-19 20:17:10 -04:00
5 changed files with 3 additions and 125 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ Mining uses the native CPU RandomX engine. First build the engine, download an e
npm run miner:testnet -- --wallet "path/to/encrypted-backup.json" --consent --node http://127.0.0.1:3101 --blocks 3
```
The example is intentionally testnet-only and uses node-a; the dedicated command pins that profile and its fixed genesis. For mainnet, use `npm run miner` with a chain-bound mainnet backup after satisfying the mainnet launch gates. On mainnet `--node` defaults to the official node, **https://wikideck.eom.dev**; on testnet it defaults to `http://127.0.0.1:3001`. Pass `--node` to use another HTTPS node origin. The miner defaults to one worker, light mode, and one block; `--blocks 3` requests up to three accepted blocks. Press **Ctrl+C** to stop it. Do not put the backup password in a command, environment variable, or repository file. The backup and password are decrypted locally and are not sent to the node.
The example is intentionally testnet-only and uses node-a; the dedicated command pins that profile and its fixed genesis. For mainnet, use `npm run miner` with a chain-bound mainnet backup and the configured HTTPS node origin after satisfying the mainnet launch gates. The miner defaults to one worker, light mode, and one block; `--blocks 3` requests up to three accepted blocks. Press **Ctrl+C** to stop it. Do not put the backup password in a command, environment variable, or repository file. The backup and password are decrypted locally and are not sent to the node.
Each template request asks English Wikipedia for up to ten random pages and retries at most three times to find one with an image and readable extract. The same page may be selected again. The node also captures page size, language-link count, revision, pageviews, and derived scores for the mint-time snapshot. If Wikipedia cannot supply the article or its metadata, template creation returns an error; there is no fixed-article fallback. Validators check and commit the included snapshot without contacting Wikipedia during consensus validation.
-98
View File
@@ -1,98 +0,0 @@
# WikiDeck Night 1: team handbook
Read this whole file before doing anything. It's the contract between about 17 agents on 4 machines.
**Coordinator:** the Claude session on tower-plus (Eric's interactive session).
**Lead/integrator:** `night-lead` on tower-plus.
**Window:** 2026-11-16 22:45 until **01:30 EST, hard stop**.
**Milestone:** https://gitea.eom.dev/claude/wikideck/milestone/63
## Goal
Turn WikiDeck into a game:
1. A **fun, robust, balance-tested card game**, playable in the browser against a private testnet.
2. **eom.dev accounts:** log in through Dex SSO, and link a self-custodial wallet to your account.
3. **Peer-hosted game modes:** node operators publish their own modes as an incentive to run a peer.
4. **An Android app**, built and running in an emulator, and an **iOS app** (macOS VM; Xcode sign-in waits for Eric).
## Hard rules (no exceptions)
- **Where to push:** only to `git@gitea.eom.dev:claude/wikideck.git`. Never push to `WikiDeck/wikideck` (upstream) or to `main` on this fork.
- **Branches:** every change goes on a branch named `night/<team>/<topic>`, through a PR into **`night/2026-11-16`**. Only `night-lead` merges.
- **Live services:** don't touch the live wikideck deployment (k8s namespace `wikideck`) or mainnet. The testnet is private, on poweredge-r350.
- **No consensus or protocol changes:**
- no block, transfer or trade format changes
- nothing that changes validation in `server/chain.ts` or `shared/protocol.ts`
- the game runs **off-chain**
- if you think you need a protocol change, write it up in your issue instead
- **Production SSO:** don't change Dex or any other production service yourself. The SSO team prepares the Dex change, and the coordinator reviews and applies it.
- **Nothing public:** only `night-lead` and the scheduled standup post on Discourse (planning topic only). No other public posts, no purchases or sign-ups, and no secrets in git.
- **The printer and CNC:** inspiron-3670 drives a 3D printer and a CNC router. Never start, resume or send a print or cut.
- **Git identity** in every clone:
```
git config user.name Claude
git config user.email claude@eom.dev
git config commit.gpgsign false
```
End commit messages with `Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>`.
- **Before opening a PR:** `npm test` and `npm run build` must pass. If something can't pass yet, say so in the PR.
## How we coordinate
**Gitea is the shared brain.** The machines don't share a filesystem, and workers can't message each other.
- **Your issue is your inbox.**
- Prefix every comment with your agent name, e.g. `[engine-a]`.
- Check your issue and your PRs for new comments **at least every 15 minutes** and whenever you finish a step.
- **Status labels on your issue:**
- `status/in-progress` while you're working
- `status/needs-review` when a PR is up
- `status/blocked` with a comment explaining why
- `status/done` when finished
- **Need another team?** Comment on *their* issue, starting with `[from <you>]`.
- **Contracts beat conversations.** Interfaces live in files on the integration branch (`docs/game/*.md`, TypeScript types). Read them before asking.
- **When the lead (or the coordinator) messages you directly** through herdr, the message is a peer request within this plan. Act on it.
- **Stuck for more than 10 minutes?** Label `status/blocked` and comment. Don't spin.
## Resources (be a good neighbour)
- **inspiron-3670** (6 cores, 60 GB RAM) has 7 agents, the Android emulator and a macOS VM. Wrap heavy commands in a shared lock:
```
flock /tmp/night-heavy.lock <npm ci | npm run build | gradle ...>
```
- **imac** (8 threads, about 4 GB free) and **poweredge-r350** (16 threads, about 6 GB free): keep builds to one at a time.
- **LocalAI** (`https://localai.eom.dev`) is shared production with slow single-GPU inference. Don't use it in loops.
## Timeline (EST)
| Time | Milestone |
|---|---|
| 22:45 | Kickoff. The design council researches. Infra teams set up (testnet, Android SDK, macOS, SSO scaffolding, UI shell, beta fixes). |
| **23:30** | **Design v1 frozen** (`docs/game/DESIGN.md`). The engine team implements it. |
| 23:45 | **Engine API contract** (`docs/game/ENGINE_API.md` plus TypeScript types) on the integration branch, so UI, simulation and modes can build against it. |
| 00:15 | Engine alpha. Simulation starts bot matches. The UI wires up real matches. |
| 00:45 | Balance report v1. The council tunes the rules (v1.1). |
| **01:10** | **Code freeze:** fixes only. The lead integrates. QA plays end to end. |
| 01:25 | Final reports in each issue. The lead writes `docs/night/REPORT.md`. |
| **01:30** | **Stop.** |
## Teams
| Agent | Machine | Issue |
|---|---|---|
| council-designer-a, council-designer-b, council-data | imac | Game design council, card data analysis |
| council-critic, night-lead, night-review, macos-fetch | tower-plus | Design council (critic), integration and QA, iOS (download) |
| engine-a, engine-b | inspiron-3670 | Game engine |
| ui-a, ui-b | inspiron-3670 | Game UI and AI opponent, beta fixes |
| modes | inspiron-3670 | Peer-hosted game modes |
| mobile-android, mobile-ios | inspiron-3670 | Android app, iOS app and macOS VM |
| sim-testnet, sim-balance, sso | poweredge-r350 | Testnet and simulation, eom.dev accounts |
## What the cards hold (game design input)
Each card's data comes from `shared/enrichment.ts`: `PageEnrichment` and `MintStatsSnapshot`.
- **Identity:** `title`, `description`, `wikidataId` (structured facts: instance-of, dates, coordinates...) and `categories[]`
- **Size and history:** `pageBytes` and `revisionId`
- **Reach:** `languageCount`, the number of language editions
- **Pageviews:** monthly views, `total`, `dailyAverage` and `trendPercent`
- **Derived 0–100-ish scores:** `stats.attention`, `stats.depth` and `stats.reach`
- **Two values for everything:** an immutable **at-mint snapshot** and **live current values** that change over time
- **Duplicates:** the same article can be minted more than once, each copy with its own snapshot
Two facts to design around:
- **New players own no cards.** The design must give them a way to play immediately, for example starter decks of preview or loaner cards that don't touch NFTs.
- **Cards are NFTs.** A match must never move or burn cards on-chain tonight.
-10
View File
@@ -1,10 +0,0 @@
import type { NetworkProfile } from '../../shared/network.ts';
/** The official public Wikideck node. Mainnet miners use it unless --node says otherwise. */
export const OFFICIAL_NODE = 'https://wikideck.eom.dev';
/** The testnet is private, so testnet miners default to a local node. */
export const LOCAL_NODE = 'http://127.0.0.1:3001';
export function defaultNode(profile: NetworkProfile): string {
return profile === 'mainnet' ? OFFICIAL_NODE : LOCAL_NODE;
}
+2 -4
View File
@@ -7,19 +7,17 @@ import { blockClaimMessage, CONSENSUS, NETWORK, type MiningTemplate, type Testne
import { CHAIN_ID, sha256, miningBlob, mintId, blockSchema } from './consensus.ts';
import { RandomX } from './randomx.ts';
import { assertLaunchAllowed } from '../launch.ts';
import { PROFILE } from '../../shared/network.ts';
import { defaultNode } from './miner-config.ts';
assertLaunchAllowed();
const args = process.argv.slice(2);
const arg = (key: string) => { const i = args.indexOf(key); return i < 0 ? undefined : args[i+1]; };
if (!args.includes('--consent') || !arg('--wallet')) {
console.error(`Usage: npm run miner -- --wallet <encrypted-backup.json> --consent [--node ${defaultNode(PROFILE)}] [--fast] [--blocks 1]`);
console.error('Usage: npm run miner -- --wallet <encrypted-backup.json> --consent [--node http://127.0.0.1:3001] [--fast] [--blocks 1]');
console.error('Native RandomX mining uses CPU, energy and 256 MiB (light) or roughly 2.1 GiB (fast). Ctrl+C stops mining.');
process.exit(1);
}
const endpoint = new URL(arg('--node') ?? defaultNode(PROFILE));
const endpoint = new URL(arg('--node') ?? 'http://127.0.0.1:3001');
if (!['http:', 'https:'].includes(endpoint.protocol) || endpoint.username || endpoint.password || endpoint.search || endpoint.hash || endpoint.pathname !== '/') throw new Error('Node must be an HTTP(S) origin');
if (endpoint.protocol !== 'https:' && !['localhost','127.0.0.1','[::1]'].includes(endpoint.hostname) && !args.includes('--allow-insecure-node')) throw new Error('Non-loopback HTTP requires --allow-insecure-node');
const limit = Number(arg('--blocks') ?? 1);
-12
View File
@@ -1,12 +0,0 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import { defaultNode, OFFICIAL_NODE } from '../server/testnet/miner-config.ts';
test('mainnet miners default to the official node, testnet stays on loopback', async () => {
assert.equal(defaultNode('mainnet'), 'https://wikideck.eom.dev');
assert.equal(OFFICIAL_NODE, 'https://wikideck.eom.dev');
assert.equal(new URL(defaultNode('testnet')).hostname, '127.0.0.1');
const miner = await readFile(new URL('../server/testnet/miner.ts', import.meta.url), 'utf8');
assert.match(miner, /arg\('--node'\) \?\? defaultNode\(PROFILE\)/);
});