Fase 10 — Nuova rotta: solo Docker (#184)
ci / test (postgres) (push) Successful in 4m50s
ci / test (sqlite) (push) Failing after 4m21s
ci / image (push) Skipped

ADR 0021-0026 for the new course of 2 December 2026, roadmap of phases 10-24. The desktop application is gone: Docker is the only form, and outside a container the server runs only for development and tests with --data-dir, on this computer only. Lighter image (829 MB to 410 MB), rotating logs, backtest and learning as one-shot commands.

refs #113 #114 #115 #78 #80 #81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #184.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-12-03 19:59:00 +01:00
1 parent 3c57b3e84c
commit 1bc7e067fd
96 files changed
+1433 -1606

No files matched your search

+2 -16
View File
@@ -158,22 +158,8 @@ public sealed class TradingRulesTests
env["ANUBIS_ALLOW_LIVE"] = "0";
Assert.ThrowsExactly<LiveTradingRefusedException>(() => LiveGuard.Ensure(TradingEnvironments.Live, TradingConsent.From(DockerPlatform.Load(env))));
// Desktop: the config.toml the wizard writes keeps real money off.
var root = TempFolder.Create("live");
try
{
var data = new DataDirectory(root);
var store = new RestrictedFileStore(Path.Combine(root, "keys"));
DesktopPlatform.WriteConfig(data, store, new DbSettings { Engine = DbEngine.Sqlite });
var desktop = TradingConsent.From(DesktopPlatform.Load(data, store));
Assert.IsFalse(desktop.AllowLive);
var refused = Assert.ThrowsExactly<LiveTradingRefusedException>(() => LiveGuard.Ensure(TradingEnvironments.Live, desktop));
Assert.Contains("config.toml", refused.Message);
}
finally
{
TempFolder.Delete(root);
}
var refused = Assert.ThrowsExactly<LiveTradingRefusedException>(() => LiveGuard.Ensure(TradingEnvironments.Live, docker));
Assert.Contains("ANUBIS_ALLOW_LIVE", refused.Message, "The only switch for real money is the variable of the container (ADR 0022).");
}
[TestMethod]