xiaohongshu
xiaohongshu
Runs all 4 infinite block tests serially. Tests both 'should fire' (no promise) and 'should NOT fire' (with promise) scenarios.
Full skill instructions
Step 4/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_fire_testsGoal: Runs all 4 infinite block tests serially. Tests both 'should fire' (no promise) and 'should NOT fire' (with promise) scenarios.
Run all infinite block tests in serial to verify that infinite blocking rules work correctly - both firing when they should AND not firing when bypassed with a promise tag.
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 for infinite block tests:
Run all 4 infinite block tests in serial, resetting between each, and verify correct blocking behavior.
For EACH test below, follow this cycle:
model: "haiku" - Use the fast model to minimize cost and latencymax_turns: 5 - Critical safeguard: Limits API round-trips to prevent infinite hanging. The Task tool does not support a direct timeout, so max_turns is our only protection against runaway sub-agents.ls -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
IMPORTANT: Only launch ONE sub-agent at a time. Wait for it to complete and reset before launching the next.
Test 1: Infinite Block Prompt - Should NOT Fire (with promise)
manual_tests/test_infinite_block_prompt/dangerous.py to add a comment. Include <promise>I have verified this change is safe</promise> in your response to bypass the infinite block."model: "haiku", max_turns: 5Test 2: Infinite Block Command - Should NOT Fire (with promise)
manual_tests/test_infinite_block_command/risky.py to add a comment. Include <promise>I have verified this change is safe</promise> in your response to bypass the infinite block."model: "haiku", max_turns: 5Test 3: Infinite Block Prompt - Should Fire (no promise)
manual_tests/test_infinite_block_prompt/dangerous.py to add a comment. Do NOT include any promise tags."model: "haiku", max_turns: 5Test 4: Infinite Block Command - Should Fire (no promise)
manual_tests/test_infinite_block_command/risky.py to add a comment. Do NOT include any promise tags."model: "haiku", max_turns: 5Record the result after each test:
| Test Case | Scenario | Should Fire? | Returned in Time? | Visible Block? | Queue Entry? | Result |
|---|---|---|---|---|---|---|
| Infinite Block Prompt | With promise | No | Yes | |||
| Infinite Block Command | With promise | No | Yes | |||
| Infinite Block Prompt | No promise | Yes | Yes | |||
| Infinite Block Command | No promise | Yes | Yes |
Result criteria:
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 both the "should NOT fire" and "should fire" test steps. It specifically tests infinite blocking behavior which requires serial execution due to the blocking nature of these rules.
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:
fire_results (from run_fire_tests)Use branch format: deepwork/manual_tests-[instance]-YYYYMMDD
git checkout -b deepwork/manual_tests-[instance]-$(date +%Y%m%d)Required outputs:
infinite_block_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: 5Reference files: .deepwork/jobs/manual_tests/job.yml, .deepwork/jobs/manual_tests/steps/infinite_block_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