@unbrained/pm-cli 2026.11.19 → 2026.11.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/.agents/skills/pm-sdk/SKILL.md +1 -1
  2. package/.agents/skills/pm-test-audit/SKILL.md +1 -1
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/AGENTS.md +1 -1
  5. package/CONTRIBUTING.md +2 -1
  6. package/dist/cli/error-guidance.js +2 -2
  7. package/dist/cli/register-list-query.js +2 -2
  8. package/dist/cli/runtime/refusal-credential-redaction.js +1 -1
  9. package/dist/cli-bundle/bundle-manifest.json +1 -1
  10. package/dist/cli-bundle/chunks/chunk-2DXRTIC6.js +21 -0
  11. package/dist/cli-bundle/chunks/{chunk-AGPFANRX.js → chunk-5647LU3A.js} +4 -4
  12. package/dist/cli-bundle/chunks/{chunk-CR5GC3VO.js → chunk-6QLEXRUG.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-XPBPGDFW.js → chunk-AHQB7W2H.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-4FNMPZ7Y.js → chunk-BKSVHOWI.js} +2 -2
  15. package/dist/cli-bundle/chunks/{chunk-GQCMICAL.js → chunk-CASX6SFI.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-NMVPQTZI.js → chunk-CIKGG34F.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-IQKCRLQP.js → chunk-D6ILFXZY.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-AOV5HG3Y.js → chunk-IUIOTAF6.js} +4 -4
  19. package/dist/cli-bundle/chunks/{chunk-PRVT7ITI.js → chunk-JVGRFU5H.js} +2 -2
  20. package/dist/cli-bundle/chunks/chunk-KQIZ34SF.js +3 -0
  21. package/dist/cli-bundle/chunks/{chunk-IUTN67EB.js → chunk-KVBIMFUG.js} +2 -2
  22. package/dist/cli-bundle/chunks/chunk-LQBWLNZJ.js +3 -0
  23. package/dist/cli-bundle/chunks/{chunk-AMHD7WIV.js → chunk-NCFCBKIP.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-M76BEWTT.js → chunk-NT5AKFE5.js} +30 -30
  25. package/dist/cli-bundle/chunks/chunk-PJXKA4QU.js +125 -0
  26. package/dist/cli-bundle/chunks/{chunk-2UTJ5QIE.js → chunk-RMIRNYRG.js} +2 -2
  27. package/dist/cli-bundle/chunks/{chunk-CNMGGAZO.js → chunk-RULHZRFN.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-O7IFAJ76.js → chunk-S6HB3WL2.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-CTOE26W4.js → chunk-SA4BNP3Q.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-Z5LHCEXG.js → chunk-SRVTCYAU.js} +2 -2
  31. package/dist/cli-bundle/chunks/{chunk-N2CPCFSN.js → chunk-WELSVDPU.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-P4A5RFLX.js → chunk-XHJ3H5PL.js} +2 -2
  33. package/dist/cli-bundle/chunks/{chunk-Q32Q3LRH.js → chunk-XWHJIRNV.js} +2 -2
  34. package/dist/cli-bundle/chunks/chunk-YJEBK7HU.js +8 -0
  35. package/dist/cli-bundle/chunks/chunk-YKJKQ7DM.js +115 -0
  36. package/dist/cli-bundle/chunks/{chunk-Y4LXVPA5.js → chunk-YMUSRWV4.js} +2 -2
  37. package/dist/cli-bundle/chunks/{chunk-HQYIKAC6.js → chunk-YR2KEBHP.js} +2 -2
  38. package/dist/cli-bundle/chunks/{indexed-receipt-blobs-ELEMA7IW.js → indexed-receipt-blobs-ITTXIN4K.js} +2 -2
  39. package/dist/cli-bundle/chunks/{item-revision-YJKGOYBR.js → item-revision-R5SZPJZ5.js} +2 -2
  40. package/dist/cli-bundle/chunks/item-transaction-7DFCG73I.js +2 -0
  41. package/dist/cli-bundle/chunks/{mutation-actor-DDYJW5B4.js → mutation-actor-3TG636XG.js} +2 -2
  42. package/dist/cli-bundle/chunks/{mutation-admission-JLMQJ2M5.js → mutation-admission-LICSDNNO.js} +2 -2
  43. package/dist/cli-bundle/chunks/{register-list-query-4AXLLXK7.js → register-list-query-SPGPS3OS.js} +10 -10
  44. package/dist/cli-bundle/chunks/{register-mutation-FJIXGGF4.js → register-mutation-WWVECKFQ.js} +2 -2
  45. package/dist/cli-bundle/chunks/{register-operations-W4E2KEMA.js → register-operations-L6HFJNWD.js} +2 -2
  46. package/dist/cli-bundle/chunks/{register-setup-RYRIBNSN.js → register-setup-K7UFG5TD.js} +2 -2
  47. package/dist/cli-bundle/chunks/{settlement-hook-E5LHZ4RD.js → settlement-hook-BXN5LEQD.js} +2 -2
  48. package/dist/cli-bundle/chunks/{stage-XGWW3T64.js → stage-57KH3KAC.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/{chunk-IXYBN6D2.js → chunk-3IRCYJI5.js} +3 -3
  50. package/dist/cli-bundle/focused-chunks/{chunk-DH4DHL6V.js → chunk-3V53UBHN.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-2XULTI5B.js → chunk-532WZV65.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-ZFUZ4YYN.js → chunk-7A4QWNZX.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-CR7CGEB2.js +3 -0
  54. package/dist/cli-bundle/focused-chunks/chunk-CU2BRAOX.js +2 -0
  55. package/dist/cli-bundle/focused-chunks/{chunk-7RF2YPZ5.js → chunk-CWWKRI5P.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-ICEHI4SN.js → chunk-HGFNL5XI.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-IQK5NPMG.js +13 -0
  58. package/dist/cli-bundle/focused-chunks/{chunk-OF4UM5B6.js → chunk-J63D6QST.js} +2 -2
  59. package/dist/cli-bundle/focused-chunks/{chunk-OAIAZHRG.js → chunk-JMQJBZQ5.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-4S7I342K.js → chunk-LNHUE4VV.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/{chunk-MTBC32ZR.js → chunk-MKM5NKD7.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-EZXLY6S4.js → chunk-NP72ZDXE.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/chunk-OSLQD5VH.js +102 -0
  64. package/dist/cli-bundle/focused-chunks/{chunk-OPY43DNJ.js → chunk-QGKLRXP7.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{chunk-77CDWGBW.js → chunk-QSJW6NSQ.js} +53 -53
  66. package/dist/cli-bundle/focused-chunks/{chunk-7Z2NYAK4.js → chunk-RPE6IX26.js} +2 -2
  67. package/dist/cli-bundle/focused-chunks/chunk-SRDQSA6M.js +91 -0
  68. package/dist/cli-bundle/focused-chunks/{chunk-D72EQN7Z.js → chunk-UOC6257J.js} +2 -2
  69. package/dist/cli-bundle/focused-chunks/{chunk-FPPYE6CY.js → chunk-URJ2E6AS.js} +2 -2
  70. package/dist/cli-bundle/focused-chunks/chunk-WXMI4AV5.js +8 -0
  71. package/dist/cli-bundle/focused-chunks/{chunk-N64BUB63.js → chunk-XCJSHNXK.js} +2 -2
  72. package/dist/cli-bundle/focused-chunks/{chunk-GAOWBALE.js → chunk-XQQSSKJI.js} +5 -5
  73. package/dist/cli-bundle/focused-chunks/{chunk-XS2YZCT5.js → chunk-YOAYY3HE.js} +2 -2
  74. package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-ZTRFCPH7.js → indexed-receipt-blobs-AF4U3F3D.js} +2 -2
  75. package/dist/cli-bundle/focused-chunks/{item-revision-32HFGFYG.js → item-revision-3V3UIP5X.js} +2 -2
  76. package/dist/cli-bundle/focused-chunks/{item-transaction-C4VW3SHX.js → item-transaction-HLBW7B3J.js} +2 -2
  77. package/dist/cli-bundle/focused-chunks/{mutation-actor-2SVBO324.js → mutation-actor-62HKR5IO.js} +2 -2
  78. package/dist/cli-bundle/focused-chunks/{mutation-admission-PNK6ORZR.js → mutation-admission-X4PF2SG3.js} +2 -2
  79. package/dist/cli-bundle/focused-chunks/{settlement-hook-OUBUN45C.js → settlement-hook-ARYCZQY4.js} +2 -2
  80. package/dist/cli-bundle/focused-chunks/{stage-LVAGKCEE.js → stage-O7T7CXBB.js} +2 -2
  81. package/dist/cli-bundle/main.js +25 -25
  82. package/dist/cli-bundle/sdk-authoring.js +1 -1
  83. package/dist/cli-bundle/sdk-contracts.js +1 -1
  84. package/dist/cli-bundle/sdk-core.js +1 -1
  85. package/dist/cli-bundle/sdk-governance.js +1 -1
  86. package/dist/cli-bundle/sdk-graph.js +1 -1
  87. package/dist/cli-bundle/sdk-merge.js +58 -57
  88. package/dist/cli-bundle/sdk-query.js +1 -1
  89. package/dist/cli-bundle/sdk-runtime.js +1 -1
  90. package/dist/cli-bundle/sdk-testing.js +1 -1
  91. package/dist/cli-bundle/sdk.js +11 -11
  92. package/dist/core/extensions/index.d.ts +2 -0
  93. package/dist/core/extensions/index.js +1 -1
  94. package/dist/core/fs/file-glob.js +1 -1
  95. package/dist/core/fs/fs-utils.d.ts +3 -1
  96. package/dist/core/fs/fs-utils.js +1 -1
  97. package/dist/core/history/history-stream-policy.js +1 -1
  98. package/dist/core/history/read.d.ts +11 -1
  99. package/dist/core/history/read.js +1 -1
  100. package/dist/core/history/stream-summary.d.ts +129 -0
  101. package/dist/core/history/stream-summary.js +3 -0
  102. package/dist/core/shared/errors.d.ts +8 -0
  103. package/dist/core/shared/errors.js +1 -1
  104. package/dist/core/shared/text-normalization.d.ts +9 -0
  105. package/dist/core/shared/text-normalization.js +1 -1
  106. package/dist/core/shared/url-credentials.js +1 -1
  107. package/dist/sdk/cli-contracts/registration-helpers.js +2 -2
  108. package/dist/sdk/context-intent-contracts.js +1 -1
  109. package/dist/sdk/governance/gc.js +1 -1
  110. package/dist/sdk/governance/health-merge-evidence.js +1 -1
  111. package/dist/sdk/governance/validate.js +1 -1
  112. package/dist/sdk/governance/workspace-position.js +1 -1
  113. package/dist/sdk/history-provenance.js +1 -1
  114. package/dist/sdk/index.d.ts +1 -1
  115. package/dist/sdk/index.js +1 -1
  116. package/dist/sdk/merge/index.d.ts +1 -1
  117. package/dist/sdk/merge/index.js +1 -1
  118. package/dist/sdk/merge/install.d.ts +20 -6
  119. package/dist/sdk/merge/install.js +3 -3
  120. package/dist/sdk/merge/worktree-config.js +2 -1
  121. package/dist/sdk/public-surface.json +1 -1
  122. package/dist/sdk/query/activity.d.ts +67 -5
  123. package/dist/sdk/query/activity.js +1 -1
  124. package/dist/sdk/query/context.d.ts +13 -3
  125. package/dist/sdk/query/context.js +2 -2
  126. package/dist/sdk/query.d.ts +1 -1
  127. package/dist/sdk/query.js +1 -1
  128. package/dist/sdk/read-output/continuation.d.ts +9 -3
  129. package/dist/sdk/read-output/continuation.js +1 -1
  130. package/dist/sdk/read-output-budget.d.ts +44 -3
  131. package/dist/sdk/read-output-budget.js +1 -1
  132. package/dist/sdk/read-output-contracts.js +1 -1
  133. package/docs/COMMANDS.md +56 -2
  134. package/docs/MERGE_SAFETY.md +8 -0
  135. package/docs/MUTATION_INTEGRITY.md +3 -1
  136. package/docs/PERFORMANCE.md +17 -2
  137. package/docs/README.md +6 -4
  138. package/docs/READ_OUTPUT_CONTRACTS.md +16 -1
  139. package/docs/SDK.md +25 -1
  140. package/docs/TESTING.md +8 -697
  141. package/docs/WORKSPACE_POSITION_AND_LIFECYCLE.md +1 -1
  142. package/marketplace.json +1 -1
  143. package/package.json +6 -2
  144. package/packages/pm-beads/package.json +1 -1
  145. package/packages/pm-calendar/package.json +1 -1
  146. package/packages/pm-command-kit/package.json +1 -1
  147. package/packages/pm-digital-twin/package.json +1 -1
  148. package/packages/pm-governance-audit/package.json +1 -1
  149. package/packages/pm-guide-shell/package.json +1 -1
  150. package/packages/pm-kanban/package.json +1 -1
  151. package/packages/pm-lifecycle-hooks/package.json +1 -1
  152. package/packages/pm-linked-test-adapters/package.json +1 -1
  153. package/packages/pm-search-advanced/package.json +1 -1
  154. package/packages/pm-templates/package.json +1 -1
  155. package/packages/pm-todos/package.json +1 -1
  156. package/packages/pm-vcs/package.json +1 -1
  157. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  158. package/plugins/pm-claude/package.json +1 -1
  159. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  160. package/plugins/pm-codex/package.json +1 -1
  161. package/plugins/pm-codex/plugin.json +1 -1
  162. package/runtime-dependencies.json +1 -1
  163. package/dist/cli-bundle/chunks/chunk-5OFMWP3Q.js +0 -3
  164. package/dist/cli-bundle/chunks/chunk-723PMYNX.js +0 -125
  165. package/dist/cli-bundle/chunks/chunk-7UUPLMCU.js +0 -115
  166. package/dist/cli-bundle/chunks/chunk-H64BNM4A.js +0 -8
  167. package/dist/cli-bundle/chunks/chunk-OESI2ETD.js +0 -20
  168. package/dist/cli-bundle/chunks/chunk-VS565KBX.js +0 -2
  169. package/dist/cli-bundle/chunks/item-transaction-K4YZ7GWR.js +0 -2
  170. package/dist/cli-bundle/focused-chunks/chunk-5JVB42Z7.js +0 -8
  171. package/dist/cli-bundle/focused-chunks/chunk-7A4VIRIU.js +0 -2
  172. package/dist/cli-bundle/focused-chunks/chunk-A2CLYPDA.js +0 -102
  173. package/dist/cli-bundle/focused-chunks/chunk-FOA7XKWP.js +0 -2
  174. package/dist/cli-bundle/focused-chunks/chunk-HO2YUD4P.js +0 -91
  175. package/dist/cli-bundle/focused-chunks/chunk-P4TG4VMJ.js +0 -12
  176. package/docs/MCP_2026_07_28_CONFORMANCE.md +0 -41
  177. package/docs/QUALITY_EVIDENCE.md +0 -130
  178. package/docs/generated/FLAG_LEXICON_BUDGETS.md +0 -117
  179. package/docs/performance/cli-transport-overhead.md +0 -51
  180. package/docs/performance/runner-qualification.md +0 -36
  181. package/docs/performance/sdk-entrypoint-import-costs.md +0 -32
@@ -1,130 +0,0 @@
1
- # Test strength and documentation content
2
-
3
- Tracked by [pm-zclzll](../.agents/pm/tasks/pm-zclzll.toon) and
4
- [pm-dvwm](../.agents/pm/chores/pm-dvwm.toon). Release acceptance and token
5
- comparison contracts: [pm-gh1428](../.agents/pm/issues/pm-gh1428.toon),
6
- [pm-gh1429](../.agents/pm/issues/pm-gh1429.toon), and
7
- [pm-agent-token-path](../.agents/pm/issues/pm-agent-token-path.toon).
8
-
9
- ## Installed context and immutable release recovery
10
-
11
- The installed-agent journey requests `context --for orient --limit 1` with an
12
- explicit 512-token output budget. A complete successful result must report the
13
- actual population: zero items before creation and one closed item after the
14
- lifecycle. An omitted result cannot establish either fact. When the installed
15
- version refuses an infeasible budget, the verifier checks exit 2, the omission
16
- and budget receipts, and the exact advertised `outputBudget: "unbounded"`
17
- recovery. It then repeats the same intent and amount with that recovery. Older
18
- control releases may return complete bounded context immediately. Every step
19
- keeps its existing character ceiling and process deadline; reports retain the
20
- observed exit status and all refusal/recovery output costs.
21
-
22
- Unexpected process failures retain classified status, signal, spawn error and
23
- both output streams, with credential redaction before 512-character excerpts.
24
- Unit tests own malformed receipts and failure diagnostics. Real npm/Bun
25
- installations and the hosted candidate/control platform matrix own compatibility
26
- with the actual SDK-backed CLI. A stubbed empty context object cannot satisfy
27
- the population assertions.
28
-
29
- Exact-tag recovery preserves reviewed artifact controls before selecting tagged
30
- source. The preserved directory retains `scripts/release` and its parent script
31
- dependencies, including temporary lifecycle and cleanup modules. The executable
32
- workflow regression copies those real controls, packs a foreign workspace with
33
- real npm, and checks the committed artifact budget. Removing a transitive import
34
- must fail with its original module error. Preserved controls stay outside the
35
- source checkout; published immutable versions are verified without republishing.
36
-
37
- ## Portable agent-task token comparisons
38
-
39
- Version 5 of the agent-task baseline declares
40
- `comparison_scope: "plan_recovery_tracker_root_canonicalized"`. Each replay
41
- continues to report exact `emitted_bytes`, `estimated_tokens`, and accounting
42
- receipt bytes for the actual transport. Its `comparison_emitted_bytes` and
43
- `comparison_estimated_tokens` replace only the validated tracker suffixes in
44
- Plan inspection, next-action and plan-detail recovery commands with the fixed
45
- `/replay/.agents/pm` comparison root. The actual payload retains executable
46
- commands targeting its real fixture. Other facts, paths and commands remain
47
- part of the cost.
48
-
49
- Step, completed-task and composite ceilings use those comparison measurements.
50
- The orientation selector uses the same cost basis. Missing, negative,
51
- non-integer or non-finite measurements and mismatched comparison scopes fail
52
- closed. Short and long temporary roots must produce the same verdict while
53
- their real emitted-byte counts may differ. Output growth still fails the
54
- unchanged ceilings; normalization does not waive accounting, payload parity,
55
- required-field or executable-recovery checks.
56
-
57
- The completion-provenance delivery
58
- ([pm-gh1579](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-gh1579.toon),
59
- a repository-only tracker record excluded from npm) makes the existing close and
60
- partial-bulk transcripts consume completion timestamp, source and correction
61
- guidance. Their reviewed ceilings increase by 76 and 80 estimated tokens
62
- respectively to account for this new required context. Other task and step
63
- ceilings, orientation selection, output accounting and the seeded growth
64
- negative control retain their existing enforcement.
65
-
66
- ## SDK mutation testing
67
-
68
- `pnpm quality:mutation` uses Stryker's Vitest runner to mutate the SDK cursor and
69
- external-dependency primitives. The declared partition in
70
- `scripts/release/sdk-mutation.json` is deliberately bounded. It does not claim
71
- a mutation score for the entire SDK. The existing behavioral tests run without
72
- retries; no production functions are mocked in this partition. All-source
73
- coverage remains a separate mandatory 100/100/100/100 gate.
74
-
75
- The sandboxed runner creates external temporary project/global trackers,
76
- disables external telemetry, removes ambient source-workspace references, and
77
- copies mutation sources without the real tracker. It holds the build lease
78
- until the engine exits and removes the owned temporary directory afterward.
79
- The normal source tree is never mutated. Every run executes all mutants;
80
- incremental results cannot supply stale evidence. Four workers and per-mutant
81
- timeouts bound this partition inside the existing 20-minute static job.
82
- The runner fixes sandboxing, fresh execution and the complete mutator set after
83
- loading configuration, so configuration overrides cannot disable those controls.
84
-
85
- The gate verifies source bytes, exact module scope, nonempty mutant populations,
86
- and unique mutation identities. Only assertion-killed mutants contribute to the
87
- raw score. Timeouts, compiler errors, uncovered mutants and ignored mutants fail.
88
- A survivor requires an exact identity, a behavioral equivalence explanation,
89
- and an owning pm item in `sdk-mutation-baseline.json`. The initial seven waivers
90
- cover redundant guards and JavaScript serialization and absent-date equivalences;
91
- there are no blanket mutator exclusions or source-ignore directives.
92
-
93
- Inspect `.cache/mutation/report.json` for individual mutations and
94
- `.cache/mutation/receipt.json` for the gate verdict. On a new survivor, first add
95
- a behavioral assertion to the existing test that owns the contract. If the
96
- mutation is observably equivalent, record its exact identity and justification
97
- for review. Remove waivers that disappear or become killed. Improvements require
98
- raising `minimumScore`; CI compares the floor and module scope with the PR base
99
- and refuses regression. Do not round the score when updating the baseline.
100
-
101
- Both `pnpm quality:static` and the existing required hosted static job run the
102
- partition, as do nightly and release static validation. The runner rejects
103
- command-line mutation policy overrides. The static chain uses `--prebuilt` to
104
- reuse its completed build while still acquiring the build lease and rejecting
105
- an incomplete generation; standalone mutation runs retain their default build.
106
- Extending the partition requires adding the
107
- module and its behavioral tests together, measuring runtime, and reviewing every
108
- survivor. Gate unit tests inject report/engine boundaries to prove failure paths;
109
- the actual Stryker execution is an additional required gate.
110
-
111
- ## Documentation content ratchet
112
-
113
- `pnpm quality:docstrings` parses documentation comments across runtime sources,
114
- packages, scripts, plugins and executable examples. It detects four known filler
115
- templates, including wrapped comments, without matching quoted strings or
116
- ordinary comments. Module, exported-declaration and member documentation coverage
117
- remain independently enforced by the existing static gate.
118
-
119
- The initial census found 4,192 filler comments. This delivery removes ten from
120
- the Commander alias contract and records the remaining per-file counts. The
121
- remaining debt is visible; an enforced inventory is not a claim that every
122
- existing comment is now informative.
123
-
124
- When editing a declaration, replace its filler with the actual behavior,
125
- precedence, units or invariants. Do not merely restate the identifier. After
126
- reducing a file's count, run `pnpm quality:docstrings:update` and commit the
127
- smaller baseline. The update refuses growth, including in new files. Counts
128
- cannot be traded between files, and CI refuses baseline increases against the
129
- PR base via `PM_QUALITY_BASE_REF`. Removed filler cannot silently return by
130
- leaving a stale larger ceiling.
@@ -1,117 +0,0 @@
1
- # Generated flag lexicon budgets
2
-
3
- This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.
4
-
5
- | Command | Capability family | Canonical flags | Maximum |
6
- |---|---|---:|---:|
7
- | `init` | workspace | 31 | 31 |
8
- | `item` | intake | 21 | 21 |
9
- | `config` | workspace | 37 | 37 |
10
- | `extension` | extensions | 56 | 56 |
11
- | `package` | extensions | 57 | 57 |
12
- | `packages` | extensions | 57 | 57 |
13
- | `install` | extensions | 28 | 28 |
14
- | `upgrade` | extensions | 30 | 30 |
15
- | `create` | intake | 105 | 105 |
16
- | `copy` | intake | 25 | 25 |
17
- | `focus` | intake | 23 | 23 |
18
- | `list` | context | 87 | 87 |
19
- | `list-all` | context | 87 | 87 |
20
- | `list-draft` | context | 85 | 85 |
21
- | `list-open` | context | 85 | 85 |
22
- | `list-in-progress` | context | 85 | 85 |
23
- | `list-blocked` | context | 85 | 85 |
24
- | `list-closed` | context | 85 | 85 |
25
- | `list-canceled` | context | 85 | 85 |
26
- | `aggregate` | context | 41 | 41 |
27
- | `context` | context | 46 | 46 |
28
- | `ctx` | context | 46 | 46 |
29
- | `get` | context | 31 | 31 |
30
- | `graph` | graph | 35 | 35 |
31
- | `search` | context | 79 | 79 |
32
- | `duplicates` | context | 26 | 26 |
33
- | `eval` | context | 26 | 26 |
34
- | `next` | context | 39 | 39 |
35
- | `history` | evidence | 37 | 37 |
36
- | `events` | evidence | 35 | 35 |
37
- | `history-attest` | evidence | 24 | 24 |
38
- | `history-redact` | evidence | 28 | 28 |
39
- | `history-repair` | evidence | 28 | 28 |
40
- | `history-compact` | evidence | 31 | 31 |
41
- | `history-author-acknowledge` | evidence | 29 | 29 |
42
- | `merge` | workspace | 30 | 30 |
43
- | `schema` | workspace | 44 | 44 |
44
- | `profile` | workspace | 23 | 23 |
45
- | `activity` | context | 37 | 37 |
46
- | `restore` | intake | 24 | 24 |
47
- | `update` | lifecycle | 106 | 106 |
48
- | `update-many` | lifecycle | 147 | 147 |
49
- | `close` | lifecycle | 33 | 33 |
50
- | `close-many` | lifecycle | 73 | 73 |
51
- | `delete` | lifecycle | 25 | 25 |
52
- | `append` | evidence | 26 | 26 |
53
- | `comments` | evidence | 33 | 33 |
54
- | `notes` | evidence | 37 | 37 |
55
- | `learnings` | evidence | 33 | 33 |
56
- | `files` | evidence | 42 | 42 |
57
- | `docs` | evidence | 33 | 33 |
58
- | `deps` | graph | 33 | 33 |
59
- | `plan` | graph | 112 | 112 |
60
- | `test` | quality | 59 | 59 |
61
- | `test-all` | quality | 42 | 42 |
62
- | `telemetry` | workspace | 22 | 22 |
63
- | `stats` | context | 30 | 30 |
64
- | `health` | workspace | 37 | 37 |
65
- | `validate` | quality | 47 | 47 |
66
- | `assurance` | quality | 31 | 31 |
67
- | `gc` | workspace | 23 | 23 |
68
- | `workspace` | workspace | 24 | 24 |
69
- | `contracts` | quality | 30 | 30 |
70
- | `claim` | lifecycle | 41 | 41 |
71
- | `release` | lifecycle | 26 | 26 |
72
- | `start-task` | lifecycle | 25 | 25 |
73
- | `pause-task` | lifecycle | 24 | 24 |
74
- | `close-task` | lifecycle | 25 | 25 |
75
- | `meet` | automation | 34 | 34 |
76
- | `event` | automation | 34 | 34 |
77
- | `remind` | automation | 30 | 30 |
78
- | `test-runs-worker` | internal | 21 | 21 |
79
- | `history attest` | evidence | 24 | 24 |
80
- | `history redact` | evidence | 28 | 28 |
81
- | `history repair` | evidence | 28 | 28 |
82
- | `history compact` | evidence | 31 | 31 |
83
- | `history activity` | context | 37 | 37 |
84
- | `history restore` | intake | 24 | 24 |
85
- | `context next` | context | 39 | 39 |
86
- | `context focus` | intake | 23 | 23 |
87
- | `ops stats` | context | 30 | 30 |
88
- | `ops health` | workspace | 37 | 37 |
89
- | `ops validate` | quality | 47 | 47 |
90
- | `ops gc` | workspace | 23 | 23 |
91
- | `ops telemetry` | workspace | 22 | 22 |
92
- | `ops eval` | context | 26 | 26 |
93
- | `ops test-all` | quality | 42 | 42 |
94
- | `history events` | evidence | 35 | 35 |
95
- | `update many` | lifecycle | 147 | 147 |
96
- | `close many` | lifecycle | 73 | 73 |
97
- | `close delete` | lifecycle | 25 | 25 |
98
- | `workspace init` | workspace | 31 | 31 |
99
- | `workspace config` | workspace | 37 | 37 |
100
- | `workspace schema` | workspace | 44 | 44 |
101
- | `workspace profile` | workspace | 23 | 23 |
102
- | `item comments` | evidence | 33 | 33 |
103
- | `item notes` | evidence | 37 | 37 |
104
- | `item learnings` | evidence | 33 | 33 |
105
- | `item files` | evidence | 42 | 42 |
106
- | `item docs` | evidence | 33 | 33 |
107
- | `item deps` | graph | 33 | 33 |
108
- | `item append` | evidence | 26 | 26 |
109
- | `item test` | quality | 59 | 59 |
110
- | `item test worker` | internal | 21 | 21 |
111
- | `history acknowledge` | evidence | 29 | 29 |
112
- | `item copy` | intake | 25 | 25 |
113
- | `workspace merge` | workspace | 30 | 30 |
114
- | `item duplicates` | context | 26 | 26 |
115
- | `calendar meet` | automation | 34 | 34 |
116
- | `calendar event` | automation | 34 | 34 |
117
- | `calendar remind` | automation | 30 | 30 |
@@ -1,51 +0,0 @@
1
- # CLI transport overhead
2
-
3
- Tracked by [pm-yse5dt](../../.agents/pm/tasks/pm-yse5dt.toon), with RSS
4
- admission reliability owned by
5
- [pm-pz49xc](../../.agents/pm/issues/pm-pz49xc.toon).
6
-
7
- Each result starts from a fresh isolated workspace containing exactly one item.
8
- The command runs in a fresh Node v26.5.0 process on
9
- linux/x64; setup and fixture generation are
10
- outside the timed interval. The default gate measures ten post-warmup fresh
11
- processes per command and uses the best observed latency, which keeps the
12
- immutable ratchets meaningful under transient host contention; the report
13
- retains p50 and p95 evidence. RSS admission uses the measured median so one
14
- page-level outlier cannot false-fail the gate; the maximum remains in the report
15
- as diagnostic evidence. Every post-warmup RSS sample must be a finite
16
- measurement; an unavailable sample makes the admission median unavailable and
17
- fails closed when a budget exists. Admission adds a fixed 512 KiB noise margin
18
- without changing the committed budget; a majority persistent increase beyond
19
- that bounded margin still fails.
20
-
21
- | Command | best | p50 | p95 |
22
- |---|---:|---:|---:|
23
- | `get` | 269 ms | 316 ms | 388 ms |
24
- | `list` | 315 ms | 354 ms | 357 ms |
25
- | `context` | 326 ms | 345 ms | 428 ms |
26
- | `next` | 332 ms | 339 ms | 352 ms |
27
- | `create` | 298 ms | 317 ms | 326 ms |
28
- | `claim` | 312 ms | 331 ms | 350 ms |
29
-
30
- ## Current attribution
31
-
32
- - Node process and ESM loader floor is measured independently in the
33
- [SDK entrypoint table](sdk-entrypoint-import-costs.md).
34
- - Static CLI bootstrap loads the shared error, output, telemetry, extension
35
- discovery, Commander, and SDK-client kernels before command registration.
36
- - Command registration is already family-selective; only the family owning the
37
- requested command is loaded, while bare/root help intentionally registers the
38
- complete discoverable surface.
39
- - Settings/schema reads and extension discovery happen after the module floor
40
- and remain observable through `--profile`; the one-item fixture keeps their
41
- data-dependent work negligible.
42
- - Focused SDK entrypoints remove 40-98% of aggregate import overhead for
43
- governance, graph, merge, query, authoring, contracts, and testing consumers.
44
- The compatibility aggregate and core client remain intentionally broad.
45
-
46
- The committed budget is a ratchet. Existing absolute scale budgets are not
47
- relaxed, and scale reports additionally gate the CLI-minus-SDK delta for every
48
- operation whenever both transports are measured. The generated scale workspace
49
- has no installed extensions and its paired SDK client uses extension-free mode,
50
- so the comparison excludes project package execution. It also leaves author
51
- attribution to the CLI resolver instead of injecting `PM_AUTHOR`.
@@ -1,36 +0,0 @@
1
- # Startup benchmark runner qualification
2
-
3
- Tracked by [pm-bj7rq0](../../.agents/pm/issues/pm-bj7rq0.toon).
4
-
5
- The SDK import and CLI transport gates retain their absolute latency and RSS
6
- ratchets. A bare Node control determines whether the runner qualifies independently
7
- of product admission. Both benchmarks bracket their census with post-warmup
8
- controls before and after it; the CLI uses five samples per control. Both use the existing SDK bare-process
9
- budget and its fixed 30 ms scheduler margin.
10
-
11
- Successful checks explicitly return `runner_qualification.status=qualified` and
12
- `product_admission=passed`. Failed checks retain the complete measured report,
13
- every product violation, runtime identity, available parallelism, load averages,
14
- and memory observations. `benchmark_runner_unqualified` leaves product admission
15
- `unverified`; it still exits unsuccessfully. A qualified runner with an over-budget
16
- command returns `benchmark_product_budget_exceeded` and failed admission.
17
-
18
- If the final control process fails after product measurements, its unavailable
19
- status and error remain in `baseline_after`; the completed report and every
20
- product violation remain available. Check mode rejects admission as unverified,
21
- and update mode refuses to write a calibration from that failed control.
22
- Calibration also requires both available controls to qualify against the existing
23
- SDK control budget before any budget or documentation write. A new SDK calibration
24
- target uses the committed control budget; an existing target retains its own
25
- prior control ceiling for admission. An unqualified runner cannot raise its own ceiling
26
- to certify its measurements. Even qualified controls cannot increase the prior
27
- control ceiling: update mode compares the proposed p95-derived ceiling with the
28
- existing ceiling and refuses an increase before creating directories or writing
29
- calibration files. Equal or reduced ceilings remain admissible.
30
- This refusal returns `benchmark_control_budget_increase` with product admission
31
- `unverified`; a qualified control does not establish a measured product failure.
32
-
33
- Control cost is never subtracted from product measurements. Pressure observations
34
- are diagnostic context and do not prove the cause of a failure. An unchanged base
35
- comparison on the same runtime helps distinguish a new regression from a runner
36
- that cannot qualify; a failed or unavailable comparison cannot certify a pass.
@@ -1,32 +0,0 @@
1
- # SDK entrypoint import costs
2
-
3
- Tracked by [pm-38bskj](../../.agents/pm/tasks/pm-38bskj.toon) and
4
- [pm-cg1sjb](../../.agents/pm/issues/pm-cg1sjb.toon).
5
-
6
- This table measures fresh-process ESM import and module evaluation. The bare
7
- Node v26.5.0 process floor on linux/x64
8
- was 44 ms p50 (56 ms p95) across
9
- 5 measured runs after one warm-up. Focused entrypoints are
10
- compared with the compatibility aggregate; negative reduction means the focused
11
- entrypoint was slower in this sample. The gate admits the median measured run
12
- against the unchanged upper-bound budget and 30 ms scheduler margin. A single
13
- cold or descheduled process therefore cannot fail the gate, while a majority of
14
- over-budget samples still does; p95 remains visible as diagnostic evidence.
15
-
16
- | Package export | p50 | p95 | p50 above Node | Reduction vs aggregate overhead |
17
- |---|---:|---:|---:|---:|
18
- | `./sdk` | 320 ms | 348 ms | 276 ms | 0% |
19
- | `./sdk/authoring` | 91 ms | 99 ms | 47 ms | 83% |
20
- | `./sdk/contracts` | 152 ms | 156 ms | 108 ms | 60.9% |
21
- | `./sdk/core` | 285 ms | 291 ms | 241 ms | 12.7% |
22
- | `./sdk/governance` | 211 ms | 220 ms | 167 ms | 39.5% |
23
- | `./sdk/graph` | 92 ms | 105 ms | 48 ms | 82.6% |
24
- | `./sdk/merge` | 130 ms | 145 ms | 86 ms | 68.8% |
25
- | `./sdk/query` | 132 ms | 156 ms | 88 ms | 68.1% |
26
- | `./sdk/runtime` | 283 ms | 312 ms | 239 ms | 13.4% |
27
- | `./sdk/testing` | 274 ms | 319 ms | 230 ms | 16.7% |
28
-
29
- The aggregate `@unbrained/pm-cli/sdk` remains supported for compatibility.
30
- New packages should import the narrowest subpath that owns their capability.
31
- The committed budget file is an upper-bound ratchet and must not be weakened to
32
- hide a regression.