@unbrained/pm-cli 2026.11.20 → 2026.11.22
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.
- package/.agents/skills/pm-developer/SKILL.md +1 -1
- package/.agents/skills/pm-sdk/SKILL.md +1 -1
- package/.agents/skills/pm-test-audit/SKILL.md +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/CONTRIBUTING.md +2 -1
- package/dist/cli/error-guidance.js +2 -2
- package/dist/cli/register-history-maintenance.js +2 -2
- package/dist/cli/register-list-query.js +2 -2
- package/dist/cli/runtime/refusal-credential-redaction.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-3W47ZZ5T.js +9 -0
- package/dist/cli-bundle/chunks/chunk-4TB5D6HL.js +125 -0
- package/dist/cli-bundle/chunks/{chunk-4TZW4NLM.js → chunk-5ZMVLWE3.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-6BBDEIKC.js +33 -0
- package/dist/cli-bundle/chunks/{chunk-GXGW6KHB.js → chunk-AR4NP5HI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6X2AGUOT.js → chunk-B4PPFOPY.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-XK25TAJZ.js → chunk-B76TFRO2.js} +47 -45
- package/dist/cli-bundle/chunks/chunk-CAR2L5NW.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-KDDIHGAO.js → chunk-EIGUKEV6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZAO7VGX3.js → chunk-GTPCAJMZ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-GYP24M7W.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-KQSPKWFH.js → chunk-HC2OPETM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5LF5QZT3.js → chunk-HKUV74K3.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-HXHYDO2R.js +115 -0
- package/dist/cli-bundle/chunks/{chunk-FF4TXJDH.js → chunk-J2LABXBL.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3BOR22MC.js → chunk-J52BEBSS.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-KQIZ34SF.js +3 -0
- package/dist/cli-bundle/chunks/chunk-LQBWLNZJ.js +3 -0
- package/dist/cli-bundle/chunks/chunk-OJTMGDON.js +31 -0
- package/dist/cli-bundle/chunks/{chunk-DG2EOOFX.js → chunk-TC6XLIYO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MGYAJONE.js → chunk-U7EL3AYA.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-VQFWW4EF.js +6 -0
- package/dist/cli-bundle/chunks/{chunk-ZVEHACE6.js → chunk-X6MIWTTT.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-XC5Q2ZV7.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-KEBLUTC3.js → chunk-XFHPKXAE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OXG5XPC7.js → chunk-YHVLVSEZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Y4LXVPA5.js → chunk-YMUSRWV4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HQYIKAC6.js → chunk-YR2KEBHP.js} +2 -2
- package/dist/cli-bundle/chunks/{indexed-receipt-blobs-ELEMA7IW.js → indexed-receipt-blobs-ITTXIN4K.js} +2 -2
- package/dist/cli-bundle/chunks/{item-revision-GE2CQECR.js → item-revision-4QBMZXKX.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-QY3PUHEI.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-actor-5GYX7LP3.js → mutation-actor-FWLYWJ37.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-admission-72TYKPGU.js → mutation-admission-7ZDCK3G2.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-OQZZEWEB.js → register-list-query-RR5KACJ3.js} +10 -10
- package/dist/cli-bundle/chunks/{register-mutation-YZEUZ6XT.js → register-mutation-57AJQWFV.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-JNVCF7EW.js → register-operations-RKWST7CU.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-LDKULZSD.js → register-setup-CMI23PC5.js} +2 -2
- package/dist/cli-bundle/chunks/{settlement-hook-E5LHZ4RD.js → settlement-hook-BXN5LEQD.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-Q2QZ2IBG.js → stage-4KDVXC5Z.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-JUYJ7NXL.js → chunk-2ZD7275J.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7SB6VKEI.js → chunk-324AHXJO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IXYBN6D2.js → chunk-3IRCYJI5.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-DH4DHL6V.js → chunk-3V53UBHN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3XSWH6QC.js +91 -0
- package/dist/cli-bundle/focused-chunks/{chunk-V55XZFOP.js → chunk-4JZITIJB.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4KTFKSS3.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-5C5TK3ET.js +78 -0
- package/dist/cli-bundle/focused-chunks/chunk-AKJYOZZP.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-BZCLW5V7.js → chunk-BRZV7BFV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-CR7CGEB2.js +3 -0
- package/dist/cli-bundle/focused-chunks/{chunk-PKMDWIP3.js → chunk-HDEKFSOK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-O25KFLLA.js → chunk-IWOXAUDU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UATP3RK3.js → chunk-ML3JHCC6.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ZKGGGU2K.js → chunk-OPGOOP25.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-PRFEOCNZ.js → chunk-RE7ZWT7D.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-RKQNVYGF.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-RQ252B6V.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-KQJNJZKP.js → chunk-URGHTTT3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-USPYKWQG.js +13 -0
- package/dist/cli-bundle/focused-chunks/chunk-UWS3FC4D.js +102 -0
- package/dist/cli-bundle/focused-chunks/chunk-UXQGFGAT.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-PQXTZLK3.js → chunk-WZWXGDYY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-5VSXKA35.js → chunk-YKSLZPLT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-ZWJTY4ID.js +2 -0
- package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-ZTRFCPH7.js → indexed-receipt-blobs-AF4U3F3D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{item-revision-OXDZHMJ7.js → item-revision-2O6MLPEX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/item-transaction-GLACUTPL.js +2 -0
- package/dist/cli-bundle/focused-chunks/{mutation-actor-6DYIF6NH.js → mutation-actor-TCYDPUGG.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-2BYXANVJ.js → mutation-admission-LY73EJWM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{settlement-hook-OUBUN45C.js → settlement-hook-ARYCZQY4.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-FGHSB3QX.js → stage-DQ7RQQ52.js} +2 -2
- package/dist/cli-bundle/main.js +25 -25
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +70 -57
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +11 -11
- package/dist/core/diagnostics/remediation.js +1 -1
- package/dist/core/extensions/index.d.ts +2 -0
- package/dist/core/extensions/index.js +1 -1
- package/dist/core/fs/atomic-create.js +1 -1
- package/dist/core/fs/file-glob.js +1 -1
- package/dist/core/fs/fs-utils.d.ts +3 -1
- package/dist/core/fs/fs-utils.js +1 -1
- package/dist/core/history/bridge.js +2 -0
- package/dist/core/history/drift-scan.js +1 -1
- package/dist/core/history/history-rewrite.js +1 -1
- package/dist/core/history/history-stream-policy.js +1 -1
- package/dist/core/history/history.d.ts +12 -0
- package/dist/core/history/history.js +2 -2
- package/dist/core/history/projection.js +1 -1
- package/dist/core/history/read.d.ts +20 -1
- package/dist/core/history/read.js +1 -1
- package/dist/core/history/replay.d.ts +46 -5
- package/dist/core/history/replay.js +2 -2
- package/dist/core/history/stream-summary.d.ts +129 -0
- package/dist/core/history/stream-summary.js +3 -0
- package/dist/core/shared/errors.d.ts +8 -0
- package/dist/core/shared/errors.js +1 -1
- package/dist/core/shared/url-credentials.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
- package/dist/sdk/cli-contracts/registration-helpers.js +2 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +2 -2
- package/dist/sdk/completion/fish.js +3 -2
- package/dist/sdk/completion/zsh.js +3 -2
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/governance/gc.js +1 -1
- package/dist/sdk/governance/health/history-drift-remedies.js +2 -0
- package/dist/sdk/governance/health-merge-evidence.js +1 -1
- package/dist/sdk/governance/health.js +2 -2
- package/dist/sdk/governance/validate.js +1 -1
- package/dist/sdk/governance/workspace-position.js +1 -1
- package/dist/sdk/history/append-only-repair.d.ts +30 -0
- package/dist/sdk/history/append-only-repair.js +6 -0
- package/dist/sdk/history/maintenance.d.ts +8 -2
- package/dist/sdk/history/maintenance.js +1 -1
- package/dist/sdk/history/reanchor-refusal.js +2 -0
- package/dist/sdk/history/reseed.d.ts +15 -0
- package/dist/sdk/history/reseed.js +2 -0
- package/dist/sdk/history/salvage.d.ts +19 -8
- package/dist/sdk/history/salvage.js +5 -3
- package/dist/sdk/history-compact.js +1 -1
- package/dist/sdk/history-provenance.js +1 -1
- package/dist/sdk/history-redact.js +1 -1
- package/dist/sdk/history-repair.d.ts +8 -2
- package/dist/sdk/history-repair.js +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/item-transaction.d.ts +33 -1
- package/dist/sdk/item-transaction.js +1 -1
- package/dist/sdk/lifecycle/restore.js +1 -1
- package/dist/sdk/merge/index.d.ts +1 -1
- package/dist/sdk/merge/index.js +1 -1
- package/dist/sdk/merge/install.d.ts +20 -6
- package/dist/sdk/merge/install.js +3 -3
- package/dist/sdk/merge/three-way.d.ts +22 -3
- package/dist/sdk/merge/three-way.js +8 -2
- package/dist/sdk/merge/worktree-config.js +2 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/activity.d.ts +67 -5
- package/dist/sdk/query/activity.js +1 -1
- package/dist/sdk/query/context.d.ts +13 -3
- package/dist/sdk/query/context.js +2 -2
- package/dist/sdk/query.d.ts +1 -1
- package/dist/sdk/runtime/actions.js +1 -1
- package/dist/sdk/runtime-input.d.ts +6 -2
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +1 -1
- package/dist/sdk/runtime.d.ts +7 -0
- package/dist/sdk/runtime.js +1 -1
- package/dist/sdk/structured-mutations.d.ts +5 -5
- package/dist/sdk/structured-mutations.js +1 -1
- package/dist/sdk/transactions/item-finalization.js +2 -0
- package/dist/types.d.ts +20 -0
- package/dist/types.js +1 -1
- package/docs/AGENT_GUIDE.md +1 -1
- package/docs/AGENT_RUNTIME_PRIMITIVES.md +1 -1
- package/docs/COMMANDS.md +62 -4
- package/docs/HISTORY_RECOVERY.md +229 -5
- package/docs/MERGE_SAFETY.md +8 -0
- package/docs/MUTATION_INTEGRITY.md +3 -1
- package/docs/README.md +8 -6
- package/docs/SDK.md +128 -5
- package/docs/SDK_CONTEXT_COORDINATION.md +3 -2
- package/docs/TESTING.md +8 -697
- package/docs/WORKSPACE_POSITION_AND_LIFECYCLE.md +1 -1
- package/marketplace.json +1 -1
- package/node_modules/tar/package.json +2 -3
- package/package.json +35 -3
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-2IZGNOGT.js +0 -6
- package/dist/cli-bundle/chunks/chunk-4QQPM3IY.js +0 -2
- package/dist/cli-bundle/chunks/chunk-5OFMWP3Q.js +0 -3
- package/dist/cli-bundle/chunks/chunk-6HRPGEBF.js +0 -2
- package/dist/cli-bundle/chunks/chunk-7ESF676D.js +0 -125
- package/dist/cli-bundle/chunks/chunk-7EZZ4W7O.js +0 -20
- package/dist/cli-bundle/chunks/chunk-FOYRE23V.js +0 -115
- package/dist/cli-bundle/chunks/chunk-HJQ3XPS3.js +0 -31
- package/dist/cli-bundle/chunks/chunk-M5D3CEMY.js +0 -9
- package/dist/cli-bundle/chunks/chunk-VS565KBX.js +0 -2
- package/dist/cli-bundle/chunks/chunk-W4TLA5H3.js +0 -8
- package/dist/cli-bundle/chunks/item-transaction-YSAWJRA2.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-3LRSQXCN.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-FOA7XKWP.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-FPKVHC3Q.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-I7XBR2RM.js +0 -91
- package/dist/cli-bundle/focused-chunks/chunk-MJP3TFVW.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-PZSTRYTA.js +0 -102
- package/dist/cli-bundle/focused-chunks/chunk-QNJQPJWO.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-SIPDQBJI.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-SJE3PYPI.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-TNKI6WKG.js +0 -66
- package/dist/cli-bundle/focused-chunks/chunk-TRCXANRR.js +0 -12
- package/dist/cli-bundle/focused-chunks/item-transaction-54VSTT6L.js +0 -2
- package/dist/sdk/agent/refusal-closure.js +0 -2
- package/dist/sdk/agent/refusal-reachability.js +0 -4
- package/dist/sdk/agent/task-transcript-contracts.js +0 -2
- package/dist/sdk/agent/tracker-preflight-contracts.js +0 -2
- package/dist/sdk/authoring.js +0 -2
- package/dist/sdk/compose.js +0 -2
- package/dist/sdk/contracts.js +0 -2
- package/dist/sdk/core-governance.js +0 -2
- package/dist/sdk/core.js +0 -2
- package/dist/sdk/corpus-shape.js +0 -2
- package/dist/sdk/define.js +0 -2
- package/dist/sdk/environment/agent-environment.js +0 -2
- package/dist/sdk/governance/artifact-ledgers.js +0 -2
- package/dist/sdk/governance/coverage-assurance.js +0 -2
- package/dist/sdk/governance/reliability.js +0 -2
- package/dist/sdk/governance.js +0 -2
- package/dist/sdk/graph/adapter.js +0 -2
- package/dist/sdk/graph/conformance.js +0 -2
- package/dist/sdk/graph/index.js +0 -2
- package/dist/sdk/graph.js +0 -2
- package/dist/sdk/index.js +0 -2
- package/dist/sdk/query.js +0 -2
- package/dist/sdk/relationship-migration.js +0 -2
- package/dist/sdk/testing.js +0 -8
- package/dist/sdk/workspace-recipe.js +0 -2
- package/docs/AGENT_PROVENANCE_ADR.md +0 -206
- package/docs/DEFECT_RECURRENCE.md +0 -257
- package/docs/MCP_2026_07_28_CONFORMANCE.md +0 -41
- package/docs/PERFORMANCE.md +0 -189
- package/docs/QUALITY_EVIDENCE.md +0 -130
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +0 -117
- package/docs/performance/cli-transport-overhead.md +0 -51
- package/docs/performance/runner-qualification.md +0 -36
- package/docs/performance/sdk-entrypoint-import-costs.md +0 -32
package/docs/PERFORMANCE.md
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
# Performance and scale
|
|
2
|
-
|
|
3
|
-
Tracker: [pm-mi2x](../.agents/pm/chores/pm-mi2x.toon) under the [pm-9rxu scale-out initiative](../.agents/pm/epics/pm-9rxu.toon). CLI transport overhead is tracked by [pm-yse5dt](../.agents/pm/tasks/pm-yse5dt.toon).
|
|
4
|
-
|
|
5
|
-
`pm` treats wall time, memory, and agent token cost as one performance contract: project management is context management, so a fast command that emits an unbounded payload is still slow for its caller.
|
|
6
|
-
|
|
7
|
-
## Current targets
|
|
8
|
-
|
|
9
|
-
Every measured CLI and SDK operation targets:
|
|
10
|
-
|
|
11
|
-
- p95 wall time at or below 1,000 ms;
|
|
12
|
-
- default output at or below 5,000 estimated tokens;
|
|
13
|
-
- no feature, flag, output, history, or validation loss.
|
|
14
|
-
|
|
15
|
-
The committed regression budgets in [`scripts/bench/scale-budgets.json`](../scripts/bench/scale-budgets.json) protect the current baseline while the product targets stay fixed. Baseline refreshes use the Node major pinned by release and primary CI workflows (currently Node 24); newer supported runtimes remain compatibility targets, but their startup and memory characteristics must not silently rewrite the release baseline. Short local checks use the best observed latency as a regression floor; statistically meaningful runs of 20 or more use p95. Both receive 25% baseline headroom plus a 25 ms scheduler/filesystem noise margin. Reports always retain min/p50/p95, and product-target status always uses p95. This lets a busy workstation detect deterministic code slowdowns without pretending that three samples produce a meaningful p95 or hiding the real tail-latency target.
|
|
16
|
-
|
|
17
|
-
## Reproducible fixtures
|
|
18
|
-
|
|
19
|
-
Generate a deterministic isolated workspace without touching the current tracker:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm build
|
|
23
|
-
pnpm benchmark:scale:generate --output /tmp/pm-scale --items 10000 --mode direct
|
|
24
|
-
PM_PATH=/tmp/pm-scale/.agents/pm PM_GLOBAL_PATH=/tmp/pm-scale-global pm validate --json
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Named tiers are `smoke` (100), `ci` (10,000), `large` (100,000), and `million` (1,000,000). The `ci` name describes the fixture size for compatibility with existing benchmark data; these performance workloads run locally and are intentionally absent from GitHub Actions. `direct` writes bounded batches for large fixtures; `sdk` uses the public SDK atomic-write and history primitives. Both modes serialize the same deterministic item and history bytes.
|
|
28
|
-
|
|
29
|
-
The fixture models built-in item types, open/in-progress/blocked/closed/canceled states, parents, dependencies, tags, bodies, comments, notes, learnings, and one valid history stream per item. It refuses to generate inside this repository. `--force` replaces a non-empty target only when that target already contains the scale-fixture manifest, so a mistyped arbitrary directory is never recursively removed.
|
|
30
|
-
|
|
31
|
-
## Benchmark runner
|
|
32
|
-
|
|
33
|
-
Run CLI cold-process and SDK warm-process measurements together:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
pnpm benchmark:scale --items ci --iterations 3 --transport both --check
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
The JSON report records fixture generation time plus one excluded warmup observation and measured p50/p95/min/max latency, peak RSS on Linux, output bytes, and estimated tokens for `list`, `get`, `next`, `context`, `search`, `create`, and `claim`. The warmup exposes initial index-build cost while regression percentiles measure the continuously warm derived-index contract across real cold CLI processes and in-process SDK calls. Run the committed local regression check with `pnpm benchmark:scale:check`. GitHub-hosted runners do not execute the scale suite, which keeps expensive performance work off Actions and avoids consuming hosted-runner capacity.
|
|
40
|
-
|
|
41
|
-
The scale report also records the CLI-minus-SDK transport delta for each common
|
|
42
|
-
operation and gates it independently from the absolute CLI/SDK budgets. This
|
|
43
|
-
separates process/bootstrap cost from storage or domain cost instead of allowing
|
|
44
|
-
one transport to hide a regression in the other. The synthetic workspace has no
|
|
45
|
-
installed extensions, while the SDK client explicitly opts out, so both paths
|
|
46
|
-
measure the same core operation without project package work. CLI mutations do
|
|
47
|
-
not inject `PM_AUTHOR`; they exercise the normal harness/default attribution
|
|
48
|
-
resolver. The 10,000-item delta budgets are measured ratchets. The 100,000-item
|
|
49
|
-
delta bounds are conservative ceilings derived from the existing absolute CLI
|
|
50
|
-
budgets until a stable large-fixture measurement can replace them; they do not
|
|
51
|
-
weaken either transport's existing absolute gate.
|
|
52
|
-
|
|
53
|
-
For a fast, deterministic one-item cold-start floor covering `get`, `list`,
|
|
54
|
-
`context`, `next`, `create`, and `claim`, run:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
pnpm benchmark:transport:check
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
The committed [CLI transport report](performance/cli-transport-overhead.md)
|
|
61
|
-
contains best/p50/p95 measurements and a stage breakdown. SDK entrypoint import
|
|
62
|
-
costs are independently gated with `pnpm benchmark:sdk-entrypoints:check` and
|
|
63
|
-
documented in the
|
|
64
|
-
[SDK entrypoint report](performance/sdk-entrypoint-import-costs.md).
|
|
65
|
-
|
|
66
|
-
The metadata read cache is rebuildable derived state. Workspaces with at least
|
|
67
|
-
500 indexed items use its directory-validated fast path to avoid per-item
|
|
68
|
-
stats; validation and recovery can force a canonical source scan. Every
|
|
69
|
-
metadata, body, and collection tier carries one `source_cursor`. A small
|
|
70
|
-
manifest exposes the base cursor and item count without parsing the full index.
|
|
71
|
-
A supported create, update, move, or delete acquires the cross-process
|
|
72
|
-
derived-index writer lock before the authoritative item commit and atomically
|
|
73
|
-
publishes one collapsed delta containing every compatible tier projection,
|
|
74
|
-
directory signatures, and the next cursor before releasing the lock. Mutation
|
|
75
|
-
cost for this metadata projection therefore follows changed items rather than total workspace size. A torn,
|
|
76
|
-
corrupt, or base-mismatched delta is rejected and rebuilt from source.
|
|
77
|
-
|
|
78
|
-
Large indexes also carry `runtime/metadata-query-index.sqlite`, a rebuildable
|
|
79
|
-
row/index projection with the same context fingerprint and effective
|
|
80
|
-
`source_cursor`. Source scans replace it atomically; supported mutations update
|
|
81
|
-
it inside the existing derived-index writer critical section. Bounded
|
|
82
|
-
default-order light `list` pages query only their result window plus a count,
|
|
83
|
-
instead of parsing the full JSON cache. Unsupported filters, heavy
|
|
84
|
-
body/collection projections, trees, runtime fields, active read hooks, missing
|
|
85
|
-
files, stale cursors, and corrupt databases fail closed to the established
|
|
86
|
-
authoritative/JSON path. The SQLite file is optimization state and is safe to
|
|
87
|
-
delete or rebuild with `pm reindex`.
|
|
88
|
-
|
|
89
|
-
The same database carries bounded FTS candidate retrieval for the opt-in
|
|
90
|
-
create/copy duplicate-governance probe. Minimal/default governance keeps the
|
|
91
|
-
probe off and performs no query on the create path; advisory/strict modes reuse
|
|
92
|
-
one dependency-light SDK scorer with the package-owned dedupe audit. Mutation
|
|
93
|
-
history events use a separate rebuildable ordered SQLite projection so
|
|
94
|
-
`pm events --since <cursor>` retrieves only matching rows from the index.
|
|
95
|
-
As required by [pm-gh1593](../.agents/pm/issues/pm-gh1593.toon), cache validation
|
|
96
|
-
hashes the complete authoritative bytes of selected streams on every read;
|
|
97
|
-
its cost therefore grows with selected history size. An `--item` filter bounds
|
|
98
|
-
that source population. Opt-in `--verify` additionally replays each selected
|
|
99
|
-
chain, before filtering or pagination. These checks detect same-length rewrites
|
|
100
|
-
without trusting timestamps or a last-record hash. The version-7 schema retains
|
|
101
|
-
substantive-versus-maintenance indexing, so context recency still retrieves only
|
|
102
|
-
the latest substantive row per requested stream after content validation.
|
|
103
|
-
|
|
104
|
-
An indexed history append reads and SHA-256-hashes the complete affected stream
|
|
105
|
-
before the append to certify its existing index base, then reads and hashes it
|
|
106
|
-
again after the authoritative append to publish the new content receipt. Both
|
|
107
|
-
checks run under the history-index writer lock. This history validation cost is
|
|
108
|
-
O(stream bytes), in addition to the changed-item metadata projection work.
|
|
109
|
-
Unfiltered follow queries repeat selected-stream validation on every iteration;
|
|
110
|
-
use an item filter and an explicit interval appropriate to the history size.
|
|
111
|
-
Further append and follow measurements are tracked by
|
|
112
|
-
[pm-history-receipt-cost](../.agents/pm/tasks/pm-history-receipt-cost.toon).
|
|
113
|
-
See [SDK Context Coordination](SDK_CONTEXT_COORDINATION.md).
|
|
114
|
-
|
|
115
|
-
SDK hosts that commit authoritative item documents outside the stock mutation
|
|
116
|
-
commands use `acquireItemMetadataDerivedIndexLock` and
|
|
117
|
-
`refreshItemMetadataDerivedIndex` from `@unbrained/pm-cli/sdk` around the same
|
|
118
|
-
commit boundary. Repeated writes collapse by item path in the delta instead of
|
|
119
|
-
growing an event log; a later source scan compacts the projection into fresh
|
|
120
|
-
base tiers. Projection failure removes the rebuildable tiers, delta, and
|
|
121
|
-
manifest and returns a warning; it never rolls back or outranks the
|
|
122
|
-
authoritative item/history write. Small workspaces without an active index
|
|
123
|
-
receive a no-op release function and retain direct external-edit detection.
|
|
124
|
-
|
|
125
|
-
Context-signal snapshots follow the same rule: they are versioned and
|
|
126
|
-
cursor-stamped, never authoritative, and rebuild from the metadata index or
|
|
127
|
-
source-scan fallback when missing, stale, or corrupt. The stock `context` and
|
|
128
|
-
`next` projections use separate snapshot namespaces, persist only
|
|
129
|
-
caller-independent signals, and recompute author, time, semantic, and usage
|
|
130
|
-
overlays on every read. SDK hosts can use `readWorkspaceContextSignals` for the
|
|
131
|
-
same automatic cursor binding or compose `ContextSignalStore` directly, while
|
|
132
|
-
retaining explicit `fresh`/`rebuilt` and `derived_index`/`scan_fallback`
|
|
133
|
-
diagnostics. See [Context relevance and packing](CONTEXT_RELEVANCE.md).
|
|
134
|
-
|
|
135
|
-
At 10,000 items, `context` and `search` also build
|
|
136
|
-
`runtime/workspace-memory.json`: compact calendar-epoch and epic-lineage
|
|
137
|
-
summaries over completed history. The snapshot is cursor-bound, token-bounded
|
|
138
|
-
when attached to context, searchable without expanding closed rows, and skipped
|
|
139
|
-
entirely below the threshold. Missing, stale, corrupt, or unwritable memory
|
|
140
|
-
state rebuilds or degrades without outranking item documents or history.
|
|
141
|
-
|
|
142
|
-
To refresh a baseline after an intentional, measured improvement:
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
pnpm benchmark:scale --items ci --iterations 5 --transport both --update --headroom 1.25
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Review the report and budget diff together. Before a refresh, compare the delivery head with its exact base commit using the same runtime, fixture shape, and transport set; retain that evidence on the owning PM item. Never update a budget merely to silence a regression.
|
|
149
|
-
|
|
150
|
-
## Startup and observability
|
|
151
|
-
|
|
152
|
-
Sentry is loaded only when an error-reporting path actually initializes it. Disabled and normal successful commands do not resolve or compile the `@sentry/node` → OpenTelemetry → Undici graph. The loader uses the package's supported CommonJS export after the opt-out gate, preserving the repo-wide ban on dynamic/inline imports while keeping enabled capture, sanitization, and flush behavior intact.
|
|
153
|
-
|
|
154
|
-
## Invocation timing
|
|
155
|
-
|
|
156
|
-
Tracked by [pm-ag9nka](../.agents/pm/issues/pm-ag9nka.toon).
|
|
157
|
-
|
|
158
|
-
Use `pm --profile list --limit 5` to print diagnostics on stderr while retaining
|
|
159
|
-
normal stdout (including JSON). Every executable invocation with `--profile`
|
|
160
|
-
emits one final receipt on normal process drain, including help, version, and
|
|
161
|
-
handled refusals:
|
|
162
|
-
|
|
163
|
-
```text
|
|
164
|
-
profile:command=list took_ms=20
|
|
165
|
-
profile:invocation total_ms=324.125 scope=process_start_to_output_drain command_took_ms_scope=handler
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
`total_ms` uses monotonic runtime uptime, starting before module initialization
|
|
169
|
-
and ending after pending command output and event-loop work drain. It includes
|
|
170
|
-
bootstrap, settings/schema and extension loading, dispatch, rendering, and
|
|
171
|
-
foreground cleanup. Existing `profile:command` records retain their compatible
|
|
172
|
-
`took_ms` field; `command_took_ms_scope=handler` explicitly labels those narrower
|
|
173
|
-
spans. Extension discovery timing is another component, never an invocation
|
|
174
|
-
total. Components may overlap and must not be added to the total.
|
|
175
|
-
|
|
176
|
-
The total excludes parent-side scheduling/spawn, final OS teardown, and remote
|
|
177
|
-
telemetry delivery after a detached flush. A forcibly terminated process may
|
|
178
|
-
never reach the drain callback. In-process SDK calls do not emit a process-total
|
|
179
|
-
receipt: their host owns the lifetime. `--profile` after the `--` positional
|
|
180
|
-
terminator does not enable the receipt.
|
|
181
|
-
|
|
182
|
-
The real-process regression compares the reported total against external wall
|
|
183
|
-
time across query, mutation, configuration, schema, health, discovery, and
|
|
184
|
-
refusal paths. It permits parent/teardown overhead of the greater of 250 ms or
|
|
185
|
-
25% of external wall time, and no more than 5 ms of clock rounding above it.
|
|
186
|
-
This is an instrument agreement tolerance, not a performance budget. Existing
|
|
187
|
-
transport/scale gates retain external end-to-end process wall time and their
|
|
188
|
-
unchanged stricter regression budgets; never gate invocation latency on handler
|
|
189
|
-
`took_ms`.
|
package/docs/QUALITY_EVIDENCE.md
DELETED
|
@@ -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.
|