|
| 1 | +# Goal-linked pattern learning (v100.41) |
| 2 | + |
| 3 | +The operator owns the long-term goal. Master chat may follow a direction in a normal |
| 4 | +message; existing short/mid plan controls remain available. Researchers receive the |
| 5 | +current plans and may independently choose patterns, public sources, numeric outcomes |
| 6 | +and horizons. There is no fixed asset or social-media list. |
| 7 | + |
| 8 | +## Connected workflow |
| 9 | + |
| 10 | +1. `observe_goal_source(url, field)` retrieves public HTML/text/JSON using the existing |
| 11 | + restricted public reader, records host retrieval time and archives the response. |
| 12 | + An empty field means evidence text. A dotted JSON field (including array indexes) |
| 13 | + selects a finite number or numeric string. Host-local disk headroom and archive |
| 14 | + count limits apply. Login walls and blocked sources are not bypassed. |
| 15 | +2. `predict_goal_pattern(specification)` precommits a question, rationale, 1-8 evidence |
| 16 | + IDs, a numeric target observed within 60 seconds, horizon of 60 seconds to 7 days, |
| 17 | + positive absolute change threshold in target units, and probabilities in order |
| 18 | + down/flat/up. The operator goal and plans are snapshotted. This does not update weights. |
| 19 | +3. A resident CPU/network observer runs every 30 seconds independently of paper feeds, |
| 20 | + chat, GUI readiness and GPU training. It checks at most four due forecasts per tick. |
| 21 | + Only a matching target source/field observed within horizon + five minutes resolves |
| 22 | + a forecast. Missing or late evidence remains unresolved/expired, never synthetic. |
| 23 | +4. Host code computes direction, multiclass Brier score and flat/uniform baselines. |
| 24 | + Correct and incorrect predictions both produce supervised corrections. Training |
| 25 | + prompts contain only precommit evidence and target value; subsequent values and |
| 26 | + the model's unverified rationale are excluded. The learner predicts one direction |
| 27 | + token, retaining its existing general reasoning skills through the retention machinery. |
| 28 | +5. `extend_pool` automatically imports resolved examples. `load_records` independently |
| 29 | + recomputes labels against host archives; forged model-generated labels are rejected. |
| 30 | + Shared source paths and target series remain together in the existing split ledger. |
| 31 | + Query/fragment changes cannot create new independent sources. Canonical inputs use bounded excerpts. Before automatic pool admission a local CPU tokenizer checks the calibrated max_length; oversized examples remain archived with an admission report, without increasing GPU settings. New goal examples get |
| 32 | + catalog visibility; A/B still selects curricula within its fixed budgets. |
| 33 | +6. With at least four validation examples from two independent target groups for the |
| 34 | + current goal, each exported candidate and its actual predecessor run a goal-linked |
| 35 | + development panel. A regression, incomplete panel or failure to beat the best constant-direction baseline prevents eligibility. The constant baseline is a hindsight development reference, not a live forecasting policy. Goal panel |
| 36 | + quality ranks eligible A/B candidates before generic quality and speed tie-breaks. |
| 37 | + Existing ancestor, official and fresh audit gates remain required as configured. |
| 38 | + |
| 39 | +## Evidence and limits |
| 40 | + |
| 41 | +- Implementation: `rlm/v100/goal_learning.py`; research/chat tools in `research_tools.py`, |
| 42 | + `mission_chat.py`, `researchers.py`, `drones.py`, `paper_agents.py`; training in |
| 43 | + `insights.py`, `training.py`, `experiments.py`, `competition.py`. |
| 44 | +- Ledger: `research/goal-learning/ledger.sqlite3`; source snapshots under `sources/`. |
| 45 | +- `mission_evidence.goal_learning` reports pending/expired/resolved questions, probabilities, |
| 46 | + outcomes and recent scores. The existing dashboard evidence section shows this data. |
| 47 | +- Branch reports: `goal-development.jsonl`, `goal-parent.json`, `goal-candidate.json`. |
| 48 | +- Observational prediction is not proof of causal influence, investment profitability, |
| 49 | + transaction eligibility or an optimal policy. Costs and realized rewards use the |
| 50 | + separate paper ledger. Retrieval time does not certify original publication time. |
| 51 | +- Targets must currently be public JSON scalar outcomes. This does not provide |
| 52 | + authenticated social APIs, arbitrary event settlement or autonomous commerce. |
| 53 | +- The panel is reused development validation, not an untouched final financial audit. |
| 54 | + Entity correlations across different domains/URLs may remain. New forward commitments |
| 55 | + supply chronological online evidence; returns require separate later paper outcomes. |
| 56 | +- Resident researchers can choose and test hypotheses, but successful discovery, source |
| 57 | + availability, sufficient validation diversity and weight improvements are not guaranteed. |
| 58 | +- Architecture activation paths retain their existing gates; this goal panel is currently |
| 59 | + integrated into exported LoRA A/B candidates, not every alternative architecture pilot. |
| 60 | + |
| 61 | +The design uses test-before-update observational evidence rather than assuming stable |
| 62 | +relationships. Online adaptation under changing distributions is an active research |
| 63 | +problem; this implementation does not reproduce the neural architectures of these papers: |
| 64 | + |
| 65 | +- [Learning under Concept Drift: A Review](https://arxiv.org/abs/2004.05785) |
| 66 | +- [Handling Concept Drift in Global Time Series](https://arxiv.org/abs/2304.01512) |
| 67 | +- [Proactive Model Adaptation Against Concept Drift for Online Time Series Forecasting](https://arxiv.org/abs/2412.08435) |
0 commit comments