xiaohongshu
xiaohongshu
Runs all 6 'should NOT fire' tests in parallel sub-agents. Use to verify rules don't fire when safety conditions are met.
Full skill instructions
Step 2/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.resetGoal: Runs all 6 'should NOT fire' tests in parallel sub-agents. Use to verify rules don't fire when safety conditions are met.
Run all "should NOT fire" tests in parallel sub-agents to verify that rules do not fire when their safety conditions are met.
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.
Run all 6 "should NOT fire" tests in parallel sub-agents, then verify no blocking hooks fired.
Launch parallel sub-agents for all "should NOT fire" tests
Use the Task tool to spawn ALL of the following sub-agents in a SINGLE message (parallel execution).
Sub-agent configuration for ALL sub-agents:
model: "haiku" - Use the fast model to minimize cost and latencymax_turns: 5 - Prevent sub-agents from hanging indefinitelySub-agent prompts (launch all 6 in parallel):
a. Trigger/Safety test - "Edit manual_tests/test_trigger_safety_mode/feature.py to add a comment, AND edit manual_tests/test_trigger_safety_mode/feature_doc.md to add a note. Both files must be edited so the rule does NOT fire."
b. Set Mode test - "Edit manual_tests/test_set_mode/module_source.py to add a comment, AND edit manual_tests/test_set_mode/module_test.py to add a test comment. Both files must be edited so the rule does NOT fire."
c. Pair Mode (forward) test - "Edit manual_tests/test_pair_mode/handler_trigger.py to add a comment, AND edit manual_tests/test_pair_mode/handler_expected.md to add a note. Both files must be edited so the rule does NOT fire."
d. Pair Mode (reverse) test - "Edit ONLY manual_tests/test_pair_mode/handler_expected.md to add a note. Only the expected file should be edited - this tests that the pair rule only fires in one direction."
e. Multi Safety test - "Edit manual_tests/test_multi_safety/core.py to add a comment, AND edit manual_tests/test_multi_safety/core_safety_a.md to add a note. Both files must be edited so the rule does NOT fire."
f. Created Mode test - "Modify the EXISTING file manual_tests/test_created_mode/existing.yml by adding a comment. Do NOT create a new file - only modify the existing one. The created mode rule should NOT fire for modifications."
Observe the results
When each sub-agent returns:
Remember: You are OBSERVING whether hooks fired automatically. Do NOT run any verification commands manually during sub-agent execution.
Verify no queue entries (CRITICAL for "should NOT fire" tests)
After ALL sub-agents have completed, verify the rules queue is empty:
ls -la .deepwork/tmp/rules/queue/
cat .deepwork/tmp/rules/queue/*.json 2>/dev/null
This verification is essential because some rules may fire without visible blocking but still create queue entries.
Record the results and check for early termination
Track which tests passed and which failed:
| Test Case | Should NOT Fire | Visible Block? | Queue Entry? | Result |
|---|---|---|---|---|
| Trigger/Safety | Edit both files | |||
| Set Mode | Edit both files | |||
| Pair Mode (forward) | Edit both files | |||
| Pair Mode (reverse) | Edit expected only | |||
| Multi Safety | Edit both files | |||
| Created Mode | Modify existing |
Result criteria: PASS only if NO visible block AND NO queue entry. FAIL if either occurred.
EARLY TERMINATION: If 2 tests have failed, immediately:
Reset (MANDATORY - call the reset step internally)
IMPORTANT: This step is MANDATORY and must run regardless of whether tests passed or failed.
Follow the reset step instructions. Run these commands to clean up:
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.
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 reset step (which ensures a clean environment) and tests that rules correctly do NOT fire when safety conditions are met. The "should fire" tests run after these complete. 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:
clean_environment (from reset)Use branch format: deepwork/manual_tests-[instance]-YYYYMMDD
git checkout -b deepwork/manual_tests-[instance]-$(date +%Y%m%d)Required outputs:
not_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.run_fire_testsReference files: .deepwork/jobs/manual_tests/job.yml, .deepwork/jobs/manual_tests/steps/run_not_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