Compare commits

..
Author SHA1 Message Date
Alby96andClaude Opus 5.5 e302f0cd80 Mark phase 10 as done after the user's yes
ci / test (postgres) (push) Successful in 6m51s
ci / test (sqlite) (push) Successful in 4m54s
ci / image (push) Successful in 2m11s
ci / test (sqlite) (pull_request) Successful in 4m56s
ci / test (postgres) (pull_request) Successful in 6m6s
ci / image (pull_request) Successful in 45s
The user approved the merge and the fase-10 tag on 3 December 2026:
STATE and ROADMAP say phase 10 is complete and phase 11 comes next.

refs #81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 19:23:18 +01:00
Alby96andClaude Opus 5.5 195f3e51af Point the runbook to moving between databases
ci / test (postgres) (push) Successful in 5m55s
ci / test (sqlite) (push) Successful in 4m44s
ci / test (postgres) (pull_request) Successful in 5m45s
ci / test (sqlite) (pull_request) Successful in 4m36s
ci / image (push) Successful in 1m23s
ci / image (pull_request) Successful in 1m5s
The runbook's database page now says how to move to another database
with db export and db import, and where the Windows trial data goes,
as issue #78 asked.

refs #78

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:13:07 +01:00
Alby96andClaude Opus 5.5 c27e8194d3 Say in the diary where the server runs, as Settings does
ci / test (postgres) (push) Successful in 5m31s
ci / test (sqlite) (push) Successful in 4m24s
ci / test (postgres) (pull_request) Successful in 5m12s
ci / test (sqlite) (pull_request) Successful in 4m43s
ci / image (push) Successful in 2m16s
ci / image (pull_request) Successful in 1m4s
Outside a container the diary said "in Docker": it now says
"fuori dal container (sviluppo)", from the same options as Settings
(ADR 0022). Found by the second independent review.

refs #114

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:45:27 +01:00
Alby96andClaude Opus 5.5 e9ac6dccc9 Phase 10: new course and Docker only
Record the course the user chose on 2 December 2026 and make the
container the only form of Anubis.

- ADR 0021-0026: new roadmap (phases 10-24, readings per phase, the
  spec-to-ADR table, merge and tag only after the user's yes),
  Docker only, maths-only decisions, bans turned into limits on margin
  accounts, eToro Demo as currency venue and forward tests, strategy
  championship. ROADMAP rewritten from phase 10; STATE, CLAUDE.md,
  SVILUPPO, README, API-NOTES and the manuals without the desktop.
- Remove the desktop: Anubis.Desktop, Anubis.Setup, deploy/windows,
  release-win and desktop-win, config.toml, PlatformKind,
  ANUBIS_PLATFORM, DPAPI with the ProtectedData package and the
  first-run wizard. Outside a container the server needs --data-dir,
  listens on 127.0.0.1 only and refuses foreign hosts; server and guard
  refuse --platform desktop with an Italian message and exit code 2.
  The demo keeps its key in a file and its error-page choices need no
  startup password. The diagnostics report says where the server runs
  from its own environment.
- Lighter image: restore and publish for linux-x64 only, and leave out
  the Windows libraries ONNX Runtime copies anyway (829 MB to 410 MB on
  disk, /app from 282 MB to 42 MB). Rotating Docker logs in the Unraid
  template, the manual and the compose; backtest and learning run as
  one-shot commands. tasks dev uses artifacts/dev-data.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:35:17 +01:00
+2 -17
View File
@@ -288,28 +288,13 @@ public sealed class SchedulerTests
await Assert.ThrowsAsync<OperationCanceledException>(() => loop).ConfigureAwait(false); await Assert.ThrowsAsync<OperationCanceledException>(() => loop).ConfigureAwait(false);
} }
[TestMethod]
[TestCategory(Category.Unit)]
public async Task AStateSeenOnceIsEnoughForTheWait()
{
// A state that holds for an instant (CI run 586): the wait judges the reading it saw, it does not ask again.
var readings = 0;
await WaitUntil(() => Interlocked.Increment(ref readings) == 2).ConfigureAwait(false);
Assert.AreEqual(2, readings);
}
internal static async Task WaitUntil(Func<bool> condition) internal static async Task WaitUntil(Func<bool> condition)
{ {
// One reading per round, and the reading seen is the one judged. Asking again for the assertion failed the test for (var i = 0; i < 500 && !condition(); i++)
// when the state held only for an instant: the scheduler's first round registers a wait on the clock and drops it
// at once, because the job added before RunAsync has already signalled a change.
var met = condition();
for (var i = 0; i < 500 && !met; i++)
{ {
await Task.Delay(10).ConfigureAwait(false); await Task.Delay(10).ConfigureAwait(false);
met = condition();
} }
Assert.IsTrue(met, "condizione non raggiunta in tempo"); Assert.IsTrue(condition(), "condizione non raggiunta in tempo");
} }
} }