[verified] feat: complete Ralph task workstreams
This commit is contained in:
@@ -9,6 +9,7 @@ from pathlib import Path
|
||||
|
||||
from .accounts import DEFAULT_ACCOUNTS_DB_PATH
|
||||
from .billing import DEFAULT_BILLING_DB_PATH
|
||||
from .capability import ALL_POLICIES as ALL_CAPABILITY_POLICIES
|
||||
from .hf_pricing import DEFAULT_HF_PRICING_LOG_DB_PATH
|
||||
from .logging_setup import (
|
||||
DEFAULT_LOG_BACKUP_COUNT,
|
||||
@@ -105,6 +106,18 @@ def main() -> None:
|
||||
metavar="PATH",
|
||||
help="SQLite database path for persistent model usage statistics",
|
||||
)
|
||||
common.add_argument(
|
||||
"--capability-policy",
|
||||
choices=list(ALL_CAPABILITY_POLICIES),
|
||||
default=None,
|
||||
help=(
|
||||
"How to treat nodes that present no capability proof (ADR-0023): "
|
||||
"'compat' (default) still routes pre-capability nodes; 'enforce' routes "
|
||||
"only nodes whose proof covers the model and shard they advertise. "
|
||||
"A broken or mismatched proof is never routed under either policy. "
|
||||
"Falls back to $MESHNET_TRACKER_CAPABILITY_POLICY when omitted."
|
||||
),
|
||||
)
|
||||
common.add_argument(
|
||||
"--relay-url",
|
||||
default=None,
|
||||
@@ -416,6 +429,7 @@ def main() -> None:
|
||||
cluster_peers=cluster_peers or None,
|
||||
cluster_self_url=args.self_url,
|
||||
stats_db=getattr(args, "stats_db", None),
|
||||
capability_policy=getattr(args, "capability_policy", None),
|
||||
relay_url=relay_url,
|
||||
embedded_relay=args.embedded_relay,
|
||||
embedded_relay_host=args.relay_host,
|
||||
|
||||
Reference in New Issue
Block a user