Skip to content

run_cycle: show live progress and cycle status - #93

Merged
datacas merged 2 commits into
mainfrom
issue-71-progress-visibility
Sep 25, 2026
Merged

datacas merged 2 commits into
mainfrom
issue-71-progress-visibility

Conversation

@datacas

@datacas datacas commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Implements #71.

Summary

Adds opt-in live progress for run_cycle.py and persistent per-cycle status snapshots that can be read from another terminal.

Changes

  • Add --verbose and --progress-interval; default terminal output remains unchanged.
  • Show routed role, profile, executor/provider/model/effort, fallback use, elapsed time, tool count, activity, outcome, and token usage when available.
  • Atomically write one status snapshot per cycle beside the telemetry database, including a bounded sanitized activity line and finished state.
  • Add scripts/cycle_status.py with snapshot and --follow views.
  • Stream Codex and Claude JSONL events for live activity; read Claude's final result event and package the new runtime module.
  • Document the flags and status reader, with status coverage in the installed-runtime check.

Verification

  • python3 scripts/validate-package.py — passed (13 skills, shared sections and manifests aligned).
  • python3 -m unittest discover -s tests -q — passed (654 tests).
  • git diff --check — passed.

@datacas

datacas commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20260925-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1

Review summary

APPROVED — reviewed the accumulated 14-file diff from 91ba1ddbc09122078cfe9e95e5feeb6913b820eb to 7259c7520f988395975f0e16caaa136b7a67d6bf for PR #93, linked to issue #71. Two non-blocking findings remain; neither blocks approval.

Findings

[REV-001] · medium · open · - · blocks:no — A blocked later stage overwrites the previous stage's result

Path: scripts/run_cycle.py:563

When a stage completes but the next stage cannot be routed, CycleRecorder.stage() returns without calling stage_started(). run() still calls stage_finished() with the blocked outcome, and the writer updates whichever stage is currently saved. I reproduced an implementation finishing as succeeded · IMPLEMENTED, followed by a blocked review route; the final snapshot and verbose output then changed the implementation to blocked with no status. The cycle still correctly ends HUMAN_INTERVENTION, but its per-stage status is false. Only finish a status stage that actually started for that role, or record the blocked route separately.

[REV-002] · low · open · - · blocks:no — Claude token usage is not shown during the dispatch

Path: scripts/executors.py:557

The Claude stream handler reads assistant content but does not read message.usage from assistant events. Usage is only added by _usage_summary() after the final result arrives. The final token total is shown, but live token counts are missing from --verbose and the status snapshot during a long Claude stage, although issue #71 specifies that Claude usage is available per assistant event. Capture those updates in the progress state and add a test for an intermediate usage event.

Security triage

The configured deterministic rule is absent, so the built-in defaults apply. No changed path or filename matches those defaults, and PR #93 has no labels; the deterministic half did not fire. Reviewer triage added cc-security-review because this change adds observability and retains agent-authored activity. The security audit found no confirmed vulnerabilities. Residual privacy risk: the local status snapshot retains the task identifier and up to 500 characters of the latest agent activity without redaction, including after the cycle finishes. The data remains in the local status directory, and no cross-user exposure was demonstrated.

Verification

  • Focused status, progress, executor, cycle, and installed-runtime test suites — passed.
  • python3 scripts/validate-package.py — passed (VALID: 13 skills (6 cycle, 7 supporting), shared sections in sync, cross-agent manifests aligned).
  • python3 -m unittest discover -s tests -q — passed (654 tests).
  • git diff --check 91ba1dd..7259c75 — passed.
  • Targeted cycle with a successful implementation followed by unavailable reviewer routing — reproduced the incorrect persisted/verbose stage result described in REV-001.
  • Not run: live Codex or Claude CLI executions. Local tests use scripted adapters and JSONL fixtures; provider-specific behavior remains unverified at runtime.

CI

gh pr view 93 --json isDraft,headRefName,baseRefName,labels,statusCheckRollup and gh pr checks 93 show the current head 7259c7520f988395975f0e16caaa136b7a67d6bf with no pending or failing checks:

  • Skills, manifests, and Bash installer — pass (two reported runs).
  • PowerShell installer — pass (two reported runs).

Both jobs from the repository's Validate package workflow passed. No required gate was skipped or missing.

Verdict

APPROVED — all required checks pass, and there are no open findings that block approval. The two observations above remain non-blocking follow-up items.

@datacas
datacas merged commit ebd54d6 into main Sep 25, 2026
4 checks passed
@datacas
datacas deleted the issue-71-progress-visibility branch October 6, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant