Skip to content

Commit d9b1011

Browse files
committed
Eliminate conversational prompting in taskflow execution
Add explicit execution directives to personality and all task prompts: - 'Execute all steps above, then stop. Do not ask what to do next.' - Personality: 'Do not offer to do additional work. Do not say if you'd like or shall I. Complete every step, then stop.' Prevents the model from pausing mid-task to ask for user direction instead of executing the defined workflow autonomously.
1 parent 631ecc6 commit d9b1011

4 files changed

Lines changed: 27 additions & 3 deletions

File tree

src/seclab_taskflows/configs/model_config_pvr_triage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ seclab-taskflow-agent:
1111

1212
models:
1313
# Primary model for code analysis and triage reasoning
14-
triage: claude-opus-4.6-1m
14+
triage: claude-opus-4.6
1515
# Lighter model for structured data extraction tasks
1616
extraction: gpt-5-mini
1717

src/seclab_taskflows/personalities/pvr_analyst.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@ personality: |
2121
- Flag low-quality ("AI slop") reports: vague claims, wrong file paths, non-working PoC,
2222
incorrect function signatures, or descriptions that don't match the actual code.
2323
24+
Execution rules:
25+
- Execute each task fully and autonomously. Do not ask for permission or confirmation.
26+
- Do not offer to do additional work. Do not say "if you'd like" or "shall I".
27+
- Complete every step described in the task prompt, then stop.
28+
- When storing results in memcache, proceed immediately to the next step.
29+
- Output only findings and results, not suggestions for next steps.
30+
2431
task: |
2532
Analyze the provided vulnerability report and verify claims against the actual source code.
2633
Produce factual, evidence-based findings. Never guess or assume.
34+
Execute all steps described in the user prompt without asking for direction.
2735
2836
toolboxes:
2937
- seclab_taskflows.toolboxes.pvr_ghsa

src/seclab_taskflows/taskflows/pvr_triage/pvr_triage.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ taskflow:
9595
is returned (non-empty), store it under memcache key "security_policy".
9696
If no policy is found, store an empty string.
9797
98+
Execute all steps above, then stop. Do not ask what to do next.
99+
98100
# -------------------------------------------------------------------------
99101
# Task 3: Quick Quality Gate
100102
# -------------------------------------------------------------------------
@@ -208,6 +210,8 @@ taskflow:
208210
but do NOT auto-set fast_close. Duplicates still require human judgment.
209211
The report will surface the duplicate info for the maintainer to decide.
210212
213+
Execute all steps above, then stop. Do not ask what to do next.
214+
211215
# -------------------------------------------------------------------------
212216
# Task 4: Verify vulnerability in source code
213217
# -------------------------------------------------------------------------
@@ -282,6 +286,8 @@ taskflow:
282286
- patch_notes: description of HEAD state vs claimed version (or null)
283287
- notes: any additional observations
284288
289+
Execute all steps above, then stop. Do not ask what to do next.
290+
285291
# -------------------------------------------------------------------------
286292
# Task 4b: Container-based validation (optional)
287293
# -------------------------------------------------------------------------
@@ -530,6 +536,8 @@ taskflow:
530536
"quality": "High" | "Medium" | "Low"
531537
}
532538
539+
Execute all steps above, then stop. Do not ask what to do next.
540+
533541
# -------------------------------------------------------------------------
534542
# Task 6: Save report to disk and print path
535543
# -------------------------------------------------------------------------
@@ -593,6 +601,8 @@ taskflow:
593601
594602
Store under memcache key "response_draft".
595603
604+
Execute all steps above, then stop. Do not ask what to do next.
605+
596606
# -------------------------------------------------------------------------
597607
# Task 8: Update Reporter Reputation + Save Response Draft
598608
# -------------------------------------------------------------------------

src/seclab_taskflows/taskflows/pvr_triage/pvr_triage_batch.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ taskflow:
5252
5353
Store the full JSON list under memcache key "pvr_queue".
5454
55-
Print: "Found N triage advisories for {{ globals.repo }}." where N is the count.
55+
Print: "Found N {{ globals.state }} advisories for {{ globals.repo }}." where N is the count.
5656
57-
If no advisories are found, print "No triage advisories found." and stop.
57+
If no advisories are found, print "No {{ globals.state }} advisories found." and stop.
58+
59+
Execute all steps above, then stop. Do not ask what to do next.
5860
5961
# -------------------------------------------------------------------------
6062
# Task 2: Score each advisory and detect duplicates
@@ -138,6 +140,8 @@ taskflow:
138140
Store scored_queue under memcache key "scored_queue".
139141
Store skipped_count under memcache key "skipped_count".
140142
143+
Execute all steps above, then stop. Do not ask what to do next.
144+
141145
# -------------------------------------------------------------------------
142146
# Task 3: Generate and save ranked queue report
143147
# -------------------------------------------------------------------------
@@ -206,3 +210,5 @@ taskflow:
206210
207211
Print: "Batch queue report saved to: <path returned by save_triage_report>"
208212
Then print the full report.
213+
214+
Execute all steps above, then stop. Do not ask what to do next.

0 commit comments

Comments
 (0)