← Back to Pull requests

fix(release-kit): repair confirmed quality findings in the payload #20

Closed
jdalton closed this pull request without merging on Aug 01, 2026 11:52 UTC
View on GitHub
jdalton jdalton commented on Aug 01, 2026 06:49 UTC
Author

Follow-up to the merged #19. Repairs the CONFIRMED quality findings that reproduce in the sauce release-kit payload (the byte-authority). Verified against the adversarial findings set; findings that were jdm-aot-only or already-correct in sauce are documented rather than changed.

Correctness (payload behavior)


  • --access no longer hard-coded public. runStaged/runDirect/runWorkspacePublish resolve access (kit config → publishConfig.access → scoped/unscoped default) via a new resolveReleaseAccess, so a restricted package is no longer shipped public. Proven by a real bootstrap --dry-run: publish @acme/widget@0.0.0 --access restricted.

  • npm.distTag is now consumed — staged --tag falls back to the config value, not a hard-coded latest.

  • Unknown flags are rejected. @socketsecurity/lib parseArgs does not throw on unknown flags even under strict; npm-publish / cargo-publish / create-release now diff parsed keys (camelCase-alias aware) and exit 2. github-release / brew-publish parse errors exit 2 (were 1). Bootstrap already exits 2 (node:util strict).

  • Exit-code + help consistency — npm-publish mode/backfill conflicts exit 2; --help names node scripts/socket-release/npm-publish.mts, not the dead pnpm publish.
  • Stale references / duplication


  • Dropped the phantom publish-pipeline mentions (the healer is github-release.mts).

  • Extracted packumentUrl() + NPM_AUTH_TOKEN_KEY into constants/npm-registry.mts (8 inline copies + 3 hard-coded token keys); removed the unused NPM_REGISTRY export.

  • trusted-publisher-plan derives CANONICAL_* from the single trustedPublisherLaw() — one law source.

  • Trimmed dangling check//docs/ citations and wheelhouse provenance from headers; fixed create-release's missing-config pointer.
  • Tests (was: zero release-time coverage)


  • publish-helpers: resolveNpmAccess (access-public regression guard), stageAction, readStagedShasum, packumentUrl, unknownFlags, extractChangelogSection.

  • trust-sweep: conformsToLaw pinned per law field — kills the surviving environment-comparison mutation.

  • registry-liveness-gate: runGate driven live/404/unreachable with an injected fetch, plus the pure decision functions.
  • Not changed (documented, with evidence)


  • playwright-law.mts and the trusted-publisher browser quartet are live/intentional in sauce (imported by the release-kit-launches-are-sanctioned check and allowlisted in release-kit-is-coherent), not dead as in jdm-aot.

  • Soak findings, the golden self-create, and the lint-opt-out do not reproduce in the sauce payload (no soak module; read-only fixtures; the payload is linted).
  • Gates


    232 release-kit tests pass; release-kit-is-coherent + release-kit-launches-are-sanctioned green; actionlint clean on all 4 workflow templates; payload + tests typecheck clean; bootstrap --help/--dry-run verified.

    Diff: 34250 lines (+34237 / -13) across 213 files Reviewer: None requested Review duration: 302m
    All Vouch review confidence checks passed
    Residual risk 0.63 = Change Risk (0.96) × (1 − Review Confidence (0.35)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.96 · 34250 lines diff across 213 files
    0.96
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 35% · Reviewer familiarity: 10%
    34%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Shallow Review Depth shallow_review_depth
    0.289
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Sensitive Paths sensitive_paths
    0.096
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    1 comments
    "Review active on #20"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    jdalton jdalton
    Labels
    risk: medium confidence: 34.8% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 96% (HIGH) · Higher = larger blast radius
    96%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 34.8% · Lower = rushed or shallow review
    34.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 62.6% · Moderate risk
    62.6%