Repository navigation
Project Tracker
Open tasks and known bugs for FXNews. Numbers are stable task ids from the production audit started 2026-09-13; last updated 2026-09-13.
Status values: Open, Start, Progress, Test, Audit, Done, Deferred. A task is Done only after it compiled cleanly (tools/build-macos.sh), passed the census (tools/census.py), passed the headless self-test (tools/selftest-macos.sh) and was re-read against its original finding.
Progress: 120 of 120 done (Done 120).
Line numbers refer to FXNews.mq5 at commit 9069ca3 (version 2.3) unless stated.
Independent pre-production audit of the whole repository, run on branch audit/2026-09-15 from base commit 71ce980, and merged by pull request only after the final phase passed. The authoritative ledger lives in the repository at AUDIT/ledger.md / AUDIT/ledger.json; this page mirrors it and the ledger wins on any conflict.
total 55 | done 51 | open 4 | blocked 0 | S0:1 S1:13 S2:16 S3:25
| # | Sev | Status | Area | What |
|---|---|---|---|---|
| F-025 | S2 | START | ops | A live-looking GitHub PAT was supplied in plaintext and is present in the agent session transcript |
| F-049 | S2 | START | tests | Alert dispatch, correlation grouping and dashboard rendering still have no automated coverage |
| F-036 | S3 | START | docs | The tracker describes itself as open tasks and known bugs while showing 120/120 done, and its line-number baseline still says version 2.3 |
| F-037 | S3 | START | docs | The documented version-bump procedure requires a deployment clone at MQL5/Indicators/FXNews/ that does not exist on this machine |
None.
| # | Sev | Area | What | Evidence |
|---|---|---|---|---|
| E-1 | S0 | tooling | Build and self-test gates cannot execute: bundled wine64 is x86_64 and Rosetta 2 was absent on all four Macs | Rosetta install finished successfully; arch -x86_64 /usr/bin/true OK; wine64 --version -> wine-9.14; ./tools/build-macos.sh -> 0 errors, 0 warnings, exit 0; ./tools/selftest-macos.sh -> 117 passed, 0 failed |
| E-2 | S1 | tooling | No MQL5 formatter, linter, static analyzer, SAST scanner or coverage tool exists | AUDIT/environment.md section 2 records the gap and the compensating controls |
| E-3 | S1 | verification | The historical end-to-end gates cannot reach green in this environment until M1 history is available at run time | Both historical modes now run end to end on real broker history. --validation exit 0: 50000 M1 bars, 2589 boundaries evaluated, Signals=601 (reproduced twice). --autotune exit 0: 9 candidates over 2584 boundaries, 'Current: signals=603 avgScore=74.7 PF=0.79 AvgR30=-0.134 Hit30=35.7%', a ranked best candidate, recommended settings printed, and 'Applied: no runtime change' - the advisory boundary holds. The AUTOTUNE wait also exercised the timeout branch: EURUSD consumed its full 60 s budget and was skipped while GBPUSD loaded ('2/2 symbols processed (GBPUSD, 50000 M1 bars, 48.8 days)'). |
| E-4 | S1 | verification | Provision an independent macOS host for Phase E | Fresh clone on node2: 21 tracked files, working tree clean at 64060cc. Zero-warning compile verified on the independent host: 'Result: 0 errors, 0 warnings'. contracts 0 violations and census 0 open findings verified on node1 and again on node2. |
| E-5 | S1 | verification | Phase E's self-test gate could not run over SSH: the spare Macs' terminal exits when launched outside the Aqua session | Independent host node2, fresh clone at 64060cc, 21 tracked files, working tree clean, all four gates green inside the Aqua session: contracts 0 violations across 6; census 0 open findings (zero placeholders); zero-warning compile 'Result: 0 errors, 0 warnings'; self-test 'RESULT: 149 passed, 0 failed of 149 assertions' with 'SELFTEST PASSED'. Scanner suite on the same host: ruff check, ruff format --check, mypy --strict, bandit, shellcheck, shfmt -d and a full-history gitleaks scan all PASS. Coverage: census.py 86%, contracts.py 77%, total 84%. Diagnostic evidence: launchctl managername returns Aqua on the working host and Background over SSH on the spare, and the terminal's own log shows it exiting 0.05 s after the Wine warning on the spare versus loading the script 2.3 s later on the working host. |
| F-002 | S1 | scoring | UpdateSessionBaseline folds active_trigger_tick_volume into the tick-volume baseline unguarded, while the adjacent line explicitly guards the tick rate | New self-test group 'session baselines'. BEFORE (temporary restore of shared-counter readiness): 'session baseline: a single rate sample is not yet a baseline' FAILED; RESULT 122 passed, 1 failed of 123 assertions; selftest exit 1. AFTER: RESULT 123 passed, 0 failed of 123; exit 0. Build 0 errors/0 warnings; census 0 findings; shellcheck clean; ruff/mypy --strict/bandit clean. |
| F-003 | S1 | scoring | movement_5m_pips falls back to a 0.0 sentinel when the M1 copy fails and is then consumed as a measured value by three components | New self-test group 'exhaustion availability'. BEFORE (availability gate removed): 1 assertion FAILED - 'ComposeSignalScore ignores an overextension reading that was not measured'; RESULT 134 passed, 1 failed of 135; exit 1. AFTER: RESULT 135 passed, 0 failed of 135; exit 0. Historical regression: --validation still reports 50000 bars, 2589 boundaries, Signals=601, Avg score=74.7, PF=0.79 - identical to before the change, confirming the live path was the one affected. Build 0/0; census 0 findings; shellcheck clean. |
| F-004 | S1 | historical | Historical impulse evaluation forces acceleration_available and continuation_available to true, hard-coding weights for inputs that may be unmeasurable | New self-test group 'impulse availability'. BEFORE (forced flags restored): 1 assertion FAILED - 'impulse blend: unavailable terms leave the normaliser (got 0.600000, expected 1.000000)'; RESULT 129 passed, 1 failed of 130; exit 1. AFTER: RESULT 130 passed, 0 failed of 130; exit 0. Build 0/0; census 0 findings; shellcheck clean. |
| F-005 | S1 | historical | Historical execution gate applies cost_to_atr unconditionally, so VALIDATION/AUTOTUNE do not reproduce the live filter set when UseStrictExecutionGate is off | New self-test group 'execution gate'. BEFORE (unconditional ceiling restored): 2 assertions FAILED ('a high cost-to-ATR passes when the strict gate is off', 'the spread-z ceiling is strict-gated as well'); RESULT 126 passed, 2 failed of 128; exit 1. AFTER: RESULT 128 passed, 0 failed of 128; exit 0. Build 0/0; census 0 findings. |
| F-006 | S1 | historical | Two composite caps are structurally inert in history, so historical scores are systematically less penalised than live scores | Real run: ./tools/selftest-macos.sh --validation exit 0 prints 'Model limits: hold below the scan timeframe is not resolvable and intra-bar / re-entry is not tracked, so hold_score saturates and fakeout_penalty is 0; / weak_hold_cap and range_snapback_cap cannot bind here, unlike a live scan.' Build 0 errors / 0 warnings. Report and documentation change only, so there is no fail-before test; the evidence is the emitted report text. |
| F-007 | S1 | tests | The availability-and-composer self-test assertion cannot detect an exclusion regression | BEFORE (imputing weight restored): the new assertion FAILED - 'leaves the blend unchanged when a component is unmeasured (got 27.257710, expected 53.943724)'; RESULT 129 passed, 2 failed of 131; exit 1. AFTER: RESULT 131 passed, 0 failed of 131; exit 0. Build 0/0; census 0 findings; shellcheck clean. |
| F-008 | S1 | tests | The live signal lifecycle, correlation grouping, alert dispatch and dashboard rendering have no automated coverage | Introduced the test and proved it detects the defect class by reintroducing the real 2.x regression (active TTL hard-coded to 300 s, tracker task 13). BEFORE: 2 assertions FAILED - 'the age limit ends the signal into a cooldown' and 'a running cooldown holds that direction out'; RESULT 138 passed, 2 failed of 140; exit 1. AFTER: RESULT 140 passed, 0 failed of 140; exit 0. Build 0/0; census 0 findings; shellcheck clean. A first injection targeted EventAgeLimitSeconds() and correctly did NOT fail the test, because that function feeds the composer's age cap rather than the active-state TTL; the injection site was corrected and the false negative is recorded in the commit so a green result is not mistaken for proof. |
| F-046 | S1 | tooling | The historical gate passed a VALIDATION report that had read no data at all | BEFORE: 'selftest: OK (validation report complete, Signals=0)', exit 0. AFTER: 'selftest: FAILED (validation read no history: 0 symbol(s) loaded, 0 M1 bar(s), 0 boundar(ies) evaluated)', exit 1, with guidance to open an M1 chart. shellcheck clean. |
| F-047 | S1 | historical | The historical modes treat the first empty M1 copy as final, so a history download in progress yields an empty report | The gate is the unit under test. BEFORE (retry disabled): 'Symbols 0/2 | M1 bars=0', 'selftest: FAILED (validation read no history ...)', exit 1 - run twice. AFTER: 'Symbols 1/2 | Profiles with data=2 | M1 bars=50000', 'Boundaries: evaluated 2589 of ~10683', 'Signals=601', gate OK, exit 0 - run twice (2588/605 then 2589/601). Falsification attempted: the retry-disabled version was re-run after a successful populated run with the same terminal state and still read 0 bars, which rejects cache warming as the explanation. |
| F-001 | S2 | scoring | ComputeBreakoutStructure did not initialise its own output, so the documented pure shared function returned garbage to a direct caller (originally filed as a hold_score imputation) | New self-test group 'breakout hold'. BEFORE (caller-dependent form restored): 2 assertions FAILED ('an unbroken box is measured, not passing, zero hold', 'weights a sustained hold above a zero hold'); RESULT 131 passed, 2 failed of 133; exit 1. AFTER: RESULT 133 passed, 0 failed of 133; exit 0. Build 0/0; census 0 findings. |
| F-009 | S2 | scoring | session_baseline_ready is a single flag for three independent baselines, so a z-score can be reported as measured when its own baseline never received samples | New self-test group 'session baselines'. BEFORE (temporary restore of shared-counter readiness): 'session baseline: a single rate sample is not yet a baseline' FAILED; RESULT 122 passed, 1 failed of 123 assertions; selftest exit 1. AFTER: RESULT 123 passed, 0 failed of 123; exit 0. Build 0 errors/0 warnings; census 0 findings; shellcheck clean; ruff/mypy --strict/bandit clean. |
| F-011 | S2 | dashboard | g_signal_history_dirty is never cleared while active signal rows are rendered, forcing a full dashboard rebuild every scan | BEFORE (refresh moved back inside the display branch): tools/contracts.py FAILS with 'UpdateDashboard refreshes the history only after if(ShowActiveSignalRows); with active rows enabled the dirty flag is then never cleared and the dashboard rebuilds every scan (F-011)', exit 1. AFTER: 0 violations, exit 0. New self-test group 'history refresh' asserts the flag-consume contract directly; full gate 145 passed, 0 failed of 145. Build 0/0; census 0 findings; shellcheck clean. |
| F-014 | S2 | tooling | The Wine path, WINEPREFIX and MT5 path constants are duplicated across the two gate scripts and can drift | Scripts are the unit under test. BEFORE (probe removed): 'build: MetaEditor wrote no log (wine exit status 1)', exit 3 - the misleading compiler diagnosis, reproduced deliberately. AFTER: 'wine64 exists but cannot run ... needs Rosetta 2 ... sudo softwareupdate --install-rosetta --agree-to-license', exit 2; the same probe on selftest-macos.sh exits 2; a missing binary still reports 'wine64 not found' with exit 2 so the two failures stay distinguishable. No regression: build 0/0, full selftest 142 passed / 0 failed, explicit-source-path build works, census 0 findings, shellcheck clean on all three files. shellcheck's SC2034 on ME/TERMINAL was fixed by exporting the interface variables rather than with a disable directive. |
| F-015 | S2 | tooling | The indicator, the harness and the gate script are coupled by undocumented string literals with no contract test | BEFORE (one verdict label reworded in the harness only): contracts.py FAILS with 'FXNewsSelfTest.mq5 no longer contains SELFTEST PASSED', exit 1. AFTER: 0 violations across 5 contracts, exit 0. contracts.py itself passes ruff check, ruff format, mypy --strict and bandit. Two mistakes in the checker were found by running it and fixed rather than loosened: it first demanded 'SELFTEST FAILED' in the shell gate, which only needs to recognise the passing verdict, and ruff flagged a nested if. |
| F-016 | S2 | ops | No CI workflow: the three release gates are never run automatically | All nine CI steps were run locally and pass (census, contracts, ruff check, ruff format --check, mypy --strict, bandit, shellcheck, shfmt -d, gitleaks). The pinned release downloads were verified reachable (HTTP 200 for shfmt 3.14.1 and gitleaks 8.30.1) and the three PyPI pins exist. The workflow YAML parses: 1 job, 12 steps. This task was only possible after F-026, F-027 and F-028 cleared the findings that would have made the first run red. HONEST ADDENDUM: the first real CI run FAILED at shell lint, which the local run had passed. The workflow pinned every tool except shellcheck and used the runner image's older release, which reports a trap-invoked function body as unreachable (SC2317) while shellcheck 0.11.0 does not. Filed as F-050 and fixed; the run after the fix is the evidence that matters, and the local pass alone was not sufficient evidence. |
| F-017 | S2 | validation | MaxQuoteAgeSeconds and FullHoldScoreSeconds have no upper bound, so extreme values silently disable the freshness gate or make the HYBRID hold clause unreachable | Two new self-test cases. BEFORE (new ceiling neutralised, syntax kept valid): 168 passed, 1 failed of 169, exit 1, and the failing case is the quote-age ceiling. AFTER: 169 passed, 0 failed of 169. Build 0/0; census 0; contracts 0. |
| F-018 | S2 | scoring | single_feature_cap is applied without checking that the feature it measures was evaluated | New self-test group 'composer engine gating'. BEFORE (both rules reverted to their ungated form): 2 assertions FAILED; RESULT 140 passed, 2 failed of 142; exit 1. AFTER: RESULT 142 passed, 0 failed of 142; exit 0. Historical regression after the shared-composer change: --validation exit 0 with 2589 boundaries, Signals=605, Avg score=74.7, PF=0.80 - no material change from the pre-change run (2589/601/74.7/0.79). Build 0/0; census 0 findings. |
| F-019 | S2 | scoring | The +0.05 synergy bonus is awarded on component scores without checking that either engine passed or was measured | New self-test group 'composer engine gating'. BEFORE (both rules reverted to their ungated form): 2 assertions FAILED; RESULT 140 passed, 2 failed of 142; exit 1. AFTER: RESULT 142 passed, 0 failed of 142; exit 0. Historical regression after the shared-composer change: --validation exit 0 with 2589 boundaries, Signals=605, Avg score=74.7, PF=0.80 - no material change from the pre-change run (2589/601/74.7/0.79). Build 0/0; census 0 findings. |
| F-021 | S2 | dashboard | WrapLabelText wraps report lines at 63 characters but SetDashboardRow re-clips them to the measured pixel limit, truncating the wrapped tail | New assertion: the same text wrapped at width 20 yields more pieces than at 63, every piece fits 20 characters, and both the first and last word survive joining - so no text is dropped. BEFORE (wrapper ignoring the width, old constant, signature unchanged): 172 passed, 1 failed of 173, exit 1. AFTER: 173 passed, 0 failed of 173. Build 0/0; census 0; contracts 0. |
| F-023 | S2 | tests | No test could reach any ValidateInputs rejection path | New self-test group 'input validation': one baseline acceptance plus 18 single-field rejections with non-empty messages, covering every extracted guard. Removing any one guard fails its own case: the ATR-period guard and the F-017 quote-age ceiling were each removed in turn and each produced '168 passed, 1 failed of 169'. Assertions 149 -> 169. Build 0/0; census 0; contracts 0. |
| F-024 | S2 | tooling | build-macos.sh cannot distinguish 'Wine cannot execute' from 'the compiler produced no result line', and reports the wrong exit code | Scripts are the unit under test. BEFORE (probe removed): 'build: MetaEditor wrote no log (wine exit status 1)', exit 3 - the misleading compiler diagnosis, reproduced deliberately. AFTER: 'wine64 exists but cannot run ... needs Rosetta 2 ... sudo softwareupdate --install-rosetta --agree-to-license', exit 2; the same probe on selftest-macos.sh exits 2; a missing binary still reports 'wine64 not found' with exit 2 so the two failures stay distinguishable. No regression: build 0/0, full selftest 142 passed / 0 failed, explicit-source-path build works, census 0 findings, shellcheck clean on all three files. shellcheck's SC2034 on ME/TERMINAL was fixed by exporting the interface variables rather than with a disable directive. |
| F-048 | S2 | historical | The historical reports print the same generic interpretation whether or not higher score buckets actually produced better outcomes | New self-test group 'ranking check' (4 assertions) including the exact falling profile the AUTOTUNE run produced. BEFORE (comparison inverted): 147 passed, 2 failed of 149, exit 1. AFTER: 149 passed, 0 failed of 149. New contract 'ranking-disclosure' pins both call sites; with the call removed from BuildAutotuneReport only, contracts fails with a precise message. End-to-end --validation exit 0 prints 'Ranking check: NOT SUPPORTED on this sample - the highest populated bucket (80+) averaged -0.095 R against -0.094 R in the lowest (60+), and only 3 of 4 adjacent pairs improved.' Build 0/0; census 0; contracts 0 across 6. |
| F-050 | S2 | tooling | The CI workflow pinned every analysis tool except shellcheck, and the unpinned one failed the build | shfmt -d clean and shellcheck 0.11.0 clean on all three scripts, with zero 'shellcheck disable' directives remaining in them except the two pre-existing SC1003 lexical notes. The pinned URL returns HTTP 200. The EXIT trap was verified to still clean up: after a full gate run the harness install directory, the harness script and the preset are all removed, and the gate reports 145 passed, 0 failed of 145. The workflow YAML still parses with six pinned versions. |
| F-010 | S3 | historical | The 85+ bucket in the historical report is unreachable (now empirically confirmed; the wiki already documents the empty bucket, so only the unannotated report row remains) | --validation exit 0 prints the zero row followed by the explanation line. Build 0/0; census 0; contracts 0/9; selftest 182/0. |
| F-012 | S3 | scoring | DISPROVED: the wick penalty's missing denominator entry is the correct arrangement | New self-test group 'breakout blend' (3 assertions) pins the ceiling. Applying the proposed fix (total_weight += 0.15) gives '170 passed, 2 failed of 172' with the ceiling assertions failing - the disproof. Current code: 172 passed, 0 failed of 172. Build 0/0; census 0; contracts 0. |
| F-013 | S3 | dashboard | DOMINANT FLOW's fallback group id is shared by every timeframe of a symbol - deliberate, not a defect | Four self-test assertions pin the identity, including that opposite directions on one symbol do NOT share a group. BEFORE (direction dropped from the id): 176 passed, 1 failed of 177, exit 1. AFTER: 177 passed, 0 failed of 177. Build 0/0; census 0; contracts 0. Verified that group_member_count is rendered as '(N)' at FXNews.mq5:8259, so suppressed members are visible. |
| F-020 | S3 | scoring | RobustZ returning 0 on degenerate dispersion is the correct z, not an imputation (filed as a false-measured spread_z; disproved) | Proof by the computation's own invariants: FXNews.mq5 AddSpreadSample precedes UpdateSpreadStatistics in UpdateMarketData; RobustZ (FXNews.mq5:~8680) returns 0 only when MathMax(mad * MAD_TO_SIGMA, sigma_floor) <= 1e-7, and with sigma_floor = 0 (the spread call) that requires mad == 0, i.e. every ring sample equals the median. The same argument holds for BaselineZ on a zero-variance session baseline, where an EWMA mean equal to the value gives sd = 0 and (value - mean) = 0. The genuinely degenerate case that would matter - a value differing from a zero-dispersion centre - cannot occur, because the value is itself one of the samples that established the zero dispersion. |
| F-022 | S3 | dashboard | BuildDiagnosticsLines recounts the dashboard objects on every scan, including the light path | New contract 'diagnostics-object-count' requires BuildDiagnosticsLines not to call CountDashboardObjects() directly. BEFORE (cache read reverted): contracts fails with that exact message, exit 1. AFTER: 0 violations across 7 contracts. Build 0/0; census 0; selftest 149/0. |
| F-026 | S3 | tooling | ruff F541: two f-strings without placeholders | ruff check tools/census.py clean. The change cannot alter detection because the prefix was inert, and that was verified rather than assumed: a synthetic probe file with three planted findings (write-only local, placeholder literal, uncalled function) is detected identically before and after - 3 findings, exit 1 - while the real source still reports 0 findings, exit 0. mypy --strict and bandit clean. |
| F-027 | S3 | tooling | ruff format drift: the only Python file is not formatted to the formatter's standard | ruff format --check clean; ruff check clean; mypy --strict clean; bandit clean. Census behaviour unchanged: 3 findings on the synthetic probe, 0 on the real source. |
| F-028 | S3 | tooling | shfmt drift in both shell scripts | Reformatting executable gates is behaviour-risky, so every gate was run afterwards instead of trusting a whitespace-only diff. shfmt -d reports no drift; shellcheck clean on all three files; tools/contracts.py reports 0 violations, which also proves the patterns it parses out of selftest-macos.sh survived; build 0 errors / 0 warnings; full selftest 145 passed, 0 failed of 145. |
| F-029 | S3 | tooling | tools/census-allow.txt is documented and defaulted to but does not exist | The mechanism is proven, not assumed: against a scratch copy of the source with a deliberately dead identifier appended, census.py reports '[FINDING] unused-global: g_probe_dead_identifier' and exits 1 without an allow file, and '[allowed] ... 0 open finding(s), 1 allowed' with one naming it. Against the real source the committed file leaves the census at 0 findings, 0 allowed. |
| F-030 | S3 | tooling | .coverage is not ignored, so the coverage artifact required by the audit brief can be committed by accident | BEFORE: 'git status --porcelain' listed '?? .coverage' (53 KB) and 'git check-ignore' exited 1. AFTER: 'git check-ignore -v .coverage' reports '.gitignore:12:.coverage .coverage' and the working tree is clean with the artifact present on disk. |
| F-031 | S3 | repo | One contributor appears under three different author identities | BEFORE: 'git log --format=%an <%ae> | sort -u' reports 5 identities (node3; André Borchert at two addresses; Pummelchen at two). AFTER: 'git log --format=%aN <%aE> | sort -u' reports 1, with all 130 commits attributed to it. |
| F-032 | S3 | docs | The gate script's header comment states the wrong assertion count (72; actual 117) | grep -rnE '[0-9]+ (pure-helper )?assertions' README.md CLAUDE.md tools/ returns no match; the gate still reports its total at runtime ('RESULT: 130 passed, 0 failed of 130 assertions'). |
| F-033 | S3 | docs | The wiki Testing page hard-codes the assertion total on the same page that promises it never has to | Wiki commit 'docs: stop hard-coding the self-test assertion total'; Testing-and-Validation.md:11 and Architecture.md:49 reworded. |
| F-034 | S3 | docs | Known-Limitations calls all three gates macOS-only, but census.py is cross-platform | grep for 'three gates' / 'All three' / 'macOS-only' across the wiki returns no stale claim; Testing-and-Validation.md gained a 'What CI Covers, and What It Cannot' section and its gate table lists contracts.py; Home.md's project-structure paragraph no longer says there is no CI workflow. |
| F-035 | S3 | docs | Development-Guide both denies and documents the release process, and lists 'test' among commands that do not exist | Development-Guide.md:23 rewritten; the page now names the four gates, says which are cross-platform, and points at Release-Checklist.md for the release sequence. |
| F-038 | S3 | scoring | Unreachable guard: total_weight can never be zero | No observable test exists for this branch and none is claimed: the branch cannot be taken, so nothing can fail before or pass after. The invariant it protects is covered by the composer's existing 'all optional components unmeasured' assertions, which exercise the smallest total_weight. |
| F-039 | S3 | docs | The age_free_score field comment understates what the value excludes | New contract 'score-ceiling-reasons' checks the documented claim mechanically: it fails if the capture moves after the event-age caps. Verified by moving it after late_event_cap, which produces the F-039 violation, exit 1. Restored: 0 violations across 8 contracts. |
| F-040 | S3 | logic | The hard 95 ceiling is the only cap that records no reason string | BEFORE (silent clamp restored): contracts reports two violations naming F-040, exit 1. AFTER: 0 violations across 8 contracts. Build 0/0; census 0; selftest 177 passed, 0 failed of 177. |
| F-041 | S3 | logic | The BAR_CLOSE confirmation rule was unreachable by any test, and its threshold clause is redundant | Four assertions, the load-bearing one being that a surviving candidate below the floor does NOT confirm. BEFORE (threshold clause dropped): 180 passed, 1 failed of 181, exit 1. AFTER: 181 passed, 0 failed of 181. Build 0/0; census 0; contracts 0/9. |
| F-042 | S3 | dashboard | PushSignalHistory's shift loop copies empty slots when the list is not yet full | New contract 'signal-history-shift' pins the property that is checkable. BEFORE (free-slot search removed): contracts fails with the F-042 message, exit 1. AFTER: 0 violations across 9 contracts. Stated limit: the resulting list is identical before and after, so no behavioural test can distinguish them - which is why the finding survived review. |
| F-043 | S3 | logic | DISPROVED: SmoothStep's edge re-orientation is a tested fix for a pre-1.4 defect | Grepping every call site found exactly three reversed literal pairs, all of them self-test assertions (SmoothStep(0.50,0.35,0.20) < ...(0.60), and ...(1.0,0.0,0.5) == 0.5). No production caller passes reversed edges, and the adjacent comment already recorded that before the fix the ramp ran backwards and scored 1.00 for moves against the signal. Build 0/0; census 0; contracts 0/9; selftest 177/0. |
| F-044 | S3 | docs | The ATR definition (simple mean of true range, not Wilder smoothing) is undocumented | New self-test group 'atr definition' on a three-bar series with true ranges 14, 5, 4: simple mean 7.667 against Wilder 8.667. BEFORE (genuine Wilder recursion substituted): 181 passed, 1 failed of 182, exit 1. AFTER: 182 passed, 0 failed. Build 0/0; census 0; contracts 0/9. |
| F-045 | S3 | tooling | --install creates the destination directory silently and never verifies the terminal can load the binary | Against the real prefix: first run 'install target absent, creating: ...' then 'installed FXNews.ex5 ... (246424 bytes, verified)' with the installed file measuring 246424 bytes against a 246424-byte source; second run reports 'install target exists' and verifies again. The size guard was reproduced in isolation with a 3-byte file against a 10-byte source and reports REJECTED, exiting 2. shfmt -d and shellcheck tools/*.sh are clean. |
| # | Status | Task |
|---|---|---|
| 1 | Done | tools/census.py: automated dead-code / placeholder census (Python 3.14). |
| 2 | Done | tools/selftest-macos.sh + tools/mql5/FXNewsSelfTest.mq5: headless self-test harness. |
| 3 | Done | build-macos.sh: MetaEditor timeout, mktemp -d (leaked temp file), wine exit status, cd failure handling, log-path space guard, iconv partial fallback, header comments (usage, exit codes). |
| 4 | Done | build-macos.sh: opt-in --install flag copying FXNews.ex5 to MQL5/Indicators/FXNews/. |
| 5 | Done | Wiki Project-Tracker page created and kept current. |
| # | Status | Task |
|---|---|---|
| 6 | Done | 4774 CalendarValueHistory returns bool assigned to int count -> out-of-range read on empty array; available must mean "call succeeded", relevant_event_nearby means "event in window"; skip non-DATETIME time_mode events. |
| 7 | Done | 6234 CopyTicks(from,count) returns the oldest ticks -> newest cut during bursts; request last N and filter by from_msc; cap MinCopyTicksForGoodQuality <= MAX_COPY_TICKS in ValidateInputs. |
| 8 | Done | 3393/3553 rolling range box absorbs the breakout bar at trigger-bar rollover -> self-invalidation; freeze the box while an event is live. |
| 9 | Done | 1327 Autotune flips to LIVE (report wiped, alerts may fire); remove; both historical modes stay parked. |
| 10 | Done | 614-624 run-state globals never reset in OnInit (self-test/backtest never re-run after parameter change, stale history, alert windows); add ResetRuntimeState(). |
| 11 | Done | 4919/3941 CONFIRM_BAR_CLOSE cannot confirm on TF > M5 (300 s age caps zero the candidate); age caps must be scaled to the scan timeframe for candidates. |
| 12 | Done | 5174/5207 ActivateSignal on an already-active signal fails IsConfirmedSignal in BAR_CLOSE (candidate_bar_time cleared) -> no strong-upgrade alerts, no history update, flip unreachable; HYBRID hold clause trivially true when candidate_start_time==0. |
| 13 | Done | 5083/5095/3942 hard-coded 300 s override SignalTTLSeconds and make ExpireOldSignals a no-op; derive from SignalTTLSeconds. |
| 14 | Done | 5091 grace period before ending a decayed signal uses DisplayUpdateSeconds; dedicated constant. |
| 15 | Done | 4286 currency-flow directional_edge includes the pair's own move (self-confirmation); leave-one-out strength per pair. |
| 16 | Done | 4639 CalculateBasketAgreement counts same-symbol sibling profiles as peers; exclude same symbol. |
| 17 | Done | 3145/6195 dead-feed detection: quote age from TimeCurrent (frozen when no ticks) and tick gap reset to 0 on scans without a new tick; use TimeTradeServer + TERMINAL_CONNECTED and retain the last inter-arrival gap. |
| 18 | Done | 5725/5836/5872 recent-signal list: force a visible refresh when an entry is inserted (row can be dropped before rendering), define persistence semantics (no removal/re-insert flicker; dwell protects only from eviction), stable newest-first invariant. |
| 19 | Done | 180/5775 list threshold 75 hard-coded vs MinDisplayConfidence/StrongAlertConfidence; new input RecentListMinScore (default 75) validated >= MinDisplayConfidence; documented. |
| 20 | Done | 4006/4072 execution: median_spread fallback = spread (ratio 1.0, gates inert), spread_z=0 and tick_gap=0 when unmeasured -> availability flags, exclude from blend and gates. |
| # | Status | Task |
|---|---|---|
| 21 | Done | 3870/4188 impulse (and breakout) unmeasured but weighted at 0 in the normaliser; add measured flags and gate weights. |
| 22 | Done | 6212-6268 tick_sample_quality_score constants (0.50/0.65/0.25/0.15) multiplied into impulse; tick_quality_available flag, apply multiplier only when measured. |
| 23 | Done | 6405/6420 TickRateZ -1.0 sentinel and TickVolumeRobustZ 0.0 -> available out-params; exclude from blend and from unsupported_impulse_cap. |
| 24 | Done | 3286/3306/4325 atr_m5==0 -> m5_move_atr 0 -> SmoothStep 0.5 neutral constant; has_m5_move/has_m15_move flags; also use closed bars (forming-bar sawtooth). |
| 25 | Done | 6469 ReferenceMid falls back to the oldest snapshot -> understated z, ContinuationScore always "measured"; return unavailable. |
| 26 | Done | 4126/3919 candle metrics with candle_range ~ 0 (fresh bar) -> weak_body_cap on every new bar; treat as unmeasured below 0.05 ATR. |
| 27 | Done | 4267/4282/4351/4632 neutral sentinels 0.50 / 0.65 stored for unavailable basket/calendar; store 0.0. |
| 28 | Done | 4009 SafeDiv(spread, median, 1.0) neutral fallback; explicit guard. |
| 29 | Done | 1862 historical spread==0 imputed as 1.0 pip; count and skip. |
| # | Status | Task |
|---|---|---|
| 30 | Done | 3941 age>300 sets capped=0 without reason -> ApplyScoreCap "expired_event_cap"; 5066 flip test compares capped vs uncapped directions -> compare consistently. |
| 31 | Done | 4325/3926 mtf_reject_cap threshold (m5_context<=0.20) does not correspond to M5RejectAtr; derive the cap from the raw move. |
| 32 | Done | exhaustion/fakeout/conflict penalties applied in blend and as caps (and block); decide one mechanism per penalty, document. |
| 33 | Done | 3958 elite cap hold term vetoes 90+ when technical engine off; gate on engine; flow term unreachable. |
| 34 | Done | 4335 regime.rollover_penalty always 0 (execution gate blocks first); remove field and term. |
| 35 | Done | 4203 acceleration not ATR-normalised; also plain divisions with constants. |
| 36 | Done | 3849 BLOCK_NO_MOVEMENT_DATA misused for "no setup" -> BLOCK_NO_SETUP; 3857 spread-only breakout reuses BLOCK_BAD_SPREAD -> BLOCK_SPREAD_ONLY_BREAKOUT; BlockStageRank updated. |
| 37 | Done | 5155/5773 rounding inconsistency between display gating and printed percentage. |
| 38 | Done | tags/reasons: IMP+/BRK+ gated on engine pass; FLOW? only when engine enabled (FLOW_OFF otherwise); tick tags copied before impulse early-return; "strong impulse" text threshold = g_min_impulse_z; one ENGINE_CONFIRM_THRESHOLD constant; human reason for blocked rows. |
| 39 | Done | 4462 BuildReasonSummary lists disabled engines; exclude. |
| 40 | Done | 6363 SpeedRobustZ duplicates RobustZ with different zero-MAD behaviour; unify with floor parameter; named MAD scale constant; self-test. |
| 41 | Done | 6353/6369 speed z baseline built from per-interval rates but measured over 5/10/30 s windows; per-window baselines. |
| 42 | Done | 3476/6429 forming-bar tick volume biases baseline; time-normalise; rename TickVolumeRobustZ (not a z). |
| 43 | Done | 6318 TickRateFromSnapshots counts snapshots (capped at 1/ScanIntervalSeconds), denominator = observed span; use true tick rate from CopyTicks when available, else seconds_back. |
| # | Status | Task |
|---|---|---|
| 44 | Done | 5116 candidate direction switch applies no failed cooldown to the abandoned direction. |
| 45 | Done | 5077/5212 every ACTIVE termination gets ValidSignalCooldownSeconds; use failed cooldown for early collapse / context failure. |
| 46 | Done | 5084/5096 SignalExpiredByContext evaluated twice; PickBestDirection computed when ignored. |
| 47 | Done | 5191/5315 failed SendOptionalAlert retried every scan for strong signals, dropped for normal ones; backoff via last_alert_sent_time, count attempt. |
| 48 | Done | 214/5296 MAX_ALERTS_PER_MINUTE 12 > terminal limit (10/min, 2/s); sliding window; cap per scan. |
| 49 | Done | 5189/5315 pending_alert_score stale on delayed release; pending_strong_upgrade not downgraded when score drops. |
| 50 | Done | 5252 PlaySound return ignored. |
| 51 | Done | 4954/5033 group membership flaps per scan -> leader gating unstable; bind group id at activation with hysteresis; DominantCurrencyFlow picks larger absolute component (wrong sign semantics), fallback when flow unavailable; drop redundant dominant_currency_flow field. |
| 52 | Done | 4954 CanDispatchAlert unreachable check; 5301 unreachable "ended before alert" branch; 5178 constant local; 4766 alias with stale comment. |
| # | Status | Task |
|---|---|---|
| 53 | Done | 725 TimeframesToScan length cap 64 rejects the PERIOD_ form the parser supports. |
| 54 | Done | 775 MinHoldSecondsForHighScore=0 degrades HYBRID to LIVE_TICK; require >= 1. |
| 55 | Done | 830 rollover start==end silently disables the window; reject or document explicitly. |
| 56 | Done | 823 calendar validation message wrong for the lookahead/cap cases. |
| 57 | Done | 2609 unknown timeframe token silently skipped while a long symbol aborts; make it INIT_PARAMETERS_INCORRECT and list supported tokens. |
| 58 | Done | 2607 literal 9 -> MAX_SCAN_TIMEFRAMES; 183 SESSION_COUNT tied to the enum. |
| 59 | Done | 2920 bare + suffixed symbol both listed: the alias claims the name first and the verbatim one fails forever; dedupe by resolved broker name at parse time. |
| 60 | Done | 2955/2857 identity cache refreshed one scan late after a mid-scan fallback resolution; refresh immediately. |
| 61 | Done | 668/1424 historical modes never retry symbols that failed at init; retry and print statuses before the run. |
| 62 | Done | 2921 retry timer on TimeCurrent (frozen offline) -> TimeLocal; 2923 re-select after Market Watch removal; cache resolution per requested name (avoid rescanning SymbolsTotal x9 every 60 s); 2961 digits<0. |
| 63 | Done | 2728/6624 non-FX symbols accepted although base_index<0 (pips=points, permanent BLOCK_BAD_SPREAD); reject with status "not an FX pair". |
| 64 | Done | 652/2499/2549 ParseSymbols error messages (silent zero returns, dead MAX_PROFILES branch, duplicated cap check). |
| 65 | Done | 660 SELFTEST mode still parses symbols, selects them and allocates buffers; skip. |
| 66 | Done | 147-156 g_* mirrors are pure indirection validated inconsistently; drop mirrors (read inputs) except g_runtime_operating_mode; rename g_range_lookback. |
| 67 | Done | 3090 ClearProfileHistory does not clear session baselines / derived stats; complete it. |
| 68 | Done | 685 OnDeinit: ChartRedraw after cleanup; 649/6586 object prefix: warn on leftover objects at init, GetTickCount cast. |
| # | Status | Task |
|---|---|---|
| 69 | Done | 5455/5466/5359 DiagnosticsText computed up to 3x per scan with 40 ObjectFind each; once per scan; track object count. |
| 70 | Done | 5975 static object properties rewritten every update, ObjectFind twice per row, colour set twice; set on create only; check ObjectSet returns. |
| 71 | Done | 5686/5714 compact tags always truncated and absent from tooltip; add tags to tooltip; document label length assumption. |
| 72 | Done | 5684/5701 session column constant "-" when disabled; build conditionally; 5361/5714 disk_io constant slots removed; scan_avg -> scan_ewma. |
| 73 | Done | 5436 history row tooltip = row text; store reason/tags in SignalHistoryEntry. |
| 74 | Done | 6083 PadRight(symbol,7) vs 10. |
| 75 | Done | 5466 magic row 2 -> DIAGNOSTICS_ROW_INDEX; ObjectDelete of row 0 / diagnostics row every scan -> once. |
| 76 | Done | 5591 selection sort unstable -> tie-break on profile_index; 5420/5434/5473/5970 dead checks. |
| 77 | Done | 6029 text width heuristic -> TextGetSize measurement; dead limit<=3 branch. |
| 78 | Done | no OnChartEvent -> handle CHARTEVENT_CHART_CHANGE to refit rows. |
| 79 | Done | 2232/2478/1168 historical report never drawn on chart (ready line clears the buffer); draw the report, keep the ready line; 2461 report buffer cap truncates the Journal -> bound only the dashboard loop; 2491 header row consistency. |
| 80 | Done | 1151/2427 "running" header never painted; Journal line before the run; abort flag on IsStopped. |
| # | Status | Task |
|---|---|---|
| 81 | Done | 3825-4291 direction-independent evaluation (execution, calendar, session, tick z, basket agreement) done twice per profile; evaluate once per profile per scan. |
| 82 | Done | 3971/4499 reason/tag strings built for every profile every scan; build lazily for displayed/debug rows. |
| 83 | Done | 6232 CopyTicks per symbol per scan even when quote_time_msc unchanged; cache keyed on quote_time_msc; sibling reuse must also check a scan stamp (3358/6296). |
| 84 | Done | 3260/3342 two M1 CopyRates per symbol per scan; copy once, derive both. |
| 85 | Done | 3155 spread/snapshot statistics recomputed when no new sample; guard on new_quote_sample; per-call dynamic arrays -> scratch buffers. |
| 86 | Done | 4118/4689 BreakoutBufferPrice computed 3x per direction. |
| 87 | Done | (unreachable branch removed; basket participation follows the symbol leader, which is the first valid-or-not profile: an invalid leader means the symbol has no fresh data at all) 3321 basket participation only via first profile even if invalid -> first valid profile. |
| 88 | Done | 3555 has_trigger false zeroes outside timers but not reentered_since_*; 3396 stale range fields on failure branch. |
| # | Status | Task |
|---|---|---|
| 89 | Done | Factor the live composite blend + cap ladder into a pure function over component scores used by both live and historical paths. |
| 90 | Done | 1619/1676 historical impulse z and acceleration are per-minute quantities fed into per-second ramps; either compute comparable features or label as proxies with their own thresholds (not MinImpulseZForSignal). |
| 91 | Done | 1523/2003 outcomes ignore spread cost; deduct the bar spread once per outcome. |
| 92 | Done | 1498/1516 stride caps evaluated boundaries, not signals; cap accepted signals; print effective coverage. |
| 93 | Done | 1788/1817/1848/2027 strict minute-continuity rejects gapped windows (H4+ never scored, session bias); aggregate by time, tolerate missing minutes, count rejected boundaries; 1814 ATR previous-close continuity. |
| 94 | Done | 2027/1543 unevaluable outcomes counted as R=0; evaluable flag and unevaluated counter. |
| 95 | Done | 1694/1703/1667/1702 exhaustion, m5/m15 context, hold and flow proxies diverge from live inputs; align where possible, label honestly otherwise. |
| 96 | Done | 1257/1341 candidates vary target/stop so R is not comparable; rank on a common outcome definition, report candidate geometry separately. |
| 97 | Done | 2148/2170 profiles_tested counts zero-scored profiles; 2280 "Recommended effective settings" restricted to equivalent parameters; proxies listed separately. |
| 98 | Done | 1457/2189 report prints input lookback not achieved span; warn when short; 1392 aborted runs print "ABORTED". |
| 99 | Done | 1560 BuildHistoricalSignalScore local index guard; 1571 current_volume unused; 1190 candidate 0 branch unreachable; 1465 ReverseRates unreachable; 2039 redundant guard; 1711 session at close time; 2108 bucket label for min_confidence < 60. |
| 100 | Done | 1511/2412 boundary detection via TimeToStruct per bar per candidate; integer arithmetic; hoist boundary list; cache direction-invariant features across directions and candidates; scratch buffers instead of per-call allocation (1877/1892/1917); rolling median spread. |
| # | Status | Task |
|---|---|---|
| 101 | Done | Unused parameters: UpdateBasketAtr(trigger_rates, copied_trigger), BuildHumanReadableReason(profile), SignalExpiredByContext(now), AddBlockedDebugSignal(now), DashboardSortScore(direction). |
| 102 | Done | Write-only fields: movement_15m_pips, CalendarContext.importance_score/proximity_minutes/relevant_event_nearby, flow.pass, impulse.valid_ticks_used, CompositeSignalScore.direction, dominant_currency_flow. |
| 103 | Done | 3728/3823 double ResetCompositeSignalScore; 3895/3897 redundant assignments; 4282 duplicate assignment; 4565 unreachable tag terms; 4665 unreachable branch; 2869/5346 redundant reset. |
| 104 | Done | SelfTestXxx int returns discarded -> void; 6704 MedianAbsDeviation wrapper over scratch; 6693 MedianOfArray size contract. |
| 105 | Done | SymbolListContains allocations; IntAbs/IntMin/Max3 review (keep if clearer). |
| # | Status | Task |
|---|---|---|
| 106 | Done | SelfTestNear tolerance (0.0001 equals PipSize expectations); relative tolerance. |
| 107 | Done | Remove tautologies (BaselineHorizonMinutes positive, ObjectNamespaceToken non-empty); assert token charset; currency indices via codes. |
| 108 | Done | New group: historical engine (synthetic M1 array with gap: boundary, aggregation, ATR, range box, outcome target/stop/both/neither, buckets, ProfitFactorProxy, ScoreEdge, AutotuneObjective floor, ApplyHistoricalCap, TimeframeMinutes all branches). |
| 109 | Done | New group: signal history (eviction with dwell, insert/update, held score, ordering), FitDashboardText/PadRight/FormatLocalTimestamp, IsRolloverTime, ring indices, shared composite function (task 89), RobustZ/SpeedRobustZ agreement, availability gating. |
| 110 | Done | RunSelfTest prints the total from counters; docs stop hard-coding the number (currently 72, docs say 74). |
| # | Status | Task |
|---|---|---|
| 111 | Done | Configuration.md: MinImpulseZForSignal 1.40, BaselineLookbackSamples 1800, OutcomeHorizonMinutes3 <= 240, engine-at-least-one rule, text length limits, equal-hour semantics, new inputs. |
| 112 | Done | Signal-Logic.md: five -> ten, 94/95 ceilings, post-engine blocks, tick quality wording, updated scoring semantics. |
| 113 | Done | Operations/Changelog/Testing: dwell semantics, refresh dependency, example rows, default-path test step, row layout. |
| 114 | Done | Release-Checklist compile path contradiction; Known-Limitations 1.8 vs 1.4 rescale note; Development-Guide and Testing pages: census tool + harness. |
| 115 | Done | README, CLAUDE.md: tooling, assertion count, workflow. |
| 116 | Done | Changelog entry, version bump (source line 1, #property version, README, Home.md), deployment clone update. |
| 117 | Done | Final full audit pass: census clean, shellcheck clean, build clean, self-test green, wiki tracker updated, push repo and wiki. |
| # | Status | Task |
|---|---|---|
| 118 | Done | MT5 keeps only 63 characters of an OBJ_LABEL text (verified on build 6193 with a 120-character probe): DASHBOARD_MAX_TEXT_CHARS was 82 and the active rows, diagnostics line and report lines were silently cut on the chart. Rows re-composed to fit 63, diagnostics split over two rows, report lines wrapped onto extra labels. |
| 119 | Done | Runtime finding from the harness VALIDATION run: on this broker 94% of M1 bars carry no spread column, so removing the old 1-pip imputation left the execution gate blocking nearly every boundary. The validator now takes the bar spread, else the window median of bars that carry one, else the symbol's current spread, and the report prints the source mix. |
| 120 | Done | tools/selftest-macos.sh gained --validation and --autotune modes (short EURUSD,GBPUSD M5,H1 runs through the terminal); document in the wiki Testing page. |
Append a new numbered row to the most fitting section with status Open, a line reference, the defect in one sentence and the intended fix. Never renumber existing rows; ids are referenced from commit messages and the Changelog.