Skip to content

feat(relearn): one-challenge subnet v0 eval loop - #198

Draft
echobt wants to merge 7 commits into
mainfrom
cursor/relearn-subnet-v0-fbf6
Draft

feat(relearn): one-challenge subnet v0 eval loop#198
echobt wants to merge 7 commits into
mainfrom
cursor/relearn-subnet-v0-fbf6

Conversation

@echobt

@echobt echobt commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Cortex becomes a one-challenge subnet: Relearn. Design and Prism are retired as products (compose, emission, site arenas, miner docs, CI image matrix). Shared rails stay: prism-lium*, paired tests, receipts, emit/carry.

This is a separate workstream from the .rules/docs PR. Frozen specs (BUNDLE_SPEC.md, DESIGN_CHALLENGE.md) are untouched. Design/Prism crates remain as unused libraries so we do not fight that PR with a giant delete.

Teacher

HTTP API. Operator sets RELEARN_TEACHER_API_URL, RELEARN_TEACHER_MODEL, and RELEARN_TEACHER_API_KEY on the host. No URL is baked in git. Missing URL or key → sim. Env example uses empty placeholders.

Teacher + Lium smokes skip when the matching env is absent. Miners pay Lium (LIUM_API_KEY / X-Lium-Api-Key).

Docs (miner vs validator)

README is a short product blurb plus two links only:

This agent cannot push CortexLM/relearn (GitHub App is cortex-only). Seed copy updated under docs/external-miner/relearn-seed/.

Relearn v0 eval loop

  1. POST /v1/submissions {miner_hotkey, artifact_digest, artifact_uri?} + optional X-Lium-Api-Key.
  2. Freeze sha256(hotkey || artifact || nonce), then unseal holdout.
  3. Paired displacement vs previous champion plus gates.
  4. Eligible runs sit in awaiting_admin.
  5. POST /v1/admin/promote (operator bearer) only when eligible.
  6. Epoch emit: champion lattice; everyone else explicit D24 NoScore.

Port 8095. Trust root emission: relearn = 10000 bps.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy on relearn crates -D warnings
  • cargo test on relearn crates (teacher/Lium smokes skipped without keys)
  • xtask external-docs-check
  • cargo deny check (CI)

Risk

  • Emission: trust root re-signed with a throwaway owner; config/challenges.toml is relearn-only at 10000 bps.
  • Did not delete prism-* / design-* crates (rails + avoid fighting the docs PR).

Naming

I did not rename BASE_* environment variables, deployed host paths, GHCR package names, or crypto domain tags.

Open in Web Open in Cursor 

cursoragent and others added 6 commits August 29, 2026 08:21
Retire Design and Prism as live products. Wire Relearn HTTP submit,
displacement scoring, digest-freeze holdout, and operator promote.
Keep Lium/receipt/paired-test rails. Pin CortexLM/relearn (seed in-tree
until org write can create the public repo).

Co-authored-by: Mathis <echobt@users.noreply.github.com>
Workspace clippy -D warnings failed on Relearn arena mapping.

Co-authored-by: Mathis <echobt@users.noreply.github.com>
Keep miners-pay-Lium as the trust line. Leave holdout-after-freeze
in the eval loop internals, not README/miner Trust rows.

Co-authored-by: Mathis <echobt@users.noreply.github.com>
README is what Cortex is plus two links. Validators get a one-screen
role; Relearn miners get submit, Lium, promote-wait, and a pointer.

Co-authored-by: Mathis <echobt@users.noreply.github.com>
Both audience pages live under docs/external-miner/. README still
has two links only.

Co-authored-by: Mathis <echobt@users.noreply.github.com>
@CortexLM CortexLM deleted a comment from cursor Bot Aug 29, 2026
Teacher URL, model, and key come from RELEARN_TEACHER_* only.
Missing URL or key skips to sim. No baked host. Miners pay Lium.

Co-authored-by: Mathis <echobt@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/relearn-subnet-v0-fbf6 branch from de8166a to e59eea7 Compare August 29, 2026 14:45
@cursor

cursor Bot commented Aug 29, 2026

Copy link
Copy Markdown

Teacher HTTP is env-only (RELEARN_TEACHER_API_URL, RELEARN_TEACHER_MODEL, RELEARN_TEACHER_API_KEY). No host is in the tree or this branch’s commit history. Missing URL/key skips to sim. Miners pay Lium via LIUM_API_KEY. Branch was force-pushed to drop the earlier baked-URL commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants