@acorex-platform/module-software-management-client 1.0.1 → 2.0.0-beta.0

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 (70) hide show
  1. package/fesm2022/{acorex-platform-module-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs → acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs} +7 -6
  2. package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs +212 -0
  4. package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs +79 -0
  6. package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs +512 -0
  8. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs +62 -0
  10. package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs +76 -0
  12. package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs +94 -0
  14. package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs +71 -0
  16. package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs +49 -0
  18. package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs +26 -0
  20. package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs +86 -0
  22. package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs +73 -0
  24. package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs +281 -0
  26. package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs +751 -0
  28. package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs +92 -0
  30. package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs +2709 -156
  32. package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs.map +1 -1
  33. package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs +212 -0
  34. package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs +216 -0
  36. package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs +212 -0
  38. package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs +79 -0
  40. package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs.map +1 -0
  41. package/fesm2022/{acorex-platform-module-software-management-client-discovery-kickoff.commands-gB0_htfF.mjs → acorex-platform-module-software-management-client-discovery-kickoff.commands-BZxzDJs9.mjs} +4 -2
  42. package/fesm2022/{acorex-platform-module-software-management-client-discovery-kickoff.commands-gB0_htfF.mjs.map → acorex-platform-module-software-management-client-discovery-kickoff.commands-BZxzDJs9.mjs.map} +1 -1
  43. package/fesm2022/{acorex-platform-module-software-management-client-discovery-report.commands-D2ricLpq.mjs → acorex-platform-module-software-management-client-discovery-report.commands-C9GKrnHs.mjs} +3 -2
  44. package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-C9GKrnHs.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs +228 -0
  46. package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs.map +1 -0
  47. package/fesm2022/{acorex-platform-module-software-management-client-introduction-exit-message.util-DShFM8MY.mjs → acorex-platform-module-software-management-client-introduction-exit-message.util-cYtN92HY.mjs} +1 -1
  48. package/fesm2022/{acorex-platform-module-software-management-client-introduction-exit-message.util-DShFM8MY.mjs.map → acorex-platform-module-software-management-client-introduction-exit-message.util-cYtN92HY.mjs.map} +1 -1
  49. package/fesm2022/{acorex-platform-module-software-management-client-introduction-task.activities-BOsJbeJe.mjs → acorex-platform-module-software-management-client-introduction-task.activities-DQPpsJaH.mjs} +78 -3
  50. package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-DQPpsJaH.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs +212 -0
  52. package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs.map +1 -0
  53. package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs +79 -0
  54. package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs.map +1 -0
  55. package/fesm2022/{acorex-platform-module-software-management-client-software-command.util-BsoKQCX5.mjs → acorex-platform-module-software-management-client-software-command.util-CvlYk7tC.mjs} +1 -1
  56. package/fesm2022/{acorex-platform-module-software-management-client-software-command.util-BsoKQCX5.mjs.map → acorex-platform-module-software-management-client-software-command.util-CvlYk7tC.mjs.map} +1 -1
  57. package/fesm2022/{acorex-platform-module-software-management-client-start-software-definition-flow.command-B0YCgv2V.mjs → acorex-platform-module-software-management-client-start-software-definition-flow.command-BfxtMIGb.mjs} +2 -2
  58. package/fesm2022/{acorex-platform-module-software-management-client-start-software-definition-flow.command-B0YCgv2V.mjs.map → acorex-platform-module-software-management-client-start-software-definition-flow.command-BfxtMIGb.mjs.map} +1 -1
  59. package/fesm2022/acorex-platform-module-software-management-client.mjs +400 -32
  60. package/fesm2022/acorex-platform-module-software-management-client.mjs.map +1 -1
  61. package/i18n/en-AU/software-management.json +473 -24
  62. package/i18n/en-US/software-management.json +473 -24
  63. package/i18n/fa-IR/software-management.json +474 -25
  64. package/package.json +1 -1
  65. package/types/acorex-platform-module-software-management-client-contracts.d.ts +640 -11
  66. package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs.map +0 -1
  67. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs +0 -182
  68. package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs.map +0 -1
  69. package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-D2ricLpq.mjs.map +0 -1
  70. package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-BOsJbeJe.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { AXPModuleManifest, AXPWorkflowDefinition } from '@acorex-platform/framework-shared/core';
2
- import { AXPEntityModel, AXPRecordWorkflowInfo } from '@acorex-platform/framework-shared/entity';
2
+ import { AXPEntityModel, AXPRecordWorkflowInfo, AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
3
3
 
4
4
  /**
5
5
  * Applications & Platform capability for defining standalone software products.
@@ -125,11 +125,57 @@ declare const AXPSoftwareManagementCommandKeys: {
125
125
  readonly ExportDiscoveryReportPdf: "SoftwareManagement.Software:ExportDiscoveryReportPdf";
126
126
  readonly OpenDiscoveryReport: "SoftwareManagement.Software:OpenDiscoveryReport";
127
127
  readonly LinkDiscoveryQuestionnaire: "SoftwareManagement.Software:LinkDiscoveryQuestionnaire";
128
+ readonly ViewPinnedDiscovery: "SoftwareManagement.Software:ViewPinnedDiscovery";
129
+ readonly GenerateScopeDocument: "SoftwareManagement.Software:GenerateScopeDocument";
130
+ readonly SubmitScopeDocument: "SoftwareManagement.Software:SubmitScopeDocument";
131
+ readonly ExportScopePdf: "SoftwareManagement.Software:ExportScopePdf";
132
+ readonly OpenScopeDocument: "SoftwareManagement.Software:OpenScopeDocument";
133
+ readonly GenerateBehaviorDocument: "SoftwareManagement.Software:GenerateBehaviorDocument";
134
+ readonly SubmitBehaviorDocument: "SoftwareManagement.Software:SubmitBehaviorDocument";
135
+ readonly ExportBehaviorPdf: "SoftwareManagement.Software:ExportBehaviorPdf";
136
+ readonly OpenBehaviorDocument: "SoftwareManagement.Software:OpenBehaviorDocument";
137
+ readonly ViewPinnedScope: "SoftwareManagement.Software:ViewPinnedScope";
138
+ readonly GenerateDesignDocument: "SoftwareManagement.Software:GenerateDesignDocument";
139
+ readonly SubmitDesignDocument: "SoftwareManagement.Software:SubmitDesignDocument";
140
+ readonly ExportDesignPdf: "SoftwareManagement.Software:ExportDesignPdf";
141
+ readonly OpenDesignDocument: "SoftwareManagement.Software:OpenDesignDocument";
142
+ readonly ViewPinnedBehavior: "SoftwareManagement.Software:ViewPinnedBehavior";
143
+ readonly GenerateDeliveryPlan: "SoftwareManagement.Software:GenerateDeliveryPlan";
144
+ readonly SubmitDeliveryPlan: "SoftwareManagement.Software:SubmitDeliveryPlan";
145
+ readonly ExportDeliveryPdf: "SoftwareManagement.Software:ExportDeliveryPdf";
146
+ readonly OpenDeliveryPlan: "SoftwareManagement.Software:OpenDeliveryPlan";
147
+ readonly ViewPinnedDesign: "SoftwareManagement.Software:ViewPinnedDesign";
128
148
  };
129
149
  readonly WorkflowActivity: {
130
150
  readonly CompletePhase: "workflow-activity:complete-software-phase";
131
151
  readonly LoadIntroduction: "workflow-activity:load-software-introduction";
132
152
  readonly SaveIntroduction: "workflow-activity:save-software-introduction";
153
+ readonly GenerateKickoff: "workflow-activity:generate-software-kickoff";
154
+ readonly SubmitKickoff: "workflow-activity:submit-software-kickoff";
155
+ readonly LoadDiscovery: "workflow-activity:load-software-discovery";
156
+ readonly SaveDiscoveryDecision: "workflow-activity:save-software-discovery-decision";
157
+ readonly GenerateDiscoveryReport: "workflow-activity:generate-software-discovery-report";
158
+ readonly SubmitDiscoveryReport: "workflow-activity:submit-software-discovery-report";
159
+ readonly ViewPinnedKickoff: "workflow-activity:view-software-pinned-kickoff";
160
+ readonly OpenDiscoveryReport: "workflow-activity:open-software-discovery-report";
161
+ readonly ViewPinnedDiscovery: "workflow-activity:view-software-pinned-discovery";
162
+ readonly GenerateScopeDocument: "workflow-activity:generate-software-scope-document";
163
+ readonly SubmitScopeDocument: "workflow-activity:submit-software-scope-document";
164
+ readonly OpenScopeDocument: "workflow-activity:open-software-scope-document";
165
+ readonly GenerateBehaviorDocument: "workflow-activity:generate-software-behavior-document";
166
+ readonly SubmitBehaviorDocument: "workflow-activity:submit-software-behavior-document";
167
+ readonly OpenBehaviorDocument: "workflow-activity:open-software-behavior-document";
168
+ readonly ViewPinnedScope: "workflow-activity:view-software-pinned-scope";
169
+ readonly GenerateDesignDocument: "workflow-activity:generate-software-design-document";
170
+ readonly SubmitDesignDocument: "workflow-activity:submit-software-design-document";
171
+ readonly OpenDesignDocument: "workflow-activity:open-software-design-document";
172
+ readonly ViewPinnedBehavior: "workflow-activity:view-software-pinned-behavior";
173
+ readonly LoadDelivery: "workflow-activity:load-software-delivery";
174
+ readonly SaveDeliveryPlan: "workflow-activity:save-software-delivery-plan";
175
+ readonly GenerateDeliveryPlan: "workflow-activity:generate-software-delivery-plan";
176
+ readonly SubmitDeliveryPlan: "workflow-activity:submit-software-delivery-plan";
177
+ readonly OpenDeliveryPlan: "workflow-activity:open-software-delivery-plan";
178
+ readonly ViewPinnedDesign: "workflow-activity:view-software-pinned-design";
133
179
  };
134
180
  };
135
181
 
@@ -146,16 +192,54 @@ declare const SOFTWARE_PROPOSED_BY: readonly ["user", "ai"];
146
192
  type SoftwareProposedBy = (typeof SOFTWARE_PROPOSED_BY)[number];
147
193
  declare const SOFTWARE_DISCOVERY_KINDS: readonly ["audience", "problem", "pain", "current-practice", "constraint", "alternative", "hypothesis", "evidence", "unknown"];
148
194
  type SoftwareDiscoveryKind = (typeof SOFTWARE_DISCOVERY_KINDS)[number];
195
+ declare const DISCOVERY_KIND_INVALID_REASON = "Choose an allowed finding type. The stored value was not a valid discovery kind. / \u06CC\u06A9 \u0646\u0648\u0639 \u06CC\u0627\u0641\u062A\u0647\u0654 \u0645\u062C\u0627\u0632 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F. \u0645\u0642\u062F\u0627\u0631 \u0630\u062E\u06CC\u0631\u0647\u200C\u0634\u062F\u0647 \u0646\u0648\u0639 \u0645\u0639\u062A\u0628\u0631\u06CC \u0646\u0628\u0648\u062F.";
196
+ declare function isSoftwareDiscoveryKind(value: unknown): value is SoftwareDiscoveryKind;
149
197
  declare const SOFTWARE_SCOPE_KINDS: readonly ["capability", "out-of-scope", "success-metric"];
150
198
  type SoftwareScopeKind = (typeof SOFTWARE_SCOPE_KINDS)[number];
199
+ /** DSDM / BABOK MoSCoW for the first-version timebox. */
200
+ declare const SOFTWARE_MOSCOW_PRIORITIES: readonly ["must", "should", "could", "wont"];
201
+ type SoftwareMoscowPriority = (typeof SOFTWARE_MOSCOW_PRIORITIES)[number];
151
202
  declare const SOFTWARE_DESIGN_KINDS: readonly ["data-model", "ux", "technical"];
152
203
  type SoftwareDesignKind = (typeof SOFTWARE_DESIGN_KINDS)[number];
204
+ /** ISO/IEC/IEEE 29148 SRS grouping: functions, quality attributes, design constraints. */
205
+ declare const SOFTWARE_REQUIREMENT_KINDS: readonly ["functional", "quality", "constraint"];
206
+ type SoftwareRequirementKind = (typeof SOFTWARE_REQUIREMENT_KINDS)[number];
207
+ /** IEEE 29148 verification methods (inspection / analysis / demonstration / test). */
208
+ declare const SOFTWARE_VERIFICATION_METHODS: readonly ["inspection", "analysis", "demonstration", "test"];
209
+ type SoftwareVerificationMethod = (typeof SOFTWARE_VERIFICATION_METHODS)[number];
210
+ /** SBVR: definitional (structural) vs behavioral (operative) rules. */
211
+ declare const SOFTWARE_BUSINESS_RULE_KINDS: readonly ["structural", "operative"];
212
+ type SoftwareBusinessRuleKind = (typeof SOFTWARE_BUSINESS_RULE_KINDS)[number];
213
+ /** SBVR example enforcement scale, trimmed to three levels used in this module. */
214
+ declare const SOFTWARE_ENFORCEMENT_LEVELS: readonly ["strict", "override", "guideline"];
215
+ type SoftwareEnforcementLevel = (typeof SOFTWARE_ENFORCEMENT_LEVELS)[number];
216
+ /** Cockburn use-case goal levels. */
217
+ declare const SOFTWARE_USE_CASE_LEVELS: readonly ["summary", "user-goal", "subfunction"];
218
+ type SoftwareUseCaseLevel = (typeof SOFTWARE_USE_CASE_LEVELS)[number];
219
+ /** Nygard ADR status (proposed / accepted / superseded). */
220
+ declare const SOFTWARE_ADR_STATUSES: readonly ["proposed", "accepted", "superseded"];
221
+ type SoftwareAdrStatus = (typeof SOFTWARE_ADR_STATUSES)[number];
153
222
 
154
223
  declare const softwareDefinitionWorkflowDefinition: AXPWorkflowDefinition;
155
224
 
225
+ /** UI locale for generated software PDFs. Missing locale keeps bilingual copy. */
226
+ type SheetLang = 'en' | 'fa' | 'both';
227
+ /** UI locale (`fa-IR`) → sheet language. Missing locale keeps bilingual copy for callers that omit it. */
228
+ declare function resolveSheetLang(locale?: string): SheetLang;
229
+ declare function sheetBilingual(en: string, fa: string, lang: SheetLang): string;
230
+ declare function sheetUnknown(lang: SheetLang): string;
231
+ declare function sheetHeading(en: string, fa: string, locale?: string): string;
232
+ declare function sheetDisplayLocale(locale?: string): string;
233
+ /**
234
+ * Print HTML chrome for software PDFs. Persian uses `dir="rtl"` and Tahoma.
235
+ * Later sheets (scope, design, …) should render through this helper.
236
+ */
237
+ declare function wrapSheetHtml(title: string, innerHtml: string, lang: SheetLang): string;
238
+
156
239
  /** Document type name in Document Management. One kickoff sheet per Software record. */
157
240
  declare const DISCOVERY_KICKOFF_DOCUMENT_TYPE_NAME = "software-discovery-kickoff";
158
- declare const DISCOVERY_KICKOFF_FILE_NAME = "discovery-kickoff.html";
241
+ declare const DISCOVERY_KICKOFF_FILE_NAME = "discovery-kickoff.pdf";
242
+ declare const DISCOVERY_KICKOFF_LEGACY_HTML_FILE_NAME = "discovery-kickoff.html";
159
243
  /**
160
244
  * Review statuses stored on DocumentManagement.Document.
161
245
  * Same vocabulary as the EDMS document review workflow.
@@ -240,6 +324,10 @@ interface IntroductionExitDecision {
240
324
  /** Required introduction fields that are still empty after lookup and locale coercion. */
241
325
  missingFields?: IntroductionRequiredField[];
242
326
  }
327
+ type KickoffSheetLang = SheetLang;
328
+ /** UI locale (`fa-IR`) → sheet language. Missing locale keeps bilingual copy for callers that omit it. */
329
+ declare const resolveKickoffSheetLang: typeof resolveSheetLang;
330
+ declare function kickoffSheetHeading(locale?: string): string;
243
331
  declare function kickoffText(value: unknown): string;
244
332
  /** Review status stored as a string or as a lookup `{ id }`. */
245
333
  declare function kickoffStatusId(value: unknown): string;
@@ -247,7 +335,7 @@ declare function kickoffStatusId(value: unknown): string;
247
335
  * Reads introduction text from a string, a locale map, or a lookup stub such as `{ id, displayName }`.
248
336
  * A lookup stub contributes its id. Other objects contribute the first non-empty locale string.
249
337
  */
250
- declare function introductionValueText(value: unknown): string;
338
+ declare function introductionValueText(value: unknown, locale?: string): string;
251
339
  declare function missingIntroductionFields(software: DiscoveryKickoffSource): IntroductionRequiredField[];
252
340
  /** Stable id of the introduction inputs baked into a sheet version. */
253
341
  declare function discoveryKickoffFingerprint(source: DiscoveryKickoffSource): string;
@@ -261,7 +349,7 @@ declare function kickoffSourceFromSoftware(software: DiscoveryKickoffSource & {
261
349
  * Empty research items stay Unknown. Author-supplied guesses stay Hypothesis.
262
350
  * AI text is a draft: it is never labeled as evidence or a confirmed fact.
263
351
  */
264
- declare function buildDiscoveryKickoffSheet(source: DiscoveryKickoffSource): DiscoveryKickoffSheet;
352
+ declare function buildDiscoveryKickoffSheet(source: DiscoveryKickoffSource, locale?: string): DiscoveryKickoffSheet;
265
353
  declare function readKickoffMeta(value: unknown): DiscoveryKickoffMeta;
266
354
  /** Fingerprint stored on the version, with the host document as fallback. */
267
355
  declare function kickoffFingerprintFromRows(version: {
@@ -315,7 +403,8 @@ declare function kickoffAfterBaseDataChange(approved: {
315
403
  };
316
404
 
317
405
  declare const DISCOVERY_REPORT_DOCUMENT_TYPE_NAME = "software-discovery-report";
318
- declare const DISCOVERY_REPORT_FILE_NAME = "discovery-report.html";
406
+ declare const DISCOVERY_REPORT_FILE_NAME = "discovery-report.pdf";
407
+ declare const DISCOVERY_REPORT_LEGACY_HTML_FILE_NAME = "discovery-report.html";
319
408
  declare const DISCOVERY_DECISIONS: readonly ["proceed", "revise", "stop"];
320
409
  type DiscoveryDecision = (typeof DISCOVERY_DECISIONS)[number];
321
410
  declare const DISCOVERY_STANCES: readonly ["assumption", "validated"];
@@ -354,14 +443,66 @@ interface DiscoveryExitDecision {
354
443
  message: string;
355
444
  discoveryVersionId: string;
356
445
  }
446
+ interface ParsedSourceRef {
447
+ raw: string;
448
+ entity?: string;
449
+ id: string;
450
+ }
451
+ /** Linked questionnaire sessions/cases and documents that findings may cite. */
452
+ interface DiscoveryEvidenceResolution {
453
+ questionnaireSessionIds?: readonly string[];
454
+ questionnaireCaseIds?: readonly string[];
455
+ documentIds?: readonly string[];
456
+ }
457
+ /**
458
+ * Assessment session statuses that can unlock Discovery proceed.
459
+ * Draft, in-progress, rejected, and missing/invalid status do not qualify.
460
+ */
461
+ declare const USABLE_DISCOVERY_QUESTIONNAIRE_SESSION_STATUSES: readonly ["submitted", "under-review", "approved", "completed"];
462
+ type UsableDiscoveryQuestionnaireSessionStatus = (typeof USABLE_DISCOVERY_QUESTIONNAIRE_SESSION_STATUSES)[number];
463
+ interface DiscoveryEvidenceLookup {
464
+ getCase(id: string): Promise<unknown>;
465
+ getSession(id: string): Promise<unknown>;
466
+ listSessionsForCase(caseId: string): Promise<unknown[]>;
467
+ getDocument(id: string): Promise<unknown>;
468
+ }
469
+ declare function isDiscoveryMethod(value: unknown): value is DiscoveryMethod;
357
470
  declare function discoveryStance(value: unknown): DiscoveryStance;
358
471
  declare function parseSourceRefs(value: unknown): string[];
359
- declare function findingSupportsProceed(finding: DiscoveryFindingRecord): boolean;
472
+ declare function parseSourceRef(line: string): ParsedSourceRef;
473
+ declare function discoveryQuestionnaireSessionHasAnswers(session: {
474
+ answers?: unknown;
475
+ answeredQuestionsCount?: unknown;
476
+ }): boolean;
477
+ declare function isUsableDiscoveryQuestionnaireSession(session: {
478
+ statusId?: unknown;
479
+ status?: unknown;
480
+ answers?: unknown;
481
+ answeredQuestionsCount?: unknown;
482
+ } | null | undefined): boolean;
483
+ declare function assessmentSubjectMatchesSoftware(subjectRef: unknown, softwareId: string): boolean;
484
+ declare function citedQuestionnaireSourceIds(findings: Array<{
485
+ method?: unknown;
486
+ sourceRefs?: unknown;
487
+ }>): string[];
488
+ /**
489
+ * Resolve questionnaire and document citations by id. Callers must look up the cited
490
+ * case/session/document rather than paging the first N rows in the application.
491
+ * A case citation counts only when that case has a usable submitted session with answers.
492
+ */
493
+ declare function resolveDiscoveryEvidenceFromLookup(softwareId: string, findings: Array<{
494
+ method?: unknown;
495
+ sourceRefs?: unknown;
496
+ }>, lookup: DiscoveryEvidenceLookup): Promise<DiscoveryEvidenceResolution>;
497
+ declare function sourceRefIsTraceable(ref: ParsedSourceRef, method: DiscoveryMethod, evidence?: DiscoveryEvidenceResolution | null): boolean;
498
+ declare function findingHasTraceableEvidence(finding: DiscoveryFindingRecord, evidence?: DiscoveryEvidenceResolution | null): boolean;
499
+ declare function findingSupportsProceed(finding: DiscoveryFindingRecord, evidence?: DiscoveryEvidenceResolution | null): boolean;
360
500
  declare function discoveryReportFingerprint(source: DiscoveryReportSource): string;
361
501
  declare function kickoffPlainTextFromVersion(version: {
362
502
  metaDataForm?: unknown;
363
503
  } | null | undefined): string;
364
- declare function buildDiscoveryReport(source: DiscoveryReportSource): DiscoveryReportSheet;
504
+ declare function discoveryReportHeading(locale?: string): string;
505
+ declare function buildDiscoveryReport(source: DiscoveryReportSource, locale?: string): DiscoveryReportSheet;
365
506
  declare function evaluateDiscoveryExit(input: {
366
507
  currentPhase?: unknown;
367
508
  decision?: unknown;
@@ -373,8 +514,375 @@ declare function evaluateDiscoveryExit(input: {
373
514
  approvedVersionId?: unknown;
374
515
  approvedFingerprint?: unknown;
375
516
  reportFingerprint?: unknown;
517
+ evidence?: DiscoveryEvidenceResolution | null;
518
+ kickoffStatusId?: unknown;
519
+ kickoffHostVersionId?: unknown;
520
+ kickoffApprovedFingerprint?: unknown;
521
+ currentKickoffFingerprint?: unknown;
376
522
  }): DiscoveryExitDecision;
377
523
 
524
+ declare const SCOPE_DOCUMENT_TYPE_NAME = "software-first-version-scope";
525
+ declare const SCOPE_DOCUMENT_FILE_NAME = "first-version-scope.pdf";
526
+ declare const SCOPE_DOCUMENT_LEGACY_HTML_FILE_NAME = "first-version-scope.html";
527
+ declare const SCOPE_ITEMS_CHANGED = "scope-items-changed";
528
+ declare const SCOPE_SOURCE_CHANGED = "discovery-approved-version-changed";
529
+ interface ScopeItemRecord {
530
+ id?: unknown;
531
+ kind?: unknown;
532
+ title?: unknown;
533
+ body?: unknown;
534
+ priority?: unknown;
535
+ rationale?: unknown;
536
+ metricBaseline?: unknown;
537
+ metricTarget?: unknown;
538
+ metricMethod?: unknown;
539
+ discoveryVersionId?: unknown;
540
+ }
541
+ interface ScopeDocumentSource {
542
+ discoveryVersionId: string;
543
+ discoveryFingerprint: string;
544
+ discoveryPlainText: string;
545
+ items: ScopeItemRecord[];
546
+ }
547
+ interface ScopeDocumentSheet {
548
+ fingerprint: string;
549
+ html: string;
550
+ plainText: string;
551
+ }
552
+ interface ScopeExitDecision {
553
+ ok: boolean;
554
+ advance: boolean;
555
+ message: string;
556
+ scopeVersionId: string;
557
+ }
558
+ declare function isScopeKind(value: unknown): boolean;
559
+ declare function isMoscowPriority(value: unknown): boolean;
560
+ declare function scopeItemKind(value: unknown): string;
561
+ declare function capabilitySupportsScope(item: ScopeItemRecord): boolean;
562
+ declare function exclusionSupportsScope(item: ScopeItemRecord): boolean;
563
+ declare function metricSupportsScope(item: ScopeItemRecord): boolean;
564
+ declare function scopeDocumentFingerprint(source: ScopeDocumentSource): string;
565
+ declare function scopeDocumentHeading(locale?: string): string;
566
+ declare function buildScopeDocument(source: ScopeDocumentSource, locale?: string): ScopeDocumentSheet;
567
+ declare function evaluateScopeExit(input: {
568
+ currentPhase?: unknown;
569
+ discoveryApprovedVersionId?: unknown;
570
+ discoveryApprovedFingerprint?: unknown;
571
+ items?: ScopeItemRecord[];
572
+ statusId?: unknown;
573
+ hostVersionId?: unknown;
574
+ approvedVersionId?: unknown;
575
+ approvedFingerprint?: unknown;
576
+ reportFingerprint?: unknown;
577
+ currentDiscoveryFingerprint?: unknown;
578
+ discoveryStatusId?: unknown;
579
+ discoveryHostVersionId?: unknown;
580
+ kickoffApprovedVersionId?: unknown;
581
+ kickoffApprovedFingerprint?: unknown;
582
+ currentKickoffFingerprint?: unknown;
583
+ kickoffStatusId?: unknown;
584
+ kickoffHostVersionId?: unknown;
585
+ }): ScopeExitDecision;
586
+
587
+ declare const BEHAVIOR_DOCUMENT_TYPE_NAME = "software-behavior-specification";
588
+ declare const BEHAVIOR_DOCUMENT_FILE_NAME = "behavior-specification.pdf";
589
+ declare const BEHAVIOR_DOCUMENT_LEGACY_HTML_FILE_NAME = "behavior-specification.html";
590
+ declare const BEHAVIOR_CONTENT_CHANGED = "behavior-content-changed";
591
+ declare const BEHAVIOR_SOURCE_CHANGED = "scope-approved-version-changed";
592
+ declare const BEHAVIOR_EXIT_MESSAGE: {
593
+ readonly missingApproved: "Behavior specification needs an approved behavior document before Design can start.";
594
+ readonly stale: "Requirements, acceptance criteria, or related rules changed after approval. The approved specification was not changed. Generate and approve a new document.";
595
+ readonly requirement: "Behavior needs at least one requirement with a title, statement, and an in-scope capability.";
596
+ readonly acceptance: "Behavior needs at least one acceptance criterion linked to a requirement, with a statement or Given/When/Then.";
597
+ readonly trace: "Behavior needs at least one business rule or use case that traces to a requirement or in-scope capability.";
598
+ };
599
+ interface BehaviorRequirementRecord {
600
+ id?: unknown;
601
+ title?: unknown;
602
+ statement?: unknown;
603
+ kind?: unknown;
604
+ priority?: unknown;
605
+ rationale?: unknown;
606
+ scopeItemId?: unknown;
607
+ scopeVersionId?: unknown;
608
+ softwareId?: unknown;
609
+ }
610
+ interface BehaviorAcceptanceCriterionRecord {
611
+ id?: unknown;
612
+ requirementId?: unknown;
613
+ statement?: unknown;
614
+ given?: unknown;
615
+ when?: unknown;
616
+ then?: unknown;
617
+ scopeVersionId?: unknown;
618
+ softwareId?: unknown;
619
+ }
620
+ interface BehaviorBusinessRuleRecord {
621
+ id?: unknown;
622
+ title?: unknown;
623
+ statement?: unknown;
624
+ requirementId?: unknown;
625
+ scopeItemId?: unknown;
626
+ scopeVersionId?: unknown;
627
+ softwareId?: unknown;
628
+ }
629
+ interface BehaviorUseCaseRecord {
630
+ id?: unknown;
631
+ code?: unknown;
632
+ title?: unknown;
633
+ mainFlow?: unknown;
634
+ requirementId?: unknown;
635
+ scopeItemId?: unknown;
636
+ scopeVersionId?: unknown;
637
+ softwareId?: unknown;
638
+ }
639
+ interface BehaviorDocumentSource {
640
+ scopeVersionId: string;
641
+ scopeFingerprint: string;
642
+ scopePlainText: string;
643
+ requirements: BehaviorRequirementRecord[];
644
+ acceptanceCriteria: BehaviorAcceptanceCriterionRecord[];
645
+ businessRules: BehaviorBusinessRuleRecord[];
646
+ useCases: BehaviorUseCaseRecord[];
647
+ }
648
+ interface BehaviorDocumentSheet {
649
+ fingerprint: string;
650
+ html: string;
651
+ plainText: string;
652
+ }
653
+ interface BehaviorExitDecision {
654
+ ok: boolean;
655
+ advance: boolean;
656
+ message: string;
657
+ behaviorVersionId: string;
658
+ }
659
+ declare function requirementSupportsBehavior(requirement: BehaviorRequirementRecord, capabilities: ScopeItemRecord[]): boolean;
660
+ declare function acceptanceCriterionSupportsBehavior(criterion: BehaviorAcceptanceCriterionRecord, requirementIds: Set<string>): boolean;
661
+ declare function businessRuleSupportsBehavior(rule: BehaviorBusinessRuleRecord, requirementIds: Set<string>, capabilities: ScopeItemRecord[]): boolean;
662
+ declare function useCaseSupportsBehavior(useCase: BehaviorUseCaseRecord, requirementIds: Set<string>, capabilities: ScopeItemRecord[]): boolean;
663
+ declare function behaviorDocumentFingerprint(source: BehaviorDocumentSource): string;
664
+ declare function behaviorDocumentHeading(locale?: string): string;
665
+ declare function buildBehaviorDocument(source: BehaviorDocumentSource, locale?: string): BehaviorDocumentSheet;
666
+ declare function evaluateBehaviorExit(input: {
667
+ currentPhase?: unknown;
668
+ items?: ScopeItemRecord[];
669
+ requirements?: BehaviorRequirementRecord[];
670
+ acceptanceCriteria?: BehaviorAcceptanceCriterionRecord[];
671
+ businessRules?: BehaviorBusinessRuleRecord[];
672
+ useCases?: BehaviorUseCaseRecord[];
673
+ statusId?: unknown;
674
+ hostVersionId?: unknown;
675
+ approvedVersionId?: unknown;
676
+ approvedFingerprint?: unknown;
677
+ reportFingerprint?: unknown;
678
+ scopeApprovedVersionId?: unknown;
679
+ scopeApprovedFingerprint?: unknown;
680
+ currentScopeFingerprint?: unknown;
681
+ scopeStatusId?: unknown;
682
+ scopeHostVersionId?: unknown;
683
+ discoveryApprovedVersionId?: unknown;
684
+ discoveryApprovedFingerprint?: unknown;
685
+ currentDiscoveryFingerprint?: unknown;
686
+ discoveryStatusId?: unknown;
687
+ discoveryHostVersionId?: unknown;
688
+ kickoffApprovedVersionId?: unknown;
689
+ kickoffApprovedFingerprint?: unknown;
690
+ currentKickoffFingerprint?: unknown;
691
+ kickoffStatusId?: unknown;
692
+ kickoffHostVersionId?: unknown;
693
+ }): BehaviorExitDecision;
694
+
695
+ declare const DESIGN_DOCUMENT_TYPE_NAME = "software-design";
696
+ declare const DESIGN_DOCUMENT_FILE_NAME = "design.pdf";
697
+ declare const DESIGN_DOCUMENT_LEGACY_HTML_FILE_NAME = "design.html";
698
+ declare const DESIGN_CONTENT_CHANGED = "design-content-changed";
699
+ declare const DESIGN_SOURCE_CHANGED = "behavior-approved-version-changed";
700
+ declare const DESIGN_EXIT_MESSAGE: {
701
+ readonly missingApproved: "Design needs an approved design document before Delivery planning can start.";
702
+ readonly stale: "Design decisions changed after approval. The approved document was not changed. Generate and approve a new document.";
703
+ readonly dataModel: "Design needs at least one data-model decision with a title, decision body, context, and alternatives.";
704
+ readonly ux: "Design needs at least one UX decision with a title, decision body, context, and alternatives.";
705
+ readonly technical: "Design needs at least one technical decision with a title, decision body, context, alternatives, and a technology choice.";
706
+ readonly requirement: "Design needs at least one decision linked to a behavior requirement.";
707
+ };
708
+ interface DesignDecisionRecord {
709
+ id?: unknown;
710
+ kind?: unknown;
711
+ adrStatus?: unknown;
712
+ title?: unknown;
713
+ context?: unknown;
714
+ body?: unknown;
715
+ alternatives?: unknown;
716
+ consequences?: unknown;
717
+ technology?: unknown;
718
+ requirementId?: unknown;
719
+ useCaseId?: unknown;
720
+ behaviorVersionId?: unknown;
721
+ softwareId?: unknown;
722
+ }
723
+ interface DesignDocumentSource {
724
+ behaviorVersionId: string;
725
+ behaviorFingerprint: string;
726
+ behaviorPlainText: string;
727
+ decisions: DesignDecisionRecord[];
728
+ }
729
+ interface DesignDocumentSheet {
730
+ fingerprint: string;
731
+ html: string;
732
+ plainText: string;
733
+ }
734
+ interface DesignExitDecision {
735
+ ok: boolean;
736
+ advance: boolean;
737
+ message: string;
738
+ designVersionId: string;
739
+ }
740
+ declare function designDecisionSupportsDataModel(item: DesignDecisionRecord): boolean;
741
+ declare function designDecisionSupportsUx(item: DesignDecisionRecord): boolean;
742
+ declare function designDecisionSupportsTechnical(item: DesignDecisionRecord): boolean;
743
+ declare function designDecisionLinksRequirement(item: DesignDecisionRecord, requirementIds: Set<string>): boolean;
744
+ declare function designDocumentFingerprint(source: DesignDocumentSource): string;
745
+ declare function designDocumentHeading(locale?: string): string;
746
+ declare function buildDesignDocument(source: DesignDocumentSource, locale?: string): DesignDocumentSheet;
747
+ declare function evaluateDesignExit(input: {
748
+ currentPhase?: unknown;
749
+ decisions?: DesignDecisionRecord[];
750
+ requirements?: BehaviorRequirementRecord[];
751
+ acceptanceCriteria?: BehaviorAcceptanceCriterionRecord[];
752
+ businessRules?: BehaviorBusinessRuleRecord[];
753
+ useCases?: BehaviorUseCaseRecord[];
754
+ items?: ScopeItemRecord[];
755
+ statusId?: unknown;
756
+ hostVersionId?: unknown;
757
+ approvedVersionId?: unknown;
758
+ approvedFingerprint?: unknown;
759
+ reportFingerprint?: unknown;
760
+ behaviorApprovedVersionId?: unknown;
761
+ behaviorApprovedFingerprint?: unknown;
762
+ currentBehaviorFingerprint?: unknown;
763
+ behaviorStatusId?: unknown;
764
+ behaviorHostVersionId?: unknown;
765
+ scopeApprovedVersionId?: unknown;
766
+ scopeApprovedFingerprint?: unknown;
767
+ currentScopeFingerprint?: unknown;
768
+ scopeStatusId?: unknown;
769
+ scopeHostVersionId?: unknown;
770
+ discoveryApprovedVersionId?: unknown;
771
+ discoveryApprovedFingerprint?: unknown;
772
+ currentDiscoveryFingerprint?: unknown;
773
+ discoveryStatusId?: unknown;
774
+ discoveryHostVersionId?: unknown;
775
+ kickoffApprovedVersionId?: unknown;
776
+ kickoffApprovedFingerprint?: unknown;
777
+ currentKickoffFingerprint?: unknown;
778
+ kickoffStatusId?: unknown;
779
+ kickoffHostVersionId?: unknown;
780
+ }): DesignExitDecision;
781
+
782
+ declare const DELIVERY_DOCUMENT_TYPE_NAME = "software-delivery-plan";
783
+ declare const DELIVERY_DOCUMENT_FILE_NAME = "delivery-plan.pdf";
784
+ declare const DELIVERY_DOCUMENT_LEGACY_HTML_FILE_NAME = "delivery-plan.html";
785
+ declare const DELIVERY_CONTENT_CHANGED = "delivery-content-changed";
786
+ declare const DELIVERY_SOURCE_CHANGED = "design-approved-version-changed";
787
+ declare const DELIVERY_PLAN_FIELDS: readonly ["deliveryWorkPackages", "deliveryMilestones", "deliveryEstimateAssumptions", "deliveryVerificationCriteria", "deliveryReleaseCriteria", "deliveryRisks", "deliveryTracedRequirementId", "deliveryTracedDesignDecisionId"];
788
+ declare const DELIVERY_EXIT_MESSAGE: {
789
+ readonly missingApproved: "Delivery planning needs an approved delivery plan before the software definition can complete.";
790
+ readonly stale: "Delivery plan content changed after approval. The approved document was not changed. Generate and approve a new document.";
791
+ readonly workPackages: "Delivery planning needs work packages with order, dependencies, and responsible roles.";
792
+ readonly milestones: "Delivery planning needs at least one milestone with a sequence or dependency.";
793
+ readonly estimates: "Delivery planning needs the estimate assumptions that the plan relies on.";
794
+ readonly verification: "Delivery planning needs verification criteria for the planned work.";
795
+ readonly release: "Delivery planning needs release or readiness criteria.";
796
+ readonly risks: "Delivery planning needs at least one material risk.";
797
+ readonly requirement: "Delivery planning needs a work package traced to a behavior requirement.";
798
+ readonly designDecision: "Delivery planning needs a work package traced to an approved design decision.";
799
+ };
800
+ interface DeliveryPlanSource {
801
+ designVersionId: string;
802
+ designFingerprint: string;
803
+ designPlainText: string;
804
+ workPackages: unknown;
805
+ milestones: unknown;
806
+ estimateAssumptions: unknown;
807
+ verificationCriteria: unknown;
808
+ releaseCriteria: unknown;
809
+ risks: unknown;
810
+ tracedRequirementId: unknown;
811
+ tracedDesignDecisionId: unknown;
812
+ projectId?: unknown;
813
+ }
814
+ interface DeliveryPlanSheet {
815
+ fingerprint: string;
816
+ html: string;
817
+ plainText: string;
818
+ }
819
+ interface DeliveryExitDecision {
820
+ ok: boolean;
821
+ advance: boolean;
822
+ alreadyComplete: boolean;
823
+ message: string;
824
+ deliveryVersionId: string;
825
+ }
826
+ declare function deliveryPlanHasText(value: unknown): boolean;
827
+ declare function deliveryPlanFingerprint(source: DeliveryPlanSource): string;
828
+ declare function deliveryPlanFromSoftware(software: Record<string, unknown> | null | undefined): {
829
+ workPackages: unknown;
830
+ milestones: unknown;
831
+ estimateAssumptions: unknown;
832
+ verificationCriteria: unknown;
833
+ releaseCriteria: unknown;
834
+ risks: unknown;
835
+ tracedRequirementId: unknown;
836
+ tracedDesignDecisionId: unknown;
837
+ projectId: unknown;
838
+ };
839
+ declare function deliveryPlanHeading(locale?: string): string;
840
+ declare function buildDeliveryPlan(source: DeliveryPlanSource, locale?: string): DeliveryPlanSheet;
841
+ declare function evaluateDeliveryExit(input: {
842
+ currentPhase?: unknown;
843
+ definitionCompletedAt?: unknown;
844
+ workPackages?: unknown;
845
+ milestones?: unknown;
846
+ estimateAssumptions?: unknown;
847
+ verificationCriteria?: unknown;
848
+ releaseCriteria?: unknown;
849
+ risks?: unknown;
850
+ tracedRequirementId?: unknown;
851
+ tracedDesignDecisionId?: unknown;
852
+ requirements?: BehaviorRequirementRecord[];
853
+ decisions?: DesignDecisionRecord[];
854
+ statusId?: unknown;
855
+ hostVersionId?: unknown;
856
+ approvedVersionId?: unknown;
857
+ approvedFingerprint?: unknown;
858
+ reportFingerprint?: unknown;
859
+ designApprovedVersionId?: unknown;
860
+ designApprovedFingerprint?: unknown;
861
+ currentDesignFingerprint?: unknown;
862
+ designStatusId?: unknown;
863
+ designHostVersionId?: unknown;
864
+ behaviorApprovedVersionId?: unknown;
865
+ behaviorApprovedFingerprint?: unknown;
866
+ currentBehaviorFingerprint?: unknown;
867
+ behaviorStatusId?: unknown;
868
+ behaviorHostVersionId?: unknown;
869
+ scopeApprovedVersionId?: unknown;
870
+ scopeApprovedFingerprint?: unknown;
871
+ currentScopeFingerprint?: unknown;
872
+ scopeStatusId?: unknown;
873
+ scopeHostVersionId?: unknown;
874
+ discoveryApprovedVersionId?: unknown;
875
+ discoveryApprovedFingerprint?: unknown;
876
+ currentDiscoveryFingerprint?: unknown;
877
+ discoveryStatusId?: unknown;
878
+ discoveryHostVersionId?: unknown;
879
+ kickoffApprovedVersionId?: unknown;
880
+ kickoffApprovedFingerprint?: unknown;
881
+ currentKickoffFingerprint?: unknown;
882
+ kickoffStatusId?: unknown;
883
+ kickoffHostVersionId?: unknown;
884
+ }): DeliveryExitDecision;
885
+
378
886
  declare function textPresent(value: unknown): boolean;
379
887
  declare function canCompleteIntroduction(software: {
380
888
  title?: unknown;
@@ -408,12 +916,73 @@ declare function canCompletePhase(phase: SoftwarePhase, software: {
408
916
  origin?: unknown;
409
917
  currentPhase?: unknown;
410
918
  introductionCompletedAt?: unknown;
411
- }, kickoff?: IntroductionKickoffCheck | null, discovery?: Parameters<typeof evaluateDiscoveryExit>[0] | null): {
919
+ }, kickoff?: IntroductionKickoffCheck | null, discovery?: Parameters<typeof evaluateDiscoveryExit>[0] | null, scope?: Parameters<typeof evaluateScopeExit>[0] | null, behavior?: Parameters<typeof evaluateBehaviorExit>[0] | null, design?: Parameters<typeof evaluateDesignExit>[0] | null, delivery?: Parameters<typeof evaluateDeliveryExit>[0] | null): {
412
920
  ok: boolean;
413
921
  message: string;
414
922
  advance?: boolean;
415
923
  missingFields?: IntroductionRequiredField[];
416
924
  };
925
+ /**
926
+ * Workflow port emitted by Complete Phase. Discovery revise/stop must not use Done,
927
+ * because Done is wired to the next-stage human task.
928
+ */
929
+ declare function completePhaseWorkflowOutcome(phase: SoftwarePhase, gate: {
930
+ ok: boolean;
931
+ advance?: boolean;
932
+ }, discoveryDecision?: unknown): 'Done' | 'Revise' | 'Stop' | 'Failed';
933
+
934
+ declare const UPSTREAM_EXIT_MESSAGE: {
935
+ readonly kickoffMissing: "@software-management:messages.introduction.kickoff-missing";
936
+ readonly kickoffRejected: "@software-management:messages.introduction.kickoff-rejected";
937
+ readonly kickoffNotApproved: "@software-management:messages.introduction.kickoff-not-approved";
938
+ readonly kickoffStale: "@software-management:messages.introduction.kickoff-stale";
939
+ readonly kickoffVersionMismatch: "@software-management:messages.introduction.kickoff-version-mismatch";
940
+ readonly discoveryMissing: "@software-management:messages.scope.discovery-required";
941
+ readonly discoveryRejected: "@software-management:messages.scope.discovery-rejected";
942
+ readonly discoveryNotApproved: "@software-management:messages.scope.discovery-not-approved";
943
+ readonly discoveryStale: "@software-management:messages.scope.discovery-stale";
944
+ readonly discoveryVersionMismatch: "@software-management:messages.scope.discovery-version-mismatch";
945
+ readonly scopeMissing: "@software-management:messages.behavior.scope-required";
946
+ readonly scopeRejected: "@software-management:messages.behavior.scope-rejected";
947
+ readonly scopeNotApproved: "@software-management:messages.behavior.scope-not-approved";
948
+ readonly scopeStale: "@software-management:messages.behavior.scope-stale";
949
+ readonly scopeVersionMismatch: "@software-management:messages.behavior.scope-version-mismatch";
950
+ readonly behaviorMissing: "@software-management:messages.design.behavior-required";
951
+ readonly behaviorRejected: "@software-management:messages.design.behavior-rejected";
952
+ readonly behaviorNotApproved: "@software-management:messages.design.behavior-not-approved";
953
+ readonly behaviorStale: "@software-management:messages.design.behavior-stale";
954
+ readonly behaviorVersionMismatch: "@software-management:messages.design.behavior-version-mismatch";
955
+ readonly designMissing: "@software-management:messages.delivery.design-required";
956
+ readonly designRejected: "@software-management:messages.delivery.design-rejected";
957
+ readonly designNotApproved: "@software-management:messages.delivery.design-not-approved";
958
+ readonly designStale: "@software-management:messages.delivery.design-stale";
959
+ readonly designVersionMismatch: "@software-management:messages.delivery.design-version-mismatch";
960
+ };
961
+ interface ApprovedUpstreamPinInput {
962
+ pinVersionId?: unknown;
963
+ pinFingerprint?: unknown;
964
+ currentFingerprint?: unknown;
965
+ statusId?: unknown;
966
+ hostVersionId?: unknown;
967
+ messages: {
968
+ missing: string;
969
+ rejected: string;
970
+ notApproved: string;
971
+ stale: string;
972
+ versionMismatch: string;
973
+ };
974
+ }
975
+ /**
976
+ * Compares a stored approval pin to the live host document and current inputs.
977
+ * `needsReview` is ignored. Callers must pass live fingerprints; omitted
978
+ * fingerprint / host fields skip that slice so existing unit fixtures stay valid.
979
+ */
980
+ declare function evaluateApprovedUpstreamPin(input: ApprovedUpstreamPinInput): string | null;
981
+ declare function evaluateKickoffUpstreamPin(input: Omit<ApprovedUpstreamPinInput, 'messages'>): string | null;
982
+ declare function evaluateDiscoveryUpstreamPin(input: Omit<ApprovedUpstreamPinInput, 'messages'>): string | null;
983
+ declare function evaluateScopeUpstreamPin(input: Omit<ApprovedUpstreamPinInput, 'messages'>): string | null;
984
+ declare function evaluateBehaviorUpstreamPin(input: Omit<ApprovedUpstreamPinInput, 'messages'>): string | null;
985
+ declare function evaluateDesignUpstreamPin(input: Omit<ApprovedUpstreamPinInput, 'messages'>): string | null;
417
986
 
418
987
  interface AXMSoftwareManagementProvenanceFields {
419
988
  origin?: SoftwareOrigin;
@@ -450,6 +1019,30 @@ interface AXMSoftwareManagementSoftwareEntityModel extends AXPEntityModel<string
450
1019
  discoveryApprovedFingerprint?: string;
451
1020
  discoveryDecision?: 'proceed' | 'revise' | 'stop' | string;
452
1021
  discoveryRationale?: string;
1022
+ scopeDocumentId?: string;
1023
+ /** DocumentManagement.DocumentVersion id Behavior must read. */
1024
+ scopeApprovedVersionId?: string;
1025
+ scopeApprovedFingerprint?: string;
1026
+ behaviorDocumentId?: string;
1027
+ /** DocumentManagement.DocumentVersion id Design must read. */
1028
+ behaviorApprovedVersionId?: string;
1029
+ behaviorApprovedFingerprint?: string;
1030
+ designDocumentId?: string;
1031
+ /** DocumentManagement.DocumentVersion id Delivery planning must read. */
1032
+ designApprovedVersionId?: string;
1033
+ designApprovedFingerprint?: string;
1034
+ deliveryDocumentId?: string;
1035
+ /** DocumentManagement.DocumentVersion id the finished definition must pin. */
1036
+ deliveryApprovedVersionId?: string;
1037
+ deliveryApprovedFingerprint?: string;
1038
+ deliveryWorkPackages?: string;
1039
+ deliveryMilestones?: string;
1040
+ deliveryEstimateAssumptions?: string;
1041
+ deliveryVerificationCriteria?: string;
1042
+ deliveryReleaseCriteria?: string;
1043
+ deliveryRisks?: string;
1044
+ deliveryTracedRequirementId?: string;
1045
+ deliveryTracedDesignDecisionId?: string;
453
1046
  introductionCompletedAt?: Date | string | null;
454
1047
  definitionCompletedAt?: Date | string | null;
455
1048
  projectId?: string;
@@ -482,30 +1075,49 @@ interface AXMSoftwareManagementSoftwareScopeItemEntityModel extends AXPEntityMod
482
1075
  kind: SoftwareScopeKind;
483
1076
  title: string;
484
1077
  body?: string;
1078
+ priority?: SoftwareMoscowPriority;
1079
+ rationale?: string;
485
1080
  metricBaseline?: string;
486
1081
  metricTarget?: string;
1082
+ metricMethod?: string;
1083
+ /** Approved discovery report version this item is based on. */
1084
+ discoveryVersionId?: string;
487
1085
  }
488
1086
 
489
1087
  interface AXMSoftwareManagementSoftwareRequirementEntityModel extends AXPEntityModel<string>, AXMSoftwareManagementProvenanceFields {
490
1088
  softwareId: string;
491
1089
  scopedId?: string;
492
1090
  title: string;
1091
+ kind?: SoftwareRequirementKind;
493
1092
  statement: string;
494
- priority?: string;
1093
+ priority?: SoftwareMoscowPriority;
1094
+ rationale?: string;
1095
+ verificationMethod?: SoftwareVerificationMethod;
1096
+ scopeItemId?: string;
1097
+ scopeVersionId?: string;
495
1098
  }
496
1099
 
497
1100
  interface AXMSoftwareManagementSoftwareAcceptanceCriterionEntityModel extends AXPEntityModel<string>, AXMSoftwareManagementProvenanceFields {
498
1101
  softwareId: string;
499
1102
  requirementId: string;
500
1103
  statement: string;
1104
+ given?: string;
1105
+ when?: string;
1106
+ then?: string;
1107
+ scopeVersionId?: string;
501
1108
  }
502
1109
 
503
1110
  interface AXMSoftwareManagementSoftwareBusinessRuleEntityModel extends AXPEntityModel<string>, AXMSoftwareManagementProvenanceFields {
504
1111
  softwareId: string;
505
1112
  title: string;
1113
+ kind?: SoftwareBusinessRuleKind;
506
1114
  statement: string;
507
1115
  trigger?: string;
508
1116
  consequence?: string;
1117
+ enforcementLevel?: SoftwareEnforcementLevel;
1118
+ requirementId?: string;
1119
+ scopeItemId?: string;
1120
+ scopeVersionId?: string;
509
1121
  }
510
1122
 
511
1123
  interface AXMSoftwareManagementSoftwareModuleEntityModel extends AXPEntityModel<string>, AXMSoftwareManagementProvenanceFields {
@@ -521,6 +1133,9 @@ interface AXMSoftwareManagementSoftwareFeatureEntityModel extends AXPEntityModel
521
1133
  code: string;
522
1134
  title: string;
523
1135
  summary?: string;
1136
+ asA?: string;
1137
+ iWant?: string;
1138
+ soThat?: string;
524
1139
  }
525
1140
 
526
1141
  interface AXMSoftwareManagementSoftwareUseCaseEntityModel extends AXPEntityModel<string>, AXMSoftwareManagementProvenanceFields {
@@ -529,19 +1144,33 @@ interface AXMSoftwareManagementSoftwareUseCaseEntityModel extends AXPEntityModel
529
1144
  requirementId?: string;
530
1145
  code: string;
531
1146
  title: string;
1147
+ level?: SoftwareUseCaseLevel;
532
1148
  primaryActor?: string;
1149
+ trigger?: string;
533
1150
  preconditions?: string;
534
1151
  mainFlow?: string;
1152
+ extensions?: string;
535
1153
  postconditions?: string;
1154
+ scopeItemId?: string;
1155
+ scopeVersionId?: string;
536
1156
  }
537
1157
 
538
1158
  interface AXMSoftwareManagementSoftwareDesignDecisionEntityModel extends AXPEntityModel<string>, AXMSoftwareManagementProvenanceFields {
539
1159
  softwareId: string;
540
1160
  kind: SoftwareDesignKind;
1161
+ adrStatus?: SoftwareAdrStatus;
541
1162
  title: string;
1163
+ context?: string;
542
1164
  body?: string;
1165
+ alternatives?: string;
1166
+ consequences?: string;
543
1167
  technology?: string;
1168
+ requirementId?: string;
1169
+ useCaseId?: string;
1170
+ behaviorVersionId?: string;
544
1171
  }
545
1172
 
546
- export { AXPSoftwareManagementCommandKeys, AXPSoftwareManagementMenuKeys, AXPSoftwareManagementPermissionKeys, DISCOVERY_DECISIONS, DISCOVERY_FINDINGS_CHANGED, DISCOVERY_KICKOFF_DOCUMENT_TYPE_NAME, DISCOVERY_KICKOFF_FILE_NAME, DISCOVERY_METHODS, DISCOVERY_REPORT_DOCUMENT_TYPE_NAME, DISCOVERY_REPORT_FILE_NAME, DISCOVERY_STANCES, INTRODUCTION_EXIT_MESSAGE, INTRODUCTION_REQUIRED_FIELDS, INTRODUCTION_UPSTREAM_FIELDS, KICKOFF_REVIEW_REASON_BASE_DATA, KICKOFF_REVIEW_STATUS, KICKOFF_SOURCE_FIELDS, RootConfig, SOFTWARE_DEFINITION_WORKFLOW_NAME, SOFTWARE_DESIGN_KINDS, SOFTWARE_DISCOVERY_KINDS, SOFTWARE_ORIGINS, SOFTWARE_PHASES, SOFTWARE_PROPOSED_BY, SOFTWARE_SCOPE_KINDS, SoftwareManagementManifest, approvedKickoffPdfSource, buildDiscoveryKickoffSheet, buildDiscoveryReport, buildIntroductionKickoffCheck, canCompleteIntroduction, canCompletePhase, canLinkProject, canWriteDesignKind, discoveryKickoffFingerprint, discoveryReportFingerprint, discoveryStance, evaluateDiscoveryExit, evaluateIntroductionExit, findingSupportsProceed, introductionValueText, isIntroductionComplete, isSoftwarePhaseAtLeast, kickoffAfterBaseDataChange, kickoffFingerprintFromRows, kickoffPlainTextFromVersion, kickoffReviewKeepsIntroduction, kickoffSourceFromSoftware, kickoffStatusId, kickoffText, missingIntroductionFields, nextSoftwarePhase, parseSourceRefs, readKickoffMeta, softwareDefinitionWorkflowDefinition, softwarePhaseIndex, textPresent };
547
- export type { AXMSoftwareManagementProvenanceFields, AXMSoftwareManagementSoftwareAcceptanceCriterionEntityModel, AXMSoftwareManagementSoftwareBusinessRuleEntityModel, AXMSoftwareManagementSoftwareDesignDecisionEntityModel, AXMSoftwareManagementSoftwareDiscoveryItemEntityModel, AXMSoftwareManagementSoftwareEntityModel, AXMSoftwareManagementSoftwareFeatureEntityModel, AXMSoftwareManagementSoftwareModuleEntityModel, AXMSoftwareManagementSoftwareRequirementEntityModel, AXMSoftwareManagementSoftwareScopeItemEntityModel, AXMSoftwareManagementSoftwareUseCaseEntityModel, DiscoveryDecision, DiscoveryExitDecision, DiscoveryFindingRecord, DiscoveryKickoffMeta, DiscoveryKickoffSection, DiscoveryKickoffSheet, DiscoveryKickoffSource, DiscoveryMethod, DiscoveryReportSheet, DiscoveryReportSource, DiscoveryStance, IntroductionExitDecision, IntroductionKickoffCheck, IntroductionRequiredField, KickoffCertainty, KickoffReviewStatus, SoftwareDesignKind, SoftwareDiscoveryKind, SoftwareOrigin, SoftwarePhase, SoftwareProposedBy, SoftwareScopeKind };
1173
+ declare const softwareManagementLocalEntityCatalog: AXPLocalEntityCatalog;
1174
+
1175
+ export { AXPSoftwareManagementCommandKeys, AXPSoftwareManagementMenuKeys, AXPSoftwareManagementPermissionKeys, BEHAVIOR_CONTENT_CHANGED, BEHAVIOR_DOCUMENT_FILE_NAME, BEHAVIOR_DOCUMENT_LEGACY_HTML_FILE_NAME, BEHAVIOR_DOCUMENT_TYPE_NAME, BEHAVIOR_EXIT_MESSAGE, BEHAVIOR_SOURCE_CHANGED, DELIVERY_CONTENT_CHANGED, DELIVERY_DOCUMENT_FILE_NAME, DELIVERY_DOCUMENT_LEGACY_HTML_FILE_NAME, DELIVERY_DOCUMENT_TYPE_NAME, DELIVERY_EXIT_MESSAGE, DELIVERY_PLAN_FIELDS, DELIVERY_SOURCE_CHANGED, DESIGN_CONTENT_CHANGED, DESIGN_DOCUMENT_FILE_NAME, DESIGN_DOCUMENT_LEGACY_HTML_FILE_NAME, DESIGN_DOCUMENT_TYPE_NAME, DESIGN_EXIT_MESSAGE, DESIGN_SOURCE_CHANGED, DISCOVERY_DECISIONS, DISCOVERY_FINDINGS_CHANGED, DISCOVERY_KICKOFF_DOCUMENT_TYPE_NAME, DISCOVERY_KICKOFF_FILE_NAME, DISCOVERY_KICKOFF_LEGACY_HTML_FILE_NAME, DISCOVERY_KIND_INVALID_REASON, DISCOVERY_METHODS, DISCOVERY_REPORT_DOCUMENT_TYPE_NAME, DISCOVERY_REPORT_FILE_NAME, DISCOVERY_REPORT_LEGACY_HTML_FILE_NAME, DISCOVERY_STANCES, INTRODUCTION_EXIT_MESSAGE, INTRODUCTION_REQUIRED_FIELDS, INTRODUCTION_UPSTREAM_FIELDS, KICKOFF_REVIEW_REASON_BASE_DATA, KICKOFF_REVIEW_STATUS, KICKOFF_SOURCE_FIELDS, RootConfig, SCOPE_DOCUMENT_FILE_NAME, SCOPE_DOCUMENT_LEGACY_HTML_FILE_NAME, SCOPE_DOCUMENT_TYPE_NAME, SCOPE_ITEMS_CHANGED, SCOPE_SOURCE_CHANGED, SOFTWARE_ADR_STATUSES, SOFTWARE_BUSINESS_RULE_KINDS, SOFTWARE_DEFINITION_WORKFLOW_NAME, SOFTWARE_DESIGN_KINDS, SOFTWARE_DISCOVERY_KINDS, SOFTWARE_ENFORCEMENT_LEVELS, SOFTWARE_MOSCOW_PRIORITIES, SOFTWARE_ORIGINS, SOFTWARE_PHASES, SOFTWARE_PROPOSED_BY, SOFTWARE_REQUIREMENT_KINDS, SOFTWARE_SCOPE_KINDS, SOFTWARE_USE_CASE_LEVELS, SOFTWARE_VERIFICATION_METHODS, SoftwareManagementManifest, UPSTREAM_EXIT_MESSAGE, USABLE_DISCOVERY_QUESTIONNAIRE_SESSION_STATUSES, acceptanceCriterionSupportsBehavior, approvedKickoffPdfSource, assessmentSubjectMatchesSoftware, behaviorDocumentFingerprint, behaviorDocumentHeading, buildBehaviorDocument, buildDeliveryPlan, buildDesignDocument, buildDiscoveryKickoffSheet, buildDiscoveryReport, buildIntroductionKickoffCheck, buildScopeDocument, businessRuleSupportsBehavior, canCompleteIntroduction, canCompletePhase, canLinkProject, canWriteDesignKind, capabilitySupportsScope, citedQuestionnaireSourceIds, completePhaseWorkflowOutcome, deliveryPlanFingerprint, deliveryPlanFromSoftware, deliveryPlanHasText, deliveryPlanHeading, designDecisionLinksRequirement, designDecisionSupportsDataModel, designDecisionSupportsTechnical, designDecisionSupportsUx, designDocumentFingerprint, designDocumentHeading, discoveryKickoffFingerprint, discoveryQuestionnaireSessionHasAnswers, discoveryReportFingerprint, discoveryReportHeading, discoveryStance, evaluateApprovedUpstreamPin, evaluateBehaviorExit, evaluateBehaviorUpstreamPin, evaluateDeliveryExit, evaluateDesignExit, evaluateDesignUpstreamPin, evaluateDiscoveryExit, evaluateDiscoveryUpstreamPin, evaluateIntroductionExit, evaluateKickoffUpstreamPin, evaluateScopeExit, evaluateScopeUpstreamPin, exclusionSupportsScope, findingHasTraceableEvidence, findingSupportsProceed, introductionValueText, isDiscoveryMethod, isIntroductionComplete, isMoscowPriority, isScopeKind, isSoftwareDiscoveryKind, isSoftwarePhaseAtLeast, isUsableDiscoveryQuestionnaireSession, kickoffAfterBaseDataChange, kickoffFingerprintFromRows, kickoffPlainTextFromVersion, kickoffReviewKeepsIntroduction, kickoffSheetHeading, kickoffSourceFromSoftware, kickoffStatusId, kickoffText, metricSupportsScope, missingIntroductionFields, nextSoftwarePhase, parseSourceRef, parseSourceRefs, readKickoffMeta, requirementSupportsBehavior, resolveDiscoveryEvidenceFromLookup, resolveKickoffSheetLang, resolveSheetLang, scopeDocumentFingerprint, scopeDocumentHeading, scopeItemKind, sheetBilingual, sheetDisplayLocale, sheetHeading, sheetUnknown, softwareDefinitionWorkflowDefinition, softwareManagementLocalEntityCatalog, softwarePhaseIndex, sourceRefIsTraceable, textPresent, useCaseSupportsBehavior, wrapSheetHtml };
1176
+ export type { AXMSoftwareManagementProvenanceFields, AXMSoftwareManagementSoftwareAcceptanceCriterionEntityModel, AXMSoftwareManagementSoftwareBusinessRuleEntityModel, AXMSoftwareManagementSoftwareDesignDecisionEntityModel, AXMSoftwareManagementSoftwareDiscoveryItemEntityModel, AXMSoftwareManagementSoftwareEntityModel, AXMSoftwareManagementSoftwareFeatureEntityModel, AXMSoftwareManagementSoftwareModuleEntityModel, AXMSoftwareManagementSoftwareRequirementEntityModel, AXMSoftwareManagementSoftwareScopeItemEntityModel, AXMSoftwareManagementSoftwareUseCaseEntityModel, ApprovedUpstreamPinInput, BehaviorAcceptanceCriterionRecord, BehaviorBusinessRuleRecord, BehaviorDocumentSheet, BehaviorDocumentSource, BehaviorExitDecision, BehaviorRequirementRecord, BehaviorUseCaseRecord, DeliveryExitDecision, DeliveryPlanSheet, DeliveryPlanSource, DesignDecisionRecord, DesignDocumentSheet, DesignDocumentSource, DesignExitDecision, DiscoveryDecision, DiscoveryEvidenceLookup, DiscoveryEvidenceResolution, DiscoveryExitDecision, DiscoveryFindingRecord, DiscoveryKickoffMeta, DiscoveryKickoffSection, DiscoveryKickoffSheet, DiscoveryKickoffSource, DiscoveryMethod, DiscoveryReportSheet, DiscoveryReportSource, DiscoveryStance, IntroductionExitDecision, IntroductionKickoffCheck, IntroductionRequiredField, KickoffCertainty, KickoffReviewStatus, KickoffSheetLang, ParsedSourceRef, ScopeDocumentSheet, ScopeDocumentSource, ScopeExitDecision, ScopeItemRecord, SheetLang, SoftwareAdrStatus, SoftwareBusinessRuleKind, SoftwareDesignKind, SoftwareDiscoveryKind, SoftwareEnforcementLevel, SoftwareMoscowPriority, SoftwareOrigin, SoftwarePhase, SoftwareProposedBy, SoftwareRequirementKind, SoftwareScopeKind, SoftwareUseCaseLevel, SoftwareVerificationMethod, UsableDiscoveryQuestionnaireSessionStatus };