Sprint 1 : scaffolding complet de Glibredecision

Plateforme de decisions collectives pour Duniter/G1.
Backend FastAPI async + PostgreSQL (14 tables, 8 routers, 6 services,
moteur de vote avec formule d'inertie WoT/Smith/TechComm).
Frontend Nuxt 4 + Nuxt UI v3 + Pinia (9 pages, 5 stores).
Infrastructure Docker + Woodpecker CI + Traefik.
Documentation technique et utilisateur (15 fichiers).
Seed : Licence G1, Engagement Forgeron v2.0.0, 4 protocoles de vote.
30 tests unitaires (formules, mode params, vote nuance) -- tous verts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-02-28 12:46:11 +01:00
commit 25437f24e3
100 changed files with 10236 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
from __future__ import annotations
from datetime import datetime
from uuid import UUID
from pydantic import BaseModel, ConfigDict, Field
# ── Sanctuary Entry ──────────────────────────────────────────────
class SanctuaryEntryCreate(BaseModel):
"""Payload for creating a new sanctuary entry (IPFS + chain anchor)."""
entry_type: str = Field(..., max_length=64, description="document, decision, vote_result")
reference_id: UUID = Field(..., description="ID of the referenced entity")
title: str | None = Field(default=None, max_length=256)
content_hash: str = Field(..., max_length=128, description="SHA-256 hash of the content")
class SanctuaryEntryOut(BaseModel):
"""Full sanctuary entry representation."""
model_config = ConfigDict(from_attributes=True)
id: UUID
entry_type: str
reference_id: UUID
title: str | None = None
content_hash: str
ipfs_cid: str | None = None
chain_tx_hash: str | None = None
chain_block: int | None = None
metadata_json: str | None = None
created_at: datetime