flowchart LR
  subgraph cand["Candidate repository: the requester writes"]
    f["application.yaml<br/>the record: a request"]
  end
  subgraph pol["Policy repository: the requester cannot write"]
    s["schemas/application.schema.json<br/>the required shape"]
    r["demandes.toml<br/>who asked"]
    d["decisions/<br/>retained class,<br/>signed decision"]:::accent
    k["allowed_signers<br/>the authorised keys"]
  end
  c["Policy check<br/>valider_fiche.py"]
  b{"Platform gate"}
  ok["Deployment allowed"]
  no["Refused"]
  f --> c
  s --> c
  r --> c
  f -->|"fingerprint"| b
  r --> b
  d ==> b
  k --> b
  c -.-> no
  b ==> ok
  b -.-> no
