docpull icon indicating copy to clipboard operation
docpull copied to clipboard

Land frozen installation and budgeted queries across locked packs

Open admin-raintree opened this issue 1 month ago • 0 comments

Merged in #151 as 61f8d6897e9a988ba835c2e925ad408e3553fe2c on 2026-10-10 after all twenty required checks passed on the final PR commit.

PR #151 contains the preserved frozen-install and locked-context query implementation, tests, and documentation. The work is committed and pushed on the existing fix/docpull-launcher-eacces branch, with the latest dependency-security fixes from main integrated.

Implemented:

  • Frozen installation from SHA-256-addressed local archives, with validation before installation and tests for missing, tampered, unsafe, or conflicting artifacts.
  • One locked-context query across CLI (docpull query), Python SDK (query_context), and MCP (context_query), with exact version filters, deduplicated passages, stable citations, and precise source spans.
  • A conservative UTF-8 byte budget covering the complete canonical JSON result, including citation metadata. This is not a model-specific token count. Retrieval verifies and scans selected archives on each call and uses lexical ranking.
  • Documentation for archive transfer, budget semantics, version matching, integrity errors, and surface compatibility.

Validation: 60 focused feature/project tests and all 137 benchmark tests pass. Full repository validation passed with 1,260 Python tests passing, 18 skipped, 29 JavaScript tests passing, and successful lint, type checks, and reproducible builds. All twenty final-commit checks passed under the active required-check ruleset.

Acceptance criteria for the authorized landing scope:

  • [x] Review and commit the preserved implementation without switching branches or discarding work.
  • [x] Open a PR containing implementation, tests, and documentation.
  • [x] Validate the integrated code and merge #151 only after every final-commit check passes.

The maintainer requested landing on main, not package publication. The version remains 6.5.5 and the changelog entries remain under Unreleased. A release version, tag, and publication require a separate release request.

admin-raintree avatar Oct 10 '26 19:10 admin-raintree