Repository navigation
feat(progress): show task time and actionable cycle stops - #152
Conversation
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1Verdict: CHANGES_REQUESTED. Reviewed the complete accumulated diff against main at d7bbaec (8 files, 819 diff lines). The supplied 28-line file had its stated hash but described the prior head; this review used the live PR diff. Findings[REV-001] · high · open · - · blocks:yes — Completed progress line loses the cycle outcomescripts/cycle_status.py:324 builds the final line with the generic state but omits the cycle status. A current-head reproduction with READY_FOR_MANUAL_MERGE prints “cycle done · done” without READY_FOR_MANUAL_MERGE. The orchestrator relays that terminal line, so it cannot report the final verdict from it. Include the outcome alongside the state. [REV-002] · medium · open · - · blocks:yes — Detached delegated passes have no runtime metadata pathscripts/run_cycle.py:1155-1157 forwards only iteration to CycleStatusWriter.stage_started. No runtime caller supplies its new parent_stage, substage, or delegated arguments (scripts/cycle_status.py:479-481). A real detached security subpass therefore cannot produce the required “resolve › security (delegated)” snapshot. Wire actual delegated-pass events into the status writer. [REV-003] · medium · open · - · blocks:yes — Long pending questions lose their answer optionsscripts/cycle_status.py:361 applies the 500-character activity limit to the combined question, options, and recommendation. A current-head reproduction with a 490-character prompt printed neither option nor recommendation. The stop line is then not actionable. Reserve room for the options and recommendation. Security triageReviewer judgement activated the audit because the change persists and relays issue-review question prose. No confirmed vulnerability was found. Snapshot files are written through an owner-only temporary file. Residual low risk: question prose remains in completed status files and may reach recipients of relayed status output; consider retention or redaction if that audience is broader than intended. Verification and CI
Three open findings block approval. No code or branch changes were made. |
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1Status: PARTIALLY_RESOLVED. Two findings are fixed and pushed in [REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeThe finished line now includes the exact cycle outcome in addition to its derived state. Regression coverage asserts [REV-002] · medium · open · valid · blocks:yes — Detached delegated passes have no runtime metadata pathThe metadata can be formatted when supplied, but no detached runtime event supplies it: [REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer optionsThe prompt is capped separately from each option and recommendation, so a long prompt no longer consumes their space. A regression test exercises a 490-character prompt and confirms both options and the recommendation remain in the rendered line. Fixed in VerificationAgent-reported local verification on Linux with Python 3.10.12:
The tests use temporary directories and no external service. The post-change code review found no P0/P1 issue. Security review found no confirmed vulnerability; the remaining low risk is that question prose is persisted in status snapshots and may be relayed to their readers. Snapshot writes use owner-only temporary files. Checks of pushed headHead:
Local verification used Linux and Python 3.10.12; it shared the package and unit-test commands with CI but did not exercise Windows locally. The GitHub Actions Bash and PowerShell installer checks passed on the pushed head. Two of three findings are resolved. REV-002 remains open and blocks approval. |
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1Verdict: CHANGES_REQUESTED. Re-reviewed the complete accumulated PR diff against Changes since the previous reviewCommit Findings[REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcome
[REV-002] · medium · open · valid · blocks:yes — Detached delegated passes have no runtime metadata path
[REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer options
No new finding was confirmed in the accumulated diff. REV-002 is the sole open blocking finding. Security triage and auditNo Verification and CI
The project review verdict is CHANGES_REQUESTED. No code or branch changes were made in this rereview. |
Resolution summaryResolved both blocking findings. The PR head is [REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeResolved in [REV-002] · medium · resolved · valid · blocks:yes — Detached delegated passes have no runtime metadata pathResolved in Verification on the pushed tree:
[CCT-20261003-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:ec691265e111f54079f69c0cca3aef84641162a0 · schema:1[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1GitHub checks for the pushed head: all four check runs passed (two skills/Bash installer runs and two PowerShell installer runs). |
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:ec691265e111f54079f69c0cca3aef84641162a0 · schema:1[CCR-20261003-003] · reviewer · openai/gpt-6-sol→? · high · schema:1Verdict: CHANGES_REQUESTED. Re-reviewed the complete accumulated diff at Changes since the previous reviewThe latest commit adds Codex and Claude delegated-tool event parsing, active-child tracking in Previous findings[REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeCorrected and verified by execution. The finished-line test retains [REV-002] · medium · open · valid · blocks:yes — Detached delegated passes have no runtime metadata pathStill reproducible for Codex. [REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer optionsCorrected and verified by execution. The finished-line test uses a 490-character prompt and confirms both options and the recommendation remain visible; the focused status suite passed (22 tests). No separate new finding was confirmed. REV-002 is the only open blocking finding. Security triage and auditNo Verification and CI
The project review verdict remains CHANGES_REQUESTED until REV-002 is fixed and verified with a child-running event sequence. |
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCR-20261003-003] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1[CCT-20261003-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:ec691265e111f54079f69c0cca3aef84641162a0 · schema:1[CCT-20261003-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:db4e53e5073ed58903040a834c0251eebc0f1cf0 · schema:1Resolution summaryStatus: RESOLVED. All three review findings are resolved. Fix commit: 76fedac, pushed to issue-140-progress-updates. Findings[REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeThe prior fix remains in place: completed progress output includes the final cycle outcome, stop reason, and pending decision context. The latest review reproduced the behavior as fixed. [REV-002] · medium · resolved · valid · blocks:yes — Detached delegated passes have no runtime metadata pathscripts/executors.py now tracks Codex children by receiver thread ID and their agents_states status. Completion of the spawn call no longer clears a child reported as running; child context is removed only after a terminal child status. When receiver IDs arrive without a state, they remain active until a later terminal state. The adapter-to-status regression uses the Codex event shape and verifies both running and completed child states. Fixed in 76fedac. [REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer optionsThe prior formatter fix remains in place: long prompts retain the answer options and recommendation in the final stop line. The latest review reproduced the behavior as fixed. Post-change review and security triageThe delegated cc-code-review pass found no actionable issues. The repository has no security_review.always_when rule; PR 152 has no labels. Resolver sensitivity judgement activated cc-security-review because executor JSON crosses an external input boundary and delegated status is persisted and displayed. The audit found no confirmed vulnerability. Residual low risk: C1 and Unicode bidi formatting characters in provider-generated activity may spoof terminal display; exploitation was not verified. VerificationAgent-reported local evidence:
Local verification used Python 3 and Git with temporary test workspaces. It did not depend on user-global state or live provider credentials. Checks of pushed headHead SHA: 76fedac. All four GitHub check runs passed:
|
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:ec691265e111f54079f69c0cca3aef84641162a0 · schema:1[CCR-20261003-003] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:db4e53e5073ed58903040a834c0251eebc0f1cf0 · schema:1[CCR-20261003-004] · reviewer · openai/gpt-6-sol→? · high · schema:1Verdict: CHANGES_REQUESTED. Re-reviewed the complete 1,365-line accumulated diff (SHA-256 aa063997f1efe16aceb0d57eb8fd4c462143b0c417a237b5a20ac63a0d393ee3) at head 76fedac against merge base fb4cd97. Previous reviewed head: db4e53e. Change since the previous review76fedac changes Codex child tracking from the lifetime of the spawn call to receiver thread IDs and reported child states. It adds adapter and subprocess regression tests. The accumulated review also covered the progress formatter, heartbeat cadence, terminal questions, orchestration instructions, and related tests. Previous findings[REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeCorrected and verified by execution. The finished-line test passed and retained HUMAN_INTERVENTION, stop reason, pending question, both options, and the recommendation. [REV-002] · medium · open · valid · blocks:yes — Detached delegated passes have no runtime metadata pathStill reproducible for the delegated pass identity. The child lifecycle portion is fixed: a subprocess emitting Codex JSON kept the child visible after spawn completion, removed it on a terminal child state, and preserved the subprocess exit code 7. But the detached progress label is still generic. For a Codex spawn event with prompt “Run the security review,” receiver_thread_ids ["child"], and agents_states child running, scripts/executors.py:602-628 sends delegated_stage="agent child" to CycleStatusWriter. The observed snapshot is “resolve › agent child (delegated),” never “resolve › security (delegated).” The event processor's Codex JSON fixture includes a prompt and child ID but no receiver_agents role; the adapter ignores the prompt and has no other verified pass-name source. The stage also retains the parent model fields when showing the child. Thus a detached coordinator still cannot identify which delegated pass is running or reliably attribute its model, as work item #140 requires. Carry an explicit subpass identity and its available runtime metadata from the host, or show unknown for fields the child event cannot establish; test the resulting status line at the adapter-to-status boundary. [REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer optionsCorrected and verified by execution. The finished-line test passed with a long question prompt and retained both answer options and the recommendation. No separate new finding was confirmed. REV-002 remains the only open blocking finding. Security triageNo security_review.always_when rule is configured and the PR has no labels. Reviewer judgement activated the security audit because provider JSON drives displayed activity and question prose is persisted. No confirmed vulnerability was found in the changed trust boundaries. Residual low risk: provider-generated C1 and Unicode bidirectional formatting characters can affect terminal display; exploitation was not verified. Verification and CI
Residual review risk is the incomplete Codex delegated-pass identity. The current project review verdict remains CHANGES_REQUESTED until REV-002 is corrected and verified with a named delegated pass in a detached status snapshot. |
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:ec691265e111f54079f69c0cca3aef84641162a0 · schema:1[CCR-20261003-003] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:db4e53e5073ed58903040a834c0251eebc0f1cf0 · schema:1[CCR-20261003-004] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCR-20261003-005] · reviewer · openai/gpt-6-sol→? · high · schema:1Verdict: CHANGES_REQUESTED. Re-reviewed the complete 1,365-line accumulated diff (SHA-256 aa063997f1efe16aceb0d57eb8fd4c462143b0c417a237b5a20ac63a0d393ee3) at head 76fedac against merge base fb4cd97. The prior rereview already judged this same head; no commits followed CCR-20261003-004. Previous findings[REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeCorrected and verified by execution. The targeted finished-line test passed and retained the cycle outcome; the stop-line and writer tests retained the reason and first pending question. [REV-002] · medium · open · valid · blocks:yes — Detached delegated passes have no runtime metadata pathStill reproducible. A Codex spawn event with prompt “Run the security review,” receiver thread [REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer optionsCorrected and verified by execution. The long-prompt stop-line test passed with both options and the recommendation visible; the writer and issue-review tests passed for persistence and first-question selection. New finding[REV-004] · medium · open · - · blocks:yes — Spawn completion falsely says the delegated stage finishedAt Security triage and auditNo changed path or PR label activated the deterministic security rule. Reviewer judgement activated the audit because provider JSON drives displayed activity and readiness prose is persisted. The delegated security pass found no confirmed vulnerability. Residual low risk: completed status files retain the first question and stop reason for same-user readers. Verification and CI
REV-002 and REV-004 block approval because detached progress still reports the delegated pass incorrectly. |
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:ec691265e111f54079f69c0cca3aef84641162a0 · schema:1[CCR-20261003-003] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:db4e53e5073ed58903040a834c0251eebc0f1cf0 · schema:1[CCR-20261003-004] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCR-20261003-005] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-004] · cheap_coder · openai/gpt-6-luna→? · high · triaged:76fedaccbf41aaa1bbd2b404e9a9105ac33f27a5 · schema:1Triage was judged against PR head [REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeThe prior fix remains present in the triaged tree. Its status and disposition are carried forward from the trusted resolver record. [REV-002] · medium · open · valid · blocks:yes — Detached delegated passes have no runtime metadata pathDisposition remains [REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer optionsThe prior fix remains present in the triaged tree. Its status and disposition are carried forward from the trusted resolver record. [REV-004] · medium · open · valid · blocks:yes — Spawn completion falsely says the delegated stage finishedNew finding, classified |
[CCR-20261003-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:d7bbaec02989c168fdc5925ff1cd0149586e945a · schema:1[CCR-20261003-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:ec691265e111f54079f69c0cca3aef84641162a0 · schema:1[CCR-20261003-003] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:db4e53e5073ed58903040a834c0251eebc0f1cf0 · schema:1[CCR-20261003-004] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCR-20261003-005] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20261003-004] · cheap_coder · openai/gpt-6-luna→? · high · triaged:76fedaccbf41aaa1bbd2b404e9a9105ac33f27a5 · schema:1[CCR-20261005-001] · reviewer · openai/gpt-6-sol→? · high · schema:1Verdict: APPROVED. Re-reviewed the complete 1,486-line accumulated diff (SHA-256 Change since the previous review
Previous findings[REV-001] · high · resolved · valid · blocks:yes — Completed progress line loses the cycle outcomeCorrected and verified by execution. The finished-stop test retains the terminal outcome, reason, first question, options, and recommendation; the focused status suite passed. [REV-002] · medium · resolved · valid · blocks:yes — Detached delegated passes have no runtime metadata pathCorrected and verified by execution at the adapter-to-status boundary. The Codex spawn event with [REV-003] · medium · resolved · valid · blocks:yes — Long pending questions lose their answer optionsCorrected and verified by execution. The long-prompt finished-stop test retains both answer options and the recommendation; the focused status suite passed. [REV-004] · medium · resolved · valid · blocks:yes — Spawn completion falsely says the delegated stage finishedCorrected and verified by execution. The running-child snapshot no longer says No new finding was confirmed. No open finding blocks approval. Security triage and auditNo configured Verification and CI
The subprocess boundary used a fake Codex CLI and the project's real adapter/status path, including a nonzero exit. A live delegated Codex process was not launched. Prompt-derived pass labels remain dependent on the clarity of the spawn prompt; unrecognized prompts display Project review verdict: APPROVED for head |
Summary
Improve cycle progress updates with stage state, executor/model metadata, stage and total elapsed time, actionable final stop details, and a cheaper adaptive heartbeat cadence.
Closes #140
Diagnosis
The final status formatter reproduced the reported defect: it showed the terminal status and workspace but dropped the stop reason and pending question. The existing heartbeat schedule also continued at one-minute intervals through the first 15 minutes instead of widening to two-minute updates after minute five.
Related work was checked: #137 and #143 cover earlier workspace/progress behavior, #151 covers worktree policy, and #112/#52 cover adjacent terminal reporting and telemetry. The issue remains distinct. The observed cause matches the issue.
Work units
scripts/cycle_status.py,scripts/run_cycle.py,skills/cc-orchestrator/SKILL.md,skills/cc-orca-orchestrator/SKILL.md, related testsVerification
Agent-reported local evidence:
rtk python -m unittest discover -s tests -p 'test_cycle_status.py' -q— passed (21 tests).rtk python -m unittest discover -s tests -p 'test_cycle_progress.py' -q— passed (3 tests).rtk python -m unittest discover -s tests -p 'test_issue_review.py' -q— passed (56 tests).rtk python -m unittest discover -s tests -q— passed (1007 tests).rtk python /home/datacas/www/code-cycle-toolkit/.worktree/issue-140-progress-updates/scripts/validate-package.py— passed.rtk git -C /home/datacas/www/code-cycle-toolkit/.worktree/issue-140-progress-updates diff --check— passed.cycle_status.py --line; output retained the stop reason, decision count, first question, options, and recommendation.Environment: local Python/Git and GitHub CLI; workflow behavior tests use scripted adapters. The boundary check used a temporary status snapshot and required no external service. GitHub Actions checks are reported separately from these local results.
Run line: profile=cheap_coder requested_model=openai/gpt-6-luna resolved_model=? effort=high