Skip to content

ci: gate public-surface vocabulary audit in CI - #1854

Merged
Sinity merged 1 commit into
masterfrom
feature/ci/public-surface-audit-1850
Jun 13, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/ci/public-surface-audit-1850

Conversation

@Sinity

@Sinity Sinity commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the public-surface stale-vocabulary audit to the CI lint job so stale schema-v1 terminology cannot be reintroduced on a public surface and pass CI.

Problem

The audit (tools/cleanup/polylogue_public_surface_audit.sh) landed in #1852 and runs in devtools verify / the pre-push hook, but CI never invoked it. A PR reintroducing conversation/conversation_id, provider_meta, or the legacy /c/ reader route on the README, public docs, daemon web reader, API layer, or CLI would pass CI. #1850 requires the audit to run in fast CI.

Solution

One step added to the CI lint job (after the ruff checks): bash tools/cleanup/polylogue_public_surface_audit.sh. The audit is path-aware — it excludes provider-wire parsers (polylogue/sources/**), internal storage/core, tests/fixtures, and historical/tombstone docs (docs/{audits,retro,design,plans,providers}/**) — and exits non-zero naming file:line + the replacement term. ripgrep is preinstalled on GitHub ubuntu-latest.

Verification

  • devtools verify-ci-workflows → 16 workflow files checked, no errors
  • bash tools/cleanup/polylogue_public_surface_audit.sh → clean (no stale schema-v1 vocabulary on public surfaces)

Closes #1850

Problem: the public-surface stale-vocabulary audit
(tools/cleanup/polylogue_public_surface_audit.sh) landed in #1852 and runs in
`devtools verify`/pre-push, but CI never invoked it — so a PR that reintroduces
stale schema-v1 vocabulary (conversation/conversation_id, provider_meta, the
/c/ reader route) on a public surface would pass CI. #1850 requires the audit to
run in fast CI.

What changed: add the audit as a step in the CI `lint` job, after the ruff
checks. The audit is path-aware (excludes provider-wire parsers, internal
storage/core, tests, and historical/tombstone docs) and exits non-zero naming
file:line + replacement. It is clean on current master.

Verification:
- devtools verify-ci-workflows => 16 workflow files checked, no errors
- bash tools/cleanup/polylogue_public_surface_audit.sh => clean

Closes #1850

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Sinity
Sinity enabled auto-merge (squash) June 13, 2026 11:30
@Sinity
Sinity merged commit 6ccb610 into master Jun 13, 2026
@Sinity
Sinity deleted the feature/ci/public-surface-audit-1850 branch June 13, 2026 11:30
@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 15 minutes and 23 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 @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 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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e8b53efd-356f-44da-8e2e-1089824224d2

📥 Commits

Reviewing files that changed from the base of the PR and between 78954aa and fbf6fb7.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/ci/public-surface-audit-1850

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fbf6fb72a2

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

Comment thread .github/workflows/ci.yml Resolved
Sinity added a commit that referenced this pull request Jun 13, 2026
## Summary

Fixes the red `lint` job on master: install `ripgrep` in the CI lint job
before the public-surface audit step added in #1854.

## Problem

#1854 added `bash tools/cleanup/polylogue_public_surface_audit.sh` to
the CI `lint` job. The audit shells out to `rg` (ripgrep), which is not
on the `uv`/`ubuntu-latest` lint runner's PATH, so the step exited 2
(`ripgrep is required`) and master's lint job went red. The audit was
validated locally inside the nix devshell — where `rg` is always present
— which masked the CI-environment gap.

## Solution

Install ripgrep via apt in the lint job, immediately before the audit
step.

## Verification

- `devtools verify-ci-workflows` → `16 workflow files checked, no
errors`

Ref #1850

Co-authored-by: Claude Opus 4.8 <[email protected]>
Sinity added a commit that referenced this pull request Jun 13, 2026
#1867)

## Summary
Rename the `read --view conversation` token to `transcript` to remove
stale "conversation" vocabulary that #1863 reintroduced on public CLI
surfaces, restoring the session/origin vocabulary policy from the
#1810/#1852 sweep.

## Problem
#1863 shipped `read --view conversation`. The public-surface audit
(`tools/cleanup/polylogue_public_surface_audit.sh`, #1852) flags
`conversation` as stale schema-v1 vocabulary on both
`polylogue/cli/query_verbs.py` and the generated
`docs/cli-reference.md`. The audit **false-passed in CI** — the
Ubuntu-image ripgrep silently mishandles the audit's `rg` invocation
(the #1854/#1855 shelled-binary-in-CI fragility) — so the violation
landed on master uncaught. It deterministically fails the local pre-push
gate (nix ripgrep), blocking every subsequent push.

## Solution
- Rename the read view token `conversation` → `transcript` in
`query_verbs.py` (`_READ_VIEWS`, help text, comment). The view has no
distinct dispatch branch — it shares the summary fallthrough render path
— so this is a pure token rename, no behavior change.
- Regenerate `docs/cli-reference.md` and the `help-read.txt` showcase
baseline.

## Verification
- `tools/cleanup/polylogue_public_surface_audit.sh` → exit 0 (`clean (no
stale schema-v1 vocabulary on public surfaces)`)
- `mypy --strict polylogue/cli/query_verbs.py` → clean
- `ruff check` → clean
- `pytest tests/unit/cli -k "help or read or view"` → 433 passed, 4
snapshots passed

## Follow-up
The CI audit's ripgrep false-pass is a real gap (CI did not catch this
violation). The lint job's `rg` invocation hardening against the runner
image is tracked separately (#1855 class).
@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 50.F088 / P1: stale at the checked revision: The CI lint route no longer invokes the shell public-surface audit that required rg. Its replacement gates are the repository render, schema and layering commands followed by Ruff (.github/workflows/ci.yml:42-50), so the reported missing-ripgrep exit is not on that route.

Only the rows listed above are dispositioned. Held findings remain open.

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.

Polylogue: stale vocabulary and command-surface static audit

1 participant