Skip to content

cc-stats: show how cycles ended and name unreported models in drift - #59

Merged
datacas merged 1 commit into
mainfrom
issue-52-cc-stats-cycle-outcomes
Sep 24, 2026
Merged

datacas merged 1 commit into
mainfrom
issue-52-cc-stats-cycle-outcomes

Conversation

@datacas

@datacas datacas commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Closes #52 (#52)

What changed

  • Cycle outcomes (summary.cycle_outcomes in JSON, new Markdown section): counts each correlated cycle (cycle_id, not task) once by the status on its last record_kind: cycle row, with bars. Cycles seen in the period without a closing row are reported as unknown — neither finished nor failed. Resolution rounds are summed and averaged when measured.
  • Unmeasured model drift: Model drift: not measured — N dispatches did not report a model instead of hiding the count.
  • Test verification is labelled as counted per cycle.
  • cc-stats SKILL.md and CHANGELOG updated.

Acceptance criteria

  • Four closed HUMAN_INTERVENTION cycles render HUMAN_INTERVENTION: 4 — test_cycle_outcomes_count_final_status_per_cycle.
  • A cycle without a cycle row counts as unknown only — test_cycle_without_closing_row_is_neither_finished_nor_failed.
  • Unmeasured drift names unreported dispatches — test_unmeasured_model_drift_names_dispatches_without_a_model.

Verification

  • python3 scripts/validate-package.py → VALID
  • python3 -m unittest discover -s tests → 622 tests OK

)

- Add a per-cycle "Cycle outcomes" aggregate to JSON and Markdown: final
  status counts with bars, cycles without a closing record kept as unknown,
  and resolution rounds when measured.
- Unmeasured model drift now states how many dispatches did not report a
  model.
- Label test verification as counted per cycle.

Closes #52
@datacas

datacas commented Sep 24, 2026

Copy link
Copy Markdown
Owner Author

Review summary

APPROVED — reviewed the accumulated diff from main (de16166c9b628e2a9b1d72e392b47259867e9265) through PR head a93118e8a472c09127b9d8df3919a9202849a7ba. The changes implement issue #52 across scripts/stats.py, tests/test_stats.py, skills/cc-stats/SKILL.md, and CHANGELOG.md. No actionable findings; no blocking finding IDs.

Findings

No findings.

Security triage

Sensitive change: local telemetry reporting and privacy. The security audit ran and found no confirmed security or privacy vulnerabilities. The report continues to emit aggregate counts rather than cycle identifiers or raw telemetry.

Verification

Execution-backed verification ran on an isolated archive of the reviewed PR head; the shared worktree was left untouched.

  • python3 -m unittest discover -s tests -p 'test_stats.py' -v — passed, 17 tests.
  • 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 -v — passed, 622 tests (OK).
  • No UI/API runtime flow applies to this change.

CI

GitHub checks for this head are all passing: Skills, manifests, and Bash installer (2 runs) and PowerShell installer (2 runs). These are the jobs defined by .github/workflows/validate.yml; no expected job is missing.

Residual risk

The report shows exact outcome counts for small cohorts. Sharing a generated report could reveal a cycle's broad outcome; report generation remains local and user-invoked.

Verdict

APPROVED. The reviewed head matches the current PR head, all required checks passed, and there are no open blocking findings.

@datacas
datacas merged commit 44146d5 into main Sep 24, 2026
4 checks passed
@datacas
datacas deleted the issue-52-cc-stats-cycle-outcomes branch September 24, 2026 09:21
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.

cc-stats: mostrar cómo terminan los ciclos y aclarar el model drift sin medir

1 participant