xiaohongshu
xiaohongshu
Runs all 6 'should fire' tests serially with resets between each. Use after NOT-fire tests to verify rules fire correctly.
Full skill instructions
Step 3/4 in run_all workflow
Run all manual tests: reset, NOT-fire tests, fire tests, and infinite block tests
Runs all manual hook/rule tests using sub-agents. Use when validating that DeepWork rules fire correctly.
Before proceeding, confirm these steps are complete:
/manual_tests.run_not_fire_testsGoal: Runs all 6 'should fire' tests serially with resets between each. Use after NOT-fire tests to verify rules fire correctly.
Run all "should fire" tests in serial sub-agents to verify that rules fire correctly when their trigger conditions are met without safety conditions.
You MUST spawn sub-agents to make all file edits. DO NOT edit the test files yourself.
Why sub-agents are required:
NEVER manually run echo '{}' | python -m deepwork.hooks.rules_check - this defeats the purpose of the test. Hooks must fire AUTOMATICALLY when sub-agents return.
These tests MUST run ONE AT A TIME, with resets between each.
Why serial execution is required:
Run all 6 "should fire" tests in serial sub-agents, resetting between each, and verify that blocking hooks fire automatically.
For EACH test below, follow this cycle:
model: "haiku" - Use the fast model to minimize cost and latencymax_turns: 5 - Prevent sub-agents from hanging indefinitelyls -la .deepwork/tmp/rules/queue/
cat .deepwork/tmp/rules/queue/*.json 2>/dev/null
git reset HEAD manual_tests/ && git checkout -- manual_tests/ && rm -f manual_tests/test_created_mode/new_config.yml
deepwork rules clear_queue
See reset.md for detailed explanation of these commands.IMPORTANT: Only launch ONE sub-agent at a time. Wait for it to complete and reset before launching the next.
Test 1: Trigger/Safety
manual_tests/test_trigger_safety_mode/feature.py to add a comment. Do NOT edit the _doc.md file."model: "haiku", max_turns: 5Test 2: Set Mode
manual_tests/test_set_mode/module_source.py to add a comment. Do NOT edit the _test.py file."model: "haiku", max_turns: 5Test 3: Pair Mode
manual_tests/test_pair_mode/handler_trigger.py to add a comment. Do NOT edit the _expected.md file."model: "haiku", max_turns: 5Test 4: Command Action
manual_tests/test_command_action/input.txt to add some text."model: "haiku", max_turns: 5Test 5: Multi Safety
manual_tests/test_multi_safety/core.py to add a comment. Do NOT edit any of the safety files (_safety_a.md, _safety_b.md, or _safety_c.md)."model: "haiku", max_turns: 5Test 6: Created Mode
manual_tests/test_created_mode/new_config.yml with some YAML content. This must be a NEW file, not a modification."model: "haiku", max_turns: 5Record the result after each test:
| Test Case | Should Fire | Visible Block? | Queue Entry? | Result |
|---|---|---|---|---|
| Trigger/Safety | Edit .py only | |||
| Set Mode | Edit _source.py only | |||
| Pair Mode | Edit _trigger.py only | |||
| Command Action | Edit .txt | |||
| Multi Safety | Edit .py only | |||
| Created Mode | Create NEW .yml |
Queue Entry Status Guide:
model: "haiku" and max_turns: 5<promise>Quality Criteria Met</promise> in your responseSee test_reference.md for the complete test matrix and rule descriptions.
This step runs after the "should NOT fire" tests. These tests verify that rules correctly fire when trigger conditions are met without safety conditions. The serial execution with resets is essential to prevent cross-contamination between tests. Infinite block tests are handled in a separate step.
A workflow for running manual tests that validate DeepWork rules/hooks fire correctly.
The run_all workflow tests that rules fire when they should AND do not fire when they shouldn't. Each test is run in a SUB-AGENT (not the main agent) because:
CRITICAL: All tests MUST run in sub-agents. The main agent MUST NOT make the file edits itself - it spawns sub-agents to make edits, then observes whether the hooks fired automatically when those sub-agents returned.
Sub-agent configuration:
model: "haiku" to minimize cost and latencymax_turns: 5 to prevent hanging indefinitelySteps:
Reset procedure (see steps/reset.md):
Test types covered:
Files from Previous Steps - Read these first:
not_fire_results (from run_not_fire_tests)Use branch format: deepwork/manual_tests-[instance]-YYYYMMDD
git checkout -b deepwork/manual_tests-[instance]-$(date +%Y%m%d)Required outputs:
fire_resultsBefore completing this step, you MUST have your work reviewed against the quality criteria below.
Use a sub-agent (Haiku model) to review your work against these criteria:
Criteria (all must be satisfied):
model: "haiku" and max_turns: 5?/manual_tests.infinite_block_testsReference files: .deepwork/jobs/manual_tests/job.yml, .deepwork/jobs/manual_tests/steps/run_fire_tests.md
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience