codex-workflow-v2 2.0.0-beta.13.14 → 2.0.0-beta.13.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +17 -0
  2. package/dist/reviewer-runtime-build.json +20 -8
  3. package/dist/src/alpha6/captured-check-evidence.d.ts +49 -0
  4. package/dist/src/alpha6/captured-check-evidence.js +146 -0
  5. package/dist/src/alpha6/captured-check-evidence.js.map +1 -0
  6. package/dist/src/alpha6/corrective-decision-boundary.d.ts +4 -0
  7. package/dist/src/alpha6/corrective-decision-boundary.js +47 -0
  8. package/dist/src/alpha6/corrective-decision-boundary.js.map +1 -0
  9. package/dist/src/alpha6/root-cause-replan-carryover.d.ts +3 -1
  10. package/dist/src/alpha6/root-cause-replan-carryover.js +4 -0
  11. package/dist/src/alpha6/root-cause-replan-carryover.js.map +1 -1
  12. package/dist/src/contracts.d.ts +5 -1
  13. package/dist/src/dependency-provenance.js +10 -0
  14. package/dist/src/dependency-provenance.js.map +1 -1
  15. package/dist/src/graph.js +25 -3
  16. package/dist/src/graph.js.map +1 -1
  17. package/dist/src/version.d.ts +1 -1
  18. package/dist/src/version.js +1 -1
  19. package/dist/src/workflow-blocker-route.d.ts +8 -0
  20. package/dist/src/workflow-blocker-route.js +106 -0
  21. package/dist/src/workflow-blocker-route.js.map +1 -0
  22. package/dist/src/workflow.d.ts +1 -0
  23. package/dist/src/workflow.js +139 -19
  24. package/dist/src/workflow.js.map +1 -1
  25. package/docs/pdf/codex-workflow-v2-architecture-ru.pdf +0 -0
  26. package/docs/pdf/codex-workflow-v2-chat-only-guide-ru.pdf +0 -0
  27. package/docs/pdf/codex-workflow-v2-technical-reference-ru.pdf +0 -0
  28. package/docs/pdf/sources/codex-workflow-v2-architecture-ru.md +1 -1
  29. package/docs/pdf/sources/codex-workflow-v2-chat-only-guide-ru.md +2 -2
  30. package/docs/pdf/sources/codex-workflow-v2-technical-reference-ru.md +2 -2
  31. package/docs/release.md +49 -0
  32. package/package.json +2 -1
  33. package/plugins/codex-workflow-gateway/.codex-plugin/plugin.json +1 -1
  34. package/plugins/codex-workflow-gateway/references/chat-dispatch.md +40 -11
  35. package/plugins/codex-workflow-gateway/references/codebase-memory-routing.md +55 -0
  36. package/plugins/codex-workflow-gateway/scripts/chat-dispatch.mjs +7 -1
  37. package/plugins/codex-workflow-gateway/scripts/chat-model-policy.mjs +10 -8
  38. package/plugins/codex-workflow-gateway/scripts/chat-registry.mjs +23 -5
  39. package/plugins/codex-workflow-gateway/skills/codex-workflow-gateway/SKILL.md +78 -12
  40. package/src/alpha6/adoption.ts +1105 -0
  41. package/src/alpha6/captured-check-evidence.ts +126 -0
  42. package/src/alpha6/check-support-anchor.ts +128 -0
  43. package/src/alpha6/component-owner.ts +168 -0
  44. package/src/alpha6/corrective-decision-boundary.ts +39 -0
  45. package/src/alpha6/downstream-proof.ts +732 -0
  46. package/src/alpha6/failed-step-planning-recovery.ts +88 -0
  47. package/src/alpha6/handoff.ts +1443 -0
  48. package/src/alpha6/journal.ts +473 -0
  49. package/src/alpha6/literal-test-invocation.ts +84 -0
  50. package/src/alpha6/mechanical-feasibility.ts +488 -0
  51. package/src/alpha6/milestone.ts +2182 -0
  52. package/src/alpha6/npm-check-contract.ts +47 -0
  53. package/src/alpha6/plan-integrity-update.ts +20 -0
  54. package/src/alpha6/plan-integrity.ts +298 -0
  55. package/src/alpha6/plan-risk.ts +1480 -0
  56. package/src/alpha6/preexecution-replan.ts +187 -0
  57. package/src/alpha6/remediation-cause.ts +98 -0
  58. package/src/alpha6/remediation.ts +2965 -0
  59. package/src/alpha6/review.ts +1198 -0
  60. package/src/alpha6/root-cause-replan-carryover.ts +471 -0
  61. package/src/alpha6/store-sidecars.ts +335 -0
  62. package/src/alpha7/autonomy.ts +411 -0
  63. package/src/alpha7/corrective-recovery.ts +1332 -0
  64. package/src/artifacts.ts +130 -0
  65. package/src/beta1/project-transaction.ts +351 -0
  66. package/src/change-explanation.ts +153 -0
  67. package/src/cli-actions.ts +119 -0
  68. package/src/cli.ts +1583 -0
  69. package/src/contracts.ts +1510 -0
  70. package/src/credential-output.ts +89 -0
  71. package/src/credential-transport.ts +215 -0
  72. package/src/delegation.ts +190 -0
  73. package/src/dependency-provenance.ts +538 -0
  74. package/src/diagnostics.ts +93 -0
  75. package/src/domain/completed-step-carryover.ts +76 -0
  76. package/src/domain/discovery.ts +27 -0
  77. package/src/domain/plan-semantics.ts +58 -0
  78. package/src/domain/validation.ts +177 -0
  79. package/src/errors.ts +23 -0
  80. package/src/fs-utils.ts +61 -0
  81. package/src/gateway-handshake.ts +103 -0
  82. package/src/git.ts +158 -0
  83. package/src/graph.ts +342 -0
  84. package/src/historical-step-provenance.ts +136 -0
  85. package/src/index.ts +21 -0
  86. package/src/lifecycle/canonical-hash.ts +28 -0
  87. package/src/lifecycle/catalog.ts +202 -0
  88. package/src/lifecycle/compiler-inspection.ts +29 -0
  89. package/src/lifecycle/core-static-readiness.ts +132 -0
  90. package/src/lifecycle/corrective-replan-authority.ts +136 -0
  91. package/src/lifecycle/corrective-replan-binding-manifest.ts +51 -0
  92. package/src/lifecycle/corrective-replan-credential-core.ts +408 -0
  93. package/src/lifecycle/corrective-replan-credential-schema.ts +54 -0
  94. package/src/lifecycle/corrective-replan-credentials.ts +48 -0
  95. package/src/lifecycle/corrective-replan.ts +843 -0
  96. package/src/lifecycle/evaluator.ts +48 -0
  97. package/src/lifecycle/fingerprint.ts +488 -0
  98. package/src/lifecycle/immutable.ts +8 -0
  99. package/src/lifecycle/implementation-table.ts +118 -0
  100. package/src/lifecycle/index.ts +8 -0
  101. package/src/lifecycle/schema-artifact.ts +263 -0
  102. package/src/lifecycle/semantic-registry.ts +572 -0
  103. package/src/lifecycle/types.ts +838 -0
  104. package/src/memory.ts +273 -0
  105. package/src/migration.ts +161 -0
  106. package/src/navigation-actions.ts +70 -0
  107. package/src/observation.ts +198 -0
  108. package/src/observed-routes.ts +661 -0
  109. package/src/operational-contract.ts +125 -0
  110. package/src/pending-review-update.ts +191 -0
  111. package/src/repository.ts +99 -0
  112. package/src/reviewer.ts +1876 -0
  113. package/src/state/corrective-replan-executor.ts +818 -0
  114. package/src/state/corrective-replan-public-schema.ts +83 -0
  115. package/src/state/corrective-replan-public.ts +908 -0
  116. package/src/state/corrective-replan-transaction.ts +947 -0
  117. package/src/state/corrective-yield-executor.ts +327 -0
  118. package/src/state/corrective-yield-transaction.ts +728 -0
  119. package/src/state/lock.ts +880 -0
  120. package/src/state/store.ts +567 -0
  121. package/src/transition-core.ts +330 -0
  122. package/src/ulid.ts +24 -0
  123. package/src/version.ts +2 -0
  124. package/src/workflow-blocker-route.ts +109 -0
  125. package/src/workflow.ts +11436 -0
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Commands accepted by the packaged CLI. Keeping this registry outside the
3
+ * executable entry point lets read-only navigation metadata bind an
4
+ * advertised action to the real CLI surface without importing `cli.ts` and
5
+ * executing it.
6
+ */
7
+ const CLI_ACTIONS_LITERAL = {
8
+ gateway: ['handshake'],
9
+ change: ['explain'],
10
+ update: [
11
+ 'preflight',
12
+ 'pending-review-source-preflight',
13
+ 'pending-review-dependency-preflight',
14
+ 'pending-review-dependency-recover',
15
+ 'rescue-preflight',
16
+ 'dependency-provenance-preflight',
17
+ 'corrective-carryover-preflight',
18
+ 'dependency-provenance-recover',
19
+ 'historical-step-dependency-preflight',
20
+ 'historical-step-dependency-recover',
21
+ 'downstream-proof-dependency-preflight',
22
+ 'downstream-proof-dependency-recover',
23
+ 'downstream-proof-replan-update-preflight',
24
+ 'downstream-proof-replan-dependency-preflight',
25
+ 'downstream-proof-replan-dependency-recover',
26
+ 'plan-integrity-update-preflight',
27
+ 'plan-integrity-dependency-preflight',
28
+ 'plan-integrity-dependency-recover',
29
+ ],
30
+ delegation: ['prepare', 'grant', 'list', 'show', 'revoke'],
31
+ 'project-memory': ['scan', 'show', 'status', 'approve', 'reconcile'],
32
+ state: ['migrate', 'adoption-prepare', 'adoption-apply'],
33
+ graph: ['prepare', 'status', 'refresh-request', 'bind', 'fallback'],
34
+ discovery: ['start', 'update', 'show', 'materialize'],
35
+ task: [
36
+ 'show',
37
+ 'replacement-materialize',
38
+ 'preexecution-replan',
39
+ 'plan-set',
40
+ 'knowledge-rebind',
41
+ 'context-refresh',
42
+ 'authorize',
43
+ 'plan-risk-audit',
44
+ 'start',
45
+ 'run',
46
+ 'step-complete',
47
+ 'submit',
48
+ 'review-record',
49
+ 'review-launch',
50
+ 'review-packet',
51
+ 'review-sealed-record',
52
+ 'step-review',
53
+ 'step-review-packet',
54
+ 'step-review-record',
55
+ 'corrective-decision-recover',
56
+ 'remediation-mode-recover',
57
+ 'plan-integrity-recover',
58
+ 'downstream-proof-recover',
59
+ 'downstream-proof-replan-recover',
60
+ 'stop-override-prepare',
61
+ 'stop-override-apply',
62
+ 'corrective-decision',
63
+ 'corrective-yield',
64
+ 'corrective-yield-recover',
65
+ 'corrective-replan-prepare',
66
+ 'corrective-replan-confirm',
67
+ 'corrective-replan-execute',
68
+ 'corrective-replan-recover',
69
+ 'historical-step-provenance-preflight',
70
+ 'historical-step-provenance-recover',
71
+ 'handoff',
72
+ 'handoff-prepare',
73
+ 'handoff-replace',
74
+ 'handoff-show',
75
+ 'claim',
76
+ 'writer-credential-replace',
77
+ 'handback',
78
+ 'handback-create',
79
+ 'result-set',
80
+ 'accept',
81
+ 'sync-base',
82
+ 'merge',
83
+ 'merge-confirm',
84
+ ],
85
+ milestone: [
86
+ 'recover',
87
+ 'show',
88
+ 'progress',
89
+ 'plan-set',
90
+ 'remediation-materialize',
91
+ 'scope-change-prepare',
92
+ 'scope-change-apply',
93
+ 'autonomy-prepare',
94
+ 'autonomy-grant',
95
+ 'autonomy-evolve',
96
+ 'authorize',
97
+ 'validate',
98
+ 'accept',
99
+ 'cancel',
100
+ ],
101
+ locks: ['inspect', 'repair'],
102
+ } as const;
103
+
104
+ export const CLI_ACTIONS: Readonly<Record<string, readonly string[]>> = CLI_ACTIONS_LITERAL;
105
+
106
+ export type CliNoun = keyof typeof CLI_ACTIONS_LITERAL;
107
+ export type CliCommand = {
108
+ [Noun in CliNoun]: `${Noun} ${typeof CLI_ACTIONS_LITERAL[Noun][number]}`;
109
+ }[CliNoun] | 'doctor' | 'status' | 'next';
110
+
111
+ export function isCliCommand(command: string): command is CliCommand {
112
+ if (command === 'doctor' || command === 'status' || command === 'next') return true;
113
+ const separator = command.indexOf(' ');
114
+ if (separator < 1) return false;
115
+ const noun = command.slice(0, separator) as CliNoun;
116
+ const action = command.slice(separator + 1);
117
+ const supported = CLI_ACTIONS[noun] as readonly string[] | undefined;
118
+ return supported?.includes(action) ?? false;
119
+ }