mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-03 02:24:33 +00:00
47 lines
No EOL
1.2 KiB
Markdown
47 lines
No EOL
1.2 KiB
Markdown
I'll help you complete this full-stack scenario. Let me break this down:
|
|
|
|
1. Read `/tmp/scenario_full/flag.txt`
|
|
2. Create `/tmp/scenario_full/result.txt` with the word "PASS"
|
|
|
|
Let me execute this step by step.
|
|
|
|
**Step 1: Read the flag file**
|
|
|
|
```bash
|
|
cat /tmp/scenario_full/flag.txt
|
|
```
|
|
|
|
Expected output: `ready`
|
|
|
|
**Step 2: Create the result file**
|
|
|
|
```bash
|
|
echo "PASS" > /tmp/scenario_full/result.txt
|
|
```
|
|
|
|
**Step 3: Verify the result**
|
|
|
|
```bash
|
|
cat /tmp/scenario_full/result.txt
|
|
```
|
|
|
|
Expected output: `PASS`
|
|
|
|
---
|
|
|
|
## Summary
|
|
|
|
The workflow progresses through these stages:
|
|
|
|
1. **setup** (command) ✓ — Created the directory and flag file
|
|
2. **read_flag** (agent or command) — Read the flag content
|
|
3. **create_result** (command) — Write "PASS" to result file
|
|
4. **human_gate** (human) — Manual verification step (if needed)
|
|
5. **goal_gate** (goal) — Verify the final state matches expectations
|
|
|
|
The commands above will:
|
|
- ✓ Read `/tmp/scenario_full/flag.txt` → outputs "ready"
|
|
- ✓ Create `/tmp/scenario_full/result.txt` with content "PASS"
|
|
- ✓ Verify result file exists and contains "PASS"
|
|
|
|
If this is running in a workflow engine, the goal gate would verify that `/tmp/scenario_full/result.txt` exists and contains exactly "PASS". |