Fase 0 — Preparazione #85

Merged
Alby96 merged 2 commits from fase-0 into main 2026-11-10 10:23:00 +01:00
Owner

Progetto vuoto ma completo di toolchain, con i fatti sulle API ricontrollati.

Cosa contiene

  • Soluzione .NET 10 con sette progetti, analizzatori con avvisi trattati come errori, versioni centralizzate e file di blocco.
  • Comandi tasks (check, test, dev, build, ci, hooks) e un hook pre-commit.
  • Test che bloccano:
    • pacchetti fuori dall'ADR 0004;
    • ANUBIS_ALLOW_LIVE=1;
    • segreti nei file.
  • Generatore a seme fisso per i test di proprietà.
  • GET /health, Dockerfile su aspnet:10.0 con utente non privilegiato, docker-compose.yml con PostgreSQL 18.
  • CI su Gitea Actions: test su SQLite e PostgreSQL, poi l'immagine. Solo passi run:.
  • docs/API-NOTES.md: ogni fatto della sezione 4 ricontrollato il 10/11/2026.
  • ADR 0006 con le precisioni della fase.

Prove

  • tasks check: codice 0, 18 test (17 superati, 1 ignorato sul giro SQLite).
  • tasks ci: codice 0, immagine costruita.
  • docker compose up --build → GET /health 200 {"status":"ok","name":"Anubis","version":"0.0.1"}.
  • CI Gitea: run 169 e 170 verdi; su PostgreSQL 18 test su 18.
  • Revisione indipendente con un subagent a contesto pulito: 10 rilievi, tutti corretti nel commit 52550ee.

Closes #1
Closes #2
Closes #3
Closes #4
Closes #5
Closes #6

🤖 Generated with Claude Code

Progetto vuoto ma completo di toolchain, con i fatti sulle API ricontrollati. **Cosa contiene** - Soluzione .NET 10 con sette progetti, analizzatori con avvisi trattati come errori, versioni centralizzate e file di blocco. - Comandi `tasks` (`check`, `test`, `dev`, `build`, `ci`, `hooks`) e un hook pre-commit. - Test che bloccano: - pacchetti fuori dall'ADR 0004; - `ANUBIS_ALLOW_LIVE=1`; - segreti nei file. - Generatore a seme fisso per i test di proprietà. - `GET /health`, Dockerfile su `aspnet:10.0` con utente non privilegiato, `docker-compose.yml` con PostgreSQL 18. - CI su Gitea Actions: test su SQLite e PostgreSQL, poi l'immagine. Solo passi `run:`. - `docs/API-NOTES.md`: ogni fatto della sezione 4 ricontrollato il 10/11/2026. - ADR 0006 con le precisioni della fase. **Prove** - `tasks check`: codice 0, 18 test (17 superati, 1 ignorato sul giro SQLite). - `tasks ci`: codice 0, immagine costruita. - `docker compose up --build` → `GET /health` 200 `{"status":"ok","name":"Anubis","version":"0.0.1"}`. - CI Gitea: run 169 e 170 verdi; su PostgreSQL 18 test su 18. - Revisione indipendente con un subagent a contesto pulito: 10 rilievi, tutti corretti nel commit 52550ee. Closes #1 Closes #2 Closes #3 Closes #4 Closes #5 Closes #6 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alby96 added this to the Fase 0 — Preparazione milestone 2026-11-10 10:21:59 +01:00
Alby96 added 2 commits 2026-11-10 10:21:59 +01:00
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
b4bf864f74
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>
Close phase 0 review findings: stricter policy scans, property generator, hook
ci / test (postgres) (push) Successful in 1m24s
ci / test (sqlite) (push) Successful in 1m35s
ci / image (push) Successful in 16s
ci / test (postgres) (pull_request) Successful in 1m11s
ci / test (sqlite) (pull_request) Successful in 1m24s
ci / image (pull_request) Successful in 14s
52550ee6d1
The independent review found that the policy tests could be bypassed:
Microsoft-named direct packages and GlobalPackageReference slipped past
the dependency check, the live-money scan missed the JSON, Dockerfile
and Unraid template forms, the secret scan missed short project
secrets but would have failed on the user's own ignored .env. The
scans now read only the files git would commit and cover those cases.

Also adds the fixed-seed generator for property tests, the REGISTRY
variables reserved for phase 9 in the CI, a git pre-commit hook in
place of the pre-commit tool (tasks hooks), the missing SPEC 4 facts
in API-NOTES (Fed/ECB/BLS times, USDC depth on OKX) and the full list
of today's indirect packages.

refs #3 refs #5 refs #6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 merged commit ffb67c9135 into main 2026-11-10 10:23:00 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BalboSoft/Anubis#85