Repository navigation
test(cli): Retire references to the deleted phases and work-events surfaces - #5392
Conversation
#5314 (dafcfc6) deleted session_phases/session_work_events and their CLI phases/work-events/timeline commands but left several test files naming the deleted surfaces. Remove the dead references so the CLI command table, MCP status-surface, and confidence-vocab tests describe what the CLI actually exposes: - test_json_output.py / test_stdout_stderr_split.py: drop the phases/work-events/timeline entries from the hand-maintained command tables (the anti-vacuity check at test_json_output.py:229-261 is what caught this; it is untouched). - test_status.py (TestArchiveStatusSurfaces): _archive_status_surfaces no longer emits timeline_work_events/timeline_phases; keep the threads-readiness coverage the same test also carried and drop the now-dead work_event/phase count keys from the other fixtures in this class. - test_confidence_vocab.py: profile_support_level lost its confidence input (#5314 rewired it to support_level(0.0, ...)); rewrite the test double for the real SessionProfile shape and assert the current WEAK invariant instead of the old phase-confidence scenario. - test_session_insight_profiles.py: enrichment_support_signals no longer emits heuristic_work_events; drop it from the expected tuple. - test_session_projection_table.py: separately, #5374 (fb84ba1, not #5314) moved run_read_events from cli/read_views/events.py into cli/read_views/session_evidence.py without updating this test's import path; point it at the new module. Verified test_plain_cli_snapshots.py's 7 failures and test_session_insight_profiles.py's test_session_enrichment_maps_goal_outcome_from_terminal_state do NOT reproduce as #5314 fallout (unrelated diffs: a #5362 field addition, session-ordering/wallclock drift, and a pre-existing goal_outcome gap); left untouched. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy
|
Warning Review limit reachedNext included review available in 36 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
polylogue-9srtz— cluster 4 of the corpus-failure analysis. #5314 (dafcfc612, 2026-09-21) deletedsession_phases/session_work_events, their CLI commands, and rewiredprofile_support_level. Tests still naming them were left behind.14 of the cluster's 21 fixed. 7 refused — they are a different cause. And one genuine production omission found.
Fixed (14 + 1)
test_json_output.pyphases/work-eventsfrom_COMMANDS, staletimelinefrom_EXCLUDEDtest_stdout_stderr_split.py_ALL_COMMANDScommands/test_status.pyTestArchiveStatusSurfacesonly — removedtimeline_work_events/timeline_phases, cleaned dead row-count keystest_confidence_vocab.py_Profiledouble rewritten to the currentSessionProfileshape (engaged_duration_ms)test_session_insight_profiles.pyheuristic_work_eventsfrom expectedsupport_signalstest_session_projection_table.pyModuleNotFoundError: polylogue.cli.read_views.eventscomes from #5374 (01:20, after #5314) movingrun_read_eventsintosession_evidence.pywithout updating the importTestArchiveTableCountswas deliberately not touched — that'spolylogue-1t5b5's collision class in the same file.Refused: 7 tests are not this cluster
test_plain_cli_snapshots.py's 7 failures are inherited red at master with mixed, unrelated causes — atitle_is_synthesizedfield added by #5362 never folded into the snapshot, plus wallclock-span and session-ordering drift in the postmortem/portfolio snapshots. None of the diffs mention phases, work-events or timeline. Making them green would mean fixing unrelated regressions under this bead's name.So
9srtz's acceptance ("green for all 19") does not hold, and that is reported rather than manufactured.Also found in the same file and not in the bead's list:
test_session_enrichment_maps_goal_outcome_from_terminal_statefails because the/goal-sessionmatch profile.terminal_statehas no case for"clean_finish"/"agent_hanging"— a pre-existing gap, unconnected.A production omission #5314 missed
polylogue/scenarios/insight_surfaces.py(~:36-66) still declares liveCliSurfaceFamilyentries forslug="work-events"andslug="phases", invoking commands that no longer exist. It is only reachable viadevtools scenario/devtools smoke, not the pytest corpus — which is exactly why the corpus-failure clustering could not see it. Out of this lane's declared scope, so not fixed here; filed separately.Anti-vacuity — executed
Diff saved as a patch, all 6 files reverted with
git checkout --, selection re-run, real red captured:_COMMANDS lists 'analyze insights phases'…,ModuleNotFoundError: No module named 'polylogue.cli.read_views.events',AttributeError: '_Profile' object has no attribute 'engaged_duration_ms',Extra items in the right set: 'timeline_work_events' 'timeline_phases','assistant_outcome_text' != 'heuristic_work_events'. The unrelatedtest_session_enrichment_…failure recurred identically, confirming it is inherited and not introduced by the revert. Patch reapplied and diff confirmed byte-identical.Verification
🤖 Generated with Claude Code
https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy