docpull icon indicating copy to clipboard operation
docpull copied to clipboard

chore: align docpull with Raintree standard

Open admin-raintree opened this issue 5 months ago • 3 comments

docpull Raintree Standardization Report

PR

  • Repository: raintree-technology/docpull
  • Branch: chore/raintree-standard
  • Base: main
  • Head: a7053f9
  • PR: pending
  • Central standard SHA: 3256afba6d5c060f8b00f1bbf96887d253b0e9e1

Classification

  • Public Python package and CLI, published as docpull.
  • Mature existing CI: Python test matrix, Ruff, mypy, security workflow, CodeQL, release/publish, benchmark, metrics.
  • JS subpackages:
    • mcp/: Bun/TypeScript internal MCP lab.
    • web/: npm/Next.js marketing site.

Changes

  • Added Raintree status and branding badges to README.md.
  • Added .npmrc with save-exact=true and .nvmrc with Node 22.
  • Exact-pinned mcp/package.json and web/package.json, added package-manager and Node engine metadata, and refreshed mcp/bun.lock plus web/package-lock.json.
  • Added root uv.lock and stopped ignoring it so Python dependency resolution is reproducible without changing the library's published dependency ranges.
  • Added 7-day Dependabot cooldowns for GitHub Actions, pip, npm, and bun ecosystems.
  • Added central Raintree standard CI for the JS subpackages, pinned to 3256afba6d5c060f8b00f1bbf96887d253b0e9e1, without secrets: inherit because this repo is public and the Socket GitHub App already gates PRs.
  • Added scheduled/config-triggered central drift check pinned to the same SHA.
  • Preserved existing Python package CI/security/release workflows.

Local Checks

  • uv lock: PASS.
  • bun install --frozen-lockfile && bun run typecheck in mcp/: PASS.
  • npm ci && npm run typecheck in web/: PASS.
  • npm run build in web/: PASS.
  • uv run --extra dev ruff check .: PASS.
  • uv run --extra dev ruff format --check .: PASS.
  • uv run --extra all --extra dev mypy src: PASS.
  • node /tmp/raintree-standardization/.github/scripts/check-pinned-deps.mjs: PASS at root, mcp/, and web/.
  • STANDARD_DIR=/tmp/raintree-standardization/.github bash /tmp/raintree-standardization/.github/scripts/drift-check.sh: PASS.
  • gitleaks detect --source . --redact --exit-code 1: PASS, 163 commits scanned, no leaks.
  • git diff --check: PASS.
  • uv run --extra all --extra dev pytest -q: WARN. Full local suite had 492 pass / 2 fail, both in benchmark throughput thresholds. The same two benchmark tests pass when run in isolation on this branch, and also pass in isolation on a clean origin/main worktree. Treat as local load-sensitive performance threshold pending remote CI.

Blockers / NEEDS-HUMAN

  • NEEDS-HUMAN: confirm whether Python runtime dependency ranges should remain broad for PyPI compatibility. This PR adds uv.lock instead of exact-pinning published library requirements.
  • NEEDS-HUMAN: watch remote CI for the full pytest matrix; local full-suite failure was limited to benchmark throughput thresholds under local load.

Changed Paths

  • .github/dependabot.yml
  • .github/workflows/drift-check.yml
  • .github/workflows/raintree-ci.yml
  • .gitignore
  • .npmrc
  • .nvmrc
  • README.md
  • mcp/bun.lock
  • mcp/package.json
  • uv.lock
  • web/package-lock.json
  • web/package.json

admin-raintree avatar Jun 12 '26 08:06 admin-raintree

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docpull Ready Ready Preview, Comment Jun 12, 2026 8:01am

Request Review

vercel[bot] avatar Jun 12 '26 08:06 vercel[bot]

[!WARNING] Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm next is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: web/package-lock.json → npm/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm scheduler is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: web/package-lock.json → npm/[email protected] → npm/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

socket-security[bot] avatar Jun 12 '26 08:06 socket-security[bot]

Closing this stale draft rather than merging it as-is. Current main has moved forward with newer dependency updates and green CI; this branch is now conflicting, includes outdated lock/dependency state, and the PR body still lists NEEDS-HUMAN decisions. The useful Raintree-standard pieces should be reapplied from current main in a smaller focused PR so we do not accidentally downgrade deps or merge obsolete draft state.

admin-raintree avatar Jun 24 '26 21:06 admin-raintree