Spaces:
Running
Running
File size: 1,907 Bytes
e610a2f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | # Hermes Rules Layer
## Purpose
Rules define what Hermes and agent-team utilities are allowed to change. They
are guardrails for collaboration, not trading rules.
## Allowed By Default
Hermes may change or add:
- standalone notification helpers
- experiment result formatting
- W&B or local experiment tracking wrappers
- data-quality validator checks
- memory and handoff documentation
- validation smoke scripts
- tests for Hermes helper utilities
## Requires Explicit User Approval And Validation
These changes are logic-sensitive and should not be touched as part of generic
Hermes cleanup:
- `models/predictor.py` model logic, feature columns, labels, thresholds, and
weight overlays
- `services/recommendation_service.py` recommendation scoring and BUY/SELL/HOLD
behavior
- `services/predictor_service.py` cache publishability, precompute selection,
and production result acceptance
- `routers/stock.py` response contract changes that affect frontend behavior
- `scripts/precompute_hot20.py`, `scripts/precompute_queried_stocks.py`, and HF
queue publishing behavior
- `docs/validation_registry.json` promotion status
## Promotion Boundary
Hermes may propose a production logic change, but production integration must
follow this sequence:
1. Write the proposal as an experiment or plan.
2. Run no-lookahead backward validation on historical data.
3. Compare against the same-window baseline.
4. Check accuracy, BUY precision, signal count, and coverage.
5. Record JSON/HTML evidence.
6. Ask for explicit user approval before editing production logic.
## Notification Boundary
Telegram or Hermes messages should report only validated artifacts or clearly
marked experimental findings. They should not present unvalidated candidates as
BUY recommendations.
## Secret Boundary
Never commit local secrets or runtime configs:
- `.env`
- `.env.telegram`
- `.env.wandb`
- `.hf_token`
|