Repository navigation
refactor(verification): use insight vocabulary for read models - #687
Conversation
Problem: developer-facing validation, topology, scenario, and readiness surfaces still called derived archive read models products after the public CLI and maintenance targets moved to insights. That kept the product/distribution term alive in places that are specifically about archive insight models.\n\nWhat changed: renamed validation-lane helper/test wording, scenario metadata helper names, derived-status entrypoints, topology owner labels, scenario/assurance manifest notes, devtools policy text, and session-insight storage/status docstrings to use insight vocabulary. Serialized proof-catalog names such as product.surface are intentionally left for a dedicated compatibility slice.\n\nVerification: ruff format on touched Python files; ruff check on touched Python files; mypy polylogue/; pytest -q tests/unit/devtools/test_validation_lanes.py tests/unit/devtools/test_quality_registry.py tests/unit/storage/test_derived_status.py tests/unit/storage/test_repair.py; devtools render-all --check; devtools verify --quick.\n\nRef #635
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (23)
📝 WalkthroughWalkthroughThe pull request systematically renames ownership and domain references from "product-domain" to "insight-domain" across topology definitions, configuration, storage modules, scenarios execution, and supporting documentation. Function names, exports, constants, and docstrings are updated to use "insight" terminology consistently; operational logic and behavior remain unchanged. ChangesProduct-to-Insight Domain Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Polylogue Proof PackRefs: Affected Domains
Required Gates
Known Gaps
Oracle / Cost
|
There was a problem hiding this comment.
Pull request overview
This PR completes a vocabulary cleanup for archive read-model surfaces by replacing remaining developer-facing product terminology with insight terminology. It aligns verification, scenario metadata, derived-status helpers, and supporting docs with the repository’s newer archive/insight naming model discussed in #635.
Changes:
- Renames internal helper/test names and derived-status entrypoints from
productwording toinsightwording. - Updates verification-lane, topology, and scenario metadata labels so developer tooling uses consistent insight vocabulary.
- Refreshes related storage/docstring/documentation text while intentionally leaving compatibility-sensitive serialized names unchanged.
Reviewed changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/storage/test_derived_status.py | Updates monkeypatch target to renamed derived-status helper. |
| tests/unit/devtools/test_validation_lanes.py | Renames test cases to match insight terminology. |
| tests/unit/devtools/test_quality_registry.py | Renames local test variables for insight wording. |
| polylogue/storage/repair.py | Updates archive-debt readiness detail text. |
| polylogue/storage/insights/timeline/records.py | Renames module docstring to insight terminology. |
| polylogue/storage/insights/session/storage.py | Renames module docstring to insight terminology. |
| polylogue/storage/insights/session/status.py | Renames status/readiness docstrings to insight terminology. |
| polylogue/storage/insights/session/records.py | Renames module docstring to insight terminology. |
| polylogue/storage/insights/aggregate/records.py | Renames module docstring to insight terminology. |
| polylogue/storage/derived/insights.py | Renames combined archive status builder export. |
| polylogue/storage/derived/derived_status.py | Switches derived-status collector to renamed insight builder. |
| polylogue/scenarios/execution.py | Renames insight scenario metadata helper and locals. |
| docs/verification-lab.md | Updates verification-lab wording from product to archive/insight. |
| docs/test-quality-workflows.md | Updates helper consumer descriptions to insight wording. |
| docs/plans/scenario-coverage.yaml | Updates scenario-family descriptions to insight wording. |
| docs/plans/layering.yaml | Updates layering-plan terminology. |
| docs/plans/file-size-budgets.yaml | Updates rationale text to insight wording. |
| docs/plans/assurance-domains.yaml | Updates assurance notes to insight wording. |
| docs/devtools.md | Updates devtools command-placement guidance to insight wording. |
| devtools/validation_lane_catalog_live.py | Renames internal live-lane helper to insight wording. |
| devtools/render_topology_status.py | Renames topology owner title to insight wording. |
| devtools/render_quality_reference.py | Updates rendered quality-reference text to insight wording. |
| devtools/build_topology_projection.py | Renames topology owner key for insights modules. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
## Summary Renames the remaining developer-facing validation, topology, scenario, and derived-status wording for archive read models from product vocabulary to insight vocabulary. ## Problem The public CLI and maintenance target cleanup moved derived archive read models toward `insights`, but repo verification surfaces still described those same read models as products. That kept a product/distribution term alive in validation lane helpers, topology owner labels, scenario coverage notes, derived-status entrypoints, and storage docstrings. ## Solution - Renamed validation-lane helper/test names from product wording to insight wording. - Renamed the scenario metadata helper for `polylogue insights` dispatch. - Renamed `build_archive_product_statuses()` to `build_archive_insight_statuses()`. - Updated topology owner labels, quality-reference text, scenario/assurance/layering manifest notes, verification-lab/devtools policy text, and session-insight storage/status docstrings. - Left serialized proof-catalog names such as `product.surface` unchanged for a dedicated compatibility slice. ## Verification - `ruff format devtools/render_quality_reference.py devtools/render_topology_status.py devtools/validation_lane_catalog_live.py devtools/build_topology_projection.py polylogue/scenarios/execution.py polylogue/storage/derived/derived_status.py polylogue/storage/derived/insights.py polylogue/storage/insights/session/storage.py polylogue/storage/insights/session/status.py tests/unit/devtools/test_quality_registry.py tests/unit/devtools/test_validation_lanes.py tests/unit/storage/test_derived_status.py` - `ruff check devtools/render_quality_reference.py devtools/render_topology_status.py devtools/validation_lane_catalog_live.py devtools/build_topology_projection.py polylogue/scenarios/execution.py polylogue/storage/derived/derived_status.py polylogue/storage/derived/insights.py polylogue/storage/insights/session/storage.py polylogue/storage/insights/session/status.py tests/unit/devtools/test_quality_registry.py tests/unit/devtools/test_validation_lanes.py tests/unit/storage/test_derived_status.py` - `mypy polylogue/` - `pytest -q tests/unit/devtools/test_validation_lanes.py tests/unit/devtools/test_quality_registry.py tests/unit/storage/test_derived_status.py tests/unit/storage/test_repair.py` - `devtools render-all --check` - `devtools verify --quick` Ref #635 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Documentation** * Clarified ownership and domain classifications for insight-related modules and workflows * Updated verification lab documentation to better distinguish devtools verification artifacts from archive-facing checks * Refined scenario coverage documentation for insight command surfaces * **Chores** * Updated internal configuration and mappings to consistently classify insight-related targets and lanes * Adjusted storage model naming conventions and status messages for clarity * Updated test infrastructure references to reflect current primary consumers <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Renames the remaining developer-facing validation, topology, scenario, and derived-status wording for archive read models from product vocabulary to insight vocabulary.
Problem
The public CLI and maintenance target cleanup moved derived archive read models toward
insights, but repo verification surfaces still described those same read models as products. That kept a product/distribution term alive in validation lane helpers, topology owner labels, scenario coverage notes, derived-status entrypoints, and storage docstrings.Solution
polylogue insightsdispatch.build_archive_product_statuses()tobuild_archive_insight_statuses().product.surfaceunchanged for a dedicated compatibility slice.Verification
ruff format devtools/render_quality_reference.py devtools/render_topology_status.py devtools/validation_lane_catalog_live.py devtools/build_topology_projection.py polylogue/scenarios/execution.py polylogue/storage/derived/derived_status.py polylogue/storage/derived/insights.py polylogue/storage/insights/session/storage.py polylogue/storage/insights/session/status.py tests/unit/devtools/test_quality_registry.py tests/unit/devtools/test_validation_lanes.py tests/unit/storage/test_derived_status.pyruff check devtools/render_quality_reference.py devtools/render_topology_status.py devtools/validation_lane_catalog_live.py devtools/build_topology_projection.py polylogue/scenarios/execution.py polylogue/storage/derived/derived_status.py polylogue/storage/derived/insights.py polylogue/storage/insights/session/storage.py polylogue/storage/insights/session/status.py tests/unit/devtools/test_quality_registry.py tests/unit/devtools/test_validation_lanes.py tests/unit/storage/test_derived_status.pymypy polylogue/pytest -q tests/unit/devtools/test_validation_lanes.py tests/unit/devtools/test_quality_registry.py tests/unit/storage/test_derived_status.py tests/unit/storage/test_repair.pydevtools render-all --checkdevtools verify --quickRef #635
Summary by CodeRabbit
Release Notes
Documentation
Chores