Archive completed tasks, add cleanup commands, self-documenting dashboard UI
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
- Archive 79 completed framework-dev tasks from tasks/ -> tasks/complete/ - status.py: add --cleanup-done and --install-cleanup-schedule commands - Add scripts/automaton-cleanup.sh for periodic task archiving - Dashboard: rename 'Background' tab -> 'Agent', 'Cleanup' agent -> 'Completed Task Archiver', remove redundant group headers and pill badges, dim inactive agent placeholders - .rules.md: add Self-Documenting UI Names rule - New tests: test_cleanup_done.py, expanded test_app.py and test_task.py
This commit is contained in:
@@ -1 +0,0 @@
|
||||
complete
|
||||
@@ -1,20 +0,0 @@
|
||||
# Implementation: Fix Prompt Consistency
|
||||
|
||||
## Summary
|
||||
- Added `## Stop Condition (MANDATORY)` block to `prompts/bug_finder.md` requiring CONTRACT_MET output
|
||||
- Added `## Stop Condition (MANDATORY)` block to `prompts/adversarial_bug_find.md` requiring CONTRACT_MET output (retaining ADVERSARIAL_BUG_FIND_COMPLETE as additional signal)
|
||||
- Fixed deprecated `{project}/tasks/onboarding/` path in `prompts/onboarding.md:67` → `{project}/.automaton/tasks/onboarding/`
|
||||
- Expanded `tests/test_prompt_paths.py` with `test_no_concrete_legacy_task_paths` that catches `{project}/tasks/<name>/` patterns beyond just the `{task-name}` placeholder
|
||||
- All 116 tests pass (53 prompt path tests + 63 other)
|
||||
|
||||
## Changes
|
||||
- `prompts/bug_finder.md`: Added stop condition block
|
||||
- `prompts/adversarial_bug_find.md`: Added stop condition block
|
||||
- `prompts/onboarding.md`: Fixed line 67 canonical path
|
||||
- `tests/test_prompt_paths.py`: Added `CONCRETE_LEGACY_PATH` regex and `test_no_concrete_legacy_task_paths` parametrized test
|
||||
|
||||
## Test Results
|
||||
116 passed in 0.07s
|
||||
|
||||
## Blockers
|
||||
None
|
||||
@@ -1,80 +0,0 @@
|
||||
# Fix Prompt Consistency
|
||||
|
||||
## Goal
|
||||
|
||||
Fix three categories of inconsistency in the prompt files: missing stop conditions, deprecated task paths, and a blind spot in the prompt-path test.
|
||||
|
||||
## Requirements
|
||||
|
||||
### R1. Add stop condition to `bug_finder.md`
|
||||
|
||||
`prompts/bug_finder.md` (47 lines) is the only delivery-style prompt that has neither a `## Stop Condition (MANDATORY)` block nor requires a `CONTRACT_MET` output. Every other delivery prompt (research, design, test_design, implement, doc_review, referee, decompose) has this block.
|
||||
|
||||
**Fix**: Append the standard block at the end of `prompts/bug_finder.md`:
|
||||
```
|
||||
## Stop Condition (MANDATORY)
|
||||
You are not allowed to end this session until you have produced the BUG_REPORT.md file AND output the exact phrase "CONTRACT_MET".
|
||||
Until then, continue working or ask clarifying questions.
|
||||
```
|
||||
|
||||
### R2. Add stop condition to `adversarial_bug_find.md`
|
||||
|
||||
`prompts/adversarial_bug_find.md` outputs `ADVERSARIAL_BUG_FIND_COMPLETE` instead of `CONTRACT_MET`. This is a non-standard completion signal. While the orchestrator spec (orchestrate.md:340) says it checks for "CONTRACT_MET or the phase's stop condition," the inconsistency is error-prone.
|
||||
|
||||
**Fix**: Add the standard block after line 18 and update the existing output line to also require `CONTRACT_MET`:
|
||||
```
|
||||
## Stop Condition (MANDATORY)
|
||||
You are not allowed to end this session until you have produced the ADVERSARIAL_BUG_REPORT.md file AND output the exact phrase "CONTRACT_MET".
|
||||
Until then, continue working or ask clarifying questions.
|
||||
```
|
||||
|
||||
### R3. Fix deprecated task path in `onboarding.md`
|
||||
|
||||
`prompts/onboarding.md:67` uses the deprecated `{project}/tasks/onboarding/` path instead of the canonical `{project}/.automaton/tasks/onboarding/`.
|
||||
|
||||
**Fix**: Change line 67 from:
|
||||
```
|
||||
Then produce a file called ONBOARDING_REPORT.md at {project}/tasks/onboarding/ONBOARDING_REPORT.md
|
||||
```
|
||||
to:
|
||||
```
|
||||
Then produce a file called ONBOARDING_REPORT.md at {project}/.automaton/tasks/onboarding/ONBOARDING_REPORT.md
|
||||
```
|
||||
|
||||
Also update line 101-102 which references the deprecated location in documentation:
|
||||
```
|
||||
- If `{project}/tasks/` exists but `{project}/.automaton/tasks/` does not, tasks need to be moved.
|
||||
```
|
||||
This is correct as-is — it references the legacy location for migration detection. Keep it.
|
||||
|
||||
### R4. Fix `test_prompt_paths.py` regex to catch concrete deprecated paths
|
||||
|
||||
`tests/test_prompt_paths.py:13` uses:
|
||||
```python
|
||||
LEGACY_PATH = re.compile(r"\{project\}/tasks/\{task-name\}/")
|
||||
```
|
||||
This only matches the literal placeholder `{task-name}`. It misses concrete task names like `{project}/tasks/onboarding/`.
|
||||
|
||||
**Fix**: Add a second pattern that catches any kebab-case name in the deprecated location:
|
||||
```python
|
||||
CONCRETE_LEGACY_PATH = re.compile(r"\{project\}/tasks/[\w-]+/")
|
||||
```
|
||||
Add a new test that asserts zero matches of this pattern in prompts.
|
||||
|
||||
### R5. Verify no other deprecated paths exist
|
||||
|
||||
Run the updated test across all prompt files to ensure `onboarding.md` was the only violation.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- [ ] `prompts/bug_finder.md` ends with `## Stop Condition (MANDATORY)` block
|
||||
- [ ] `prompts/adversarial_bug_find.md` ends with `## Stop Condition (MANDATORY)` block
|
||||
- [ ] `prompts/onboarding.md` uses `{project}/.automaton/tasks/onboarding/` not `{project}/tasks/onboarding/`
|
||||
- [ ] `tests/test_prompt_paths.py` has a new test for concrete deprecated paths
|
||||
- [ ] Running `python -m pytest tests/test_prompt_paths.py -v` catches `{project}/tasks/onboarding/` in onboarding.md BEFORE the fix and passes AFTER
|
||||
- [ ] All existing prompt tests still pass
|
||||
|
||||
## Non-Goals
|
||||
|
||||
- Not standardizing all stop signals to CONTRACT_MET (compaction.md uses COMPACTION_COMPLETE by design — the orchestrator handles custom signals)
|
||||
- Not rewriting onboarding.md to use the migration script (that's a separate task)
|
||||
@@ -1,23 +0,0 @@
|
||||
# Verdict: fix-prompt-consistency
|
||||
|
||||
## Status: PASS
|
||||
**Completion Date**: 2026-06-14
|
||||
|
||||
## Summary
|
||||
Fixed prompt consistency issues: added mandatory stop conditions to bug_finder.md and adversarial_bug_find.md, fixed deprecated task path in onboarding.md, and expanded the prompt path regression test to catch concrete deprecated path patterns.
|
||||
|
||||
## Findings
|
||||
- All 116 tests pass
|
||||
- `bug_finder.md` now has `## Stop Condition (MANDATORY)` with CONTRACT_MET requirement
|
||||
- `adversarial_bug_find.md` now has `## Stop Condition (MANDATORY)` requiring ADVERSARIAL_BUG_FIND_COMPLETE output
|
||||
- `onboarding.md:67` uses canonical `{project}/.automaton/tasks/onboarding/` path
|
||||
- `test_prompt_paths.py` catches both literal `{task-name}` and concrete deprecated paths
|
||||
|
||||
## Tasks for Review / Tie-Breaks
|
||||
- None
|
||||
|
||||
## Remaining Issues
|
||||
- `prompts/referee.md` should document required `## Status:` format for verdicts (to be addressed separately if needed)
|
||||
|
||||
## Score
|
||||
+10
|
||||
Reference in New Issue
Block a user