Skip to content

Audit pm CLI SDK and package ecosystem - #88

Merged
unbraind merged 1 commit into
mainfrom
codex/pm-ecosystem-audit-20260531
May 31, 2026
Merged

unbraind merged 1 commit into
mainfrom
codex/pm-ecosystem-audit-20260531

Conversation

@unbraind

@unbraind unbraind commented May 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Implemented the 2026-05-31 pm CLI/SDK/package ecosystem audit slice across tracked pm items.
  • Added lazy extension activation with template-command probing, type-aware help preservation, and search-capability activation for command-scoped manifests.
  • Added SDK expected-error helpers, runtime/testing exports, manifest version gates, docs, and testing helper coverage.
  • Fixed vector search model/dimension reset plus orphan pruning, mutation-refresh metadata-change safety, extension vector delete cleanup, Qdrant dimension-change collection recreation, calendar recurrence exdate semantics, runtime completion statuses/types, create/update parser duplication, and actionable module-import telemetry guidance.
  • Recorded manual temp-project dogfood, GitHub/dependency checks, Sentry/telemetry checks, pm item evidence, and PR review follow-up evidence.

Verification

  • node scripts/run-tests.mjs test -- tests/integration/extension-startup.integration.spec.ts tests/unit/search-cache.spec.ts tests/unit/reindex-command.spec.ts tests/unit/vector-store-adapter.spec.ts tests/unit/sdk-index.spec.ts tests/unit/calendar-command.spec.ts tests/unit/completion-command.spec.ts tests/unit/package-manifest.spec.ts: 8 files, 227 tests passed
  • node scripts/run-tests.mjs coverage: 135 files, 2061 tests, 100% statements/branches/functions/lines
  • pnpm quality:static
  • pnpm changelog:pm:check
  • pnpm release:gates
  • node scripts/release/sentry-telemetry-gate.mjs --json --telemetry-mode best-effort
  • timeout 45 bash scripts/prod/telemetry/check-stack-health.sh
  • pnpm audit --json
  • manual temp-project dogfood with all bundled packages, SDK smoke, custom schema, and Ollama+LanceDB hybrid search
  • GitHub PR checks green on 601b6fb: CI gates, runtime smokes, docs, CodeRabbit; Sourcery skipped due size limit

Notes

  • Gemini and Codex connector review comments were addressed and their threads resolved.
  • Sentry PM-CLI-10 was resolved after the module_import_failed guidance fix and current repro checks passed.
  • commander 15.0.0 was not upgraded because it requires Node >=22.12.0 while pm-cli still supports Node >=20.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @unbraind, your pull request is larger than the review limit of 150000 diff characters

@coderabbitai

coderabbitai Bot commented May 31, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@unbraind, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 24 minutes and 5 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: e4318cec-d2a6-4706-acf5-84397ae2fe02

📥 Commits

Reviewing files that changed from the base of the PR and between c8b51f5 and 601b6fb.

📒 Files selected for processing (70)
  • .agents/pm/chores/pm-5wb6.toon
  • .agents/pm/chores/pm-8ehg.toon
  • .agents/pm/chores/pm-q4zx.toon
  • .agents/pm/chores/pm-xutw.toon
  • .agents/pm/extensions/.managed-extensions.json
  • .agents/pm/features/pm-59gj.toon
  • .agents/pm/features/pm-oxyo.toon
  • .agents/pm/history/pm-59gj.jsonl
  • .agents/pm/history/pm-5wb6.jsonl
  • .agents/pm/history/pm-8ehg.jsonl
  • .agents/pm/history/pm-oxyo.jsonl
  • .agents/pm/history/pm-q4zx.jsonl
  • .agents/pm/history/pm-qcsz.jsonl
  • .agents/pm/history/pm-xutw.jsonl
  • .agents/pm/issues/pm-qcsz.toon
  • CHANGELOG.md
  • docs/EXTENSIONS.md
  • docs/SDK.md
  • package.json
  • packages/pm-beads/extensions/beads/manifest.json
  • packages/pm-calendar/README.md
  • packages/pm-calendar/extensions/calendar/index.js
  • packages/pm-calendar/extensions/calendar/index.ts
  • packages/pm-calendar/extensions/calendar/manifest.json
  • packages/pm-governance-audit/extensions/governance-audit/manifest.json
  • packages/pm-guide-shell/README.md
  • packages/pm-guide-shell/extensions/guide-shell/index.js
  • packages/pm-guide-shell/extensions/guide-shell/index.ts
  • packages/pm-guide-shell/extensions/guide-shell/manifest.json
  • packages/pm-guide-shell/extensions/guide-shell/runtime.js
  • packages/pm-guide-shell/extensions/guide-shell/runtime.ts
  • packages/pm-linked-test-adapters/extensions/linked-test-adapters/manifest.json
  • packages/pm-search-advanced/extensions/search-advanced/manifest.json
  • packages/pm-templates/extensions/templates/manifest.json
  • packages/pm-todos/extensions/todos/manifest.json
  • scripts/release/static-quality-gate.mjs
  • src/cli/commands/calendar.ts
  • src/cli/commands/completion.ts
  • src/cli/commands/contracts.ts
  • src/cli/commands/create.ts
  • src/cli/commands/reindex.ts
  • src/cli/commands/repeatable-metadata-parsers.ts
  • src/cli/commands/update.ts
  • src/cli/error-guidance.ts
  • src/cli/main.ts
  • src/core/extensions/extension-types.ts
  • src/core/extensions/loader.ts
  • src/core/search/cache.ts
  • src/core/search/http-client.ts
  • src/core/search/vector-stores.ts
  • src/core/search/vectorization-metadata.ts
  • src/core/telemetry/consent.ts
  • src/core/telemetry/observability.ts
  • src/sdk/errors.ts
  • src/sdk/index.ts
  • src/sdk/runtime.ts
  • src/sdk/testing.ts
  • tests/integration/extension-startup.integration.spec.ts
  • tests/unit/calendar-command.spec.ts
  • tests/unit/completion-command.spec.ts
  • tests/unit/create-command.spec.ts
  • tests/unit/error-guidance.spec.ts
  • tests/unit/extension-loader.spec.ts
  • tests/unit/package-manifest.spec.ts
  • tests/unit/reindex-command.spec.ts
  • tests/unit/sdk-index.spec.ts
  • tests/unit/search-cache.spec.ts
  • tests/unit/update-command.spec.ts
  • tests/unit/vector-store-adapter.spec.ts
  • vitest.config.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements a package-first ecosystem audit, introducing lazy extension activation, shared repeatable metadata parsers, runtime-resolved shell completions, vector store orphan pruning, and SDK ergonomics improvements such as package-safe expected errors and testing helpers. Feedback on these changes focuses on optimizing calendar recurrence loops by removing redundant ISO string normalization, and enhancing runtime safety through defensive nullish/falsy checks when mapping over command arguments and type registry definitions.

Comment thread src/cli/commands/calendar.ts Resolved
Comment thread src/sdk/testing.ts Resolved
@unbraind
unbraind force-pushed the codex/pm-ecosystem-audit-20260531 branch from 2419528 to 7969703 Compare May 31, 2026 09:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 241952855b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/cli/main.ts Resolved
Comment thread src/core/search/cache.ts Resolved
Comment thread src/cli/commands/reindex.ts Resolved
Comment thread src/cli/commands/reindex.ts Resolved
Comment thread src/core/search/vector-stores.ts Resolved
@unbraind
unbraind force-pushed the codex/pm-ecosystem-audit-20260531 branch from 7969703 to 3818c60 Compare May 31, 2026 09:23
Implement the 2026-05-31 manual ecosystem audit slice across the pm CLI, SDK, and bundled package ecosystem, including PR review follow-ups.

Highlights:

- add manifest-scoped lazy extension activation with template probing, type-aware help preservation, and search-capability activation for command-scoped manifests

- add SDK expected-error helpers, runtime/testing exports, manifest version gates, and package authoring docs

- reset/re-embed semantic vectors on provider/model/dimension changes, preserve existing vectors during mutation refresh metadata changes, record actual extension embedding identities, prune extension vector orphans, and recreate Qdrant collections when dimensions change

- normalize calendar recurrence exdates by parsed instant and document recur_count anchoring

- add runtime status/type completion helpers and package guide-shell completion support

- deduplicate create/update repeatable metadata parsers into a shared helper

- classify module import failures as module_import_failed for actionable telemetry/Sentry recovery

Verification:

- node scripts/run-tests.mjs test -- tests/integration/extension-startup.integration.spec.ts tests/unit/search-cache.spec.ts tests/unit/reindex-command.spec.ts tests/unit/vector-store-adapter.spec.ts tests/unit/sdk-index.spec.ts tests/unit/calendar-command.spec.ts tests/unit/completion-command.spec.ts tests/unit/package-manifest.spec.ts: 8 files, 227 tests passed

- node scripts/run-tests.mjs coverage: 135 files, 2061 tests, 100% statements/branches/functions/lines

- pnpm quality:static

- pnpm changelog:pm:check

- pnpm release:gates

- node scripts/release/sentry-telemetry-gate.mjs --json --telemetry-mode best-effort

- timeout 45 bash scripts/prod/telemetry/check-stack-health.sh

- pnpm audit --json

- manual temp-project dogfood with all bundled packages, SDK smoke, custom schema, and Ollama+LanceDB hybrid search
@unbraind
unbraind force-pushed the codex/pm-ecosystem-audit-20260531 branch from 3818c60 to 601b6fb Compare May 31, 2026 09:48
@unbraind
unbraind merged commit c5a8625 into main May 31, 2026
13 checks passed
@unbraind
unbraind deleted the codex/pm-ecosystem-audit-20260531 branch May 31, 2026 09:55
unbraind added a commit that referenced this pull request Jul 15, 2026
….15 recovery verified, pm-hvt3 filed (residual staging-base canonicalization, third pm-0fhw-class site), GH-569 mapped to pm-j8vq, roadmap phase map on pm-doxj

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018ico2SMPEHn6PL97EwEERL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant