Repository Public MIT Research preview
1% S13-F03 — Anatomie d'un énoncé de tâche : de la demande vague à la demande vérifiable.2% Idée : une bonne demande répond d'avance aux cinq questions que l'agent, sinon, tranchera seul :3% quoi, où, quoi ne pas toucher, comment vérifier, quand s'arrêter. Texte rédigé pour le cours ;4% c'est la demande utilisée dans le laboratoire (tâche 1).5\begin{tikzpicture}[x=1mm, y=1mm]6 % ---------- Demande vague ----------7 \draw[atlas region, fill=atlasPanel, fill opacity=.4] (0,0) rectangle (37,50);8 \node[atlas tag=atlasHazard, anchor=west] at (3,50) {DEMANDE VAGUE};9 \pic[atlasHazard, scale=.55] at (7,39) {atlas speech};10 \node[atlas label, anchor=west, align=left, text width=24mm, font=\AtlasSizeLabel\bfseries] at (11,39) {« Répare la calculatrice. »};11 \node[atlas note, anchor=north west, align=left, text width=31mm] at (3,30) {L'agent devra deviner :};12 \node[atlas note, anchor=north west, align=left, text width=31mm] at (3,25) {quoi réparer ?\\[.6mm] dans quels fichiers ?\\[.6mm] que préserver ?\\[.6mm] comment savoir que c'est fini ?};13 % ---------- Demande précise ----------14 \draw[atlas region, fill=atlasPanel, fill opacity=.4] (42,0) rectangle (142,50);15 \node[atlas tag=atlasValid, anchor=west] at (45,50) {DEMANDE VÉRIFIABLE};16 \foreach \n/\y/\titre/\texte in {17 1/41.5/Objectif/{« Écris la fonction \texttt{diviser} selon les exigences E4 et E5 de \texttt{specification.md}. »},18 2/32.5/Périmètre/{« Ne modifie que \texttt{calculatrice/operations.py}. »},19 3/23.5/Interdits/{« Ne supprime et n'affaiblis aucun test existant. »},20 4/14.5/Vérification/{« Lance \texttt{python -m unittest} et montre-moi le résultat. »},21 5/5.5/Arrêt/{« Si une exigence te paraît ambiguë, arrête-toi et pose la question. »}}{22 \node[atlas step] at (48.5,\y) {\n};23 \node[atlas label, anchor=west, font=\AtlasSizeLabel\bfseries] at (52,\y) {\titre};24 \node[atlas label, anchor=west, align=left, text width=65mm] at (74,\y) {\texte};25 }26 \foreach \y in {37,28,19,10}{\draw[atlas link, line width=.5pt] (46,\y) -- (139,\y);}27\end{tikzpicture}28