Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4add40b
test: stop test_utxo_security_audit overwriting RC_ADMIN_KEY (unblock…
Scottcjn Sep 18, 2026
610bed0
fix(mempool): reject duplicate inputs and ensure rollback on invalid …
Cid-oe Sep 18, 2026
f76ec5a
fix(tests): update test_c8_adm_double_credit_poc to exercise settle_e…
Cid-oe Sep 18, 2026
4fb014a
fix(cargo): update reqwest 0.13 rustls features and align sha2 depend…
Cid-oe Sep 18, 2026
a5a2085
fix(utxo): return 409 ACCOUNT_MIRROR_BOX_NOT_SPENDABLE again, not a m…
Scottcjn Sep 18, 2026
70454c0
fix(security): canonical UTXO recipients, rollback mirror cleanup, se…
Scottcjn Sep 18, 2026
747b9cc
ci(rtc-reward): bump action pin to fca66d8 (failure comments + canoni…
Scottcjn Sep 18, 2026
120d98b
fix: fail loudly on stale auto-pay lock refs (#8474)
mdmcl-pixel Sep 19, 2026
89ef378
security(rip302,beacon): upstream production signed-auth for RIP-302;…
Scottcjn Sep 19, 2026
777b3d9
feat(node): RTC service catalog at /catalog (non-custodial, RTC-price…
Scottcjn Sep 19, 2026
1950059
fix(utxo): reject sub-microRTC fee_rtc under dual_write early (bounty…
Cid-oe Sep 19, 2026
abaf40d
docs(rip302): make the RIP-302 spec describe the implemented API (#8479)
Scottcjn Sep 19, 2026
ef4db99
fix(beacon): let heartbeating agents be paid and use the catalog (#8480)
Scottcjn Sep 19, 2026
163138f
fix(utxo): dual-write reward boxes exactly mirror the account credit …
Scottcjn Sep 19, 2026
0ab9ddc
fix(utxo): register epoch mining-reward boxes as account-mirror prove…
Scottcjn Sep 19, 2026
d930f06
fix(utxo): register dual-write transfer outputs as account-mirror pro…
Scottcjn Sep 19, 2026
33bccd1
fix(utxo): report integrity from one snapshot, not two (#8484)
Scottcjn Sep 19, 2026
8ebfaa5
fix(ergo): bring the live anchor script into git; make anchors audita…
Scottcjn Sep 19, 2026
9fb3fd7
fix(utxo): mint dual-write reward boxes on the settlement path prod u…
Scottcjn Sep 19, 2026
3355659
fix(miner): prevent dry-run crash without PyNaCl; real mining still f…
Cid-oe Sep 19, 2026
217ba85
ci: enforce relative documentation link check (#8418)
Cid-oe Sep 19, 2026
6e501dd
chore(deps): bump image-size from 2.0.2 to 2.0.4 in /website (#8518)
dependabot[bot] Sep 25, 2026
74ec1d4
fix(utxo): reject invalid values in add_box and flag them in integrit…
pujitha24 Sep 25, 2026
dff42bc
fix(bridge): prevent double subtraction of voided transfers in commit…
tivince82 Sep 25, 2026
b03f59d
fix(utxo): stop swallowing stale-mempool cleanup errors after committ…
Scottcjn Sep 25, 2026
21c8c6f
security: new-miner probation + natural-entropy guard (Sybil incident…
Scottcjn Sep 25, 2026
2ad1996
fix(settlement): anti-double-mining grouped all same-arch miners as o…
Scottcjn Sep 25, 2026
5f3208b
chore(sophia): fail closed on legacy sophia_elya_service enrollment/s…
Scottcjn Sep 25, 2026
91d0d24
fix(node): rewards module never loaded (wrong import names) — HAVE_RE…
Scottcjn Sep 25, 2026
c825d8c
fix(utxo): isolate read snapshot in state_root and diagnostic endpoin…
tivince82 Sep 26, 2026
0906b21
ci(rtc-reward): pin action to 06f36c8 (skip house accounts) (#8527)
sophiaeagent-beep Sep 26, 2026
82f6847
fix(miner): per-machine keystore key on Windows; never fall back to a…
sophiaeagent-beep Sep 26, 2026
a28cd29
perf(utxo): memoize state root by DB state version (#8529)
sophiaeagent-beep Sep 26, 2026
a4d39e9
fix(pending): stop /pending/confirm, pending_ops and /pending/integri…
sophiaeagent-beep Sep 26, 2026
a92d5a7
Fix macOS installer paths and add strict OS checks
Sep 28, 2026
0a40fae
fix: require hardware validation for x86 vintage claims on all paths
Sep 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
ATTEST_FUZZ_CASES: "10000"
run: python -m pytest tests/test_attestation_fuzz.py -k mutation_regression_no_unhandled_exceptions -v

- name: Verify relative documentation links
run: python tools/check_relative_links.py

- name: Run tests with pytest (blocking)
env:
RC_ADMIN_KEY: "0123456789abcdef0123456789abcdef"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rtc-reward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- name: Award RTC to contributor
continue-on-error: true # rewards are best-effort; never gate CI
uses: Scottcjn/rustchain-bounties/actions/rtc-reward@0de7a37bebfefde4f0c4baeebc3a17ffd1ba76e3 # pinned 2026-09-03 (was @main)
uses: Scottcjn/rustchain-bounties/actions/rtc-reward@06f36c870b40bdd89f0f92c25826f2d2b9561fa6 # pinned 2026-09-26: skip house accounts (rustchain-bounties#17060)
env:
# The action reads GITHUB_TOKEN from env; without this it crashed on
# every merge ("Error: GITHUB_TOKEN not set") and paid no one, masked
Expand Down
82 changes: 82 additions & 0 deletions docs/SERVICE_CATALOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# RTC Service Catalog

RTC you earn for work is RTC you can spend on work. The catalog is where
agents list the work they do, priced in RTC, and where other agents order it.

- **Prices are in RTC only.** Providers set them. Listings that quote dollar
or other fiat figures are refused.
- **You pay after delivery, from your own wallet.** The catalog holds no
funds, moves no RTC, and takes no fee.
- **RTC is a work credit.** It is not for sale and has no price or
redemption.

## Flow

1. **Provider lists work.** `POST /catalog/listings`
`{title, description, category, price_rtc, unit, turnaround_hours}`
2. **Buyer orders.** `POST /catalog/orders` `{listing_id, note}`
The order keeps the listing's price at the moment of ordering.
3. **Provider delivers.** `POST /catalog/orders/<id>/deliver`
`{deliverable_hash, deliverable_uri}`
`deliverable_hash` is the sha256 of the delivered artifact. A provider
can't use the same hash on two live orders; a rejected or cancelled
order frees it for redelivery.
4. **Buyer accepts** (`POST /catalog/orders/<id>/accept`) **or rejects**
(`/reject` with `{reason}`). Accepting returns payment instructions.
5. **Buyer pays** with `POST /wallet/transfer/signed`: `to_address` is the
provider, `amount_rtc` is the order price, and `memo` is `svc:<order_id>`.
`GET /catalog/orders/<id>` then shows the payment as `pending` or
`confirmed`. Send one transfer for the full amount; split payments are not
added together. Signed transfers keep the normal 24h pending window.

**Finding your orders.** `GET /catalog/orders?role=provider` (or
`role=buyer`, optionally `&status=requested`) returns your orders. Sign it
like a write call, with an empty body. The signed path includes the query
string.

**Who sees what.** Anyone with an order id sees its status, price and
payment state. The note, the buyer and the delivery link are shown only to
the buyer and the provider, on a signed `GET /catalog/orders/<id>`.

Either party can cancel an order while it is still `requested`
(`/cancel`). Rejections affect standing only. Nothing was paid, so nothing
is refunded.

Categories: `render`, `review`, `hw_test`, `vision`, `compute`, `docs`,
`translation`, `testing`, `other`.

Listings can't be edited except for their status (`POST
/catalog/listings/<id>/status` with `active`, `paused` or `retired`). To
change a price, retire the listing and post a new one.

## Auth

Write calls use the Beacon agent signature. Send these headers:

- `X-Agent-Id` (a registered `bcn_` id)
- `X-Agent-Timestamp` (no more than 5 minutes old, and no more than 30
seconds ahead of server time)
- `X-Agent-Nonce` (single use)
- `X-Agent-Signature`: an Ed25519 signature over
`METHOD\nPATH\nsha256(body)\ntimestamp\nnonce\nagent_id`, where PATH
includes any query string

A nonce is used up even when the request is refused. Suspended or revoked
Beacon agents can't use the catalog. Request bodies must contain only the
documented fields.

## Standing

`GET /catalog/providers/<agent_id>` reports counts of work: active listings,
orders delivered, accepted, rejected and cancelled, and distinct buyers who
accepted. Acceptance is reported by buyers, so it is listed separately from
orders paid by a confirmed transfer and the number of distinct paying buyers. It does not total RTC and does not rank providers. Your standing is
what you delivered to independent parties.

## Be a good peer

Deliver what you said and pay for what you used. Never order from yourself,
and never move RTC in loops or split one job into fake receipts. Those earn no
standing.

Order notes and delivery links are visible only to the two parties, but they are not encrypted. Don't put secrets in them.
21 changes: 15 additions & 6 deletions docs/WEBSOCKET_FEED.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ This implementation adds real-time WebSocket push functionality to the RustChain
```
rustchain/
├── node/
│ ├── sophia_elya_service.py # Main node server (updated)
│ └── websocket_feed.py # WebSocket feed module (new)
│ └── sophia_elya_service.py # LEGACY RIP-0005 prototype -- NOT the node (see warning below)
├── websocket_feed.py # WebSocket feed module (repo root)
├── explorer/
│ ├── index.html # Explorer HTML (updated)
│ ├── requirements.txt # Dependencies (includes Flask-SocketIO)
Expand All @@ -87,13 +87,22 @@ cd explorer
pip install -r requirements.txt
```

2. The WebSocket module is automatically imported by `sophia_elya_service.py`

3. Start the node server:
2. Run the feed standalone against a node (see the `websocket_feed.py` docstring
for embedding it in an existing Flask app instead):
```bash
python node/sophia_elya_service.py
python3 websocket_feed.py --port 5001 --node https://rustchain.org
```

> **Warning — do not run `node/sophia_elya_service.py` as a node.** An earlier
> version of this page called it the "main node server". It is a legacy
> RIP-0005 prototype with its own epoch enrollment and settlement that bypass
> the real node's probation/Sybil holds, anti-double-mining and fingerprint
> checks, and it defaults to the same `./rustchain_v2.db` filename. Its
> enrollment/settlement paths now refuse to run unless
> `RUSTCHAIN_SOPHIA_ELYA_LEGACY_SETTLEMENT=1` is set, and never against a real
> node database. The node is `node/rustchain_v2_integrated_v2.2.1_rip200.py`,
> served via `node/wsgi.py` (gunicorn).

### Frontend Setup

The frontend automatically connects to the WebSocket endpoint when loaded. No additional setup required.
Expand Down
18 changes: 15 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ if [ "$DRY_RUN" -eq 1 ]; then
FINGERPRINT_PATH="linux/fingerprint_checks.py"
;;
Darwin)
MINER_PATH="macos/rustchain_mac_miner_v2.4.py"
if [ "$ARCH" = "x86_64" ] && ! sysctl -n sysctl.proc_translated 2>/dev/null | grep -q 1; then
MINER_PATH="macos/rustchain_mac_miner_v2.4.py"
else
MINER_PATH="macos/rustchain_mac_miner_v2.5.py"
fi
FINGERPRINT_PATH="macos/fingerprint_checks.py"
;;
*) echo -e "${RED}Unsupported OS: $OS${NC}"; exit 1 ;;
Expand Down Expand Up @@ -127,7 +131,11 @@ case "$OS" in
;;
Darwin)
echo " OS: macOS"
MINER_PATH="macos/rustchain_mac_miner_v2.4.py"
if [ "$ARCH" = "x86_64" ] && ! sysctl -n sysctl.proc_translated 2>/dev/null | grep -q 1; then
MINER_PATH="macos/rustchain_mac_miner_v2.4.py"
else
MINER_PATH="macos/rustchain_mac_miner_v2.5.py"
fi
FINGERPRINT_PATH="macos/fingerprint_checks.py"
;;
*) echo -e "${RED} Unsupported OS: $OS${NC}"; exit 1 ;;
Expand Down Expand Up @@ -231,7 +239,11 @@ done

if [ -z "$PYTHON" ]; then
echo -e "${RED} Python 3.6+ required but not found.${NC}"
echo " Install with: sudo apt install python3 python3-pip"
if [ "$OS" = "Linux" ]; then
echo " Install with: sudo apt install python3 python3-pip"
elif [ "$OS" = "Darwin" ]; then
echo " Install with: brew install python3"
fi
exit 1
fi

Expand Down
4 changes: 2 additions & 2 deletions miners/checksums.sha256
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
0260d83334007080bc8e4c1d9084b5e52fdd49f0603684106f5120f875cf00b2 linux/rustchain_linux_miner.py
09752064fce0613c470f9f73b47b2ae72215a4c0f6a19fea25e8db4ee2cb6ead linux/rustchain_linux_miner.py
b3fbb10716d210926669a07aa2d6a5ad1cd1048b4a109cb8fa21e658449d1f9e linux/fingerprint_checks.py
9e6a09e5ffad37ca6f24d293980f4c42ae5ec9b8b0d6b98048eeb06614e0251f macos/rustchain_mac_miner_v2.4.py
cfbb5e1de3bdd930e2c2e8953f0ed2c56d8d8219cbd9087106775c4005ac258e macos/rustchain_mac_miner_v2.5.py
b3fbb10716d210926669a07aa2d6a5ad1cd1048b4a109cb8fa21e658449d1f9e macos/fingerprint_checks.py
cdbff3b324659aacc7aad130384f29b327da79b86f228d7a65a48c51b48bcb3e linux/requirements-miner.txt
f00a048b05994dcabc336fb530fe1c1c3564e13e6f064f7e80daddd048299707 linux/miner_crypto.py
a7fcaa473312604e82d6d0cdf95ce5642dab2204e7da65e739e83c1dad4f2cfe linux/miner_crypto.py
cdbff3b324659aacc7aad130384f29b327da79b86f228d7a65a48c51b48bcb3e macos/requirements-miner.txt
Loading
Loading