Skip to content

refactor(verification): use insight vocabulary for read models - #687

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/insight-verification-vocabulary
May 2, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/insight-verification-vocabulary

Conversation

@Sinity

@Sinity Sinity commented May 2, 2026 •

Copy link
Copy Markdown
Owner

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

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

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
Copilot AI review requested due to automatic review settings May 2, 2026 04:09
@coderabbitai

coderabbitai Bot commented May 2, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 58c03ad1-0dea-45ef-a02d-64897540b53c

📥 Commits

Reviewing files that changed from the base of the PR and between c191053 and 82bfa89.

📒 Files selected for processing (23)
  • devtools/build_topology_projection.py
  • devtools/render_quality_reference.py
  • devtools/render_topology_status.py
  • devtools/validation_lane_catalog_live.py
  • docs/devtools.md
  • docs/plans/assurance-domains.yaml
  • docs/plans/file-size-budgets.yaml
  • docs/plans/layering.yaml
  • docs/plans/scenario-coverage.yaml
  • docs/test-quality-workflows.md
  • docs/verification-lab.md
  • polylogue/scenarios/execution.py
  • polylogue/storage/derived/derived_status.py
  • polylogue/storage/derived/insights.py
  • polylogue/storage/insights/aggregate/records.py
  • polylogue/storage/insights/session/records.py
  • polylogue/storage/insights/session/status.py
  • polylogue/storage/insights/session/storage.py
  • polylogue/storage/insights/timeline/records.py
  • polylogue/storage/repair.py
  • tests/unit/devtools/test_quality_registry.py
  • tests/unit/devtools/test_validation_lanes.py
  • tests/unit/storage/test_derived_status.py

📝 Walkthrough

Walkthrough

The 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.

Changes

Product-to-Insight Domain Refactoring

Layer / File(s) Summary
Topology & Ownership Definitions
devtools/build_topology_projection.py, devtools/render_topology_status.py
polylogue/insights/ prefix now classifies under insight-domain instead of product-domain; OWNER_TITLES maps insight-domain to "derived insight modules".
Core Storage & Derived Statuses
polylogue/storage/derived/insights.py, polylogue/storage/derived/derived_status.py
build_archive_product_statuses() renamed to build_archive_insight_statuses() with updated exports; derived_status.py calls the new function name.
Storage Module Documentation
polylogue/storage/insights/*/
Module docstrings in aggregate/records.py, session/records.py, session/status.py, session/storage.py, timeline/records.py updated from "product" to "insight" terminology.
Scenarios Execution
polylogue/scenarios/execution.py, polylogue/storage/repair.py
_metadata_for_polylogue_products() renamed to _metadata_for_polylogue_insights(); session maintenance debt message updated to "Session insight read models ready".
Lane Catalogs & Validation
devtools/validation_lane_catalog_live.py
_live_product_lanes() replaced with _live_insight_lanes() in LIVE_LANES catalog; new helper constructs insight lanes from build_live_insight_surface_lanes().
Quality & Testing Infrastructure
devtools/render_quality_reference.py, tests/unit/devtools/*, tests/unit/storage/*
Test table entries, local variable names, and monkeypatch targets updated for "insight" consumers; command-entrypoint and dry-run tests updated to assert insight-domain lanes and semantic-insight toolchains.
Documentation
docs/devtools.md, docs/plans/assurance-domains.yaml, docs/plans/file-size-budgets.yaml, docs/plans/layering.yaml, docs/plans/scenario-coverage.yaml, docs/test-quality-workflows.md, docs/verification-lab.md
Command ownership policy, scenario surface enumeration, exception reasoning, layering comments, and test-infrastructure contracts updated to reference "insight" instead of "product" where applicable.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related issues

Possibly related PRs

Suggested labels

type:refactor, area:devtools, area:storage

Poem

🐰 From product to insight, a naming quest so bright,
Domain by domain, we set things right,
Docstrings and functions hop into place,
Topology and tests keep the steady pace!
A whisker of care for every small change,
Insight domain reigns across the whole range. 🌿

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately summarizes the main change: renaming vocabulary from product to insight across verification and read-model contexts.
Description check ✅ Passed The PR description is comprehensive and follows the required template, covering Summary, Problem, Solution, Verification, and Risks/Follow-ups sections with concrete details.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/insight-verification-vocabulary

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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Polylogue Proof Pack

Refs: origin/master..HEAD
Changed paths: 23

Affected Domains

  • architecture_discipline — 4 claim(s), maturity growing
  • distribution — 0 claim(s), maturity seed
  • docs_media — 0 claim(s), maturity seed
  • migration_safety — 0 claim(s), maturity nascent
  • performance — 0 claim(s), maturity nascent
  • scenario_coverage — 0 claim(s), maturity nascent
  • security_privacy — 0 claim(s), maturity nascent
  • spec_completeness — 3 claim(s), maturity seed
  • storage_correctness — 0 claim(s), maturity established
  • unclassified — 1 claim(s), maturity seed

Required Gates

  • devtools verify-manifests — structural manifest changed
  • devtools affected-obligations --path devtools/build_topology_projection.py — refresh structural obligation routing
  • devtools verify-topology — topology projection changed
  • devtools render-all --check — generated surface or renderer changed
  • devtools render-verification-catalog --check — coverage manifests feed proof subjects
  • devtools proof-pack --path docs/plans/assurance-domains.yaml --markdown — coverage changes feed proof-pack gaps
  • devtools affected-obligations --path docs/plans/file-size-budgets.yaml — refresh structural obligation routing
  • devtools verify-file-budgets — file budget rules changed
  • devtools affected-obligations --path docs/plans/layering.yaml — refresh structural obligation routing
  • devtools verify-layering — layering rules changed
  • devtools proof-pack --path docs/plans/scenario-coverage.yaml --markdown — coverage changes feed proof-pack gaps
  • devtools verify --quick — full PR gate remains explicit
  • devtools verify — full PR gate remains explicit
  • devtools build-package — deployment readiness gate; run when packaging or release confidence matters
  • nix flake check — deployment readiness gate; run when packaging or release confidence matters

Known Gaps

  • distribution: dev_install: Not verified in CI; devshell is canonical environment [owner: distribution; next: Add package/build or cross-artifact CI gate], distribution: No scenario for install/package verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], install_parity: No cross-artifact equivalence verification (wheel vs sdist vs Nix) [owner: distribution; next: Add package/build or cross-artifact CI gate], macos: No macOS CI runner [owner: distribution; next: Add package/build or cross-artifact CI gate], sdist: Not built or tested in CI [owner: distribution; next: Add package/build or cross-artifact CI gate], wheel: Not built or tested in CI [owner: distribution; next: Add package/build or cross-artifact CI gate], windows: No Windows CI runner [owner: distribution; next: Add package/build or cross-artifact CI gate]
  • docs_media: docs_media: No scenario for documentation freshness verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], docs_media: README examples and media are not yet generated from executable scenario projections. [owner: docs-media; next: Add executable scenario projection or media integrity gate], docs_media: Screenshots and VHS media have no committed nonblank/readability verification. [owner: docs-media; next: Add executable scenario projection or media integrity gate]
  • migration_safety: migration_safety: No scenario for migration safety verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject]
  • performance: performance: No scenario family exercising memory or throughput budgets [owner: scenario-coverage; next: Add scenario family or generated projection for this subject]
  • security_privacy: dependency_audit: No dependency vulnerability scanning in CI [owner: security-privacy; next: Add dedicated security/privacy gate for this area], file_permissions: Crawl-source file permissions not verified [owner: security-privacy; next: Add dedicated security/privacy gate for this area], secrets_detection: No automated secrets scanning in CI [owner: security-privacy; next: Add dedicated security/privacy gate for this area], security_privacy: Security verification uses unit tests, not scenario specs [owner: scenario-coverage; next: Add scenario family or generated projection for this subject], xss_prevention: No dedicated XSS test file; relies on snapshot rendering [owner: security-privacy; next: Add dedicated security/privacy gate for this area]
  • storage_correctness: storage_correctness: No dedicated scenario family for storage-layer verification [owner: scenario-coverage; next: Add scenario family or generated projection for this subject]

Oracle / Cost

  • oracle mix: {"construction_sanity": 38, "drift_check": 4}
  • cost tier: {"static": 42}
  • stale evidence: 42
  • manual review cells: 0

Copilot AI 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.

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 product wording to insight wording.
  • 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.

@Sinity
Sinity merged commit c2fb3ee into master May 2, 2026
19 checks passed
@Sinity
Sinity deleted the feature/refactor/insight-verification-vocabulary branch May 2, 2026 04:24
Sinity added a commit that referenced this pull request May 7, 2026
## 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 -->
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.

2 participants