- crates/ld-engine : formule inertielle (parité avec la maquette, garde C), coquille / changement de fond, assistant d'édition à règles, composition d'un document sous vote permanent (adoptions, aperçus, rivales). - crates/trustin-access : qui voit, qui ouvre, qui gère les accès. - crates/ld-server : API axum + SQLite, connexion Ğ1 (client OAuth2 de connect.monnaie-libre.fr), invitations, entrée en vigueur automatique, signalements de contradiction, traductions éditoriales, publication git, taille de la toile lue sur la chaîne. - seeds/acte-engagement-certification.json : 33 articles, fr + en + es ; en vigueur : préambule, E1, E2 (seed a minima). - maquette/ : frontend, backend et docker v2 déplacés tels quels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
761 B
Python
32 lines
761 B
Python
"""Technical Committee threshold criterion.
|
|
|
|
The TechComm criterion requires a minimum number of votes from
|
|
Technical Committee members for certain decisions.
|
|
|
|
Formula: ceil(CoTecSize ^ T)
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import math
|
|
|
|
|
|
def techcomm_threshold(cotec_size: int, exponent: float = 0.1) -> int:
|
|
"""Compute the minimum number of TechComm member votes required.
|
|
|
|
Parameters
|
|
----------
|
|
cotec_size:
|
|
Number of Technical Committee members.
|
|
exponent:
|
|
T in the formula ``ceil(cotec_size^T)``.
|
|
|
|
Returns
|
|
-------
|
|
int
|
|
Minimum TechComm votes required.
|
|
"""
|
|
if cotec_size <= 0:
|
|
raise ValueError("cotec_size doit etre strictement positif")
|
|
return math.ceil(cotec_size ** exponent)
|