You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(distribution): gate installed artifacts and build metadata #593
The product/control-plane boundary is not open: devtools is source-checkout-only. User wheels ship the runtime package and runtime entrypoints:
polylogue
polylogued
polylogue-mcp
devtools remains available from the source checkout/devshell wrapper.
Implemented State
pyproject.toml exposes only runtime console scripts.
[tool.hatch.build.targets.wheel] includes only the polylogue package.
devtools verify-distribution-surface builds wheel and sdist artifacts, installs them in fresh environments, rebuilds a wheel from unpacked sdist outside .git, and smokes installed runtime entrypoints.
Build metadata is verified through packaged polylogue/_build_info.py in the sdist rebuild path.
Remaining Gaps Tracked Elsewhere
The distribution coverage manifest still records broader non-blocking coverage gaps such as CI scheduling for the distribution gate, exact Nix/devshell parity comparison, and non-Linux runners. Those are coverage backlog items, not unresolved product-boundary decisions.
Additional concrete acceptance points from the 2026-05-01 audit:
pyproject.toml:101-112 exposes both polylogue and devtools console scripts, and pyproject.toml:126-129 includes both packages in the wheel. Decide whether devtools is intentionally part of the installed product/operator surface or source-checkout-only control plane. Either decision needs distribution tests.
hatch_build.py:45-58 requires a .git checkout or an embedded polylogue/_build_info.py. The distribution gate should build a wheel from an unpacked sdist with no .git and verify polylogue --version still has the expected build metadata.
These do not need separate issues if this distribution-surface gate owns them.
changed the title [-]fix(distribution): gate wheel and sdist install parity[/-][+]fix(distribution): gate installed artifacts and build metadata[/+]on May 1, 2026
Distribution-gate nuance: decide the product/control-plane boundary first, then make the packaging tests enforce that decision.
Two valid outcomes are possible:
user distribution ships only polylogue; devtools remains source-checkout/devshell control plane, and wheel/sdist smoke tests assert devtools is absent;
user distribution intentionally ships devtools; then it becomes an installed operator surface with docs, console-script smoke tests, and a supported dependency story.
Either way, the gate should build from source checkout, wheel, and unpacked sdist without .git, then compare polylogue --version, --help, and a tier-0 query/smoke. Build metadata should be proven from the packaged _build_info.py path, not by accidentally seeing the repository checkout.
Implementation anchors and acceptance additions from the 2026-05-01 follow-up audit.
Code anchors:
pyproject.toml:110-115: project scripts expose both polylogue and devtools.
pyproject.toml:126-129: wheel includes both packages.
hatch_build.py:45-57: build metadata requires .git or existing polylogue/_build_info.py; otherwise raises.
Acceptance additions:
Build sdist, unpack it outside .git, build wheel from unpacked sdist, and assert polylogue --version reports expected build metadata.
Decide whether devtools is intentionally shipped. If yes: installed wheel smoke includes devtools --list-commands --json. If no: remove script/package from wheel and add a negative distribution test.
Installed artifact smoke should cover both console scripts and python -m polylogue behavior where applicable.
Compare source checkout, wheel, sdist-built wheel, and Nix/devshell for the tier-0 smoke surface.
Adjacent candidate: browser extension distribution is outside #593 today. If the extension is a shipped product surface, open or link fix(distribution): gate browser-extension packaging/install smoke; otherwise add a #593 acceptance item saying the extension is source-checkout-only for now.
Related leaf issue for extension distribution/testing: #649. If the browser extension is a shipped artifact, #593 should eventually include or link its package/install smoke; if it is source-checkout-only for now, record that explicitly in #593 acceptance.
Integrated executable-boundary direction from the 2026-05-01 UX feedback pass.
Distribution acceptance should account for the intended executable split:
polylogue query-first archive CLI
polylogued long-running daemon for live ingestion, browser receiver, local API/web
polylogue-mcp MCP stdio bridge, preferred over `polylogue mcp`
devtools source-checkout repo control plane unless explicitly blessed for wheel shipping
Packaging tests should verify whichever of these executables are shipped. If polylogue-mcp is introduced, MCP client configuration should use it directly and it should support --role read|write|admin without requiring the full daemon to be launched by the MCP client.
Distribution update from #679: polylogue-mcp = polylogue.mcp.cli:main is now declared as a console script alongside polylogue and devtools. This handles the MCP executable split requested in the packaging/distribution direction; broader packaging policy around whether devtools should ship remains open.
polylogued for long-running local services, currently polylogued watch
polylogue-mcp for the MCP stdio bridge
The PR includes a package build check and verifies .local/result/bin/polylogued --help plus .local/result/bin/polylogued watch --help, which caught and closed the packaging inclusion risk for the new daemon package.
Remaining distribution-boundary work here: decide whether devtools remains shipped in the wheel or becomes source-checkout-only, and later ensure browser-capture service movement is reflected in installed entrypoints if it joins polylogued.
Recent PRs #680 and #681 landed the executable split and package-build smoke checks.
Remaining work
The open decision from the comment thread: should devtools ship in the installed wheel? The 2026-05-01 bundle says "source-checkout-only," but this hasn't been codified in pyproject.toml yet.
If the decision is confirmed:
Remove devtools from pyproject.toml[tool.hatch.build.targets.wheel] packages
Remove devtools console_scripts entry (or gate behind an [operator] extra)
Add a distribution smoke test that asserts devtools is NOT importable from an installed wheel
Correction to the earlier stale wording: the devtools packaging decision is not open.
The accepted decision is source-checkout-only, and #691 codified it:
pyproject.toml runtime scripts are polylogue, polylogued, and polylogue-mcp only.
Wheel packaging includes packages = [\"polylogue\"] only.
devtools verify-distribution-surface rejects installed artifacts that include devtools/, expose a devtools console script, or make devtools importable after wheel install.
The source-checkout/devshell still exposes devtools through the wrapper in flake.nix.
The remaining distribution coverage gaps are CI/parity/platform scheduling items, not a product/control-plane boundary decision.
Follow-up correction: the previous correction still over-described the implementation as a negative anti-regression guard.
The intended state is simpler:
pyproject.toml declares only runtime scripts and packages only polylogue.
devtools is available from source checkout/devshell, not a runtime wheel surface.
The distribution smoke should prove shipped runtime entrypoints and build metadata work. It should not carry permanent sentinel checks whose purpose is to fail if a devtools package/script/import appears later.
A cleanup PR is removing those negative verifier checks and keeping the distribution gate focused on runtime artifact behavior.
Distribution-surface cleanup update: the branch now removes the extra anti-regression sentinels around devtools. The verifier still proves the supported runtime distribution surface (build metadata plus polylogue/polylogued/polylogue-mcp wheel/sdist install smokes), but no longer rejects devtools by package name, console-script name, installed binary, or importability. I also removed the equivalent Nix smoke and command-catalog/coverage-manifest wording so the durable record no longer describes that negative guard as intended verification.
Activity
Sinity commentedon May 1, 2026
Additional concrete acceptance points from the 2026-05-01 audit:
pyproject.toml:101-112exposes bothpolylogueanddevtoolsconsole scripts, andpyproject.toml:126-129includes both packages in the wheel. Decide whetherdevtoolsis intentionally part of the installed product/operator surface or source-checkout-only control plane. Either decision needs distribution tests.hatch_build.py:45-58requires a.gitcheckout or an embeddedpolylogue/_build_info.py. The distribution gate should build a wheel from an unpacked sdist with no.gitand verifypolylogue --versionstill has the expected build metadata.These do not need separate issues if this distribution-surface gate owns them.
[-]fix(distribution): gate wheel and sdist install parity[/-][+]fix(distribution): gate installed artifacts and build metadata[/+]Sinity commentedon May 1, 2026
Distribution-gate nuance: decide the product/control-plane boundary first, then make the packaging tests enforce that decision.
Two valid outcomes are possible:
polylogue;devtoolsremains source-checkout/devshell control plane, and wheel/sdist smoke tests assertdevtoolsis absent;devtools; then it becomes an installed operator surface with docs, console-script smoke tests, and a supported dependency story.Either way, the gate should build from source checkout, wheel, and unpacked sdist without
.git, then comparepolylogue --version,--help, and a tier-0 query/smoke. Build metadata should be proven from the packaged_build_info.pypath, not by accidentally seeing the repository checkout.Sinity commentedon May 1, 2026
Implementation anchors and acceptance additions from the 2026-05-01 follow-up audit.
Code anchors:
pyproject.toml:110-115: project scripts expose bothpolylogueanddevtools.pyproject.toml:126-129: wheel includes both packages.hatch_build.py:45-57: build metadata requires.gitor existingpolylogue/_build_info.py; otherwise raises.Acceptance additions:
.git, build wheel from unpacked sdist, and assertpolylogue --versionreports expected build metadata.devtoolsis intentionally shipped. If yes: installed wheel smoke includesdevtools --list-commands --json. If no: remove script/package from wheel and add a negative distribution test.python -m polyloguebehavior where applicable.Adjacent candidate: browser extension distribution is outside #593 today. If the extension is a shipped product surface, open or link
fix(distribution): gate browser-extension packaging/install smoke; otherwise add a #593 acceptance item saying the extension is source-checkout-only for now.Sinity commentedon May 1, 2026
Related leaf issue for extension distribution/testing: #649. If the browser extension is a shipped artifact, #593 should eventually include or link its package/install smoke; if it is source-checkout-only for now, record that explicitly in #593 acceptance.
Sinity commentedon May 1, 2026
Distribution decision from 2026-05-01 bundle
Devtools should be source-checkout-only.
Acceptance refinements:
devtoolsunless it is placed behind an explicit extra/operator install.polylogue, not rely on source-checkoutdevtools.polylogue --version,polylogue --help, and a tier-0 user command should be smoked from wheel/sdist/Nix contexts.Ref #635
Sinity commentedon May 1, 2026
Integrated executable-boundary direction from the 2026-05-01 UX feedback pass.
Distribution acceptance should account for the intended executable split:
Packaging tests should verify whichever of these executables are shipped. If
polylogue-mcpis introduced, MCP client configuration should use it directly and it should support--role read|write|adminwithout requiring the full daemon to be launched by the MCP client.refactor(mcp): split server entrypoint from CLI (#679)
Sinity commentedon May 1, 2026
Distribution update from #679:
polylogue-mcp = polylogue.mcp.cli:mainis now declared as a console script alongsidepolylogueanddevtools. This handles the MCP executable split requested in the packaging/distribution direction; broader packaging policy around whetherdevtoolsshould ship remains open.Sinity commentedon May 2, 2026
Implementation update from PR #680:
Packaging now declares a third console script:
polyloguefor the query-first archive CLIpolyloguedfor long-running local services, currentlypolylogued watchpolylogue-mcpfor the MCP stdio bridgeThe PR includes a package build check and verifies
.local/result/bin/polylogued --helpplus.local/result/bin/polylogued watch --help, which caught and closed the packaging inclusion risk for the new daemon package.Remaining distribution-boundary work here: decide whether
devtoolsremains shipped in the wheel or becomes source-checkout-only, and later ensure browser-capture service movement is reflected in installed entrypoints if it joinspolylogued.4 remaining items
Sinity commentedon May 2, 2026
Current distribution state (2026-05-02)
Three console scripts are now declared and verified:
polylogue— query-first archive CLIpolylogued— daemon (watch, browser-capture serve/status)polylogue-mcp— MCP stdio bridge (refactor(mcp): split server entrypoint from CLI #679)Recent PRs #680 and #681 landed the executable split and package-build smoke checks.
Remaining work
The open decision from the comment thread: should
devtoolsship in the installed wheel? The 2026-05-01 bundle says "source-checkout-only," but this hasn't been codified inpyproject.tomlyet.If the decision is confirmed:
devtoolsfrompyproject.toml[tool.hatch.build.targets.wheel]packagesdevtoolsconsole_scripts entry (or gate behind an[operator]extra)devtoolsis NOT importable from an installed wheel.git, build wheel from unpacked sdist, verifypolylogue --versionreports expected metadatahatch_build.py:45-57already handles the.git-vs-_build_info.pyfallback — the sdist test will exercise that path.Sinity commentedon May 2, 2026
Correction to the earlier stale wording: the devtools packaging decision is not open.
The accepted decision is source-checkout-only, and #691 codified it:
pyproject.tomlruntime scripts arepolylogue,polylogued, andpolylogue-mcponly.packages = [\"polylogue\"]only.devtools verify-distribution-surfacerejects installed artifacts that includedevtools/, expose adevtoolsconsole script, or makedevtoolsimportable after wheel install.devtoolsthrough the wrapper inflake.nix.The remaining distribution coverage gaps are CI/parity/platform scheduling items, not a product/control-plane boundary decision.
Sinity commentedon May 2, 2026
Follow-up correction: the previous correction still over-described the implementation as a negative anti-regression guard.
The intended state is simpler:
pyproject.tomldeclares only runtime scripts and packages onlypolylogue.devtoolsis available from source checkout/devshell, not a runtime wheel surface.devtoolspackage/script/import appears later.A cleanup PR is removing those negative verifier checks and keeping the distribution gate focused on runtime artifact behavior.
Sinity commentedon May 2, 2026
Distribution-surface cleanup update: the branch now removes the extra anti-regression sentinels around devtools. The verifier still proves the supported runtime distribution surface (build metadata plus polylogue/polylogued/polylogue-mcp wheel/sdist install smokes), but no longer rejects devtools by package name, console-script name, installed binary, or importability. I also removed the equivalent Nix smoke and command-catalog/coverage-manifest wording so the durable record no longer describes that negative guard as intended verification.
fix(distribution): remove devtools absence sentinels (#704)
refactor(mcp): split server entrypoint from CLI (#679)
refactor(daemon): move live watch into polylogued (#680)
refactor(daemon): move browser capture under polylogued (#681)
fix(distribution): keep devtools out of user artifacts (#691)
fix(distribution): remove devtools absence sentinels (#704)
feat(onboarding): first-run UX, smoke tests, doc fixes (#930)
feat(onboarding): first-run UX, smoke tests, doc fixes (#930)
feat(onboarding): autodetect chat sources and first-run setup (#869) (#…
feat(distribution): PyPI/container packaging readiness (#953) (#1141)