Enabling HITL
HITL Session Flow
- Logic Map Review: View extracted rules and categories
- Scenario Review: View generated scenarios with coverage
- Interactive Editing: Modify rules, scenarios, or coverage
- Confirmation: Approve to proceed with trace generation
Available Commands
During a HITL session, you can use these commands:Logic Map Commands
| Command | Description |
|---|---|
edit rule R001 | Edit a specific rule |
add rule | Add a new rule |
remove rule R001 | Remove a rule |
show rules | Display all rules |
Scenario Commands
| Command | Description |
|---|---|
edit scenario 1 | Edit scenario #1 |
add scenario | Add a new scenario |
remove scenario 1 | Remove scenario #1 |
regenerate scenarios | Regenerate all scenarios |
add 5 more scenarios | Generate 5 additional scenarios |
Coverage Commands
| Command | Description |
|---|---|
show coverage | Display coverage report |
increase coverage for [sub-category] by 20% | Add scenarios to improve coverage |
target [sub-category] to 80% | Generate scenarios to reach target coverage |
Session Commands
| Command | Description |
|---|---|
continue / ok / done | Proceed to next phase |
quit / exit | Cancel generation |
help | Show available commands |
Example Session
Programmatic HITL with Session API
The Session API provides the cleanest way to do programmatic HITL with database persistence:Low-Level Programmatic HITL
For custom HITL flows without persistence, use the lower-level components:Disabling HITL for CI/CD
In automated pipelines, disable HITL:Best Practices
- Review Logic Map First: Ensure rules are correctly extracted before generating scenarios
- Check Coverage: Use coverage report to identify gaps before proceeding
- Start Small: Review with 10-20 scenarios before scaling up
- Save Checkpoints: Use
checkpoint_dirto save progress during long sessions - Disable for Production: Use
enable_hitl=Falsefor batch/automated runs