Repository navigation
feat(read): profile executable session views (#1997) - #2021
Conversation
Problem: #1997 notes that read views already exist but their semantics are scattered across Click choices, renderers, docs, and future API plans. A caller cannot inspect one live record to know whether a view is raw, lossy, evidence-linked, redacted, or suitable for successor-agent handoff. What changed: add a SessionViewProfile registry for every executable read --view value, export it from archive.viewport, and derive the CLI --view choices/help from that registry. Add tests proving the Click choices are profile-backed and every profile declares the core contract fields. Regenerate topology for the new viewport module. Verification: nix develop --command devtools test tests/unit/archive/test_view_profiles.py tests/unit/cli/test_query_verbs_runtime.py -k 'view_profile or read_view' (7 passed, 16 deselected); nix develop --command devtools verify --quick (exit_code 0).
|
Warning Review limit reached
More reviews will be available in 4 minutes and 48 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Problem: #1844/#1997 want completion to consume view metadata rather than keep a parallel static list. After adding SessionViewProfile, read --view still relied on Click choice completion without profile descriptions. What changed: add a read-view shell completer backed by READ_VIEW_PROFILES and test that recovery completion carries profile-derived help text. Verification: nix develop --command devtools test tests/unit/archive/test_view_profiles.py tests/unit/cli/test_query_verbs_runtime.py -k 'view_profile or read_view' (8 passed, 16 deselected); nix develop --command devtools verify --quick (exit_code 0).
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ba1062035
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Add a live
SessionViewProfileregistry for the executableread --viewsurfaces, derive CLI view choices from that registry, and complete read views from the same profile metadata.Problem
#1997 identified that the views already exist but their semantics are scattered across Click choices, renderers, docs, and future API plans. Without a live profile record, callers cannot inspect whether a view is raw, lossy, evidence-linked, redacted, or suitable for successor-agent handoff, and stale view names can survive independently in CLI choices. #1844 also expects completion to consume view metadata instead of maintaining a parallel list.
Solution
polylogue.archive.viewport.profileswith profiles forsummary,transcript,messages,raw,context,context-pack,recovery,neighbors, andcorrelation.polylogue.archive.viewport.read --viewClick choices/help fromread_view_choices().read --viewvalues fromREAD_VIEW_PROFILES, including profile-derived help text.Verification
nix develop --command devtools test tests/unit/archive/test_view_profiles.py tests/unit/cli/test_query_verbs_runtime.py -k 'view_profile or read_view'->8 passed, 16 deselectednix develop --command devtools verify --quick->exit_code 0devtools verify --quick->exit_code 0Ref #1997
Ref #1844