Skip to content

fix(distribution): remove devtools absence sentinels - #704

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/distribution-remove-negative-devtools-guards
May 2, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/distribution-remove-negative-devtools-guards

Conversation

@Sinity

@Sinity Sinity commented May 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Remove the extra negative devtools absence checks from the distribution verifier and related docs.

Problem

#593 already has a settled decision: devtools are source-checkout-only. The build metadata and package configuration encode the supported wheel surface. The verifier had grown beyond that into permanent anti-reintroduction sentinels that rejected a devtools package, console script, installed binary, or import. That kind of name-specific negative guard was not intended.

Solution

The distribution gate now proves only the supported runtime surface: wheel/sdist build, embedded build metadata, and installed smokes for polylogue, polylogued, polylogue-mcp, and python -m polylogue. The equivalent Nix smoke and command-catalog/coverage wording were simplified to match.

Verification

  • pytest -q tests/unit/devtools/test_verify_distribution_surface.py tests/unit/devtools/test_command_catalog.py → 7 passed
  • devtools verify-manifests → passed
  • devtools render-all --check → passed
  • devtools render-verification-catalog --check → passed
  • devtools proof-pack --path devtools/verify_distribution_surface.py --path tests/unit/devtools/test_verify_distribution_surface.py --path flake.nix --path docs/plans/distribution-coverage.yaml --path devtools/command_catalog.py --markdown --check → passed
  • devtools verify-distribution-surface --work-dir .local/distribution-surface-check → ok
  • devtools verify --quick → all checks passed

Ref #593

Summary by CodeRabbit

Release Notes

  • Bug Fixes

    • Simplified distribution surface verification to focus on essential runtime components and build metadata presence.
    • Removed redundant distribution artifact validation checks.
  • Documentation

    • Updated distribution coverage documentation with clarified phrasing.

The distribution verifier now proves the supported runtime wheel surface: build metadata, the polylogue/polylogued/polylogue-mcp entrypoints, and wheel/sdist install smokes. It no longer carries permanent negative checks for a devtools package, console script, import, or installed binary.

Ref #593
Copilot AI review requested due to automatic review settings May 2, 2026 14:56
@coderabbitai

coderabbitai Bot commented May 2, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 592d3534-18ed-4c72-81ce-bc439a648bcd

📥 Commits

Reviewing files that changed from the base of the PR and between 9c936f8 and 5f58453.

📒 Files selected for processing (5)
  • devtools/command_catalog.py
  • devtools/verify_distribution_surface.py
  • docs/plans/distribution-coverage.yaml
  • flake.nix
  • tests/unit/devtools/test_verify_distribution_surface.py

📝 Walkthrough

Walkthrough

The pull request removes enforcement that devtools artifacts must be absent from distributed wheels and runtime environments. Console-script verification, distribution surface checks, and smoke-test assertions related to devtools absence are eliminated across the codebase.

Changes

Devtools Distribution Availability

Layer / File(s) Summary
Core Verification Logic
devtools/verify_distribution_surface.py
Removed SOURCE_ONLY_SCRIPTS constant and updated _verify_wheel_surface() to only validate polylogue/_build_info.py and RUNTIME_SCRIPTS presence; removed checks for devtools/ package absence and source-only script exclusion. Removed smoke-test assertion that devtools is not importable after wheel install.
Command Interface
devtools/command_catalog.py
Updated verify-distribution-surface command's use_when text to remove the clause about ensuring source-checkout devtools are not shipped.
CI Smoke Check
flake.nix
Removed the ! command -v devtools >/dev/null check from the checks.default smoke-test script, retaining only runtime CLI help invocations.
Documentation & Planning
docs/plans/distribution-coverage.yaml
Reworded and reflowed distribution-coverage notes to remove clauses about devtools not being shipped in wheels; clarified that devtools is only exposed via devshell wrapper.
Test Suite
tests/unit/devtools/test_verify_distribution_surface.py
Added test_verify_wheel_surface_accepts_runtime_scripts to confirm wheels with runtime entry points are accepted. Removed previous tests verifying devtools absence (test_verify_wheel_surface_accepts_runtime_scripts_without_devtools, test_verify_wheel_surface_rejects_devtools_script, test_verify_wheel_surface_rejects_devtools_package, test_pyproject_keeps_devtools_source_only).

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

🐰 Devtools shall roam free, now shipped without restraint,
No checks to confine them, no verification complaint!
Runtime scripts still watched, but source tools unbound,
In wheels and in smokes, new freedom is found.
hops joyfully

✨ 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/fix/distribution-remove-negative-devtools-guards

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.

@Sinity
Sinity merged commit 5742bbc into master May 2, 2026
14 of 15 checks passed
@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Polylogue Proof Pack

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

Affected Domains

  • architecture_discipline — 1 claim(s), maturity growing
  • spec_completeness — 3 claim(s), maturity seed
Additional routed domains with zero affected claims
  • distribution — maturity seed

Focused Gates

  • devtools render-all --check — generated surface or renderer changed
  • devtools verify-manifests — assurance coverage manifest changed
  • devtools render-verification-catalog --check — coverage manifests feed proof subjects
  • devtools proof-pack --path docs/plans/distribution-coverage.yaml --markdown — coverage changes feed proof-pack gaps

Required PR Gates

  • devtools verify --quick — full PR gate remains explicit
  • devtools verify — full PR gate remains explicit

Optional Confidence Gates

  • 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

  • none for domains with affected claims
Additional gaps in zero-claim routed domains
  • distribution: dev_install: Not verified in CI; devshell is canonical environment [owner: distribution; next: devtools verify-distribution-surface], distribution: No scenario for install/package verification [owner: scenario-coverage; next: devtools scenario-projections], install_parity: Local gate smokes wheel and sdist-built wheel, but exact Nix/devshell parity is not yet compared in CI [owner: distribution; next: devtools verify-distribution-surface], macos: No macOS CI runner [owner: distribution; next: devtools verify-distribution-surface], sdist: Distribution gate exists locally but is not scheduled in CI [owner: distribution; next: devtools verify-distribution-surface], wheel: Distribution gate exists locally but is not scheduled in CI [owner: distribution; next: devtools verify-distribution-surface], windows: No Windows CI runner [owner: distribution; next: devtools verify-distribution-surface]

Oracle / Cost

  • oracle mix: {"construction_sanity": 12, "drift_check": 1}
  • cost tier: {"static": 13}
  • stable affected obligations: 13
  • agent judgment cells: 0

@Sinity
Sinity deleted the feature/fix/distribution-remove-negative-devtools-guards branch May 2, 2026 14:57

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 aligns the distribution verification gate with the settled packaging boundary from #593/#691 by removing name-specific “devtools absence” sentinels, focusing the gate on proving the supported runtime surface of shipped artifacts.

Changes:

  • Simplifies verify-distribution-surface to assert required runtime entrypoints and embedded build metadata, without rejecting devtools artifacts by name.
  • Removes corresponding unit tests that enforced “devtools must be absent” constraints.
  • Updates Nix smoke check and distribution coverage documentation/command catalog wording to match the simplified verification scope.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
devtools/verify_distribution_surface.py Removes wheel/installed checks that explicitly reject devtools package/scripts; keeps required runtime smoke + build metadata assertions.
tests/unit/devtools/test_verify_distribution_surface.py Drops tests and assertions that encoded devtools absence as a permanent sentinel.
flake.nix Removes Nix smoke assertion that devtools is not on PATH.
docs/plans/distribution-coverage.yaml Updates coverage notes to describe the runtime smoke scope without “devtools absence” language.
devtools/command_catalog.py Simplifies the command’s “use_when” description to match the updated distribution gate behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sinity added a commit that referenced this pull request May 7, 2026
Remove the extra negative devtools absence checks from the distribution verifier and related docs.

Problem: #593 already has a settled decision that devtools are source-checkout-only. The build metadata and package configuration encode the supported wheel surface. The verifier had grown beyond that into permanent anti-reintroduction sentinels that rejected a devtools package, console script, installed binary, or import.

Solution: the distribution gate now proves only the supported runtime surface: wheel/sdist build, embedded build metadata, and installed smokes for polylogue, polylogued, polylogue-mcp, and python -m polylogue. The equivalent Nix smoke and command-catalog/coverage wording were simplified to match.

Verification:
- pytest -q tests/unit/devtools/test_verify_distribution_surface.py tests/unit/devtools/test_command_catalog.py → 7 passed
- devtools verify-manifests → passed
- devtools render-all --check → passed
- devtools render-verification-catalog --check → passed
- devtools proof-pack --path devtools/verify_distribution_surface.py --path tests/unit/devtools/test_verify_distribution_surface.py --path flake.nix --path docs/plans/distribution-coverage.yaml --path devtools/command_catalog.py --markdown --check → passed
- devtools verify-distribution-surface --work-dir .local/distribution-surface-check → ok
- devtools verify --quick → all checks passed

Ref #593
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