feat: Aufgaben a-01 bis a-03 und b-04 bis b-06
Aufgaben unter tasks/ mit prompt.md, task.toml, start/ und check.sh. Musterlösungen bestehen die Checks, eine leere Lösung scheitert. b-06 erkennt fünf Mutationen; behoben: veralteter Bytecode in Mutantenkopien. Echter Lauf mit qwen3:0.6b auf srv04: 0 von 6 bestanden. Ein Repo-Test prüft die Gültigkeit der Aufgaben. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
3
tasks/A/a-01/check.sh
Executable file
3
tasks/A/a-01/check.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Erwartet: ergebnis.txt enthält genau 4711 (Zeilenumbruch am Ende erlaubt).
|
||||
[ "$(tr -d ' \n' < /work/ergebnis.txt)" = "4711" ]
|
||||
1
tasks/A/a-01/prompt.md
Normal file
1
tasks/A/a-01/prompt.md
Normal file
@ -0,0 +1 @@
|
||||
Im Ordner /work liegt die Datei info.txt. Lies sie und schreibe nur den Projektcode (die Zahl hinter "Projektcode:") in die neue Datei ergebnis.txt. Keine weiteren Zeichen. Rufe danach done auf.
|
||||
2
tasks/A/a-01/start/info.txt
Normal file
2
tasks/A/a-01/start/info.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Projektcode: 4711
|
||||
Status: offen
|
||||
6
tasks/A/a-01/task.toml
Normal file
6
tasks/A/a-01/task.toml
Normal file
@ -0,0 +1,6 @@
|
||||
id = "a-01"
|
||||
title = "Information aus Datei in neue Datei übertragen"
|
||||
group = "A"
|
||||
image = "cb-python:latest"
|
||||
max_steps = 10
|
||||
timeout_s = 300
|
||||
4
tasks/A/a-02/check.sh
Executable file
4
tasks/A/a-02/check.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Erwartet: neu.txt = 1,2,30,4,30 und anzahl.txt enthält 5.
|
||||
[ "$(tr -d ' \r' < /work/neu.txt | paste -sd, -)" = "1,2,30,4,30" ] || exit 1
|
||||
[ "$(tr -d ' \n' < /work/anzahl.txt)" = "5" ]
|
||||
6
tasks/A/a-02/prompt.md
Normal file
6
tasks/A/a-02/prompt.md
Normal file
@ -0,0 +1,6 @@
|
||||
Im Ordner /work liegt die Datei zahlen.txt mit einer Zahl pro Zeile.
|
||||
1. Liste den Inhalt von /work auf.
|
||||
2. Lies zahlen.txt.
|
||||
3. Ersetze in jeder Zeile, die genau "3" lautet, durch "30". Schreibe das Ergebnis in neu.txt (eine Zahl pro Zeile).
|
||||
4. Zähle die Zeilen von neu.txt mit einem Shell-Befehl und schreibe die Zahl in anzahl.txt.
|
||||
Rufe danach done auf.
|
||||
5
tasks/A/a-02/start/zahlen.txt
Normal file
5
tasks/A/a-02/start/zahlen.txt
Normal file
@ -0,0 +1,5 @@
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
3
|
||||
6
tasks/A/a-02/task.toml
Normal file
6
tasks/A/a-02/task.toml
Normal file
@ -0,0 +1,6 @@
|
||||
id = "a-02"
|
||||
title = "Mehrere Werkzeuge nacheinander: auflisten, lesen, ändern, ausführen"
|
||||
group = "A"
|
||||
image = "cb-python:latest"
|
||||
max_steps = 15
|
||||
timeout_s = 420
|
||||
3
tasks/A/a-03/check.sh
Executable file
3
tasks/A/a-03/check.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Erwartet: name.txt enthält genau coding.
|
||||
[ "$(tr -d ' \n' < /work/name.txt)" = "coding" ]
|
||||
1
tasks/A/a-03/prompt.md
Normal file
1
tasks/A/a-03/prompt.md
Normal file
@ -0,0 +1 @@
|
||||
Im Ordner /work soll der Wert des Schlüssels "name" aus der Konfiguration in die Datei name.txt geschrieben werden. Achtung: Die Datei config.json existiert nicht. Die richtige Datei heißt settings.json. Lies sie und schreibe nur den Wert (ohne Anführungszeichen) in name.txt. Rufe danach done auf.
|
||||
1
tasks/A/a-03/start/settings.json
Normal file
1
tasks/A/a-03/start/settings.json
Normal file
@ -0,0 +1 @@
|
||||
{"name": "coding"}
|
||||
6
tasks/A/a-03/task.toml
Normal file
6
tasks/A/a-03/task.toml
Normal file
@ -0,0 +1,6 @@
|
||||
id = "a-03"
|
||||
title = "Auf Tool-Fehler reagieren und korrigieren"
|
||||
group = "A"
|
||||
image = "cb-python:latest"
|
||||
max_steps = 12
|
||||
timeout_s = 360
|
||||
Reference in New Issue
Block a user