Repository navigation
feat(skills): ask blocking questions one at a time - #135
Conversation
Accept an optional `questions` list in the issue-review result, validated by the new stop_questions module, and print a stop as one decisions line and the questions in asking order before the findings and evidence.
Add a shared "Asking the user" section to every cycle skill and cc-provider-bootstrap: one summary line, then one question at a time with two to four options, the recommended one first, and free text. Delegated stages return a `questions` list instead of asking. The validator keeps the section identical and checks its example against stop_questions.
[CCR-20260930-001] · manual · unknown/gpt-6.1-sol→? · low · schema:1Review: CHANGES_REQUESTEDReviewed the complete accumulated diff from [REV-001] · high · open · - · blocks:yes — Make readiness stops actually defer questions and detailsAffected path: The formatter iterates through every question, then unconditionally appends every finding, evidence reference, proposed change, and uncertainty. The heading Keep the full result available separately and make the default user-facing stop concise. Ask one question, accept its answer, then advance; if a host agent owns the interaction, provide it the structured result without also dumping all details to the CLI user. Add a boundary test proving that the second question and full findings are absent before the first answer or an explicit details request. [REV-002] · medium · open · - · blocks:no — Allow question payloads consistently in delegated review resultsAffected paths: The new shared section requires delegated stages to return Security triageNo repository-specific VerificationPreflight succeeded: this Python validator/test workflow needs no application configuration, database service, ports, or migrations; telemetry for the boundary reproduction was disposable. The delegated
That observed output confirms REV-001. Verification conclusion: An initial package-test attempt encountered a transient CI and residual risks
The runtime boundary finding prevents approval despite passing CI. Host-specific conversational behavior and real model adherence to the new instructions remain unverified. Schema validation establishes payload shape, not whether a recommendation is semantically trustworthy. Verdict: CHANGES_REQUESTED. Blocking finding: REV-001. |
[CCT-20260930-001] · manual · anthropic/opus→? · high · triaged:b10fe5d469edf589be5439e9dec378b75247494a · schema:1TriageEvery finding in [CCR-20260930-001] was classified against [REV-001] · high · open · valid · blocks:yes — Make readiness stops actually defer questions and detailsValid. [REV-002] · medium · open · valid · blocks:no — Allow question payloads consistently in delegated review resultsValid. |
Save every question, finding, and uncertainty to an owner-only decisions record beside the telemetry database instead of printing them, and let initial review and rereview carry questions in their structured result.
[CCR-20260930-001] · manual · unknown/gpt-6.1-sol→? · low · schema:1[CCT-20260930-001] · manual · anthropic/opus→? · high · triaged:b10fe5d469edf589be5439e9dec378b75247494a · schema:1Resolution: RESOLVEDEvery finding was triaged against [REV-001] · high · resolved · valid · blocks:yes — Make readiness stops actually defer questions and details
[REV-002] · medium · resolved · valid · blocks:no — Allow question payloads consistently in delegated review results
Verification (agent-reported)
The local run shares no global Git identity or credentials with these tests; CI additionally covers Windows and real installations. Live model adherence to the skill wording remains untested. Checks of
|
[CCR-20260930-002] · manual · unknown/gpt-6.1-sol→? · low · schema:1Prior run records, preserved: [CCR-20260930-001] · manual · unknown/gpt-6.1-sol→? · low · schema:1[CCT-20260930-001] · manual · anthropic/opus→? · high · triaged:b10fe5d469edf589be5439e9dec378b75247494a · schema:1Re-review: APPROVEDReviewed the complete accumulated merge-base diff against The runtime now prints only the first question and saves the ordered questions, findings, evidence, and proposed edits to a separate decisions record. The orchestrators explain how to retrieve subsequent questions and requested details. Initial review and rereview now explicitly permit question prose in delegated structured results, with a validator regression check. Recovered both previous findings from the complete provider comment history, in chronological order, under trusted author Previous findings[REV-001] · high · resolved · valid · blocks:yes — Make readiness stops actually defer questions and detailsCorrected and verified by execution. The original CLI reproduction now prints [REV-002] · medium · resolved · valid · blocks:no — Allow question payloads consistently in delegated review resultsCorrected and verified by execution of the package validator and New finding[REV-003] · medium · open · - · blocks:no — Handle unencodable question text when saving decisionsAffected path: A JSON-decoded prompt containing an escaped lone surrogate passes the question validator. For example, a prompt of 550 Use JSON's ASCII escaping, or reject/handle unencodable text before persistence; prevent failed writes from leaving an apparently usable decisions record. Add a regression case for an escaped lone surrogate outside the rendered prompt's truncation boundary. This remains nonblocking because it requires malformed Unicode in executor output; the ordinary question flow is verified. Security triage and auditNo repository-specific Preexisting-file/symlink hardening and retention are conditional residual risks, not confirmed vulnerabilities: exploiting the former requires write access to the configured state directory. REV-003 is a correctness finding. Unrelated existing surfaces were outside this audit. VerificationPreflight succeeded: the Python workflow needs no application configuration, service, port, or migration. Boundary runs used disposable state and scripted adapters, with no product-code edits or external publication by the executors.
Ordinary behavior and both previous fixes are verified; verification has a reservation for the confirmed encoding edge case. Actual model behavior and host-specific question/answer continuation were not exercised; the runtime boundary used injected adapters rather than live model processes. CI and verdict
Project verdict: Approve with observations. Functional status: APPROVED. No open finding blocks approval. REV-003 is the remaining nonblocking observation; host conversational adherence and decisions-record retention remain residual risks. |
Closes #132 — #132
Summary
A stop that needs a person's decision now leads with one summary line and asks its questions one at a time — context, two to four options with the recommended one first, and free text — instead of ending with every finding, piece of evidence, and proposed edit at once.
scripts/stop_questions.py: thequestionscontract (id,prompt,options,recommended,blocks), validation, and asking order (the question that settles the most first).issue_review.result_errorsaccepts an optionalquestionslist and requires eachblocksentry to name one of the result's ownIR-NNN/IU-NNNidentifiers.run_cycle.pyprints a readiness stop asdecisions: N needed, the questions in asking order, then the findings underdetails (show on request):.## Asking the userin every cycle skill andcc-provider-bootstrap: host question tool when available (AskUserQuestion, coordinator channel), one numbered question per message otherwise, never a wall of text; details on request; answers fed to the resumed stage; work-item edits only after confirmation; delegated stages returnquestionsinstead of asking.needs_clarification, Orca worker questions.stop_questions.questions_errors.Diagnosis
NEEDS_REFINEMENT,HUMAN_INTERVENTION, a decision behindBLOCKED, missing provider values,needs_clarification) ends with one long block; the user reads everything before answering anything, in prose.run_cycle._readiness_linesprinted every finding, evidence, and proposed change, and the shared orchestrator gate required showing "the findings with their evidence, the unresolved material uncertainties, and the proposed issue edits" on every stop. No skill defined a question shape.IU-NNN/proposed edits this builds on). No duplicate or superseding item.questionscontract with an executable definition, one shared section instead of per-skill wording, and the runtime report reordered rather than extended.Work units
WU-1questionscontract, issue-review acceptance, question-first runtime reportscripts/stop_questions.py,scripts/issue_review.py,scripts/run_cycle.py,scripts/runtime.manifesttests/test_stop_questions.py(new),tests/test_issue_review.pypython3 -m unittest discover -s tests→ exit 0, 955 testsdependent: revert together withWU-2, whose validator check importsstop_questionsWU-2skills/*/SKILL.md(8 skills),scripts/validate-package.py,tests/test_validate_package.py,docs/review-cycle.md,docs/workflows.md,CONTRIBUTING.md,CHANGELOG.mdtests/test_validate_package.py(5 new)python3 scripts/validate-package.py→ exit 0;python3 -m unittest discover -s tests→ exit 0, 960 testsindependentVerification (agent-reported)
python3 scripts/validate-package.py→ exit 0 (VALID: 15 skills (7 cycle, 8 supporting), shared sections in sync, cross-agent manifests aligned)python3 -m unittest discover -s tests→ exit 0,Ran 960 tests,OKEnvironment: the suite ran locally on Linux (WSL) with Python 3 and uses no global Git identity or credentials for these tests; CI additionally runs Windows and real installations.
Not in scope