Repository Public MIT Research preview
1% MA03-F06 — Boucle de vérification et arrêt sûr.2% Idée : une boucle autonome observe, planifie, agit, vérifie ; ce qui la rend sûre n'est pas la boucle, ce sont ses3% QUATRE sorties. Les arrêts (annulation, échéance, budget) sont examinés AVANT le verdict : un résultat accepté4% hors budget n'est pas rendu. Un refus vaut une reprise ; le dernier tour permis vaut une escalade à une personne.5% Données : les deux traces de droite sont celles des éléments E4 et E5 de l'exécution de démonstration du moteur6% (graine 13, choisie), relues par atlas_ma03.boucle.tours_du_moteur (MA03-donnees.tex).7\input{MA03-donnees.tex}%8\begin{tikzpicture}[x=1mm, y=1mm]9 \path (0,0) rectangle (142,56);10 \node[atlas tag=maRisque, anchor=north west] at (0,56.4) {LES ARRÊTS PASSENT AVANT LE VERDICT};11 % La boucle12 \node[ma etat actif, minimum width=21mm] (obs) at (15,44.6) {observer};13 \node[ma etat actif, minimum width=21mm] (pla) at (49,44.6) {planifier};14 \node[ma etat actif, minimum width=21mm] (agi) at (49,33) {agir};15 \node[ma etat actif, minimum width=21mm] (ver) at (15,33) {vérifier};16 \draw[atlas arrow] (obs) -- (pla) node[atlas note, pos=.5, above, inner sep=1.4pt] {état, budget};17 \draw[atlas arrow] (pla) -- (agi) node[atlas note, pos=.5, anchor=west, inner sep=2.4pt] {contrat};18 \draw[atlas arrow] (agi) -- (ver) node[atlas note, pos=.5, below, inner sep=1.6pt] {résultat};19 % La politique d'arrêt20 \node[ma decision, aspect=2.4, inner sep=.2pt, font=\AtlasSizeTiny\bfseries, align=center] (pol) at (15,18.6) {politique\\ d'arrêt};21 \draw[atlas arrow] (ver) -- (pol);22 \draw[atlas arrow, rounded corners=2pt] (pol.west) -- (1.2,18.6) -- (1.2,44.6) -- (obs.west);23 \node[atlas note, anchor=west, inner sep=1pt] at (2,26.4) {continuer};24 % Les trois autres sorties25 \node[ma etat terminal=maRisque, minimum width=22mm] (arr) at (15,4.4) {arrêter};26 \node[ma etat terminal, minimum width=22mm] (ren) at (58,24.6) {rendre};27 \node[ma etat terminal=maDecision, minimum width=22mm] (esc) at (58,12.6) {escalader};28 \draw[atlas arrow hazard] (pol.south) -- (arr.north);29 \node[atlas note, anchor=north west, text=maRisque, inner sep=1.4pt, align=left] at (27.4,7.4) {annulation, échéance, budget};30 \draw[atlas arrow valid] (pol.east) -- (ren.west) node[atlas note, pos=.45, above, inner sep=2.2pt, text=maValide] {acceptée};31 \draw[atlas arrow, draw=maDecision] (pol.east) -- (esc.west) node[atlas note, pos=.5, below, sloped, inner sep=2pt, text=maDecision] {dernier tour};32 \MaSilhouette{(77,12.6)}[maDecision]33 \node[atlas note, anchor=south, inner sep=1pt] at (77,16.6) {personne};34 % Deux traces réelles35 \draw[maNeutre, line width=.6pt] (84,2) -- (84,54);36 \node[atlas tag=maDecision, anchor=north west] at (87,56.4) {SIMULATION · GRAINE \MCDemoGraine, CHOISIE};37 \foreach \y/\el/\ra/\va/\rb/\vb/\issue/\verite/\lecture in {38 40.4/E4/\MCBoucleEQuatreRepUn/\MCBoucleEQuatreVerdictUn/\MCBoucleEQuatreRepDeux/\MCBoucleEQuatreVerdictDeux/\MCBoucleEQuatreIssue/\MCBoucleEQuatreVerite/{la reprise a corrigé},39 16.4/E5/\MCBoucleECinqRepUn/\MCBoucleECinqVerdictUn/\MCBoucleECinqRepDeux/\MCBoucleECinqVerdictDeux/\MCBoucleECinqIssue/\MCBoucleECinqVerite/{fausse alerte au tour 2}}{40 \node[atlas label, anchor=west, font=\AtlasSizeLabel\bfseries] at (87,\y+5.4) {\el};41 \node[atlas note, anchor=west] at (94,\y+5.4) {vérité terrain, cachée aux agents : \verite};42 \node[ma message] (a) at (99,\y-.6) {tour 1 : \ra};43 \node[ma message] (b) at (127,\y-.6) {tour 2 : \rb};44 \node[atlas note, anchor=north, text=maTexte] at (99,\y-3) {\va};45 \node[atlas note, anchor=north, text=maTexte] at (127,\y-3) {\vb};46 \draw[atlas arrow, line width=.9pt] (a) -- (b);47 \node[atlas note, anchor=west, text=maTexte] at (87,\y-10.6) {issue : \textbf{\issue} — \lecture};}48\end{tikzpicture}49