Set up phase 0: .NET 10 solution, toolchain, minimal app, Docker and CI
ci / test (postgres) (push) Successful in 1m18s
ci / test (sqlite) (push) Successful in 1m23s
ci / image (push) Successful in 41s

Empty but complete solution so every later phase starts from a working
toolchain: analyzers as errors, locked restore, format check, policy tests
that keep packages within ADR 0004 and keep live trading switched off,
a /health endpoint served from Docker, and a Gitea workflow with only
run steps. API facts of SPEC section 4 re-checked in docs/API-NOTES.md;
ADR 0006 records what changed (MSTest base packages, Ubuntu images,
OKX WebSocket on 443, Alpaca margin-only accounts).

refs #1 refs #2 refs #3 refs #4 refs #5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-10 09:51:41 +01:00
1 parent f4cd411ab6
commit b4bf864f74
46 files changed
+1368 -16

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<RootNamespace>Anubis.Desktop</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Anubis\Anubis.csproj" />
</ItemGroup>
</Project>
+3
View File
@@ -0,0 +1,3 @@
// Placeholder: the desktop window and tray icon arrives in phase 10 (ADR 0003).
await Console.Error.WriteLineAsync("Anubis.Desktop non è ancora disponibile: arriva nella Fase 10.").ConfigureAwait(false);
return 2;
+10
View File
@@ -0,0 +1,10 @@
{
"version": 2,
"dependencies": {
"net10.0-windows7.0": {
"anubis": {
"type": "Project"
}
}
}
}
+9
View File
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RootNamespace>Anubis.Guard</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Anubis\Anubis.csproj" />
</ItemGroup>
</Project>
+3
View File
@@ -0,0 +1,3 @@
// Placeholder: the guard process (SPEC 9.3) arrives in phase 6 (ADR 0003).
await Console.Error.WriteLineAsync("Anubis.Guard non è ancora disponibile: arriva nella Fase 6.").ConfigureAwait(false);
return 2;
+10
View File
@@ -0,0 +1,10 @@
{
"version": 2,
"dependencies": {
"net10.0": {
"anubis": {
"type": "Project"
}
}
}
}
+12
View File
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<RootNamespace>Anubis.Server</RootNamespace>
<InvariantGlobalization>false</InvariantGlobalization>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Anubis\Anubis.csproj" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Anubis.Tests" />
</ItemGroup>
</Project>
+4
View File
@@ -0,0 +1,4 @@
using Anubis.Server;
var app = ServerApp.Build(args);
await app.RunAsync().ConfigureAwait(false);
+18
View File
@@ -0,0 +1,18 @@
namespace Anubis.Server;
/// <summary>Builds the web application. Kept apart from Program so tests can host it.</summary>
internal static class ServerApp
{
public static WebApplication Build(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/health", () => Results.Ok(new HealthResponse("ok", AnubisInfo.Name, AnubisInfo.Version)));
return app;
}
}
/// <summary>Answer of <c>GET /health</c>.</summary>
internal sealed record HealthResponse(string Status, string Name, string Version);
+10
View File
@@ -0,0 +1,10 @@
{
"version": 2,
"dependencies": {
"net10.0": {
"anubis": {
"type": "Project"
}
}
}
}
+11
View File
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<RootNamespace>Anubis.Setup</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Anubis\Anubis.csproj" />
</ItemGroup>
</Project>
+3
View File
@@ -0,0 +1,3 @@
// Placeholder: the Windows installer arrives in phase 10 (ADR 0003).
await Console.Error.WriteLineAsync("Anubis.Setup non è ancora disponibile: arriva nella Fase 10.").ConfigureAwait(false);
return 2;
+10
View File
@@ -0,0 +1,10 @@
{
"version": 2,
"dependencies": {
"net10.0-windows7.0": {
"anubis": {
"type": "Project"
}
}
}
}
+8
View File
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>Anubis</RootNamespace>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="Anubis.Tests" />
</ItemGroup>
</Project>
+18
View File
@@ -0,0 +1,18 @@
namespace Anubis;
/// <summary>Names fixed by ADR 0001, shared by every part of the bot.</summary>
public static class AnubisInfo
{
/// <summary>Name shown to the user.</summary>
public const string Name = "Anubis";
/// <summary>Three-letter prefix of every client order id (SPEC 7.2).</summary>
public const string OrderPrefix = "ANU";
/// <summary>Prefix of every environment variable read at start-up.</summary>
public const string EnvironmentPrefix = "ANUBIS_";
/// <summary>Version of the running build, for example "0.0.1".</summary>
public static string Version { get; } =
typeof(AnubisInfo).Assembly.GetName().Version?.ToString(3) ?? "0.0.0";
}
+23
View File
@@ -0,0 +1,23 @@
# Anubis (libreria)
Tutta la logica del bot, una cartella e un namespace per ogni modulo della SPEC 5.1 (ADR 0003).
Le cartelle nascono con il primo codice che le riempie:
| Cartella | Namespace | Contenuto | Fase |
|---|---|---|---|
| `Core/` | `Anubis.Core` | orologio, bus degli eventi, pianificatore, impostazioni, segreti, registri, identificativi, guardia, formati | 1 |
| `Platform/` | `Anubis.Platform` | configurazione d'avvio Docker e desktop, cartella dei dati, custodia dei segreti | 1 |
| `Db/` | `Anubis.Db` | accesso ADO.NET, repository, migrazioni SQL | 1 |
| `Brokers/` | `Anubis.Brokers` | interfaccia, Alpaca, OKX, simulatore, batteria di conformità | 2–3 |
| `Data/` | `Anubis.Data` | strumenti, barre, raccolta, qualità, importatori, cambi, calendari | 2 |
| `News/` | `Anubis.News` | fonti, pipeline, classificatore, analista, impatto | 7 |
| `Strategies/` | `Anubis.Strategies` | strategie e candidate | 4–5 |
| `Portfolio/` | `Anubis.Portfolio` | allocazione, dimensionamento, ribilanciamento | 5 |
| `Risk/` | `Anubis.Risk` | regole, motore, interruttore, riconciliazione | 3–6 |
| `Execution/` | `Anubis.Execution` | OMS, algoritmi d'ordine, scostamento | 3 |
| `Accounting/` | `Anubis.Accounting` | registro, lotti, patrimonio, rendimenti, esportazioni | 3 |
| `Ml/` | `Anubis.Ml` | feature, etichette, addestramento, registro modelli, deriva | 8 |
| `Backtest/` | `Anubis.Backtest` | motore, costi, validazione, rapporti | 4 |
| `Journal/` | `Anubis.Journal` | codici motivo e frasi in italiano | 3 |
| `Notify/` | `Anubis.Notify` | Telegram | 6 |
| `Demo/` | `Anubis.Demo` | modalità dimostrativa (appendice F) | 1 |
+6
View File
@@ -0,0 +1,6 @@
{
"version": 2,
"dependencies": {
"net10.0": {}
}
}