# SPDX-License-Identifier: AGPL-3.0-only
# "Always" list (L161f): test modules of objects global to the Postgres
# cluster, which the per-schema measure of the map (tables touched by each
# class) cannot see. They become impacted (P1) whenever a migration
# (src/ameesh/migrations/), src/ameesh/db.py, deploy/sql/ or the runner
# (src/ameesh/runner.py, #749) changes (scripts/test-plan.py). On a pull
# request the psql driver runs them too when the list is triggered (#749):
# what only one driver can see must not wait for the full suite of main.
#
# L1211 (canon §3) : ce sont les tests de contrat. Sur une branche de lot, le
# sélecteur les exécute tous avec psycopg, déclenchés ou non : droits, rôles et
# migrations cassent un schéma réel avant que la suite complète de main ne le
# voie. Sous psql, sur une branche de lot, les modules hors liste pilote
# (test_339_orphan_settle, test_cluster, test_l31_orphans,
# test_l50_group_orphan_work_items…) ne tournent que si la liste est
# déclenchée (#749) ; hors lot (#3749), psql passe toute cette liste avec sa
# liste pilote. Le sélecteur se replie sur la suite
# complète si la liste est illisible ou si la sélection n'est pas sûre
# (scripts/test-plan.py, lot_selection).
#
# Additive list (L160a): one module per line, its reason in a comment on the
# same line, alphabetical order, no duplicate (scripts/test-parts.py refuses
# an unsorted list).

# #6180 : observation additive du registre contrats.json ; conserver cette liste
# pour les lecteurs N-1. Aucun contrat existant n’est retiré.

# #6264 : contrats de mécanique transverses démontrés par sept paquets rouges.
# Carte et imports ne suffisent pas à prouver ces comportements transverses ;
# ils restent obligatoires sans carte et avec un canon N-1.

test_1256_ci_runners  # shell/systemd guest runner isolation (#6264 h-03-17, h-03-18)
test_2340_auditeur_role  # #2340: auditeur login role, read-only, two supervisory contracts, refusals
test_2449_garde_mecanique  # #2449: canon mechanics (no hardcoded parameter, named/dated exemptions), ui workflow trigger
test_2457_garde_non_python  # #2457: shell/systemd/workflow mechanics guard and tracked-file scope
test_339_orphan_settle  # #749: orphan turn groups settled without a reboot, outside the measured blocks
test_3752_gabarit  # #3752: a migration changes the template every class clones (clone ≡ migrate)
test_4217_paquet_attribution_prefixes  # packet failure attribution by prefix (#6264 h-08-01)
test_4256_validation_deadlines  # #4256: validation authority, private audit and single-winner escalation (SQL contract)
test_4259_client_literals  # #4574: client literals guard, reads src/ameesh as text (no map link)
test_4299_agent_rename  # #4299: every agent-name column of the schema is classified for the rename
test_4322_paquet_fusion_pendant_tests  # packet merge during local tests (#6264 h-07-29)
test_5035_move_lot_of_another  # work transition authority through CLI (#6264 h-06-22)
test_503_agent_host  # deployment shell contract through fake SSH (#6264 h-05-23)
test_5588_housekeeping_retention  # #5588: additive retention index and 30-day SQL contract
test_5655_action_download  # action-download failures and CI retry classification (#6264 h-03-18)
test_5947_preflight_cli_n_moins_1  # #7985: préflight N-1 (vm.sh contre le CLI de la release précédente) ; le rouge d'un lot se voit avant la CI du paquet
test_6011_contrat_ecrivains_isoles  # #6011: it.item reads the lot with the module-writers' exact GRANTs
test_6085_avatar_connectors  # #6085/#7859: read-only MCP tools and account connectors, env-only credentials
test_6090_work_add_unique_ref  # #6090: migration 0555 (colonne `unique_ref`, index unique partiel) et écriture N-1 sous contrat
test_6298_vm_probe  # #7951: DDL de rôles (CREATE/DROP ROLE, grappe) sous verrous bornés côté serveur, ménage idempotent
test_7630_avatar_tools  # #7630: avatar tool restrictions and durable proof across resident and attach launches
test_7665_module_contract  # #7665: public external-module contract v1 (CLI, OpenAPI, Module, views); any file can break it
test_7701_public_fixture  # #7701: public fixture kit (consumer-owned disposable database, external witness); any file can break it
test_7859_avatar_reads  # #7859: content-free avatar read journal (tool, target, outcome)
test_7986_rejeu_roles  # #7986: rejeu des contrats de rôle après migration (rôles de grappe, base dédiée)
test_8511_undefined_names  # #8511: undefined names in src and scripts on every lot
test_987_relance_hosted  # workflow retry and runner loss (#6264 h-03-16)
test_cluster  # roles created on the cluster (supervisor, approve), grants checked against every column
test_contract_registry_ameesh  # #6180: registre initial, observation additive et régressions du 07/11
test_contract_selection  # #6179: lecteur du registre, repli conservateur et compatibilité N-1
test_events_attach  # LISTEN/NOTIFY channels, global to the cluster
test_l100_dev_cli  # CLI dispatch and alias calling conventions (#6264 h-03-18)
test_l102_cli_vocab  # #6180: contrat du parseur CLI et vocabulaire des commandes
test_l107_executor_contract  # #6180: contrat du stockage médié (régression #6090 h-13)
test_l161c_failures_realtime  # CI failure attribution and live notifications (#6264 h-03-16)
test_l31_orphans  # #749: orphan resources of a turn, lease and alert contract (the release red module)
test_l50_group_orphan_work_items  # #749: orphan work items of a group reattached, lease contract
test_l72_panne_de_base  # database outage and reconnection
test_migrations  # migrations: application, idempotence, immuabilité (contrat, L1211)
test_migrations_additives  # #6147: contrat additif du staging (§11 bis) : une migration non additive est refusée

test_7726_prod_go  # #7726: signed production authority and supersession locks

test_7651_dev_schema_cutover  # P2 : tables/vues/ACL, garde login limité et rollback avec données (#7651)
