fix(skills): add grill question accounting
This commit is contained in:
@@ -46,17 +46,7 @@ A completed grill summary is not an instruction to build.
|
|||||||
Finish when the user has answered the current question.
|
Finish when the user has answered the current question.
|
||||||
|
|
||||||
5. Update the open-question list.
|
5. Update the open-question list.
|
||||||
Mark each open question with its current state.
|
Apply the rules in [Open-question accounting](#open-question-accounting).
|
||||||
Use `- [ ]` for unresolved questions.
|
|
||||||
Use `- [+]` for questions added by the latest answer.
|
|
||||||
Use `- [u]` for questions updated by the latest answer.
|
|
||||||
Use `- [x]` for questions resolved by the latest answer.
|
|
||||||
Use `- [-]` for questions removed by the latest answer.
|
|
||||||
Show resolved and removed questions only on the turn after they change.
|
|
||||||
Keep unresolved questions visible on every active grill turn.
|
|
||||||
Add questions only when the latest answer directly causes them.
|
|
||||||
Do not add speculative questions to the open-question list.
|
|
||||||
Put speculative follow-up questions in the final summary instead.
|
|
||||||
Resolve newly answerable facts yourself before asking again.
|
Resolve newly answerable facts yourself before asking again.
|
||||||
|
|
||||||
Finish when every list change has an explicit marker and cause.
|
Finish when every list change has an explicit marker and cause.
|
||||||
@@ -75,6 +65,35 @@ A completed grill summary is not an instruction to build.
|
|||||||
|
|
||||||
Finish when the summary is delivered and grill waits.
|
Finish when the summary is delivered and grill waits.
|
||||||
|
|
||||||
|
## Open-question accounting
|
||||||
|
|
||||||
|
Show the full open-question list on every active grill turn.
|
||||||
|
Use `- [ ]` for unresolved questions.
|
||||||
|
Use `- [+]` for questions added by the latest answer.
|
||||||
|
Use `- [u]` for questions updated by the latest answer.
|
||||||
|
Use `- [x]` for questions resolved by the latest answer.
|
||||||
|
Use `- [-]` for questions removed by the latest answer.
|
||||||
|
|
||||||
|
Show `- [u]`, `- [x]`, and `- [-]` for one turn only.
|
||||||
|
After that turn, keep an updated question visible as `- [ ]`.
|
||||||
|
After that turn, remove resolved and removed questions from the visible list.
|
||||||
|
|
||||||
|
Add questions only when the latest answer directly causes them.
|
||||||
|
When the user extends scope instead of answering, account for the new question before pursuing it.
|
||||||
|
Do not add speculative questions to the open-question list.
|
||||||
|
Put speculative follow-up questions in the final summary instead.
|
||||||
|
|
||||||
|
Include a cause note for each `- [+]`, `- [u]`, and `- [-]` change.
|
||||||
|
Use this format:
|
||||||
|
|
||||||
|
```md
|
||||||
|
- [+] Policy action names
|
||||||
|
Cause: Your answer introduced `ALLOW` and `DENY`, changing the prior action names.
|
||||||
|
```
|
||||||
|
|
||||||
|
Preserve agent judgment when the user reframes or invalidates a question.
|
||||||
|
Show the resulting list change instead of following a rigid reframe algorithm.
|
||||||
|
|
||||||
## Turn endings
|
## Turn endings
|
||||||
|
|
||||||
While grill is active, every assistant turn must end with exactly one of these items:
|
While grill is active, every assistant turn must end with exactly one of these items:
|
||||||
|
|||||||
Reference in New Issue
Block a user