Skip to content

feat: integrate archive contract patch wave - #2358

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/download-intake-wave
Jun 24, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/download-intake-wave

Conversation

@Sinity

@Sinity Sinity commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Summary

Integrates the latest downloaded patch wave across provider usage coverage, read-view HTTP capability metadata, root onboarding/status facets, demo/verifiability cleanup, and assertion review state. The branch also resolves the integration drift that appeared only after combining the patches: facade method classification, query-verb callback signatures, generated docs/schemas, and stale snapshot whitespace.

Problem

The downloaded patches were source-useful but not directly mergeable as a batch. They overlapped in status routing, generated snapshots, OpenAPI/docs output, and query verb tests. One patch also arrived with an exported /mnt/data/work/repo prefix, and another had stale generated AGENTS.md/TESTING.md context. Applying them independently would leave parallel truth in generated surfaces and failing tests.

Solution

Applied all five patch inputs into a clean worktree, kept the coherent source changes, re-rendered generated surfaces, and repaired the combined test drift. Provider usage reporting is now exposed through the archive facade and diagnostics, read-view capability metadata drives OpenAPI generation, assertion review state gets typed payload/storage/API/CLI coverage, onboarding/status facets and demo/verifiability docs are refreshed, and the generated CLI/OpenAPI/devtools/product/agents surfaces are synchronized.

Ref #2317. Ref #2316. Ref #2196. Ref #2177. Ref #1883.

Verification

  • devtools test tests/unit/storage/test_provider_usage_report.py tests/unit/archive/test_view_profiles.py tests/unit/devtools/test_render_openapi.py tests/unit/daemon/test_web_reader.py tests/unit/cli/test_query_verbs_runtime.py tests/unit/cli/test_assertion_candidates.py tests/unit/storage/test_archive_tiers_assertions.py tests/unit/api/test_facade_contracts.py tests/unit/cli/test_demo_command.py tests/unit/devtools/test_render_devtools_reference.py tests/unit/devtools/test_lab_scenario.py tests/unit/devtools/test_devtools_main.py tests/unit/cli/test_dashboard_command.py tests/unit/cli/test_diagnose_and_error_discipline.py tests/unit/cli/test_help_contract.py tests/unit/cli/test_tutorial.py initially selected 670 tests; after repairing the combined drift, the previously failing slices passed.
  • devtools test tests/unit/api/test_facade_contracts.py tests/unit/cli/test_query_verbs_runtime.py -> 278 passed.
  • devtools render all --check -> sync OK.
  • devtools verify --quick -> exit_code 0.
  • pre-push devtools verify --quick -> exit_code 0 for 84a8c048e.
  • git diff --check -> clean.

Problem: the latest cloud patch batch covered adjacent Polylogue contract surfaces, but the raw patches overlapped in status routing, generated snapshots, read/action callback signatures, and generated docs.\n\nWhat changed: integrate the downloaded source patches for provider usage coverage, read-view HTTP capability metadata, root onboarding/status facets, demo/verifiability cleanup, and assertion review state. Re-render generated CLI/OpenAPI/devtools/product/docs/agents surfaces and repair the combined test drift around facade method classification and query-verb direct callback signatures.\n\nVerification: devtools test tests/unit/storage/test_provider_usage_report.py tests/unit/archive/test_view_profiles.py tests/unit/devtools/test_render_openapi.py tests/unit/daemon/test_web_reader.py tests/unit/cli/test_query_verbs_runtime.py tests/unit/cli/test_assertion_candidates.py tests/unit/storage/test_archive_tiers_assertions.py tests/unit/api/test_facade_contracts.py tests/unit/cli/test_demo_command.py tests/unit/devtools/test_render_devtools_reference.py tests/unit/devtools/test_lab_scenario.py tests/unit/devtools/test_devtools_main.py tests/unit/cli/test_dashboard_command.py tests/unit/cli/test_diagnose_and_error_discipline.py tests/unit/cli/test_help_contract.py tests/unit/cli/test_tutorial.py -> 664 passed after targeted repairs; devtools test tests/unit/api/test_facade_contracts.py tests/unit/cli/test_query_verbs_runtime.py -> 278 passed; devtools render all --check -> sync OK; devtools verify --quick -> exit_code 0; git diff --check -> clean.\n\nRef #2317. Ref #2316. Ref #2196. Ref #2177. Ref #1883.
github-actions Bot pushed a commit that referenced this pull request Jun 24, 2026
@coderabbitai

coderabbitai Bot commented Jun 24, 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 25 minutes and 10 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.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

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: d328879f-1d55-4635-bfcc-dfe76aa204a8

📥 Commits

Reviewing files that changed from the base of the PR and between ef19c65 and 84a8c04.

📒 Files selected for processing (69)
  • AGENTS.md
  • TESTING.md
  • devtools/build_topology_projection.py
  • devtools/cli_boundary.py
  • devtools/click_dispatch.py
  • devtools/command_catalog.py
  • devtools/docs_surface.py
  • devtools/lab_scenario.py
  • devtools/release_readiness.py
  • devtools/render_devtools_reference.py
  • devtools/render_openapi.py
  • devtools/render_product_workflows.py
  • devtools/render_quality_reference.py
  • devtools/validation_lane_catalog_live.py
  • devtools/verify.py
  • docs/README.md
  • docs/architecture.md
  • docs/archive-backup.md
  • docs/cli-reference.md
  • docs/cost-model.md
  • docs/devtools.md
  • docs/generate.md
  • docs/internals.md
  • docs/openapi/search.yaml
  • docs/plans/docs-media-coverage.yaml
  • docs/plans/scenario-coverage.yaml
  • docs/product/workflows.md
  • docs/providers/README.md
  • docs/schema.md
  • docs/schemas/cli-output/query-unit-envelope.schema.json
  • docs/search.md
  • docs/test-quality-workflows.md
  • docs/visual-evidence.md
  • polylogue/api/archive.py
  • polylogue/archive/viewport/__init__.py
  • polylogue/archive/viewport/profiles.py
  • polylogue/cli/click_app.py
  • polylogue/cli/click_command_registration.py
  • polylogue/cli/command_inventory.py
  • polylogue/cli/commands/dashboard.py
  • polylogue/cli/commands/diagnostics.py
  • polylogue/cli/commands/status.py
  • polylogue/cli/commands/tutorial.py
  • polylogue/cli/query_verbs.py
  • polylogue/core/enums.py
  • polylogue/daemon/http.py
  • polylogue/storage/sqlite/archive_tiers/user_write.py
  • polylogue/storage/usage.py
  • polylogue/surfaces/payloads.py
  • tests/unit/api/test_facade_contracts.py
  • tests/unit/archive/test_view_profiles.py
  • tests/unit/cli/__snapshots__/test_help_snapshots.ambr
  • tests/unit/cli/__snapshots__/test_plain_cli_snapshots.ambr
  • tests/unit/cli/__snapshots__/test_terminal_snapshots.ambr
  • tests/unit/cli/test_assertion_candidates.py
  • tests/unit/cli/test_dashboard_command.py
  • tests/unit/cli/test_demo_command.py
  • tests/unit/cli/test_diagnose_and_error_discipline.py
  • tests/unit/cli/test_help_contract.py
  • tests/unit/cli/test_plain_cli_snapshots.py
  • tests/unit/cli/test_query_verbs_runtime.py
  • tests/unit/cli/test_tutorial.py
  • tests/unit/daemon/test_web_reader.py
  • tests/unit/devtools/test_devtools_main.py
  • tests/unit/devtools/test_lab_scenario.py
  • tests/unit/devtools/test_render_devtools_reference.py
  • tests/unit/devtools/test_render_openapi.py
  • tests/unit/storage/test_archive_tiers_assertions.py
  • tests/unit/storage/test_provider_usage_report.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/download-intake-wave

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.

@Sinity
Sinity merged commit dc47a63 into master Jun 24, 2026
14 of 15 checks passed
@Sinity
Sinity deleted the feature/fix/download-intake-wave branch June 24, 2026 09:55

@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: 84a8c048e0

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

FROM session_provider_usage_events AS e
JOIN sessions AS s ON s.session_id = e.session_id
{_where_origin(origin, table_alias="s")}
{"AND" if origin is not None else "WHERE"} e.provider_event_type = 'token_count'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include message_usage events in stale rollup checks

For Claude Code archives, provider usage evidence is stored as message_usage rows, but this query only derives expected rollups from token_count. When a Claude session's session_model_usage row is missing or stale, _stale_provider_rollup_stats() gets no expected row, so provider_usage_report can report exact_provider_telemetry with stale_rollup_session_count=0 even while provider request usage and model rollup usage disagree. Include message_usage last-token rows in this expected-rollup calculation so the audit surface flags stale Claude rollups.

Useful? React with 👍 / 👎.

@github-actions github-actions Bot mentioned this pull request Jul 5, 2026
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