Skip to content

feat(cli): correlate sessions with git commits (#1690 phase 1) - #1711

Merged
Sinity merged 3 commits into
masterfrom
feature/feat/git-session-correlation
May 28, 2026
Merged

Sinity merged 3 commits into
masterfrom
feature/feat/git-session-correlation

Conversation

@Sinity

@Sinity Sinity commented May 28, 2026 •

Copy link
Copy Markdown
Owner

Add polylogue correlate command showing git commits in session time window with file-overlap detection.

Summary by CodeRabbit

  • New Features

    • Added polylogue correlate CLI command to correlate conversation time windows with related git commits. Supports configurable time ranges and outputs in JSON or human-readable format.
  • Documentation

    • Updated CLI reference, topology records, and verification catalogs to reflect the new command.

Review Change Stack

@Sinity
Sinity merged commit 292628e into master May 28, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Sinity
Sinity deleted the feature/feat/git-session-correlation branch May 28, 2026 07:27
@coderabbitai

coderabbitai Bot commented May 28, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e9165ede-71cf-4179-8de8-2d2cea94a1f3

📥 Commits

Reviewing files that changed from the base of the PR and between b428b3c and d031756.

📒 Files selected for processing (7)
  • docs/cli-reference.md
  • docs/plans/topology-target.yaml
  • docs/test-quality-workflows.md
  • docs/topology-status.md
  • docs/verification-catalog.md
  • polylogue/cli/click_command_registration.py
  • polylogue/cli/commands/correlate.py

📝 Walkthrough

Walkthrough

This PR adds a new polylogue correlate CLI command that loads a conversation by ID, derives a git scan window from its timestamps, resolves the git repository, and outputs commits within that window with file overlap detection. The command is registered in the root CLI and documented across reference, topology, test quality, and verification catalog files.

Changes

Add correlate CLI Command

Layer / File(s) Summary
Command implementation and registration
polylogue/cli/commands/correlate.py, polylogue/cli/click_command_registration.py
New correlate_command loads conversations, computes git scan windows from created_at/updated_at, resolves repo paths from CLI or provider metadata, runs git log with file tracking, parses commits with overlap detection, and outputs JSON or console format. Registered in ROOT_COMMANDS tuple.
Documentation and metadata updates
docs/cli-reference.md, docs/plans/topology-target.yaml, docs/test-quality-workflows.md, docs/topology-status.md, docs/verification-catalog.md
CLI reference lists the new command; topology targets add correlate.py entry and update click_app.py loc; test quality metrics and exercise catalog incremented; topology status dashboard counts incremented; verification catalog snapshot and subject counts updated with new polylogue correlate command entry.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Sinity/polylogue#968: Both PRs add new root Click subcommands by updating ROOT_COMMANDS tuple in click_command_registration.py (context-pack in #968 vs correlate here).

Poem

🐰 A rabbit hops through git logs with glee,
Correlating time with commits in the tree,
From conversation to repo, the path is now clear,
New CLI magic has come to frontier! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/git-session-correlation

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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