Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ agent's role is to prepare and check the entry locally. Read
crown bar (3% at a king's tenure 0, falling to 1%; `--tenure`). It prints
per-window and aggregate CRPS/MASE, the LCB and whether it would clear.
`--king` is the lane D king, or before the first crown the house (the lane
A king). The tool defaults to live-only (`--public-weight 0`); the live
A king). `cascade lane-d pull-king --out DIR` downloads the current king
from the Hippius registry (read-only, no credential, every file checked
against the signed index); before the first crown it reports `no_king`. The tool defaults to live-only (`--public-weight 0`); the live
deployment scores at 0.5, so pass `--public-weight 0.5 --public-pool-dir DIR`
to match it. It runs torch on the human's
GPU/CPU (`--device cuda`); the result is directional.
Expand Down
11 changes: 10 additions & 1 deletion cascade/miner/lane_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
every file checked against a pinned sha256) and judge a checkpoint on it
by the settlement rule; needs no king checkpoint, submits nothing
(``cascade.miner.lane_d_example``, loaded at call time).
* ``pull-king [--digest D] [--out DIR]`` — download the current lane D king
(or a prior one) from the Hippius registry, anonymously, after verifying
the signed ``champions/lane_d/index.json`` against ``[manifest]
validator_hotkey`` and every file against the signed digest; read-only
(``cascade.miner.lane_d_pull_king``, loaded at call time).

No flag takes a credential or a URL to a grant (§1.2). The hotkey signs; the
coldkey is never opened. The lane D intake and ingest helpers are loaded at
Expand Down Expand Up @@ -127,7 +132,8 @@ def _chain_args(p: argparse.ArgumentParser) -> None:
LANE_D_EPILOG = """\
examples (one dedicated hotkey; BF16 weights; MIT is the only licence):
cascade lane-d example-round --out ./example-round --candidate ./trained-ckpt --context 4096 --device cuda
cascade lane-d test ./trained-ckpt --king ./king --context 16384 --pool-dir ./pool_d --device cuda
cascade lane-d pull-king --out ./king
cascade lane-d test ./trained-ckpt --king ./king --king-context 16384 --context 16384 --pool-dir ./pool_d --device cuda
cascade lane-d export ./trained-ckpt --out ./entry
cascade lane-d verify ./entry
cascade lane-d submit https://submissions.cascadesub.net ./entry --context 16384 --wallet-name W --wallet-hotkey H
Expand Down Expand Up @@ -199,6 +205,9 @@ def add_lane_d(sub: argparse._SubParsersAction) -> None:
# `lane-d example-round`: the public example round (download, verify, score),
# loaded at call time for the same reason.
importlib.import_module("cascade.miner.lane_d_example").add_lane_d_example(lsub)
# `lane-d pull-king`: the current (or a prior) king from the Hippius
# registry, checked against the signed index; loaded at call time too.
importlib.import_module("cascade.miner.lane_d_pull_king").add_lane_d_pull_king(lsub)


def _run(args: argparse.Namespace, body) -> int:
Expand Down
7 changes: 4 additions & 3 deletions cascade/miner/lane_d_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ def add_lane_d_test(lsub) -> None:
"exported entry or the trained checkpoint).")
t.add_argument("--king", type=Path, required=True,
help="The bar's checkpoint directory: the current KING_D, or before the "
"first lane D crown the house (the lane A king, BF16). Kings are public "
"after a crown (HF mirror tensorlink-dev/cascade-lane-d-kings); the "
"house is not published, and no command downloads either.")
"first lane D crown the house (the lane A king, BF16). A crowned king "
"is on the Hippius registry: `cascade lane-d pull-king --out DIR` "
"downloads and verifies it (then pass --king DIR --king-context N). "
"The house is not published.")
t.add_argument("--context", type=int, required=True,
help="Your declared context (one of [lane_d] contexts).")
t.add_argument("--king-context", type=int, default=None,
Expand Down
351 changes: 351 additions & 0 deletions cascade/miner/lane_d_pull_king.py

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion docs/LANE_D.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,12 @@ Ephemeris or anything else, on your own account, as long as the teacher's
licence permits it.

Kings are published to the Hippius Hub only (owner 2026-12-01; the mirrors
are `[lane_d_ops] king_mirrors`). A licence or rights claim triggers a
are `[lane_d_ops] king_mirrors`), one public repo per king,
`cascade/laned-king-c<context>-<hotkey8>`. `cascade lane-d pull-king [--digest D]
--out DIR` downloads the current king (or a prior one) anonymously, after it
has checked the signed index against `[manifest] validator_hotkey` and every
file against the signed digest. Pass `DIR` to `cascade lane-d test --king DIR
--king-context N`. A licence or rights claim triggers a
takedown: the Hub copy is removed, while the vault, the digest and the verdict
record stay, and the re-signed lane D index marks the king `takedown`.

Expand Down
40 changes: 30 additions & 10 deletions docs/MINER_LANE_D.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ tenure. Without the house weights, use the [example round](#example-round)
below: it needs no `--king`.

```bash
cascade lane-d test ./my-trained-ckpt --king ./king --context 16384 \
cascade lane-d test ./my-trained-ckpt --king ./king --king-context 16384 --context 16384 \
--pool-dir ./pool_d --device cuda # a pool_d/1 snapshot
cascade lane-d test ./my-trained-ckpt --king ./king --context 4096 \
--series ./my-series.npz --windows-per-series 20 # your own series
Expand All @@ -74,15 +74,35 @@ cascade lane-d test ./my-trained-ckpt --king ./king --context 4096 \
The result is directional. Your local windows are not the private live
pool, and the bench gate, caps and queue run only live.

**Where `--king` and `--pool-dir` come from.** No `cascade` command downloads either
yet. Before the first lane D crown the bar is the house, a BF16 cast of the
frozen lane A king (uid 164) that the operator builds and does not publish.
After a crown, each king's checkpoint is published (Hippius Hub repo
`cascade/laned-king-c<context>-<hotkey8>`, indexed in the signed
`champions/lane_d/index.json`). Spent `pool_d` snapshots are public (see
[Past evaluations](#past-evaluations)): every window of a snapshot no entry
can still be judged on, with the house's forecasts and scores. Preview on
those (`windows.npz`) or on your own data with `--series S.npz`.
**Where `--king` and `--pool-dir` come from.** After a lane D crown, download
the king from the Hippius registry (no account or credential needed):

```bash
cascade lane-d pull-king --out ./king # the current king
cascade lane-d pull-king --digest D --out ./king-old # a prior king
```

It reads the signed index `champions/lane_d/index.json` from the public
manifest store (<https://s3.hippius.com/cascade-manifests/champions/lane_d/index.json>,
`--index-url` to override) and checks its signature against the main
validator hotkey pinned in `chain.toml` (`[manifest] validator_hotkey`). It
then pulls the king's Hippius Hub repo `cascade/laned-king-c<context>-<hotkey8>`
anonymously and checks `manifest.json` against the signed digest and every
file against its sha256. Nothing is written unless every check passes.
`--out` then holds `config.json`, `weights.safetensors`, `model.py`,
`forecast_wrapper.py`, `manifest.json`, `PROVENANCE.json` and `MODEL_CARD.md`,
and the command prints the `cascade lane-d test ... --king DIR --king-context N`
line to run next. Use the king's own context as `--king-context`. It is
read-only and needs no GPU or torch.

Before the first lane D crown, `pull-king` reports `no_king`. The bar is then
the house, a BF16 cast of the frozen lane A king (uid 164), which the
operator builds and does not publish. Use the [example round](#example-round)
instead: it stores the house's score on every window. Spent `pool_d`
snapshots are public (see [Past evaluations](#past-evaluations)): every window
of a snapshot no entry can still be judged on, with the house's forecasts and
scores. Preview on those (`windows.npz`) or on your own data with
`--series S.npz`.

### Example round

Expand Down
2 changes: 1 addition & 1 deletion llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Percentages are shares of total emissions. A lane's pool is its budget; miners r
- [Lane B: expert targets](docs/MINER_LANE_B.md): declared domain and horizon targets, selected expert rows, the slot judge and merge acceptance.
- [Lane C: MarketCast](docs/MINER_LANE_C_MARKETCAST.md): the `mkt:market` target, the pinned Timestral base, confirmation and full-pay duration.
- [Lane D: open weights](docs/MINER_LANE_D.md): BF16 cascade_pyramid checkpoints, the crown bar, the court and skip reasons.
- [Lane D guide](docs/LANE_D.md): checkpoint format, `cascade lane-d` test/export/verify/submit/ready/status, forward-only judging, caps and FAQ.
- [Lane D guide](docs/LANE_D.md): checkpoint format, `cascade lane-d` test/pull-king/export/verify/submit/ready/status, forward-only judging, caps and FAQ.
- [MarketCast reference](docs/MARKETCAST.md): the MarketCast observation pool and scorer behind lane C.

## Submit
Expand Down
6 changes: 6 additions & 0 deletions tests/accept/w10/PATHS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ cascade/miner/lane_d_preview.py
# `lane-d example` (owner 2026-11-29): download the public example round
# (pinned manifest) and score a checkpoint on it against the stored king scores.
cascade/miner/lane_d_example.py
# `lane-d pull-king` (owner 2026-12-01): the current (or a prior) lane D king
# from the Hippius registry, verified against the signed index; loaded at call
# time by cascade/miner/lane_d.py.
cascade/miner/lane_d_pull_king.py
# build_parser registers add_lane_d; the module docstring lists the group.
cascade/miner/cli.py
# `cascade rules a|b|c|d` (owner 2026-11-24 miner CLI refresh): prints each
Expand All @@ -18,4 +22,6 @@ cascade/miner/rules.py
# The miner kit's lane D pages describe these commands (plan §10.2): the guide
# and the agent guide change with the CLI in the same PR.
docs/MINER_LANE_D.md
docs/LANE_D.md
AGENTS.md
llms.txt
21 changes: 21 additions & 0 deletions tests/accept/w10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,27 @@ The only fake is the model forward (`forecast_quantiles`); its torch path is
the scorer's own and CI covers it. The module is loaded with `importlib`
from `cascade/miner/lane_d.py` (W9 invariant 12).

## `pull-king [--digest D] [--out DIR] [--index-url URL]` (owner 2026-12-01)

Downloads a crowned lane D king from the Hippius registry
(`test_w10_pull_king.py`). The signed `champions/lane_d/index.json` (default:
the public manifest store of `[storage]`) must verify under `[manifest]
validator_hotkey` (`cascade.lane_d.publish.verify_index`) before anything is
pulled; the king is the newest crown, or `--digest`. Its Hub repo is
`cascade.lane_d.publish.hub_repo(hub_namespace, context, hotkey)`, pulled with
`hippius_hub.HippiusApi(token=False)` (anonymous, no ambient credential). The
tests pin, with a fake index and a fake Hub:

- a good index: the four files, `manifest.json`, `PROVENANCE.json` and
`MODEL_CARD.md` are written, byte-identical to the published ones, and the
next `cascade lane-d test --king DIR --king-context N` line is printed;
- a bad signature is `index_signature_invalid` and the Hub is never called;
- a file whose sha256 differs from the signed manifest is `hash_mismatch`
and no file (partial or staged) is left behind;
- `--digest` picks a prior king's repo and files;
- no index (HTTP 403/404) or an index with no king is `no_king`, naming the
house and `example-round`.

## Secrets (every flow)

stdout, stderr and every log record never contain any of these:
Expand Down
2 changes: 1 addition & 1 deletion tests/accept/w10/test_w10_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _flags(parser) -> set[str]:
def test_the_lane_d_group_has_exactly_the_five_commands():
kids = _children(_lane_d_parser())
assert set(kids) >= set(SUBCOMMANDS), sorted(kids)
extra = set(kids) - set(SUBCOMMANDS) - {"test", "example-round"}
extra = set(kids) - set(SUBCOMMANDS) - {"test", "example-round", "pull-king"}
assert not extra, f"unexpected lane-d commands: {sorted(extra)}"


Expand Down
Loading
Loading