create-principles-disciple 1.0.0 → 1.74.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.
- package/README.md +109 -7
- package/console/dist/lib/utils.d.ts +2 -0
- package/console/dist/lib/utils.js +5 -0
- package/console/dist/server/config/AuthConfig.d.ts +14 -0
- package/console/dist/server/config/AuthConfig.js +36 -0
- package/console/dist/server/config/WorkspaceConfigStore.d.ts +15 -0
- package/console/dist/server/config/WorkspaceConfigStore.js +100 -0
- package/console/dist/server/index.d.ts +1 -0
- package/console/dist/server/index.js +734 -0
- package/console/dist/server/models/ApprovalsConsoleModel.d.ts +48 -0
- package/console/dist/server/models/ApprovalsConsoleModel.js +208 -0
- package/console/dist/server/models/EventLogReadModel.d.ts +33 -0
- package/console/dist/server/models/EventLogReadModel.js +218 -0
- package/console/dist/server/models/EvolutionConsoleModel.d.ts +79 -0
- package/console/dist/server/models/EvolutionConsoleModel.js +179 -0
- package/console/dist/server/models/FeedbackConsoleModel.d.ts +38 -0
- package/console/dist/server/models/FeedbackConsoleModel.js +129 -0
- package/console/dist/server/models/GateConsoleModel.d.ts +50 -0
- package/console/dist/server/models/GateConsoleModel.js +151 -0
- package/console/dist/server/models/HealthCheckModel.d.ts +43 -0
- package/console/dist/server/models/HealthCheckModel.js +341 -0
- package/console/dist/server/models/OverviewConsoleModel.d.ts +22 -0
- package/console/dist/server/models/OverviewConsoleModel.js +202 -0
- package/console/dist/server/models/PipelineStatsModel.d.ts +35 -0
- package/console/dist/server/models/PipelineStatsModel.js +129 -0
- package/console/dist/server/models/PrinciplesConsoleModel.d.ts +69 -0
- package/console/dist/server/models/PrinciplesConsoleModel.js +200 -0
- package/console/dist/server/models/SampleConsoleModel.d.ts +21 -0
- package/console/dist/server/models/SampleConsoleModel.js +188 -0
- package/console/dist/server/models/ThinkingModelsConsoleModel.d.ts +22 -0
- package/console/dist/server/models/ThinkingModelsConsoleModel.js +75 -0
- package/console/dist/server/models/WorkspaceService.d.ts +34 -0
- package/console/dist/server/models/WorkspaceService.js +105 -0
- package/console/dist/server/routes/agents.d.ts +3 -0
- package/console/dist/server/routes/agents.js +442 -0
- package/console/dist/server/routes/approvals.d.ts +3 -0
- package/console/dist/server/routes/approvals.js +184 -0
- package/console/dist/server/routes/central.d.ts +5 -0
- package/console/dist/server/routes/central.js +31 -0
- package/console/dist/server/routes/events.d.ts +10 -0
- package/console/dist/server/routes/events.js +99 -0
- package/console/dist/server/routes/evolution.d.ts +3 -0
- package/console/dist/server/routes/evolution.js +73 -0
- package/console/dist/server/routes/feedback.d.ts +3 -0
- package/console/dist/server/routes/feedback.js +65 -0
- package/console/dist/server/routes/gates.d.ts +3 -0
- package/console/dist/server/routes/gates.js +52 -0
- package/console/dist/server/routes/health.d.ts +3 -0
- package/console/dist/server/routes/health.js +33 -0
- package/console/dist/server/routes/overview.d.ts +3 -0
- package/console/dist/server/routes/overview.js +49 -0
- package/console/dist/server/routes/pipeline.d.ts +3 -0
- package/console/dist/server/routes/pipeline.js +33 -0
- package/console/dist/server/routes/principles.d.ts +10 -0
- package/console/dist/server/routes/principles.js +48 -0
- package/console/dist/server/routes/samples.d.ts +3 -0
- package/console/dist/server/routes/samples.js +101 -0
- package/console/dist/server/routes/state.d.ts +11 -0
- package/console/dist/server/routes/state.js +97 -0
- package/console/dist/server/routes/thinking-models.d.ts +3 -0
- package/console/dist/server/routes/thinking-models.js +54 -0
- package/console/dist/server/routes/update-history.d.ts +12 -0
- package/console/dist/server/routes/update-history.js +52 -0
- package/console/dist/server/routes/update.d.ts +10 -0
- package/console/dist/server/routes/update.js +435 -0
- package/console/dist/server/routes/workspaces.d.ts +6 -0
- package/console/dist/server/routes/workspaces.js +105 -0
- package/console/dist/server/types/index.d.ts +248 -0
- package/console/dist/server/types/index.js +1 -0
- package/console/dist/server/utils/diagnostic-parser.d.ts +6 -0
- package/console/dist/server/utils/diagnostic-parser.js +81 -0
- package/console/dist/server/utils/request.d.ts +4 -0
- package/console/dist/server/utils/request.js +43 -0
- package/console/dist/server/utils/response.d.ts +8 -0
- package/console/dist/server/utils/response.js +31 -0
- package/console/dist/server.d.ts +1 -0
- package/console/dist/server.js +1 -0
- package/console/dist/types.d.ts +85 -0
- package/console/dist/types.js +1 -0
- package/console/dist/ui/App.d.ts +1 -0
- package/console/dist/ui/App.js +53 -0
- package/console/dist/ui/api.d.ts +498 -0
- package/console/dist/ui/api.js +243 -0
- package/console/dist/ui/components/UpdateBanner.d.ts +1 -0
- package/console/dist/ui/components/UpdateBanner.js +41 -0
- package/console/dist/ui/components/UpdateProgressDialog.d.ts +12 -0
- package/console/dist/ui/components/UpdateProgressDialog.js +28 -0
- package/console/dist/ui/components/app-sidebar.d.ts +7 -0
- package/console/dist/ui/components/app-sidebar.js +74 -0
- package/console/dist/ui/components/approval-card.d.ts +8 -0
- package/console/dist/ui/components/approval-card.js +39 -0
- package/console/dist/ui/components/approval-detail-dialog.d.ts +9 -0
- package/console/dist/ui/components/approval-detail-dialog.js +20 -0
- package/console/dist/ui/components/compare-view.d.ts +7 -0
- package/console/dist/ui/components/compare-view.js +32 -0
- package/console/dist/ui/components/data-freshness-indicator.d.ts +10 -0
- package/console/dist/ui/components/data-freshness-indicator.js +63 -0
- package/console/dist/ui/components/error-boundary.d.ts +15 -0
- package/console/dist/ui/components/error-boundary.js +23 -0
- package/console/dist/ui/components/health-diagnostic-card.d.ts +15 -0
- package/console/dist/ui/components/health-diagnostic-card.js +42 -0
- package/console/dist/ui/components/language-switcher.d.ts +1 -0
- package/console/dist/ui/components/language-switcher.js +17 -0
- package/console/dist/ui/components/page-header.d.ts +10 -0
- package/console/dist/ui/components/page-header.js +37 -0
- package/console/dist/ui/components/rejection-reason-dialog.d.ts +6 -0
- package/console/dist/ui/components/rejection-reason-dialog.js +23 -0
- package/console/dist/ui/components/theme-provider.d.ts +14 -0
- package/console/dist/ui/components/theme-provider.js +35 -0
- package/console/dist/ui/components/theme-toggle.d.ts +1 -0
- package/console/dist/ui/components/theme-toggle.js +30 -0
- package/console/dist/ui/components/ui/alert-dialog.d.ts +20 -0
- package/console/dist/ui/components/ui/alert-dialog.js +26 -0
- package/console/dist/ui/components/ui/badge.d.ts +9 -0
- package/console/dist/ui/components/ui/badge.js +20 -0
- package/console/dist/ui/components/ui/button.d.ts +11 -0
- package/console/dist/ui/components/ui/button.js +33 -0
- package/console/dist/ui/components/ui/card.d.ts +8 -0
- package/console/dist/ui/components/ui/card.js +16 -0
- package/console/dist/ui/components/ui/charts.d.ts +51 -0
- package/console/dist/ui/components/ui/charts.js +69 -0
- package/console/dist/ui/components/ui/dialog.d.ts +19 -0
- package/console/dist/ui/components/ui/dialog.js +22 -0
- package/console/dist/ui/components/ui/input.d.ts +3 -0
- package/console/dist/ui/components/ui/input.js +8 -0
- package/console/dist/ui/components/ui/markdown.d.ts +24 -0
- package/console/dist/ui/components/ui/markdown.js +115 -0
- package/console/dist/ui/components/ui/progress-bar.d.ts +20 -0
- package/console/dist/ui/components/ui/progress-bar.js +38 -0
- package/console/dist/ui/components/ui/select.d.ts +13 -0
- package/console/dist/ui/components/ui/select.js +26 -0
- package/console/dist/ui/components/ui/separator.d.ts +3 -0
- package/console/dist/ui/components/ui/separator.js +6 -0
- package/console/dist/ui/components/ui/sheet.d.ts +25 -0
- package/console/dist/ui/components/ui/sheet.js +36 -0
- package/console/dist/ui/components/ui/skeleton.d.ts +3 -0
- package/console/dist/ui/components/ui/skeleton.js +6 -0
- package/console/dist/ui/components/ui/sonner.d.ts +3 -0
- package/console/dist/ui/components/ui/sonner.js +13 -0
- package/console/dist/ui/components/ui/tooltip.d.ts +7 -0
- package/console/dist/ui/components/ui/tooltip.js +10 -0
- package/console/dist/ui/hooks/useAutoRefresh.d.ts +13 -0
- package/console/dist/ui/hooks/useAutoRefresh.js +64 -0
- package/console/dist/ui/hooks/useBookmarks.d.ts +6 -0
- package/console/dist/ui/hooks/useBookmarks.js +43 -0
- package/console/dist/ui/hooks/useDebounce.d.ts +2 -0
- package/console/dist/ui/hooks/useDebounce.js +32 -0
- package/console/dist/ui/hooks/useKeyboardNavigation.d.ts +14 -0
- package/console/dist/ui/hooks/useKeyboardNavigation.js +75 -0
- package/console/dist/ui/i18n/en.json +530 -0
- package/console/dist/ui/i18n/index.d.ts +2 -0
- package/console/dist/ui/i18n/index.js +21 -0
- package/console/dist/ui/i18n/zh-CN.json +530 -0
- package/console/dist/ui/main.d.ts +1 -0
- package/console/dist/ui/main.js +8 -0
- package/console/dist/ui/pages/AgentsPage.d.ts +1 -0
- package/console/dist/ui/pages/AgentsPage.js +167 -0
- package/console/dist/ui/pages/ApprovalsPage.d.ts +1 -0
- package/console/dist/ui/pages/ApprovalsPage.js +123 -0
- package/console/dist/ui/pages/CentralPage.d.ts +1 -0
- package/console/dist/ui/pages/CentralPage.js +57 -0
- package/console/dist/ui/pages/DataFlowPage.d.ts +1 -0
- package/console/dist/ui/pages/DataFlowPage.js +158 -0
- package/console/dist/ui/pages/EventLogPage.d.ts +1 -0
- package/console/dist/ui/pages/EventLogPage.js +176 -0
- package/console/dist/ui/pages/EvolutionPage.d.ts +1 -0
- package/console/dist/ui/pages/EvolutionPage.js +118 -0
- package/console/dist/ui/pages/FeedbackPage.d.ts +1 -0
- package/console/dist/ui/pages/FeedbackPage.js +46 -0
- package/console/dist/ui/pages/GatesPage.d.ts +1 -0
- package/console/dist/ui/pages/GatesPage.js +31 -0
- package/console/dist/ui/pages/LoginPage.d.ts +5 -0
- package/console/dist/ui/pages/LoginPage.js +39 -0
- package/console/dist/ui/pages/OverviewPage.d.ts +1 -0
- package/console/dist/ui/pages/OverviewPage.js +50 -0
- package/console/dist/ui/pages/PainPage.d.ts +1 -0
- package/console/dist/ui/pages/PainPage.js +50 -0
- package/console/dist/ui/pages/PrincipleDetailPage.d.ts +1 -0
- package/console/dist/ui/pages/PrincipleDetailPage.js +145 -0
- package/console/dist/ui/pages/PrinciplesPage.d.ts +1 -0
- package/console/dist/ui/pages/PrinciplesPage.js +322 -0
- package/console/dist/ui/pages/SamplesPage.d.ts +1 -0
- package/console/dist/ui/pages/SamplesPage.js +105 -0
- package/console/dist/ui/pages/SettingsPage.d.ts +1 -0
- package/console/dist/ui/pages/SettingsPage.js +86 -0
- package/console/dist/ui/pages/TasksPage.d.ts +1 -0
- package/console/dist/ui/pages/TasksPage.js +373 -0
- package/console/dist/ui/pages/ThinkingModelsPage.d.ts +1 -0
- package/console/dist/ui/pages/ThinkingModelsPage.js +32 -0
- package/console/dist/ui/pages/UpdatePage.d.ts +1 -0
- package/console/dist/ui/pages/UpdatePage.js +142 -0
- package/console/dist/ui/utils/format.d.ts +3 -0
- package/console/dist/ui/utils/format.js +20 -0
- package/console/dist/ui/utils/navigation.d.ts +9 -0
- package/console/dist/ui/utils/navigation.js +7 -0
- package/console/dist/web/assets/app.css +2828 -0
- package/console/dist/web/assets/app.js +46353 -0
- package/console/dist/web/index.html +13 -0
- package/console/package.json +53 -0
- package/core/dist/adapters/code-review/code-review-pain-adapter.d.ts +13 -0
- package/core/dist/adapters/code-review/code-review-pain-adapter.d.ts.map +1 -0
- package/core/dist/adapters/code-review/code-review-pain-adapter.js +139 -0
- package/core/dist/adapters/code-review/code-review-pain-adapter.js.map +1 -0
- package/core/dist/adapters/code-review/index.d.ts +6 -0
- package/core/dist/adapters/code-review/index.d.ts.map +1 -0
- package/core/dist/adapters/code-review/index.js +2 -0
- package/core/dist/adapters/code-review/index.js.map +1 -0
- package/core/dist/adapters/code-review/review-event-types.d.ts +54 -0
- package/core/dist/adapters/code-review/review-event-types.d.ts.map +1 -0
- package/core/dist/adapters/code-review/review-event-types.js +8 -0
- package/core/dist/adapters/code-review/review-event-types.js.map +1 -0
- package/core/dist/adapters/coding/index.d.ts +6 -0
- package/core/dist/adapters/coding/index.d.ts.map +1 -0
- package/core/dist/adapters/coding/index.js +5 -0
- package/core/dist/adapters/coding/index.js.map +1 -0
- package/core/dist/adapters/coding/openclaw-event-types.d.ts +26 -0
- package/core/dist/adapters/coding/openclaw-event-types.d.ts.map +1 -0
- package/core/dist/adapters/coding/openclaw-event-types.js +9 -0
- package/core/dist/adapters/coding/openclaw-event-types.js.map +1 -0
- package/core/dist/adapters/coding/openclaw-pain-adapter.d.ts +27 -0
- package/core/dist/adapters/coding/openclaw-pain-adapter.d.ts.map +1 -0
- package/core/dist/adapters/coding/openclaw-pain-adapter.js +102 -0
- package/core/dist/adapters/coding/openclaw-pain-adapter.js.map +1 -0
- package/core/dist/adapters/writing/index.d.ts +6 -0
- package/core/dist/adapters/writing/index.d.ts.map +1 -0
- package/core/dist/adapters/writing/index.js +5 -0
- package/core/dist/adapters/writing/index.js.map +1 -0
- package/core/dist/adapters/writing/writing-pain-adapter.d.ts +22 -0
- package/core/dist/adapters/writing/writing-pain-adapter.d.ts.map +1 -0
- package/core/dist/adapters/writing/writing-pain-adapter.js +62 -0
- package/core/dist/adapters/writing/writing-pain-adapter.js.map +1 -0
- package/core/dist/adapters/writing/writing-types.d.ts +34 -0
- package/core/dist/adapters/writing/writing-types.d.ts.map +1 -0
- package/core/dist/adapters/writing/writing-types.js +9 -0
- package/core/dist/adapters/writing/writing-types.js.map +1 -0
- package/core/dist/evolution-hook.d.ts +70 -0
- package/core/dist/evolution-hook.d.ts.map +1 -0
- package/core/dist/evolution-hook.js +10 -0
- package/core/dist/evolution-hook.js.map +1 -0
- package/core/dist/evolution-store.d.ts +56 -0
- package/core/dist/evolution-store.d.ts.map +1 -0
- package/core/dist/evolution-store.js +150 -0
- package/core/dist/evolution-store.js.map +1 -0
- package/core/dist/index.d.ts +62 -0
- package/core/dist/index.d.ts.map +1 -0
- package/core/dist/index.js +64 -0
- package/core/dist/index.js.map +1 -0
- package/core/dist/io.d.ts +36 -0
- package/core/dist/io.d.ts.map +1 -0
- package/core/dist/io.js +99 -0
- package/core/dist/io.js.map +1 -0
- package/core/dist/pain-flag-resolver.d.ts +18 -0
- package/core/dist/pain-flag-resolver.d.ts.map +1 -0
- package/core/dist/pain-flag-resolver.js +21 -0
- package/core/dist/pain-flag-resolver.js.map +1 -0
- package/core/dist/pain-recorder.d.ts +38 -0
- package/core/dist/pain-recorder.d.ts.map +1 -0
- package/core/dist/pain-recorder.js +62 -0
- package/core/dist/pain-recorder.js.map +1 -0
- package/core/dist/pain-signal-adapter.d.ts +37 -0
- package/core/dist/pain-signal-adapter.d.ts.map +1 -0
- package/core/dist/pain-signal-adapter.js +2 -0
- package/core/dist/pain-signal-adapter.js.map +1 -0
- package/core/dist/pain-signal.d.ts +76 -0
- package/core/dist/pain-signal.d.ts.map +1 -0
- package/core/dist/pain-signal.js +125 -0
- package/core/dist/pain-signal.js.map +1 -0
- package/core/dist/principle-injector.d.ts +67 -0
- package/core/dist/principle-injector.d.ts.map +1 -0
- package/core/dist/principle-injector.js +89 -0
- package/core/dist/principle-injector.js.map +1 -0
- package/core/dist/principle-tree-ledger.d.ts +106 -0
- package/core/dist/principle-tree-ledger.d.ts.map +1 -0
- package/core/dist/principle-tree-ledger.js +254 -0
- package/core/dist/principle-tree-ledger.js.map +1 -0
- package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts +2 -0
- package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts.map +1 -0
- package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js +380 -0
- package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js.map +1 -0
- package/core/dist/prompt-builder/__tests__/focus-compression.test.d.ts +2 -0
- package/core/dist/prompt-builder/__tests__/focus-compression.test.d.ts.map +1 -0
- package/core/dist/prompt-builder/__tests__/focus-compression.test.js +265 -0
- package/core/dist/prompt-builder/__tests__/focus-compression.test.js.map +1 -0
- package/core/dist/prompt-builder/__tests__/principle-selection.test.d.ts +7 -0
- package/core/dist/prompt-builder/__tests__/principle-selection.test.d.ts.map +1 -0
- package/core/dist/prompt-builder/__tests__/principle-selection.test.js +214 -0
- package/core/dist/prompt-builder/__tests__/principle-selection.test.js.map +1 -0
- package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts +7 -0
- package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts.map +1 -0
- package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.js +283 -0
- package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.js.map +1 -0
- package/core/dist/prompt-builder/__tests__/routing-guidance.test.d.ts +11 -0
- package/core/dist/prompt-builder/__tests__/routing-guidance.test.d.ts.map +1 -0
- package/core/dist/prompt-builder/__tests__/routing-guidance.test.js +305 -0
- package/core/dist/prompt-builder/__tests__/routing-guidance.test.js.map +1 -0
- package/core/dist/prompt-builder/attitude-directive.d.ts +7 -0
- package/core/dist/prompt-builder/attitude-directive.d.ts.map +1 -0
- package/core/dist/prompt-builder/attitude-directive.js +39 -0
- package/core/dist/prompt-builder/attitude-directive.js.map +1 -0
- package/core/dist/prompt-builder/correction-cue.d.ts +15 -0
- package/core/dist/prompt-builder/correction-cue.d.ts.map +1 -0
- package/core/dist/prompt-builder/correction-cue.js +39 -0
- package/core/dist/prompt-builder/correction-cue.js.map +1 -0
- package/core/dist/prompt-builder/empathy-keyword-matching.d.ts +30 -0
- package/core/dist/prompt-builder/empathy-keyword-matching.d.ts.map +1 -0
- package/core/dist/prompt-builder/empathy-keyword-matching.js +142 -0
- package/core/dist/prompt-builder/empathy-keyword-matching.js.map +1 -0
- package/core/dist/prompt-builder/empathy-types.d.ts +62 -0
- package/core/dist/prompt-builder/empathy-types.d.ts.map +1 -0
- package/core/dist/prompt-builder/empathy-types.js +88 -0
- package/core/dist/prompt-builder/empathy-types.js.map +1 -0
- package/core/dist/prompt-builder/focus-compression.d.ts +63 -0
- package/core/dist/prompt-builder/focus-compression.d.ts.map +1 -0
- package/core/dist/prompt-builder/focus-compression.js +448 -0
- package/core/dist/prompt-builder/focus-compression.js.map +1 -0
- package/core/dist/prompt-builder/index.d.ts +29 -0
- package/core/dist/prompt-builder/index.d.ts.map +1 -0
- package/core/dist/prompt-builder/index.js +27 -0
- package/core/dist/prompt-builder/index.js.map +1 -0
- package/core/dist/prompt-builder/message-extraction.d.ts +7 -0
- package/core/dist/prompt-builder/message-extraction.d.ts.map +1 -0
- package/core/dist/prompt-builder/message-extraction.js +23 -0
- package/core/dist/prompt-builder/message-extraction.js.map +1 -0
- package/core/dist/prompt-builder/minimal-trigger.d.ts +7 -0
- package/core/dist/prompt-builder/minimal-trigger.d.ts.map +1 -0
- package/core/dist/prompt-builder/minimal-trigger.js +11 -0
- package/core/dist/prompt-builder/minimal-trigger.js.map +1 -0
- package/core/dist/prompt-builder/principle-selection.d.ts +68 -0
- package/core/dist/prompt-builder/principle-selection.d.ts.map +1 -0
- package/core/dist/prompt-builder/principle-selection.js +140 -0
- package/core/dist/prompt-builder/principle-selection.js.map +1 -0
- package/core/dist/prompt-builder/routing-guidance.d.ts +64 -0
- package/core/dist/prompt-builder/routing-guidance.d.ts.map +1 -0
- package/core/dist/prompt-builder/routing-guidance.js +227 -0
- package/core/dist/prompt-builder/routing-guidance.js.map +1 -0
- package/core/dist/prompt-builder/size-guard.d.ts +35 -0
- package/core/dist/prompt-builder/size-guard.d.ts.map +1 -0
- package/core/dist/prompt-builder/size-guard.js +144 -0
- package/core/dist/prompt-builder/size-guard.js.map +1 -0
- package/core/dist/prompt-builder/types.d.ts +28 -0
- package/core/dist/prompt-builder/types.d.ts.map +1 -0
- package/core/dist/prompt-builder/types.js +7 -0
- package/core/dist/prompt-builder/types.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/admission-gate.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/admission-gate.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/admission-gate.test.js +126 -0
- package/core/dist/runtime-v2/__tests__/admission-gate.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +2990 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js +608 -0
- package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts +20 -0
- package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js +473 -0
- package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/candidate-audit.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/candidate-audit.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/candidate-audit.test.js +100 -0
- package/core/dist/runtime-v2/__tests__/candidate-audit.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.js +276 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js +561 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/control-plane-triage.test.js +107 -0
- package/core/dist/runtime-v2/__tests__/control-plane-triage.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/correction-proposal.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/correction-proposal.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/correction-proposal.test.js +486 -0
- package/core/dist/runtime-v2/__tests__/correction-proposal.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.js +171 -0
- package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js +155 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js +515 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner.test.js +348 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/error-categories.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/error-categories.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/error-categories.test.js +149 -0
- package/core/dist/runtime-v2/__tests__/error-categories.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +1047 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/index.d.ts +4 -0
- package/core/dist/runtime-v2/__tests__/fixtures/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/index.js +3 -0
- package/core/dist/runtime-v2/__tests__/fixtures/index.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts +20 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js +39 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js +111 -0
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts +20 -0
- package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.js +37 -0
- package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.js +152 -0
- package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/full-trace-contract.test.js +552 -0
- package/core/dist/runtime-v2/__tests__/full-trace-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.js +128 -0
- package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js +759 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js +231 -0
- package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/golden-trace.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/golden-trace.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/golden-trace.test.js +335 -0
- package/core/dist/runtime-v2/__tests__/golden-trace.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js +307 -0
- package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js +268 -0
- package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js +78 -0
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js +218 -0
- package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +569 -0
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js +448 -0
- package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js +415 -0
- package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-route.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-route.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-route.test.js +136 -0
- package/core/dist/runtime-v2/__tests__/internalization-route.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js +679 -0
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.js +157 -0
- package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js +102 -0
- package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js +148 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.js +113 -0
- package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.js +136 -0
- package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.js +248 -0
- package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.js +328 -0
- package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.js +267 -0
- package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js +147 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js +151 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js +209 -0
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js +167 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js +338 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.js +247 -0
- package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts +8 -0
- package/core/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pitask-metadata.test.js +333 -0
- package/core/dist/runtime-v2/__tests__/pitask-metadata.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.js +141 -0
- package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js +524 -0
- package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js +428 -0
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pruning-read-model.test.js +783 -0
- package/core/dist/runtime-v2/__tests__/pruning-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pruning-review-log.test.js +159 -0
- package/core/dist/runtime-v2/__tests__/pruning-review-log.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.js +83 -0
- package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/remediation-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/remediation-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/remediation-contract.test.js +39 -0
- package/core/dist/runtime-v2/__tests__/remediation-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +658 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js +509 -0
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js +535 -0
- package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.js +256 -0
- package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.js +76 -0
- package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js +208 -0
- package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js +156 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js +430 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js +148 -0
- package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js +95 -0
- package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.js +257 -0
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.js +155 -0
- package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/task-state-semantics.test.js +145 -0
- package/core/dist/runtime-v2/__tests__/task-state-semantics.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/task-three-strikes.test.js +268 -0
- package/core/dist/runtime-v2/__tests__/task-three-strikes.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.js +726 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner.test.js +527 -0
- package/core/dist/runtime-v2/__tests__/trace-refiner.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.js +257 -0
- package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js +506 -0
- package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/trajectory-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/trajectory-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/trajectory-store.test.js +127 -0
- package/core/dist/runtime-v2/__tests__/trajectory-store.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js +510 -0
- package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.js +117 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.js +179 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js +174 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js +244 -0
- package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js +109 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js +124 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/activation-dispatcher.d.ts +18 -0
- package/core/dist/runtime-v2/activation/activation-dispatcher.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/activation-dispatcher.js +231 -0
- package/core/dist/runtime-v2/activation/activation-dispatcher.js.map +1 -0
- package/core/dist/runtime-v2/activation/activation-types.d.ts +195 -0
- package/core/dist/runtime-v2/activation/activation-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/activation-types.js +29 -0
- package/core/dist/runtime-v2/activation/activation-types.js.map +1 -0
- package/core/dist/runtime-v2/activation/approval-queue.d.ts +15 -0
- package/core/dist/runtime-v2/activation/approval-queue.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/approval-queue.js +50 -0
- package/core/dist/runtime-v2/activation/approval-queue.js.map +1 -0
- package/core/dist/runtime-v2/activation/index.d.ts +15 -0
- package/core/dist/runtime-v2/activation/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/index.js +11 -0
- package/core/dist/runtime-v2/activation/index.js.map +1 -0
- package/core/dist/runtime-v2/activation/low-risk-writers.d.ts +14 -0
- package/core/dist/runtime-v2/activation/low-risk-writers.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/low-risk-writers.js +83 -0
- package/core/dist/runtime-v2/activation/low-risk-writers.js.map +1 -0
- package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts +13 -0
- package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/memory-activation-state-store.js +28 -0
- package/core/dist/runtime-v2/activation/memory-activation-state-store.js.map +1 -0
- package/core/dist/runtime-v2/activation/memory-approval-store.d.ts +12 -0
- package/core/dist/runtime-v2/activation/memory-approval-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/memory-approval-store.js +102 -0
- package/core/dist/runtime-v2/activation/memory-approval-store.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts +10 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js +87 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts +14 -0
- package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-approval-store.js +138 -0
- package/core/dist/runtime-v2/activation/sqlite-approval-store.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts +22 -0
- package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js +136 -0
- package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js.map +1 -0
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +615 -0
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/writers/index.d.ts +3 -0
- package/core/dist/runtime-v2/activation/writers/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/writers/index.js +2 -0
- package/core/dist/runtime-v2/activation/writers/index.js.map +1 -0
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts +14 -0
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js +135 -0
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js +553 -0
- package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.js +148 -0
- package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js +565 -0
- package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js +305 -0
- package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js +1362 -0
- package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js +245 -0
- package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js +270 -0
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js +494 -0
- package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js +123 -0
- package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/index.d.ts +10 -0
- package/core/dist/runtime-v2/adapter/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/index.js +6 -0
- package/core/dist/runtime-v2/adapter/index.js.map +1 -0
- package/core/dist/runtime-v2/adapter/json-extractor.d.ts +14 -0
- package/core/dist/runtime-v2/adapter/json-extractor.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/json-extractor.js +97 -0
- package/core/dist/runtime-v2/adapter/json-extractor.js.map +1 -0
- package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts +66 -0
- package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js +705 -0
- package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/output-repair-contract.d.ts +50 -0
- package/core/dist/runtime-v2/adapter/output-repair-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/output-repair-contract.js +96 -0
- package/core/dist/runtime-v2/adapter/output-repair-contract.js.map +1 -0
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +114 -0
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +1110 -0
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts +22 -0
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js +84 -0
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts +13 -0
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js +266 -0
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/structured-output-repair.d.ts +95 -0
- package/core/dist/runtime-v2/adapter/structured-output-repair.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/structured-output-repair.js +259 -0
- package/core/dist/runtime-v2/adapter/structured-output-repair.js.map +1 -0
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts +35 -0
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js +94 -0
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts +17 -0
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js +8 -0
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +1 -0
- package/core/dist/runtime-v2/admission-gate.d.ts +27 -0
- package/core/dist/runtime-v2/admission-gate.d.ts.map +1 -0
- package/core/dist/runtime-v2/admission-gate.js +57 -0
- package/core/dist/runtime-v2/admission-gate.js.map +1 -0
- package/core/dist/runtime-v2/agent-spec.d.ts +86 -0
- package/core/dist/runtime-v2/agent-spec.d.ts.map +1 -0
- package/core/dist/runtime-v2/agent-spec.js +74 -0
- package/core/dist/runtime-v2/agent-spec.js.map +1 -0
- package/core/dist/runtime-v2/candidate-audit.d.ts +8 -0
- package/core/dist/runtime-v2/candidate-audit.d.ts.map +1 -0
- package/core/dist/runtime-v2/candidate-audit.js +47 -0
- package/core/dist/runtime-v2/candidate-audit.js.map +1 -0
- package/core/dist/runtime-v2/candidate-intake-service.d.ts +43 -0
- package/core/dist/runtime-v2/candidate-intake-service.d.ts.map +1 -0
- package/core/dist/runtime-v2/candidate-intake-service.js +117 -0
- package/core/dist/runtime-v2/candidate-intake-service.js.map +1 -0
- package/core/dist/runtime-v2/candidate-intake.d.ts +219 -0
- package/core/dist/runtime-v2/candidate-intake.d.ts.map +1 -0
- package/core/dist/runtime-v2/candidate-intake.js +178 -0
- package/core/dist/runtime-v2/candidate-intake.js.map +1 -0
- package/core/dist/runtime-v2/cli/diagnose.d.ts +127 -0
- package/core/dist/runtime-v2/cli/diagnose.d.ts.map +1 -0
- package/core/dist/runtime-v2/cli/diagnose.js +113 -0
- package/core/dist/runtime-v2/cli/diagnose.js.map +1 -0
- package/core/dist/runtime-v2/cli/index.d.ts +5 -0
- package/core/dist/runtime-v2/cli/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/cli/index.js +3 -0
- package/core/dist/runtime-v2/cli/index.js.map +1 -0
- package/core/dist/runtime-v2/cli/probe.d.ts +31 -0
- package/core/dist/runtime-v2/cli/probe.d.ts.map +1 -0
- package/core/dist/runtime-v2/cli/probe.js +58 -0
- package/core/dist/runtime-v2/cli/probe.js.map +1 -0
- package/core/dist/runtime-v2/context-payload.d.ts +298 -0
- package/core/dist/runtime-v2/context-payload.d.ts.map +1 -0
- package/core/dist/runtime-v2/context-payload.js +140 -0
- package/core/dist/runtime-v2/context-payload.js.map +1 -0
- package/core/dist/runtime-v2/control-plane-triage.d.ts +32 -0
- package/core/dist/runtime-v2/control-plane-triage.d.ts.map +1 -0
- package/core/dist/runtime-v2/control-plane-triage.js +220 -0
- package/core/dist/runtime-v2/control-plane-triage.js.map +1 -0
- package/core/dist/runtime-v2/correction/correction-types.d.ts +87 -0
- package/core/dist/runtime-v2/correction/correction-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/correction/correction-types.js +66 -0
- package/core/dist/runtime-v2/correction/correction-types.js.map +1 -0
- package/core/dist/runtime-v2/correction/index.d.ts +2 -0
- package/core/dist/runtime-v2/correction/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/correction/index.js +2 -0
- package/core/dist/runtime-v2/correction/index.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts +2 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js +170 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js +396 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician-output.d.ts +84 -0
- package/core/dist/runtime-v2/diagnostician-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician-output.js +60 -0
- package/core/dist/runtime-v2/diagnostician-output.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts +130 -0
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js +162 -0
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/error-categories.d.ts +42 -0
- package/core/dist/runtime-v2/error-categories.d.ts.map +1 -0
- package/core/dist/runtime-v2/error-categories.js +119 -0
- package/core/dist/runtime-v2/error-categories.js.map +1 -0
- package/core/dist/runtime-v2/evolution/evolution-types.d.ts +709 -0
- package/core/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/evolution/evolution-types.js +410 -0
- package/core/dist/runtime-v2/evolution/evolution-types.js.map +1 -0
- package/core/dist/runtime-v2/evolution/index.d.ts +2 -0
- package/core/dist/runtime-v2/evolution/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/evolution/index.js +2 -0
- package/core/dist/runtime-v2/evolution/index.js.map +1 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +298 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts +35 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +124 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -0
- package/core/dist/runtime-v2/feature-flags/index.d.ts +3 -0
- package/core/dist/runtime-v2/feature-flags/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/feature-flags/index.js +2 -0
- package/core/dist/runtime-v2/feature-flags/index.js.map +1 -0
- package/core/dist/runtime-v2/full-trace-contract.d.ts +79 -0
- package/core/dist/runtime-v2/full-trace-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/full-trace-contract.js +464 -0
- package/core/dist/runtime-v2/full-trace-contract.js.map +1 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts +2 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js +626 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js.map +1 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js +212 -0
- package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-kernel.d.ts +12 -0
- package/core/dist/runtime-v2/gfi/gfi-kernel.d.ts.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-kernel.js +148 -0
- package/core/dist/runtime-v2/gfi/gfi-kernel.js.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-policy.d.ts +3 -0
- package/core/dist/runtime-v2/gfi/gfi-policy.d.ts.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-policy.js +23 -0
- package/core/dist/runtime-v2/gfi/gfi-policy.js.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-read-model.d.ts +78 -0
- package/core/dist/runtime-v2/gfi/gfi-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-read-model.js +129 -0
- package/core/dist/runtime-v2/gfi/gfi-read-model.js.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-types.d.ts +70 -0
- package/core/dist/runtime-v2/gfi/gfi-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/gfi/gfi-types.js +2 -0
- package/core/dist/runtime-v2/gfi/gfi-types.js.map +1 -0
- package/core/dist/runtime-v2/gfi/index.d.ts +6 -0
- package/core/dist/runtime-v2/gfi/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/gfi/index.js +4 -0
- package/core/dist/runtime-v2/gfi/index.js.map +1 -0
- package/core/dist/runtime-v2/golden-trace-candidate-builder.d.ts +23 -0
- package/core/dist/runtime-v2/golden-trace-candidate-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/golden-trace-candidate-builder.js +193 -0
- package/core/dist/runtime-v2/golden-trace-candidate-builder.js.map +1 -0
- package/core/dist/runtime-v2/golden-trace-replay-adapter.d.ts +18 -0
- package/core/dist/runtime-v2/golden-trace-replay-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/golden-trace-replay-adapter.js +18 -0
- package/core/dist/runtime-v2/golden-trace-replay-adapter.js.map +1 -0
- package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts +42 -0
- package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +1 -0
- package/core/dist/runtime-v2/golden-trace-replay-validator.js +220 -0
- package/core/dist/runtime-v2/golden-trace-replay-validator.js.map +1 -0
- package/core/dist/runtime-v2/golden-trace.d.ts +80 -0
- package/core/dist/runtime-v2/golden-trace.d.ts.map +1 -0
- package/core/dist/runtime-v2/golden-trace.js +158 -0
- package/core/dist/runtime-v2/golden-trace.js.map +1 -0
- package/core/dist/runtime-v2/index.d.ts +281 -0
- package/core/dist/runtime-v2/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/index.js +224 -0
- package/core/dist/runtime-v2/index.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js +57 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js +182 -0
- package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js +112 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js +176 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js +297 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js +149 -0
- package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js +92 -0
- package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js +431 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js +763 -0
- package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js +75 -0
- package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js +56 -0
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js +141 -0
- package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-output.d.ts +67 -0
- package/core/dist/runtime-v2/internalization/artificer-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-output.js +103 -0
- package/core/dist/runtime-v2/internalization/artificer-output.js.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts +24 -0
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js +62 -0
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +77 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.js +521 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/compile-result.d.ts +20 -0
- package/core/dist/runtime-v2/internalization/compile-result.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/compile-result.js +8 -0
- package/core/dist/runtime-v2/internalization/compile-result.js.map +1 -0
- package/core/dist/runtime-v2/internalization/correction-proposal.d.ts +38 -0
- package/core/dist/runtime-v2/internalization/correction-proposal.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/correction-proposal.js +322 -0
- package/core/dist/runtime-v2/internalization/correction-proposal.js.map +1 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.d.ts +20 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.js +75 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.js.map +1 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.test.js +127 -0
- package/core/dist/runtime-v2/internalization/deprecated-readiness.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/dreamer-output.d.ts +120 -0
- package/core/dist/runtime-v2/internalization/dreamer-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/dreamer-output.js +92 -0
- package/core/dist/runtime-v2/internalization/dreamer-output.js.map +1 -0
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts +41 -0
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js +43 -0
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts +134 -0
- package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/dreamer-runner.js +636 -0
- package/core/dist/runtime-v2/internalization/dreamer-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.d.ts +71 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.js +113 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.js.map +1 -0
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts +24 -0
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js +49 -0
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +80 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +661 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/index.d.ts +81 -0
- package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/index.js +47 -0
- package/core/dist/runtime-v2/internalization/index.js.map +1 -0
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts +57 -0
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js +99 -0
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts +78 -0
- package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-job-graph.js +153 -0
- package/core/dist/runtime-v2/internalization/internalization-job-graph.js.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +182 -0
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js +355 -0
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-route.d.ts +28 -0
- package/core/dist/runtime-v2/internalization/internalization-route.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-route.js +112 -0
- package/core/dist/runtime-v2/internalization/internalization-route.js.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts +157 -0
- package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-state-machine.js +274 -0
- package/core/dist/runtime-v2/internalization/internalization-state-machine.js.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts +92 -0
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js +152 -0
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-datasource.d.ts +18 -0
- package/core/dist/runtime-v2/internalization/lifecycle-datasource.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-datasource.js +2 -0
- package/core/dist/runtime-v2/internalization/lifecycle-datasource.js.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.d.ts +24 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.js +124 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.js.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.js +201 -0
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.d.ts +11 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.js +155 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.js.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.js +408 -0
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-types.d.ts +75 -0
- package/core/dist/runtime-v2/internalization/lifecycle-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/lifecycle-types.js +2 -0
- package/core/dist/runtime-v2/internalization/lifecycle-types.js.map +1 -0
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +140 -0
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js +124 -0
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -0
- package/core/dist/runtime-v2/internalization/philosopher-output.d.ts +56 -0
- package/core/dist/runtime-v2/internalization/philosopher-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/philosopher-output.js +69 -0
- package/core/dist/runtime-v2/internalization/philosopher-output.js.map +1 -0
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts +41 -0
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js +50 -0
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts +103 -0
- package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/philosopher-runner.js +519 -0
- package/core/dist/runtime-v2/internalization/philosopher-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/pi-artifact-store.d.ts +13 -0
- package/core/dist/runtime-v2/internalization/pi-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/pi-artifact-store.js +65 -0
- package/core/dist/runtime-v2/internalization/pi-artifact-store.js.map +1 -0
- package/core/dist/runtime-v2/internalization/pi-artifact.d.ts +23 -0
- package/core/dist/runtime-v2/internalization/pi-artifact.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/pi-artifact.js +2 -0
- package/core/dist/runtime-v2/internalization/pi-artifact.js.map +1 -0
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts +80 -0
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/pitask-metadata.js +194 -0
- package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -0
- package/core/dist/runtime-v2/internalization/queue-actionability.d.ts +37 -0
- package/core/dist/runtime-v2/internalization/queue-actionability.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/queue-actionability.js +50 -0
- package/core/dist/runtime-v2/internalization/queue-actionability.js.map +1 -0
- package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts +20 -0
- package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.js +151 -0
- package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.js.map +1 -0
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts +36 -0
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js +227 -0
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts +74 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-output.js +117 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-output.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts +24 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js +52 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts +76 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js +538 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/routing-policy.d.ts +24 -0
- package/core/dist/runtime-v2/internalization/routing-policy.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/routing-policy.js +169 -0
- package/core/dist/runtime-v2/internalization/routing-policy.js.map +1 -0
- package/core/dist/runtime-v2/internalization/routing-policy.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/routing-policy.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/routing-policy.test.js +286 -0
- package/core/dist/runtime-v2/internalization/routing-policy.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts +21 -0
- package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-code-validator.js +42 -0
- package/core/dist/runtime-v2/internalization/rule-code-validator.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-adapter.d.ts +16 -0
- package/core/dist/runtime-v2/internalization/rule-host-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-adapter.js +13 -0
- package/core/dist/runtime-v2/internalization/rule-host-adapter.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts +61 -0
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-contracts.js +14 -0
- package/core/dist/runtime-v2/internalization/rule-host-contracts.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts +36 -0
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.js +103 -0
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts +27 -0
- package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-helpers.js +27 -0
- package/core/dist/runtime-v2/internalization/rule-host-helpers.js.map +1 -0
- package/core/dist/runtime-v2/internalization/scribe-output.d.ts +74 -0
- package/core/dist/runtime-v2/internalization/scribe-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/scribe-output.js +98 -0
- package/core/dist/runtime-v2/internalization/scribe-output.js.map +1 -0
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts +24 -0
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js +60 -0
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts +77 -0
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/scribe-runner.js +518 -0
- package/core/dist/runtime-v2/internalization/scribe-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/template-generator.d.ts +21 -0
- package/core/dist/runtime-v2/internalization/template-generator.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/template-generator.js +61 -0
- package/core/dist/runtime-v2/internalization/template-generator.js.map +1 -0
- package/core/dist/runtime-v2/internalization/trainer-output.d.ts +122 -0
- package/core/dist/runtime-v2/internalization/trainer-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/trainer-output.js +223 -0
- package/core/dist/runtime-v2/internalization/trainer-output.js.map +1 -0
- package/core/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts +24 -0
- package/core/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/trainer-prompt-builder.js +57 -0
- package/core/dist/runtime-v2/internalization/trainer-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/trainer-runner.d.ts +76 -0
- package/core/dist/runtime-v2/internalization/trainer-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/trainer-runner.js +538 -0
- package/core/dist/runtime-v2/internalization/trainer-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts +42 -0
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js +413 -0
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js.map +1 -0
- package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts +17 -0
- package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization-integrity-remediation.js +269 -0
- package/core/dist/runtime-v2/internalization-integrity-remediation.js.map +1 -0
- package/core/dist/runtime-v2/internalization-queue-read-model.d.ts +93 -0
- package/core/dist/runtime-v2/internalization-queue-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization-queue-read-model.js +217 -0
- package/core/dist/runtime-v2/internalization-queue-read-model.js.map +1 -0
- package/core/dist/runtime-v2/l1-hard-cap.d.ts +21 -0
- package/core/dist/runtime-v2/l1-hard-cap.d.ts.map +1 -0
- package/core/dist/runtime-v2/l1-hard-cap.js +51 -0
- package/core/dist/runtime-v2/l1-hard-cap.js.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts +2 -0
- package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js +49 -0
- package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts +2 -0
- package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.js +144 -0
- package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.js.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js +67 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts +2 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.js +84 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.js.map +1 -0
- package/core/dist/runtime-v2/observer/agent-scheduler.d.ts +40 -0
- package/core/dist/runtime-v2/observer/agent-scheduler.d.ts.map +1 -0
- package/core/dist/runtime-v2/observer/agent-scheduler.js +30 -0
- package/core/dist/runtime-v2/observer/agent-scheduler.js.map +1 -0
- package/core/dist/runtime-v2/observer/correction-observer.d.ts +59 -0
- package/core/dist/runtime-v2/observer/correction-observer.d.ts.map +1 -0
- package/core/dist/runtime-v2/observer/correction-observer.js +178 -0
- package/core/dist/runtime-v2/observer/correction-observer.js.map +1 -0
- package/core/dist/runtime-v2/observer/empathy-observer.d.ts +35 -0
- package/core/dist/runtime-v2/observer/empathy-observer.d.ts.map +1 -0
- package/core/dist/runtime-v2/observer/empathy-observer.js +98 -0
- package/core/dist/runtime-v2/observer/empathy-observer.js.map +1 -0
- package/core/dist/runtime-v2/operator-health-read-model.d.ts +45 -0
- package/core/dist/runtime-v2/operator-health-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/operator-health-read-model.js +189 -0
- package/core/dist/runtime-v2/operator-health-read-model.js.map +1 -0
- package/core/dist/runtime-v2/pain-chain-read-model.d.ts +40 -0
- package/core/dist/runtime-v2/pain-chain-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-chain-read-model.js +293 -0
- package/core/dist/runtime-v2/pain-chain-read-model.js.map +1 -0
- package/core/dist/runtime-v2/pain-flood-simulation.d.ts +62 -0
- package/core/dist/runtime-v2/pain-flood-simulation.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-flood-simulation.js +152 -0
- package/core/dist/runtime-v2/pain-flood-simulation.js.map +1 -0
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts +72 -0
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-signal-bridge.js +340 -0
- package/core/dist/runtime-v2/pain-signal-bridge.js.map +1 -0
- package/core/dist/runtime-v2/pain-signal-observability.d.ts +19 -0
- package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-signal-observability.js +161 -0
- package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -0
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts +82 -0
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js +279 -0
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -0
- package/core/dist/runtime-v2/pain-to-principle-service.d.ts +53 -0
- package/core/dist/runtime-v2/pain-to-principle-service.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-to-principle-service.js +114 -0
- package/core/dist/runtime-v2/pain-to-principle-service.js.map +1 -0
- package/core/dist/runtime-v2/proven-channel-baseline.d.ts +56 -0
- package/core/dist/runtime-v2/proven-channel-baseline.d.ts.map +1 -0
- package/core/dist/runtime-v2/proven-channel-baseline.js +480 -0
- package/core/dist/runtime-v2/proven-channel-baseline.js.map +1 -0
- package/core/dist/runtime-v2/pruning-mask.d.ts +27 -0
- package/core/dist/runtime-v2/pruning-mask.d.ts.map +1 -0
- package/core/dist/runtime-v2/pruning-mask.js +59 -0
- package/core/dist/runtime-v2/pruning-mask.js.map +1 -0
- package/core/dist/runtime-v2/pruning-read-model.d.ts +76 -0
- package/core/dist/runtime-v2/pruning-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/pruning-read-model.js +266 -0
- package/core/dist/runtime-v2/pruning-read-model.js.map +1 -0
- package/core/dist/runtime-v2/pruning-review-log.d.ts +41 -0
- package/core/dist/runtime-v2/pruning-review-log.d.ts.map +1 -0
- package/core/dist/runtime-v2/pruning-review-log.js +106 -0
- package/core/dist/runtime-v2/pruning-review-log.js.map +1 -0
- package/core/dist/runtime-v2/recovery-sweep-service.d.ts +14 -0
- package/core/dist/runtime-v2/recovery-sweep-service.d.ts.map +1 -0
- package/core/dist/runtime-v2/recovery-sweep-service.js +26 -0
- package/core/dist/runtime-v2/recovery-sweep-service.js.map +1 -0
- package/core/dist/runtime-v2/remediation-contract.d.ts +46 -0
- package/core/dist/runtime-v2/remediation-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/remediation-contract.js +29 -0
- package/core/dist/runtime-v2/remediation-contract.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/default-validator.test.js +526 -0
- package/core/dist/runtime-v2/runner/__tests__/default-validator.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnose.test.js +81 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnose.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js +378 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js +642 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js +286 -0
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js +320 -0
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js +261 -0
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js +405 -0
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js +347 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js +186 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js +355 -0
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js +488 -0
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js +171 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.js +182 -0
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js +276 -0
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js +462 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js +160 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js +272 -0
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts +2 -0
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.js +67 -0
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.js.map +1 -0
- package/core/dist/runtime-v2/runner/default-validator.d.ts +10 -0
- package/core/dist/runtime-v2/runner/default-validator.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/default-validator.js +168 -0
- package/core/dist/runtime-v2/runner/default-validator.js.map +1 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.d.ts +37 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.js +19 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.js.map +1 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner.d.ts +87 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner.js +417 -0
- package/core/dist/runtime-v2/runner/diagnostician-runner.js.map +1 -0
- package/core/dist/runtime-v2/runner/diagnostician-validator.d.ts +56 -0
- package/core/dist/runtime-v2/runner/diagnostician-validator.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/diagnostician-validator.js +11 -0
- package/core/dist/runtime-v2/runner/diagnostician-validator.js.map +1 -0
- package/core/dist/runtime-v2/runner/runner-phase.d.ts +21 -0
- package/core/dist/runtime-v2/runner/runner-phase.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/runner-phase.js +22 -0
- package/core/dist/runtime-v2/runner/runner-phase.js.map +1 -0
- package/core/dist/runtime-v2/runner/runner-result.d.ts +20 -0
- package/core/dist/runtime-v2/runner/runner-result.d.ts.map +1 -0
- package/core/dist/runtime-v2/runner/runner-result.js +2 -0
- package/core/dist/runtime-v2/runner/runner-result.js.map +1 -0
- package/core/dist/runtime-v2/runtime-protocol.d.ts +165 -0
- package/core/dist/runtime-v2/runtime-protocol.d.ts.map +1 -0
- package/core/dist/runtime-v2/runtime-protocol.js +130 -0
- package/core/dist/runtime-v2/runtime-protocol.js.map +1 -0
- package/core/dist/runtime-v2/runtime-selector.d.ts +77 -0
- package/core/dist/runtime-v2/runtime-selector.d.ts.map +1 -0
- package/core/dist/runtime-v2/runtime-selector.js +23 -0
- package/core/dist/runtime-v2/runtime-selector.js.map +1 -0
- package/core/dist/runtime-v2/runtime-state-handle.d.ts +10 -0
- package/core/dist/runtime-v2/runtime-state-handle.d.ts.map +1 -0
- package/core/dist/runtime-v2/runtime-state-handle.js +30 -0
- package/core/dist/runtime-v2/runtime-state-handle.js.map +1 -0
- package/core/dist/runtime-v2/schema-conformance-read-model.d.ts +24 -0
- package/core/dist/runtime-v2/schema-conformance-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/schema-conformance-read-model.js +178 -0
- package/core/dist/runtime-v2/schema-conformance-read-model.js.map +1 -0
- package/core/dist/runtime-v2/schema-version.d.ts +20 -0
- package/core/dist/runtime-v2/schema-version.d.ts.map +1 -0
- package/core/dist/runtime-v2/schema-version.js +20 -0
- package/core/dist/runtime-v2/schema-version.js.map +1 -0
- package/core/dist/runtime-v2/store/artifact/artifact-store.d.ts +28 -0
- package/core/dist/runtime-v2/store/artifact/artifact-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/artifact/artifact-store.js +2 -0
- package/core/dist/runtime-v2/store/artifact/artifact-store.js.map +1 -0
- package/core/dist/runtime-v2/store/artifact/index.d.ts +4 -0
- package/core/dist/runtime-v2/store/artifact/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/artifact/index.js +3 -0
- package/core/dist/runtime-v2/store/artifact/index.js.map +1 -0
- package/core/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts +14 -0
- package/core/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/artifact/memory-artifact-store.js +25 -0
- package/core/dist/runtime-v2/store/artifact/memory-artifact-store.js.map +1 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts +12 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.js +51 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.js.map +1 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts +13 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js +98 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js +34 -0
- package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts +42 -0
- package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/candidate/candidate-store.js +2 -0
- package/core/dist/runtime-v2/store/candidate/candidate-store.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/index.d.ts +4 -0
- package/core/dist/runtime-v2/store/candidate/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/candidate/index.js +3 -0
- package/core/dist/runtime-v2/store/candidate/index.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts +22 -0
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js +36 -0
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts +4 -0
- package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js +14 -0
- package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts +13 -0
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js +61 -0
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +1 -0
- package/core/dist/runtime-v2/store/commit/commit-store.d.ts +19 -0
- package/core/dist/runtime-v2/store/commit/commit-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/commit/commit-store.js +2 -0
- package/core/dist/runtime-v2/store/commit/commit-store.js.map +1 -0
- package/core/dist/runtime-v2/store/commit/diagnostician-committer.d.ts +47 -0
- package/core/dist/runtime-v2/store/commit/diagnostician-committer.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/commit/diagnostician-committer.js +140 -0
- package/core/dist/runtime-v2/store/commit/diagnostician-committer.js.map +1 -0
- package/core/dist/runtime-v2/store/commit/index.d.ts +7 -0
- package/core/dist/runtime-v2/store/commit/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/commit/index.js +4 -0
- package/core/dist/runtime-v2/store/commit/index.js.map +1 -0
- package/core/dist/runtime-v2/store/commit/memory-commit-store.d.ts +16 -0
- package/core/dist/runtime-v2/store/commit/memory-commit-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/commit/memory-commit-store.js +18 -0
- package/core/dist/runtime-v2/store/commit/memory-commit-store.js.map +1 -0
- package/core/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts +11 -0
- package/core/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/commit/sqlite-commit-store.js +25 -0
- package/core/dist/runtime-v2/store/commit/sqlite-commit-store.js.map +1 -0
- package/core/dist/runtime-v2/store/concurrent-lease.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/concurrent-lease.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/concurrent-lease.test.js +129 -0
- package/core/dist/runtime-v2/store/concurrent-lease.test.js.map +1 -0
- package/core/dist/runtime-v2/store/context/context-assembler.d.ts +19 -0
- package/core/dist/runtime-v2/store/context/context-assembler.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/context/context-assembler.js +2 -0
- package/core/dist/runtime-v2/store/context/context-assembler.js.map +1 -0
- package/core/dist/runtime-v2/store/context/index.d.ts +4 -0
- package/core/dist/runtime-v2/store/context/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/context/index.js +3 -0
- package/core/dist/runtime-v2/store/context/index.js.map +1 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.d.ts +13 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.js +72 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.js.map +1 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.js +113 -0
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.js.map +1 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts +28 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js +277 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js +1181 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js.map +1 -0
- package/core/dist/runtime-v2/store/diagnostician-committer.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/diagnostician-committer.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/diagnostician-committer.test.js +326 -0
- package/core/dist/runtime-v2/store/diagnostician-committer.test.js.map +1 -0
- package/core/dist/runtime-v2/store/event-emitter.d.ts +18 -0
- package/core/dist/runtime-v2/store/event-emitter.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/event-emitter.js +78 -0
- package/core/dist/runtime-v2/store/event-emitter.js.map +1 -0
- package/core/dist/runtime-v2/store/history/history-query.d.ts +57 -0
- package/core/dist/runtime-v2/store/history/history-query.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/history/history-query.js +7 -0
- package/core/dist/runtime-v2/store/history/history-query.js.map +1 -0
- package/core/dist/runtime-v2/store/history/index.d.ts +5 -0
- package/core/dist/runtime-v2/store/history/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/history/index.js +4 -0
- package/core/dist/runtime-v2/store/history/index.js.map +1 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.d.ts +20 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.js +40 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.js.map +1 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.test.js +128 -0
- package/core/dist/runtime-v2/store/history/resilient-history-query.test.js.map +1 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.d.ts +24 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.js +166 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.js.map +1 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.test.js +536 -0
- package/core/dist/runtime-v2/store/history/sqlite-history-query.test.js.map +1 -0
- package/core/dist/runtime-v2/store/idempotent-transitions.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/idempotent-transitions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/idempotent-transitions.test.js +168 -0
- package/core/dist/runtime-v2/store/idempotent-transitions.test.js.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/index.d.ts +7 -0
- package/core/dist/runtime-v2/store/lifecycle/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/index.js +4 -0
- package/core/dist/runtime-v2/store/lifecycle/index.js.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.d.ts +91 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.js +154 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.js.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.js +243 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.js.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts +82 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.js +145 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.js.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js +318 -0
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.d.ts +105 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.js +48 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.js.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.js +86 -0
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.js.map +1 -0
- package/core/dist/runtime-v2/store/run/index.d.ts +4 -0
- package/core/dist/runtime-v2/store/run/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/run/index.js +3 -0
- package/core/dist/runtime-v2/store/run/index.js.map +1 -0
- package/core/dist/runtime-v2/store/run/memory-run-store.d.ts +15 -0
- package/core/dist/runtime-v2/store/run/memory-run-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/run/memory-run-store.js +33 -0
- package/core/dist/runtime-v2/store/run/memory-run-store.js.map +1 -0
- package/core/dist/runtime-v2/store/run/run-store.d.ts +43 -0
- package/core/dist/runtime-v2/store/run/run-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/run/run-store.js +2 -0
- package/core/dist/runtime-v2/store/run/run-store.js.map +1 -0
- package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts +14 -0
- package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/run/sqlite-run-store.js +108 -0
- package/core/dist/runtime-v2/store/run/sqlite-run-store.js.map +1 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.d.ts +116 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.js +187 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.js.map +1 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.js +321 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.js.map +1 -0
- package/core/dist/runtime-v2/store/schema-conformance.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/schema-conformance.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/schema-conformance.test.js +607 -0
- package/core/dist/runtime-v2/store/schema-conformance.test.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection-close.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/sqlite-connection-close.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection-close.test.js +57 -0
- package/core/dist/runtime-v2/store/sqlite-connection-close.test.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js +261 -0
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts +39 -0
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js +364 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-run-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/sqlite-run-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-run-store.test.js +152 -0
- package/core/dist/runtime-v2/store/sqlite-run-store.test.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-task-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/sqlite-task-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-task-store.test.js +166 -0
- package/core/dist/runtime-v2/store/sqlite-task-store.test.js.map +1 -0
- package/core/dist/runtime-v2/store/task/index.d.ts +4 -0
- package/core/dist/runtime-v2/store/task/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/task/index.js +3 -0
- package/core/dist/runtime-v2/store/task/index.js.map +1 -0
- package/core/dist/runtime-v2/store/task/memory-task-store.d.ts +15 -0
- package/core/dist/runtime-v2/store/task/memory-task-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/task/memory-task-store.js +43 -0
- package/core/dist/runtime-v2/store/task/memory-task-store.js.map +1 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts +14 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js +144 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -0
- package/core/dist/runtime-v2/store/task/task-store.d.ts +48 -0
- package/core/dist/runtime-v2/store/task/task-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/task/task-store.js +2 -0
- package/core/dist/runtime-v2/store/task/task-store.js.map +1 -0
- package/core/dist/runtime-v2/store/task-migration.d.ts +89 -0
- package/core/dist/runtime-v2/store/task-migration.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/task-migration.js +79 -0
- package/core/dist/runtime-v2/store/task-migration.js.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/index.d.ts +5 -0
- package/core/dist/runtime-v2/store/trajectory/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/index.js +3 -0
- package/core/dist/runtime-v2/store/trajectory/index.js.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts +40 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.js +18 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.js.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.js +320 -0
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.js.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts +23 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js +140 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts +27 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js +183 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js +328 -0
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts +30 -0
- package/core/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/trajectory/trajectory-locator.js +2 -0
- package/core/dist/runtime-v2/store/trajectory/trajectory-locator.js.map +1 -0
- package/core/dist/runtime-v2/store/workspace-isolation.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/workspace-isolation.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/workspace-isolation.test.js +139 -0
- package/core/dist/runtime-v2/store/workspace-isolation.test.js.map +1 -0
- package/core/dist/runtime-v2/story-a-demo.d.ts +67 -0
- package/core/dist/runtime-v2/story-a-demo.d.ts.map +1 -0
- package/core/dist/runtime-v2/story-a-demo.js +188 -0
- package/core/dist/runtime-v2/story-a-demo.js.map +1 -0
- package/core/dist/runtime-v2/synthetic-baseline.d.ts +28 -0
- package/core/dist/runtime-v2/synthetic-baseline.d.ts.map +1 -0
- package/core/dist/runtime-v2/synthetic-baseline.js +116 -0
- package/core/dist/runtime-v2/synthetic-baseline.js.map +1 -0
- package/core/dist/runtime-v2/task-status.d.ts +99 -0
- package/core/dist/runtime-v2/task-status.d.ts.map +1 -0
- package/core/dist/runtime-v2/task-status.js +88 -0
- package/core/dist/runtime-v2/task-status.js.map +1 -0
- package/core/dist/runtime-v2/trace-refiner-agent.d.ts +71 -0
- package/core/dist/runtime-v2/trace-refiner-agent.d.ts.map +1 -0
- package/core/dist/runtime-v2/trace-refiner-agent.js +239 -0
- package/core/dist/runtime-v2/trace-refiner-agent.js.map +1 -0
- package/core/dist/runtime-v2/trace-refiner.d.ts +47 -0
- package/core/dist/runtime-v2/trace-refiner.d.ts.map +1 -0
- package/core/dist/runtime-v2/trace-refiner.js +261 -0
- package/core/dist/runtime-v2/trace-refiner.js.map +1 -0
- package/core/dist/runtime-v2/types/artifact-lineage.d.ts +19 -0
- package/core/dist/runtime-v2/types/artifact-lineage.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/artifact-lineage.js +6 -0
- package/core/dist/runtime-v2/types/artifact-lineage.js.map +1 -0
- package/core/dist/runtime-v2/types/event-payload.d.ts +232 -0
- package/core/dist/runtime-v2/types/event-payload.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/event-payload.js +149 -0
- package/core/dist/runtime-v2/types/event-payload.js.map +1 -0
- package/core/dist/runtime-v2/types/event-types.d.ts +843 -0
- package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/event-types.js +486 -0
- package/core/dist/runtime-v2/types/event-types.js.map +1 -0
- package/core/dist/runtime-v2/types/hygiene-types.d.ts +40 -0
- package/core/dist/runtime-v2/types/hygiene-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/hygiene-types.js +30 -0
- package/core/dist/runtime-v2/types/hygiene-types.js.map +1 -0
- package/core/dist/runtime-v2/types/index.d.ts +32 -0
- package/core/dist/runtime-v2/types/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/index.js +17 -0
- package/core/dist/runtime-v2/types/index.js.map +1 -0
- package/core/dist/runtime-v2/types/pain-signal.d.ts +63 -0
- package/core/dist/runtime-v2/types/pain-signal.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/pain-signal.js +118 -0
- package/core/dist/runtime-v2/types/pain-signal.js.map +1 -0
- package/core/dist/runtime-v2/types/pd-task-types.d.ts +139 -0
- package/core/dist/runtime-v2/types/pd-task-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/pd-task-types.js +99 -0
- package/core/dist/runtime-v2/types/pd-task-types.js.map +1 -0
- package/core/dist/runtime-v2/types/principle-dependency.d.ts +15 -0
- package/core/dist/runtime-v2/types/principle-dependency.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/principle-dependency.js +8 -0
- package/core/dist/runtime-v2/types/principle-dependency.js.map +1 -0
- package/core/dist/runtime-v2/types/principle-enums.d.ts +19 -0
- package/core/dist/runtime-v2/types/principle-enums.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/principle-enums.js +59 -0
- package/core/dist/runtime-v2/types/principle-enums.js.map +1 -0
- package/core/dist/runtime-v2/types/principle-lifecycle-event.d.ts +28 -0
- package/core/dist/runtime-v2/types/principle-lifecycle-event.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/principle-lifecycle-event.js +24 -0
- package/core/dist/runtime-v2/types/principle-lifecycle-event.js.map +1 -0
- package/core/dist/runtime-v2/types/principle-schema.d.ts +136 -0
- package/core/dist/runtime-v2/types/principle-schema.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/principle-schema.js +71 -0
- package/core/dist/runtime-v2/types/principle-schema.js.map +1 -0
- package/core/dist/runtime-v2/types/principle-tree-store.d.ts +89 -0
- package/core/dist/runtime-v2/types/principle-tree-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/principle-tree-store.js +11 -0
- package/core/dist/runtime-v2/types/principle-tree-store.js.map +1 -0
- package/core/dist/runtime-v2/types/principle-value-metrics.d.ts +27 -0
- package/core/dist/runtime-v2/types/principle-value-metrics.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/principle-value-metrics.js +14 -0
- package/core/dist/runtime-v2/types/principle-value-metrics.js.map +1 -0
- package/core/dist/runtime-v2/types/queue-types.d.ts +51 -0
- package/core/dist/runtime-v2/types/queue-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/queue-types.js +44 -0
- package/core/dist/runtime-v2/types/queue-types.js.map +1 -0
- package/core/dist/runtime-v2/types/replay-types.d.ts +40 -0
- package/core/dist/runtime-v2/types/replay-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/replay-types.js +2 -0
- package/core/dist/runtime-v2/types/replay-types.js.map +1 -0
- package/core/dist/runtime-v2/types/runtime-summary-types.d.ts +93 -0
- package/core/dist/runtime-v2/types/runtime-summary-types.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/runtime-summary-types.js +35 -0
- package/core/dist/runtime-v2/types/runtime-summary-types.js.map +1 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.d.ts +35 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.js +259 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.js.map +1 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.test.d.ts +2 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.test.js +111 -0
- package/core/dist/runtime-v2/utils/cli-process-runner.test.js.map +1 -0
- package/core/dist/storage-adapter.d.ts +59 -0
- package/core/dist/storage-adapter.d.ts.map +1 -0
- package/core/dist/storage-adapter.js +2 -0
- package/core/dist/storage-adapter.js.map +1 -0
- package/core/dist/telemetry-event.d.ts +102 -0
- package/core/dist/telemetry-event.d.ts.map +1 -0
- package/core/dist/telemetry-event.js +186 -0
- package/core/dist/telemetry-event.js.map +1 -0
- package/core/dist/trajectory-store.d.ts +45 -0
- package/core/dist/trajectory-store.d.ts.map +1 -0
- package/core/dist/trajectory-store.js +139 -0
- package/core/dist/trajectory-store.js.map +1 -0
- package/core/dist/types/workspace-resolver.d.ts +25 -0
- package/core/dist/types/workspace-resolver.d.ts.map +1 -0
- package/core/dist/types/workspace-resolver.js +10 -0
- package/core/dist/types/workspace-resolver.js.map +1 -0
- package/core/dist/types.d.ts +56 -0
- package/core/dist/types.d.ts.map +1 -0
- package/core/dist/types.js +16 -0
- package/core/dist/types.js.map +1 -0
- package/core/dist/workflow-funnel-loader.d.ts +143 -0
- package/core/dist/workflow-funnel-loader.d.ts.map +1 -0
- package/core/dist/workflow-funnel-loader.js +174 -0
- package/core/dist/workflow-funnel-loader.js.map +1 -0
- package/core/package.json +100 -0
- package/dist/i18n.d.ts +6 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +176 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +203 -122
- package/dist/index.js.map +1 -1
- package/dist/installer.d.ts +21 -6
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +846 -178
- package/dist/installer.js.map +1 -1
- package/dist/mvp-config.d.ts +81 -0
- package/dist/mvp-config.d.ts.map +1 -0
- package/dist/mvp-config.js +265 -0
- package/dist/mvp-config.js.map +1 -0
- package/dist/prompts.d.ts +8 -11
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +52 -80
- package/dist/prompts.js.map +1 -1
- package/dist/uninstaller.d.ts +6 -4
- package/dist/uninstaller.d.ts.map +1 -1
- package/dist/uninstaller.js +238 -51
- package/dist/uninstaller.js.map +1 -1
- package/dist/updater.d.ts +45 -0
- package/dist/updater.d.ts.map +1 -0
- package/dist/updater.js +333 -0
- package/dist/updater.js.map +1 -0
- package/dist/utils/env.d.ts +8 -0
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/env.js +79 -3
- package/dist/utils/env.js.map +1 -1
- package/dist/utils/logger.d.ts +1 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +16 -8
- package/dist/utils/logger.js.map +1 -1
- package/package.json +24 -9
- package/pd-cli/dist/commands/artifact.d.ts +14 -0
- package/pd-cli/dist/commands/artifact.d.ts.map +1 -0
- package/pd-cli/dist/commands/artifact.js +67 -0
- package/pd-cli/dist/commands/artifact.js.map +1 -0
- package/pd-cli/dist/commands/candidate.d.ts +83 -0
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -0
- package/pd-cli/dist/commands/candidate.js +891 -0
- package/pd-cli/dist/commands/candidate.js.map +1 -0
- package/pd-cli/dist/commands/central-sync.d.ts +10 -0
- package/pd-cli/dist/commands/central-sync.d.ts.map +1 -0
- package/pd-cli/dist/commands/central-sync.js +32 -0
- package/pd-cli/dist/commands/central-sync.js.map +1 -0
- package/pd-cli/dist/commands/console.d.ts +9 -0
- package/pd-cli/dist/commands/console.d.ts.map +1 -0
- package/pd-cli/dist/commands/console.js +114 -0
- package/pd-cli/dist/commands/console.js.map +1 -0
- package/pd-cli/dist/commands/context.d.ts +7 -0
- package/pd-cli/dist/commands/context.d.ts.map +1 -0
- package/pd-cli/dist/commands/context.js +55 -0
- package/pd-cli/dist/commands/context.js.map +1 -0
- package/pd-cli/dist/commands/demo-story-a.d.ts +12 -0
- package/pd-cli/dist/commands/demo-story-a.d.ts.map +1 -0
- package/pd-cli/dist/commands/demo-story-a.js +175 -0
- package/pd-cli/dist/commands/demo-story-a.js.map +1 -0
- package/pd-cli/dist/commands/diagnose.d.ts +35 -0
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -0
- package/pd-cli/dist/commands/diagnose.js +390 -0
- package/pd-cli/dist/commands/diagnose.js.map +1 -0
- package/pd-cli/dist/commands/evolution-tasks-list.d.ts +15 -0
- package/pd-cli/dist/commands/evolution-tasks-list.d.ts.map +1 -0
- package/pd-cli/dist/commands/evolution-tasks-list.js +34 -0
- package/pd-cli/dist/commands/evolution-tasks-list.js.map +1 -0
- package/pd-cli/dist/commands/evolution-tasks-show.d.ts +14 -0
- package/pd-cli/dist/commands/evolution-tasks-show.d.ts.map +1 -0
- package/pd-cli/dist/commands/evolution-tasks-show.js +52 -0
- package/pd-cli/dist/commands/evolution-tasks-show.js.map +1 -0
- package/pd-cli/dist/commands/flow.d.ts +7 -0
- package/pd-cli/dist/commands/flow.d.ts.map +1 -0
- package/pd-cli/dist/commands/flow.js +57 -0
- package/pd-cli/dist/commands/flow.js.map +1 -0
- package/pd-cli/dist/commands/health.d.ts +16 -0
- package/pd-cli/dist/commands/health.d.ts.map +1 -0
- package/pd-cli/dist/commands/health.js +150 -0
- package/pd-cli/dist/commands/health.js.map +1 -0
- package/pd-cli/dist/commands/history.d.ts +11 -0
- package/pd-cli/dist/commands/history.d.ts.map +1 -0
- package/pd-cli/dist/commands/history.js +50 -0
- package/pd-cli/dist/commands/history.js.map +1 -0
- package/pd-cli/dist/commands/legacy-cleanup.d.ts +27 -0
- package/pd-cli/dist/commands/legacy-cleanup.d.ts.map +1 -0
- package/pd-cli/dist/commands/legacy-cleanup.js +171 -0
- package/pd-cli/dist/commands/legacy-cleanup.js.map +1 -0
- package/pd-cli/dist/commands/legacy-import.d.ts +7 -0
- package/pd-cli/dist/commands/legacy-import.d.ts.map +1 -0
- package/pd-cli/dist/commands/legacy-import.js +86 -0
- package/pd-cli/dist/commands/legacy-import.js.map +1 -0
- package/pd-cli/dist/commands/pain-record.d.ts +10 -0
- package/pd-cli/dist/commands/pain-record.d.ts.map +1 -0
- package/pd-cli/dist/commands/pain-record.js +162 -0
- package/pd-cli/dist/commands/pain-record.js.map +1 -0
- package/pd-cli/dist/commands/proven-channel-baseline.d.ts +12 -0
- package/pd-cli/dist/commands/proven-channel-baseline.d.ts.map +1 -0
- package/pd-cli/dist/commands/proven-channel-baseline.js +97 -0
- package/pd-cli/dist/commands/proven-channel-baseline.js.map +1 -0
- package/pd-cli/dist/commands/remediation-output.d.ts +40 -0
- package/pd-cli/dist/commands/remediation-output.d.ts.map +1 -0
- package/pd-cli/dist/commands/remediation-output.js +23 -0
- package/pd-cli/dist/commands/remediation-output.js.map +1 -0
- package/pd-cli/dist/commands/run.d.ts +10 -0
- package/pd-cli/dist/commands/run.d.ts.map +1 -0
- package/pd-cli/dist/commands/run.js +68 -0
- package/pd-cli/dist/commands/run.js.map +1 -0
- package/pd-cli/dist/commands/runtime-activation.d.ts +11 -0
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-activation.js +150 -0
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -0
- package/pd-cli/dist/commands/runtime-canary.d.ts +30 -0
- package/pd-cli/dist/commands/runtime-canary.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-canary.js +343 -0
- package/pd-cli/dist/commands/runtime-canary.js.map +1 -0
- package/pd-cli/dist/commands/runtime-diagnostics-export.d.ts +20 -0
- package/pd-cli/dist/commands/runtime-diagnostics-export.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-diagnostics-export.js +177 -0
- package/pd-cli/dist/commands/runtime-diagnostics-export.js.map +1 -0
- package/pd-cli/dist/commands/runtime-features.d.ts +26 -0
- package/pd-cli/dist/commands/runtime-features.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-features.js +70 -0
- package/pd-cli/dist/commands/runtime-features.js.map +1 -0
- package/pd-cli/dist/commands/runtime-gfi-snapshot.d.ts +7 -0
- package/pd-cli/dist/commands/runtime-gfi-snapshot.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-gfi-snapshot.js +101 -0
- package/pd-cli/dist/commands/runtime-gfi-snapshot.js.map +1 -0
- package/pd-cli/dist/commands/runtime-health-snapshot.d.ts +7 -0
- package/pd-cli/dist/commands/runtime-health-snapshot.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-health-snapshot.js +93 -0
- package/pd-cli/dist/commands/runtime-health-snapshot.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts +9 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +393 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.d.ts +9 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js +54 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity.d.ts +7 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity.js +53 -0
- package/pd-cli/dist/commands/runtime-internalization-integrity.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-queue.d.ts +7 -0
- package/pd-cli/dist/commands/runtime-internalization-queue.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-queue.js +85 -0
- package/pd-cli/dist/commands/runtime-internalization-queue.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts +12 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +546 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts +8 -0
- package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js +72 -0
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -0
- package/pd-cli/dist/commands/runtime-pain-flood-simulation.d.ts +10 -0
- package/pd-cli/dist/commands/runtime-pain-flood-simulation.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-pain-flood-simulation.js +104 -0
- package/pd-cli/dist/commands/runtime-pain-flood-simulation.js.map +1 -0
- package/pd-cli/dist/commands/runtime-pruning.d.ts +45 -0
- package/pd-cli/dist/commands/runtime-pruning.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-pruning.js +355 -0
- package/pd-cli/dist/commands/runtime-pruning.js.map +1 -0
- package/pd-cli/dist/commands/runtime-recovery.d.ts +9 -0
- package/pd-cli/dist/commands/runtime-recovery.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-recovery.js +94 -0
- package/pd-cli/dist/commands/runtime-recovery.js.map +1 -0
- package/pd-cli/dist/commands/runtime-synthetic-baseline.d.ts +7 -0
- package/pd-cli/dist/commands/runtime-synthetic-baseline.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-synthetic-baseline.js +59 -0
- package/pd-cli/dist/commands/runtime-synthetic-baseline.js.map +1 -0
- package/pd-cli/dist/commands/runtime-uat.d.ts +52 -0
- package/pd-cli/dist/commands/runtime-uat.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-uat.js +274 -0
- package/pd-cli/dist/commands/runtime-uat.js.map +1 -0
- package/pd-cli/dist/commands/runtime.d.ts +20 -0
- package/pd-cli/dist/commands/runtime.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime.js +256 -0
- package/pd-cli/dist/commands/runtime.js.map +1 -0
- package/pd-cli/dist/commands/samples-list.d.ts +11 -0
- package/pd-cli/dist/commands/samples-list.d.ts.map +1 -0
- package/pd-cli/dist/commands/samples-list.js +37 -0
- package/pd-cli/dist/commands/samples-list.js.map +1 -0
- package/pd-cli/dist/commands/samples-review.d.ts +14 -0
- package/pd-cli/dist/commands/samples-review.d.ts.map +1 -0
- package/pd-cli/dist/commands/samples-review.js +22 -0
- package/pd-cli/dist/commands/samples-review.js.map +1 -0
- package/pd-cli/dist/commands/task.d.ts +14 -0
- package/pd-cli/dist/commands/task.d.ts.map +1 -0
- package/pd-cli/dist/commands/task.js +92 -0
- package/pd-cli/dist/commands/task.js.map +1 -0
- package/pd-cli/dist/commands/trace.d.ts +19 -0
- package/pd-cli/dist/commands/trace.d.ts.map +1 -0
- package/pd-cli/dist/commands/trace.js +154 -0
- package/pd-cli/dist/commands/trace.js.map +1 -0
- package/pd-cli/dist/commands/trajectory.d.ts +11 -0
- package/pd-cli/dist/commands/trajectory.d.ts.map +1 -0
- package/pd-cli/dist/commands/trajectory.js +47 -0
- package/pd-cli/dist/commands/trajectory.js.map +1 -0
- package/pd-cli/dist/index.d.ts +9 -0
- package/pd-cli/dist/index.d.ts.map +1 -0
- package/pd-cli/dist/index.js +739 -0
- package/pd-cli/dist/index.js.map +1 -0
- package/pd-cli/dist/legacy/legacy-import.d.ts +15 -0
- package/pd-cli/dist/legacy/legacy-import.d.ts.map +1 -0
- package/pd-cli/dist/legacy/legacy-import.js +141 -0
- package/pd-cli/dist/legacy/legacy-import.js.map +1 -0
- package/pd-cli/dist/legacy/session-history-import.d.ts +26 -0
- package/pd-cli/dist/legacy/session-history-import.d.ts.map +1 -0
- package/pd-cli/dist/legacy/session-history-import.js +151 -0
- package/pd-cli/dist/legacy/session-history-import.js.map +1 -0
- package/pd-cli/dist/principle-tree-ledger-adapter.d.ts +12 -0
- package/pd-cli/dist/principle-tree-ledger-adapter.d.ts.map +1 -0
- package/pd-cli/dist/principle-tree-ledger-adapter.js +12 -0
- package/pd-cli/dist/principle-tree-ledger-adapter.js.map +1 -0
- package/pd-cli/dist/resolve-workspace.d.ts +12 -0
- package/pd-cli/dist/resolve-workspace.d.ts.map +1 -0
- package/pd-cli/dist/resolve-workspace.js +20 -0
- package/pd-cli/dist/resolve-workspace.js.map +1 -0
- package/pd-cli/dist/services/demo-story-a-runner.d.ts +8 -0
- package/pd-cli/dist/services/demo-story-a-runner.d.ts.map +1 -0
- package/pd-cli/dist/services/demo-story-a-runner.js +369 -0
- package/pd-cli/dist/services/demo-story-a-runner.js.map +1 -0
- package/pd-cli/dist/services/feature-flag-loader.d.ts +6 -0
- package/pd-cli/dist/services/feature-flag-loader.d.ts.map +1 -0
- package/pd-cli/dist/services/feature-flag-loader.js +54 -0
- package/pd-cli/dist/services/feature-flag-loader.js.map +1 -0
- package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts +10 -0
- package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts.map +1 -0
- package/pd-cli/dist/services/pain-flood-simulation-runner.js +289 -0
- package/pd-cli/dist/services/pain-flood-simulation-runner.js.map +1 -0
- package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts +12 -0
- package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts.map +1 -0
- package/pd-cli/dist/services/proven-channel-baseline-runner.js +114 -0
- package/pd-cli/dist/services/proven-channel-baseline-runner.js.map +1 -0
- package/pd-cli/dist/services/synthetic-baseline-runner.d.ts +8 -0
- package/pd-cli/dist/services/synthetic-baseline-runner.d.ts.map +1 -0
- package/pd-cli/dist/services/synthetic-baseline-runner.js +251 -0
- package/pd-cli/dist/services/synthetic-baseline-runner.js.map +1 -0
- package/pd-cli/package.json +35 -0
- package/plugin/dist/commands/archive-impl.d.ts +18 -0
- package/plugin/dist/commands/archive-impl.js +105 -0
- package/plugin/dist/commands/capabilities.d.ts +3 -0
- package/plugin/dist/commands/capabilities.js +76 -0
- package/plugin/dist/commands/context.d.ts +5 -0
- package/plugin/dist/commands/context.js +293 -0
- package/plugin/dist/commands/disable-impl.d.ts +22 -0
- package/plugin/dist/commands/disable-impl.js +118 -0
- package/plugin/dist/commands/evolution-status.d.ts +4 -0
- package/plugin/dist/commands/evolution-status.js +187 -0
- package/plugin/dist/commands/export.d.ts +2 -0
- package/plugin/dist/commands/export.js +53 -0
- package/plugin/dist/commands/focus.d.ts +14 -0
- package/plugin/dist/commands/focus.js +443 -0
- package/plugin/dist/commands/pain.d.ts +6 -0
- package/plugin/dist/commands/pain.js +309 -0
- package/plugin/dist/commands/principle-rollback.d.ts +4 -0
- package/plugin/dist/commands/principle-rollback.js +26 -0
- package/plugin/dist/commands/promote-impl.d.ts +22 -0
- package/plugin/dist/commands/promote-impl.js +194 -0
- package/plugin/dist/commands/rollback-impl.d.ts +32 -0
- package/plugin/dist/commands/rollback-impl.js +180 -0
- package/plugin/dist/commands/rollback.d.ts +19 -0
- package/plugin/dist/commands/rollback.js +126 -0
- package/plugin/dist/commands/samples.d.ts +2 -0
- package/plugin/dist/commands/samples.js +58 -0
- package/plugin/dist/commands/strategy.d.ts +3 -0
- package/plugin/dist/commands/strategy.js +30 -0
- package/plugin/dist/commands/thinking-os.d.ts +2 -0
- package/plugin/dist/commands/thinking-os.js +164 -0
- package/plugin/dist/commands/workflow-debug.d.ts +6 -0
- package/plugin/dist/commands/workflow-debug.js +111 -0
- package/plugin/dist/config/defaults/runtime.d.ts +64 -0
- package/plugin/dist/config/defaults/runtime.js +81 -0
- package/plugin/dist/config/errors.d.ts +86 -0
- package/plugin/dist/config/errors.js +107 -0
- package/plugin/dist/config/index.d.ts +7 -0
- package/plugin/dist/config/index.js +7 -0
- package/plugin/dist/constants/diagnostician.d.ts +12 -0
- package/plugin/dist/constants/diagnostician.js +65 -0
- package/plugin/dist/constants/tools.d.ts +17 -0
- package/plugin/dist/constants/tools.js +53 -0
- package/plugin/dist/core/__tests__/focus-history.test.d.ts +1 -0
- package/plugin/dist/core/__tests__/focus-history.test.js +160 -0
- package/plugin/dist/core/bootstrap-rules.d.ts +50 -0
- package/plugin/dist/core/bootstrap-rules.js +187 -0
- package/plugin/dist/core/code-implementation-storage.d.ts +80 -0
- package/plugin/dist/core/code-implementation-storage.js +173 -0
- package/plugin/dist/core/config-service.d.ts +15 -0
- package/plugin/dist/core/config-service.js +26 -0
- package/plugin/dist/core/config.d.ts +111 -0
- package/plugin/dist/core/config.js +191 -0
- package/plugin/dist/core/confirm-first-gate.d.ts +59 -0
- package/plugin/dist/core/confirm-first-gate.js +215 -0
- package/plugin/dist/core/control-ui-db.d.ts +106 -0
- package/plugin/dist/core/control-ui-db.js +309 -0
- package/plugin/dist/core/correction-cue-learner.d.ts +33 -0
- package/plugin/dist/core/correction-cue-learner.js +184 -0
- package/plugin/dist/core/correction-types.d.ts +3 -0
- package/plugin/dist/core/correction-types.js +1 -0
- package/plugin/dist/core/detection-funnel.d.ts +33 -0
- package/plugin/dist/core/detection-funnel.js +104 -0
- package/plugin/dist/core/detection-service.d.ts +15 -0
- package/plugin/dist/core/detection-service.js +28 -0
- package/plugin/dist/core/dictionary-service.d.ts +15 -0
- package/plugin/dist/core/dictionary-service.js +26 -0
- package/plugin/dist/core/dictionary.d.ts +38 -0
- package/plugin/dist/core/dictionary.js +148 -0
- package/plugin/dist/core/empathy-keyword-matcher.d.ts +5 -0
- package/plugin/dist/core/empathy-keyword-matcher.js +40 -0
- package/plugin/dist/core/empathy-types.d.ts +2 -0
- package/plugin/dist/core/empathy-types.js +1 -0
- package/plugin/dist/core/event-log.d.ts +73 -0
- package/plugin/dist/core/event-log.js +613 -0
- package/plugin/dist/core/evolution-engine.d.ts +119 -0
- package/plugin/dist/core/evolution-engine.js +460 -0
- package/plugin/dist/core/evolution-hook.d.ts +54 -0
- package/plugin/dist/core/evolution-hook.js +9 -0
- package/plugin/dist/core/evolution-logger.d.ts +137 -0
- package/plugin/dist/core/evolution-logger.js +261 -0
- package/plugin/dist/core/evolution-migration.d.ts +5 -0
- package/plugin/dist/core/evolution-migration.js +65 -0
- package/plugin/dist/core/evolution-reducer.d.ts +124 -0
- package/plugin/dist/core/evolution-reducer.js +730 -0
- package/plugin/dist/core/evolution-types.d.ts +50 -0
- package/plugin/dist/core/evolution-types.js +11 -0
- package/plugin/dist/core/external-training-contract.d.ts +276 -0
- package/plugin/dist/core/external-training-contract.js +269 -0
- package/plugin/dist/core/file-storage-adapter.d.ts +43 -0
- package/plugin/dist/core/file-storage-adapter.js +158 -0
- package/plugin/dist/core/file-store.d.ts +41 -0
- package/plugin/dist/core/file-store.js +46 -0
- package/plugin/dist/core/focus-history.d.ts +50 -0
- package/plugin/dist/core/focus-history.js +574 -0
- package/plugin/dist/core/hygiene/tracker.d.ts +22 -0
- package/plugin/dist/core/hygiene/tracker.js +110 -0
- package/plugin/dist/core/init.d.ts +30 -0
- package/plugin/dist/core/init.js +259 -0
- package/plugin/dist/core/local-worker-routing.d.ts +124 -0
- package/plugin/dist/core/local-worker-routing.js +216 -0
- package/plugin/dist/core/merge-gate-audit.d.ts +21 -0
- package/plugin/dist/core/merge-gate-audit.js +241 -0
- package/plugin/dist/core/migration.d.ts +6 -0
- package/plugin/dist/core/migration.js +87 -0
- package/plugin/dist/core/model-deployment-registry.d.ts +218 -0
- package/plugin/dist/core/model-deployment-registry.js +502 -0
- package/plugin/dist/core/model-training-registry.d.ts +295 -0
- package/plugin/dist/core/model-training-registry.js +474 -0
- package/plugin/dist/core/observability.d.ts +40 -0
- package/plugin/dist/core/observability.js +164 -0
- package/plugin/dist/core/pain-context-extractor.d.ts +31 -0
- package/plugin/dist/core/pain-context-extractor.js +278 -0
- package/plugin/dist/core/pain-diagnostic-gate.d.ts +30 -0
- package/plugin/dist/core/pain-diagnostic-gate.js +96 -0
- package/plugin/dist/core/pain-lifecycle.d.ts +15 -0
- package/plugin/dist/core/pain-lifecycle.js +37 -0
- package/plugin/dist/core/pain-signal-adapter.d.ts +37 -0
- package/plugin/dist/core/pain-signal-adapter.js +1 -0
- package/plugin/dist/core/pain-signal.d.ts +6 -0
- package/plugin/dist/core/pain-signal.js +3 -0
- package/plugin/dist/core/pain.d.ts +87 -0
- package/plugin/dist/core/pain.js +223 -0
- package/plugin/dist/core/path-resolver.d.ts +60 -0
- package/plugin/dist/core/path-resolver.js +359 -0
- package/plugin/dist/core/paths.d.ts +67 -0
- package/plugin/dist/core/paths.js +83 -0
- package/plugin/dist/core/pd-task-reconciler.d.ts +89 -0
- package/plugin/dist/core/pd-task-reconciler.js +262 -0
- package/plugin/dist/core/pd-task-service.d.ts +2 -0
- package/plugin/dist/core/pd-task-service.js +32 -0
- package/plugin/dist/core/pd-task-store.d.ts +5 -0
- package/plugin/dist/core/pd-task-store.js +62 -0
- package/plugin/dist/core/pd-task-types.d.ts +8 -0
- package/plugin/dist/core/pd-task-types.js +2 -0
- package/plugin/dist/core/principle-compiler/__tests__/compiler-replay-gate.test.d.ts +1 -0
- package/plugin/dist/core/principle-compiler/__tests__/compiler-replay-gate.test.js +132 -0
- package/plugin/dist/core/principle-compiler/code-validator.d.ts +14 -0
- package/plugin/dist/core/principle-compiler/code-validator.js +83 -0
- package/plugin/dist/core/principle-compiler/compiler.d.ts +45 -0
- package/plugin/dist/core/principle-compiler/compiler.js +287 -0
- package/plugin/dist/core/principle-compiler/index.d.ts +12 -0
- package/plugin/dist/core/principle-compiler/index.js +10 -0
- package/plugin/dist/core/principle-compiler/ledger-registrar.d.ts +28 -0
- package/plugin/dist/core/principle-compiler/ledger-registrar.js +95 -0
- package/plugin/dist/core/principle-compiler/template-generator.d.ts +7 -0
- package/plugin/dist/core/principle-compiler/template-generator.js +7 -0
- package/plugin/dist/core/principle-injection.d.ts +10 -0
- package/plugin/dist/core/principle-injection.js +10 -0
- package/plugin/dist/core/principle-injector.d.ts +55 -0
- package/plugin/dist/core/principle-injector.js +17 -0
- package/plugin/dist/core/principle-internalization/filesystem-lifecycle-datasource.d.ts +15 -0
- package/plugin/dist/core/principle-internalization/filesystem-lifecycle-datasource.js +34 -0
- package/plugin/dist/core/principle-internalization/lifecycle-read-model.d.ts +17 -0
- package/plugin/dist/core/principle-internalization/lifecycle-read-model.js +21 -0
- package/plugin/dist/core/principle-internalization/lifecycle-refresh.d.ts +2 -0
- package/plugin/dist/core/principle-internalization/lifecycle-refresh.js +4 -0
- package/plugin/dist/core/principle-internalization/principle-lifecycle-service.d.ts +28 -0
- package/plugin/dist/core/principle-internalization/principle-lifecycle-service.js +89 -0
- package/plugin/dist/core/principle-training-state.d.ts +47 -0
- package/plugin/dist/core/principle-training-state.js +113 -0
- package/plugin/dist/core/principle-tree-ledger-adapter.d.ts +32 -0
- package/plugin/dist/core/principle-tree-ledger-adapter.js +125 -0
- package/plugin/dist/core/principle-tree-ledger.d.ts +86 -0
- package/plugin/dist/core/principle-tree-ledger.js +534 -0
- package/plugin/dist/core/principle-tree-migration.d.ts +35 -0
- package/plugin/dist/core/principle-tree-migration.js +137 -0
- package/plugin/dist/core/profile.d.ts +62 -0
- package/plugin/dist/core/profile.js +211 -0
- package/plugin/dist/core/promotion-gate.d.ts +243 -0
- package/plugin/dist/core/promotion-gate.js +554 -0
- package/plugin/dist/core/reflection/reflection-context.d.ts +31 -0
- package/plugin/dist/core/reflection/reflection-context.js +91 -0
- package/plugin/dist/core/replay-engine.d.ts +12 -0
- package/plugin/dist/core/replay-engine.js +82 -0
- package/plugin/dist/core/risk-calculator.d.ts +22 -0
- package/plugin/dist/core/risk-calculator.js +88 -0
- package/plugin/dist/core/rule-host-helpers.d.ts +8 -0
- package/plugin/dist/core/rule-host-helpers.js +7 -0
- package/plugin/dist/core/rule-host-types.d.ts +7 -0
- package/plugin/dist/core/rule-host-types.js +7 -0
- package/plugin/dist/core/rule-host.d.ts +56 -0
- package/plugin/dist/core/rule-host.js +152 -0
- package/plugin/dist/core/rule-implementation-runtime.d.ts +5 -0
- package/plugin/dist/core/rule-implementation-runtime.js +24 -0
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +27 -0
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.js +181 -0
- package/plugin/dist/core/schema/db-types.d.ts +11 -0
- package/plugin/dist/core/schema/db-types.js +5 -0
- package/plugin/dist/core/schema/index.d.ts +17 -0
- package/plugin/dist/core/schema/index.js +15 -0
- package/plugin/dist/core/schema/migration-runner.d.ts +53 -0
- package/plugin/dist/core/schema/migration-runner.js +170 -0
- package/plugin/dist/core/schema/migrations/001-init-trajectory.d.ts +6 -0
- package/plugin/dist/core/schema/migrations/001-init-trajectory.js +193 -0
- package/plugin/dist/core/schema/migrations/002-init-central.d.ts +5 -0
- package/plugin/dist/core/schema/migrations/002-init-central.js +108 -0
- package/plugin/dist/core/schema/migrations/003-init-workflow.d.ts +5 -0
- package/plugin/dist/core/schema/migrations/003-init-workflow.js +50 -0
- package/plugin/dist/core/schema/migrations/004-add-thinking-and-gfi.d.ts +8 -0
- package/plugin/dist/core/schema/migrations/004-add-thinking-and-gfi.js +66 -0
- package/plugin/dist/core/schema/migrations/index.d.ts +16 -0
- package/plugin/dist/core/schema/migrations/index.js +27 -0
- package/plugin/dist/core/schema/schema-definitions.d.ts +46 -0
- package/plugin/dist/core/schema/schema-definitions.js +601 -0
- package/plugin/dist/core/session-tracker.d.ts +119 -0
- package/plugin/dist/core/session-tracker.js +462 -0
- package/plugin/dist/core/shadow-observation-registry.d.ts +217 -0
- package/plugin/dist/core/shadow-observation-registry.js +280 -0
- package/plugin/dist/core/storage-adapter.d.ts +58 -0
- package/plugin/dist/core/storage-adapter.js +1 -0
- package/plugin/dist/core/system-logger.d.ts +8 -0
- package/plugin/dist/core/system-logger.js +113 -0
- package/plugin/dist/core/telemetry-event.d.ts +66 -0
- package/plugin/dist/core/telemetry-event.js +86 -0
- package/plugin/dist/core/thinking-models.d.ts +69 -0
- package/plugin/dist/core/thinking-models.js +320 -0
- package/plugin/dist/core/thinking-os-parser.d.ts +35 -0
- package/plugin/dist/core/thinking-os-parser.js +123 -0
- package/plugin/dist/core/training-program.d.ts +233 -0
- package/plugin/dist/core/training-program.js +435 -0
- package/plugin/dist/core/trajectory-types.d.ts +216 -0
- package/plugin/dist/core/trajectory-types.js +8 -0
- package/plugin/dist/core/trajectory.d.ts +242 -0
- package/plugin/dist/core/trajectory.js +1450 -0
- package/plugin/dist/core/workflow-funnel-loader.d.ts +72 -0
- package/plugin/dist/core/workflow-funnel-loader.js +135 -0
- package/plugin/dist/core/workspace-context.d.ts +111 -0
- package/plugin/dist/core/workspace-context.js +247 -0
- package/plugin/dist/core/workspace-dir-service.d.ts +33 -0
- package/plugin/dist/core/workspace-dir-service.js +71 -0
- package/plugin/dist/core/workspace-dir-validation.d.ts +11 -0
- package/plugin/dist/core/workspace-dir-validation.js +37 -0
- package/plugin/dist/hooks/gate-block-helper.d.ts +44 -0
- package/plugin/dist/hooks/gate-block-helper.js +168 -0
- package/plugin/dist/hooks/gate.d.ts +16 -0
- package/plugin/dist/hooks/gate.js +424 -0
- package/plugin/dist/hooks/lifecycle-routing.d.ts +24 -0
- package/plugin/dist/hooks/lifecycle-routing.js +110 -0
- package/plugin/dist/hooks/lifecycle.d.ts +5 -0
- package/plugin/dist/hooks/lifecycle.js +287 -0
- package/plugin/dist/hooks/llm.d.ts +13 -0
- package/plugin/dist/hooks/llm.js +353 -0
- package/plugin/dist/hooks/message-sanitize.d.ts +3 -0
- package/plugin/dist/hooks/message-sanitize.js +47 -0
- package/plugin/dist/hooks/pain.d.ts +11 -0
- package/plugin/dist/hooks/pain.js +553 -0
- package/plugin/dist/hooks/prompt.d.ts +46 -0
- package/plugin/dist/hooks/prompt.js +1108 -0
- package/plugin/dist/hooks/subagent.d.ts +9 -0
- package/plugin/dist/hooks/subagent.js +122 -0
- package/plugin/dist/hooks/trajectory-collector.d.ts +36 -0
- package/plugin/dist/hooks/trajectory-collector.js +258 -0
- package/plugin/dist/i18n/commands.d.ts +26 -0
- package/plugin/dist/i18n/commands.js +108 -0
- package/plugin/dist/index.d.ts +8 -0
- package/plugin/dist/index.js +692 -0
- package/plugin/dist/openclaw-sdk.d.ts +292 -0
- package/plugin/dist/openclaw-sdk.js +4 -0
- package/plugin/dist/service/central-database.d.ts +138 -0
- package/plugin/dist/service/central-database.js +731 -0
- package/plugin/dist/service/central-sync-service.d.ts +8 -0
- package/plugin/dist/service/central-sync-service.js +71 -0
- package/plugin/dist/service/event-log-auditor.d.ts +46 -0
- package/plugin/dist/service/event-log-auditor.js +236 -0
- package/plugin/dist/service/evolution-dedup.d.ts +27 -0
- package/plugin/dist/service/evolution-dedup.js +54 -0
- package/plugin/dist/service/evolution-queue-lock.d.ts +18 -0
- package/plugin/dist/service/evolution-queue-lock.js +36 -0
- package/plugin/dist/service/evolution-queue-migration.d.ts +128 -0
- package/plugin/dist/service/evolution-queue-migration.js +53 -0
- package/plugin/dist/service/evolution-worker.d.ts +103 -0
- package/plugin/dist/service/evolution-worker.js +760 -0
- package/plugin/dist/service/failure-classifier.d.ts +46 -0
- package/plugin/dist/service/failure-classifier.js +57 -0
- package/plugin/dist/service/internalization-trigger-adapter.d.ts +51 -0
- package/plugin/dist/service/internalization-trigger-adapter.js +184 -0
- package/plugin/dist/service/keyword-optimization-service.d.ts +44 -0
- package/plugin/dist/service/keyword-optimization-service.js +137 -0
- package/plugin/dist/service/monitoring-query-service.d.ts +21 -0
- package/plugin/dist/service/monitoring-query-service.js +45 -0
- package/plugin/dist/service/phase3-input-filter.d.ts +73 -0
- package/plugin/dist/service/phase3-input-filter.js +172 -0
- package/plugin/dist/service/queue-io.d.ts +30 -0
- package/plugin/dist/service/queue-io.js +79 -0
- package/plugin/dist/service/queue-migration.d.ts +83 -0
- package/plugin/dist/service/queue-migration.js +56 -0
- package/plugin/dist/service/runtime-summary-service.d.ts +158 -0
- package/plugin/dist/service/runtime-summary-service.js +636 -0
- package/plugin/dist/service/subagent-workflow/index.d.ts +3 -0
- package/plugin/dist/service/subagent-workflow/index.js +2 -0
- package/plugin/dist/service/subagent-workflow/subagent-error-utils.d.ts +8 -0
- package/plugin/dist/service/subagent-workflow/subagent-error-utils.js +23 -0
- package/plugin/dist/service/subagent-workflow/types.d.ts +264 -0
- package/plugin/dist/service/subagent-workflow/types.js +11 -0
- package/plugin/dist/service/subagent-workflow/workflow-store.d.ts +30 -0
- package/plugin/dist/service/subagent-workflow/workflow-store.js +209 -0
- package/plugin/dist/service/trajectory-service.d.ts +2 -0
- package/plugin/dist/service/trajectory-service.js +16 -0
- package/plugin/dist/service/workflow-watchdog.d.ts +23 -0
- package/plugin/dist/service/workflow-watchdog.js +103 -0
- package/plugin/dist/tools/critique-prompt.d.ts +1 -0
- package/plugin/dist/tools/critique-prompt.js +1 -0
- package/plugin/dist/tools/deep-reflect.d.ts +1 -0
- package/plugin/dist/tools/deep-reflect.js +1 -0
- package/plugin/dist/tools/model-index.d.ts +1 -0
- package/plugin/dist/tools/model-index.js +1 -0
- package/plugin/dist/types/event-payload.d.ts +2 -0
- package/plugin/dist/types/event-payload.js +1 -0
- package/plugin/dist/types/event-types.d.ts +2 -0
- package/plugin/dist/types/event-types.js +1 -0
- package/plugin/dist/types/hygiene-types.d.ts +2 -0
- package/plugin/dist/types/hygiene-types.js +1 -0
- package/plugin/dist/types/principle-tree-schema.d.ts +29 -0
- package/plugin/dist/types/principle-tree-schema.js +24 -0
- package/plugin/dist/types/queue.d.ts +2 -0
- package/plugin/dist/types/queue.js +1 -0
- package/plugin/dist/types/runtime-summary.d.ts +1 -0
- package/plugin/dist/types/runtime-summary.js +1 -0
- package/plugin/dist/types.d.ts +33 -0
- package/plugin/dist/types.js +16 -0
- package/plugin/dist/utils/file-lock.d.ts +68 -0
- package/plugin/dist/utils/file-lock.js +310 -0
- package/plugin/dist/utils/glob-match.d.ts +28 -0
- package/plugin/dist/utils/glob-match.js +49 -0
- package/plugin/dist/utils/hashing.d.ts +9 -0
- package/plugin/dist/utils/hashing.js +25 -0
- package/plugin/dist/utils/io.d.ts +12 -0
- package/plugin/dist/utils/io.js +176 -0
- package/plugin/dist/utils/nlp.d.ts +4 -0
- package/plugin/dist/utils/nlp.js +21 -0
- package/plugin/dist/utils/node-vm-polyfill.d.ts +9 -0
- package/plugin/dist/utils/node-vm-polyfill.js +9 -0
- package/plugin/dist/utils/plugin-logger.d.ts +39 -0
- package/plugin/dist/utils/plugin-logger.js +70 -0
- package/plugin/dist/utils/retry.d.ts +210 -0
- package/plugin/dist/utils/retry.js +375 -0
- package/plugin/dist/utils/session-key.d.ts +10 -0
- package/plugin/dist/utils/session-key.js +18 -0
- package/plugin/dist/utils/shadow-fingerprint.d.ts +16 -0
- package/plugin/dist/utils/shadow-fingerprint.js +34 -0
- package/plugin/dist/utils/subagent-probe.d.ts +35 -0
- package/plugin/dist/utils/subagent-probe.js +67 -0
- package/plugin/dist/utils/workspace-resolver.d.ts +50 -0
- package/plugin/dist/utils/workspace-resolver.js +109 -0
- package/plugin/docs/COMMAND_REFERENCE.md +76 -0
- package/plugin/docs/COMMAND_REFERENCE_EN.md +79 -0
- package/plugin/openclaw.plugin.json +65 -0
- package/plugin/package.json +79 -0
- package/plugin/scripts/acceptance-test.mjs +257 -0
- package/plugin/scripts/bootstrap-rules.mjs +66 -0
- package/plugin/scripts/compile-principles.mjs +104 -0
- package/plugin/scripts/db-migrate.mjs +170 -0
- package/plugin/scripts/install-dependencies.cjs +47 -0
- package/plugin/scripts/sync-plugin.mjs +1355 -0
- package/plugin/scripts/validate-live-path.ts +480 -0
- package/plugin/scripts/verify-build.mjs +109 -0
- package/plugin/templates/langs/en/core/AGENTS.md +205 -0
- package/plugin/templates/langs/en/core/BOOT.md +60 -0
- package/plugin/templates/langs/en/core/BOOTSTRAP.md +273 -0
- package/plugin/templates/langs/en/core/HEARTBEAT.md +74 -0
- package/plugin/templates/langs/en/core/IDENTITY.md +8 -0
- package/plugin/templates/langs/en/core/PRINCIPLES.md +10 -0
- package/plugin/templates/langs/en/core/SOUL.md +46 -0
- package/plugin/templates/langs/en/core/TOOLS.md +15 -0
- package/plugin/templates/langs/en/core/USER.md +10 -0
- package/plugin/templates/langs/en/pain/00_seed_samples.md +23 -0
- package/plugin/templates/langs/en/pain_dictionary.json +22 -0
- package/plugin/templates/langs/en/principles/THINKING_OS.md +64 -0
- package/plugin/templates/langs/en/skills/admin/SKILL.md +39 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +67 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +143 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +95 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +98 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
- package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +3455 -0
- package/plugin/templates/langs/en/skills/bootstrap-tools/SKILL.md +53 -0
- package/plugin/templates/langs/en/skills/deductive-audit/SKILL.md +36 -0
- package/plugin/templates/langs/en/skills/evolution-framework-update/SKILL.md +31 -0
- package/plugin/templates/langs/en/skills/evolve-system/SKILL.md +46 -0
- package/plugin/templates/langs/en/skills/evolve-task/SKILL.md +83 -0
- package/plugin/templates/langs/en/skills/feedback/SKILL.md +51 -0
- package/plugin/templates/langs/en/skills/init-strategy/SKILL.md +54 -0
- package/plugin/templates/langs/en/skills/inject-rule/SKILL.md +19 -0
- package/plugin/templates/langs/en/skills/manage-okr/SKILL.md +96 -0
- package/plugin/templates/langs/en/skills/pd-auditor/SKILL.md +61 -0
- package/plugin/templates/langs/en/skills/pd-cli-operator/SKILL.md +67 -0
- package/plugin/templates/langs/en/skills/pd-daily/SKILL.md +199 -0
- package/plugin/templates/langs/en/skills/pd-diagnostician/SKILL.md +466 -0
- package/plugin/templates/langs/en/skills/pd-explorer/SKILL.md +65 -0
- package/plugin/templates/langs/en/skills/pd-grooming/SKILL.md +46 -0
- package/plugin/templates/langs/en/skills/pd-implementer/SKILL.md +68 -0
- package/plugin/templates/langs/en/skills/pd-mentor/SKILL.md +230 -0
- package/plugin/templates/langs/en/skills/pd-pain-signal/SKILL.md +30 -0
- package/plugin/templates/langs/en/skills/pd-planner/SKILL.md +65 -0
- package/plugin/templates/langs/en/skills/pd-runtime-v2/SKILL.md +61 -0
- package/plugin/templates/langs/en/skills/plan-script/SKILL.md +32 -0
- package/plugin/templates/langs/en/skills/profile/SKILL.md +24 -0
- package/plugin/templates/langs/en/skills/reflection/SKILL.md +40 -0
- package/plugin/templates/langs/en/skills/reflection-log/SKILL.md +37 -0
- package/plugin/templates/langs/en/skills/report/SKILL.md +13 -0
- package/plugin/templates/langs/en/skills/root-cause/SKILL.md +33 -0
- package/plugin/templates/langs/en/skills/triage/SKILL.md +29 -0
- package/plugin/templates/langs/en/skills/watch-evolution/SKILL.md +33 -0
- package/plugin/templates/langs/zh/core/AGENTS.md +197 -0
- package/plugin/templates/langs/zh/core/BOOT.md +60 -0
- package/plugin/templates/langs/zh/core/BOOTSTRAP.md +273 -0
- package/plugin/templates/langs/zh/core/HEARTBEAT.md +98 -0
- package/plugin/templates/langs/zh/core/IDENTITY.md +8 -0
- package/plugin/templates/langs/zh/core/PRINCIPLES.md +7 -0
- package/plugin/templates/langs/zh/core/SOUL.md +46 -0
- package/plugin/templates/langs/zh/core/TOOLS.md +15 -0
- package/plugin/templates/langs/zh/core/USER.md +10 -0
- package/plugin/templates/langs/zh/pain/00_seed_samples.md +24 -0
- package/plugin/templates/langs/zh/pain_dictionary.json +18 -0
- package/plugin/templates/langs/zh/principles/THINKING_OS.md +64 -0
- package/plugin/templates/langs/zh/skills/admin/SKILL.md +41 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +67 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +143 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/nocturnal-trinity-quality-enhancement.json +111 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +95 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +98 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +3455 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +230 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +672 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +1321 -0
- package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +1435 -0
- package/plugin/templates/langs/zh/skills/bootstrap-tools/SKILL.md +52 -0
- package/plugin/templates/langs/zh/skills/deductive-audit/SKILL.md +36 -0
- package/plugin/templates/langs/zh/skills/evolution-framework-update/SKILL.md +31 -0
- package/plugin/templates/langs/zh/skills/evolve-system/SKILL.md +46 -0
- package/plugin/templates/langs/zh/skills/evolve-task/SKILL.md +83 -0
- package/plugin/templates/langs/zh/skills/feedback/SKILL.md +53 -0
- package/plugin/templates/langs/zh/skills/init-strategy/SKILL.md +54 -0
- package/plugin/templates/langs/zh/skills/inject-rule/SKILL.md +19 -0
- package/plugin/templates/langs/zh/skills/manage-okr/SKILL.md +109 -0
- package/plugin/templates/langs/zh/skills/pd-auditor/SKILL.md +61 -0
- package/plugin/templates/langs/zh/skills/pd-cli-operator/SKILL.md +67 -0
- package/plugin/templates/langs/zh/skills/pd-daily/SKILL.md +283 -0
- package/plugin/templates/langs/zh/skills/pd-diagnostician/SKILL.md +391 -0
- package/plugin/templates/langs/zh/skills/pd-explorer/SKILL.md +65 -0
- package/plugin/templates/langs/zh/skills/pd-grooming/SKILL.md +46 -0
- package/plugin/templates/langs/zh/skills/pd-implementer/SKILL.md +68 -0
- package/plugin/templates/langs/zh/skills/pd-mentor/SKILL.md +230 -0
- package/plugin/templates/langs/zh/skills/pd-pain-signal/SKILL.md +30 -0
- package/plugin/templates/langs/zh/skills/pd-planner/SKILL.md +65 -0
- package/plugin/templates/langs/zh/skills/pd-runtime-v2/SKILL.md +61 -0
- package/plugin/templates/langs/zh/skills/plan-script/SKILL.md +32 -0
- package/plugin/templates/langs/zh/skills/profile/SKILL.md +24 -0
- package/plugin/templates/langs/zh/skills/reflection/SKILL.md +40 -0
- package/plugin/templates/langs/zh/skills/reflection-log/SKILL.md +37 -0
- package/plugin/templates/langs/zh/skills/report/SKILL.md +13 -0
- package/plugin/templates/langs/zh/skills/root-cause/SKILL.md +33 -0
- package/plugin/templates/langs/zh/skills/triage/SKILL.md +29 -0
- package/plugin/templates/langs/zh/skills/watch-evolution/SKILL.md +33 -0
- package/plugin/templates/pain_dictionary.json +36 -0
- package/plugin/templates/pain_settings.json +103 -0
- package/plugin/templates/workspace/.principles/DECISION_POLICY.json +44 -0
- package/plugin/templates/workspace/.principles/PRINCIPLES.md +20 -0
- package/plugin/templates/workspace/.principles/PROFILE.json +54 -0
- package/plugin/templates/workspace/.principles/PROFILE.schema.json +56 -0
- package/plugin/templates/workspace/.principles/THINKING_OS.md +64 -0
- package/plugin/templates/workspace/.principles/THINKING_OS_ARCHIVE.md +7 -0
- package/plugin/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +9 -0
- package/plugin/templates/workspace/.principles/models/_INDEX.md +27 -0
- package/plugin/templates/workspace/.principles/models/first_principles.md +62 -0
- package/plugin/templates/workspace/.principles/models/marketing_4p.md +52 -0
- package/plugin/templates/workspace/.principles/models/porter_five.md +63 -0
- package/plugin/templates/workspace/.principles/models/swot.md +60 -0
- package/plugin/templates/workspace/.principles/models/user_story_map.md +63 -0
- package/plugin/templates/workspace/.state/WORKBOARD.json +4 -0
- package/plugin/templates/workspace/AUDIT.md +15 -0
- package/plugin/templates/workspace/PLAN.md +2 -0
- package/plugin/templates/workspace/okr/CURRENT_FOCUS.md +57 -0
- package/plugin/templates/workspace/okr/RECOVERY_PROTOCOL.md +56 -0
- package/plugin/templates/workspace/okr/TASK_CHANGES.jsonl +6 -0
- package/plugin/templates/workspace/okr/WEEK_TASKS.json +6 -0
- package/templates/langs/en/core/AGENTS.md +205 -0
- package/templates/langs/en/core/BOOT.md +60 -0
- package/templates/langs/en/core/BOOTSTRAP.md +273 -0
- package/templates/langs/en/core/HEARTBEAT.md +74 -0
- package/templates/langs/en/core/IDENTITY.md +8 -0
- package/templates/langs/en/core/PRINCIPLES.md +10 -0
- package/templates/langs/en/core/SOUL.md +46 -0
- package/templates/langs/en/core/TOOLS.md +58 -0
- package/templates/langs/en/core/USER.md +10 -0
- package/templates/langs/en/pain/00_seed_samples.md +23 -0
- package/templates/langs/en/pain_dictionary.json +22 -0
- package/templates/langs/en/principles/THINKING_OS.md +64 -0
- package/templates/langs/en/skills/admin/SKILL.md +39 -0
- package/templates/langs/en/skills/bootstrap-tools/SKILL.md +53 -0
- package/templates/langs/en/skills/deductive-audit/SKILL.md +36 -0
- package/templates/langs/en/skills/evolution-framework-update/SKILL.md +31 -0
- package/templates/langs/en/skills/evolve-system/SKILL.md +46 -0
- package/templates/langs/en/skills/evolve-task/SKILL.md +83 -0
- package/templates/langs/en/skills/feedback/SKILL.md +51 -0
- package/templates/langs/en/skills/init-strategy/SKILL.md +54 -0
- package/templates/langs/en/skills/inject-rule/SKILL.md +19 -0
- package/templates/langs/en/skills/manage-okr/SKILL.md +96 -0
- package/templates/langs/en/skills/pain/SKILL.md +19 -0
- package/templates/langs/en/skills/pd-daily/SKILL.md +199 -0
- package/templates/langs/en/skills/pd-grooming/SKILL.md +46 -0
- package/templates/langs/en/skills/pd-mentor/SKILL.md +230 -0
- package/templates/langs/en/skills/plan-script/SKILL.md +32 -0
- package/templates/langs/en/skills/profile/SKILL.md +24 -0
- package/templates/langs/en/skills/reflection/SKILL.md +40 -0
- package/templates/langs/en/skills/reflection-log/SKILL.md +37 -0
- package/templates/langs/en/skills/report/SKILL.md +13 -0
- package/templates/langs/en/skills/root-cause/SKILL.md +33 -0
- package/templates/langs/en/skills/triage/SKILL.md +29 -0
- package/templates/langs/en/skills/watch-evolution/SKILL.md +33 -0
- package/templates/langs/zh/core/AGENTS.md +197 -0
- package/templates/langs/zh/core/BOOT.md +60 -0
- package/templates/langs/zh/core/BOOTSTRAP.md +273 -0
- package/templates/langs/zh/core/HEARTBEAT.md +98 -0
- package/templates/langs/zh/core/IDENTITY.md +8 -0
- package/templates/langs/zh/core/SOUL.md +46 -0
- package/templates/langs/zh/core/TOOLS.md +58 -0
- package/templates/langs/zh/core/USER.md +10 -0
- package/templates/langs/zh/pain/00_seed_samples.md +24 -0
- package/templates/langs/zh/pain_dictionary.json +18 -0
- package/templates/langs/zh/principles/THINKING_OS.md +64 -0
- package/templates/langs/zh/skills/admin/SKILL.md +41 -0
- package/templates/langs/zh/skills/bootstrap-tools/SKILL.md +52 -0
- package/templates/langs/zh/skills/deductive-audit/SKILL.md +36 -0
- package/templates/langs/zh/skills/evolution-framework-update/SKILL.md +31 -0
- package/templates/langs/zh/skills/evolve-system/SKILL.md +46 -0
- package/templates/langs/zh/skills/evolve-task/SKILL.md +83 -0
- package/templates/langs/zh/skills/feedback/SKILL.md +53 -0
- package/templates/langs/zh/skills/init-strategy/SKILL.md +54 -0
- package/templates/langs/zh/skills/inject-rule/SKILL.md +19 -0
- package/templates/langs/zh/skills/manage-okr/SKILL.md +109 -0
- package/templates/langs/zh/skills/pain/SKILL.md +30 -0
- package/templates/langs/zh/skills/pd-auditor/SKILL.md +61 -0
- package/templates/langs/zh/skills/pd-daily/SKILL.md +283 -0
- package/templates/langs/zh/skills/pd-diagnostician/SKILL.md +287 -0
- package/templates/langs/zh/skills/pd-explorer/SKILL.md +65 -0
- package/templates/langs/zh/skills/pd-grooming/SKILL.md +46 -0
- package/templates/langs/zh/skills/pd-implementer/SKILL.md +68 -0
- package/templates/langs/zh/skills/pd-mentor/SKILL.md +230 -0
- package/templates/langs/zh/skills/pd-planner/SKILL.md +65 -0
- package/templates/langs/zh/skills/pd-reporter/SKILL.md +78 -0
- package/templates/langs/zh/skills/pd-reviewer/SKILL.md +66 -0
- package/templates/langs/zh/skills/plan-script/SKILL.md +32 -0
- package/templates/langs/zh/skills/profile/SKILL.md +24 -0
- package/templates/langs/zh/skills/reflection/SKILL.md +40 -0
- package/templates/langs/zh/skills/reflection-log/SKILL.md +37 -0
- package/templates/langs/zh/skills/report/SKILL.md +13 -0
- package/templates/langs/zh/skills/root-cause/SKILL.md +33 -0
- package/templates/langs/zh/skills/triage/SKILL.md +29 -0
- package/templates/langs/zh/skills/watch-evolution/SKILL.md +33 -0
- package/templates/pain_dictionary.json +36 -0
- package/templates/pain_settings.json +129 -0
- package/templates/workspace/.principles/THINKING_OS.md +64 -0
- package/templates/workspace/AUDIT.md +15 -0
- package/templates/workspace/PLAN.md +2 -0
- package/templates/workspace/okr/CURRENT_FOCUS.md +57 -0
- package/templates/workspace/okr/RECOVERY_PROTOCOL.md +56 -0
- package/templates/workspace/okr/TASK_CHANGES.jsonl +6 -0
- package/templates/workspace/okr/WEEK_TASKS.json +6 -0
|
@@ -0,0 +1,1435 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* run.mjs git/worktree/merge-gate tests.
|
|
3
|
+
*
|
|
4
|
+
* Tests P1-1 (merge gate targetBranch vs worktree.branchName), P1-2 (worktree legal git params),
|
|
5
|
+
* and P2 (cleanupWorktree correct cwd) via source analysis.
|
|
6
|
+
*
|
|
7
|
+
* Run: node --test test/run.test.mjs
|
|
8
|
+
*/
|
|
9
|
+
import test from 'node:test';
|
|
10
|
+
import assert from 'node:assert/strict';
|
|
11
|
+
import fs from 'fs';
|
|
12
|
+
import path from 'path';
|
|
13
|
+
import os from 'os';
|
|
14
|
+
import { fileURLToPath } from 'url';
|
|
15
|
+
import { decideAndPersist, formatRoleValidation, getIsolationDir, findIsolationReport, collectIsolationArtifacts, isIsolationCollectAllowed, ISOLATION_COLLECT_ALLOWLIST } from '../scripts/run.mjs';
|
|
16
|
+
import { getTaskSpec, buildStageBrief } from '../scripts/lib/task-specs.mjs';
|
|
17
|
+
|
|
18
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const runMjsPath = path.join(__dirname, '..', 'scripts', 'run.mjs');
|
|
20
|
+
const archiveMjsPath = path.join(__dirname, '..', 'scripts', 'lib', 'archive.mjs');
|
|
21
|
+
const SOURCE = fs.readFileSync(runMjsPath, 'utf8');
|
|
22
|
+
const ARCHIVE_SOURCE = fs.readFileSync(archiveMjsPath, 'utf8');
|
|
23
|
+
|
|
24
|
+
function getFuncBody(funcName) {
|
|
25
|
+
const start = SOURCE.indexOf(`function ${funcName}`);
|
|
26
|
+
if (start === -1) throw new Error(`Function ${funcName} not found`);
|
|
27
|
+
const end = SOURCE.indexOf('\nfunction ', start + 1);
|
|
28
|
+
return SOURCE.slice(start, end === -1 ? SOURCE.length : end);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function getArchiveFuncBody(funcName) {
|
|
32
|
+
const start = ARCHIVE_SOURCE.indexOf(`function ${funcName}`);
|
|
33
|
+
if (start === -1) throw new Error(`Archive function ${funcName} not found`);
|
|
34
|
+
const end = ARCHIVE_SOURCE.indexOf('\nfunction ', start + 1);
|
|
35
|
+
return ARCHIVE_SOURCE.slice(start, end === -1 ? ARCHIVE_SOURCE.length : end);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ---------------------------------------------------------------------------
|
|
39
|
+
// P1-1: merge gate — targetBranch (spec.branch) vs worktree.branchName
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
|
|
42
|
+
test('P1-1: merge gate does NOT compare against origin/HEAD', () => {
|
|
43
|
+
const body = getFuncBody('runMergeGateCheck');
|
|
44
|
+
const hasOriginHead = /rev-parse.*`\$\{remote\}\/HEAD`|rev-parse.*origin\/HEAD/.test(body);
|
|
45
|
+
assert.equal(hasOriginHead, false,
|
|
46
|
+
'merge gate must NOT compare against origin/HEAD');
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
test('P1-1: merge gate uses targetBranch from spec, NOT worktree.branchName', () => {
|
|
50
|
+
const body = getFuncBody('runMergeGateCheck');
|
|
51
|
+
|
|
52
|
+
// targetBranch must be derived from spec.branch, never worktree.branchName
|
|
53
|
+
// worktree.branchName = sprint/<runId>/<stage> (internal, never pushed to remote)
|
|
54
|
+
// targetBranch = spec.branch ?? 'main' (the real PR branch)
|
|
55
|
+
assert.ok(/targetBranch/.test(body), 'must use targetBranch variable');
|
|
56
|
+
|
|
57
|
+
// Verify: targetBranch = spec.branch ?? 'main' (NO worktree.branchName fallback)
|
|
58
|
+
const hasSpecBranchOnly = /targetBranch\s*=\s*spec\.branch\s*\?\?\s*['"]main['"]/.test(body) ||
|
|
59
|
+
/targetBranch\s*=\s*spec\.branch/.test(body);
|
|
60
|
+
assert.ok(hasSpecBranchOnly, 'targetBranch must be set from spec.branch, not worktree.branchName');
|
|
61
|
+
|
|
62
|
+
// Verify: the line that defines targetBranch does NOT contain worktree
|
|
63
|
+
const targetBranchDefIdx = body.indexOf('const targetBranch');
|
|
64
|
+
if (targetBranchDefIdx !== -1) {
|
|
65
|
+
const defLineEnd = body.indexOf(';', targetBranchDefIdx);
|
|
66
|
+
const defLine = body.slice(targetBranchDefIdx, defLineEnd);
|
|
67
|
+
const usesWorktree = /worktree/.test(defLine);
|
|
68
|
+
assert.equal(usesWorktree, false,
|
|
69
|
+
'targetBranch definition must NOT reference worktree.branchName');
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
test('P1-1: merge gate result includes targetBranch, not worktree branchName', () => {
|
|
74
|
+
const body = getFuncBody('runMergeGateCheck');
|
|
75
|
+
const resultMatch = body.match(/const result\s*=\s*\{[^}]+\}/);
|
|
76
|
+
assert.ok(resultMatch, 'should find result object');
|
|
77
|
+
assert.ok(/targetBranch/.test(resultMatch[0]), 'result must include targetBranch field');
|
|
78
|
+
assert.ok(!/branchName[^N]/.test(resultMatch[0]) || /targetBranch/.test(resultMatch[0]),
|
|
79
|
+
'result field should be targetBranch, not the internal worktree branchName');
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
test('P1-1: merge gate sha-mismatch halt reason uses targetBranch, not worktree branchName', () => {
|
|
83
|
+
const haltIdx = SOURCE.indexOf("type: 'merge_gate_sha_mismatch'");
|
|
84
|
+
assert.ok(haltIdx !== -1, 'sha-mismatch halt reason must use targetBranch');
|
|
85
|
+
const section = SOURCE.slice(haltIdx, haltIdx + 500);
|
|
86
|
+
|
|
87
|
+
// Must use targetBranch in details, not worktree's internal branchName
|
|
88
|
+
assert.ok(/targetBranch/.test(section) || /mergeGate\.targetBranch/.test(section),
|
|
89
|
+
'halt details must reference mergeGate.targetBranch');
|
|
90
|
+
// Must not use mergeGate.branchName (the old field name)
|
|
91
|
+
const usesOldField = /mergeGate\.branchName/.test(section);
|
|
92
|
+
assert.equal(usesOldField, false,
|
|
93
|
+
'halt reason must use targetBranch, not branchName');
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
test('P1-1: merge gate fetches specific targetBranch refspec', () => {
|
|
97
|
+
const body = getFuncBody('runMergeGateCheck');
|
|
98
|
+
// Fetch must use targetBranch, not worktree.branchName
|
|
99
|
+
const fetchWithTargetBranch = /fetch.*targetBranch|refspec.*targetBranch|refs\/heads\/\$\{targetBranch\}/.test(body);
|
|
100
|
+
assert.ok(fetchWithTargetBranch, 'git fetch must use targetBranch in refspec');
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
test('P1-1: fetch-failed merge gate uses mergePending, not a halt type', () => {
|
|
104
|
+
const advanceBody = getFuncBody('advanceState');
|
|
105
|
+
assert.ok(/mergePending/.test(advanceBody), 'fetch-failed path should record mergePending');
|
|
106
|
+
assert.equal(/merge_gate_branch_not_on_remote/.test(advanceBody), false,
|
|
107
|
+
'fetch-failed path should no longer assign a halt type');
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
test('P1-1: merge gate halt does not mention "remote HEAD"', () => {
|
|
111
|
+
const haltIdx = SOURCE.indexOf("type: fetchFailed ? 'merge_gate_branch_not_on_remote'");
|
|
112
|
+
const section = SOURCE.slice(haltIdx, haltIdx + 600);
|
|
113
|
+
const mentionsRemoteHead = /remote\s+HEAD/.test(section);
|
|
114
|
+
assert.equal(mentionsRemoteHead, false,
|
|
115
|
+
'halt details must not say "remote HEAD"');
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
test('P1-1 NEW: worktree branch != targetBranch — merge gate still uses targetBranch', () => {
|
|
119
|
+
// Even when worktree.branchName = sprint/<runId>/<stage>
|
|
120
|
+
// the merge gate comparison must use spec.branch (the real PR branch)
|
|
121
|
+
const body = getFuncBody('runMergeGateCheck');
|
|
122
|
+
|
|
123
|
+
// Verify: targetBranch is set BEFORE the fetch call
|
|
124
|
+
const targetBranchDefIdx = body.indexOf('const targetBranch');
|
|
125
|
+
const fetchIdx = body.indexOf("'fetch'");
|
|
126
|
+
assert.ok(targetBranchDefIdx !== -1 && targetBranchDefIdx < fetchIdx,
|
|
127
|
+
'targetBranch must be defined before the fetch call');
|
|
128
|
+
|
|
129
|
+
// Verify: worktree.branchName is NOT in the targetBranch assignment line
|
|
130
|
+
const targetBranchLine = body.slice(targetBranchDefIdx, body.indexOf(';', targetBranchDefIdx));
|
|
131
|
+
const usesWorktreeInTarget = /worktree/.test(targetBranchLine);
|
|
132
|
+
assert.equal(usesWorktreeInTarget, false,
|
|
133
|
+
'targetBranch must NOT derive from worktree.branchName — it uses spec.branch only');
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
test('P1-1 NEW: targetBranch missing from remote → fetchFailed=true', () => {
|
|
137
|
+
const body = getFuncBody('runMergeGateCheck');
|
|
138
|
+
// When branch doesn't exist on remote, fetchResult.status !== 0
|
|
139
|
+
// Must set fetchFailed: true in that case
|
|
140
|
+
const hasFetchFailedFlag = /fetchFailed:\s*true/.test(body);
|
|
141
|
+
assert.ok(hasFetchFailedFlag, 'missing remote branch must set fetchFailed: true');
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
test('P1-1 NEW: missing remote branch completes with mergePending instead of halting', () => {
|
|
145
|
+
const body = getFuncBody('advanceState');
|
|
146
|
+
assert.ok(/mergePending/.test(body),
|
|
147
|
+
'advanceState must mark mergePending for fetchFailed merge gate results');
|
|
148
|
+
assert.equal(/state\.status\s*=\s*'halted'[\s\S]{0,200}fetchFailed/.test(body), false,
|
|
149
|
+
'fetchFailed merge gate path must not halt the sprint');
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
test('P1-1 NEW: targetBranch defaults to main when spec.branch absent', () => {
|
|
153
|
+
const body = getFuncBody('runMergeGateCheck');
|
|
154
|
+
// targetBranch = spec.branch ?? 'main' — safe fallback to 'main'
|
|
155
|
+
const hasMainFallback = /targetBranch\s*=\s*spec\.branch\s*\?\?\s*['"]main['"]/.test(body);
|
|
156
|
+
assert.ok(hasMainFallback, 'targetBranch must default to "main" when spec.branch is absent');
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
// ---------------------------------------------------------------------------
|
|
160
|
+
// P1-2: worktree add legal git params
|
|
161
|
+
// ---------------------------------------------------------------------------
|
|
162
|
+
|
|
163
|
+
test('P1-2: ensureWorktree worktree add uses baseRef (git ref), not baseWorkspace (path)', () => {
|
|
164
|
+
const body = getFuncBody('ensureWorktree');
|
|
165
|
+
|
|
166
|
+
// Must define baseRef via resolveBaseRef function (not direct assignment)
|
|
167
|
+
const hasResolveBaseRef = /const baseRef\s*=\s*resolveBaseRef\(\)/.test(body) ||
|
|
168
|
+
/baseRef\s*=\s*resolveBaseRef/.test(body);
|
|
169
|
+
assert.ok(hasResolveBaseRef, 'must define baseRef via resolveBaseRef function');
|
|
170
|
+
|
|
171
|
+
const argsMatch = body.match(/worktree',\s*'add'[^;]*?\](?:\s*,|\s*\{)/);
|
|
172
|
+
if (argsMatch) {
|
|
173
|
+
const argsStr = argsMatch[0];
|
|
174
|
+
assert.equal(/baseWorkspace/.test(argsStr), false,
|
|
175
|
+
'git worktree add args must not include baseWorkspace (path); use baseRef');
|
|
176
|
+
}
|
|
177
|
+
assert.ok(/worktree.*add.*-b.*baseRef/.test(body) ||
|
|
178
|
+
/baseRef.*\]/.test(body.slice(body.indexOf('worktree add'))),
|
|
179
|
+
'git worktree add should use baseRef as the starting-point (commit-ish) argument');
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
test('P1-2: ensureWorktree has NO illegal fallback "git worktree add <path> <branchName>"', () => {
|
|
183
|
+
const body = getFuncBody('ensureWorktree');
|
|
184
|
+
|
|
185
|
+
const hasIllegalFallback = /git.*worktree.*add.*\$worktreePath.*\$branchName/.test(body) ||
|
|
186
|
+
/git.*worktree.*add.*worktreePath.*branchName[^A-Z]/.test(body);
|
|
187
|
+
assert.equal(hasIllegalFallback, false,
|
|
188
|
+
'must not have fallback "git worktree add <path> <branchName>" — branchName does not exist yet');
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
test('P1-2: ensureWorktree worktreeInfo includes baseWorkspace for cleanup', () => {
|
|
192
|
+
const body = getFuncBody('ensureWorktree');
|
|
193
|
+
|
|
194
|
+
const infoMatch = body.match(/const worktreeInfo\s*=\s*\{[\s\S]*?\};/);
|
|
195
|
+
assert.ok(infoMatch, 'should find worktreeInfo object');
|
|
196
|
+
assert.ok(/baseWorkspace/.test(infoMatch[0]),
|
|
197
|
+
'worktreeInfo must include baseWorkspace for cleanupWorktree git cwd');
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
// ---------------------------------------------------------------------------
|
|
201
|
+
// P2: cleanupWorktree correct cwd
|
|
202
|
+
// ---------------------------------------------------------------------------
|
|
203
|
+
|
|
204
|
+
test('P2: cleanupWorktree does NOT use path.dirname(worktreePath) as cwd', () => {
|
|
205
|
+
const body = getFuncBody('cleanupWorktree');
|
|
206
|
+
|
|
207
|
+
const usesDirnameWorktreePath = /cwd:\s*path\.dirname\(worktreePath\)/.test(body);
|
|
208
|
+
assert.equal(usesDirnameWorktreePath, false,
|
|
209
|
+
'cleanupWorktree must NOT use path.dirname(worktreePath) as git cwd');
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
test('P2: cleanupWorktree uses baseWorkspace as git cwd', () => {
|
|
213
|
+
const body = getFuncBody('cleanupWorktree');
|
|
214
|
+
|
|
215
|
+
assert.ok(/baseWorkspace/.test(body),
|
|
216
|
+
'cleanupWorktree must use baseWorkspace from state.worktree as git cwd');
|
|
217
|
+
|
|
218
|
+
const gitCwdUsesBaseWorkspace = /cwd:\s*gitCwd/.test(body) ||
|
|
219
|
+
/cwd:\s*baseWorkspace/.test(body) ||
|
|
220
|
+
/gitCwd.*baseWorkspace/.test(body);
|
|
221
|
+
assert.ok(gitCwdUsesBaseWorkspace,
|
|
222
|
+
'git worktree remove must use baseWorkspace as cwd');
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
test('P2: cleanupWorktree destructures baseWorkspace from state.worktree', () => {
|
|
226
|
+
const body = getFuncBody('cleanupWorktree');
|
|
227
|
+
const destructures = /\{[^}]*worktreePath[^}]*baseWorkspace[^}]*\}/.test(body) ||
|
|
228
|
+
/baseWorkspace/.test(body.slice(0, body.indexOf('spawnSync')));
|
|
229
|
+
assert.ok(destructures, 'cleanupWorktree must destructure baseWorkspace from state.worktree');
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
// ---------------------------------------------------------------------------
|
|
233
|
+
// captureGitStatus
|
|
234
|
+
// ---------------------------------------------------------------------------
|
|
235
|
+
|
|
236
|
+
test('captureGitStatus: remoteBranch derived from worktree.branchName, not hardcoded null', () => {
|
|
237
|
+
const body = getFuncBody('captureGitStatus');
|
|
238
|
+
|
|
239
|
+
const infoMatch = body.match(/const gitStatus\s*=\s*\{[\s\S]*?\};/);
|
|
240
|
+
assert.ok(infoMatch, 'should find gitStatus object');
|
|
241
|
+
const infoStr = infoMatch[0];
|
|
242
|
+
|
|
243
|
+
const hasHardcodedNull = /remoteBranch:\s*null(?!,)/.test(infoStr);
|
|
244
|
+
assert.equal(hasHardcodedNull, false,
|
|
245
|
+
'remoteBranch should be set from worktree.branchName, not hardcoded null');
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
// ---------------------------------------------------------------------------
|
|
249
|
+
// Protected file validation
|
|
250
|
+
// ---------------------------------------------------------------------------
|
|
251
|
+
|
|
252
|
+
test('protectedArtifacts: excludes run-level timeline and latest-summary to avoid orchestrator self-writes', () => {
|
|
253
|
+
const body = getFuncBody('protectedArtifacts');
|
|
254
|
+
assert.equal(/latest-summary\.md/.test(body), false,
|
|
255
|
+
'protectedArtifacts must not include latest-summary.md');
|
|
256
|
+
assert.equal(/timeline\.md/.test(body), false,
|
|
257
|
+
'protectedArtifacts must not include timeline.md');
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
test('protectedArtifacts: still protects decision.md and scorecard.json', () => {
|
|
261
|
+
const body = getFuncBody('protectedArtifacts');
|
|
262
|
+
assert.ok(/paths\.decisionPath/.test(body),
|
|
263
|
+
'protectedArtifacts must continue protecting decision.md');
|
|
264
|
+
assert.ok(/paths\.scorecardPath/.test(body),
|
|
265
|
+
'protectedArtifacts must continue protecting scorecard.json');
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
test('protectedArtifacts: still protects sprint.json run state', () => {
|
|
269
|
+
const body = getFuncBody('protectedArtifacts');
|
|
270
|
+
assert.ok(/sprint\.json/.test(body),
|
|
271
|
+
'protectedArtifacts must continue protecting sprint.json');
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
test('protected write detection call sites pass runDir for severity classification', () => {
|
|
275
|
+
const runReviewerBody = getFuncBody('runReviewerRole');
|
|
276
|
+
assert.ok(/detectProtectedWriteViolation\(protectedFiles,\s*protectedSnapshot,\s*runDir\)/.test(runReviewerBody),
|
|
277
|
+
'reviewer protected write detection must pass runDir');
|
|
278
|
+
|
|
279
|
+
const executeStageBody = getFuncBody('executeStage');
|
|
280
|
+
assert.ok(/detectProtectedWriteViolation\(protectedFiles,\s*protectedSnapshot,\s*runDir\)/.test(executeStageBody),
|
|
281
|
+
'stage-level protected write detection must pass runDir');
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
// ---------------------------------------------------------------------------
|
|
285
|
+
// Process tree cleanup and role state bookkeeping
|
|
286
|
+
// ---------------------------------------------------------------------------
|
|
287
|
+
|
|
288
|
+
test('process cleanup: timeout path uses terminateProcessTree instead of proc.kill', () => {
|
|
289
|
+
const body = getFuncBody('runAgentAsync');
|
|
290
|
+
assert.ok(/terminateProcessTree\(proc\?\.pid/.test(body),
|
|
291
|
+
'runAgentAsync timeout must terminate the full process tree');
|
|
292
|
+
assert.equal(/proc\?\.kill\(\)/.test(body), false,
|
|
293
|
+
'runAgentAsync timeout must not rely on proc.kill() only');
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
test('process cleanup: terminateProcessTree uses taskkill /T /F on Windows', () => {
|
|
297
|
+
const body = getFuncBody('terminateProcessTree');
|
|
298
|
+
assert.ok(/taskkill/.test(body), 'terminateProcessTree must use taskkill on Windows');
|
|
299
|
+
assert.ok(/\/T/.test(body) && /\/F/.test(body),
|
|
300
|
+
'terminateProcessTree must kill the full descendant tree with /T /F');
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
test('role bookkeeping: reviewer path records spawned pid into role state', () => {
|
|
304
|
+
const body = getFuncBody('runReviewerRole');
|
|
305
|
+
assert.ok(/onSpawn:\s*\(pid\)\s*=>\s*updateRoleState\(paths,\s*role,\s*\{\s*lastPid:\s*pid\s*\}\)/.test(body),
|
|
306
|
+
'runReviewerRole must persist reviewer pid for stale cleanup');
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
test('stale and abort cleanup: recorded role processes are cleaned up', () => {
|
|
310
|
+
const reconcileBody = getFuncBody('reconcileRunState');
|
|
311
|
+
const abortBody = getFuncBody('abortRun');
|
|
312
|
+
assert.ok(/cleanupRecordedRoleProcesses/.test(reconcileBody),
|
|
313
|
+
'reconcileRunState must clean up recorded role processes');
|
|
314
|
+
assert.ok(/cleanupRecordedRoleProcesses/.test(abortBody),
|
|
315
|
+
'abortRun must clean up recorded role processes');
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
test('global reviewer: required report must be non-empty, not just present', () => {
|
|
319
|
+
const body = getFuncBody('decideAndPersist');
|
|
320
|
+
assert.ok(/reportExistsAndNonEmpty\(globalReviewerPath\)/.test(body),
|
|
321
|
+
'required global reviewer report must be validated as non-empty');
|
|
322
|
+
});
|
|
323
|
+
|
|
324
|
+
test('global reviewer: empty report must not be read as decision input', () => {
|
|
325
|
+
const body = getFuncBody('decideAndPersist');
|
|
326
|
+
assert.ok(/reportExistsAndNonEmpty\(globalReviewerPath\)/.test(body),
|
|
327
|
+
'decision input must only load non-empty global reviewer reports');
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
test('global reviewer runtime: failed reviewer does not get auto-promoted to completed without a report', () => {
|
|
331
|
+
const body = getFuncBody('executeStage');
|
|
332
|
+
assert.ok(/if \(reportExistsAndNonEmpty\(grReportPath\)\) \{\s*updateRoleState\(paths, 'global_reviewer', \{\s*status: 'completed'/.test(body.replace(/\r?\n/g, ' ')),
|
|
333
|
+
'global reviewer should only be marked completed when a non-empty report exists');
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
test('resume path reconciles stale runs before switching back to running', () => {
|
|
337
|
+
const body = getFuncBody('loadOrInitState');
|
|
338
|
+
assert.ok(/const state = reconcileRunState\(runDir, readJson\(sprintFile\)\)/.test(body),
|
|
339
|
+
'resume should reconcile stale state before changing status to running');
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
test('main loop does not redundantly reconcile after loadOrInitState', () => {
|
|
343
|
+
const body = getFuncBody('main');
|
|
344
|
+
assert.equal(/reconcileRunState\(runDir, state\)/.test(body), false,
|
|
345
|
+
'main should rely on loadOrInitState reconciliation instead of repeating it');
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
test('cleanup bookkeeping: recorded role pids are only cleared after successful termination', () => {
|
|
349
|
+
const body = getFuncBody('cleanupRecordedRoleProcesses');
|
|
350
|
+
assert.ok(/const terminated = terminateProcessTree/.test(body),
|
|
351
|
+
'cleanup should capture termination success');
|
|
352
|
+
assert.ok(/if \(terminated\)/.test(body),
|
|
353
|
+
'cleanup should only clear pid bookkeeping after successful termination');
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
test('cleanup bookkeeping: worktree is only cleared after successful git removal', () => {
|
|
357
|
+
const body = getFuncBody('cleanupWorktree');
|
|
358
|
+
assert.ok(/if \(result\.status === 0\)/.test(body),
|
|
359
|
+
'cleanupWorktree should check git exit status');
|
|
360
|
+
assert.ok(/state\.worktree = null/.test(body),
|
|
361
|
+
'cleanupWorktree must still clear state on success');
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
test('archive filter excludes prompt scratch, runtime scratch, and worktrees', () => {
|
|
365
|
+
const body = getArchiveFuncBody('shouldArchiveEntry');
|
|
366
|
+
assert.ok(/\.ai-sprint-prompt-/.test(body), 'archive filter must exclude prompt scratch files');
|
|
367
|
+
assert.ok(/worktrees/.test(body), 'archive filter must exclude worktree directories');
|
|
368
|
+
assert.ok(/runtime/.test(body), 'archive filter should exclude runtime scratch directories');
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
test('archive capture uses latest stage git-status.json instead of repo-wide git diff', () => {
|
|
372
|
+
const body = getArchiveFuncBody('captureGitInfo');
|
|
373
|
+
assert.ok(/findLatestStageGitStatus/.test(body),
|
|
374
|
+
'archive capture should read stage-local git-status.json');
|
|
375
|
+
assert.equal(/spawnSync\('git'/.test(body), false,
|
|
376
|
+
'archive capture should not shell out to repo-wide git commands anymore');
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
// ---------------------------------------------------------------------------
|
|
380
|
+
// P1-3: Base ref selection robustness
|
|
381
|
+
// ---------------------------------------------------------------------------
|
|
382
|
+
|
|
383
|
+
test('P1-3: ensureWorktree has robust base ref fallback chain', () => {
|
|
384
|
+
const body = getFuncBody('ensureWorktree');
|
|
385
|
+
|
|
386
|
+
// Must have a resolveBaseRef or similar function with multiple candidates
|
|
387
|
+
const hasResolveFunction = /resolveBaseRef|candidates\s*=\s*\[/.test(body);
|
|
388
|
+
assert.ok(hasResolveFunction, 'ensureWorktree must have a resolve function with fallback candidates');
|
|
389
|
+
|
|
390
|
+
// Must try at least: spec.branch, origin/{branch}, HEAD, main
|
|
391
|
+
const hasLocalBranch = /spec\.branch|baseBranch/.test(body);
|
|
392
|
+
const hasRemoteBranch = /origin\/.*branch/.test(body);
|
|
393
|
+
const hasHead = /HEAD/.test(body);
|
|
394
|
+
const hasMain = /main/.test(body);
|
|
395
|
+
|
|
396
|
+
assert.ok(hasLocalBranch, 'must try local branch from spec');
|
|
397
|
+
assert.ok(hasRemoteBranch, 'must try remote branch origin/{branch}');
|
|
398
|
+
assert.ok(hasHead, 'must fallback to HEAD');
|
|
399
|
+
assert.ok(hasMain, 'must have final fallback to main');
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
test('P1-3: base ref resolution logs which candidate was selected', () => {
|
|
403
|
+
const body = getFuncBody('ensureWorktree');
|
|
404
|
+
|
|
405
|
+
// Should log when using a fallback (not the first choice)
|
|
406
|
+
const logsFallback = /appendTimeline.*Base ref resolved to|appendTimeline.*resolved to/.test(body);
|
|
407
|
+
assert.ok(logsFallback, 'must log when using a fallback base ref');
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
// ---------------------------------------------------------------------------
|
|
411
|
+
// Dynamic timeout: progress detection
|
|
412
|
+
// ---------------------------------------------------------------------------
|
|
413
|
+
|
|
414
|
+
test('dynamic timeout: checkProgressEvidence checks worklog mtime', () => {
|
|
415
|
+
const body = getFuncBody('checkProgressEvidence');
|
|
416
|
+
assert.ok(/worklogPath/.test(body), 'must check worklog path');
|
|
417
|
+
assert.ok(/mtimeMs|stat\.mtime/.test(body), 'must check file modification time');
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
test('dynamic timeout: checkProgressEvidence checks stdout growth', () => {
|
|
421
|
+
const body = getFuncBody('checkProgressEvidence');
|
|
422
|
+
assert.ok(/lastStdoutLength|currentStdout/.test(body), 'must accept stdout length params');
|
|
423
|
+
assert.ok(/stdout.*length|length.*stdout/.test(body), 'must compare stdout lengths');
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
test('dynamic timeout: checkProgressEvidence checks git changes', () => {
|
|
427
|
+
const body = getFuncBody('checkProgressEvidence');
|
|
428
|
+
assert.ok(/git.*diff|diff.*name-only/.test(body), 'must check git diff for recent changes');
|
|
429
|
+
assert.ok(/worktreePath/.test(body), 'must use worktreePath for git diff');
|
|
430
|
+
});
|
|
431
|
+
|
|
432
|
+
test('dynamic timeout: runAgentWithProgressCheck exists and has soft/hard timeout params', () => {
|
|
433
|
+
const body = getFuncBody('runAgentWithProgressCheck');
|
|
434
|
+
assert.ok(/softTimeoutRatio|softTimeoutSeconds/.test(body), 'must have soft timeout param');
|
|
435
|
+
assert.ok(/hardTimeoutSeconds|hardTimeout|hardTimer/.test(body), 'must have hard timeout param');
|
|
436
|
+
assert.ok(/extensionSeconds|maxExtensions/.test(body), 'must have extension params');
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
test('dynamic timeout: progress check extends timeout when progress detected', () => {
|
|
440
|
+
const body = getFuncBody('runAgentWithProgressCheck');
|
|
441
|
+
|
|
442
|
+
// Must check for progress and conditionally extend
|
|
443
|
+
const hasProgressCheck = /checkProgressEvidence/.test(body);
|
|
444
|
+
const hasExtension = /extensionsUsed\+\+|extensionsUsed\s*\+=\s*1/.test(body);
|
|
445
|
+
|
|
446
|
+
assert.ok(hasProgressCheck, 'must call checkProgressEvidence');
|
|
447
|
+
assert.ok(hasExtension, 'must increment extensionsUsed when progress detected');
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
test('dynamic timeout: logs extension events to timeline', () => {
|
|
451
|
+
const body = getFuncBody('runAgentWithProgressCheck');
|
|
452
|
+
assert.ok(/appendTimeline.*extend|appendTimeline.*progress/.test(body),
|
|
453
|
+
'must log extension events to timeline');
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
test('dynamic timeout: respects maxExtensions limit', () => {
|
|
457
|
+
const body = getFuncBody('runAgentWithProgressCheck');
|
|
458
|
+
assert.ok(/extensionsUsed\s*<\s*maxExtensions|extensionsUsed.*>=.*maxExtensions/.test(body),
|
|
459
|
+
'must check extensionsUsed against maxExtensions');
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
test('dynamic timeout: extension window scales with timeoutSeconds instead of fixed 300s', () => {
|
|
463
|
+
const body = getFuncBody('runAgentWithProgressCheck');
|
|
464
|
+
assert.ok(/scaledExtensionSeconds/.test(body),
|
|
465
|
+
'runAgentWithProgressCheck should derive a scaled extension window');
|
|
466
|
+
assert.ok(/Math\.max\(30,\s*Math\.min\(300,\s*Math\.floor\(timeoutSeconds \/ 2\)\)\)/.test(body),
|
|
467
|
+
'extension window should scale from timeoutSeconds with bounded defaults');
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
// ---------------------------------------------------------------------------
|
|
471
|
+
// Isolation Report: agent writes to tmp/sprint-agent/{runId}/{stage}-{role}/
|
|
472
|
+
// Phase 2: Uses runId directly, not fragile timestamp extraction
|
|
473
|
+
// ---------------------------------------------------------------------------
|
|
474
|
+
|
|
475
|
+
test('isolation: getIsolationDir uses runId for unique isolation path', () => {
|
|
476
|
+
const runId = '2026-04-03T12-34-56-789Z-test-task';
|
|
477
|
+
const isolationDir = getIsolationDir(runId, 'implement', 'producer');
|
|
478
|
+
assert.ok(isolationDir.includes('tmp'), 'must include tmp');
|
|
479
|
+
assert.ok(isolationDir.includes('sprint-agent'), 'must include sprint-agent');
|
|
480
|
+
assert.ok(isolationDir.includes(runId), 'must include runId');
|
|
481
|
+
assert.ok(isolationDir.includes('implement-producer'), 'must include stage-role');
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
test('isolation: different runs have different isolation directories', () => {
|
|
485
|
+
const runId1 = '2026-04-03T12-34-56-789Z-task-a';
|
|
486
|
+
const runId2 = '2026-04-03T12-34-56-789Z-task-b';
|
|
487
|
+
const dir1 = getIsolationDir(runId1, 'implement', 'producer');
|
|
488
|
+
const dir2 = getIsolationDir(runId2, 'implement', 'producer');
|
|
489
|
+
assert.notEqual(dir1, dir2, 'different runIds must produce different isolation dirs');
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
test('isolation: findIsolationReport returns null when runId is null', () => {
|
|
493
|
+
const result = findIsolationReport({ runId: null, stageName: 'implement', role: 'producer', reportFilename: 'producer.md' });
|
|
494
|
+
assert.equal(result, null, 'must return null when runId is null');
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
test('isolation: findIsolationReport returns null for non-existent isolation', () => {
|
|
498
|
+
const result = findIsolationReport({ runId: 'nonexistent-run-id', stageName: 'implement', role: 'producer', reportFilename: 'producer.md' });
|
|
499
|
+
assert.equal(result, null, 'must return null for non-existent isolation dir');
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
test('isolation: findIsolationReport finds report in isolation directory', () => {
|
|
503
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'isolation-test-'));
|
|
504
|
+
try {
|
|
505
|
+
const runId = 'test-run-id';
|
|
506
|
+
const stageName = 'implement';
|
|
507
|
+
const role = 'producer';
|
|
508
|
+
const isolationDir = getIsolationDir(runId, stageName, role);
|
|
509
|
+
|
|
510
|
+
// Create isolation directory with report
|
|
511
|
+
fs.mkdirSync(isolationDir, { recursive: true });
|
|
512
|
+
const reportContent = `# Report\n\n## SUMMARY\nTask completed.\n`;
|
|
513
|
+
fs.writeFileSync(path.join(isolationDir, 'producer.md'), reportContent);
|
|
514
|
+
|
|
515
|
+
const result = findIsolationReport({ runId, stageName, role, reportFilename: 'producer.md' });
|
|
516
|
+
assert.ok(result, 'must find report in isolation dir');
|
|
517
|
+
assert.ok(result.includes('producer.md'), 'result path must include report filename');
|
|
518
|
+
} finally {
|
|
519
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
|
|
523
|
+
test('isolation: isIsolationCollectAllowed respects allowlist', () => {
|
|
524
|
+
assert.equal(isIsolationCollectAllowed('producer.md'), true, 'producer.md must be allowed');
|
|
525
|
+
assert.equal(isIsolationCollectAllowed('reviewer-a.md'), true, 'reviewer-a.md must be allowed');
|
|
526
|
+
assert.equal(isIsolationCollectAllowed('reviewer-b.md'), true, 'reviewer-b.md must be allowed');
|
|
527
|
+
assert.equal(isIsolationCollectAllowed('global-reviewer.md'), true, 'global-reviewer.md must be allowed');
|
|
528
|
+
assert.equal(isIsolationCollectAllowed('report.md'), true, 'report.md must be allowed');
|
|
529
|
+
// Non-allowlist files
|
|
530
|
+
assert.equal(isIsolationCollectAllowed('session.log'), false, 'session.log must NOT be allowed');
|
|
531
|
+
assert.equal(isIsolationCollectAllowed('state.json'), false, 'state.json must NOT be allowed');
|
|
532
|
+
assert.equal(isIsolationCollectAllowed('tmp.txt'), false, 'tmp.txt must NOT be allowed');
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
test('isolation: collectIsolationArtifacts only collects allowed files', () => {
|
|
536
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'isolation-test-'));
|
|
537
|
+
try {
|
|
538
|
+
const runId = 'test-collect-allowed';
|
|
539
|
+
const stageName = 'implement';
|
|
540
|
+
const role = 'producer';
|
|
541
|
+
const isolationDir = getIsolationDir(runId, stageName, role);
|
|
542
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
543
|
+
|
|
544
|
+
fs.mkdirSync(isolationDir, { recursive: true });
|
|
545
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
546
|
+
|
|
547
|
+
// Create isolation report
|
|
548
|
+
const reportContent = `# Report\n\n## SUMMARY\nTask completed.\n`;
|
|
549
|
+
fs.writeFileSync(path.join(isolationDir, 'producer.md'), reportContent);
|
|
550
|
+
|
|
551
|
+
const result = collectIsolationArtifacts({
|
|
552
|
+
runId,
|
|
553
|
+
stageName,
|
|
554
|
+
role,
|
|
555
|
+
stageDir,
|
|
556
|
+
reportFilename: 'producer.md',
|
|
557
|
+
runDir: tmp,
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
assert.deepEqual(result.collected, ['producer.md'], 'producer.md must be collected');
|
|
561
|
+
assert.ok(fs.existsSync(path.join(stageDir, 'producer.md')), 'report must exist in stage dir');
|
|
562
|
+
} finally {
|
|
563
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
test('isolation: collectIsolationArtifacts skips non-allowlist files', () => {
|
|
568
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'isolation-test-'));
|
|
569
|
+
try {
|
|
570
|
+
const runId = 'test-collect-skip';
|
|
571
|
+
const stageName = 'implement';
|
|
572
|
+
const role = 'producer';
|
|
573
|
+
const isolationDir = getIsolationDir(runId, stageName, role);
|
|
574
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
575
|
+
|
|
576
|
+
fs.mkdirSync(isolationDir, { recursive: true });
|
|
577
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
578
|
+
|
|
579
|
+
// Try to collect a non-allowlist file
|
|
580
|
+
const result = collectIsolationArtifacts({
|
|
581
|
+
runId,
|
|
582
|
+
stageName,
|
|
583
|
+
role,
|
|
584
|
+
stageDir,
|
|
585
|
+
reportFilename: 'session.log', // NOT in allowlist
|
|
586
|
+
runDir: tmp,
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
assert.deepEqual(result.collected, [], 'session.log must NOT be collected');
|
|
590
|
+
assert.deepEqual(result.skipped, ['session.log'], 'session.log must be in skipped list');
|
|
591
|
+
} finally {
|
|
592
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
test('isolation: different runs do NOT share isolation lookup', () => {
|
|
597
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'isolation-test-'));
|
|
598
|
+
try {
|
|
599
|
+
const runId1 = 'run-1';
|
|
600
|
+
const runId2 = 'run-2';
|
|
601
|
+
const stageName = 'implement';
|
|
602
|
+
const role = 'producer';
|
|
603
|
+
|
|
604
|
+
// Create isolation for run-1 only
|
|
605
|
+
const isolationDir1 = getIsolationDir(runId1, stageName, role);
|
|
606
|
+
fs.mkdirSync(isolationDir1, { recursive: true });
|
|
607
|
+
fs.writeFileSync(path.join(isolationDir1, 'producer.md'), `# Report\n\n## SUMMARY\nRun 1 report.\n`);
|
|
608
|
+
|
|
609
|
+
// run-1 should find the report
|
|
610
|
+
const result1 = findIsolationReport({ runId: runId1, stageName, role, reportFilename: 'producer.md' });
|
|
611
|
+
assert.ok(result1, 'run-1 must find its isolation report');
|
|
612
|
+
|
|
613
|
+
// run-2 should NOT find any report
|
|
614
|
+
const result2 = findIsolationReport({ runId: runId2, stageName, role, reportFilename: 'producer.md' });
|
|
615
|
+
assert.equal(result2, null, 'run-2 must NOT find run-1 isolation report');
|
|
616
|
+
} finally {
|
|
617
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
|
|
621
|
+
test('isolation: ISOLATION_COLLECT_ALLOWLIST contains expected files', () => {
|
|
622
|
+
assert.ok(Array.isArray(ISOLATION_COLLECT_ALLOWLIST), 'allowlist must be an array');
|
|
623
|
+
assert.ok(ISOLATION_COLLECT_ALLOWLIST.includes('producer.md'), 'must include producer.md');
|
|
624
|
+
assert.ok(ISOLATION_COLLECT_ALLOWLIST.includes('reviewer-a.md'), 'must include reviewer-a.md');
|
|
625
|
+
assert.ok(ISOLATION_COLLECT_ALLOWLIST.includes('reviewer-b.md'), 'must include reviewer-b.md');
|
|
626
|
+
assert.ok(ISOLATION_COLLECT_ALLOWLIST.includes('global-reviewer.md'), 'must include global-reviewer.md');
|
|
627
|
+
assert.ok(ISOLATION_COLLECT_ALLOWLIST.includes('report.md'), 'must include report.md');
|
|
628
|
+
// Should NOT include non-report files
|
|
629
|
+
assert.equal(ISOLATION_COLLECT_ALLOWLIST.includes('session.log'), false, 'must NOT include session.log');
|
|
630
|
+
assert.equal(ISOLATION_COLLECT_ALLOWLIST.includes('state.json'), false, 'must NOT include state.json');
|
|
631
|
+
});
|
|
632
|
+
|
|
633
|
+
// ---------------------------------------------------------------------------
|
|
634
|
+
// Validation Schema & Persistence Regression Tests
|
|
635
|
+
// ---------------------------------------------------------------------------
|
|
636
|
+
|
|
637
|
+
test('validation schema: decision.md uses role-level errorSummary, not .errors', () => {
|
|
638
|
+
const body = getFuncBody('decideAndPersist');
|
|
639
|
+
// Must NOT access .errors on role objects (field doesn't exist)
|
|
640
|
+
assert.equal(/producer\.errors|reviewerA\.errors|reviewerB\.errors/.test(body), false,
|
|
641
|
+
'decision.md must NOT read non-existent .errors field on role validation objects');
|
|
642
|
+
// Must use formatRoleValidation helper or direct errorSummary access
|
|
643
|
+
assert.ok(/formatRoleValidation|errorSummary|missingSections|invalidFields/.test(body),
|
|
644
|
+
'decision.md must use canonical validation fields: errorSummary, missingSections, invalidFields');
|
|
645
|
+
});
|
|
646
|
+
|
|
647
|
+
test('validation schema: scorecard.json uses errorSummary not errors array', () => {
|
|
648
|
+
const body = getFuncBody('decideAndPersist');
|
|
649
|
+
// Check the validation object in scorecard
|
|
650
|
+
const validationMatch = body.match(/validation:\s*\{[^}]+\}/);
|
|
651
|
+
assert.ok(validationMatch, 'scorecard must have validation object');
|
|
652
|
+
// Must have errorSummary at top level
|
|
653
|
+
assert.ok(/errorSummary:\s*decision\.validation\?\.\errorSummary/.test(body),
|
|
654
|
+
'scorecard validation must include top-level errorSummary');
|
|
655
|
+
// Must NOT have legacy errors array as primary source
|
|
656
|
+
assert.equal(/errors:\s*decision\.validation\?\.\errors\s*\?\?/.test(body), false,
|
|
657
|
+
'scorecard should not use legacy errors array as validation source');
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
test('validation schema: scorecard includes role-level validation objects', () => {
|
|
661
|
+
const body = getFuncBody('decideAndPersist');
|
|
662
|
+
// Each role must be included with full validation object
|
|
663
|
+
// Use [?] character class to match literal question mark in optional chaining
|
|
664
|
+
assert.ok(/producer:\s*decision\.validation[?]\.producer/.test(body),
|
|
665
|
+
'scorecard must include producer validation');
|
|
666
|
+
assert.ok(/reviewerA:\s*decision\.validation[?]\.reviewerA/.test(body),
|
|
667
|
+
'scorecard must include reviewerA validation');
|
|
668
|
+
assert.ok(/reviewerB:\s*decision\.validation[?]\.reviewerB/.test(body),
|
|
669
|
+
'scorecard must include reviewerB validation');
|
|
670
|
+
assert.ok(/globalReviewer:\s*decision\.validation[?]\.globalReviewer/.test(body),
|
|
671
|
+
'scorecard must include globalReviewer validation');
|
|
672
|
+
});
|
|
673
|
+
|
|
674
|
+
test('persistence: outputQuality written to decision.md and scorecard.json', () => {
|
|
675
|
+
const body = getFuncBody('decideAndPersist');
|
|
676
|
+
// decision.md must include Output Quality
|
|
677
|
+
assert.ok(/Output Quality.*decision\.outputQuality/.test(body),
|
|
678
|
+
'decision.md must include Output Quality field');
|
|
679
|
+
// scorecard must include outputQuality
|
|
680
|
+
assert.ok(/outputQuality:\s*decision\.outputQuality/.test(body),
|
|
681
|
+
'scorecard must include outputQuality field');
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
test('persistence: qualityReasons written to decision.md and scorecard.json', () => {
|
|
685
|
+
const body = getFuncBody('decideAndPersist');
|
|
686
|
+
// decision.md must include Quality Reasons section
|
|
687
|
+
assert.ok(/qualityReasons|Quality Reasons/.test(body),
|
|
688
|
+
'decision.md must include Quality Reasons section');
|
|
689
|
+
// scorecard must include qualityReasons
|
|
690
|
+
assert.ok(/qualityReasons:\s*decision\.qualityReasons/.test(body),
|
|
691
|
+
'scorecard must include qualityReasons field');
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
test('formatRoleValidation: helper function exists and uses canonical fields', () => {
|
|
695
|
+
const body = getFuncBody('formatRoleValidation');
|
|
696
|
+
assert.ok(/missingSections/.test(body), 'formatRoleValidation must use missingSections');
|
|
697
|
+
assert.ok(/invalidFields/.test(body), 'formatRoleValidation must use invalidFields');
|
|
698
|
+
assert.ok(/valid/.test(body), 'formatRoleValidation must check valid status');
|
|
699
|
+
});
|
|
700
|
+
|
|
701
|
+
// ---------------------------------------------------------------------------
|
|
702
|
+
// BEHAVIOR-LEVEL PERSISTENCE TESTS
|
|
703
|
+
// Tests that verify actual file writes, not source structure
|
|
704
|
+
// ---------------------------------------------------------------------------
|
|
705
|
+
|
|
706
|
+
function createTempDir() {
|
|
707
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'run-test-'));
|
|
708
|
+
return tmp;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
function cleanupTempDir(tmp) {
|
|
712
|
+
try {
|
|
713
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
714
|
+
} catch {}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
function createMockState(currentRound = 1, maxRoundsPerStage = 3, taskId = 'test-task') {
|
|
718
|
+
return {
|
|
719
|
+
currentRound,
|
|
720
|
+
maxRoundsPerStage,
|
|
721
|
+
status: 'running',
|
|
722
|
+
taskId,
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
function createTempSpec(tmp, taskId = 'test-task', extra = {}) {
|
|
727
|
+
const specDir = path.join(tmp, 'specs');
|
|
728
|
+
fs.mkdirSync(specDir, { recursive: true });
|
|
729
|
+
const specPath = path.join(specDir, `${taskId}.json`);
|
|
730
|
+
const spec = {
|
|
731
|
+
taskId,
|
|
732
|
+
stageCriteria: {
|
|
733
|
+
implement: {
|
|
734
|
+
requiredProducerSections: ['SUMMARY', 'CHANGES'],
|
|
735
|
+
requiredReviewerSections: ['VERDICT', 'BLOCKERS'],
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
...extra,
|
|
739
|
+
};
|
|
740
|
+
fs.writeFileSync(specPath, JSON.stringify(spec));
|
|
741
|
+
return specPath;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
function createValidProducer() {
|
|
745
|
+
return `# Producer Report
|
|
746
|
+
|
|
747
|
+
## SUMMARY
|
|
748
|
+
Task completed successfully.
|
|
749
|
+
|
|
750
|
+
## CHANGES
|
|
751
|
+
- Fixed bug in validation logic
|
|
752
|
+
- Added new test cases
|
|
753
|
+
|
|
754
|
+
## EVIDENCE
|
|
755
|
+
- All tests pass
|
|
756
|
+
- Code review completed
|
|
757
|
+
|
|
758
|
+
## CODE_EVIDENCE
|
|
759
|
+
- src/fix.ts: Fixed validation schema
|
|
760
|
+
|
|
761
|
+
## KEY_EVENTS
|
|
762
|
+
- Bug identified and fixed
|
|
763
|
+
- Tests added
|
|
764
|
+
|
|
765
|
+
## HYPOTHESIS_MATRIX
|
|
766
|
+
| Hypothesis | Status | Evidence |
|
|
767
|
+
|------------|--------|----------|
|
|
768
|
+
| Bug in validation | Confirmed | Fixed in src/fix.ts |
|
|
769
|
+
|
|
770
|
+
## CONTRACT
|
|
771
|
+
- [x] DONE: fix-validation: Fix validation schema issues
|
|
772
|
+
- [x] DONE: add-tests: Add regression tests
|
|
773
|
+
|
|
774
|
+
CHECKS: evidence=gathered;tests=passing
|
|
775
|
+
|
|
776
|
+
## OPEN_RISKS
|
|
777
|
+
- None identified`;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
function createValidReviewer(verdict = 'APPROVE') {
|
|
781
|
+
return `# Reviewer Report
|
|
782
|
+
|
|
783
|
+
## VERDICT
|
|
784
|
+
VERDICT: ${verdict}
|
|
785
|
+
|
|
786
|
+
## BLOCKERS
|
|
787
|
+
${verdict === 'APPROVE' ? '- None.' : '- Issue found in implementation'}
|
|
788
|
+
|
|
789
|
+
## FINDINGS
|
|
790
|
+
- Code quality is good
|
|
791
|
+
- Tests are comprehensive
|
|
792
|
+
|
|
793
|
+
## CODE_EVIDENCE
|
|
794
|
+
- Reviewed src/fix.ts
|
|
795
|
+
|
|
796
|
+
## HYPOTHESIS_MATRIX
|
|
797
|
+
| Hypothesis | Status | Evidence |
|
|
798
|
+
|------------|--------|----------|
|
|
799
|
+
| Bug fixed | Confirmed | Tests pass |
|
|
800
|
+
|
|
801
|
+
## NEXT_FOCUS
|
|
802
|
+
Continue with next task
|
|
803
|
+
|
|
804
|
+
CHECKS: criteria=met;blockers=0
|
|
805
|
+
|
|
806
|
+
## CHECKS
|
|
807
|
+
- All checks passed`;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
function createInvalidProducer() {
|
|
811
|
+
return `# Producer Report
|
|
812
|
+
|
|
813
|
+
## CHANGES
|
|
814
|
+
- Some changes made
|
|
815
|
+
|
|
816
|
+
## CONTRACT
|
|
817
|
+
- [ ] TODO: missing-deliverable: This deliverable is not done
|
|
818
|
+
`;
|
|
819
|
+
// Missing SUMMARY, EVIDENCE, CODE_EVIDENCE, KEY_EVENTS, HYPOTHESIS_MATRIX, CHECKS, OPEN_RISKS
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
function createInvalidReviewer() {
|
|
823
|
+
return `# Reviewer Report
|
|
824
|
+
|
|
825
|
+
## FINDINGS
|
|
826
|
+
- Found some issues
|
|
827
|
+
`;
|
|
828
|
+
// Missing VERDICT, BLOCKERS, CODE_EVIDENCE, HYPOTHESIS_MATRIX, NEXT_FOCUS, CHECKS
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
test('behavior: decision.md contains validation details when report is invalid', () => {
|
|
832
|
+
const tmp = createTempDir();
|
|
833
|
+
try {
|
|
834
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
835
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
836
|
+
|
|
837
|
+
const specPath = createTempSpec(tmp);
|
|
838
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
839
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
840
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
841
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
842
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
843
|
+
|
|
844
|
+
// Write invalid producer and valid reviewers
|
|
845
|
+
fs.writeFileSync(producerPath, createInvalidProducer());
|
|
846
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('APPROVE'));
|
|
847
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('APPROVE'));
|
|
848
|
+
|
|
849
|
+
decideAndPersist({
|
|
850
|
+
runDir: tmp,
|
|
851
|
+
stageName: 'implement',
|
|
852
|
+
stageDir,
|
|
853
|
+
decisionPath,
|
|
854
|
+
scorecardPath,
|
|
855
|
+
producerPath,
|
|
856
|
+
reviewerAPath,
|
|
857
|
+
reviewerBPath,
|
|
858
|
+
globalReviewerPath: null,
|
|
859
|
+
state: { ...createMockState(), specPath },
|
|
860
|
+
});
|
|
861
|
+
|
|
862
|
+
// Verify decision.md was written
|
|
863
|
+
assert.ok(fs.existsSync(decisionPath), 'decision.md should be written');
|
|
864
|
+
const decision = fs.readFileSync(decisionPath, 'utf8');
|
|
865
|
+
|
|
866
|
+
// Verify Validation section contains proper role-level details
|
|
867
|
+
assert.ok(/## Validation/.test(decision), 'decision.md must have Validation section');
|
|
868
|
+
assert.ok(/Contract Valid: false/.test(decision), 'decision.md must show Contract Valid: false for invalid reports');
|
|
869
|
+
assert.ok(/Producer: \[FAIL\]/.test(decision), 'decision.md must show Producer validation failed');
|
|
870
|
+
assert.ok(/missing: SUMMARY/.test(decision), 'decision.md must show missing SUMMARY section');
|
|
871
|
+
} finally {
|
|
872
|
+
cleanupTempDir(tmp);
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
test('behavior: missing reviewer report persists reviewerFailures details', () => {
|
|
877
|
+
const tmp = createTempDir();
|
|
878
|
+
try {
|
|
879
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
880
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
881
|
+
|
|
882
|
+
const specPath = createTempSpec(tmp);
|
|
883
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
884
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
885
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
886
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
887
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
888
|
+
|
|
889
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
890
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('APPROVE'));
|
|
891
|
+
|
|
892
|
+
decideAndPersist({
|
|
893
|
+
runDir: tmp,
|
|
894
|
+
stageName: 'implement',
|
|
895
|
+
stageDir,
|
|
896
|
+
decisionPath,
|
|
897
|
+
scorecardPath,
|
|
898
|
+
producerPath,
|
|
899
|
+
reviewerAPath,
|
|
900
|
+
reviewerBPath,
|
|
901
|
+
globalReviewerPath: null,
|
|
902
|
+
reviewerFailures: [
|
|
903
|
+
{
|
|
904
|
+
role: 'reviewer_b',
|
|
905
|
+
summary: 'primary=opencode/test-model: Agent opencode failed with status 1 | fallback=opencode/minimax-cn-coding-plan/MiniMax-M2.7: timed out',
|
|
906
|
+
attempts: [
|
|
907
|
+
{ label: 'primary', agent: 'opencode', model: 'test-model', error: 'Agent opencode failed with status 1', timedOut: false },
|
|
908
|
+
{ label: 'fallback', agent: 'opencode', model: 'minimax-cn-coding-plan/MiniMax-M2.7', error: 'Agent opencode timed out', timedOut: true },
|
|
909
|
+
],
|
|
910
|
+
},
|
|
911
|
+
],
|
|
912
|
+
state: { ...createMockState(), specPath },
|
|
913
|
+
});
|
|
914
|
+
|
|
915
|
+
const decision = fs.readFileSync(decisionPath, 'utf8');
|
|
916
|
+
const scorecard = JSON.parse(fs.readFileSync(scorecardPath, 'utf8'));
|
|
917
|
+
|
|
918
|
+
assert.ok(decision.includes('reviewer_b'), 'decision should mention missing reviewer_b');
|
|
919
|
+
assert.ok(decision.includes('primary=opencode/test-model'), 'decision should include reviewer failure summary');
|
|
920
|
+
assert.ok(Array.isArray(scorecard.reviewerFailures), 'scorecard should persist reviewerFailures');
|
|
921
|
+
assert.equal(scorecard.reviewerFailures[0].role, 'reviewer_b');
|
|
922
|
+
assert.ok(scorecard.reviewerFailures[0].summary.includes('fallback=opencode/minimax-cn-coding-plan/MiniMax-M2.7'));
|
|
923
|
+
} finally {
|
|
924
|
+
cleanupTempDir(tmp);
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
|
|
928
|
+
test('behavior: scorecard.json validation.errorSummary matches role-level validation', () => {
|
|
929
|
+
const tmp = createTempDir();
|
|
930
|
+
try {
|
|
931
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
932
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
933
|
+
|
|
934
|
+
const specPath = createTempSpec(tmp);
|
|
935
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
936
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
937
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
938
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
939
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
940
|
+
|
|
941
|
+
// Write invalid producer and valid reviewers
|
|
942
|
+
fs.writeFileSync(producerPath, createInvalidProducer());
|
|
943
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('APPROVE'));
|
|
944
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('APPROVE'));
|
|
945
|
+
|
|
946
|
+
decideAndPersist({
|
|
947
|
+
runDir: tmp,
|
|
948
|
+
stageName: 'implement',
|
|
949
|
+
stageDir,
|
|
950
|
+
decisionPath,
|
|
951
|
+
scorecardPath,
|
|
952
|
+
producerPath,
|
|
953
|
+
reviewerAPath,
|
|
954
|
+
reviewerBPath,
|
|
955
|
+
globalReviewerPath: null,
|
|
956
|
+
state: { ...createMockState(), specPath },
|
|
957
|
+
});
|
|
958
|
+
|
|
959
|
+
// Verify scorecard.json was written
|
|
960
|
+
assert.ok(fs.existsSync(scorecardPath), 'scorecard.json should be written');
|
|
961
|
+
const scorecard = JSON.parse(fs.readFileSync(scorecardPath, 'utf8'));
|
|
962
|
+
|
|
963
|
+
// Verify validation structure
|
|
964
|
+
assert.ok(scorecard.validation, 'scorecard must have validation object');
|
|
965
|
+
assert.equal(scorecard.validation.valid, false, 'validation.valid must be false for invalid reports');
|
|
966
|
+
assert.ok(scorecard.validation.errorSummary, 'validation must have errorSummary when invalid');
|
|
967
|
+
assert.ok(scorecard.validation.producer, 'validation must have producer object');
|
|
968
|
+
assert.equal(scorecard.validation.producer.valid, false, 'producer validation must be false');
|
|
969
|
+
assert.ok(Array.isArray(scorecard.validation.producer.missingSections), 'producer must have missingSections array');
|
|
970
|
+
assert.ok(scorecard.validation.producer.missingSections.includes('SUMMARY'), 'missingSections must include SUMMARY');
|
|
971
|
+
|
|
972
|
+
// Verify errorSummary consistency
|
|
973
|
+
assert.ok(
|
|
974
|
+
scorecard.validation.errorSummary.includes('SUMMARY') || scorecard.validation.producer.errorSummary?.includes('SUMMARY'),
|
|
975
|
+
'errorSummary must reference the missing section'
|
|
976
|
+
);
|
|
977
|
+
} finally {
|
|
978
|
+
cleanupTempDir(tmp);
|
|
979
|
+
}
|
|
980
|
+
});
|
|
981
|
+
|
|
982
|
+
test('behavior: outputQuality and qualityReasons persisted to files', () => {
|
|
983
|
+
const tmp = createTempDir();
|
|
984
|
+
try {
|
|
985
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
986
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
987
|
+
|
|
988
|
+
const specPath = createTempSpec(tmp);
|
|
989
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
990
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
991
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
992
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
993
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
994
|
+
|
|
995
|
+
// Write valid reports
|
|
996
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
997
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('APPROVE'));
|
|
998
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('APPROVE'));
|
|
999
|
+
|
|
1000
|
+
decideAndPersist({
|
|
1001
|
+
runDir: tmp,
|
|
1002
|
+
stageName: 'implement',
|
|
1003
|
+
stageDir,
|
|
1004
|
+
decisionPath,
|
|
1005
|
+
scorecardPath,
|
|
1006
|
+
producerPath,
|
|
1007
|
+
reviewerAPath,
|
|
1008
|
+
reviewerBPath,
|
|
1009
|
+
globalReviewerPath: null,
|
|
1010
|
+
state: { ...createMockState(), specPath },
|
|
1011
|
+
});
|
|
1012
|
+
|
|
1013
|
+
// Verify decision.md has Output Quality
|
|
1014
|
+
const decision = fs.readFileSync(decisionPath, 'utf8');
|
|
1015
|
+
assert.ok(/Output Quality:/.test(decision), 'decision.md must have Output Quality field');
|
|
1016
|
+
|
|
1017
|
+
// Verify scorecard.json has outputQuality and qualityReasons
|
|
1018
|
+
const scorecard = JSON.parse(fs.readFileSync(scorecardPath, 'utf8'));
|
|
1019
|
+
assert.ok('outputQuality' in scorecard, 'scorecard must have outputQuality field');
|
|
1020
|
+
assert.ok(Array.isArray(scorecard.qualityReasons), 'scorecard must have qualityReasons array');
|
|
1021
|
+
} finally {
|
|
1022
|
+
cleanupTempDir(tmp);
|
|
1023
|
+
}
|
|
1024
|
+
});
|
|
1025
|
+
|
|
1026
|
+
test('behavior: handoff.json generated when outcome is revise', () => {
|
|
1027
|
+
const tmp = createTempDir();
|
|
1028
|
+
try {
|
|
1029
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
1030
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
1031
|
+
|
|
1032
|
+
const specPath = createTempSpec(tmp);
|
|
1033
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
1034
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
1035
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
1036
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
1037
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
1038
|
+
const handoffPath = path.join(stageDir, 'handoff.json');
|
|
1039
|
+
|
|
1040
|
+
// Write valid producer but reviewers request revise
|
|
1041
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
1042
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('REVISE'));
|
|
1043
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('REVISE'));
|
|
1044
|
+
|
|
1045
|
+
decideAndPersist({
|
|
1046
|
+
runDir: tmp,
|
|
1047
|
+
stageName: 'implement',
|
|
1048
|
+
stageDir,
|
|
1049
|
+
decisionPath,
|
|
1050
|
+
scorecardPath,
|
|
1051
|
+
producerPath,
|
|
1052
|
+
reviewerAPath,
|
|
1053
|
+
reviewerBPath,
|
|
1054
|
+
globalReviewerPath: null,
|
|
1055
|
+
state: { ...createMockState(), specPath },
|
|
1056
|
+
});
|
|
1057
|
+
|
|
1058
|
+
// Verify handoff.json was written
|
|
1059
|
+
assert.ok(fs.existsSync(handoffPath), 'handoff.json should be written when outcome is revise');
|
|
1060
|
+
|
|
1061
|
+
const handoff = JSON.parse(fs.readFileSync(handoffPath, 'utf8'));
|
|
1062
|
+
assert.ok(Array.isArray(handoff.blockers), 'handoff must have blockers array');
|
|
1063
|
+
assert.equal(handoff.stageName, 'implement', 'handoff must have correct stageName');
|
|
1064
|
+
assert.equal(handoff.round, 1, 'handoff must have correct round');
|
|
1065
|
+
assert.ok(handoff.generatedAt, 'handoff must have generatedAt timestamp');
|
|
1066
|
+
} finally {
|
|
1067
|
+
cleanupTempDir(tmp);
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
|
|
1071
|
+
test('behavior: handoff.json includes work-unit metadata and compact carry-forward summary', () => {
|
|
1072
|
+
const tmp = createTempDir();
|
|
1073
|
+
try {
|
|
1074
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
1075
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
1076
|
+
|
|
1077
|
+
const specPath = createTempSpec(tmp, 'work-unit-task', {
|
|
1078
|
+
id: 'work-unit-task',
|
|
1079
|
+
title: 'Work unit task',
|
|
1080
|
+
workUnits: {
|
|
1081
|
+
implement: [
|
|
1082
|
+
{
|
|
1083
|
+
workUnitId: 'wu-1',
|
|
1084
|
+
workUnitGoal: 'Tighten continuation context',
|
|
1085
|
+
allowedFiles: ['scripts/ai-sprint-orchestrator/run.mjs'],
|
|
1086
|
+
unitChecks: ['node --test run.test.mjs'],
|
|
1087
|
+
unitDeliverables: ['carry-forward summary'],
|
|
1088
|
+
unitSummary: 'Initial unit summary',
|
|
1089
|
+
carryForwardSummary: 'Initial carry-forward summary',
|
|
1090
|
+
},
|
|
1091
|
+
],
|
|
1092
|
+
},
|
|
1093
|
+
});
|
|
1094
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
1095
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
1096
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
1097
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
1098
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
1099
|
+
const handoffPath = path.join(stageDir, 'handoff.json');
|
|
1100
|
+
|
|
1101
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
1102
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('REVISE'));
|
|
1103
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('REVISE'));
|
|
1104
|
+
|
|
1105
|
+
decideAndPersist({
|
|
1106
|
+
runDir: tmp,
|
|
1107
|
+
stageName: 'implement',
|
|
1108
|
+
stageDir,
|
|
1109
|
+
decisionPath,
|
|
1110
|
+
scorecardPath,
|
|
1111
|
+
producerPath,
|
|
1112
|
+
reviewerAPath,
|
|
1113
|
+
reviewerBPath,
|
|
1114
|
+
globalReviewerPath: null,
|
|
1115
|
+
state: { ...createMockState(), specPath, currentWorkUnitIndex: 0 },
|
|
1116
|
+
});
|
|
1117
|
+
|
|
1118
|
+
const handoff = JSON.parse(fs.readFileSync(handoffPath, 'utf8'));
|
|
1119
|
+
assert.equal(handoff.workUnitId, 'wu-1');
|
|
1120
|
+
assert.equal(handoff.workUnitGoal, 'Tighten continuation context');
|
|
1121
|
+
assert.deepEqual(handoff.allowedFiles, ['scripts/ai-sprint-orchestrator/run.mjs']);
|
|
1122
|
+
assert.ok(typeof handoff.unitSummary === 'string' && handoff.unitSummary.length > 0);
|
|
1123
|
+
assert.ok(typeof handoff.carryForwardSummary === 'string' && handoff.carryForwardSummary.includes('Goal: Tighten continuation context'));
|
|
1124
|
+
} finally {
|
|
1125
|
+
cleanupTempDir(tmp);
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
|
|
1129
|
+
test('work-unit contract: getTaskSpec rejects missing minimum work-unit fields', () => {
|
|
1130
|
+
const tmp = createTempDir();
|
|
1131
|
+
try {
|
|
1132
|
+
const specPath = createTempSpec(tmp, 'invalid-work-unit', {
|
|
1133
|
+
id: 'invalid-work-unit',
|
|
1134
|
+
title: 'Invalid work unit',
|
|
1135
|
+
workUnits: {
|
|
1136
|
+
implement: [
|
|
1137
|
+
{
|
|
1138
|
+
workUnitId: 'wu-1',
|
|
1139
|
+
workUnitGoal: 'Incomplete unit',
|
|
1140
|
+
allowedFiles: ['scripts/ai-sprint-orchestrator/run.mjs'],
|
|
1141
|
+
unitChecks: ['node --test run.test.mjs'],
|
|
1142
|
+
unitDeliverables: ['handoff'],
|
|
1143
|
+
unitSummary: '',
|
|
1144
|
+
carryForwardSummary: '',
|
|
1145
|
+
},
|
|
1146
|
+
],
|
|
1147
|
+
},
|
|
1148
|
+
});
|
|
1149
|
+
|
|
1150
|
+
assert.throws(
|
|
1151
|
+
() => getTaskSpec('invalid-work-unit', specPath),
|
|
1152
|
+
/minimum work-unit contract/i,
|
|
1153
|
+
);
|
|
1154
|
+
} finally {
|
|
1155
|
+
cleanupTempDir(tmp);
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
|
|
1159
|
+
test('work-unit brief prefers compact carry-forward summary over prior decision text', () => {
|
|
1160
|
+
const spec = {
|
|
1161
|
+
title: 'Workflow v1.4 foundation',
|
|
1162
|
+
stageGoals: { implement: ['Connect work-unit brief'] },
|
|
1163
|
+
stageCriteria: { implement: {} },
|
|
1164
|
+
context: ['Stay within workflow-only scope.'],
|
|
1165
|
+
workUnits: {
|
|
1166
|
+
implement: [
|
|
1167
|
+
{
|
|
1168
|
+
workUnitId: 'wu-brief',
|
|
1169
|
+
workUnitGoal: 'Use compact carry-forward first',
|
|
1170
|
+
allowedFiles: ['scripts/ai-sprint-orchestrator/lib/task-specs.mjs'],
|
|
1171
|
+
unitChecks: ['node --test decision.test.mjs'],
|
|
1172
|
+
unitDeliverables: ['brief update'],
|
|
1173
|
+
unitSummary: 'Default unit summary',
|
|
1174
|
+
carryForwardSummary: 'Default compact carry-forward',
|
|
1175
|
+
},
|
|
1176
|
+
],
|
|
1177
|
+
},
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
const brief = buildStageBrief(
|
|
1181
|
+
spec,
|
|
1182
|
+
'implement',
|
|
1183
|
+
2,
|
|
1184
|
+
'VERY LONG PRIOR DECISION SHOULD NOT BE PRIMARY',
|
|
1185
|
+
{
|
|
1186
|
+
carryForwardSummary: 'Compact carry-forward summary wins.',
|
|
1187
|
+
unitSummary: 'Unit summary from previous unit.',
|
|
1188
|
+
},
|
|
1189
|
+
{ workUnitIndex: 0 },
|
|
1190
|
+
);
|
|
1191
|
+
|
|
1192
|
+
assert.ok(brief.includes('## Active Work Unit'));
|
|
1193
|
+
assert.ok(brief.includes('workUnitId: wu-brief'));
|
|
1194
|
+
assert.ok(brief.includes('Compact carry-forward summary wins.'));
|
|
1195
|
+
assert.ok(brief.includes('Use this compact carry-forward summary as the default continuation context.'));
|
|
1196
|
+
assert.equal(brief.includes('VERY LONG PRIOR DECISION SHOULD NOT BE PRIMARY'), false);
|
|
1197
|
+
});
|
|
1198
|
+
|
|
1199
|
+
test('behavior: handoff.json NOT generated when outcome is advance', () => {
|
|
1200
|
+
const tmp = createTempDir();
|
|
1201
|
+
try {
|
|
1202
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
1203
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
1204
|
+
|
|
1205
|
+
const specPath = createTempSpec(tmp);
|
|
1206
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
1207
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
1208
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
1209
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
1210
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
1211
|
+
const handoffPath = path.join(stageDir, 'handoff.json');
|
|
1212
|
+
|
|
1213
|
+
// Write valid reports with approvals
|
|
1214
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
1215
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('APPROVE'));
|
|
1216
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('APPROVE'));
|
|
1217
|
+
|
|
1218
|
+
decideAndPersist({
|
|
1219
|
+
runDir: tmp,
|
|
1220
|
+
stageName: 'implement',
|
|
1221
|
+
stageDir,
|
|
1222
|
+
decisionPath,
|
|
1223
|
+
scorecardPath,
|
|
1224
|
+
producerPath,
|
|
1225
|
+
reviewerAPath,
|
|
1226
|
+
reviewerBPath,
|
|
1227
|
+
globalReviewerPath: null,
|
|
1228
|
+
state: { ...createMockState(), specPath },
|
|
1229
|
+
});
|
|
1230
|
+
|
|
1231
|
+
// Verify handoff.json was NOT written
|
|
1232
|
+
assert.equal(fs.existsSync(handoffPath), false, 'handoff.json should NOT be written when outcome is advance');
|
|
1233
|
+
} finally {
|
|
1234
|
+
cleanupTempDir(tmp);
|
|
1235
|
+
}
|
|
1236
|
+
});
|
|
1237
|
+
|
|
1238
|
+
test('behavior: formatRoleValidation produces correct output', () => {
|
|
1239
|
+
// Test valid case
|
|
1240
|
+
const validResult = formatRoleValidation('Producer', { valid: true });
|
|
1241
|
+
assert.deepEqual(validResult, ['- Producer: [OK]']);
|
|
1242
|
+
|
|
1243
|
+
// Test invalid case with missing sections
|
|
1244
|
+
const invalidResult = formatRoleValidation('Producer', {
|
|
1245
|
+
valid: false,
|
|
1246
|
+
missingSections: ['SUMMARY', 'CHANGES'],
|
|
1247
|
+
invalidFields: ['CHECKS: invalid format'],
|
|
1248
|
+
});
|
|
1249
|
+
assert.ok(invalidResult.length > 0, 'should produce output for invalid result');
|
|
1250
|
+
assert.ok(invalidResult[0].includes('[FAIL]'), 'should show failure marker');
|
|
1251
|
+
assert.ok(invalidResult[0].includes('missing: SUMMARY, CHANGES'), 'should show missing sections');
|
|
1252
|
+
assert.ok(invalidResult[0].includes('invalid: CHECKS: invalid format'), 'should show invalid fields');
|
|
1253
|
+
});
|
|
1254
|
+
|
|
1255
|
+
test('behavior: decision.md has correct structure with all sections', () => {
|
|
1256
|
+
const tmp = createTempDir();
|
|
1257
|
+
try {
|
|
1258
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
1259
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
1260
|
+
|
|
1261
|
+
const specPath = createTempSpec(tmp);
|
|
1262
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
1263
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
1264
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
1265
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
1266
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
1267
|
+
|
|
1268
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
1269
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('APPROVE'));
|
|
1270
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('APPROVE'));
|
|
1271
|
+
|
|
1272
|
+
decideAndPersist({
|
|
1273
|
+
runDir: tmp,
|
|
1274
|
+
stageName: 'implement',
|
|
1275
|
+
stageDir,
|
|
1276
|
+
decisionPath,
|
|
1277
|
+
scorecardPath,
|
|
1278
|
+
producerPath,
|
|
1279
|
+
reviewerAPath,
|
|
1280
|
+
reviewerBPath,
|
|
1281
|
+
globalReviewerPath: null,
|
|
1282
|
+
state: { ...createMockState(), specPath },
|
|
1283
|
+
});
|
|
1284
|
+
|
|
1285
|
+
const decision = fs.readFileSync(decisionPath, 'utf8');
|
|
1286
|
+
|
|
1287
|
+
// Verify all expected sections exist
|
|
1288
|
+
assert.ok(/^# Decision/m.test(decision), 'must have Decision header');
|
|
1289
|
+
assert.ok(/## Summary/.test(decision), 'must have Summary section');
|
|
1290
|
+
assert.ok(/## Validation/.test(decision), 'must have Validation section');
|
|
1291
|
+
assert.ok(/## Blockers/.test(decision), 'must have Blockers section');
|
|
1292
|
+
assert.ok(/## Metrics/.test(decision), 'must have Metrics section');
|
|
1293
|
+
assert.ok(/## Files/.test(decision), 'must have Files section');
|
|
1294
|
+
} finally {
|
|
1295
|
+
cleanupTempDir(tmp);
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
|
|
1299
|
+
test('persistence: nextRunRecommendation written to decision.md', () => {
|
|
1300
|
+
const tmp = createTempDir();
|
|
1301
|
+
try {
|
|
1302
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
1303
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
1304
|
+
|
|
1305
|
+
const specPath = createTempSpec(tmp);
|
|
1306
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
1307
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
1308
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
1309
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
1310
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
1311
|
+
|
|
1312
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
1313
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('REVISE')); // Will produce NEEDS_WORK
|
|
1314
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('APPROVE'));
|
|
1315
|
+
|
|
1316
|
+
decideAndPersist({
|
|
1317
|
+
runDir: tmp,
|
|
1318
|
+
stageName: 'implement',
|
|
1319
|
+
stageDir,
|
|
1320
|
+
decisionPath,
|
|
1321
|
+
scorecardPath,
|
|
1322
|
+
producerPath,
|
|
1323
|
+
reviewerAPath,
|
|
1324
|
+
reviewerBPath,
|
|
1325
|
+
globalReviewerPath: null,
|
|
1326
|
+
state: { ...createMockState(), specPath },
|
|
1327
|
+
});
|
|
1328
|
+
|
|
1329
|
+
const decision = fs.readFileSync(decisionPath, 'utf8');
|
|
1330
|
+
// For NEEDS_WORK outcome, nextRunRecommendation should be present
|
|
1331
|
+
assert.ok(/## Next Run Recommendation/.test(decision), 'must have Next Run Recommendation section');
|
|
1332
|
+
assert.ok(/Type:/.test(decision), 'must have recommendation type');
|
|
1333
|
+
} finally {
|
|
1334
|
+
cleanupTempDir(tmp);
|
|
1335
|
+
}
|
|
1336
|
+
});
|
|
1337
|
+
|
|
1338
|
+
test('persistence: nextRunRecommendation written to scorecard.json', () => {
|
|
1339
|
+
const tmp = createTempDir();
|
|
1340
|
+
try {
|
|
1341
|
+
const stageDir = path.join(tmp, 'stages', 'implement');
|
|
1342
|
+
fs.mkdirSync(stageDir, { recursive: true });
|
|
1343
|
+
|
|
1344
|
+
const specPath = createTempSpec(tmp);
|
|
1345
|
+
const producerPath = path.join(stageDir, 'producer.md');
|
|
1346
|
+
const reviewerAPath = path.join(stageDir, 'reviewer-a.md');
|
|
1347
|
+
const reviewerBPath = path.join(stageDir, 'reviewer-b.md');
|
|
1348
|
+
const decisionPath = path.join(stageDir, 'decision.md');
|
|
1349
|
+
const scorecardPath = path.join(stageDir, 'scorecard.json');
|
|
1350
|
+
|
|
1351
|
+
fs.writeFileSync(producerPath, createValidProducer());
|
|
1352
|
+
fs.writeFileSync(reviewerAPath, createValidReviewer('REVISE'));
|
|
1353
|
+
fs.writeFileSync(reviewerBPath, createValidReviewer('APPROVE'));
|
|
1354
|
+
|
|
1355
|
+
decideAndPersist({
|
|
1356
|
+
runDir: tmp,
|
|
1357
|
+
stageName: 'implement',
|
|
1358
|
+
stageDir,
|
|
1359
|
+
decisionPath,
|
|
1360
|
+
scorecardPath,
|
|
1361
|
+
producerPath,
|
|
1362
|
+
reviewerAPath,
|
|
1363
|
+
reviewerBPath,
|
|
1364
|
+
globalReviewerPath: null,
|
|
1365
|
+
state: { ...createMockState(), specPath },
|
|
1366
|
+
});
|
|
1367
|
+
|
|
1368
|
+
const scorecard = JSON.parse(fs.readFileSync(scorecardPath, 'utf8'));
|
|
1369
|
+
assert.ok(scorecard.nextRunRecommendation !== undefined, 'scorecard must have nextRunRecommendation field');
|
|
1370
|
+
assert.ok(scorecard.nextRunRecommendation !== null, 'nextRunRecommendation should not be null');
|
|
1371
|
+
assert.ok(scorecard.nextRunRecommendation.type, 'nextRunRecommendation must have type');
|
|
1372
|
+
assert.ok(Array.isArray(scorecard.nextRunRecommendation.reasons), 'nextRunRecommendation must have reasons array');
|
|
1373
|
+
} finally {
|
|
1374
|
+
cleanupTempDir(tmp);
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
|
|
1378
|
+
test('acceptance checklist: file exists and has correct content', () => {
|
|
1379
|
+
const checklistPath = path.resolve(__dirname, '..', 'references', 'workflow-v1-acceptance-checklist.md');
|
|
1380
|
+
assert.ok(fs.existsSync(checklistPath), 'acceptance checklist file must exist');
|
|
1381
|
+
|
|
1382
|
+
const content = fs.readFileSync(checklistPath, 'utf8');
|
|
1383
|
+
// Must not contain the deprecated --spec flag (replaced by --task / --task-spec)
|
|
1384
|
+
assert.ok(!content.includes('--spec '), 'must NOT use deprecated --spec flag');
|
|
1385
|
+
// Must contain the correct command patterns
|
|
1386
|
+
assert.ok(content.includes('--task'), 'must use --task flag');
|
|
1387
|
+
// Must have run result recording structure
|
|
1388
|
+
assert.ok(content.includes('runId') || content.includes('run-id') || content.includes('Run ID'), 'must have run-id field');
|
|
1389
|
+
assert.ok(content.includes('outputQuality'), 'must mention outputQuality');
|
|
1390
|
+
assert.ok(content.includes('nextRunRecommendation'), 'must mention nextRunRecommendation');
|
|
1391
|
+
// Must have complete failure classification
|
|
1392
|
+
assert.ok(content.includes('workflow bug'), 'must classify workflow bug');
|
|
1393
|
+
assert.ok(content.includes('agent behavior'), 'must classify agent behavior');
|
|
1394
|
+
assert.ok(content.includes('environment'), 'must classify environment issues');
|
|
1395
|
+
assert.ok(content.includes('sample-spec') || content.includes('spec issue'), 'must classify spec issues');
|
|
1396
|
+
});
|
|
1397
|
+
|
|
1398
|
+
test('preflight check validates acpx not agent names', () => {
|
|
1399
|
+
// The preflight code in run.mjs should check that acpx is available,
|
|
1400
|
+
// NOT that agent names like "opencode" or "claude" exist as shell binaries.
|
|
1401
|
+
const runPath = path.resolve(__dirname, '..', 'scripts', 'run.mjs');
|
|
1402
|
+
const content = fs.readFileSync(runPath, 'utf8');
|
|
1403
|
+
// Should NOT use "which" with agent names
|
|
1404
|
+
assert.ok(!content.includes("'which', [agentName]"), 'preflight must not check agent names with which');
|
|
1405
|
+
assert.ok(!content.includes("'which', [agent"), 'preflight must not check agent binary with which');
|
|
1406
|
+
// Should check acpx availability instead
|
|
1407
|
+
assert.ok(content.includes('acpx'), 'preflight should reference acpx');
|
|
1408
|
+
});
|
|
1409
|
+
|
|
1410
|
+
test('cleanupAcpxOrphans does not fallback to spec directory', () => {
|
|
1411
|
+
const runPath = path.resolve(__dirname, '..', 'scripts', 'run.mjs');
|
|
1412
|
+
const content = fs.readFileSync(runPath, 'utf8');
|
|
1413
|
+
// Must NOT use path.dirname(state.specPath) as workspace fallback
|
|
1414
|
+
assert.ok(!content.includes('path.dirname(state.specPath)'),
|
|
1415
|
+
'cleanupAcpxOrphans must not fallback to spec file directory');
|
|
1416
|
+
// Must use workspace or worktree only
|
|
1417
|
+
assert.ok(content.includes('spec.workspace') || content.includes('spec?.workspace'),
|
|
1418
|
+
'cleanupAcpxOrphans should reference spec.workspace');
|
|
1419
|
+
});
|
|
1420
|
+
|
|
1421
|
+
test('Windows cmd.exe invocations use /s /c with quoted env vars for space-safe paths', () => {
|
|
1422
|
+
const runPath = path.resolve(__dirname, '..', 'scripts', 'run.mjs');
|
|
1423
|
+
const content = fs.readFileSync(runPath, 'utf8');
|
|
1424
|
+
const winCmdPatterns = content.match(/\/d',\s*'\/[^']*',\s*'[^']*%AI_SPRINT/g) || [];
|
|
1425
|
+
for (const pat of winCmdPatterns) {
|
|
1426
|
+
assert.ok(pat.includes('/s'), `Windows cmd.exe pattern must include /s flag: ${pat}`);
|
|
1427
|
+
}
|
|
1428
|
+
assert.ok(!content.includes("'/d', '/c',"), 'must not use /d /c without /s flag');
|
|
1429
|
+
const envVarRefs = content.match(/%AI_SPRINT_\w+%/g) || [];
|
|
1430
|
+
for (const ref of envVarRefs) {
|
|
1431
|
+
const idx = content.indexOf(ref);
|
|
1432
|
+
const before = content.slice(Math.max(0, idx - 2), idx);
|
|
1433
|
+
assert.ok(before.endsWith('"'), `env var ${ref} must be preceded by a double-quote for space-safe expansion`);
|
|
1434
|
+
}
|
|
1435
|
+
});
|