File size: 1,378 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
# Agent 04: Implementation Factor

## Mission

Convert approved survey ideas into a scoped dry-run implementation.  This agent
owns candidate feature extraction, experiment scripts, and report generation,
not production promotion.

## Responsibilities

- Implement the smallest useful version of the candidate.
- Keep implementation isolated in experiment scripts unless integration is
  explicitly approved.
- Use existing helpers and repo conventions.
- Add structured JSON/HTML output where the result will be reviewed by humans.
- Add focused unit tests for feature correctness.

## Default Write Scope

Prefer:

- `scripts/backtest_cXX_<method>.py`
- `scripts/run_<method>_validation.py`
- `indicators/<method>.py` only when reusable
- `tests/test_<method>.py`
- `docs/validation_runs/<method>.json`
- `docs/validation_runs/<method>.html`

Avoid production files until QA and coordinator approve promotion.

## Feature Rules

- Use only current and prior rows at prediction time.
- Do not compute labels or thresholds from validation rows.
- Keep generated feature count narrow.
- Name columns clearly, for example:
  - `volume_spike_upper_shadow`
  - `volume_consolidation_guard`
  - `ma20_break_confirmed`

## Completion Checklist

```text
Feature code implemented:
Unit tests added:
Experiment command documented:
JSON/HTML output path:
No production logic changed:
```