Skip to content

fix(baselines): refresh showcase help baselines after #482/#483 merges - #503

Closed
Sinity wants to merge 1 commit into
masterfrom
feature/fix/showcase-baseline-drift
Closed

Sinity wants to merge 1 commit into
masterfrom
feature/fix/showcase-baseline-drift

Conversation

@Sinity

@Sinity Sinity commented Apr 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Three showcase baselines drifted after recent merges. Master CI (showcase-verify) has been red since 6b5c392.

Problem

The fixes for #422/#482 and #406/#462 updated CLI help text but did not refresh the committed baselines, so devtools verify-showcase (and the CI showcase-verify job) compares the new help against the old baselines and reports drift.

Solution

Regenerated the three affected baselines via devtools lab-scenario verify-baselines --update. No other changes.

Verification

devtools lab-scenario verify-baselines     # exits 0
devtools verify --quick                    # all checks passed

Related

Unblocks #502 and any other PR that depends on a green master.

Summary by CodeRabbit

  • Documentation
    • Updated export command help to document additional conversation ID format support with example (provider:id-prefix).
    • Updated show command help to clarify default behavior displays full-content output.
    • Streamlined help text for better clarity on supported formats and output defaults.

@coderabbitai

coderabbitai Bot commented Apr 26, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 44 minutes and 10 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 44 minutes and 10 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: baf915fa-0b54-4674-82dc-5ac34816baf6

📥 Commits

Reviewing files that changed from the base of the PR and between b29a5ae and ac480bc.

📒 Files selected for processing (4)
  • tests/baselines/showcase/help-export.txt
  • tests/baselines/showcase/help-main.txt
  • tests/baselines/showcase/help-show.txt
  • tests/unit/cli/__snapshots__/test_terminal_snapshots.ambr
📝 Walkthrough

Walkthrough

Three CLI help baseline files were updated to reflect changes in default behavior and supported conversation ID formats. The export help now documents provider:id-prefix format, show help describes default output as full-content instead of streaming, and optional provider:id positional documentation was removed.

Changes

Cohort / File(s) Summary
Help Text Updates
tests/baselines/showcase/help-export.txt, tests/baselines/showcase/help-main.txt, tests/baselines/showcase/help-show.txt
Updated CLI help documentation to reflect new conversation ID format support and default behavior changes from streaming-based to full-content output.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 Help text blooms bright today,
IDs and formats find their way,
Output defaults now shine clear,
Full content brings users cheer!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly summarizes the main change—refreshing showcase help baselines after preceding merges.
Description check ✅ Passed The description covers all required sections: Summary, Problem, Solution, and Verification with specific commands and results.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/showcase-baseline-drift

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.

Three baselines drifted after the show/export/bulk-export fixes landed:

  - help-show: show verb body rewritten (#482)
  - help-export: gained provider:id-prefix note (#483)
  - help-main: show description text adjusted (#482)

Master CI (showcase-verify) has been red since 6b5c392. Refreshing
the baselines unblocks PRs that depend on a green master.

Verification: `devtools lab-scenario verify-baselines` exits 0.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@Sinity
Sinity force-pushed the feature/fix/showcase-baseline-drift branch from b29a5ae to ac480bc Compare April 27, 2026 00:14
Sinity added a commit that referenced this pull request Apr 27, 2026
Bundles the .txt baseline drift fix from #503 so the showcase-verify
job passes on this branch standalone. Without these the unit suite is
green but showcase-verify still fails.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sinity added a commit that referenced this pull request Apr 27, 2026
#505)

## Summary

Master CI has been red since 6b5c392 (#489) due to 14 unrelated test
failures. This PR fixes them all in one mechanical pass so the
architecture-series PRs (#502 and follow-ups) can land.

## Problem

Failures span four root causes:

1. **Python 3.11 / pydantic TypedDict.** Pydantic 2.12+ refuses
`typing.TypedDict` on Python < 3.12. 19 modules declare TypedDict
subclasses; they all need to import from `typing_extensions`.
2. **MCP mutation tests don't mock the new resolve_id pre-check.**
Mutation tools resolve the conversation_id via the query store before
mutating; tests only patched `_get_tag_store`, so resolve_id returned
None and the tools short-circuited with "conversation not found".
3. **Schema/contract drift.** `_clamp_limit` caps at 1000 but tests
still echo unbounded inputs. `get_stats_by` gained an enum on `group_by`
but the witness wasn't regenerated. `bulk_tag_conversations` switched to
`bulk_add_tags(ids, tags)` but the test still asserts N×M `add_tag`
awaits.
4. **Env-sensitive logging test.** `configure_logging` honors
`POLYLOGUE_FORCE_PLAIN`; CI sets that env to `1`, so
`ConsoleRenderer(colors=True)` is unreachable from inside CI.

## Solution

Six targeted fixes:

1. Switch 19 files from `typing.TypedDict` to
`typing_extensions.TypedDict`. Add `typing-extensions>=4.7` to
`pyproject.toml` (works on all supported Pythons).
2. Add `resolved_id` parameter to `make_query_store_mock` and patch
`_get_query_store` in affected mutation tests (`add_tag`, `remove_tag`,
`set_metadata`, `delete_metadata`, `delete_conversation`).
3. Update `_clamp_limit` parametrized cases (5000/10001/99999 → 1000);
regen `tests/data/witnesses/mcp-tool-schemas.json`; rewrite bulk_tag
test to assert on `bulk_add_tags`.
4. Add `patch.dict("os.environ")` + `env.pop("POLYLOGUE_FORCE_PLAIN")`
to the logging test.
5. Refresh syrupy `test_terminal_snapshots.ambr` (same drift as #503;
included here to make the unit suite green standalone).

## Verification

```
POLYLOGUE_FORCE_PLAIN=1 pytest tests/unit/mcp/ \
  tests/unit/test_logging_runtime.py \
  tests/unit/cli/test_terminal_snapshots.py --no-cov
→ all pass

devtools verify --quick
→ all checks passed (pre-push hook)
```

## Out of scope

`test_cli_tail_list_json_exposes_tail_provenance` is failing on a TOCTOU
warning from a parallel BlobStore fix (in `feature/fix/audit-final` /
d295503). Tracked there; not in this PR.

## Related

- #503 — baseline + syrupy refresh; this PR includes the syrupy bit
again so master test suite is green even without #503.
- #502 — topology projection cleanup; blocked on master CI being green.
- #489 — the merge that introduced the 14 failures (test code wasn't
updated alongside MCP authz/limits + clamp_limit + bulk_add_tags + the
show/export help text changes that landed across several merges).


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Enhanced CLI help text for export and show commands with clearer
descriptions of conversation ID format handling and default output
behavior.
* Reordered MCP tool schema parameters with added validation
constraints.

* **Chores**
  * Added `typing-extensions>=4.7` as a runtime dependency.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@Sinity

Sinity commented Apr 27, 2026

Copy link
Copy Markdown
Owner Author

Subsumed by #505 which includes the same baseline + syrupy refresh plus MCP mutation contract fixes. Closing to keep the merge log clean.

@Sinity Sinity closed this Apr 27, 2026
@Sinity
Sinity deleted the feature/fix/showcase-baseline-drift branch April 27, 2026 01:18
@Sinity

Sinity commented May 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ 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".

@Sinity
Sinity requested a review from Copilot May 1, 2026 01:55
@Sinity
Sinity removed the request for review from Copilot May 1, 2026 02:15
Sinity added a commit that referenced this pull request May 7, 2026
#505)

## Summary

Master CI has been red since ddf212f (#489) due to 14 unrelated test
failures. This PR fixes them all in one mechanical pass so the
architecture-series PRs (#502 and follow-ups) can land.

## Problem

Failures span four root causes:

1. **Python 3.11 / pydantic TypedDict.** Pydantic 2.12+ refuses
`typing.TypedDict` on Python < 3.12. 19 modules declare TypedDict
subclasses; they all need to import from `typing_extensions`.
2. **MCP mutation tests don't mock the new resolve_id pre-check.**
Mutation tools resolve the conversation_id via the query store before
mutating; tests only patched `_get_tag_store`, so resolve_id returned
None and the tools short-circuited with "conversation not found".
3. **Schema/contract drift.** `_clamp_limit` caps at 1000 but tests
still echo unbounded inputs. `get_stats_by` gained an enum on `group_by`
but the witness wasn't regenerated. `bulk_tag_conversations` switched to
`bulk_add_tags(ids, tags)` but the test still asserts N×M `add_tag`
awaits.
4. **Env-sensitive logging test.** `configure_logging` honors
`POLYLOGUE_FORCE_PLAIN`; CI sets that env to `1`, so
`ConsoleRenderer(colors=True)` is unreachable from inside CI.

## Solution

Six targeted fixes:

1. Switch 19 files from `typing.TypedDict` to
`typing_extensions.TypedDict`. Add `typing-extensions>=4.7` to
`pyproject.toml` (works on all supported Pythons).
2. Add `resolved_id` parameter to `make_query_store_mock` and patch
`_get_query_store` in affected mutation tests (`add_tag`, `remove_tag`,
`set_metadata`, `delete_metadata`, `delete_conversation`).
3. Update `_clamp_limit` parametrized cases (5000/10001/99999 → 1000);
regen `tests/data/witnesses/mcp-tool-schemas.json`; rewrite bulk_tag
test to assert on `bulk_add_tags`.
4. Add `patch.dict("os.environ")` + `env.pop("POLYLOGUE_FORCE_PLAIN")`
to the logging test.
5. Refresh syrupy `test_terminal_snapshots.ambr` (same drift as #503;
included here to make the unit suite green standalone).

## Verification

```
POLYLOGUE_FORCE_PLAIN=1 pytest tests/unit/mcp/ \
  tests/unit/test_logging_runtime.py \
  tests/unit/cli/test_terminal_snapshots.py --no-cov
→ all pass

devtools verify --quick
→ all checks passed (pre-push hook)
```

## Out of scope

`test_cli_tail_list_json_exposes_tail_provenance` is failing on a TOCTOU
warning from a parallel BlobStore fix (in `feature/fix/audit-final` /
d295503). Tracked there; not in this PR.

## Related

- #503 — baseline + syrupy refresh; this PR includes the syrupy bit
again so master test suite is green even without #503.
- #502 — topology projection cleanup; blocked on master CI being green.
- #489 — the merge that introduced the 14 failures (test code wasn't
updated alongside MCP authz/limits + clamp_limit + bulk_add_tags + the
show/export help text changes that landed across several merges).


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Enhanced CLI help text for export and show commands with clearer
descriptions of conversation ID format handling and default output
behavior.
* Reordered MCP tool schema parameters with added validation
constraints.

* **Chores**
  * Added `typing-extensions>=4.7` as a runtime dependency.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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