Pair Every Prompt Rule with a Code Backstop
Harness Engineering
120-180 minutes0/4 steps0%
Step 2 of 4
Implement checks independent of the prompt
The code layer must stand alone.
First time here? Paste the Context Pack first so the AI understands your project - open it from the header above.
Prompt Capsule
For each confirm/block rule, implement a deterministic check in the tool-execution path that inspects the actual action (parsed command, target path, flags, destination) - never the conversation text. Examples: destructive git detection (force-push, hard reset, branch deletion) by parsing the command; protected-path validation that refuses removal of system or credential paths regardless of any permission rule; parameter validation that catches dangerous sub-features of allowed tools (a command runner's in-tool execute flags, write-to-file directives inside an editor command). Each check returns allow, ask with a human-readable reason, or deny. Prove independence: run the test suite with the safety prompt entirely removed - every check must still fire.
Paste into EmergentFull Build: complete implementation prompt with explicit requirements
Quick is short. Full Build is recommended for most steps. Strict forces real logic when the AI keeps faking output.
Actual change check
Expected after this step
Deterministic checks on actions (not text) that pass the prompt-deleted test.
Should NOT happen
- An existing feature broke
- A button only logs to console
- Data disappears after refresh
- Errors fail silently with no visible state
This is what should exist before you continue. If reality does not match, do not move on.
Track what changed, failed, or needs follow-up. Notes export with the flow.
Pass the Verify Gate to complete this step