Adopt the canonical pm-ops docstring gate
Summary
Adopts the canonical pm-ops docstring coverage analyzer as the single fleet-wide docstring gate, mirroring the pm-linear adoption (pm-linear#58). The analyzer is never vendored, copied, or reimplemented — this is adoption only (pm-ops devDependency + a thin launcher over analyzeDocstringCoverage).
Changes
pm-ops^2026.8.8 added as a devDependency — the exact pin pm-linear uses.scripts/docstring-gate.ts— a self-contained launcher overpm-ops/docstringsanalyzeDocstringCoverage, exposing a purerunGate+ thinmain+isMainInvocationguard. It intentionally matches this repo's existingscripts/coverage-gate.tsstyle (no shared launcher helper module introduced), rather than copying pm-linear'sscript-launcher.tsabstraction.test/docstring-gate.test.ts— behavioral coverage of the clean path, the violation path,main()'s stream/exit wiring, and the main-invocation guard.package.json—"docstring": "node scripts/docstring-gate.ts", inserted intorelease:checkimmediately before the coverage step..github/workflows/ci.yml— aVerify complete docstring coveragestep added afterBuild, before the coverage step. No existing CI job or step is renamed.- Real JSDoc written for every flagged declaration: 72 → 0 violations (62 in
index.ts, 10 inprojects.ts); 85 declarations documented across 4 files.
Verification
Full npm run release:check is green end to end:
typecheck✓build✓docstring→4 file(s), 85 declaration(s) documented.(0 violations) ✓coverage→ thresholds met (88/79/89) ✓audit:prod✓pack:dry-run✓changelog:check✓
pm
FORBIDDEN compliance
No PR merged, no review-bot triggers posted, nothing pushed to unbraind/pm-cli, the analyzer is not vendored, and no AI attribution is present in the commit.
Summary by Sourcery
Adopt a shared docstring coverage gate and wire it into local scripts and CI while fully documenting the GitHub integration surfaces.
New Features:
- Add a docstring gate script backed by the canonical pm-ops analyzer and expose it via an npm script used in the release check pipeline.
Enhancements:
- Document existing GitHub integration types, helpers, and project-sync utilities with comprehensive JSDoc to reach complete docstring coverage.
CI:
- Add a CI step that runs the docstring coverage gate after build and before the coverage gate.
Documentation:
- Bring previously undocumented GitHub issue, import, locking, dependency-linking, export, search, validate, and project-sync APIs up to full JSDoc coverage.
Tests:
- Add behavioral tests for the docstring gate launcher, covering success, violation handling, stream wiring, and main-invocation detection.
Chores:
- Record the pm task history for this change in the pm workspace metadata.
Summary by cubic
Adopted the canonical pm-ops docstring coverage gate and wired it into CI to enforce real JSDoc across the repo. Fixed all violations (72 → 0) and hardened the launcher to fail closed on self-resolution errors.
-
New Features
- Added
pm-ops^2026.8.8 devDependency and a thinscripts/docstring-gate.tslauncher (runGate/main/isMainInvocation). - Added
test/docstring-gate.test.ts. - Added npm script
docstring; inserted intorelease:checkand added a CI step “Verify complete docstring coverage” after Build. - Wrote JSDoc for all flagged declarations; violations reduced 72 → 0 across 4 files.
- Adoption only; analyzer is not vendored or copied.
- Added
-
Bug Fixes
- Clarified
GateResultdocs (newline-free strings) and ensuredmain()writes newline-terminated stderr. isMainInvocationnow throws when this module’s own path cannot be resolved, preventing the mandatory gate from skipping its scan and exiting zero; added regression tests.
- Clarified