@unbrained/pm-cli 2026.11.7 → 2026.11.9
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/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +84 -48
- package/dist/cli/extension-command-help.js +4 -3
- package/dist/cli/help-json-payload.js +1 -1
- package/dist/cli/main.js +1 -1
- package/dist/cli/register-annotations.js +1 -1
- package/dist/cli/register-list-query.js +5 -5
- package/dist/cli/runtime/annotation-option-retry.js +2 -0
- package/dist/cli/runtime/invocation-options.js +1 -1
- package/dist/cli/runtime/projection-retry.js +1 -1
- package/dist/cli/runtime/read-output-mutation-retry.js +2 -0
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-3BMIAI4P.js +8 -0
- package/dist/cli-bundle/chunks/chunk-5VRJPPUC.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-WXVMPLBY.js → chunk-6V4PGJBZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-F3B2ULHB.js → chunk-ASJZMYKM.js} +33 -33
- package/dist/cli-bundle/chunks/chunk-BLUCQ4T4.js +2 -0
- package/dist/cli-bundle/chunks/chunk-ELNWRSGZ.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-RFI4O6NU.js → chunk-EZRLW4R6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OJZG7Y6S.js → chunk-G6Q4VQSI.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-GCPP37N6.js +116 -0
- package/dist/cli-bundle/chunks/{chunk-OIBSKKCO.js → chunk-GDQ2T2OR.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KPAVZILX.js → chunk-GZVOOHTO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3DI6CEF3.js → chunk-IGT252ES.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-JK7O7MFO.js +31 -0
- package/dist/cli-bundle/chunks/{chunk-MQOZNGPS.js → chunk-JYQXIC6C.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XSEDESNW.js → chunk-LVDFPGD7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QG6FLDM4.js → chunk-MSJ7IHMJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-BQ5O3CBF.js → chunk-O2M3TNFY.js} +69 -65
- package/dist/cli-bundle/chunks/chunk-UFIM5ZC5.js +6 -0
- package/dist/cli-bundle/chunks/chunk-VATZTJE3.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-WS2N4TQW.js → chunk-XKY4LUXN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VM6OGNQC.js → chunk-YK5GAWOT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TGQPCNAD.js → chunk-YV5ALMG2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ETHAZC3F.js → chunk-Z3QEEOAM.js} +2 -2
- package/dist/cli-bundle/chunks/item-revision-Y5CE3EIN.js +2 -0
- package/dist/cli-bundle/chunks/item-transaction-XBIN4KYM.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-LUXUKISJ.js → mutation-admission-TAQN2AKK.js} +2 -2
- package/dist/cli-bundle/chunks/register-list-query-XMQYFUFI.js +11 -0
- package/dist/cli-bundle/chunks/register-mutation-OBVCFLDK.js +20 -0
- package/dist/cli-bundle/chunks/{register-operations-AHDWE2G3.js → register-operations-CGNFZ6DR.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-7BGG3CI3.js → register-setup-LFB5ERXH.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-S5BYWLGY.js → stage-NQHF6JPC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-2SQUWQP3.js +26 -0
- package/dist/cli-bundle/focused-chunks/chunk-4FWMXQN3.js +12 -0
- package/dist/cli-bundle/focused-chunks/chunk-AH5IST3V.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-4EXRRSDS.js → chunk-ALLOWZSH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IYJRFJHT.js → chunk-C3DO4ZGZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-CUGJ2DY2.js +24 -0
- package/dist/cli-bundle/focused-chunks/chunk-HLQOGAWG.js +26 -0
- package/dist/cli-bundle/focused-chunks/chunk-HNFY3XLC.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-IB6TCE7N.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-LW4TN5ZM.js → chunk-IS5FLEZW.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-J7PWHKZK.js +91 -0
- package/dist/cli-bundle/focused-chunks/chunk-JU62TKJP.js +82 -0
- package/dist/cli-bundle/focused-chunks/chunk-LDMBNTOG.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-LWMPQRJT.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-MYBKRV5R.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-NUFO3OR6.js +44 -0
- package/dist/cli-bundle/focused-chunks/chunk-NZQYHPUN.js +3 -0
- package/dist/cli-bundle/focused-chunks/{chunk-JRJOFMI7.js → chunk-Q45LDP7P.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-QWUWNFQO.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-RNZUORGI.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-G2VIY6XA.js → chunk-UIKLNSW3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BIDF4KO7.js → chunk-XLSTFUXM.js} +8 -8
- package/dist/cli-bundle/focused-chunks/item-revision-M6FOLME2.js +2 -0
- package/dist/cli-bundle/focused-chunks/item-transaction-H6VA5JGB.js +2 -0
- package/dist/cli-bundle/focused-chunks/mutation-admission-PRTQWQK6.js +2 -0
- package/dist/cli-bundle/focused-chunks/stage-7T77PSJD.js +2 -0
- package/dist/cli-bundle/main.js +32 -31
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +4 -4
- 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 +57 -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 +12 -12
- package/dist/core/extensions/flag-definition-validation.js +1 -1
- package/dist/core/extensions/reserved-host-flags.js +1 -1
- package/dist/core/history/history-stream-policy.d.ts +12 -3
- package/dist/core/history/history-stream-policy.js +1 -1
- package/dist/core/history/projection.d.ts +7 -2
- package/dist/core/history/projection.js +1 -1
- package/dist/core/item/item-format.d.ts +13 -1
- package/dist/core/item/item-format.js +2 -2
- package/dist/core/lock/lock.d.ts +1 -1
- package/dist/core/lock/lock.js +1 -1
- package/dist/core/output/output.d.ts +17 -1
- package/dist/core/output/output.js +7 -7
- package/dist/core/search/corpus.js +1 -1
- package/dist/core/search/providers.d.ts +3 -2
- package/dist/core/search/providers.js +1 -1
- package/dist/core/search/vector-stores.d.ts +3 -2
- package/dist/core/search/vector-stores.js +1 -1
- package/dist/core/sentry/instrument.d.ts +2 -1
- package/dist/core/sentry/instrument.js +1 -1
- package/dist/mcp/tool-definitions.js +1 -1
- package/dist/sdk/annotations.d.ts +44 -1
- package/dist/sdk/annotations.js +1 -1
- package/dist/sdk/authoring.d.ts +6 -0
- package/dist/sdk/authoring.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +15 -0
- 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/runtime-contracts.d.ts +6 -0
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/command-line.d.ts +2 -1
- package/dist/sdk/command-line.js +1 -1
- package/dist/sdk/comments.d.ts +4 -2
- package/dist/sdk/comments.js +1 -1
- package/dist/sdk/completion/bash.js +1 -1
- package/dist/sdk/completion/fish.js +2 -1
- package/dist/sdk/completion/zsh.js +4 -1
- package/dist/sdk/context-intent-contracts.d.ts +5 -1
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/contracts.d.ts +3 -0
- package/dist/sdk/contracts.js +1 -1
- package/dist/sdk/core.d.ts +14 -0
- package/dist/sdk/core.js +1 -1
- package/dist/sdk/corpus-shape.d.ts +2 -2
- package/dist/sdk/corpus-shape.js +1 -1
- package/dist/sdk/define.d.ts +14 -8
- package/dist/sdk/define.js +1 -1
- package/dist/sdk/extension/command-options.d.ts +123 -0
- package/dist/sdk/extension/command-options.js +2 -0
- package/dist/sdk/extension-contracts.d.ts +1 -2
- package/dist/sdk/extension-contracts.js +1 -1
- package/dist/sdk/generated/error-code-catalog-rows.js +1 -1
- 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.d.ts +8 -0
- package/dist/sdk/governance.js +1 -1
- package/dist/sdk/graph.d.ts +5 -0
- package/dist/sdk/graph.js +1 -1
- package/dist/sdk/index.d.ts +61 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/learnings.d.ts +4 -2
- package/dist/sdk/learnings.js +1 -1
- package/dist/sdk/lifecycle/item-revision.d.ts +6 -0
- package/dist/sdk/lifecycle/item-revision.js +1 -1
- package/dist/sdk/lifecycle/restore.d.ts +1 -1
- package/dist/sdk/merge.d.ts +3 -0
- package/dist/sdk/merge.js +1 -1
- package/dist/sdk/notes.d.ts +4 -2
- package/dist/sdk/notes.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/get-facet-roots.js +2 -0
- package/dist/sdk/query/get.js +1 -1
- package/dist/sdk/query/list.d.ts +5 -1
- package/dist/sdk/query/list.js +1 -1
- package/dist/sdk/query/search/semantic.d.ts +11 -3
- package/dist/sdk/query/search/semantic.js +1 -1
- package/dist/sdk/query/search-rendering.d.ts +9 -3
- package/dist/sdk/query/search-rendering.js +1 -1
- package/dist/sdk/query.d.ts +11 -0
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/read-output/continuation.d.ts +8 -0
- package/dist/sdk/read-output/continuation.js +1 -1
- package/dist/sdk/read-output/options.d.ts +1 -1
- package/dist/sdk/read-output/options.js +1 -1
- package/dist/sdk/read-output/positional-rows.js +2 -0
- package/dist/sdk/read-output/surfaces.js +1 -1
- package/dist/sdk/read-output/tail-retention.d.ts +34 -0
- package/dist/sdk/read-output/tail-retention.js +2 -0
- package/dist/sdk/read-output-budget.d.ts +14 -2
- package/dist/sdk/read-output-budget.js +1 -1
- package/dist/sdk/read-output-contracts.d.ts +24 -4
- package/dist/sdk/read-output-contracts.js +1 -1
- package/dist/sdk/read-output-rows.d.ts +7 -3
- package/dist/sdk/read-output-rows.js +1 -1
- package/dist/sdk/runtime/actions.js +1 -1
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime.d.ts +26 -3
- package/dist/sdk/runtime.js +1 -1
- package/dist/sdk/test/execution.d.ts +29 -2
- package/dist/sdk/test/execution.js +1 -1
- package/dist/sdk/testing.d.ts +14 -1
- package/dist/sdk/testing.js +1 -1
- package/dist/sdk/traceability/source-traceability.d.ts +4 -1
- package/dist/sdk/traceability/source-traceability.js +1 -1
- package/dist/sdk/workspace-recipe.d.ts +2 -2
- package/dist/sdk/workspace-recipe.js +1 -1
- package/docs/AGENT_OUTPUT_ENCODINGS.md +16 -0
- package/docs/ARCHITECTURE.md +2 -1
- package/docs/COMMANDS.md +4 -1
- package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +1 -1
- package/docs/EXTENSIONS.md +1 -1
- package/docs/MCP_OPTION_CONFORMANCE.md +13 -0
- package/docs/README.md +2 -2
- package/docs/READ_OUTPUT_CONTRACTS.md +99 -0
- package/docs/RELEASING.md +27 -5
- package/docs/SDK.md +100 -2
- package/docs/SDK_CONTEXT_INTEGRITY.md +2 -0
- package/docs/agent-task-token-baseline.json +1 -1
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +6 -6
- package/marketplace.json +1 -1
- package/package.json +3 -1
- 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/extension-command-options.js +0 -2
- package/dist/cli-bundle/chunks/chunk-4PPWVIIT.js +0 -2
- package/dist/cli-bundle/chunks/chunk-5KHLV7JU.js +0 -116
- package/dist/cli-bundle/chunks/chunk-COKKWMSC.js +0 -8
- package/dist/cli-bundle/chunks/chunk-D53G3NOE.js +0 -6
- package/dist/cli-bundle/chunks/chunk-JZWFZH2K.js +0 -2
- package/dist/cli-bundle/chunks/chunk-O6TIOKCM.js +0 -9
- package/dist/cli-bundle/chunks/chunk-WYIDX67P.js +0 -31
- package/dist/cli-bundle/chunks/item-revision-SPEKTFBB.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-BT55TQXE.js +0 -2
- package/dist/cli-bundle/chunks/register-list-query-DU4W7VJU.js +0 -11
- package/dist/cli-bundle/chunks/register-mutation-IC2C53QK.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-4LDOL6U7.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-4PW5XWVI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-A46YSPRF.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-AI2PYNFI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-AJ2I377F.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-CWFNQQZE.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-D3U7FOZR.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-GFF6BITP.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-IIBWXNW3.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-J5N42SKC.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-KL33JMPC.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-LH4C7BLB.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-LTQEYE2L.js +0 -81
- package/dist/cli-bundle/focused-chunks/chunk-LTTMERPN.js +0 -12
- package/dist/cli-bundle/focused-chunks/chunk-MESFDQ3H.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-MWTBAI3V.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-TWULNB3N.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-XAC6NP7U.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-XG3TBYQK.js +0 -23
- package/dist/cli-bundle/focused-chunks/chunk-XMZAFKVP.js +0 -91
- package/dist/cli-bundle/focused-chunks/item-revision-ELI6NGMY.js +0 -2
- package/dist/cli-bundle/focused-chunks/item-transaction-GUGAUY77.js +0 -2
- package/dist/cli-bundle/focused-chunks/mutation-admission-54FI37AA.js +0 -2
- package/dist/cli-bundle/focused-chunks/stage-OHDJ43T2.js +0 -2
- package/docs/ECOSYSTEM_PLANNING_REVIEW.md +0 -274
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +0 -472
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B as ke,C as Me,E as W,H as Re,J as Ie,K as Ce,M as Ne,a as Oe,p as J}from"./chunk-AJ2I377F.js";import"./chunk-MESFDQ3H.js";import"./chunk-KL33JMPC.js";import{A as Ae,B as L,C as Te,y as k,z as K}from"./chunk-BIDF4KO7.js";import"./chunk-D3U7FOZR.js";import"./chunk-IYJRFJHT.js";import"./chunk-IDAYTYNN.js";import"./chunk-GFF6BITP.js";import"./chunk-G2VIY6XA.js";import"./chunk-SVOOGGAK.js";import"./chunk-4EXRRSDS.js";import{N as we,Q as ge}from"./chunk-IIBWXNW3.js";import"./chunk-JRJOFMI7.js";import"./chunk-XAC6NP7U.js";import{Ea as $e}from"./chunk-LTTMERPN.js";import"./chunk-A46YSPRF.js";import"./chunk-LH4C7BLB.js";import{z as x}from"./chunk-XG3TBYQK.js";import"./chunk-J5N42SKC.js";import{pa as pe,va as le}from"./chunk-TWULNB3N.js";import"./chunk-MWTBAI3V.js";import"./chunk-LW4TN5ZM.js";import"./chunk-GHQVM6K6.js";import{Y as Ee,h as q,t as $}from"./chunk-XMZAFKVP.js";import{$a as Se,I as ve,Xa as _e,fb as be,ha as S,sa as T,wa as G}from"./chunk-LTQEYE2L.js";import"./chunk-AI2PYNFI.js";import{c as me,e as F,f as fe,i as he}from"./chunk-CWFNQQZE.js";import"./chunk-4PW5XWVI.js";import"./chunk-I5LGPUWH.js";import"./chunk-C3O6JJPO.js";import{Ga as ue,mc as ye,nc as P,ra as D,ya as de}from"./chunk-4LDOL6U7.js";import"./chunk-EGN2HFRU.js";import"./chunk-FOA7XKWP.js";import{A as l,E as j,G as ce,H as O,l as oe,q as E,s as ae,x as se,z as m}from"./chunk-G6ERMFJ5.js";import X from"node:crypto";import{constants as V}from"node:fs";import{cp as nt,lstat as Fe,mkdir as rt,mkdtemp as Pe,open as it,readdir as ot,realpath as xe,rm as Ge,stat as Z,writeFile as qe}from"node:fs/promises";import{tmpdir as Ke}from"node:os";import d from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="01728cbc-2037-50d2-8318-5f106714b8da")}catch{}})();var He=new Set(["id","title","description","type","status","priority","tags","body","deadline","estimated_minutes","acceptance_criteria","definition_of_ready","order","rank","assignee",...oe,"affected_version","fixed_version","component","regression","customer_impact","close_reason","completed_at","dependencies","comments","notes","learnings","files","tests","docs","reminders","events","type_options"]);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6456f85b-e076-5048-9c21-03d477267259")}catch{}})();function z(e,t,r){let n=e?.estimatedMinutes;if(!(n===void 0||typeof n=="string"))throw new l(`Mutation ${r+1} ${t} option "estimatedMinutes" must be a string.`,m.USAGE,{code:"mutation_option_value_invalid",required:'Pass estimatedMinutes as a string, for example "45", in raw mutation options.',why:"Raw options use the create/update command option types; item documents accept numeric estimated_minutes instead.",nextSteps:["Quote the estimatedMinutes value or use an item document with numeric estimated_minutes, then retry the transaction."]})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a17df3f5-aee8-5734-b1ce-b643482be3a7")}catch{}})();var Xe=["op","id","reason","options","unique","match"],Ze=[...Xe,"ref"],en=[...Ze,"item"];var je="[a-z][a-z0-9._-]{0,63}",tn=new RegExp(`^${je}$`,"u"),nn=new RegExp(`(^|,)id=@(${je})(?=,|$)`,"gu"),Ue=e=>e.slice(2).replaceAll(/-([a-z])/gu,(t,r)=>r.toUpperCase());var Qe=new Set(["created_at","updated_at","closed_at","version","format_version","path","author","collection_counts","notes_count","tests_count"]),rn=new Set([...Qe,"completed_at","id"]),on={create:we.map(e=>e.target),update:ge.map(e=>e.target),close:pe.map(e=>Ue(e.flag)).filter(e=>e!=="reason"),release:le.map(e=>Ue(e.flag))};function et(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function tt(e,t){return e<t?-1:+(e!==t)}function B(e){return Array.isArray(e)?e.map(B):et(e)?Object.fromEntries(Object.entries(e).sort(([t],[r])=>tt(t,r)).map(([t,r])=>[t,B(r)])):e}function v(e){return typeof e=="string"?e.trim():JSON.stringify(B(e))}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="49806fc6-ff49-5b67-9b3f-c182ace00c20")}catch{}})();async function at(e,t){if(!Se(e))return{schema:F(t.schema),typeDefinitionsFromFile:[]};let r=await gt(e,t.schema);return{schema:r.schema,typeDefinitionsFromFile:r.type_definitions_from_file??[]}}async function st(e,t,r,n){let i=D({...t,item_types:{...t.item_types,definitions:[...t.item_types?.definitions??[],...r.typeDefinitionsFromFile]}},P());return(await Ee(e,t.item_format,i.type_to_folder,void 0,r.schema)).flatMap(a=>{let o=a[n];return o==null?[]:[{id:a.id,value:o}]})}function Q(e){let t=new Map,r=async n=>{let i=await be(e),a=await at(e,i),o=new Map;for(let s of await st(e,i,a,n)){let c=v(s.value);o.set(c,[...o.get(c)??[],s.id])}return o};return{lookup(n){let i=t.get(n)??r(n);return t.set(n,i),i},async recordCreate(n){for(let[i,a]of t){let o=n[i];if(o==null)continue;let s=await a,c=v(o);s.set(c,[...s.get(c)??[],String(n.id)])}},invalidate(){t.clear()}}}async function ct(e,t){let r=v(t.value),n=(await e.lookup(t.key)).get(r)??[];if(n.length!==0)throw new l(`Upsert key "${t.key}" value ${JSON.stringify(r)} now matches existing item ${n.join(", ")}; the plan was resolved before it existed.`,m.CONFLICT,{code:"upsert_key_conflict",required:"Re-plan the document so the row updates the existing item instead of creating a duplicate.",why:"Keyed upsert is resolved before the writer lock, so every remaining create is re-checked under the lock; concurrent imports therefore cannot create two items for one key value.",nextSteps:["Re-run pm item mutate with the same document and --upsert-key; the re-plan turns the row into an update of the existing item.","Inspect the existing item first when its content should win over the document row."]})}function dt(e,t,r){let n=e.metadata[r.key],i=v(r.value);if(v(n)!==i)throw new l(`Item ${t} no longer carries upsert key "${r.key}" value ${JSON.stringify(i)}; the plan selected it before the key changed.`,m.CONFLICT,{code:"upsert_match_changed",required:"Re-plan the document so the row is resolved against the current key values.",why:"Keyed upsert selects its target before the writer lock, so the update re-reads the key under the lock instead of updating a mismatched item blindly.",nextSteps:["Re-run pm item mutate with the same document and --upsert-key; the re-plan creates or re-targets the row from the current key values."]})}function De(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=e;return typeof t.key=="string"&&t.key.trim().length>0&&t.value!==void 0&&t.value!==null}function C(e,t){let r={...e,...t};return e===void 0?r:x(e,r)}async function g(e,t){try{let r=(await J(t,{},{pmRoot:e})).item;return{id:r.id,closedAt:r.closed_at,updatedAt:r.updated_at,assignee:r.assignee,claimPrincipal:r.claim_principal}}catch(r){if(r instanceof l&&r.exitCode===m.NOT_FOUND)return;throw r}}function ee(e,t){let r=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_"),n=X.createHash("sha256").update(ue(e)).digest("hex").slice(0,12);return`${t+1}-${e.op}-${r}-${n}`}function ut(e,t){let r=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_");return`${t+1}-${e.op}-${r}`}function h(e,t,r){return`bulk-item-transaction ${e} ${t} ${r}`}async function A(e,t,r,n){let i=await S(d.join(e,"history",`${t}.jsonl`),t),a=h(r,n,"apply"),o=h(r,n,"compensate");for(let s=i.length-1;s>=0;s-=1){let c=i[s].message;if(c===a)return!0;if(c===o)return!1}return!1}async function te(e,t){let r=await g(e,t.id);if(r?.updatedAt===void 0)throw new l(`Bulk ${t.op} target ${t.id} does not exist or has no restorable version`,m.NOT_FOUND);let n=await S(d.join(e,"history",`${r.id}.jsonl`),r.id);if(n.length===0)throw new l(`Bulk ${t.op} target ${t.id} has no restorable history`,m.NOT_FOUND);return{target_updated_at:r.updatedAt,target_version:String(q(n)+n.length),target_history_hash:T(n),target_history_length:n.length}}function b(e,t,r){return new l(`Transaction ${e.transactionId} cannot safely compensate incomplete step ${r}; review item ${t} history before recovery.`,m.CONFLICT,{code:"transaction_partial_mutation",item_id:t,required:"Reconcile the item's partial or intervening changes before resuming this transaction.",why:"The retained history does not prove exclusive ownership of the changes to undo. The journal remains compensating instead of claiming a rollback or overwriting another writer.",nextSteps:[`Run pm history ${t} and inspect this transaction's retained compensation data before explicitly restoring or reconciling the item.`]})}function Le(e,t){let r=`bulk-item-transaction ${t} `;return[e.message,e.context?.item_transaction_step].some(n=>typeof n=="string"&&n.startsWith(r))}function pt(e,t,r){let{expectedHistory:n,length:i,version:a}=t;if(T(e)===n)return!1;if(typeof i!="number"||!Number.isSafeInteger(i)||i<1||T(e.slice(0,i))!==n||a!==String(q(e)+i))throw b(r,r.itemId,r.stepId);let o=h(r.transactionId,r.stepId,"apply"),s=e.slice(i),c=p=>p.message===o||p.context?.item_transaction_step===o,u=h(r.transactionId,r.stepId,"compensate");if(s.filter(p=>c(p)||p.message===u).at(-1)?.message===u)return!1;let f=s.filter(c);if(f.length===0)return!1;let _=e.at(-1).after_hash===f.at(-1).after_hash&&s.every(p=>Le(p,r.transactionId));if(f.length!==s.length&&!_)throw b(r,r.itemId,r.stepId);return!0}async function N(e,t,r,n){let i=n!==null&&typeof n=="object"&&!Array.isArray(n)?n:void 0;if(i===void 0||typeof i.target_updated_at!="string")return;let a=i.target_updated_at,o=await g(e.pmRoot,t);if(o===void 0)return;let s=await S(d.join(e.pmRoot,"history",`${o.id}.jsonl`),o.id),c=i.target_history_hash;if(typeof c=="string"){if(!pt(s,{expectedHistory:c,length:i.target_history_length,version:i.target_version},{...e,itemId:o.id,stepId:r}))return}else{if(o.updatedAt===a)return;if(!await A(e.pmRoot,o.id,e.transactionId,r))throw b(e,o.id,r)}let u=()=>Ce(t,typeof i.target_version=="string"?i.target_version:a,{force:!0,author:e.author,message:h(e.transactionId,r,"compensate")},{pmRoot:e.pmRoot});await $({pmRoot:e.pmRoot,id:o.id,validate:f=>{if(G(f)!==s.at(-1).after_hash)throw b(e,o.id,r)}},u)}function Je(e,t,r){return{id:r,async inspect(){let n=await g(e.pmRoot,t.id);if(n===void 0)return{state:"pending"};if(n.closedAt!==void 0){let i=await S(d.join(e.pmRoot,"history",`${n.id}.jsonl`),n.id),a=`Compensated: interrupted bulk transaction ${e.transactionId}`;if(i.filter(o=>o.op==="close").at(-1)?.patch.some(o=>o.op==="add"||o.op==="replace"?o.path==="/metadata/close_reason"&&o.value===a:!1)??!1)throw new l(`Created item ${n.id} remains closed by transaction compensation; explicitly reopen or reconcile it before retrying.`,m.CONFLICT,{code:"transaction_create_compensated",item_id:n.id,required:"Review the compensated item and explicitly reopen it before retrying the same document.",why:"This item's latest closure belongs to transaction compensation. Automatically reopening it could overwrite later lifecycle decisions.",nextSteps:[`Run pm item reopen ${n.id} "Retry compensated creation" after reviewing its history, then retry the transaction.`]})}return{state:"applied",result:{id:n.id,op:"create"}}},async apply(){t.unique!==void 0&&await ct(e.uniqueIndex,t.unique);let n=await ke(C(t.options,{author:e.author,id:t.id,message:h(e.transactionId,r,"apply")}),{pmRoot:e.pmRoot}),i=n.item;return e.onCreateWarnings?.(String(i.id),n.warnings),await e.uniqueIndex.recordCreate(i),{id:String(i.id),op:"create"}},async compensate(){await lt(e,t.id,r)}}}async function lt(e,t,r){let n=await g(e.pmRoot,t);if(n===void 0||e.createCompensation==="close"&&n.closedAt!==void 0)return;let i=await S(d.join(e.pmRoot,"history",`${n.id}.jsonl`),n.id),a=h(e.transactionId,r,"apply"),o=h(e.transactionId,r,"compensate"),s=i.filter(c=>c.message===a||c.message===o).at(-1);if(s?.message!==o){if(s===void 0||!i.every(c=>Le(c,e.transactionId)))throw b(e,n.id,r);await $({pmRoot:e.pmRoot,id:n.id,validate:c=>{if(G(c)!==i.at(-1).after_hash)throw b(e,n.id,r)}},async()=>{let c={force:!0,author:e.author,message:o};e.createCompensation==="delete"?await Ie(t,c,{pmRoot:e.pmRoot}):await W(t,`Compensated: interrupted bulk transaction ${e.transactionId}`,c,{pmRoot:e.pmRoot})})}}function mt(e,t,r){return{id:r,compensatePending:!0,async inspect(){let n=await g(e.pmRoot,t.id);return n===void 0?{state:"pending"}:await A(e.pmRoot,n.id,e.transactionId,r)?{state:"applied",result:{id:n.id,op:"update"}}:{state:"pending"}},async prepareCompensation(){return te(e.pmRoot,t)},async apply(){let n=()=>Me(t.id,C(t.options,{author:e.author,message:h(e.transactionId,r,"apply")}),{pmRoot:e.pmRoot}),i=t.match,a=i,o=(await $({pmRoot:e.pmRoot,id:String((await J(t.id,{},{pmRoot:e.pmRoot})).item.id),validate:s=>{a!==void 0&&dt(s,t.id,a)},committed:s=>{i!==void 0&&(a={key:i.key,value:structuredClone(s.metadata[i.key])})},historyContext:{item_transaction_step:h(e.transactionId,r,"apply")}},n)).item;return e.uniqueIndex.invalidate(),{id:String(o.id),op:"update"}},async compensate(n){await N(e,t.id,r,n)}}}function ft(e,t,r){return{id:r,async inspect(){let n=await g(e.pmRoot,t.id);return n===void 0?{state:"pending"}:await A(e.pmRoot,n.id,e.transactionId,r)?{state:"applied",result:{id:n.id,op:"close"}}:n.closedAt===void 0?{state:"pending"}:{state:"applied",result:{id:n.id,op:"close"}}},async prepareCompensation(){return te(e.pmRoot,t)},async apply(){let n=(await W(t.id,t.reason,C(t.options,{author:e.author,message:h(e.transactionId,r,"apply")}),{pmRoot:e.pmRoot})).item;return e.uniqueIndex.invalidate(),{id:String(n.id),op:"close"}},async compensate(n){await N(e,t.id,r,n)}}}function ht(e,t,r){return{id:r,async inspect(){let n=await g(e.pmRoot,t.id);return n===void 0?{state:"pending"}:await A(e.pmRoot,n.id,e.transactionId,r)?{state:"applied",result:{id:n.id,op:"release"}}:n.assignee!==void 0||n.claimPrincipal!==void 0?{state:"pending"}:{state:"applied",result:{id:n.id,op:"release"}}},async prepareCompensation(){return te(e.pmRoot,t)},async apply(){let n=(await Re(t.id,C(t.options,{author:e.author,message:h(e.transactionId,r,"apply")}),{pmRoot:e.pmRoot})).item;return e.uniqueIndex.invalidate(),{id:String(n.id),op:"release"}},async compensate(n){await N(e,t.id,r,n)}}}function ne(e,t,r){let n=ee(t,r);switch(t.op){case"create":return Je(e,t,n);case"update":return mt(e,t,n);case"close":return ft(e,t,n);case"release":return ht(e,t,n)}}function yt(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`Bulk mutation ${t+1} must be an object`);if(!["create","update","close","release"].includes(e.op))throw new TypeError(`Bulk mutation ${t+1} op must be create, update, close, or release`);if(typeof e.id!="string"||e.id.trim().length===0)throw new TypeError(`Bulk mutation ${t+1} requires a non-empty id`);if(e.op==="close"&&(typeof e.reason!="string"||e.reason.trim().length===0))throw new TypeError(`Bulk close mutation ${t+1} requires a non-empty reason`);if(e.op==="create"&&e.unique!==void 0&&!De(e.unique))throw new TypeError(`Bulk create mutation ${t+1} unique must be an object with a non-empty key and a value`);if(e.op==="update"&&e.match!==void 0&&!De(e.match))throw new TypeError(`Bulk update mutation ${t+1} match must be an object with a non-empty key and a value`);z(e.options,e.op,t)}function We(e){if(e.length===0)throw new TypeError("Bulk item transaction requires at least one mutation");let t=new Map;for(let[r,n]of e.entries()){if(yt(n,r),n.op!=="create"||n.unique===void 0)continue;let{key:i,value:a}=n.unique,o=t.get(i)??new Map,s=v(a),c=o.get(s);if(c!==void 0)throw new l(`Bulk create mutations ${c+1} and ${r+1} share the upsert key value ${JSON.stringify(s)} for "${i}".`,m.USAGE,{code:"upsert_key_duplicate",required:"Each create must carry a distinct unique key value within one batch.",why:"Direct SDK batches must preserve the same uniqueness invariant as planned document rows."});o.set(s,r),t.set(i,o)}}function ze(e){let t=[...e];return We(t),t.map(r=>{let n=structuredClone(r);return r.options!==void 0&&n.options!==void 0&&x(r.options,n.options),n})}function Be(e,t=""){return e===null||typeof e!="object"?[]:Object.entries(e).flatMap(([r,n])=>{let i=`${t}/${r.replaceAll("~","~0").replaceAll("/","~1")}`;return/^(created_at|updated_at|closed_at|completed_at|timestamp)$/u.test(r)?[i]:Be(n,i)})}async function Y(e,t,r){try{return await r()}catch(n){throw n instanceof l?new l(n.message,n.exitCode,{...n.context,transaction_operation:{index:t,op:e.op,id:e.id}}):n}}function Ve(e,t,r,n){let i=d.relative(e,t),a=i.split(d.sep);return a[0]==="extensions"&&a[2]==="node_modules"&&!n.some(o=>i===o||i.startsWith(`${o}${d.sep}`)||o.startsWith(`${i}${d.sep}`))?!1:["locks","runtime","search"].includes(i.split(d.sep)[0])?n.some(o=>i===o||i.startsWith(`${o}${d.sep}`)||o.startsWith(`${i}${d.sep}`)):i===""||r===void 0||r.some(o=>i===o||i.startsWith(`${o}${d.sep}`)||o.startsWith(`${i}${d.sep}`))}async function R(e,t){let r=await Fe(t);if(r.isSymbolicLink())await Z(t);else if(r.isDirectory()||r.isFile())return r;throw O(d.relative(e,t))}async function wt(e,t){let r=await it(t,V.O_RDONLY|V.O_NOFOLLOW|V.O_NONBLOCK);try{let n=await r.stat();if(!n.isFile())throw O(d.relative(e,t));let i=X.createHash("sha256");if(n.size>0)for await(let a of r.createReadStream({highWaterMark:64*1024,end:n.size-1,autoClose:!1}))i.update(a);return i.digest()}finally{await r.close()}}async function H(e,t,r){let n=X.createHash("sha256");async function i(a){for(let o of(await ot(a)).sort()){let s=d.join(a,o);Ve(e,s,t,r)&&((await R(e,s)).isDirectory()?await i(s):(n.update(JSON.stringify(d.relative(e,s))),n.update(await wt(e,s))))}}return await i(e),n.digest("hex")}function M(){return new l("Tracker changed while preparing the transaction preview; retry against stable state.",m.CONFLICT,{code:"transaction_preview_snapshot_changed"})}async function re(e){if(!j(e))return!1;let t=e.path;if(typeof t!="string")return!1;let r=d.resolve(t),n=r;for(;;)try{let i=await Fe(n);return n!==r&&i.isDirectory()}catch(i){if(!j(i))return!1;let a=d.dirname(n);if(a===n)return!1;n=a}}async function I(e,t){let r=d.join(e,t);try{let n=e;for(let i of t.split(d.sep).slice(0,-1))n=d.join(n,i),await R(e,n);if(!(await R(e,r)).isFile())throw O(t);return await ce(r,O(t))}catch(n){if(await re(n))return;throw n}}async function Ye(e,t,r,n){let i=F(r);for(let[a,o]of Object.entries(i.files)){let s=d.relative(e,fe(e,o,me[a]));if(s===""||!d.resolve(e,s).startsWith(d.join(e,d.sep)))throw new l("Transaction preview requires schema files inside the selected tracker root; relocate the configured schema file before retrying.",m.USAGE,{code:"transaction_preview_external_schema",field:`schema.files.${a}`});i.files[a]=s;let c=await I(e,s);if(n?.set(s,c),c!==void 0){let u=d.join(t,s);await rt(d.dirname(u),{recursive:!0}),await qe(u,c)}}return he(t,i)}async function gt(e,t){await Z(e);let r=await Pe(d.join(Ke(),"pm-schema-plan-"));try{let n=await xe(e);return await Ye(n,d.join(r,"configuration"),t)}catch(n){throw await re(n)?M():n}finally{await Ge(r,{recursive:!0,force:!0})}}async function vt(e,t,r){let n=new Map,i=await I(e,E);n.set(E,i);let a;try{a=JSON.parse(i??"null")}catch{a=null}let o=_e(a),s=o.success?o.data:void 0,c=await Ye(e,t,s?.schema,n),u=c.schema,f=d.relative(e,ve(e));n.set(f,await I(e,f));let _=D({...se,item_types:{definitions:[...s?.item_types?.definitions??[],...c.type_definitions_from_file??[]]}},r),p=de(e)===e?[...ae.filter(Boolean),E,Oe,"transactions",..._.folders,...n.keys()].map(w=>d.normalize(w)):void 0,y=s===void 0?void 0:JSON.stringify({...a,schema:{...s.schema,files:u.files}});return{configuration:n,ownedPaths:p,stagedSettings:y,registryFolders:_.folders}}async function _t(e,t,r){await Z(e);try{let n=await xe(e),i=await vt(n,d.join(d.dirname(t),"configuration"),r),a=[...i.configuration.keys(),...i.registryFolders].map(u=>d.normalize(u)),o=await H(n,i.ownedPaths,a);await nt(n,t,{recursive:!0,dereference:!1,filter:async u=>Ve(n,u,i.ownedPaths,a)?(await R(n,u),!0):!1});let[s,c]=await Promise.all([H(n,i.ownedPaths,a),H(t,i.ownedPaths,a)]);if(o!==s||o!==c)throw M();for(let[u,f]of i.configuration)if(await I(t,u)!==f)throw M();i.stagedSettings!==void 0&&await qe(d.join(t,E),i.stagedSettings)}catch(n){throw await re(n)?M():n}}async function jn(e){let t=k(e),r=ze(e.mutations),n=P(),i=await Pe(d.join(Ke(),"pm-transaction-preview-")),a=d.join(i,"tracker");try{await _t(t.pmRoot,a,n);let o=!1,s=[],c=[],u=new Set;return await Ne({path:a,noExtensions:!0},async()=>{ye(n);let f={...t,pmRoot:a,createCompensation:"close",uniqueIndex:Q(a)},_=r.map((p,y)=>{let w=ne({...f,onCreateWarnings:(U,ie)=>{ie.length>0&&s.push({index:y,id:U,op:"create",warnings:ie})}},p,y);return{...w,inspect:()=>Y(p,y,()=>w.inspect()),prepareCompensation:()=>Y(p,y,async()=>w.prepareCompensation?.()),apply:()=>Y(p,y,async()=>{let U=await w.apply();return u.add(y),U})}});if(await K({...t,pmRoot:a,steps:_,onTransition:({transition:p})=>{p==="committed"&&(o=!0)}}),o)for(let[p,y]of r.entries()){let w=(await $e(y.id,{path:a},{full:!0})).item;c.push({index:p,id:String(w.id),op:y.op,execution:u.has(p)?"applied":"adopted",item:w,commit_time_fields:Be(w)})}}),{records:c,validated:o,state:o?"staged_snapshot":"replayed_committed_plan",warnings:s,unresolved_commit_constraints:["concurrent_tracker_changes","extension_mutation_guards_and_hooks","derived_extension_dependencies_excluded","generated_timestamps_and_provenance"]}}finally{await Ge(i,{recursive:!0,force:!0})}}async function St(e){let t=k(e),r=ze(e.mutations),n=e.createCompensation??"close";if(!["close","delete"].includes(n))throw new TypeError("Bulk item transaction createCompensation must be close or delete");let i={...t,createCompensation:n,uniqueIndex:Q(t.pmRoot)},a=await K({...t,steps:r.map((s,c)=>ne(i,s,c)),recoveryData:JSON.parse(JSON.stringify({kind:"item-mutations-v1",mutations:r,createCompensation:n})),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}}),o={};for(let[s,c]of r.entries()){let u=ee(c,s),f=a.results[u];o[ut(c,s)]=f}return{transactionId:a.transactionId,status:"committed",recovered:a.recovered,results:o}}function bt(e){let t=[];return e.evidence!==void 0&&Object.keys(e.evidence).length>0&&t.push({op:"update",id:e.id,options:e.evidence}),t.push({op:"close",id:e.id,reason:e.reason,...e.closeOptions===void 0?{}:{options:e.closeOptions}},{op:"release",id:e.id,...e.releaseOptions===void 0?{}:{options:e.releaseOptions}}),t}function Dn(e){return St({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,mutations:bt(e),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}})}var Fn={buildCreateStep:Je,bulkHistoryMarker:h,compensateByRestore:N,deriveStepId:ee,isUpdateMarkerApplied:A,readItemSnapshot:g};async function Pn(e,t){let r=await Ae(e,t);return r===void 0?void 0:{journal:r,planDigest:L(r)}}function Et(e,t){let r=t.recoveryData;if(r===null||typeof r!="object"||Array.isArray(r)||r.kind!=="item-mutations-v1"||!Array.isArray(r.mutations)||!["close","delete"].includes(String(r.createCompensation)))throw new l("Transaction has no supported item recovery plan",m.CONFLICT,{code:"transaction_recovery_plan_missing",required:"Resume with the original plan and its original adapter.",why:"Legacy or foreign journals cannot safely reconstruct item compensation."});let n=r.mutations;We(n);let i={...e,createCompensation:r.createCompensation,uniqueIndex:Q(e.pmRoot)};return n.map((a,o)=>ne(i,a,o))}async function xn(e){let t=k(e),r=await Te({...e,...t,resolveSteps:n=>Et({...e,...t},n)});return{journal:r,planDigest:L(r)}}export{Fn as _testOnlyItemTransaction,xn as abandonItemTransaction,bt as buildItemCompletionMutations,Dn as commitItemCompletion,St as commitItemMutations,st as listUpsertKeyCandidates,gt as loadGuardedRuntimeSchema,jn as previewItemMutations,Pn as readItemTransaction,at as resolveTransactionSchema};
|
|
2
|
-
//# sourceMappingURL=item-transaction-GUGAUY77.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as E,x as N}from"./chunk-GFF6BITP.js";import"./chunk-4EXRRSDS.js";import{N as y,Q as C}from"./chunk-IIBWXNW3.js";import"./chunk-XG3TBYQK.js";import"./chunk-J5N42SKC.js";import{Ma as h,Sa as w}from"./chunk-TWULNB3N.js";import"./chunk-XMZAFKVP.js";import{fb as A,k as R}from"./chunk-LTQEYE2L.js";import"./chunk-AI2PYNFI.js";import{l as T,m as O}from"./chunk-CWFNQQZE.js";import"./chunk-4PW5XWVI.js";import"./chunk-I5LGPUWH.js";import"./chunk-C3O6JJPO.js";import{a as g,xa as _}from"./chunk-4LDOL6U7.js";import{A as f}from"./chunk-G6ERMFJ5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="d19ff816-7570-5e8a-a4de-ad2ca48f0df0")}catch{}})();function b(t,o,r,a=!1){let d=[...r].map(n=>({candidate:n,distance:g(o,n,3)})).filter(n=>n.distance!==null).sort((n,i)=>n.distance-i.distance||n.candidate.localeCompare(i.candidate))[0]?.candidate,s=a?`Put mutation fields under options (options.${o}).`:d?`Did you mean "${d}"?`:"Use the declared command options or the field option for registered item fields.";throw new f(`Unknown ${t} ${a?"argument":"option"} "${o}". ${s} No changes were made.`,2,{code:"invalid_argument_value",reason:"unknown_mutation_option",changed:!1,field:o,required:s,nextSteps:[s]})}async function j(t,o,r,a,d){if(E(o))return;let s=t==="create"?y:C,n=(t==="create"?h:w).map(({flag:e})=>e.slice(2).replace(/-([a-z])/gu,(m,v)=>v.toUpperCase())),i=new Set([...s.flatMap(e=>[e.target,...e.keys]),...n]),l=["outputInclude","outputLimit","outputBudget","outputFormat","outputSession","outputCursor"];for(let e of["author","message","force","fullChangedFields","idOnly",...l])i.add(e);let S=new Set(["action","options","path","cwd","author","force","noExtensions","no_extensions","fullChangedFields","idOnly",...l,...d,...t==="update"?["id"]:[]]);for(let e of Object.keys(o))S.has(e)||b(t,e,i,i.has(e));let u=o.options;if(u!==void 0&&!N(u))throw new f("Mutation options must be an object. No changes were made.",2,{code:"invalid_argument_value",changed:!1});let c=[...new Set([...Object.keys(u??{}),...Object.keys(r)])].filter(e=>!i.has(e));if(c.length===0)return;let p=T((await A(_(process.cwd(),a))).schema).command_to_fields.get(t)??[];for(let e of p)i.add(O(e));for(let e of c)p.some(m=>R({[e]:!0},m)===!0)||b(t,e,i)}export{j as assertNativeMutationOptions};
|
|
2
|
-
//# sourceMappingURL=mutation-admission-54FI37AA.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as w,j as y}from"./chunk-IYJRFJHT.js";import{b as g}from"./chunk-IDAYTYNN.js";import"./chunk-GHQVM6K6.js";import"./chunk-LTQEYE2L.js";import"./chunk-CWFNQQZE.js";import"./chunk-4PW5XWVI.js";import{xa as h}from"./chunk-4LDOL6U7.js";import{b as u}from"./chunk-FOA7XKWP.js";import{A as f,z as d}from"./chunk-G6ERMFJ5.js";import{execFile as _}from"node:child_process";import{realpath as b}from"node:fs/promises";import l from"node:path";import{promisify as x}from"node:util";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7f4b2fc8-c9c6-51ff-a345-b76b8abdacf4")}catch{}})();var R=x(_);function c(e){return new f(`Automatic merge settlement refused: ${e}`,d.CONFLICT,{code:"merge_settlement_review_required",recovery:{suggested_retry:"pm merge reconcile --dry-run"},nextSteps:["Inspect receipts, repair streams and Git changes. Resolve competing values or unrelated drift explicitly, then run pm merge reconcile and stage the reviewed artifacts manually."]})}async function $(e){let t=process.env.GIT_INDEX_FILE;if(t===void 0)return;let a=(await e(["rev-parse","--path-format=absolute","--git-path","index"])).stdout.trim();if(l.resolve(t)!==l.resolve(a))throw c("an alternate Git index requires explicit manual settlement")}async function I(e,t){if(t.length===0)return[];let a=t.map(s=>`:(literal)${s}`),o=new Set((await e(["ls-files","--cached","-z","--",...a])).stdout.split("\0")),i=t.filter(s=>!o.has(s)).map(s=>`:(literal)${s}`);if(i.length>0&&(await e(["diff","--cached","--name-only","--diff-filter=D","-z","--",...i])).stdout.length>0)throw c("a receipt has a staged deletion that requires explicit review");return i}async function G(e){let{git:t,preview:a,paths:o,newReceiptPathspecs:i}=e,s=!1;try{i.length>0&&(s=!0,await t(["add","--",...i]));let n=await e.apply();if(!n.ok||JSON.stringify(n.receipts.summaries)!==JSON.stringify(a.receipts.summaries)||n.repair.streams.some(p=>!a.repair.streams.some(m=>m.id===p.id)))throw c("reconciliation changed or did not finish; inspect the audit artifacts before staging");return o.length>0&&await t(["add","--",...o.map(p=>`:(literal)${p}`)]),{...n,staged_paths:o,guidance:["Lossless reconciliation artifacts are staged for the merge commit. Review git diff --cached before committing."]}}catch(n){throw s&&await t(["reset","--quiet","--",...i]),n}}function k(e){if(e.repair.totals.failed>0||e.receipts.missing_history_references_after>0||e.receipts.summaries.some(t=>t.conflict_fields.length>0)||e.repair.streams.some(t=>t.merge_receipt_proof?.trusted!==!0)||e.validation.checks.some(t=>t.name!=="history_drift"&&t.status!=="ok"))throw c("only fully authenticated receipt-backed repairs without discarded values can be staged")}async function S(e){try{return{...e,path:await b(h(process.cwd(),e.path))}}catch{throw c("the tracker root cannot be resolved")}}async function F(e){let{preview:t}=e;k(t);let{path:a}=await S(e.global),o=await w(a);if(o===null)throw c("a Git workspace is required");let i=r=>R("git",r,{cwd:o,env:u(),timeout:1e4});if(await $(i),(await i(["ls-files","--unmerged","-z"])).stdout.length>0)throw c("Git still has unresolved paths");let s=[...new Set([...[...new Set([...t.repair.streams.map(r=>r.id),...t.receipts.summaries.map(r=>r.item_id)])].map(r=>l.join(a,"history",`${r}.jsonl`)),...t.receipts.summaries.map(r=>l.join(a,"merge-receipts",`${r.receipt_id}.json`))])].map(r=>l.relative(o,r).replaceAll("\\","/"));if(s.some(g))throw c("reconciliation artifacts must belong to this Git workspace");let n=await y(o,s);if(n.length>0)throw new f(`Automatic merge settlement refused: required artifacts are ignored by Git: ${n.map(r=>`${r.path} (${r.source}:${r.line}: ${r.pattern})`).join(", ")}. Remove or narrow the owning ignore rules because merge receipts must travel with the commit.`,d.CONFLICT,{code:"merge_settlement_review_required",reason:"ignored_merge_artifacts",paths:n.map(r=>r.path),nextSteps:["Remove or narrow the named ignore rules, preserve receipt and history files, then retry pm merge reconcile --stage --dry-run before applying pm merge reconcile --stage. Do not force-add ignored proof as a substitute for fixing the shared policy."]});let p=s.map(r=>`:(literal)${r}`),m=t.receipts.summaries.map(r=>l.relative(o,l.join(a,"merge-receipts",`${r.receipt_id}.json`)).replaceAll("\\","/"));if(p.length>0)try{await i(["diff","--quiet","--",...p])}catch{throw c("reconciliation paths have unstaged edits or Git cannot verify their index state")}let v=await I(i,m);return e.dryRun?{...t,staged_paths:[]}:G({...e,git:i,paths:s,newReceiptPathspecs:v})}export{S as resolveMergeSettlementGlobal,F as stageLosslessMergeReconciliation};
|
|
2
|
-
//# sourceMappingURL=stage-OHDJ43T2.js.map
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
# Ecosystem planning review — 2026-09-28
|
|
2
|
-
|
|
3
|
-
Tracked by [pm-p9a4](../.agents/pm/tasks/pm-p9a4.toon),
|
|
4
|
-
[pm-m08hza](../.agents/pm/decisions/pm-m08hza.toon),
|
|
5
|
-
[pm-1jzupz](../.agents/pm/features/pm-1jzupz.toon), and
|
|
6
|
-
[pm-wg07](../.agents/pm/chores/pm-wg07.toon).
|
|
7
|
-
|
|
8
|
-
Project management = context management. This review records a complete
|
|
9
|
-
structural census, targeted semantic review, measured operational checks, and
|
|
10
|
-
planning decisions on existing canonical items. It does not certify that every
|
|
11
|
-
historical sentence is correct or that every future capability is implemented.
|
|
12
|
-
Read the live item before acting on this dated evidence.
|
|
13
|
-
|
|
14
|
-
## Population and evidence
|
|
15
|
-
|
|
16
|
-
The strict CLI snapshot at `2026-09-28T05:40:12.139Z` contains 2,826 items:
|
|
17
|
-
2,532 closed, 221 open, 59 draft, and 14 canceled. No records or fields were
|
|
18
|
-
omitted, and no item or directory was unreadable. Blocking is also a derived
|
|
19
|
-
dependency condition: the initial orientation reported 60 blocked open items,
|
|
20
|
-
although no item used a literal `blocked` lifecycle status.
|
|
21
|
-
|
|
22
|
-
The cursor-resumed event read collected 68,876 complete events from 2,841
|
|
23
|
-
streams through `2026-09-28T05:41:59.143Z`, including deleted-item and workspace
|
|
24
|
-
history. All 23 Plan items also received deep plan reads for steps, decisions,
|
|
25
|
-
validation and resume metadata. This later cutoff includes the first review claim/comment events;
|
|
26
|
-
it is not silently equated with the earlier item snapshot. History-drift
|
|
27
|
-
validation passed across all 2,826 current items. The public SDK independently
|
|
28
|
-
verified hash chains for all 2,841 collected streams with zero failures.
|
|
29
|
-
|
|
30
|
-
[The per-item census](https://github.com/unbraind/pm-cli/blob/main/docs/ecosystem-review-2026-09-28.json) records every snapshot
|
|
31
|
-
ID, status, content fingerprint, structural classification, missing planning
|
|
32
|
-
fields, historical evidence gaps, and remediation owner. These are mechanical
|
|
33
|
-
findings, not invented historical estimates, outcomes, or review approvals.
|
|
34
|
-
The full raw corpus stays outside public documentation.
|
|
35
|
-
|
|
36
|
-
The census is intentionally excluded from npm. This packaged page uses its
|
|
37
|
-
canonical GitHub file URL under the [documentation policy](../AGENTS.md#documentation-policy),
|
|
38
|
-
so installed readers can access the data without a broken package-relative path.
|
|
39
|
-
|
|
40
|
-
| Measure | Initial observation | Interpretation |
|
|
41
|
-
|---|---:|---|
|
|
42
|
-
| Directed graph edges | 14,097 | Deduplicated directed basis |
|
|
43
|
-
| Ordering layers / critical-path edges | 12 / 11 | Acyclic prerequisite graph |
|
|
44
|
-
| Missing graph endpoints / isolated items | 0 / 0 | Across all statuses |
|
|
45
|
-
| Active / terminal outcome-unreachable items | 0 / 0 | Typed reachability basis |
|
|
46
|
-
| Generic `related` edges | 5,589 | 39.65% of directed edges |
|
|
47
|
-
| Specialized semantic edges | 1,885 | Discovery, recurrence, incident, verification, supersession |
|
|
48
|
-
| Items without a specialized semantic edge | 1,463 | 86 active, 1,377 terminal; not necessarily invalid |
|
|
49
|
-
| Legacy hierarchy exceptions | 7 children | Existing informational cardinality/direction findings |
|
|
50
|
-
| Closed items missing structured resolution evidence | 170 | Preserved residual, not a new regression |
|
|
51
|
-
| Active items missing required planning fields | 1 | Sentry major-upgrade item, repaired in this review |
|
|
52
|
-
| Tracked non-tracker artifacts with exact item links | 1,921 / 1,921 | Path ownership, not proof for every code change |
|
|
53
|
-
| Duplicate candidate clusters | 28 | Reviewed candidates, not 28 duplicate obligations |
|
|
54
|
-
|
|
55
|
-
Scanner records with different provider identities, parent/child acceptance
|
|
56
|
-
slices, distinct incidents and dated release executions remain separate. The
|
|
57
|
-
three identically titled accidental probes are already canceled. Similar audit
|
|
58
|
-
titles require their own event/acceptance comparison before any consolidation.
|
|
59
|
-
No existing item was deleted or closed merely because it matched a title.
|
|
60
|
-
|
|
61
|
-
## Graph organization
|
|
62
|
-
|
|
63
|
-
Use one structural parent and outcome paths for scope, `implements` for delivery,
|
|
64
|
-
`blocked_by` for an actual prerequisite, `discovered_from` for provenance,
|
|
65
|
-
`verifies` for verification responsibility, and `recurs_from` only for an
|
|
66
|
-
established recurring mechanism. Maintain prior evidence when correcting a link.
|
|
67
|
-
A declaration that an item will verify something is not a passing test result.
|
|
68
|
-
|
|
69
|
-
The native reconstruction plan retains its original execution obligations;
|
|
70
|
-
overlapping newly added steps are explicitly superseded by their existing owners,
|
|
71
|
-
and a dated census checkpoint records the completed refresh.
|
|
72
|
-
|
|
73
|
-
The planning pass restores explicit missing prerequisites in prospective
|
|
74
|
-
reminders, cross-branch relevance and external-package verification. The
|
|
75
|
-
historical batch restores three `discovered_from` edges to the governance run
|
|
76
|
-
whose original comment explicitly named the discoveries. Their release and
|
|
77
|
-
closure evidence remain unchanged. Generic links and transitive ordering
|
|
78
|
-
shortcuts are not added to meet density or depth targets.
|
|
79
|
-
|
|
80
|
-
[pm-qnl2](../.agents/pm/tasks/pm-qnl2.toon) owns active enrichment;
|
|
81
|
-
[pm-lnrk](../.agents/pm/tasks/pm-lnrk.toon) owns historical batches;
|
|
82
|
-
[pm-pj2isb](../.agents/pm/chores/pm-pj2isb.toon) owns misleading placeholder
|
|
83
|
-
metadata. The completed [pm-e9zh](../.agents/pm/chores/pm-e9zh.toon) preserves
|
|
84
|
-
its explicitly unrecoverable 170-item residual. A missing historical observation
|
|
85
|
-
must remain unknown until independent evidence is found.
|
|
86
|
-
|
|
87
|
-
After this pass the live graph contains 2,829 items and 14,118 directed edges,
|
|
88
|
-
including 1,894 specialized semantic edges. Generic `related` is 5,590 after one
|
|
89
|
-
reviewed correction from causal provenance to non-causal coordination; no dangling endpoints, isolated items or ordering contradictions were
|
|
90
|
-
introduced. Outcome reachability remains 100%. The 1,458 records without a
|
|
91
|
-
specialized semantic edge remain visible for evidence review; absence alone
|
|
92
|
-
does not justify inventing a relationship.
|
|
93
|
-
|
|
94
|
-
## Horizon and outcome organization
|
|
95
|
-
|
|
96
|
-
These are planning windows, not delivery promises. Capacity, prerequisites and
|
|
97
|
-
measured evidence govern promotion. Priority measures impact; horizon measures
|
|
98
|
-
readiness and uncertainty. Review monthly and when a material observation changes.
|
|
99
|
-
|
|
100
|
-
| Horizon | Illustrative window | Canonical outcomes and promotion evidence |
|
|
101
|
-
|---|---|---|
|
|
102
|
-
| Current | 0–3 months | [Agent-legible grammar](../.agents/pm/milestones/pm-j82fd3.toon), active readiness, retrieval failures, release diagnosis and current protocol proof. Require completed-task token comparisons, preserved compatibility and actual installed-consumer evidence. |
|
|
103
|
-
| Emerging | 3–12 months | [Provable history](../.agents/pm/milestones/pm-w7ccmv.toon), reproducible observations and [measured self-improvement](../.agents/pm/milestones/pm-zzylb9.toon). Require independent replay, mutation coverage and three consecutive measured improvement cycles. |
|
|
104
|
-
| Expansion | 12–36 months | [Proven scale](../.agents/pm/milestones/pm-o87av6.toon), [universal domain platform](../.agents/pm/milestones/pm-t4d7nz.toon), [federated agents](../.agents/pm/milestones/pm-z1kr34.toon). Require published million-item/fleet distributions and SDK-only domain exemplars. |
|
|
105
|
-
| Exploratory | 36+ months | [Multi-decade continuity](../.agents/pm/milestones/pm-ljrh29.toon) and independently evaluated cognitive mechanisms. Require explicit architecture decisions, migration proofs, calibrated uncertainty and rejection criteria. |
|
|
106
|
-
|
|
107
|
-
The [SDK-complete outcome](../.agents/pm/milestones/pm-9rgaal.toon) and
|
|
108
|
-
[GA stability contract](../.agents/pm/milestones/pm-xp1xsw.toon) retain their own
|
|
109
|
-
acceptance boundaries. Earlier SDK promotion work remains completed history;
|
|
110
|
-
future integrations must use published SDK contracts and expose gaps as individual
|
|
111
|
-
items. New names or parallel roadmap trees do not improve traceability.
|
|
112
|
-
|
|
113
|
-
## Concrete planning refinements
|
|
114
|
-
|
|
115
|
-
- **Command simplicity:** root help already has thirteen entries including help.
|
|
116
|
-
Evaluate the remaining grammar through complete orient/retrieve/claim/mutate/
|
|
117
|
-
verify/close and recovery journeys. Preserve working aliases and capabilities.
|
|
118
|
-
Count tokens across errors, retries, cursor pages and contract discovery.
|
|
119
|
-
The new [Plan receipt issue](../.agents/pm/issues/pm-hqy7lr.toon) records
|
|
120
|
-
whole-plan output amplification observed during single-step mutations; its
|
|
121
|
-
acceptance requires bounded SDK-owned receipts and preserved full inspection.
|
|
122
|
-
- **Algorithms:** the [existing portfolio](CONTEXT_ALGORITHM_PORTFOLIO.md)
|
|
123
|
-
remains authoritative. Individual items now detail bounded candidate quotas,
|
|
124
|
-
evidence coverage per token, typed spreading activation, activation decay,
|
|
125
|
-
approximate affinity sketches and content-addressed summary trees. Each names
|
|
126
|
-
inputs, costs, fallback, negative controls and a promotion/rejection rule.
|
|
127
|
-
Mathematical guarantees require their assumptions; a heuristic is not a proof.
|
|
128
|
-
- **Scale and branches:** separately measure cold build and warm reads at 3,
|
|
129
|
-
100,000 and 1,000,000 items, and 1/10/100/1,000 agents. Exercise partitions,
|
|
130
|
-
retries, expired claims, clock skew and arbitrary merge order. Record p50/p95/
|
|
131
|
-
p99, memory, index amplification and no-lost-acknowledged-write evidence.
|
|
132
|
-
- **Recursive improvement:** bind observe, propose, evaluate, land and remeasure
|
|
133
|
-
stages to immutable evidence. Keep the evaluator and held-out data independent
|
|
134
|
-
of the change under evaluation. Rejected proposals stay searchable.
|
|
135
|
-
- **Universal environments:** episodes use SDK reset/observe/step/score contracts,
|
|
136
|
-
seeded snapshots, idempotent actions, independent verdicts and temporal cutoffs.
|
|
137
|
-
Distinguish termination from truncation and prevent future-evidence leakage.
|
|
138
|
-
- **Durability:** append-only API behavior, hash-chain tamper evidence,
|
|
139
|
-
authenticated authorship and externally anchored proof are different guarantees.
|
|
140
|
-
Migration, redaction and cryptographic rotation need explicit restore tests.
|
|
141
|
-
|
|
142
|
-
## Verified behavior and remaining limits
|
|
143
|
-
|
|
144
|
-
### Local qwen3 retrieval
|
|
145
|
-
|
|
146
|
-
The project already selects local Ollama `qwen3-embedding:0.6b`. Refresh embedded
|
|
147
|
-
1,085 stale inputs in 34 requests, with zero retries or splits, at approximately
|
|
148
|
-
11.91 inputs/second. This proves multi-input batching at the current corpus size;
|
|
149
|
-
it does not prove the outstanding 100k/1M performance acceptance.
|
|
150
|
-
|
|
151
|
-
Five project golden queries were evaluated at k=10:
|
|
152
|
-
|
|
153
|
-
| Mode | Mean nDCG | Mean MRR | Mean recall | Broad history/episode query recall |
|
|
154
|
-
|---|---:|---:|---:|---:|
|
|
155
|
-
| Keyword | 0.7451 | 0.80 | 0.8727 | 4/11 |
|
|
156
|
-
| Semantic | 0.7944 | 0.85 | 0.8182 | 1/11 |
|
|
157
|
-
| Hybrid | 0.8405 | 0.90 | 0.8364 | 2/11 |
|
|
158
|
-
|
|
159
|
-
Aggregate passes conceal weak queries. The existing retrieval-quality owner
|
|
160
|
-
[pm-p1g43q](../.agents/pm/features/pm-p1g43q.toon) now carries this observation,
|
|
161
|
-
feasible per-query floors, held-out paraphrase evaluation and mode comparisons.
|
|
162
|
-
At k=10, a query with eleven relevant items cannot attain recall 1. The final
|
|
163
|
-
semantic index check covered all 2,829 current items with zero stale vectors.
|
|
164
|
-
|
|
165
|
-
### MCP and SDK
|
|
166
|
-
|
|
167
|
-
The official [versioning page](https://modelcontextprotocol.io/docs/2026-07-28/learn/versioning)
|
|
168
|
-
identifies `2026-07-28` as current. The repository
|
|
169
|
-
[conformance matrix](MCP_2026_07_28_CONFORMANCE.md) was compared with the official
|
|
170
|
-
[key changes](https://modelcontextprotocol.io/specification/2026-07-28/changelog).
|
|
171
|
-
The focused SDK, stateless stdio, Streamable HTTP and legacy-handshake run passed
|
|
172
|
-
145 tests in twelve files. Exact-version public verification also passed direct
|
|
173
|
-
and package-selected npx/bunx CLI dispatch, MCP discovery, Skills, Apps and HTTP,
|
|
174
|
-
including missing-bin negative controls. This is focused conformance evidence, not an assertion
|
|
175
|
-
that every optional extension or every deployment is certified. Deprecated
|
|
176
|
-
features must not be newly advertised merely to increase a feature count.
|
|
177
|
-
|
|
178
|
-
Ordinary review mutations recorded detected Codex identity, model and effort
|
|
179
|
-
without `PM_AUTHOR` or author flags. Role/topic inference carries its source and
|
|
180
|
-
confidence. Missing signals remain unknown; configuration is not native proof.
|
|
181
|
-
|
|
182
|
-
### Daily release
|
|
183
|
-
|
|
184
|
-
Version `2026.9.28` exists in npm and GitHub. The
|
|
185
|
-
[original automatic attempt](https://github.com/unbraind/pm-cli/actions/runs/36375818142)
|
|
186
|
-
failed after Windows global npm installation failed in the child release run.
|
|
187
|
-
The [same-version recovery](https://github.com/unbraind/pm-cli/actions/runs/36380136948)
|
|
188
|
-
passed npm, global npm and Bun on Linux, macOS and Windows and advertised the
|
|
189
|
-
existing version. It did not create a second automatic version that day.
|
|
190
|
-
|
|
191
|
-
The new [installer-diagnostics issue](../.agents/pm/issues/pm-q7c36n.toon)
|
|
192
|
-
records why the original cause remains unknown: the subprocess wrapper discards
|
|
193
|
-
error/signal details and the installer labels every retry registry availability.
|
|
194
|
-
Recovery proves the artifact can pass; it does not erase the failed attempt or
|
|
195
|
-
establish its cause. Keep automatic reliability, publication and consumer
|
|
196
|
-
acceptance as separate measurements.
|
|
197
|
-
|
|
198
|
-
## Prevention and repeatability
|
|
199
|
-
|
|
200
|
-
Six active-only zero-debt assertions now join `tracker-context-quality` for
|
|
201
|
-
missing description, acceptance criteria, risk, confidence, estimate and expected
|
|
202
|
-
result. The existing local and hosted quality pipeline invokes this same native
|
|
203
|
-
SDK gate. Terminal evidence gaps are deliberately outside the active-only policy.
|
|
204
|
-
An isolated temporary workspace failed all six assertions with missing fields
|
|
205
|
-
and passed all six after repair. This checks presence; semantic quality still
|
|
206
|
-
requires evidence review.
|
|
207
|
-
|
|
208
|
-
For repeat reviews, follow the
|
|
209
|
-
[ecosystem planning skill](../.agents/skills/pm-user/references/ECOSYSTEM_PLANNING.md).
|
|
210
|
-
Use complete CLI snapshots outside the prompt, cursor-resumed event streams,
|
|
211
|
-
exact source fingerprints, all-status duplicate checks and bounded mutation
|
|
212
|
-
batches. At million-item scale, use streaming/indexed consumers rather than
|
|
213
|
-
loading a whole JSON collection into the agent's context. Every changed item
|
|
214
|
-
retains its canonical owner, history and original acceptance boundary.
|
|
215
|
-
|
|
216
|
-
## Verification record
|
|
217
|
-
|
|
218
|
-
Quiescent validation passed for all 2,829 final items. The 170 historical
|
|
219
|
-
structured-evidence warnings are unchanged. All 38 changed history streams pass
|
|
220
|
-
the public SDK chain verifier; the 35 pre-existing streams retain byte-identical
|
|
221
|
-
historical prefixes. The three enriched closed features retain identical status,
|
|
222
|
-
closure, resolution and release fields. Final graph-composition and all 47
|
|
223
|
-
tracker-context-quality assertions pass, including the six new readiness rules.
|
|
224
|
-
|
|
225
|
-
An earlier long-running context gate saw one history-drift failure while this
|
|
226
|
-
review was still mutating the tracker. Independent validation and the final gate
|
|
227
|
-
pass with writes stopped; the earlier result is retained as a concurrent-read
|
|
228
|
-
observation, not rewritten as success. Skill/document validation, local links
|
|
229
|
-
and the generated changelog check also pass. All review claims are released. Three distinct issues were added after duplicate
|
|
230
|
-
checks: installer diagnostics, Plan mutation receipts and startup admission
|
|
231
|
-
diagnosis. Existing programmes retain their original acceptance boundaries.
|
|
232
|
-
|
|
233
|
-
The broad static run passed its build, lint, generated contracts, SDK parity,
|
|
234
|
-
command grammar, task-token, MCP deprecation, gate-registry and context-quality
|
|
235
|
-
checks, then failed the import-cost timing gate (bare Node median 305 ms against
|
|
236
|
-
106 ms). An isolated rerun passed all ten SDK entrypoints with unchanged budgets.
|
|
237
|
-
The initial timing failure remains part of the evidence; it is not a continuous
|
|
238
|
-
all-green static invocation.
|
|
239
|
-
|
|
240
|
-
The remaining graph and record-integrity gates passed. The mutation gate passed
|
|
241
|
-
with 323 of 330 mutants killed and seven classified as equivalent. The CLI
|
|
242
|
-
transport benchmark initially exceeded its list threshold (442 ms versus 419 ms);
|
|
243
|
-
the isolated rerun also failed: get 385/362 ms, context 466/433 ms, next
|
|
244
|
-
457/440 ms and create 424/398 ms. No performance limit was raised. The new
|
|
245
|
-
[startup investigation](../.agents/pm/issues/pm-bj7rq0.toon) distinguishes runner
|
|
246
|
-
qualification from a demonstrated product regression and preserves the completed
|
|
247
|
-
transport-floor implementation. This is an unresolved validation limitation.
|
|
248
|
-
|
|
249
|
-
## PR review corrections
|
|
250
|
-
|
|
251
|
-
PR #1333 identified two overly broad relationship claims. The standing release
|
|
252
|
-
reminder predates the new installer-diagnostics issue, so their link is `related`
|
|
253
|
-
coordination rather than `discovered_from` provenance. Four `verifies` rows from
|
|
254
|
-
the historical batch were removed: checking citations, history continuity and
|
|
255
|
-
release attribution does not verify the source run or feature behavior. The three
|
|
256
|
-
source-backed discovery links on closed features remain valid and unchanged.
|
|
257
|
-
|
|
258
|
-
The original writes and their corrections remain in immutable history. Five
|
|
259
|
-
holder/target/text-scoped citation exemptions distinguish the batch inventory
|
|
260
|
-
from verification claims without raising the prose-edge ceiling. The corrected
|
|
261
|
-
graph-composition gate passes.
|
|
262
|
-
|
|
263
|
-
The follow-up review narrowed those five exemptions to the complete original
|
|
264
|
-
paragraphs, including their historical source-event coordinates. In an isolated
|
|
265
|
-
temporary tracker the original citations pass, while a later batch comment
|
|
266
|
-
asserting an unrecorded prerequisite is blocked with one detected gap. This
|
|
267
|
-
prevents the common phrase “Historical batch” from exempting future claims.
|
|
268
|
-
|
|
269
|
-
Annotation review corrected 26 notes and five comments that contained literal
|
|
270
|
-
JSON wrappers around prose. Supported note/comment edits retain the exact inner
|
|
271
|
-
text and append correction events. Per-item rereads confirm lifecycle, closure,
|
|
272
|
-
release, expected and actual fields are unchanged; original annotations remain
|
|
273
|
-
in the history streams. Planning guidance now distinguishes plain-text input
|
|
274
|
-
from intentional JSON events.
|