Skip to content

Organize command-surface and context roadmap governance - #594

Merged
unbraind merged 3 commits into
mainfrom
agent/command-surface-context-roadmap-governance
Jul 18, 2026
Merged

unbraind merged 3 commits into
mainfrom
agent/command-surface-context-roadmap-governance

Conversation

@unbraind

@unbraind unbraind commented Jul 18, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • recorded an exhaustive all-status review of 1,866 pre-change pm items and 30,491 immutable history events on the canonical living-roadmap, CLI simplification, SDK-first, scale, history, context-ranking, and governance items
  • documented the complete 73-command noun/verb consolidation map, the SDK-only universal-platform sequence, the million-item and decade-scale verification matrix, and the existing 22-part context algorithm catalog
  • added pm-szdc, the one duplicate-checked gap found: hide runtime completion helper entrypoints from default agent discovery while preserving shell completion behavior
  • linked the new item to its source, docs, focused tests, related roadmap items, acceptance criteria, estimate, risk/confidence, immutable evidence, and a durable learning

Why

The CLI currently exposes 73 top-level names. Every user capability already maps to an existing simplification slice or a proper extension-owned/noun-verb surface, except three completion plumbing commands that still appear as first-class root commands. The roadmap needed current, status-agnostic evidence without creating duplicate umbrella work.

Impact

This is tracker-only planning and governance. It does not implement the future CLI change or modify product code. It gives future agents a duplicate-safe execution map for command simplification, SDK ownership, token-efficient context, extreme scale, immutable audit history, federation, VCS/digital-twin exemplars, and governance.

Validation

  • npm install -g ., pm --version, pnpm build
  • full pm list --status all --full --include-body and pm activity --full inventory
  • pm validate --check-resolution --check-history-drift --json (ok; zero history drift; unchanged owned historical warnings)
  • pm health --check-only (unchanged five unknown-author events owned by pm-h90s)
  • exact, fuzzy, and parent-scope duplicate audits
  • pm graph audit --json (zero actionable findings; zero active isolates)
  • linked isolated suite: 3 files / 125 tests passed
  • pnpm changelog:pm:check
  • pnpm security:scan
  • git diff --check

Summary by cubic

Completed a full audit of the living roadmap (1,866 items, 30,491 history events) and refreshed epics for CLI simplification, SDK-first boundaries, million-item context ranking, and append-only history guarantees.

Added pm-szdc and clarified completion vs bulk-test grammar to hide runtime helper entrypoints while keeping bash/zsh/fish completion and test-all working. Linked governance evidence to this PR and revalidated changelog and immutable history; tracker-only, no product code changes.

Written for commit 060fa04. Summary will update on new commits.

Review in cubic

Audit all 1,866 pre-change pm items and 30,491 history events across every lifecycle status, then record current hierarchy, dedupe, graph, scale, SDK-first, immutable-history, and context-algorithm evidence on the canonical roadmap lineages.\n\nAdd pm-szdc as the single duplicate-checked gap for hiding runtime completion helper entrypoints from default agent discovery while preserving completion functionality, with linked files, docs, tests, dependencies, and isolated 125-test evidence.\n\nKeep the future execution sequence explicit across CLI grammar simplification, SDK-only universality, million-item context, digital-twin proof, and append-only audit guarantees.

@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, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai

coderabbitai Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

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

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7540a052-3a44-495b-8833-0cb800ea114e

📥 Commits

Reviewing files that changed from the base of the PR and between bc579a4 and 060fa04.

📒 Files selected for processing (3)
  • .agents/pm/epics/pm-n7rr.toon
  • .agents/pm/extensions/.managed-extensions.json
  • .agents/pm/history/pm-n7rr.jsonl
📝 Walkthrough

Walkthrough

The change refreshes PM tracker timestamps and governance histories, adds roadmap and validation evidence, and introduces task pm-szdc for hiding completion helper commands from default discovery while preserving shell-completion behavior.

Changes

Tracker governance and planning

Layer / File(s) Summary
Governance evidence and audit records
.agents/pm/epics/pm-33cw.toon, .agents/pm/epics/pm-o2kc.toon, .agents/pm/history/*, .agents/pm/milestones/pm-doxj.toon, .agents/pm/extensions/.managed-extensions.json
Governance baselines, immutable-history reviews, ecosystem verification, milestone evidence, and timestamps were updated.
Roadmap and capability reviews
.agents/pm/epics/pm-9rxu.toon, .agents/pm/epics/pm-n7rr.toon, .agents/pm/epics/pm-usfg.toon, .agents/pm/features/pm-4k6b.toon, .agents/pm/history/*
Scale, command-surface, platform-sequencing, and algorithm-catalog review notes were added or refreshed.
Completion-command visibility task
.agents/pm/tasks/pm-szdc.toon, .agents/pm/history/pm-szdc.jsonl
Defines hiding completion helper commands from default help, contracts, docs, MCP discovery, and grammar budgets while preserving invocation and shell-completion behavior, with evidence and test records.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the tracker-only governance work around command-surface and context roadmap organization.
Description check ✅ Passed The description is directly related to the changeset and accurately describes the audit, roadmap updates, and new task.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

Record the publication URL on the living milestone and focused completion-helper item, then revalidate changelog and immutable-history integrity on the updated tracker head.
@unbraind
unbraind marked this pull request as ready for review July 18, 2026 14:18
@unbraind

Copy link
Copy Markdown
Owner Author

@codex review

/gemini review

@gemini-code-assist review

Please review the current head for tracker integrity, duplicate safety, roadmap organization, correctness of stated evidence, accidental private/sensitive content, and any actionable issue.

@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, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@codspeed

codspeed Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 0.02%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 6 improved benchmarks
❌ 5 regressed benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ createQueryFingerprint 514.7 µs 516.2 µs -0.28%
❌ encodeQueryCursor 101 µs 101.1 µs -0.03%
❌ build index (2000 docs x 80 words) 161.4 ms 161.4 ms -0.03%
❌ tokenize + score query over 2000 docs 7.5 ms 7.5 ms -0.02%
❌ stableStringify (nested contract) 161.2 µs 161.3 µs -0.01%
⚡ decodeQueryCursor 115.9 µs 115.8 µs +0.04%
⚡ jaccardSimilarity 153.3 µs 153.3 µs +0.03%
⚡ normalizeLowercaseWhitespace 135.8 µs 135.8 µs +0.02%
⚡ build index (200 docs x 40 words) 8.4 ms 8.4 ms +0.02%
⚡ tokenizeAlphaNumeric 367.3 µs 367.3 µs +0.01%
⚡ score query over 2000 docs 5.6 ms 5.6 ms 0%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing agent/command-surface-context-roadmap-governance (060fa04) with main (3baca0a)

Open in CodSpeed

@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 introduces a new task, pm-szdc, aimed at hiding runtime completion helper entrypoints from the default agent-facing command surface, updating several .toon files, history streams, and managed extensions. The review feedback correctly identifies critical syntax errors in the newly added history file .agents/pm/history/pm-szdc.jsonl on lines 1 and 10, where literal unescaped newlines are present within JSON string values, violating standard JSON syntax and the single-line requirement of the JSONL format.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@@ -0,0 +1,11 @@
{"ts":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner","op":"create","patch":[{"op":"replace","path":"/body","value":"## Problem\\nThe default root help currently advertises three runtime data providers as if agents should invoke them directly: completion-statuses, completion-tags, and completion-types. This adds three nouns to the discovery surface without adding user capability.\\n\\n## Desired design\\nTreat these entrypoints like internal completion plumbing. The public # bash completion for pm\n# Source this file or add 'eval \"$(pm completion bash)\"' to ~/.bashrc\n\n_pm_completion_type_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TYPE_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TYPE_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_TYPE_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-types 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"Chore Decision Epic Event Feature Issue Meeting Milestone Plan Reminder Story Task\"\n fi\n PM_COMPLETION_TYPE_CACHE=\"$resolved\"\n PM_COMPLETION_TYPE_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n}\n\n_pm_completion_status_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_STATUS_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_STATUS_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_STATUS_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-statuses 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"blocked canceled closed draft in_progress open\"\n fi\n PM_COMPLETION_STATUS_CACHE=\"$resolved\"\n PM_COMPLETION_STATUS_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n}\n\n_pm_completion() {\n local cur prev words cword\n _init_completion 2>/dev/null || {\n cur=\"${COMP_WORDS[COMP_CWORD]}\"\n prev=\"${COMP_WORDS[COMP_CWORD-1]}\"\n cword=$COMP_CWORD\n }\n\n if [[ $cword -eq 1 ]]; then\n COMPREPLY=($(compgen -W \"init config extension package packages install upgrade create copy focus list list-all list-draft list-open list-in-progress list-blocked list-closed list-canceled aggregate context ctx get graph search eval next history history-redact history-repair history-compact schema profile activity restore update update-many close close-many delete append comments notes learnings files docs deps plan test test-all telemetry stats health validate gc contracts claim release start-task pause-task close-task meet event remind help\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--type\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_type_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--status\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_status_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--tag\" || \"$prev\" == \"--tags\" ]]; then\n local now ttl cache_ts tag_values\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TAG_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TAG_CACHE_TS:-0}\"\n tag_values=\"${PM_COMPLETION_TAG_CACHE:-}\"\n if [[ -z \"$tag_values\" || \"$now\" -eq 0 || $((now - cache_ts)) -ge \"$ttl\" ]]; then\n tag_values=\"$(pm completion-tags 2>/dev/null)\"\n PM_COMPLETION_TAG_CACHE=\"$tag_values\"\n PM_COMPLETION_TAG_CACHE_TS=\"$now\"\n fi\n COMPREPLY=($(compgen -W \"$tag_values\" -- \"$cur\"))\n return 0\n fi\n\n local cmd=\"${COMP_WORDS[1]}\"\n\n case \"$cmd\" in\n list|list-all|list-draft|list-open|list-in-progress|list-blocked|list-closed|list-canceled)\n COMPREPLY=($(compgen -W \"--after --all --assignee --assignee_filter --assignee-filter --author --brief --compact --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-ac-missing --filter-confidence-missing --filter-docs-missing --filter-estimate-missing --filter-estimates-missing --filter-files-missing --filter-metadata-missing --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --id-only --ids --include-body --json --limit --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --no-truncate --offset --order --parent --path --pm-path --priority --profile --quiet --recent --release --sort --sprint --status --stream --tag --tags --today --tree --tree_depth --tree-depth --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n aggregate)\n COMPREPLY=($(compgen -W \"--group-by --count --completion --sum --avg --include-unparented --include_unparented --status --type --tag --priority --deadline-before --deadline-after --assignee --assignee-filter --assignee_filter --parent --sprint --release --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n create)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --allow-missing-parent --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --create_mode --create-mode --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --goal --help --id --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --reporter --repro_steps --repro-steps --resolution --reviewer --risk --schedule_preset --schedule-preset --severity --sprint --status --tag --tags --template --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n copy)\n COMPREPLY=($(compgen -W \"--title --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n focus)\n COMPREPLY=($(compgen -W \"--clear --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n update)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --close_reason --close-reason --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --force --goal --help --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --severity --sprint --status --tag --tags --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n update-many)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --author --body --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --dry-run --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --file --filter-ac-missing --filter-assignee --filter-assignee_filter --filter-assignee-filter --filter-confidence-missing --filter-created-after --filter-created-before --filter-deadline-after --filter-deadline-before --filter-empty-body --filter-estimate-missing --filter-estimates-missing --filter-has-body --filter-has-comments --filter-has-deps --filter-has-docs --filter-has-files --filter-has-learnings --filter-has-linked-command --filter-has-notes --filter-has-tests --filter-metadata-missing --filter-no-comments --filter-no-deps --filter-no-docs --filter-no-files --filter-no-learnings --filter-no-linked-command --filter-no-notes --filter-no-tests --filter-parent --filter-priority --filter-release --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint --filter-sprint-missing --filter-status --filter-tag --filter-type --filter-updated-after --filter-updated-before --fixed_version --fixed-version --force --goal --help --id-only --ids --impact --json --learning --limit --message --no-changed-fields --no-checkpoint --no-extensions --no-pager --note --objective --offset --order --outcome --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --rollback --severity --sprint --tag --tags --test --title --type --type_option --type-option --unset --value --why_now --why-now -b -d -p -t\" -- \"$cur\"))\n ;;\n calendar|cal)\n COMPREPLY=($(compgen -W \"--assignee --assignee_filter --assignee-filter --author --date --format --from --full_period --full-period --help --id-only --include --json --limit --no-changed-fields --no-extensions --no-pager --occurrence-limit --past --path --pm-path --priority --profile --quiet --recurrence-lookahead-days --recurrence-lookback-days --release --sprint --status --tag --to --type --view\" -- \"$cur\"))\n ;;\n context|ctx)\n COMPREPLY=($(compgen -W \"--activity-limit --after --assignee --assignee_filter --assignee-filter --author --date --depth --explain_ranking --explain-ranking --fields --format --from --help --id-only --json --limit --max-items --no-changed-fields --no-extensions --no-pager --parent --past --path --pm-path --priority --profile --quiet --release --section --sprint --stale-threshold --tag --to --type\" -- \"$cur\"))\n ;;\n next)\n COMPREPLY=($(compgen -W \"--type --tag --priority --assignee --assignee-filter --assignee_filter --sprint --release --parent --limit --blocked-limit --blocked_limit --ready-only --ready_only --format --explain-ranking --explain_ranking --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n guide)\n COMPREPLY=($(compgen -W \"--list --format --depth --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author commands extensions harnesses quickstart release sdk skills workflows\" -- \"$cur\"))\n ;;\n search)\n COMPREPLY=($(compgen -W \"--after --assignee --author --compact --count --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-confidence-missing --filter-docs-missing --filter-files-missing --filter-release-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --highlight --hybrid --id-only --include-linked --json --limit --match-mode --min-score --mode --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --parent --path --phrase-exact --pm-path --priority --profile --quiet --release --semantic --semantic-weight --sprint --status --tag --tags --title-exact --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n reindex)\n COMPREPLY=($(compgen -W \"--mode --progress --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n init)\n COMPREPLY=($(compgen -W \"--id-prefix --prefix --preset --type-preset -y --defaults --yes --author --agent-guidance --with-packages --workspace --force --verbose --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n config)\n COMPREPLY=($(compgen -W \"--criterion --clear-criteria --format --policy --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n extension)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n package|packages)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --declarative --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n comments)\n COMPREPLY=($(compgen -W \"--add --body --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n notes)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n learnings)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n files)\n COMPREPLY=($(compgen -W \"discover --add --add-glob --remove --migrate --list --apply --note --append-stable --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n docs)\n COMPREPLY=($(compgen -W \"--add --add-glob --remove --migrate --note --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n append)\n COMPREPLY=($(compgen -W \"-b --body --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n deps)\n COMPREPLY=($(compgen -W \"--format --max-depth --collapse --summary --node-limit --edge-limit --token-budget --cursor --direction --kind --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n graph)\n COMPREPLY=($(compgen -W \"ancestors descendants predecessors successors paths impact analyze audit communities redundancy dominators plan --kind --max-depth --limit --after --direction --max-paths --sample --exempt-isolate --summary --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n test)\n COMPREPLY=($(compgen -W \"--add --add-json --remove --list --run --match --only-index --only-last --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-all)\n COMPREPLY=($(compgen -W \"--status --limit --offset --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-runs)\n COMPREPLY=($(compgen -W \"list status logs stop resume --status --limit --stream --tail --force --author --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n validate)\n COMPREPLY=($(compgen -W \"--check-metadata --metadata-profile --check-resolution --check-lifecycle --check-stale-blockers --dependency-cycle-severity --parent-cycle-severity --check-files --scan-mode --include-pm-internals --verbose-file-lists --verbose-diagnostics --all-affected-ids --strict-exit --fail-on-warn --fix-hints --auto-fix --dry-run --fix-scope --prune-missing --check-history-drift --check-command-references --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n health)\n COMPREPLY=($(compgen -W \"--strict-directories --strict-exit --fail-on-warn --check-only --check-telemetry --no-refresh --refresh-vectors --verbose-stale-items --brief --summary --skip-vectors --skip-integrity --skip-drift --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history)\n COMPREPLY=($(compgen -W \"--limit --compact --full --diff --field --verify --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-compact)\n COMPREPLY=($(compgen -W \"--before --ids --all-over --closed --all-streams --min-entries --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n get)\n COMPREPLY=($(compgen -W \"--depth --full --fields --at --tree --tree-depth --tree_depth --format --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history-redact)\n COMPREPLY=($(compgen -W \"--literal --regex --replacement --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-repair)\n COMPREPLY=($(compgen -W \"--all --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n schema)\n COMPREPLY=($(compgen -W \"list show show-status add-type remove-type add-status remove-status add-field remove-field list-fields show-field apply-preset --description --default-status --folder --alias --role --order --type --commands --cli-flag --required --required-on-create --no-allow-unset --required-types --infer --min-count --apply --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n profile)\n COMPREPLY=($(compgen -W \"list show apply lint agile ops research --dry-run --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n plan)\n COMPREPLY=($(compgen -W \"create show add-step update-step complete-step block-step reorder-step remove-step link unlink decision discovery validation resume approve materialize --title --description --scope --parent --related --blocks --blocked-by --blocked_by --harness --mode --resume-context --resume_context --tags --tag --priority --body --claim --from-search --from_search --template --step-title --step_title --step --step-body --step_body --step-owner --step_owner --step-status --step_status --step-evidence --step_evidence --step-blocked-reason --step_blocked_reason --step-replacement --step_replacement --depends-on --depends_on --link --link-kind --link_kind --link-note --link_note --promote-to-item-dep --promote_to_item_dep --allow-multiple-active --allow_multiple_active --file --test --doc --decision-text --decision_text --decision --decision-rationale --decision_rationale --decision-evidence --decision_evidence --discovery-text --discovery_text --discovery --validation-text --validation_text --validation --validation-command --validation_command --validation-expected --validation_expected --depth --field --fields --steps --materialize-type --materialize_type --materialize-parent --materialize_parent --materialize-tags --materialize_tags --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n activity)\n COMPREPLY=($(compgen -W \"--id --op --author --from --to --limit --compact --full --stream --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n contracts)\n COMPREPLY=($(compgen -W \"--action --command --summary --schema-only --flags-only --availability-only --runtime-only --active-only --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n gc)\n COMPREPLY=($(compgen -W \"--dry-run --scope --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n stats)\n COMPREPLY=($(compgen -W \"--storage --metadata-coverage --field-utilization --by-assignee --by-tag --by-priority --tag-prefix --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close|close-task)\n COMPREPLY=($(compgen -W \"--author --message --validate-close --duplicate-of --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close-many)\n COMPREPLY=($(compgen -W \"--filter-status --filter-type --filter-tag --filter-priority --filter-deadline-before --filter-deadline-after --filter-updated-after --filter-updated-before --filter-created-after --filter-created-before --filter-assignee --filter-assignee-filter --filter-assignee_filter --filter-parent --filter-sprint --filter-release --filter-reviewer-missing --filter-risk-missing --filter-confidence-missing --filter-sprint-missing --filter-release-missing --filter-has-notes --filter-no-notes --filter-has-learnings --filter-no-learnings --filter-has-files --filter-no-files --filter-has-docs --filter-no-docs --filter-has-tests --filter-no-tests --filter-has-comments --filter-no-comments --filter-has-deps --filter-no-deps --filter-has-body --filter-empty-body --filter-has-linked-command --filter-no-linked-command --ids --limit --offset --reason --resolution --expected-result --expected_result --expected --actual-result --actual_result --actual --validate-close --author --message --force --dry-run --rollback --no-checkpoint --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n release)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n delete)\n COMPREPLY=($(compgen -W \"--dry-run --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n claim|restore|start-task|pause-task)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n meet|event)\n COMPREPLY=($(compgen -W \"--start --duration --end --location --timezone --all-day --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n remind)\n COMPREPLY=($(compgen -W \"--at --text --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n completion)\n COMPREPLY=($(compgen -W \"--eager-tags --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author bash zsh fish\" -- \"$cur\"))\n ;;\n templates)\n COMPREPLY=($(compgen -W \"save list show\" -- \"$cur\"))\n ;;\n *)\n COMPREPLY=($(compgen -W \"--json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author --version\" -- \"$cur\"))\n ;;\n esac\n return 0\n}\n\ncomplete -F _pm_completion pm noun remains discoverable; generated shell scripts keep a stable way to request live schema values; internal helpers are hidden from ordinary help/contracts/docs/MCP enumeration and may be routed beneath # bash completion for pm\n# Source this file or add 'eval \"$(pm completion bash)\"' to ~/.bashrc\n\n_pm_completion_type_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TYPE_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TYPE_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_TYPE_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-types 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"Chore Decision Epic Event Feature Issue Meeting Milestone Plan Reminder Story Task\"\n fi\n PM_COMPLETION_TYPE_CACHE=\"$resolved\"\n PM_COMPLETION_TYPE_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n}\n\n_pm_completion_status_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_STATUS_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_STATUS_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_STATUS_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-statuses 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"blocked canceled closed draft in_progress open\"\n fi\n PM_COMPLETION_STATUS_CACHE=\"$resolved\"\n PM_COMPLETION_STATUS_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n}\n\n_pm_completion() {\n local cur prev words cword\n _init_completion 2>/dev/null || {\n cur=\"${COMP_WORDS[COMP_CWORD]}\"\n prev=\"${COMP_WORDS[COMP_CWORD-1]}\"\n cword=$COMP_CWORD\n }\n\n if [[ $cword -eq 1 ]]; then\n COMPREPLY=($(compgen -W \"init config extension package packages install upgrade create copy focus list list-all list-draft list-open list-in-progress list-blocked list-closed list-canceled aggregate context ctx get graph search eval next history history-redact history-repair history-compact schema profile activity restore update update-many close close-many delete append comments notes learnings files docs deps plan test test-all telemetry stats health validate gc contracts claim release start-task pause-task close-task meet event remind help\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--type\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_type_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--status\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_status_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--tag\" || \"$prev\" == \"--tags\" ]]; then\n local now ttl cache_ts tag_values\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TAG_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TAG_CACHE_TS:-0}\"\n tag_values=\"${PM_COMPLETION_TAG_CACHE:-}\"\n if [[ -z \"$tag_values\" || \"$now\" -eq 0 || $((now - cache_ts)) -ge \"$ttl\" ]]; then\n tag_values=\"$(pm completion-tags 2>/dev/null)\"\n PM_COMPLETION_TAG_CACHE=\"$tag_values\"\n PM_COMPLETION_TAG_CACHE_TS=\"$now\"\n fi\n COMPREPLY=($(compgen -W \"$tag_values\" -- \"$cur\"))\n return 0\n fi\n\n local cmd=\"${COMP_WORDS[1]}\"\n\n case \"$cmd\" in\n list|list-all|list-draft|list-open|list-in-progress|list-blocked|list-closed|list-canceled)\n COMPREPLY=($(compgen -W \"--after --all --assignee --assignee_filter --assignee-filter --author --brief --compact --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-ac-missing --filter-confidence-missing --filter-docs-missing --filter-estimate-missing --filter-estimates-missing --filter-files-missing --filter-metadata-missing --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --id-only --ids --include-body --json --limit --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --no-truncate --offset --order --parent --path --pm-path --priority --profile --quiet --recent --release --sort --sprint --status --stream --tag --tags --today --tree --tree_depth --tree-depth --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n aggregate)\n COMPREPLY=($(compgen -W \"--group-by --count --completion --sum --avg --include-unparented --include_unparented --status --type --tag --priority --deadline-before --deadline-after --assignee --assignee-filter --assignee_filter --parent --sprint --release --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n create)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --allow-missing-parent --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --create_mode --create-mode --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --goal --help --id --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --reporter --repro_steps --repro-steps --resolution --reviewer --risk --schedule_preset --schedule-preset --severity --sprint --status --tag --tags --template --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n copy)\n COMPREPLY=($(compgen -W \"--title --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n focus)\n COMPREPLY=($(compgen -W \"--clear --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n update)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --close_reason --close-reason --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --force --goal --help --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --severity --sprint --status --tag --tags --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n update-many)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --author --body --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --dry-run --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --file --filter-ac-missing --filter-assignee --filter-assignee_filter --filter-assignee-filter --filter-confidence-missing --filter-created-after --filter-created-before --filter-deadline-after --filter-deadline-before --filter-empty-body --filter-estimate-missing --filter-estimates-missing --filter-has-body --filter-has-comments --filter-has-deps --filter-has-docs --filter-has-files --filter-has-learnings --filter-has-linked-command --filter-has-notes --filter-has-tests --filter-metadata-missing --filter-no-comments --filter-no-deps --filter-no-docs --filter-no-files --filter-no-learnings --filter-no-linked-command --filter-no-notes --filter-no-tests --filter-parent --filter-priority --filter-release --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint --filter-sprint-missing --filter-status --filter-tag --filter-type --filter-updated-after --filter-updated-before --fixed_version --fixed-version --force --goal --help --id-only --ids --impact --json --learning --limit --message --no-changed-fields --no-checkpoint --no-extensions --no-pager --note --objective --offset --order --outcome --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --rollback --severity --sprint --tag --tags --test --title --type --type_option --type-option --unset --value --why_now --why-now -b -d -p -t\" -- \"$cur\"))\n ;;\n calendar|cal)\n COMPREPLY=($(compgen -W \"--assignee --assignee_filter --assignee-filter --author --date --format --from --full_period --full-period --help --id-only --include --json --limit --no-changed-fields --no-extensions --no-pager --occurrence-limit --past --path --pm-path --priority --profile --quiet --recurrence-lookahead-days --recurrence-lookback-days --release --sprint --status --tag --to --type --view\" -- \"$cur\"))\n ;;\n context|ctx)\n COMPREPLY=($(compgen -W \"--activity-limit --after --assignee --assignee_filter --assignee-filter --author --date --depth --explain_ranking --explain-ranking --fields --format --from --help --id-only --json --limit --max-items --no-changed-fields --no-extensions --no-pager --parent --past --path --pm-path --priority --profile --quiet --release --section --sprint --stale-threshold --tag --to --type\" -- \"$cur\"))\n ;;\n next)\n COMPREPLY=($(compgen -W \"--type --tag --priority --assignee --assignee-filter --assignee_filter --sprint --release --parent --limit --blocked-limit --blocked_limit --ready-only --ready_only --format --explain-ranking --explain_ranking --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n guide)\n COMPREPLY=($(compgen -W \"--list --format --depth --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author commands extensions harnesses quickstart release sdk skills workflows\" -- \"$cur\"))\n ;;\n search)\n COMPREPLY=($(compgen -W \"--after --assignee --author --compact --count --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-confidence-missing --filter-docs-missing --filter-files-missing --filter-release-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --highlight --hybrid --id-only --include-linked --json --limit --match-mode --min-score --mode --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --parent --path --phrase-exact --pm-path --priority --profile --quiet --release --semantic --semantic-weight --sprint --status --tag --tags --title-exact --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n reindex)\n COMPREPLY=($(compgen -W \"--mode --progress --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n init)\n COMPREPLY=($(compgen -W \"--id-prefix --prefix --preset --type-preset -y --defaults --yes --author --agent-guidance --with-packages --workspace --force --verbose --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n config)\n COMPREPLY=($(compgen -W \"--criterion --clear-criteria --format --policy --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n extension)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n package|packages)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --declarative --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n comments)\n COMPREPLY=($(compgen -W \"--add --body --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n notes)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n learnings)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n files)\n COMPREPLY=($(compgen -W \"discover --add --add-glob --remove --migrate --list --apply --note --append-stable --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n docs)\n COMPREPLY=($(compgen -W \"--add --add-glob --remove --migrate --note --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n append)\n COMPREPLY=($(compgen -W \"-b --body --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n deps)\n COMPREPLY=($(compgen -W \"--format --max-depth --collapse --summary --node-limit --edge-limit --token-budget --cursor --direction --kind --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n graph)\n COMPREPLY=($(compgen -W \"ancestors descendants predecessors successors paths impact analyze audit communities redundancy dominators plan --kind --max-depth --limit --after --direction --max-paths --sample --exempt-isolate --summary --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n test)\n COMPREPLY=($(compgen -W \"--add --add-json --remove --list --run --match --only-index --only-last --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-all)\n COMPREPLY=($(compgen -W \"--status --limit --offset --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-runs)\n COMPREPLY=($(compgen -W \"list status logs stop resume --status --limit --stream --tail --force --author --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n validate)\n COMPREPLY=($(compgen -W \"--check-metadata --metadata-profile --check-resolution --check-lifecycle --check-stale-blockers --dependency-cycle-severity --parent-cycle-severity --check-files --scan-mode --include-pm-internals --verbose-file-lists --verbose-diagnostics --all-affected-ids --strict-exit --fail-on-warn --fix-hints --auto-fix --dry-run --fix-scope --prune-missing --check-history-drift --check-command-references --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n health)\n COMPREPLY=($(compgen -W \"--strict-directories --strict-exit --fail-on-warn --check-only --check-telemetry --no-refresh --refresh-vectors --verbose-stale-items --brief --summary --skip-vectors --skip-integrity --skip-drift --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history)\n COMPREPLY=($(compgen -W \"--limit --compact --full --diff --field --verify --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-compact)\n COMPREPLY=($(compgen -W \"--before --ids --all-over --closed --all-streams --min-entries --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n get)\n COMPREPLY=($(compgen -W \"--depth --full --fields --at --tree --tree-depth --tree_depth --format --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history-redact)\n COMPREPLY=($(compgen -W \"--literal --regex --replacement --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-repair)\n COMPREPLY=($(compgen -W \"--all --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n schema)\n COMPREPLY=($(compgen -W \"list show show-status add-type remove-type add-status remove-status add-field remove-field list-fields show-field apply-preset --description --default-status --folder --alias --role --order --type --commands --cli-flag --required --required-on-create --no-allow-unset --required-types --infer --min-count --apply --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n profile)\n COMPREPLY=($(compgen -W \"list show apply lint agile ops research --dry-run --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n plan)\n COMPREPLY=($(compgen -W \"create show add-step update-step complete-step block-step reorder-step remove-step link unlink decision discovery validation resume approve materialize --title --description --scope --parent --related --blocks --blocked-by --blocked_by --harness --mode --resume-context --resume_context --tags --tag --priority --body --claim --from-search --from_search --template --step-title --step_title --step --step-body --step_body --step-owner --step_owner --step-status --step_status --step-evidence --step_evidence --step-blocked-reason --step_blocked_reason --step-replacement --step_replacement --depends-on --depends_on --link --link-kind --link_kind --link-note --link_note --promote-to-item-dep --promote_to_item_dep --allow-multiple-active --allow_multiple_active --file --test --doc --decision-text --decision_text --decision --decision-rationale --decision_rationale --decision-evidence --decision_evidence --discovery-text --discovery_text --discovery --validation-text --validation_text --validation --validation-command --validation_command --validation-expected --validation_expected --depth --field --fields --steps --materialize-type --materialize_type --materialize-parent --materialize_parent --materialize-tags --materialize_tags --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n activity)\n COMPREPLY=($(compgen -W \"--id --op --author --from --to --limit --compact --full --stream --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n contracts)\n COMPREPLY=($(compgen -W \"--action --command --summary --schema-only --flags-only --availability-only --runtime-only --active-only --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n gc)\n COMPREPLY=($(compgen -W \"--dry-run --scope --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n stats)\n COMPREPLY=($(compgen -W \"--storage --metadata-coverage --field-utilization --by-assignee --by-tag --by-priority --tag-prefix --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close|close-task)\n COMPREPLY=($(compgen -W \"--author --message --validate-close --duplicate-of --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close-many)\n COMPREPLY=($(compgen -W \"--filter-status --filter-type --filter-tag --filter-priority --filter-deadline-before --filter-deadline-after --filter-updated-after --filter-updated-before --filter-created-after --filter-created-before --filter-assignee --filter-assignee-filter --filter-assignee_filter --filter-parent --filter-sprint --filter-release --filter-reviewer-missing --filter-risk-missing --filter-confidence-missing --filter-sprint-missing --filter-release-missing --filter-has-notes --filter-no-notes --filter-has-learnings --filter-no-learnings --filter-has-files --filter-no-files --filter-has-docs --filter-no-docs --filter-has-tests --filter-no-tests --filter-has-comments --filter-no-comments --filter-has-deps --filter-no-deps --filter-has-body --filter-empty-body --filter-has-linked-command --filter-no-linked-command --ids --limit --offset --reason --resolution --expected-result --expected_result --expected --actual-result --actual_result --actual --validate-close --author --message --force --dry-run --rollback --no-checkpoint --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n release)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n delete)\n COMPREPLY=($(compgen -W \"--dry-run --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n claim|restore|start-task|pause-task)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n meet|event)\n COMPREPLY=($(compgen -W \"--start --duration --end --location --timezone --all-day --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n remind)\n COMPREPLY=($(compgen -W \"--at --text --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n completion)\n COMPREPLY=($(compgen -W \"--eager-tags --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author bash zsh fish\" -- \"$cur\"))\n ;;\n templates)\n COMPREPLY=($(compgen -W \"save list show\" -- \"$cur\"))\n ;;\n *)\n COMPREPLY=($(compgen -W \"--json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author --version\" -- \"$cur\"))\n ;;\n esac\n return 0\n}\n\ncomplete -F _pm_completion pm verbs or an explicit internal registry.\\n\\n## Verification\\nMeasure root-help and compact-contract token deltas; snapshot the generated bash/zsh/fish scripts; execute each completion path against built-in plus custom types/statuses/tags; prove old helper spellings remain compatibility aliases or internal entrypoints until the grammar migration policy permits removal.\\n\\n## Duplicate check\\nAll-status exact-title searches for each helper returned zero items. Focused all-term search for runtime resolved shell completion helper hiding found only closed general help/completion work and no focused open owner. Related scopes are pm-e2bq (tiered help), pm-mu8m (generated completion/contracts surfaces), and pm-lp4j (internal worker hiding)."},{"op":"add","path":"/metadata/id","value":"pm-szdc"},{"op":"add","path":"/metadata/title","value":"Hide runtime completion helper entrypoints from the default agent-facing command surface"},{"op":"add","path":"/metadata/description","value":"The live 2026-07-18 root command census exposes completion-statuses, completion-tags, and completion-types as ordinary top-level commands even though they are runtime plumbing used by generated shell completion scripts. Preserve every completion capability and explicit internal invocation path, but hide these helpers from default help, compact contracts, docs, MCP discovery, and the canonical grammar budget."},{"op":"add","path":"/metadata/type","value":"Task"},{"op":"add","path":"/metadata/status","value":"open"},{"op":"add","path":"/metadata/priority","value":2},{"op":"add","path":"/metadata/tags","value":["agent-ux","area:cli","area:contracts","completion","internal-command","simplification","token-efficiency"]},{"op":"add","path":"/metadata/created_at","value":"2026-07-18T14:04:52.766Z"},{"op":"add","path":"/metadata/updated_at","value":"2026-07-18T14:04:52.766Z"},{"op":"add","path":"/metadata/author","value":"codex-ecosystem-planner"},{"op":"add","path":"/metadata/estimated_minutes","value":120},{"op":"add","path":"/metadata/acceptance_criteria","value":"Default pm --help and compact contracts do not list completion-statuses, completion-tags, or completion-types; generated bash/zsh/fish completion still resolves runtime statuses, tags, and types; an explicit internal or completion-plumbing discovery path remains testable; byte-for-byte completion behavior and exit semantics are preserved; snapshots, contracts, docs, and token-budget baselines prove zero feature loss and reduced default surface."},{"op":"add","path":"/metadata/parent","value":"pm-n7rr"},{"op":"add","path":"/metadata/risk","value":"low"},{"op":"add","path":"/metadata/confidence","value":"high"},{"op":"add","path":"/metadata/dependencies","value":[{"id":"pm-e2bq","kind":"related","created_at":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner"},{"id":"pm-lp4j","kind":"related","created_at":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner"},{"id":"pm-mu8m","kind":"related","created_at":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner"}]}],"before_hash":"3cc22dff72be7b14824654a7a64ea62b04799939b2fee54c1b5f52ca60bf6df0","after_hash":"258a300e61c5152ec550f6f9624ad645b5d75f219bac9ffc3481ab8db8c772cc","message":""}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

This line contains literal unescaped newlines inside the JSON string value for the /body path. Literal control characters (like newlines) are syntactically invalid in JSON strings. Additionally, JSONL (JSON Lines) format strictly requires each JSON object to be contained entirely on a single line. All newlines within string values must be escaped as \n.

{"ts":"2026-07-18T14:11:16.492Z","author":"codex-ecosystem-planner","op":"test_run_track","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-07-18T14:11:16.492Z"},{"op":"add","path":"/metadata/test_runs","value":[{"run_id":"test-local-mrqg36v5-oo4quu","kind":"test","status":"passed","started_at":"2026-07-18T14:10:59.860Z","finished_at":"2026-07-18T14:11:16.481Z","recorded_at":"2026-07-18T14:11:16.481Z","passed":1,"failed":0,"skipped":0}]}],"before_hash":"70bd2b27b7e7bd9dc874954adda97f854b04211f2a2bf6266622f89a23cecc79","after_hash":"cd24e8d91cc2ae1f5c00b22e41f0c7ac1745fa7fa8d26aeaca0b877b00ef29fb","message":"Track test run summary (test-local-mrqg36v5-oo4quu)"}
{"ts":"2026-07-18T14:12:45.309Z","author":"codex-ecosystem-planner","op":"comment_add","patch":[{"op":"add","path":"/metadata/comments/1","value":{"created_at":"2026-07-18T14:12:45.306Z","author":"codex-ecosystem-planner","text":"Planning verification: focused linked suite passed 3 files / 125 tests in an isolated tracker context. Post-mutation all-status validation is ok with zero history drift; graph remains zero-actionable with no active isolates; exact/fuzzy duplicate result remains limited to the already-canceled accidental probe cluster and parent-scope duplicates remain zero. This item intentionally stays open for future implementation."}},{"op":"replace","path":"/metadata/updated_at","value":"2026-07-18T14:12:45.309Z"}],"before_hash":"cd24e8d91cc2ae1f5c00b22e41f0c7ac1745fa7fa8d26aeaca0b877b00ef29fb","after_hash":"097835db1ddb06e22cedd8785b855b5290797837ec1db7fa615c4c1f32d567b5"}
{"ts":"2026-07-18T14:12:45.991Z","author":"codex-ecosystem-planner","op":"learning_add","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-07-18T14:12:45.991Z"},{"op":"add","path":"/metadata/learnings","value":[{"created_at":"2026-07-18T14:12:45.990Z","author":"codex-ecosystem-planner","text":"Command-surface audits must classify visibility as well as capability: a runtime helper can be correct, tested, and required by shell completion while still being harmful in default agent discovery. Contracts need an explicit public, compatibility-alias, extension-owned, or internal-plumbing visibility class so generated help cannot re-promote helpers accidentally."}]}],"before_hash":"097835db1ddb06e22cedd8785b855b5290797837ec1db7fa615c4c1f32d567b5","after_hash":"006f28f63cbf565ac8d64e1b819815cca18ab21cef1ccc25282130a950dea119"}
{"ts":"2026-07-18T14:14:27.117Z","author":"codex-ecosystem-planner","op":"update","patch":[{"op":"replace","path":"/body","value":"## Problem\nThe default root help currently advertises three runtime data providers as if agents should invoke them directly: completion-statuses, completion-tags, and completion-types. This adds three nouns to the discovery surface without adding user capability.\n\n## Desired design\nTreat these entrypoints as internal completion plumbing. The public pm completion noun remains discoverable; generated shell scripts keep a stable way to request live schema values; internal helpers are hidden from ordinary help, contracts, docs, and MCP enumeration and may be routed beneath completion verbs or an explicit internal registry.\n\n## Verification\nMeasure root-help and compact-contract token deltas; snapshot generated bash, zsh, and fish scripts; execute each completion path against built-in plus custom types, statuses, and tags; prove old helper spellings remain compatibility aliases or internal entrypoints until the grammar migration policy permits removal.\n\n## Duplicate check\nAll-status exact-title searches for each helper returned zero items. Focused all-term search for runtime resolved shell completion helper hiding found only closed general help/completion work and no focused open owner. Related scopes are pm-e2bq for tiered help, pm-mu8m for generated completion/contracts surfaces, and pm-lp4j for internal worker hiding."},{"op":"replace","path":"/metadata/updated_at","value":"2026-07-18T14:14:27.117Z"}],"before_hash":"006f28f63cbf565ac8d64e1b819815cca18ab21cef1ccc25282130a950dea119","after_hash":"969e1aae34761a41350acd7d10342dcd46ba336c4c1d065f48ac24255bb47071","message":"Correct body after shell-expanded completion example was detected during diff review"}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

This line contains literal unescaped newlines inside the JSON string value for the /body path. Literal control characters (like newlines) are syntactically invalid in JSON strings. Additionally, JSONL (JSON Lines) format strictly requires each JSON object to be contained entirely on a single line. All newlines within string values must be escaped as \n.

@codecov

codecov Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@greptile-apps

greptile-apps Bot commented Jul 18, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR updates tracker roadmap and governance records for the command-surface and context roadmap pass. The main changes are:

  • Added pm-szdc to track hiding completion helper entrypoints from default agent discovery.
  • Updated canonical epics for command simplification, SDK-first ownership, scale, history, context ranking, and governance.
  • Recorded matching immutable history events and publication evidence for the tracker-only pass.
  • Refreshed the managed extension registry timestamp.

Confidence Score: 5/5

Safe to merge with minimal risk.

The PR changes tracker metadata, roadmap notes, and matching history records only. The new task has parentage, acceptance criteria, linked evidence, test references, and history events. No runtime product code or behavior-changing configuration was modified.

No files require special attention.

T-Rex T-Rex Logs

What T-Rex did

  • T-Rex executed the general contract validation workflow, running the build, validate JSON, graph audit JSON, changelog check, and git diff checks.
  • All key steps reported exit 0 according to the proof summary.
  • Proof logs for versions, build, validate JSON, graph audit JSON, changelog check, whitespace diff check, and command-exit summary were saved under trex-artifacts.
  • Each log is available via a URL to review and inspect.

View all artifacts

T-Rex Ran code and verified through T-Rex

Important Files Changed

Filename Overview
.agents/pm/tasks/pm-szdc.toon Adds a focused open task to hide completion runtime helper entrypoints from default discovery while preserving shell completion behavior.
.agents/pm/epics/pm-n7rr.toon Updates command-surface census and clarifies completion helper visibility without removing compatibility behavior.
.agents/pm/milestones/pm-doxj.toon Adds all-status ecosystem review, post-organization verification, and PR publication comments.
.agents/pm/features/pm-4k6b.toon Adds context-engine algorithm catalog verification and acceptance objective guidance.
.agents/pm/epics/pm-9rxu.toon Adds scale-governance matrix and current corpus metrics while preserving the existing pm-801d-led sequence.
.agents/pm/history/pm-szdc.jsonl Creates the new task history stream with corrected body, linked evidence, tests, learning, and publication note.

Sequence Diagram

%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant Reviewer as Ecosystem review pass
participant Roadmap as pm-doxj roadmap
participant Epics as Canonical living epics
participant Task as pm-szdc task
participant History as JSONL history streams

Reviewer->>Roadmap: Record all-status corpus, validation, graph, duplicate evidence
Reviewer->>Epics: Add command-surface, SDK, scale, context, governance, history notes
Reviewer->>Task: Create focused completion-helper visibility gap
Task->>History: Append create, evidence, tests, learning, publication events
Epics->>History: Append corresponding note/comment history events
Roadmap->>History: Append verification and publication history events
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
participant Reviewer as Ecosystem review pass
participant Roadmap as pm-doxj roadmap
participant Epics as Canonical living epics
participant Task as pm-szdc task
participant History as JSONL history streams

Reviewer->>Roadmap: Record all-status corpus, validation, graph, duplicate evidence
Reviewer->>Epics: Add command-surface, SDK, scale, context, governance, history notes
Reviewer->>Task: Create focused completion-helper visibility gap
Task->>History: Append create, evidence, tests, learning, publication events
Epics->>History: Append corresponding note/comment history events
Roadmap->>History: Append verification and publication history events
Loading

Reviews (2): Last reviewed commit: "Clarify completion and bulk-test grammar..." | Re-trigger Greptile

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.agents/pm/epics/pm-n7rr.toon:
- Around line 40-46: Update the charter’s target-surface list to include the
canonical `completion` and `test-all` surfaces identified in the census. If
either is intentionally excluded, explicitly document that the list omits
shell-only/helper or bulk spellings while preserving their availability through
shell completion and the appropriate bulk command family.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

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

Review profile: ASSERTIVE

Plan: Pro

Run ID: 03df86d4-5ebf-4a47-b6fe-b3ff128fad8e

📥 Commits

Reviewing files that changed from the base of the PR and between 3baca0a and bc579a4.

📒 Files selected for processing (17)
  • .agents/pm/epics/pm-33cw.toon
  • .agents/pm/epics/pm-9rxu.toon
  • .agents/pm/epics/pm-n7rr.toon
  • .agents/pm/epics/pm-o2kc.toon
  • .agents/pm/epics/pm-usfg.toon
  • .agents/pm/extensions/.managed-extensions.json
  • .agents/pm/features/pm-4k6b.toon
  • .agents/pm/history/pm-33cw.jsonl
  • .agents/pm/history/pm-4k6b.jsonl
  • .agents/pm/history/pm-9rxu.jsonl
  • .agents/pm/history/pm-doxj.jsonl
  • .agents/pm/history/pm-n7rr.jsonl
  • .agents/pm/history/pm-o2kc.jsonl
  • .agents/pm/history/pm-szdc.jsonl
  • .agents/pm/history/pm-usfg.jsonl
  • .agents/pm/milestones/pm-doxj.toon
  • .agents/pm/tasks/pm-szdc.toon

Comment thread .agents/pm/epics/pm-n7rr.toon Resolved

@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 updates the project management roadmap and tracking files, including the creation of a new task (pm-szdc) to hide runtime completion helper entrypoints from the default command surface. A critical formatting issue was identified in the history file for the new task, where unescaped literal newlines break the JSON Lines format.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@@ -0,0 +1,11 @@
{"ts":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner","op":"create","patch":[{"op":"replace","path":"/body","value":"## Problem\\nThe default root help currently advertises three runtime data providers as if agents should invoke them directly: completion-statuses, completion-tags, and completion-types. This adds three nouns to the discovery surface without adding user capability.\\n\\n## Desired design\\nTreat these entrypoints like internal completion plumbing. The public # bash completion for pm\n# Source this file or add 'eval \"$(pm completion bash)\"' to ~/.bashrc\n\n_pm_completion_type_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TYPE_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TYPE_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_TYPE_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-types 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"Chore Decision Epic Event Feature Issue Meeting Milestone Plan Reminder Story Task\"\n fi\n PM_COMPLETION_TYPE_CACHE=\"$resolved\"\n PM_COMPLETION_TYPE_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n}\n\n_pm_completion_status_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_STATUS_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_STATUS_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_STATUS_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-statuses 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"blocked canceled closed draft in_progress open\"\n fi\n PM_COMPLETION_STATUS_CACHE=\"$resolved\"\n PM_COMPLETION_STATUS_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n}\n\n_pm_completion() {\n local cur prev words cword\n _init_completion 2>/dev/null || {\n cur=\"${COMP_WORDS[COMP_CWORD]}\"\n prev=\"${COMP_WORDS[COMP_CWORD-1]}\"\n cword=$COMP_CWORD\n }\n\n if [[ $cword -eq 1 ]]; then\n COMPREPLY=($(compgen -W \"init config extension package packages install upgrade create copy focus list list-all list-draft list-open list-in-progress list-blocked list-closed list-canceled aggregate context ctx get graph search eval next history history-redact history-repair history-compact schema profile activity restore update update-many close close-many delete append comments notes learnings files docs deps plan test test-all telemetry stats health validate gc contracts claim release start-task pause-task close-task meet event remind help\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--type\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_type_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--status\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_status_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--tag\" || \"$prev\" == \"--tags\" ]]; then\n local now ttl cache_ts tag_values\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TAG_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TAG_CACHE_TS:-0}\"\n tag_values=\"${PM_COMPLETION_TAG_CACHE:-}\"\n if [[ -z \"$tag_values\" || \"$now\" -eq 0 || $((now - cache_ts)) -ge \"$ttl\" ]]; then\n tag_values=\"$(pm completion-tags 2>/dev/null)\"\n PM_COMPLETION_TAG_CACHE=\"$tag_values\"\n PM_COMPLETION_TAG_CACHE_TS=\"$now\"\n fi\n COMPREPLY=($(compgen -W \"$tag_values\" -- \"$cur\"))\n return 0\n fi\n\n local cmd=\"${COMP_WORDS[1]}\"\n\n case \"$cmd\" in\n list|list-all|list-draft|list-open|list-in-progress|list-blocked|list-closed|list-canceled)\n COMPREPLY=($(compgen -W \"--after --all --assignee --assignee_filter --assignee-filter --author --brief --compact --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-ac-missing --filter-confidence-missing --filter-docs-missing --filter-estimate-missing --filter-estimates-missing --filter-files-missing --filter-metadata-missing --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --id-only --ids --include-body --json --limit --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --no-truncate --offset --order --parent --path --pm-path --priority --profile --quiet --recent --release --sort --sprint --status --stream --tag --tags --today --tree --tree_depth --tree-depth --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n aggregate)\n COMPREPLY=($(compgen -W \"--group-by --count --completion --sum --avg --include-unparented --include_unparented --status --type --tag --priority --deadline-before --deadline-after --assignee --assignee-filter --assignee_filter --parent --sprint --release --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n create)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --allow-missing-parent --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --create_mode --create-mode --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --goal --help --id --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --reporter --repro_steps --repro-steps --resolution --reviewer --risk --schedule_preset --schedule-preset --severity --sprint --status --tag --tags --template --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n copy)\n COMPREPLY=($(compgen -W \"--title --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n focus)\n COMPREPLY=($(compgen -W \"--clear --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n update)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --close_reason --close-reason --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --force --goal --help --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --severity --sprint --status --tag --tags --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n update-many)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --author --body --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --dry-run --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --file --filter-ac-missing --filter-assignee --filter-assignee_filter --filter-assignee-filter --filter-confidence-missing --filter-created-after --filter-created-before --filter-deadline-after --filter-deadline-before --filter-empty-body --filter-estimate-missing --filter-estimates-missing --filter-has-body --filter-has-comments --filter-has-deps --filter-has-docs --filter-has-files --filter-has-learnings --filter-has-linked-command --filter-has-notes --filter-has-tests --filter-metadata-missing --filter-no-comments --filter-no-deps --filter-no-docs --filter-no-files --filter-no-learnings --filter-no-linked-command --filter-no-notes --filter-no-tests --filter-parent --filter-priority --filter-release --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint --filter-sprint-missing --filter-status --filter-tag --filter-type --filter-updated-after --filter-updated-before --fixed_version --fixed-version --force --goal --help --id-only --ids --impact --json --learning --limit --message --no-changed-fields --no-checkpoint --no-extensions --no-pager --note --objective --offset --order --outcome --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --rollback --severity --sprint --tag --tags --test --title --type --type_option --type-option --unset --value --why_now --why-now -b -d -p -t\" -- \"$cur\"))\n ;;\n calendar|cal)\n COMPREPLY=($(compgen -W \"--assignee --assignee_filter --assignee-filter --author --date --format --from --full_period --full-period --help --id-only --include --json --limit --no-changed-fields --no-extensions --no-pager --occurrence-limit --past --path --pm-path --priority --profile --quiet --recurrence-lookahead-days --recurrence-lookback-days --release --sprint --status --tag --to --type --view\" -- \"$cur\"))\n ;;\n context|ctx)\n COMPREPLY=($(compgen -W \"--activity-limit --after --assignee --assignee_filter --assignee-filter --author --date --depth --explain_ranking --explain-ranking --fields --format --from --help --id-only --json --limit --max-items --no-changed-fields --no-extensions --no-pager --parent --past --path --pm-path --priority --profile --quiet --release --section --sprint --stale-threshold --tag --to --type\" -- \"$cur\"))\n ;;\n next)\n COMPREPLY=($(compgen -W \"--type --tag --priority --assignee --assignee-filter --assignee_filter --sprint --release --parent --limit --blocked-limit --blocked_limit --ready-only --ready_only --format --explain-ranking --explain_ranking --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n guide)\n COMPREPLY=($(compgen -W \"--list --format --depth --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author commands extensions harnesses quickstart release sdk skills workflows\" -- \"$cur\"))\n ;;\n search)\n COMPREPLY=($(compgen -W \"--after --assignee --author --compact --count --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-confidence-missing --filter-docs-missing --filter-files-missing --filter-release-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --highlight --hybrid --id-only --include-linked --json --limit --match-mode --min-score --mode --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --parent --path --phrase-exact --pm-path --priority --profile --quiet --release --semantic --semantic-weight --sprint --status --tag --tags --title-exact --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n reindex)\n COMPREPLY=($(compgen -W \"--mode --progress --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n init)\n COMPREPLY=($(compgen -W \"--id-prefix --prefix --preset --type-preset -y --defaults --yes --author --agent-guidance --with-packages --workspace --force --verbose --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n config)\n COMPREPLY=($(compgen -W \"--criterion --clear-criteria --format --policy --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n extension)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n package|packages)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --declarative --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n comments)\n COMPREPLY=($(compgen -W \"--add --body --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n notes)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n learnings)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n files)\n COMPREPLY=($(compgen -W \"discover --add --add-glob --remove --migrate --list --apply --note --append-stable --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n docs)\n COMPREPLY=($(compgen -W \"--add --add-glob --remove --migrate --note --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n append)\n COMPREPLY=($(compgen -W \"-b --body --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n deps)\n COMPREPLY=($(compgen -W \"--format --max-depth --collapse --summary --node-limit --edge-limit --token-budget --cursor --direction --kind --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n graph)\n COMPREPLY=($(compgen -W \"ancestors descendants predecessors successors paths impact analyze audit communities redundancy dominators plan --kind --max-depth --limit --after --direction --max-paths --sample --exempt-isolate --summary --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n test)\n COMPREPLY=($(compgen -W \"--add --add-json --remove --list --run --match --only-index --only-last --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-all)\n COMPREPLY=($(compgen -W \"--status --limit --offset --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-runs)\n COMPREPLY=($(compgen -W \"list status logs stop resume --status --limit --stream --tail --force --author --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n validate)\n COMPREPLY=($(compgen -W \"--check-metadata --metadata-profile --check-resolution --check-lifecycle --check-stale-blockers --dependency-cycle-severity --parent-cycle-severity --check-files --scan-mode --include-pm-internals --verbose-file-lists --verbose-diagnostics --all-affected-ids --strict-exit --fail-on-warn --fix-hints --auto-fix --dry-run --fix-scope --prune-missing --check-history-drift --check-command-references --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n health)\n COMPREPLY=($(compgen -W \"--strict-directories --strict-exit --fail-on-warn --check-only --check-telemetry --no-refresh --refresh-vectors --verbose-stale-items --brief --summary --skip-vectors --skip-integrity --skip-drift --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history)\n COMPREPLY=($(compgen -W \"--limit --compact --full --diff --field --verify --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-compact)\n COMPREPLY=($(compgen -W \"--before --ids --all-over --closed --all-streams --min-entries --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n get)\n COMPREPLY=($(compgen -W \"--depth --full --fields --at --tree --tree-depth --tree_depth --format --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history-redact)\n COMPREPLY=($(compgen -W \"--literal --regex --replacement --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-repair)\n COMPREPLY=($(compgen -W \"--all --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n schema)\n COMPREPLY=($(compgen -W \"list show show-status add-type remove-type add-status remove-status add-field remove-field list-fields show-field apply-preset --description --default-status --folder --alias --role --order --type --commands --cli-flag --required --required-on-create --no-allow-unset --required-types --infer --min-count --apply --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n profile)\n COMPREPLY=($(compgen -W \"list show apply lint agile ops research --dry-run --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n plan)\n COMPREPLY=($(compgen -W \"create show add-step update-step complete-step block-step reorder-step remove-step link unlink decision discovery validation resume approve materialize --title --description --scope --parent --related --blocks --blocked-by --blocked_by --harness --mode --resume-context --resume_context --tags --tag --priority --body --claim --from-search --from_search --template --step-title --step_title --step --step-body --step_body --step-owner --step_owner --step-status --step_status --step-evidence --step_evidence --step-blocked-reason --step_blocked_reason --step-replacement --step_replacement --depends-on --depends_on --link --link-kind --link_kind --link-note --link_note --promote-to-item-dep --promote_to_item_dep --allow-multiple-active --allow_multiple_active --file --test --doc --decision-text --decision_text --decision --decision-rationale --decision_rationale --decision-evidence --decision_evidence --discovery-text --discovery_text --discovery --validation-text --validation_text --validation --validation-command --validation_command --validation-expected --validation_expected --depth --field --fields --steps --materialize-type --materialize_type --materialize-parent --materialize_parent --materialize-tags --materialize_tags --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n activity)\n COMPREPLY=($(compgen -W \"--id --op --author --from --to --limit --compact --full --stream --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n contracts)\n COMPREPLY=($(compgen -W \"--action --command --summary --schema-only --flags-only --availability-only --runtime-only --active-only --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n gc)\n COMPREPLY=($(compgen -W \"--dry-run --scope --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n stats)\n COMPREPLY=($(compgen -W \"--storage --metadata-coverage --field-utilization --by-assignee --by-tag --by-priority --tag-prefix --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close|close-task)\n COMPREPLY=($(compgen -W \"--author --message --validate-close --duplicate-of --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close-many)\n COMPREPLY=($(compgen -W \"--filter-status --filter-type --filter-tag --filter-priority --filter-deadline-before --filter-deadline-after --filter-updated-after --filter-updated-before --filter-created-after --filter-created-before --filter-assignee --filter-assignee-filter --filter-assignee_filter --filter-parent --filter-sprint --filter-release --filter-reviewer-missing --filter-risk-missing --filter-confidence-missing --filter-sprint-missing --filter-release-missing --filter-has-notes --filter-no-notes --filter-has-learnings --filter-no-learnings --filter-has-files --filter-no-files --filter-has-docs --filter-no-docs --filter-has-tests --filter-no-tests --filter-has-comments --filter-no-comments --filter-has-deps --filter-no-deps --filter-has-body --filter-empty-body --filter-has-linked-command --filter-no-linked-command --ids --limit --offset --reason --resolution --expected-result --expected_result --expected --actual-result --actual_result --actual --validate-close --author --message --force --dry-run --rollback --no-checkpoint --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n release)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n delete)\n COMPREPLY=($(compgen -W \"--dry-run --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n claim|restore|start-task|pause-task)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n meet|event)\n COMPREPLY=($(compgen -W \"--start --duration --end --location --timezone --all-day --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n remind)\n COMPREPLY=($(compgen -W \"--at --text --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n completion)\n COMPREPLY=($(compgen -W \"--eager-tags --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author bash zsh fish\" -- \"$cur\"))\n ;;\n templates)\n COMPREPLY=($(compgen -W \"save list show\" -- \"$cur\"))\n ;;\n *)\n COMPREPLY=($(compgen -W \"--json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author --version\" -- \"$cur\"))\n ;;\n esac\n return 0\n}\n\ncomplete -F _pm_completion pm noun remains discoverable; generated shell scripts keep a stable way to request live schema values; internal helpers are hidden from ordinary help/contracts/docs/MCP enumeration and may be routed beneath # bash completion for pm\n# Source this file or add 'eval \"$(pm completion bash)\"' to ~/.bashrc\n\n_pm_completion_type_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TYPE_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TYPE_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_TYPE_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-types 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"Chore Decision Epic Event Feature Issue Meeting Milestone Plan Reminder Story Task\"\n fi\n PM_COMPLETION_TYPE_CACHE=\"$resolved\"\n PM_COMPLETION_TYPE_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_TYPE_CACHE\"\n}\n\n_pm_completion_status_choices() {\n local now ttl cache_ts resolved\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_STATUS_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_STATUS_CACHE_TS:-0}\"\n if [[ -n \"${PM_COMPLETION_STATUS_CACHE:-}\" && \"$now\" -ne 0 && $((now - cache_ts)) -lt \"$ttl\" ]]; then\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n return 0\n fi\n resolved=\"$(pm completion-statuses 2>/dev/null)\"\n if [[ -z \"$resolved\" ]]; then\n resolved=\"blocked canceled closed draft in_progress open\"\n fi\n PM_COMPLETION_STATUS_CACHE=\"$resolved\"\n PM_COMPLETION_STATUS_CACHE_TS=\"$now\"\n printf '%s\\n' \"$PM_COMPLETION_STATUS_CACHE\"\n}\n\n_pm_completion() {\n local cur prev words cword\n _init_completion 2>/dev/null || {\n cur=\"${COMP_WORDS[COMP_CWORD]}\"\n prev=\"${COMP_WORDS[COMP_CWORD-1]}\"\n cword=$COMP_CWORD\n }\n\n if [[ $cword -eq 1 ]]; then\n COMPREPLY=($(compgen -W \"init config extension package packages install upgrade create copy focus list list-all list-draft list-open list-in-progress list-blocked list-closed list-canceled aggregate context ctx get graph search eval next history history-redact history-repair history-compact schema profile activity restore update update-many close close-many delete append comments notes learnings files docs deps plan test test-all telemetry stats health validate gc contracts claim release start-task pause-task close-task meet event remind help\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--type\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_type_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--status\" ]]; then\n COMPREPLY=($(compgen -W \"$(_pm_completion_status_choices)\" -- \"$cur\"))\n return 0\n fi\n\n if [[ \"$prev\" == \"--tag\" || \"$prev\" == \"--tags\" ]]; then\n local now ttl cache_ts tag_values\n now=\"$(date +%s 2>/dev/null || echo 0)\"\n ttl=\"${PM_COMPLETION_TAG_TTL:-120}\"\n cache_ts=\"${PM_COMPLETION_TAG_CACHE_TS:-0}\"\n tag_values=\"${PM_COMPLETION_TAG_CACHE:-}\"\n if [[ -z \"$tag_values\" || \"$now\" -eq 0 || $((now - cache_ts)) -ge \"$ttl\" ]]; then\n tag_values=\"$(pm completion-tags 2>/dev/null)\"\n PM_COMPLETION_TAG_CACHE=\"$tag_values\"\n PM_COMPLETION_TAG_CACHE_TS=\"$now\"\n fi\n COMPREPLY=($(compgen -W \"$tag_values\" -- \"$cur\"))\n return 0\n fi\n\n local cmd=\"${COMP_WORDS[1]}\"\n\n case \"$cmd\" in\n list|list-all|list-draft|list-open|list-in-progress|list-blocked|list-closed|list-canceled)\n COMPREPLY=($(compgen -W \"--after --all --assignee --assignee_filter --assignee-filter --author --brief --compact --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-ac-missing --filter-confidence-missing --filter-docs-missing --filter-estimate-missing --filter-estimates-missing --filter-files-missing --filter-metadata-missing --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --id-only --ids --include-body --json --limit --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --no-truncate --offset --order --parent --path --pm-path --priority --profile --quiet --recent --release --sort --sprint --status --stream --tag --tags --today --tree --tree_depth --tree-depth --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n aggregate)\n COMPREPLY=($(compgen -W \"--group-by --count --completion --sum --avg --include-unparented --include_unparented --status --type --tag --priority --deadline-before --deadline-after --assignee --assignee-filter --assignee_filter --parent --sprint --release --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n create)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --allow-missing-parent --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --create_mode --create-mode --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --goal --help --id --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --reporter --repro_steps --repro-steps --resolution --reviewer --risk --schedule_preset --schedule-preset --severity --sprint --status --tag --tags --template --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n copy)\n COMPREPLY=($(compgen -W \"--title --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n focus)\n COMPREPLY=($(compgen -W \"--clear --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n update)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --assignee --author --blocked_by --blocked_reason --blocked-by --blocked-reason --body --body-file --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --close_reason --close-reason --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --field --file --fixed_version --fixed-version --force --goal --help --id-only --impact --json --learning --message --no-changed-fields --no-extensions --no-pager --note --objective --order --outcome --parent --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --severity --sprint --status --tag --tags --test --title --type --type_option --type-option --unblock_note --unblock-note --unset --value --why_now --why-now -b -d -p -s -t\" -- \"$cur\"))\n ;;\n update-many)\n COMPREPLY=($(compgen -W \"--ac --acceptance_criteria --acceptance-criteria --actual --actual_result --actual-result --add_tags --add-tags --affected_version --affected-version --author --body --clear-comments --clear-deps --clear-docs --clear-events --clear-files --clear-learnings --clear-notes --clear-reminders --clear-tests --clear-type-options --comment --component --confidence --customer_impact --customer-impact --deadline --definition_of_ready --definition-of-ready --dep --dep_remove --dep-remove --description --doc --dry-run --environment --estimate --estimated_minutes --estimated-minutes --event --expected --expected_result --expected-result --file --filter-ac-missing --filter-assignee --filter-assignee_filter --filter-assignee-filter --filter-confidence-missing --filter-created-after --filter-created-before --filter-deadline-after --filter-deadline-before --filter-empty-body --filter-estimate-missing --filter-estimates-missing --filter-has-body --filter-has-comments --filter-has-deps --filter-has-docs --filter-has-files --filter-has-learnings --filter-has-linked-command --filter-has-notes --filter-has-tests --filter-metadata-missing --filter-no-comments --filter-no-deps --filter-no-docs --filter-no-files --filter-no-learnings --filter-no-linked-command --filter-no-notes --filter-no-tests --filter-parent --filter-priority --filter-release --filter-release-missing --filter-resolution-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint --filter-sprint-missing --filter-status --filter-tag --filter-type --filter-updated-after --filter-updated-before --fixed_version --fixed-version --force --goal --help --id-only --ids --impact --json --learning --limit --message --no-changed-fields --no-checkpoint --no-extensions --no-pager --note --objective --offset --order --outcome --path --pm-path --priority --profile --quiet --rank --regression --release --reminder --remove_tags --remove-tags --replace-deps --replace-tests --reporter --repro_steps --repro-steps --resolution --reviewer --risk --rollback --severity --sprint --tag --tags --test --title --type --type_option --type-option --unset --value --why_now --why-now -b -d -p -t\" -- \"$cur\"))\n ;;\n calendar|cal)\n COMPREPLY=($(compgen -W \"--assignee --assignee_filter --assignee-filter --author --date --format --from --full_period --full-period --help --id-only --include --json --limit --no-changed-fields --no-extensions --no-pager --occurrence-limit --past --path --pm-path --priority --profile --quiet --recurrence-lookahead-days --recurrence-lookback-days --release --sprint --status --tag --to --type --view\" -- \"$cur\"))\n ;;\n context|ctx)\n COMPREPLY=($(compgen -W \"--activity-limit --after --assignee --assignee_filter --assignee-filter --author --date --depth --explain_ranking --explain-ranking --fields --format --from --help --id-only --json --limit --max-items --no-changed-fields --no-extensions --no-pager --parent --past --path --pm-path --priority --profile --quiet --release --section --sprint --stale-threshold --tag --to --type\" -- \"$cur\"))\n ;;\n next)\n COMPREPLY=($(compgen -W \"--type --tag --priority --assignee --assignee-filter --assignee_filter --sprint --release --parent --limit --blocked-limit --blocked_limit --ready-only --ready_only --format --explain-ranking --explain_ranking --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n guide)\n COMPREPLY=($(compgen -W \"--list --format --depth --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author commands extensions harnesses quickstart release sdk skills workflows\" -- \"$cur\"))\n ;;\n search)\n COMPREPLY=($(compgen -W \"--after --assignee --author --compact --count --created-after --created-before --deadline-after --deadline-before --empty-body --fields --filter-confidence-missing --filter-docs-missing --filter-files-missing --filter-release-missing --filter-reviewer-missing --filter-risk-missing --filter-sprint-missing --format --full --has-body --has-comments --has-deps --has-docs --has-files --has-learnings --has-linked-command --has-notes --has-tests --help --highlight --hybrid --id-only --include-linked --json --limit --match-mode --min-score --mode --no-changed-fields --no-comments --no-deps --no-docs --no-extensions --no-files --no-learnings --no-linked-command --no-notes --no-pager --no-tests --parent --path --phrase-exact --pm-path --priority --profile --quiet --release --semantic --semantic-weight --sprint --status --tag --tags --title-exact --type --updated-after --updated-before\" -- \"$cur\"))\n ;;\n reindex)\n COMPREPLY=($(compgen -W \"--mode --progress --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n init)\n COMPREPLY=($(compgen -W \"--id-prefix --prefix --preset --type-preset -y --defaults --yes --author --agent-guidance --with-packages --workspace --force --verbose --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n config)\n COMPREPLY=($(compgen -W \"--criterion --clear-criteria --format --policy --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n extension)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n package|packages)\n COMPREPLY=($(compgen -W \"init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate --init --scaffold --capability --install --uninstall --explore --list --manage --describe --markdown --output --reload --watch --doctor --catalog --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --isolated --ignore-global --strict-exit --fail-on-warn --declarative --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n comments)\n COMPREPLY=($(compgen -W \"--add --body --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n notes)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n learnings)\n COMPREPLY=($(compgen -W \"--add --stdin --file --edit --delete --limit --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n files)\n COMPREPLY=($(compgen -W \"discover --add --add-glob --remove --migrate --list --apply --note --append-stable --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n docs)\n COMPREPLY=($(compgen -W \"--add --add-glob --remove --migrate --note --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n append)\n COMPREPLY=($(compgen -W \"-b --body --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n deps)\n COMPREPLY=($(compgen -W \"--format --max-depth --collapse --summary --node-limit --edge-limit --token-budget --cursor --direction --kind --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n graph)\n COMPREPLY=($(compgen -W \"ancestors descendants predecessors successors paths impact analyze audit communities redundancy dominators plan --kind --max-depth --limit --after --direction --max-paths --sample --exempt-isolate --summary --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n test)\n COMPREPLY=($(compgen -W \"--add --add-json --remove --list --run --match --only-index --only-last --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-all)\n COMPREPLY=($(compgen -W \"--status --limit --offset --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n test-runs)\n COMPREPLY=($(compgen -W \"list status logs stop resume --status --limit --stream --tail --force --author --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n validate)\n COMPREPLY=($(compgen -W \"--check-metadata --metadata-profile --check-resolution --check-lifecycle --check-stale-blockers --dependency-cycle-severity --parent-cycle-severity --check-files --scan-mode --include-pm-internals --verbose-file-lists --verbose-diagnostics --all-affected-ids --strict-exit --fail-on-warn --fix-hints --auto-fix --dry-run --fix-scope --prune-missing --check-history-drift --check-command-references --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n health)\n COMPREPLY=($(compgen -W \"--strict-directories --strict-exit --fail-on-warn --check-only --check-telemetry --no-refresh --refresh-vectors --verbose-stale-items --brief --summary --skip-vectors --skip-integrity --skip-drift --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history)\n COMPREPLY=($(compgen -W \"--limit --compact --full --diff --field --verify --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-compact)\n COMPREPLY=($(compgen -W \"--before --ids --all-over --closed --all-streams --min-entries --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n get)\n COMPREPLY=($(compgen -W \"--depth --full --fields --at --tree --tree-depth --tree_depth --format --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n history-redact)\n COMPREPLY=($(compgen -W \"--literal --regex --replacement --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n history-repair)\n COMPREPLY=($(compgen -W \"--all --dry-run --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n schema)\n COMPREPLY=($(compgen -W \"list show show-status add-type remove-type add-status remove-status add-field remove-field list-fields show-field apply-preset --description --default-status --folder --alias --role --order --type --commands --cli-flag --required --required-on-create --no-allow-unset --required-types --infer --min-count --apply --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n profile)\n COMPREPLY=($(compgen -W \"list show apply lint agile ops research --dry-run --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n plan)\n COMPREPLY=($(compgen -W \"create show add-step update-step complete-step block-step reorder-step remove-step link unlink decision discovery validation resume approve materialize --title --description --scope --parent --related --blocks --blocked-by --blocked_by --harness --mode --resume-context --resume_context --tags --tag --priority --body --claim --from-search --from_search --template --step-title --step_title --step --step-body --step_body --step-owner --step_owner --step-status --step_status --step-evidence --step_evidence --step-blocked-reason --step_blocked_reason --step-replacement --step_replacement --depends-on --depends_on --link --link-kind --link_kind --link-note --link_note --promote-to-item-dep --promote_to_item_dep --allow-multiple-active --allow_multiple_active --file --test --doc --decision-text --decision_text --decision --decision-rationale --decision_rationale --decision-evidence --decision_evidence --discovery-text --discovery_text --discovery --validation-text --validation_text --validation --validation-command --validation_command --validation-expected --validation_expected --depth --field --fields --steps --materialize-type --materialize_type --materialize-parent --materialize_parent --materialize-tags --materialize_tags --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n activity)\n COMPREPLY=($(compgen -W \"--id --op --author --from --to --limit --compact --full --stream --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n contracts)\n COMPREPLY=($(compgen -W \"--action --command --summary --schema-only --flags-only --availability-only --runtime-only --active-only --full --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author\" -- \"$cur\"))\n ;;\n gc)\n COMPREPLY=($(compgen -W \"--dry-run --scope --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n stats)\n COMPREPLY=($(compgen -W \"--storage --metadata-coverage --field-utilization --by-assignee --by-tag --by-priority --tag-prefix --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close|close-task)\n COMPREPLY=($(compgen -W \"--author --message --validate-close --duplicate-of --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n close-many)\n COMPREPLY=($(compgen -W \"--filter-status --filter-type --filter-tag --filter-priority --filter-deadline-before --filter-deadline-after --filter-updated-after --filter-updated-before --filter-created-after --filter-created-before --filter-assignee --filter-assignee-filter --filter-assignee_filter --filter-parent --filter-sprint --filter-release --filter-reviewer-missing --filter-risk-missing --filter-confidence-missing --filter-sprint-missing --filter-release-missing --filter-has-notes --filter-no-notes --filter-has-learnings --filter-no-learnings --filter-has-files --filter-no-files --filter-has-docs --filter-no-docs --filter-has-tests --filter-no-tests --filter-has-comments --filter-no-comments --filter-has-deps --filter-no-deps --filter-has-body --filter-empty-body --filter-has-linked-command --filter-no-linked-command --ids --limit --offset --reason --resolution --expected-result --expected_result --expected --actual-result --actual_result --actual --validate-close --author --message --force --dry-run --rollback --no-checkpoint --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n release)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n delete)\n COMPREPLY=($(compgen -W \"--dry-run --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n claim|restore|start-task|pause-task)\n COMPREPLY=($(compgen -W \"--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n meet|event)\n COMPREPLY=($(compgen -W \"--start --duration --end --location --timezone --all-day --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n remind)\n COMPREPLY=($(compgen -W \"--at --text --parent --allow-missing-parent --tags --priority --body --description --author --message --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help\" -- \"$cur\"))\n ;;\n completion)\n COMPREPLY=($(compgen -W \"--eager-tags --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author bash zsh fish\" -- \"$cur\"))\n ;;\n templates)\n COMPREPLY=($(compgen -W \"save list show\" -- \"$cur\"))\n ;;\n *)\n COMPREPLY=($(compgen -W \"--json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help --author --version\" -- \"$cur\"))\n ;;\n esac\n return 0\n}\n\ncomplete -F _pm_completion pm verbs or an explicit internal registry.\\n\\n## Verification\\nMeasure root-help and compact-contract token deltas; snapshot the generated bash/zsh/fish scripts; execute each completion path against built-in plus custom types/statuses/tags; prove old helper spellings remain compatibility aliases or internal entrypoints until the grammar migration policy permits removal.\\n\\n## Duplicate check\\nAll-status exact-title searches for each helper returned zero items. Focused all-term search for runtime resolved shell completion helper hiding found only closed general help/completion work and no focused open owner. Related scopes are pm-e2bq (tiered help), pm-mu8m (generated completion/contracts surfaces), and pm-lp4j (internal worker hiding)."},{"op":"add","path":"/metadata/id","value":"pm-szdc"},{"op":"add","path":"/metadata/title","value":"Hide runtime completion helper entrypoints from the default agent-facing command surface"},{"op":"add","path":"/metadata/description","value":"The live 2026-07-18 root command census exposes completion-statuses, completion-tags, and completion-types as ordinary top-level commands even though they are runtime plumbing used by generated shell completion scripts. Preserve every completion capability and explicit internal invocation path, but hide these helpers from default help, compact contracts, docs, MCP discovery, and the canonical grammar budget."},{"op":"add","path":"/metadata/type","value":"Task"},{"op":"add","path":"/metadata/status","value":"open"},{"op":"add","path":"/metadata/priority","value":2},{"op":"add","path":"/metadata/tags","value":["agent-ux","area:cli","area:contracts","completion","internal-command","simplification","token-efficiency"]},{"op":"add","path":"/metadata/created_at","value":"2026-07-18T14:04:52.766Z"},{"op":"add","path":"/metadata/updated_at","value":"2026-07-18T14:04:52.766Z"},{"op":"add","path":"/metadata/author","value":"codex-ecosystem-planner"},{"op":"add","path":"/metadata/estimated_minutes","value":120},{"op":"add","path":"/metadata/acceptance_criteria","value":"Default pm --help and compact contracts do not list completion-statuses, completion-tags, or completion-types; generated bash/zsh/fish completion still resolves runtime statuses, tags, and types; an explicit internal or completion-plumbing discovery path remains testable; byte-for-byte completion behavior and exit semantics are preserved; snapshots, contracts, docs, and token-budget baselines prove zero feature loss and reduced default surface."},{"op":"add","path":"/metadata/parent","value":"pm-n7rr"},{"op":"add","path":"/metadata/risk","value":"low"},{"op":"add","path":"/metadata/confidence","value":"high"},{"op":"add","path":"/metadata/dependencies","value":[{"id":"pm-e2bq","kind":"related","created_at":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner"},{"id":"pm-lp4j","kind":"related","created_at":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner"},{"id":"pm-mu8m","kind":"related","created_at":"2026-07-18T14:04:52.766Z","author":"codex-ecosystem-planner"}]}],"before_hash":"3cc22dff72be7b14824654a7a64ea62b04799939b2fee54c1b5f52ca60bf6df0","after_hash":"258a300e61c5152ec550f6f9624ad645b5d75f219bac9ffc3481ab8db8c772cc","message":""}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The JSON Lines format requires each line to be a single, valid JSON value. In this history entry, the "body" patch value contains literal newline characters (\n) rather than escaped newlines (\\n). This splits the single JSON object across multiple lines, corrupting the JSONL structure and causing parsers to fail. All newlines within JSON string values must be properly escaped.

Preserve public completion generation and test-all compatibility while distinguishing canonical user-facing nouns from internal runtime helper entrypoints. Record the clarification through immutable pm history with zero feature loss.
@unbraind
unbraind merged commit 22417d2 into main Jul 18, 2026
13 of 15 checks passed
@unbraind
unbraind deleted the agent/command-surface-context-roadmap-governance branch July 18, 2026 14:28
unbraind added a commit that referenced this pull request Jul 19, 2026
…reconciled clean (4e12 transaction waiver retired, 8ngt held open over kr3t, resolution 276 zero-leak); maintainer dogfood merge-safety wave filed as 14 items GH-595/598-604/606-609/611/612 (wc1r/9q2t/m3nl/wwfd/xdn6/gpo7/ol3p under g5sx, cxyv under 33cw, pibw under dj98, 4uqm/wrss/xh82 under mpbb, x29o/n1xx under usfg) with family map + execution order on g5sx; GH-610 mapped to i6pi as dup; GH-596/597 pm-links backfilled; census 1886n/3171e/242a zero actionable

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014XYPB6bCGL5t41DLywtcKW
@unbraind

unbraind commented Aug 4, 2026

Copy link
Copy Markdown
Owner Author

Tracked in PM: pm-h90s, pm-szdc.

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