@rpamis/comet 0.4.0-beta.1 → 0.4.0-beta.11
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/LICENSE +21 -21
- package/README.md +279 -113
- package/assets/manifest.json +17 -5
- package/assets/skills/comet/SKILL.md +17 -256
- package/assets/skills/comet/reference/auto-transition.md +1 -1
- package/assets/skills/comet/reference/classic-layout.md +34 -0
- package/assets/skills/comet/reference/comet-yaml-fields.md +14 -8
- package/assets/skills/comet/reference/context-recovery.md +14 -4
- package/assets/skills/comet/reference/decision-point.md +11 -0
- package/assets/skills/comet/reference/file-structure.md +2 -2
- package/assets/skills/comet/reference/intent-frame.md +3 -3
- package/assets/skills/comet/reference/scripts.md +47 -15
- package/assets/skills/comet/reference/subagent-dispatch.md +8 -7
- package/assets/skills/comet/rules/comet-phase-guard.en.md +34 -31
- package/assets/skills/comet/rules/comet-phase-guard.md +34 -32
- package/assets/skills/comet/rules/comet-workflow-guard.en.md +32 -0
- package/assets/skills/comet/rules/comet-workflow-guard.md +32 -0
- package/assets/skills/comet/scripts/comet-entry-runtime.mjs +8074 -0
- package/assets/skills/comet/scripts/comet-hook-router.mjs +12086 -0
- package/assets/skills/comet/scripts/comet-resume-probe.mjs +3 -0
- package/assets/skills/comet/scripts/comet-runtime.mjs +10449 -4105
- package/assets/skills/comet-any/SKILL.md +5 -5
- package/assets/skills/comet-any/reference/authored-zone-example.md +10 -5
- package/assets/skills/comet-any/reference/authoring-subagents.md +1 -1
- package/assets/skills/comet-any/reference/bundle-authoring.md +2 -2
- package/assets/skills/comet-any/reference/subagents/pause-points-author.md +14 -11
- package/assets/skills/comet-any/reference/subagents/reference-author.md +1 -1
- package/assets/skills/comet-any/reference/subagents/script-author.md +1 -1
- package/assets/skills/comet-any/reference/subagents/skill-core-author.md +1 -1
- package/assets/skills/comet-any/reference/subagents/skill-reviewer.md +4 -2
- package/assets/skills/comet-any/reference/subagents/workflow-entry-author.md +8 -7
- package/assets/skills/comet-archive/SKILL.md +69 -26
- package/assets/skills/comet-build/SKILL.md +77 -58
- package/assets/skills/comet-classic/SKILL.md +295 -0
- package/assets/skills/comet-design/SKILL.md +40 -36
- package/assets/skills/comet-hotfix/SKILL.md +57 -35
- package/assets/skills/comet-native/SKILL.md +132 -0
- package/assets/skills/comet-native/reference/artifacts.md +141 -0
- package/assets/skills/comet-native/reference/clarification.md +54 -0
- package/assets/skills/comet-native/reference/commands.md +168 -0
- package/assets/skills/comet-native/reference/recovery.md +96 -0
- package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +4 -0
- package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +34165 -0
- package/assets/skills/comet-open/SKILL.md +119 -59
- package/assets/skills/comet-tweak/SKILL.md +52 -27
- package/assets/skills/comet-verify/SKILL.md +65 -73
- package/assets/skills-zh/comet/SKILL.md +17 -244
- package/assets/skills-zh/comet/reference/auto-transition.md +1 -1
- package/assets/skills-zh/comet/reference/classic-layout.md +34 -0
- package/assets/skills-zh/comet/reference/comet-yaml-fields.md +13 -8
- package/assets/skills-zh/comet/reference/context-recovery.md +14 -4
- package/assets/skills-zh/comet/reference/decision-point.md +11 -0
- package/assets/skills-zh/comet/reference/file-structure.md +2 -2
- package/assets/skills-zh/comet/reference/intent-frame.md +3 -3
- package/assets/skills-zh/comet/reference/scripts.md +47 -15
- package/assets/skills-zh/comet/reference/subagent-dispatch.md +8 -7
- package/assets/skills-zh/comet-any/SKILL.md +5 -5
- package/assets/skills-zh/comet-any/reference/authored-zone-example.md +10 -5
- package/assets/skills-zh/comet-any/reference/authoring-subagents.md +1 -1
- package/assets/skills-zh/comet-any/reference/bundle-authoring.md +2 -2
- package/assets/skills-zh/comet-any/reference/subagents/pause-points-author.md +14 -12
- package/assets/skills-zh/comet-any/reference/subagents/reference-author.md +1 -1
- package/assets/skills-zh/comet-any/reference/subagents/script-author.md +1 -1
- package/assets/skills-zh/comet-any/reference/subagents/skill-core-author.md +1 -1
- package/assets/skills-zh/comet-any/reference/subagents/skill-reviewer.md +4 -2
- package/assets/skills-zh/comet-any/reference/subagents/workflow-entry-author.md +8 -7
- package/assets/skills-zh/comet-archive/SKILL.md +69 -26
- package/assets/skills-zh/comet-build/SKILL.md +77 -58
- package/assets/skills-zh/comet-classic/SKILL.md +283 -0
- package/assets/skills-zh/comet-design/SKILL.md +40 -36
- package/assets/skills-zh/comet-hotfix/SKILL.md +56 -34
- package/assets/skills-zh/comet-native/SKILL.md +132 -0
- package/assets/skills-zh/comet-native/reference/artifacts.md +141 -0
- package/assets/skills-zh/comet-native/reference/clarification.md +54 -0
- package/assets/skills-zh/comet-native/reference/commands.md +168 -0
- package/assets/skills-zh/comet-native/reference/recovery.md +96 -0
- package/assets/skills-zh/comet-open/SKILL.md +118 -58
- package/assets/skills-zh/comet-tweak/SKILL.md +51 -26
- package/assets/skills-zh/comet-verify/SKILL.md +65 -73
- package/dist/app/cli/comet-banner.d.ts +25 -0
- package/dist/app/cli/comet-banner.d.ts.map +1 -0
- package/dist/app/cli/comet-banner.js +265 -0
- package/dist/app/cli/comet-banner.js.map +1 -0
- package/dist/app/cli/index.js +113 -16
- package/dist/app/cli/index.js.map +1 -1
- package/dist/app/commands/classic.d.ts +5 -0
- package/dist/app/commands/classic.d.ts.map +1 -0
- package/dist/app/commands/classic.js +32 -0
- package/dist/app/commands/classic.js.map +1 -0
- package/dist/app/commands/command-result.d.ts +6 -0
- package/dist/app/commands/command-result.d.ts.map +1 -0
- package/dist/app/commands/command-result.js +4 -0
- package/dist/app/commands/command-result.js.map +1 -0
- package/dist/app/commands/doctor.d.ts +4 -0
- package/dist/app/commands/doctor.d.ts.map +1 -1
- package/dist/app/commands/doctor.js +926 -95
- package/dist/app/commands/doctor.js.map +1 -1
- package/dist/app/commands/eval.d.ts +3 -1
- package/dist/app/commands/eval.d.ts.map +1 -1
- package/dist/app/commands/eval.js +80 -22
- package/dist/app/commands/eval.js.map +1 -1
- package/dist/app/commands/i18n.d.ts +1 -1
- package/dist/app/commands/i18n.d.ts.map +1 -1
- package/dist/app/commands/i18n.js +18 -6
- package/dist/app/commands/i18n.js.map +1 -1
- package/dist/app/commands/init.d.ts +13 -3
- package/dist/app/commands/init.d.ts.map +1 -1
- package/dist/app/commands/init.js +561 -72
- package/dist/app/commands/init.js.map +1 -1
- package/dist/app/commands/native.d.ts +2 -0
- package/dist/app/commands/native.d.ts.map +1 -0
- package/dist/app/commands/native.js +10 -0
- package/dist/app/commands/native.js.map +1 -0
- package/dist/app/commands/project-scope-selection.d.ts +13 -0
- package/dist/app/commands/project-scope-selection.d.ts.map +1 -0
- package/dist/app/commands/project-scope-selection.js +35 -0
- package/dist/app/commands/project-scope-selection.js.map +1 -0
- package/dist/app/commands/resume-probe.d.ts +12 -0
- package/dist/app/commands/resume-probe.d.ts.map +1 -0
- package/dist/app/commands/resume-probe.js +68 -0
- package/dist/app/commands/resume-probe.js.map +1 -0
- package/dist/app/commands/status.d.ts.map +1 -1
- package/dist/app/commands/status.js +70 -104
- package/dist/app/commands/status.js.map +1 -1
- package/dist/app/commands/uninstall.d.ts +5 -0
- package/dist/app/commands/uninstall.d.ts.map +1 -1
- package/dist/app/commands/uninstall.js +264 -53
- package/dist/app/commands/uninstall.js.map +1 -1
- package/dist/app/commands/update.d.ts +29 -5
- package/dist/app/commands/update.d.ts.map +1 -1
- package/dist/app/commands/update.js +1431 -127
- package/dist/app/commands/update.js.map +1 -1
- package/dist/app/commands/workflow.d.ts +6 -0
- package/dist/app/commands/workflow.d.ts.map +1 -0
- package/dist/app/commands/workflow.js +11 -0
- package/dist/app/commands/workflow.js.map +1 -0
- package/dist/config/repository-layout.json +29 -3
- package/dist/domains/bundle/bundle-platform.d.ts +1 -0
- package/dist/domains/bundle/bundle-platform.d.ts.map +1 -1
- package/dist/domains/bundle/bundle-platform.js +10 -4
- package/dist/domains/bundle/bundle-platform.js.map +1 -1
- package/dist/domains/bundle/eval-manifest-runtime.d.ts +8 -0
- package/dist/domains/bundle/eval-manifest-runtime.d.ts.map +1 -0
- package/dist/domains/bundle/eval-manifest-runtime.js +118 -0
- package/dist/domains/bundle/eval-manifest-runtime.js.map +1 -0
- package/dist/domains/bundle/eval-run-result.d.ts +22 -0
- package/dist/domains/bundle/eval-run-result.d.ts.map +1 -0
- package/dist/domains/bundle/eval-run-result.js +207 -0
- package/dist/domains/bundle/eval-run-result.js.map +1 -0
- package/dist/domains/bundle/eval.d.ts.map +1 -1
- package/dist/domains/bundle/eval.js +21 -24
- package/dist/domains/bundle/eval.js.map +1 -1
- package/dist/domains/bundle/factory.d.ts.map +1 -1
- package/dist/domains/bundle/factory.js +2 -9
- package/dist/domains/bundle/factory.js.map +1 -1
- package/dist/domains/bundle/review-summary.js +1 -1
- package/dist/domains/bundle/review-summary.js.map +1 -1
- package/dist/domains/bundle/state.d.ts.map +1 -1
- package/dist/domains/bundle/state.js +117 -2
- package/dist/domains/bundle/state.js.map +1 -1
- package/dist/domains/bundle/types.d.ts +1 -1
- package/dist/domains/bundle/types.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-archive-pointer.d.ts +8 -0
- package/dist/domains/comet-classic/classic-archive-pointer.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-archive-pointer.js +66 -0
- package/dist/domains/comet-classic/classic-archive-pointer.js.map +1 -0
- package/dist/domains/comet-classic/classic-archive.d.ts +1 -0
- package/dist/domains/comet-classic/classic-archive.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-archive.js +205 -114
- package/dist/domains/comet-classic/classic-archive.js.map +1 -1
- package/dist/domains/comet-classic/classic-branch-binding.d.ts +51 -0
- package/dist/domains/comet-classic/classic-branch-binding.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-branch-binding.js +107 -0
- package/dist/domains/comet-classic/classic-branch-binding.js.map +1 -0
- package/dist/domains/comet-classic/classic-cli.d.ts +3 -1
- package/dist/domains/comet-classic/classic-cli.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-cli.js +12 -3
- package/dist/domains/comet-classic/classic-cli.js.map +1 -1
- package/dist/domains/comet-classic/classic-command-checks.d.ts +20 -0
- package/dist/domains/comet-classic/classic-command-checks.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-command-checks.js +94 -0
- package/dist/domains/comet-classic/classic-command-checks.js.map +1 -0
- package/dist/domains/comet-classic/classic-command-context.d.ts +12 -0
- package/dist/domains/comet-classic/classic-command-context.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-command-context.js +42 -0
- package/dist/domains/comet-classic/classic-command-context.js.map +1 -0
- package/dist/domains/comet-classic/classic-current-change.d.ts +17 -0
- package/dist/domains/comet-classic/classic-current-change.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-current-change.js +112 -0
- package/dist/domains/comet-classic/classic-current-change.js.map +1 -0
- package/dist/domains/comet-classic/classic-diagnostics.d.ts +2 -1
- package/dist/domains/comet-classic/classic-diagnostics.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-diagnostics.js +54 -1
- package/dist/domains/comet-classic/classic-diagnostics.js.map +1 -1
- package/dist/domains/comet-classic/classic-evidence.d.ts +1 -0
- package/dist/domains/comet-classic/classic-evidence.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-evidence.js +101 -37
- package/dist/domains/comet-classic/classic-evidence.js.map +1 -1
- package/dist/domains/comet-classic/classic-guard.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-guard.js +229 -208
- package/dist/domains/comet-classic/classic-guard.js.map +1 -1
- package/dist/domains/comet-classic/classic-handoff.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-handoff.js +155 -107
- package/dist/domains/comet-classic/classic-handoff.js.map +1 -1
- package/dist/domains/comet-classic/classic-hook-guard.d.ts +9 -0
- package/dist/domains/comet-classic/classic-hook-guard.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-hook-guard.js +406 -54
- package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
- package/dist/domains/comet-classic/classic-layout-initialization.d.ts +86 -0
- package/dist/domains/comet-classic/classic-layout-initialization.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-layout-initialization.js +813 -0
- package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -0
- package/dist/domains/comet-classic/classic-layout.d.ts +47 -0
- package/dist/domains/comet-classic/classic-layout.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-layout.js +227 -0
- package/dist/domains/comet-classic/classic-layout.js.map +1 -0
- package/dist/domains/comet-classic/classic-migrate.d.ts +4 -0
- package/dist/domains/comet-classic/classic-migrate.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-migrate.js +8 -12
- package/dist/domains/comet-classic/classic-migrate.js.map +1 -1
- package/dist/domains/comet-classic/classic-openspec-command.d.ts +4 -0
- package/dist/domains/comet-classic/classic-openspec-command.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-openspec-command.js +45 -0
- package/dist/domains/comet-classic/classic-openspec-command.js.map +1 -0
- package/dist/domains/comet-classic/classic-openspec-root.d.ts +13 -0
- package/dist/domains/comet-classic/classic-openspec-root.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-openspec-root.js +47 -0
- package/dist/domains/comet-classic/classic-openspec-root.js.map +1 -0
- package/dist/domains/comet-classic/classic-paths.d.ts +11 -1
- package/dist/domains/comet-classic/classic-paths.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-paths.js +87 -35
- package/dist/domains/comet-classic/classic-paths.js.map +1 -1
- package/dist/domains/comet-classic/classic-project-config.d.ts +16 -0
- package/dist/domains/comet-classic/classic-project-config.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-project-config.js +36 -0
- package/dist/domains/comet-classic/classic-project-config.js.map +1 -0
- package/dist/domains/comet-classic/classic-protected-path.d.ts +39 -0
- package/dist/domains/comet-classic/classic-protected-path.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-protected-path.js +69 -0
- package/dist/domains/comet-classic/classic-protected-path.js.map +1 -0
- package/dist/domains/comet-classic/classic-resolver.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-resolver.js +4 -4
- package/dist/domains/comet-classic/classic-resolver.js.map +1 -1
- package/dist/domains/comet-classic/classic-resume-probe-command.d.ts +3 -0
- package/dist/domains/comet-classic/classic-resume-probe-command.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-resume-probe-command.js +59 -0
- package/dist/domains/comet-classic/classic-resume-probe-command.js.map +1 -0
- package/dist/domains/comet-classic/classic-resume-probe-entry.d.ts +2 -0
- package/dist/domains/comet-classic/classic-resume-probe-entry.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-resume-probe-entry.js +4 -0
- package/dist/domains/comet-classic/classic-resume-probe-entry.js.map +1 -0
- package/dist/domains/comet-classic/classic-resume-probe.d.ts +29 -0
- package/dist/domains/comet-classic/classic-resume-probe.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-resume-probe.js +406 -0
- package/dist/domains/comet-classic/classic-resume-probe.js.map +1 -0
- package/dist/domains/comet-classic/classic-root-command.d.ts +5 -0
- package/dist/domains/comet-classic/classic-root-command.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-root-command.js +84 -0
- package/dist/domains/comet-classic/classic-root-command.js.map +1 -0
- package/dist/domains/comet-classic/classic-root-move.d.ts +119 -0
- package/dist/domains/comet-classic/classic-root-move.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-root-move.js +1737 -0
- package/dist/domains/comet-classic/classic-root-move.js.map +1 -0
- package/dist/domains/comet-classic/classic-runtime-run.d.ts +2 -1
- package/dist/domains/comet-classic/classic-runtime-run.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-runtime-run.js +278 -5
- package/dist/domains/comet-classic/classic-runtime-run.js.map +1 -1
- package/dist/domains/comet-classic/classic-state-command.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state-command.js +342 -87
- package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
- package/dist/domains/comet-classic/classic-state-events.d.ts +1 -1
- package/dist/domains/comet-classic/classic-state-events.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state-events.js +3 -4
- package/dist/domains/comet-classic/classic-state-events.js.map +1 -1
- package/dist/domains/comet-classic/classic-state.d.ts +6 -4
- package/dist/domains/comet-classic/classic-state.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state.js +20 -7
- package/dist/domains/comet-classic/classic-state.js.map +1 -1
- package/dist/domains/comet-classic/classic-store.d.ts +6 -1
- package/dist/domains/comet-classic/classic-store.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-store.js +36 -23
- package/dist/domains/comet-classic/classic-store.js.map +1 -1
- package/dist/domains/comet-classic/classic-transitions.d.ts +1 -1
- package/dist/domains/comet-classic/classic-transitions.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-transitions.js +37 -3
- package/dist/domains/comet-classic/classic-transitions.js.map +1 -1
- package/dist/domains/comet-classic/classic-validate-command.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-validate-command.js +40 -20
- package/dist/domains/comet-classic/classic-validate-command.js.map +1 -1
- package/dist/domains/comet-classic/index.d.ts +3 -0
- package/dist/domains/comet-classic/index.d.ts.map +1 -1
- package/dist/domains/comet-classic/index.js +3 -0
- package/dist/domains/comet-classic/index.js.map +1 -1
- package/dist/domains/comet-entry/current-selection-repair.d.ts +17 -0
- package/dist/domains/comet-entry/current-selection-repair.d.ts.map +1 -0
- package/dist/domains/comet-entry/current-selection-repair.js +19 -0
- package/dist/domains/comet-entry/current-selection-repair.js.map +1 -0
- package/dist/domains/comet-entry/current-selection.d.ts +28 -0
- package/dist/domains/comet-entry/current-selection.d.ts.map +1 -0
- package/dist/domains/comet-entry/current-selection.js +114 -0
- package/dist/domains/comet-entry/current-selection.js.map +1 -0
- package/dist/domains/comet-entry/entry-runtime-entry.d.ts +2 -0
- package/dist/domains/comet-entry/entry-runtime-entry.d.ts.map +1 -0
- package/dist/domains/comet-entry/entry-runtime-entry.js +3 -0
- package/dist/domains/comet-entry/entry-runtime-entry.js.map +1 -0
- package/dist/domains/comet-entry/entry-runtime.d.ts +7 -0
- package/dist/domains/comet-entry/entry-runtime.d.ts.map +1 -0
- package/dist/domains/comet-entry/entry-runtime.js +55 -0
- package/dist/domains/comet-entry/entry-runtime.js.map +1 -0
- package/dist/domains/comet-entry/hook-adapter.d.ts +6 -0
- package/dist/domains/comet-entry/hook-adapter.d.ts.map +1 -0
- package/dist/domains/comet-entry/hook-adapter.js +202 -0
- package/dist/domains/comet-entry/hook-adapter.js.map +1 -0
- package/dist/domains/comet-entry/hook-router-entry.d.ts +8 -0
- package/dist/domains/comet-entry/hook-router-entry.d.ts.map +1 -0
- package/dist/domains/comet-entry/hook-router-entry.js +88 -0
- package/dist/domains/comet-entry/hook-router-entry.js.map +1 -0
- package/dist/domains/comet-entry/hook-router.d.ts +32 -0
- package/dist/domains/comet-entry/hook-router.d.ts.map +1 -0
- package/dist/domains/comet-entry/hook-router.js +133 -0
- package/dist/domains/comet-entry/hook-router.js.map +1 -0
- package/dist/domains/comet-entry/hook-types.d.ts +20 -0
- package/dist/domains/comet-entry/hook-types.d.ts.map +1 -0
- package/dist/domains/comet-entry/hook-types.js +2 -0
- package/dist/domains/comet-entry/hook-types.js.map +1 -0
- package/dist/domains/comet-entry/init-workflow.d.ts +19 -0
- package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -0
- package/dist/domains/comet-entry/init-workflow.js +132 -0
- package/dist/domains/comet-entry/init-workflow.js.map +1 -0
- package/dist/domains/comet-entry/project-status.d.ts +3 -0
- package/dist/domains/comet-entry/project-status.d.ts.map +1 -0
- package/dist/domains/comet-entry/project-status.js +291 -0
- package/dist/domains/comet-entry/project-status.js.map +1 -0
- package/dist/domains/comet-entry/resolve-entry.d.ts +3 -0
- package/dist/domains/comet-entry/resolve-entry.d.ts.map +1 -0
- package/dist/domains/comet-entry/resolve-entry.js +18 -0
- package/dist/domains/comet-entry/resolve-entry.js.map +1 -0
- package/dist/domains/comet-entry/resume-probe.d.ts +34 -0
- package/dist/domains/comet-entry/resume-probe.d.ts.map +1 -0
- package/dist/domains/comet-entry/resume-probe.js +462 -0
- package/dist/domains/comet-entry/resume-probe.js.map +1 -0
- package/dist/domains/comet-entry/types.d.ts +60 -0
- package/dist/domains/comet-entry/types.d.ts.map +1 -0
- package/dist/domains/comet-entry/types.js +2 -0
- package/dist/domains/comet-entry/types.js.map +1 -0
- package/dist/domains/comet-entry/workflow-resolution.d.ts +8 -0
- package/dist/domains/comet-entry/workflow-resolution.d.ts.map +1 -0
- package/dist/domains/comet-entry/workflow-resolution.js +16 -0
- package/dist/domains/comet-entry/workflow-resolution.js.map +1 -0
- package/dist/domains/comet-native/index.d.ts +35 -0
- package/dist/domains/comet-native/index.d.ts.map +1 -0
- package/dist/domains/comet-native/index.js +35 -0
- package/dist/domains/comet-native/index.js.map +1 -0
- package/dist/domains/comet-native/native-acceptance.d.ts +53 -0
- package/dist/domains/comet-native/native-acceptance.d.ts.map +1 -0
- package/dist/domains/comet-native/native-acceptance.js +658 -0
- package/dist/domains/comet-native/native-acceptance.js.map +1 -0
- package/dist/domains/comet-native/native-archive-content.d.ts +26 -0
- package/dist/domains/comet-native/native-archive-content.d.ts.map +1 -0
- package/dist/domains/comet-native/native-archive-content.js +159 -0
- package/dist/domains/comet-native/native-archive-content.js.map +1 -0
- package/dist/domains/comet-native/native-archive-inspection.d.ts +9 -0
- package/dist/domains/comet-native/native-archive-inspection.d.ts.map +1 -0
- package/dist/domains/comet-native/native-archive-inspection.js +97 -0
- package/dist/domains/comet-native/native-archive-inspection.js.map +1 -0
- package/dist/domains/comet-native/native-archive-preflight.d.ts +54 -0
- package/dist/domains/comet-native/native-archive-preflight.d.ts.map +1 -0
- package/dist/domains/comet-native/native-archive-preflight.js +222 -0
- package/dist/domains/comet-native/native-archive-preflight.js.map +1 -0
- package/dist/domains/comet-native/native-archive-transaction.d.ts +20 -0
- package/dist/domains/comet-native/native-archive-transaction.d.ts.map +1 -0
- package/dist/domains/comet-native/native-archive-transaction.js +1183 -0
- package/dist/domains/comet-native/native-archive-transaction.js.map +1 -0
- package/dist/domains/comet-native/native-archive.d.ts +36 -0
- package/dist/domains/comet-native/native-archive.d.ts.map +1 -0
- package/dist/domains/comet-native/native-archive.js +422 -0
- package/dist/domains/comet-native/native-archive.js.map +1 -0
- package/dist/domains/comet-native/native-artifacts.d.ts +10 -0
- package/dist/domains/comet-native/native-artifacts.d.ts.map +1 -0
- package/dist/domains/comet-native/native-artifacts.js +204 -0
- package/dist/domains/comet-native/native-artifacts.js.map +1 -0
- package/dist/domains/comet-native/native-atomic-file.d.ts +10 -0
- package/dist/domains/comet-native/native-atomic-file.d.ts.map +1 -0
- package/dist/domains/comet-native/native-atomic-file.js +179 -0
- package/dist/domains/comet-native/native-atomic-file.js.map +1 -0
- package/dist/domains/comet-native/native-bounded-file.d.ts +19 -0
- package/dist/domains/comet-native/native-bounded-file.d.ts.map +1 -0
- package/dist/domains/comet-native/native-bounded-file.js +184 -0
- package/dist/domains/comet-native/native-bounded-file.js.map +1 -0
- package/dist/domains/comet-native/native-build-evidence.d.ts +42 -0
- package/dist/domains/comet-native/native-build-evidence.d.ts.map +1 -0
- package/dist/domains/comet-native/native-build-evidence.js +257 -0
- package/dist/domains/comet-native/native-build-evidence.js.map +1 -0
- package/dist/domains/comet-native/native-canonical-hash.d.ts +10 -0
- package/dist/domains/comet-native/native-canonical-hash.d.ts.map +1 -0
- package/dist/domains/comet-native/native-canonical-hash.js +100 -0
- package/dist/domains/comet-native/native-canonical-hash.js.map +1 -0
- package/dist/domains/comet-native/native-change-recovery.d.ts +11 -0
- package/dist/domains/comet-native/native-change-recovery.d.ts.map +1 -0
- package/dist/domains/comet-native/native-change-recovery.js +15 -0
- package/dist/domains/comet-native/native-change-recovery.js.map +1 -0
- package/dist/domains/comet-native/native-change.d.ts +64 -0
- package/dist/domains/comet-native/native-change.d.ts.map +1 -0
- package/dist/domains/comet-native/native-change.js +738 -0
- package/dist/domains/comet-native/native-change.js.map +1 -0
- package/dist/domains/comet-native/native-check-receipt-model.d.ts +63 -0
- package/dist/domains/comet-native/native-check-receipt-model.d.ts.map +1 -0
- package/dist/domains/comet-native/native-check-receipt-model.js +352 -0
- package/dist/domains/comet-native/native-check-receipt-model.js.map +1 -0
- package/dist/domains/comet-native/native-check-receipt-storage.d.ts +10 -0
- package/dist/domains/comet-native/native-check-receipt-storage.d.ts.map +1 -0
- package/dist/domains/comet-native/native-check-receipt-storage.js +200 -0
- package/dist/domains/comet-native/native-check-receipt-storage.js.map +1 -0
- package/dist/domains/comet-native/native-check-receipt.d.ts +19 -0
- package/dist/domains/comet-native/native-check-receipt.d.ts.map +1 -0
- package/dist/domains/comet-native/native-check-receipt.js +453 -0
- package/dist/domains/comet-native/native-check-receipt.js.map +1 -0
- package/dist/domains/comet-native/native-check.d.ts +24 -0
- package/dist/domains/comet-native/native-check.d.ts.map +1 -0
- package/dist/domains/comet-native/native-check.js +38 -0
- package/dist/domains/comet-native/native-check.js.map +1 -0
- package/dist/domains/comet-native/native-checkpoint-journal.d.ts +13 -0
- package/dist/domains/comet-native/native-checkpoint-journal.d.ts.map +1 -0
- package/dist/domains/comet-native/native-checkpoint-journal.js +53 -0
- package/dist/domains/comet-native/native-checkpoint-journal.js.map +1 -0
- package/dist/domains/comet-native/native-checkpoint-storage.d.ts +43 -0
- package/dist/domains/comet-native/native-checkpoint-storage.d.ts.map +1 -0
- package/dist/domains/comet-native/native-checkpoint-storage.js +487 -0
- package/dist/domains/comet-native/native-checkpoint-storage.js.map +1 -0
- package/dist/domains/comet-native/native-cli-entry.d.ts +2 -0
- package/dist/domains/comet-native/native-cli-entry.d.ts.map +1 -0
- package/dist/domains/comet-native/native-cli-entry.js +18 -0
- package/dist/domains/comet-native/native-cli-entry.js.map +1 -0
- package/dist/domains/comet-native/native-cli.d.ts +7 -0
- package/dist/domains/comet-native/native-cli.d.ts.map +1 -0
- package/dist/domains/comet-native/native-cli.js +1256 -0
- package/dist/domains/comet-native/native-cli.js.map +1 -0
- package/dist/domains/comet-native/native-config.d.ts +23 -0
- package/dist/domains/comet-native/native-config.d.ts.map +1 -0
- package/dist/domains/comet-native/native-config.js +60 -0
- package/dist/domains/comet-native/native-config.js.map +1 -0
- package/dist/domains/comet-native/native-conflict-inspection.d.ts +17 -0
- package/dist/domains/comet-native/native-conflict-inspection.d.ts.map +1 -0
- package/dist/domains/comet-native/native-conflict-inspection.js +90 -0
- package/dist/domains/comet-native/native-conflict-inspection.js.map +1 -0
- package/dist/domains/comet-native/native-conflict-radar.d.ts +75 -0
- package/dist/domains/comet-native/native-conflict-radar.d.ts.map +1 -0
- package/dist/domains/comet-native/native-conflict-radar.js +326 -0
- package/dist/domains/comet-native/native-conflict-radar.js.map +1 -0
- package/dist/domains/comet-native/native-continuation.d.ts +12 -0
- package/dist/domains/comet-native/native-continuation.d.ts.map +1 -0
- package/dist/domains/comet-native/native-continuation.js +201 -0
- package/dist/domains/comet-native/native-continuation.js.map +1 -0
- package/dist/domains/comet-native/native-contract-files.d.ts +24 -0
- package/dist/domains/comet-native/native-contract-files.d.ts.map +1 -0
- package/dist/domains/comet-native/native-contract-files.js +66 -0
- package/dist/domains/comet-native/native-contract-files.js.map +1 -0
- package/dist/domains/comet-native/native-contract.d.ts +41 -0
- package/dist/domains/comet-native/native-contract.d.ts.map +1 -0
- package/dist/domains/comet-native/native-contract.js +142 -0
- package/dist/domains/comet-native/native-contract.js.map +1 -0
- package/dist/domains/comet-native/native-controller-trust.d.ts +21 -0
- package/dist/domains/comet-native/native-controller-trust.d.ts.map +1 -0
- package/dist/domains/comet-native/native-controller-trust.js +140 -0
- package/dist/domains/comet-native/native-controller-trust.js.map +1 -0
- package/dist/domains/comet-native/native-diagnostics.d.ts +25 -0
- package/dist/domains/comet-native/native-diagnostics.d.ts.map +1 -0
- package/dist/domains/comet-native/native-diagnostics.js +551 -0
- package/dist/domains/comet-native/native-diagnostics.js.map +1 -0
- package/dist/domains/comet-native/native-doctor.d.ts +12 -0
- package/dist/domains/comet-native/native-doctor.d.ts.map +1 -0
- package/dist/domains/comet-native/native-doctor.js +771 -0
- package/dist/domains/comet-native/native-doctor.js.map +1 -0
- package/dist/domains/comet-native/native-evidence-retention.d.ts +37 -0
- package/dist/domains/comet-native/native-evidence-retention.d.ts.map +1 -0
- package/dist/domains/comet-native/native-evidence-retention.js +916 -0
- package/dist/domains/comet-native/native-evidence-retention.js.map +1 -0
- package/dist/domains/comet-native/native-evidence-storage.d.ts +54 -0
- package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -0
- package/dist/domains/comet-native/native-evidence-storage.js +401 -0
- package/dist/domains/comet-native/native-evidence-storage.js.map +1 -0
- package/dist/domains/comet-native/native-file-identity.d.ts +3 -0
- package/dist/domains/comet-native/native-file-identity.d.ts.map +1 -0
- package/dist/domains/comet-native/native-file-identity.js +2 -0
- package/dist/domains/comet-native/native-file-identity.js.map +1 -0
- package/dist/domains/comet-native/native-findings.d.ts +8 -0
- package/dist/domains/comet-native/native-findings.d.ts.map +1 -0
- package/dist/domains/comet-native/native-findings.js +254 -0
- package/dist/domains/comet-native/native-findings.js.map +1 -0
- package/dist/domains/comet-native/native-guards.d.ts +8 -0
- package/dist/domains/comet-native/native-guards.d.ts.map +1 -0
- package/dist/domains/comet-native/native-guards.js +140 -0
- package/dist/domains/comet-native/native-guards.js.map +1 -0
- package/dist/domains/comet-native/native-hash.d.ts +3 -0
- package/dist/domains/comet-native/native-hash.d.ts.map +1 -0
- package/dist/domains/comet-native/native-hash.js +12 -0
- package/dist/domains/comet-native/native-hash.js.map +1 -0
- package/dist/domains/comet-native/native-hook-guard.d.ts +17 -0
- package/dist/domains/comet-native/native-hook-guard.d.ts.map +1 -0
- package/dist/domains/comet-native/native-hook-guard.js +154 -0
- package/dist/domains/comet-native/native-hook-guard.js.map +1 -0
- package/dist/domains/comet-native/native-independent-review.d.ts +28 -0
- package/dist/domains/comet-native/native-independent-review.d.ts.map +1 -0
- package/dist/domains/comet-native/native-independent-review.js +134 -0
- package/dist/domains/comet-native/native-independent-review.js.map +1 -0
- package/dist/domains/comet-native/native-lock.d.ts +47 -0
- package/dist/domains/comet-native/native-lock.d.ts.map +1 -0
- package/dist/domains/comet-native/native-lock.js +390 -0
- package/dist/domains/comet-native/native-lock.js.map +1 -0
- package/dist/domains/comet-native/native-mutation-lock.d.ts +5 -0
- package/dist/domains/comet-native/native-mutation-lock.d.ts.map +1 -0
- package/dist/domains/comet-native/native-mutation-lock.js +66 -0
- package/dist/domains/comet-native/native-mutation-lock.js.map +1 -0
- package/dist/domains/comet-native/native-paths.d.ts +10 -0
- package/dist/domains/comet-native/native-paths.d.ts.map +1 -0
- package/dist/domains/comet-native/native-paths.js +160 -0
- package/dist/domains/comet-native/native-paths.js.map +1 -0
- package/dist/domains/comet-native/native-progress-checkpoint.d.ts +13 -0
- package/dist/domains/comet-native/native-progress-checkpoint.d.ts.map +1 -0
- package/dist/domains/comet-native/native-progress-checkpoint.js +104 -0
- package/dist/domains/comet-native/native-progress-checkpoint.js.map +1 -0
- package/dist/domains/comet-native/native-protected-file.d.ts +113 -0
- package/dist/domains/comet-native/native-protected-file.d.ts.map +1 -0
- package/dist/domains/comet-native/native-protected-file.js +510 -0
- package/dist/domains/comet-native/native-protected-file.js.map +1 -0
- package/dist/domains/comet-native/native-redaction.d.ts +2 -0
- package/dist/domains/comet-native/native-redaction.d.ts.map +1 -0
- package/dist/domains/comet-native/native-redaction.js +18 -0
- package/dist/domains/comet-native/native-redaction.js.map +1 -0
- package/dist/domains/comet-native/native-repair-integration.d.ts +46 -0
- package/dist/domains/comet-native/native-repair-integration.d.ts.map +1 -0
- package/dist/domains/comet-native/native-repair-integration.js +235 -0
- package/dist/domains/comet-native/native-repair-integration.js.map +1 -0
- package/dist/domains/comet-native/native-repair-runtime.d.ts +78 -0
- package/dist/domains/comet-native/native-repair-runtime.d.ts.map +1 -0
- package/dist/domains/comet-native/native-repair-runtime.js +593 -0
- package/dist/domains/comet-native/native-repair-runtime.js.map +1 -0
- package/dist/domains/comet-native/native-repair-stagnation.d.ts +89 -0
- package/dist/domains/comet-native/native-repair-stagnation.d.ts.map +1 -0
- package/dist/domains/comet-native/native-repair-stagnation.js +308 -0
- package/dist/domains/comet-native/native-repair-stagnation.js.map +1 -0
- package/dist/domains/comet-native/native-resume-view.d.ts +14 -0
- package/dist/domains/comet-native/native-resume-view.d.ts.map +1 -0
- package/dist/domains/comet-native/native-resume-view.js +105 -0
- package/dist/domains/comet-native/native-resume-view.js.map +1 -0
- package/dist/domains/comet-native/native-review-contract.d.ts +6 -0
- package/dist/domains/comet-native/native-review-contract.d.ts.map +1 -0
- package/dist/domains/comet-native/native-review-contract.js +6 -0
- package/dist/domains/comet-native/native-review-contract.js.map +1 -0
- package/dist/domains/comet-native/native-review-identity.d.ts +50 -0
- package/dist/domains/comet-native/native-review-identity.d.ts.map +1 -0
- package/dist/domains/comet-native/native-review-identity.js +209 -0
- package/dist/domains/comet-native/native-review-identity.js.map +1 -0
- package/dist/domains/comet-native/native-review-signer.d.ts +24 -0
- package/dist/domains/comet-native/native-review-signer.d.ts.map +1 -0
- package/dist/domains/comet-native/native-review-signer.js +125 -0
- package/dist/domains/comet-native/native-review-signer.js.map +1 -0
- package/dist/domains/comet-native/native-review-trust.d.ts +35 -0
- package/dist/domains/comet-native/native-review-trust.d.ts.map +1 -0
- package/dist/domains/comet-native/native-review-trust.js +176 -0
- package/dist/domains/comet-native/native-review-trust.js.map +1 -0
- package/dist/domains/comet-native/native-revision.d.ts +20 -0
- package/dist/domains/comet-native/native-revision.d.ts.map +1 -0
- package/dist/domains/comet-native/native-revision.js +32 -0
- package/dist/domains/comet-native/native-revision.js.map +1 -0
- package/dist/domains/comet-native/native-root-move.d.ts +20 -0
- package/dist/domains/comet-native/native-root-move.d.ts.map +1 -0
- package/dist/domains/comet-native/native-root-move.js +818 -0
- package/dist/domains/comet-native/native-root-move.js.map +1 -0
- package/dist/domains/comet-native/native-run-consistency.d.ts +3 -0
- package/dist/domains/comet-native/native-run-consistency.d.ts.map +1 -0
- package/dist/domains/comet-native/native-run-consistency.js +136 -0
- package/dist/domains/comet-native/native-run-consistency.js.map +1 -0
- package/dist/domains/comet-native/native-run-store.d.ts +41 -0
- package/dist/domains/comet-native/native-run-store.d.ts.map +1 -0
- package/dist/domains/comet-native/native-run-store.js +452 -0
- package/dist/domains/comet-native/native-run-store.js.map +1 -0
- package/dist/domains/comet-native/native-runtime-package.d.ts +16 -0
- package/dist/domains/comet-native/native-runtime-package.d.ts.map +1 -0
- package/dist/domains/comet-native/native-runtime-package.js +72 -0
- package/dist/domains/comet-native/native-runtime-package.js.map +1 -0
- package/dist/domains/comet-native/native-schema-migration.d.ts +11 -0
- package/dist/domains/comet-native/native-schema-migration.d.ts.map +1 -0
- package/dist/domains/comet-native/native-schema-migration.js +900 -0
- package/dist/domains/comet-native/native-schema-migration.js.map +1 -0
- package/dist/domains/comet-native/native-selection.d.ts +12 -0
- package/dist/domains/comet-native/native-selection.d.ts.map +1 -0
- package/dist/domains/comet-native/native-selection.js +52 -0
- package/dist/domains/comet-native/native-selection.js.map +1 -0
- package/dist/domains/comet-native/native-sensitive-paths.d.ts +7 -0
- package/dist/domains/comet-native/native-sensitive-paths.d.ts.map +1 -0
- package/dist/domains/comet-native/native-sensitive-paths.js +69 -0
- package/dist/domains/comet-native/native-sensitive-paths.js.map +1 -0
- package/dist/domains/comet-native/native-snapshot.d.ts +78 -0
- package/dist/domains/comet-native/native-snapshot.d.ts.map +1 -0
- package/dist/domains/comet-native/native-snapshot.js +2572 -0
- package/dist/domains/comet-native/native-snapshot.js.map +1 -0
- package/dist/domains/comet-native/native-specs.d.ts +12 -0
- package/dist/domains/comet-native/native-specs.d.ts.map +1 -0
- package/dist/domains/comet-native/native-specs.js +270 -0
- package/dist/domains/comet-native/native-specs.js.map +1 -0
- package/dist/domains/comet-native/native-trajectory-limits.d.ts +7 -0
- package/dist/domains/comet-native/native-trajectory-limits.d.ts.map +1 -0
- package/dist/domains/comet-native/native-trajectory-limits.js +13 -0
- package/dist/domains/comet-native/native-trajectory-limits.js.map +1 -0
- package/dist/domains/comet-native/native-trajectory-recovery.d.ts +37 -0
- package/dist/domains/comet-native/native-trajectory-recovery.d.ts.map +1 -0
- package/dist/domains/comet-native/native-trajectory-recovery.js +133 -0
- package/dist/domains/comet-native/native-trajectory-recovery.js.map +1 -0
- package/dist/domains/comet-native/native-trajectory.d.ts +16 -0
- package/dist/domains/comet-native/native-trajectory.d.ts.map +1 -0
- package/dist/domains/comet-native/native-trajectory.js +27 -0
- package/dist/domains/comet-native/native-trajectory.js.map +1 -0
- package/dist/domains/comet-native/native-transaction.d.ts +45 -0
- package/dist/domains/comet-native/native-transaction.d.ts.map +1 -0
- package/dist/domains/comet-native/native-transaction.js +846 -0
- package/dist/domains/comet-native/native-transaction.js.map +1 -0
- package/dist/domains/comet-native/native-transition-evidence.d.ts +4 -0
- package/dist/domains/comet-native/native-transition-evidence.d.ts.map +1 -0
- package/dist/domains/comet-native/native-transition-evidence.js +27 -0
- package/dist/domains/comet-native/native-transition-evidence.js.map +1 -0
- package/dist/domains/comet-native/native-transition-journal.d.ts +30 -0
- package/dist/domains/comet-native/native-transition-journal.d.ts.map +1 -0
- package/dist/domains/comet-native/native-transition-journal.js +819 -0
- package/dist/domains/comet-native/native-transition-journal.js.map +1 -0
- package/dist/domains/comet-native/native-transitions.d.ts +15 -0
- package/dist/domains/comet-native/native-transitions.d.ts.map +1 -0
- package/dist/domains/comet-native/native-transitions.js +683 -0
- package/dist/domains/comet-native/native-transitions.js.map +1 -0
- package/dist/domains/comet-native/native-types.d.ts +547 -0
- package/dist/domains/comet-native/native-types.d.ts.map +1 -0
- package/dist/domains/comet-native/native-types.js +8 -0
- package/dist/domains/comet-native/native-types.js.map +1 -0
- package/dist/domains/comet-native/native-verification-evidence.d.ts +136 -0
- package/dist/domains/comet-native/native-verification-evidence.d.ts.map +1 -0
- package/dist/domains/comet-native/native-verification-evidence.js +824 -0
- package/dist/domains/comet-native/native-verification-evidence.js.map +1 -0
- package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts +188 -0
- package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts.map +1 -0
- package/dist/domains/comet-native/native-verification-receipt-runtime.js +1129 -0
- package/dist/domains/comet-native/native-verification-receipt-runtime.js.map +1 -0
- package/dist/domains/comet-native/native-verification-receipt.d.ts +165 -0
- package/dist/domains/comet-native/native-verification-receipt.d.ts.map +1 -0
- package/dist/domains/comet-native/native-verification-receipt.js +636 -0
- package/dist/domains/comet-native/native-verification-receipt.js.map +1 -0
- package/dist/domains/comet-native/native-verification-runtime.d.ts +61 -0
- package/dist/domains/comet-native/native-verification-runtime.d.ts.map +1 -0
- package/dist/domains/comet-native/native-verification-runtime.js +609 -0
- package/dist/domains/comet-native/native-verification-runtime.js.map +1 -0
- package/dist/domains/comet-native/native-verification-scope.d.ts +118 -0
- package/dist/domains/comet-native/native-verification-scope.d.ts.map +1 -0
- package/dist/domains/comet-native/native-verification-scope.js +1045 -0
- package/dist/domains/comet-native/native-verification-scope.js.map +1 -0
- package/dist/domains/comet-native/native-workspace.d.ts +46 -0
- package/dist/domains/comet-native/native-workspace.d.ts.map +1 -0
- package/dist/domains/comet-native/native-workspace.js +276 -0
- package/dist/domains/comet-native/native-workspace.js.map +1 -0
- package/dist/domains/dashboard/collector.d.ts.map +1 -1
- package/dist/domains/dashboard/collector.js +182 -75
- package/dist/domains/dashboard/collector.js.map +1 -1
- package/dist/domains/dashboard/native-adapter.d.ts +157 -0
- package/dist/domains/dashboard/native-adapter.d.ts.map +1 -0
- package/dist/domains/dashboard/native-adapter.js +302 -0
- package/dist/domains/dashboard/native-adapter.js.map +1 -0
- package/dist/domains/dashboard/native-collector.d.ts +6 -0
- package/dist/domains/dashboard/native-collector.d.ts.map +1 -0
- package/dist/domains/dashboard/native-collector.js +289 -0
- package/dist/domains/dashboard/native-collector.js.map +1 -0
- package/dist/domains/dashboard/types.d.ts +10 -0
- package/dist/domains/dashboard/types.d.ts.map +1 -1
- package/dist/domains/dashboard/verify-parser.d.ts.map +1 -1
- package/dist/domains/dashboard/verify-parser.js +37 -31
- package/dist/domains/dashboard/verify-parser.js.map +1 -1
- package/dist/domains/dashboard/web/assets/_commonjsHelpers-CqkleIqs.js +1 -0
- package/dist/domains/dashboard/web/assets/arc-BXWNV2Qv.js +1 -0
- package/dist/domains/dashboard/web/assets/architectureDiagram-3BPJPVTR-CjVHPivo.js +36 -0
- package/dist/domains/dashboard/web/assets/blockDiagram-GPEHLZMM-P2PGImSM.js +132 -0
- package/dist/domains/dashboard/web/assets/c4Diagram-AAUBKEIU-fTj6Xhs1.js +10 -0
- package/dist/domains/dashboard/web/assets/channel--JtnhJr8.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-2J33WTMH-BjFDZ5yo.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-4BX2VUAB-BAUkbZdT.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-55IACEB6-DBmuiYme.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-727SXJPM-Do9ufCgY.js +206 -0
- package/dist/domains/dashboard/web/assets/chunk-AQP2D5EJ-qRQWlB5d.js +231 -0
- package/dist/domains/dashboard/web/assets/chunk-FMBD7UC4-BzDzeJ4_.js +15 -0
- package/dist/domains/dashboard/web/assets/chunk-ND2GUHAM-OQcAmIvL.js +1 -0
- package/dist/domains/dashboard/web/assets/chunk-QZHKN3VN-BiRfH4d2.js +1 -0
- package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-BRGmx8Iz.js +1 -0
- package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-BRGmx8Iz.js +1 -0
- package/dist/domains/dashboard/web/assets/cose-bilkent-S5V4N54A-CZk37fGn.js +1 -0
- package/dist/domains/dashboard/web/assets/cynefin-VYW2F7L2-B3F-qRTJ.js +166 -0
- package/dist/domains/dashboard/web/assets/cytoscape.esm-D3_iZ_3b.js +321 -0
- package/dist/domains/dashboard/web/assets/dagre-BM42HDAG-D5BQ0eqN.js +4 -0
- package/dist/domains/dashboard/web/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/domains/dashboard/web/assets/demo-BuVau32v.js +25 -0
- package/dist/domains/dashboard/web/assets/diagram-2AECGRRQ-33mXstha.js +43 -0
- package/dist/domains/dashboard/web/assets/diagram-5GNKFQAL-BWHCMFvD.js +10 -0
- package/dist/domains/dashboard/web/assets/diagram-KO2AKTUF-DrPGimEt.js +3 -0
- package/dist/domains/dashboard/web/assets/diagram-LMA3HP47-BBlsg7jG.js +24 -0
- package/dist/domains/dashboard/web/assets/diagram-OG6HWLK6-CsaFSpHi.js +24 -0
- package/dist/domains/dashboard/web/assets/erDiagram-TEJ5UH35-CoB0mzhk.js +85 -0
- package/dist/domains/dashboard/web/assets/flowDiagram-I6XJVG4X-lT53XfSE.js +162 -0
- package/dist/domains/dashboard/web/assets/ganttDiagram-6RSMTGT7-D1SQ56fl.js +292 -0
- package/dist/domains/dashboard/web/assets/gitGraphDiagram-PVQCEYII-D4oDMS5x.js +106 -0
- package/dist/domains/dashboard/web/assets/graph--OzhPTMs.js +1 -0
- package/dist/domains/dashboard/web/assets/index-D-AGxvI4.css +1 -0
- package/dist/domains/dashboard/web/assets/index-DlSYK56b.js +139 -0
- package/dist/domains/dashboard/web/assets/index-Msce_H_q.js +24 -0
- package/dist/domains/dashboard/web/assets/index-QO0z6F4w.js +10 -0
- package/dist/domains/dashboard/web/assets/infoDiagram-5YYISTIA-BeICn98s.js +2 -0
- package/dist/domains/dashboard/web/assets/init-Gi6I4Gst.js +1 -0
- package/dist/domains/dashboard/web/assets/ishikawaDiagram-YF4QCWOH-Dkspu33d.js +70 -0
- package/dist/domains/dashboard/web/assets/journeyDiagram-JHISSGLW-C-EM1sZl.js +139 -0
- package/dist/domains/dashboard/web/assets/kanban-definition-UN3LZRKU-BTbB0IO2.js +89 -0
- package/dist/domains/dashboard/web/assets/katex-HP8lGamR.js +257 -0
- package/dist/domains/dashboard/web/assets/layout-SsrduOYp.js +1 -0
- package/dist/domains/dashboard/web/assets/linear-Cp0UrqDr.js +1 -0
- package/dist/domains/dashboard/web/assets/marked.esm-DECB3bxB.js +64 -0
- package/dist/domains/dashboard/web/assets/mermaid.core-CucmqsLW.js +301 -0
- package/dist/domains/dashboard/web/assets/mindmap-definition-RKZ34NQL-CjEshF1X.js +96 -0
- package/dist/domains/dashboard/web/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/domains/dashboard/web/assets/pieDiagram-4H26LBE5-DrwFnX1b.js +30 -0
- package/dist/domains/dashboard/web/assets/purify.es-VaSPOPhr.js +3 -0
- package/dist/domains/dashboard/web/assets/quadrantDiagram-W4KKPZXB-CjG6pBR2.js +7 -0
- package/dist/domains/dashboard/web/assets/requirementDiagram-4Y6WPE33-BpUQVqCV.js +84 -0
- package/dist/domains/dashboard/web/assets/sankeyDiagram-5OEKKPKP-BeGkEvzR.js +40 -0
- package/dist/domains/dashboard/web/assets/sequenceDiagram-3UESZ5HK-sSTU3MCO.js +162 -0
- package/dist/domains/dashboard/web/assets/stateDiagram-AJRCARHV-CcFBc6qh.js +1 -0
- package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-D5zZYi4x.js +1 -0
- package/dist/domains/dashboard/web/assets/timeline-definition-PNZ67QCA-DCN7NjEs.js +120 -0
- package/dist/domains/dashboard/web/assets/vennDiagram-CIIHVFJN-DZAN1_rr.js +34 -0
- package/dist/domains/dashboard/web/assets/wardleyDiagram-YWT4CUSO-FfkJfr4C.js +78 -0
- package/dist/domains/dashboard/web/assets/xychartDiagram-2RQKCTM6-CD8B-EmR.js +7 -0
- package/dist/domains/dashboard/web/index.html +16 -16
- package/dist/domains/engine/protected-run-file.d.ts +15 -0
- package/dist/domains/engine/protected-run-file.d.ts.map +1 -0
- package/dist/domains/engine/protected-run-file.js +76 -0
- package/dist/domains/engine/protected-run-file.js.map +1 -0
- package/dist/domains/engine/run-store.d.ts +12 -11
- package/dist/domains/engine/run-store.d.ts.map +1 -1
- package/dist/domains/engine/run-store.js +46 -65
- package/dist/domains/engine/run-store.js.map +1 -1
- package/dist/domains/engine/state.d.ts +4 -3
- package/dist/domains/engine/state.d.ts.map +1 -1
- package/dist/domains/engine/state.js +10 -21
- package/dist/domains/engine/state.js.map +1 -1
- package/dist/domains/engine/storage-layout.d.ts +14 -0
- package/dist/domains/engine/storage-layout.d.ts.map +1 -0
- package/dist/domains/engine/storage-layout.js +32 -0
- package/dist/domains/engine/storage-layout.js.map +1 -0
- package/dist/domains/engine/storage-run.d.ts +9 -0
- package/dist/domains/engine/storage-run.d.ts.map +1 -0
- package/dist/domains/engine/storage-run.js +116 -0
- package/dist/domains/engine/storage-run.js.map +1 -0
- package/dist/domains/engine/types.d.ts +1 -1
- package/dist/domains/engine/types.d.ts.map +1 -1
- package/dist/domains/factory/package.d.ts.map +1 -1
- package/dist/domains/factory/package.js +562 -91
- package/dist/domains/factory/package.js.map +1 -1
- package/dist/domains/integrations/codegraph.d.ts +13 -2
- package/dist/domains/integrations/codegraph.d.ts.map +1 -1
- package/dist/domains/integrations/codegraph.js +160 -12
- package/dist/domains/integrations/codegraph.js.map +1 -1
- package/dist/domains/integrations/openspec.d.ts +12 -2
- package/dist/domains/integrations/openspec.d.ts.map +1 -1
- package/dist/domains/integrations/openspec.js +256 -47
- package/dist/domains/integrations/openspec.js.map +1 -1
- package/dist/domains/skill/find.js +8 -7
- package/dist/domains/skill/find.js.map +1 -1
- package/dist/domains/skill/json-object.d.ts +13 -0
- package/dist/domains/skill/json-object.d.ts.map +1 -0
- package/dist/domains/skill/json-object.js +24 -0
- package/dist/domains/skill/json-object.js.map +1 -0
- package/dist/domains/skill/languages.d.ts +2 -1
- package/dist/domains/skill/languages.d.ts.map +1 -1
- package/dist/domains/skill/languages.js +4 -1
- package/dist/domains/skill/languages.js.map +1 -1
- package/dist/domains/skill/managed-markdown.d.ts +14 -0
- package/dist/domains/skill/managed-markdown.d.ts.map +1 -0
- package/dist/domains/skill/managed-markdown.js +126 -0
- package/dist/domains/skill/managed-markdown.js.map +1 -0
- package/dist/domains/skill/platform-inspect.d.ts +13 -0
- package/dist/domains/skill/platform-inspect.d.ts.map +1 -0
- package/dist/domains/skill/platform-inspect.js +193 -0
- package/dist/domains/skill/platform-inspect.js.map +1 -0
- package/dist/domains/skill/platform-install.d.ts +38 -23
- package/dist/domains/skill/platform-install.d.ts.map +1 -1
- package/dist/domains/skill/platform-install.js +829 -230
- package/dist/domains/skill/platform-install.js.map +1 -1
- package/dist/domains/skill/project-instructions.d.ts +22 -0
- package/dist/domains/skill/project-instructions.d.ts.map +1 -0
- package/dist/domains/skill/project-instructions.js +69 -0
- package/dist/domains/skill/project-instructions.js.map +1 -0
- package/dist/domains/skill/uninstall.d.ts +9 -2
- package/dist/domains/skill/uninstall.d.ts.map +1 -1
- package/dist/domains/skill/uninstall.js +734 -158
- package/dist/domains/skill/uninstall.js.map +1 -1
- package/dist/domains/workflow-contract/builtins.d.ts +6 -0
- package/dist/domains/workflow-contract/builtins.d.ts.map +1 -1
- package/dist/domains/workflow-contract/builtins.js +149 -6
- package/dist/domains/workflow-contract/builtins.js.map +1 -1
- package/dist/domains/workflow-contract/contained-atomic-write.d.ts +21 -0
- package/dist/domains/workflow-contract/contained-atomic-write.d.ts.map +1 -0
- package/dist/domains/workflow-contract/contained-atomic-write.js +235 -0
- package/dist/domains/workflow-contract/contained-atomic-write.js.map +1 -0
- package/dist/domains/workflow-contract/index.d.ts +11 -1
- package/dist/domains/workflow-contract/index.d.ts.map +1 -1
- package/dist/domains/workflow-contract/index.js +7 -1
- package/dist/domains/workflow-contract/index.js.map +1 -1
- package/dist/domains/workflow-contract/normalize.d.ts.map +1 -1
- package/dist/domains/workflow-contract/normalize.js +30 -11
- package/dist/domains/workflow-contract/normalize.js.map +1 -1
- package/dist/domains/workflow-contract/project-config-reader.d.ts +24 -0
- package/dist/domains/workflow-contract/project-config-reader.d.ts.map +1 -0
- package/dist/domains/workflow-contract/project-config-reader.js +54 -0
- package/dist/domains/workflow-contract/project-config-reader.js.map +1 -0
- package/dist/domains/workflow-contract/project-config-transaction.d.ts +20 -0
- package/dist/domains/workflow-contract/project-config-transaction.d.ts.map +1 -0
- package/dist/domains/workflow-contract/project-config-transaction.js +293 -0
- package/dist/domains/workflow-contract/project-config-transaction.js.map +1 -0
- package/dist/domains/workflow-contract/project-config-writer.d.ts +13 -0
- package/dist/domains/workflow-contract/project-config-writer.d.ts.map +1 -0
- package/dist/domains/workflow-contract/project-config-writer.js +142 -0
- package/dist/domains/workflow-contract/project-config-writer.js.map +1 -0
- package/dist/domains/workflow-contract/project-config.d.ts +32 -0
- package/dist/domains/workflow-contract/project-config.d.ts.map +1 -0
- package/dist/domains/workflow-contract/project-config.js +1566 -0
- package/dist/domains/workflow-contract/project-config.js.map +1 -0
- package/dist/domains/workflow-contract/protected-project-path.d.ts +34 -0
- package/dist/domains/workflow-contract/protected-project-path.d.ts.map +1 -0
- package/dist/domains/workflow-contract/protected-project-path.js +162 -0
- package/dist/domains/workflow-contract/protected-project-path.js.map +1 -0
- package/dist/domains/workflow-contract/types.d.ts +67 -2
- package/dist/domains/workflow-contract/types.d.ts.map +1 -1
- package/dist/domains/workflow-contract/validation.d.ts.map +1 -1
- package/dist/domains/workflow-contract/validation.js +14 -5
- package/dist/domains/workflow-contract/validation.js.map +1 -1
- package/dist/platform/fs/file-identity.d.ts +9 -0
- package/dist/platform/fs/file-identity.d.ts.map +1 -0
- package/dist/platform/fs/file-identity.js +21 -0
- package/dist/platform/fs/file-identity.js.map +1 -0
- package/dist/platform/fs/file-system.d.ts +3 -3
- package/dist/platform/fs/file-system.d.ts.map +1 -1
- package/dist/platform/fs/file-system.js +31 -17
- package/dist/platform/fs/file-system.js.map +1 -1
- package/dist/platform/fs/race-safe-read.d.ts +47 -0
- package/dist/platform/fs/race-safe-read.d.ts.map +1 -0
- package/dist/platform/fs/race-safe-read.js +132 -0
- package/dist/platform/fs/race-safe-read.js.map +1 -0
- package/dist/platform/fs/trusted-readonly-file.d.ts +31 -0
- package/dist/platform/fs/trusted-readonly-file.d.ts.map +1 -0
- package/dist/platform/fs/trusted-readonly-file.js +107 -0
- package/dist/platform/fs/trusted-readonly-file.js.map +1 -0
- package/dist/platform/install/detect.d.ts +5 -2
- package/dist/platform/install/detect.d.ts.map +1 -1
- package/dist/platform/install/detect.js +14 -2
- package/dist/platform/install/detect.js.map +1 -1
- package/dist/platform/install/platform-targets.d.ts +8 -0
- package/dist/platform/install/platform-targets.d.ts.map +1 -0
- package/dist/platform/install/platform-targets.js +31 -0
- package/dist/platform/install/platform-targets.js.map +1 -0
- package/dist/platform/install/platforms.d.ts +10 -1
- package/dist/platform/install/platforms.d.ts.map +1 -1
- package/dist/platform/install/platforms.js +27 -4
- package/dist/platform/install/platforms.js.map +1 -1
- package/dist/platform/install/project-registry.d.ts +38 -0
- package/dist/platform/install/project-registry.d.ts.map +1 -0
- package/dist/platform/install/project-registry.js +213 -0
- package/dist/platform/install/project-registry.js.map +1 -0
- package/dist/platform/install/skill-root-owner.d.ts +15 -0
- package/dist/platform/install/skill-root-owner.d.ts.map +1 -0
- package/dist/platform/install/skill-root-owner.js +68 -0
- package/dist/platform/install/skill-root-owner.js.map +1 -0
- package/dist/platform/paths/git-worktree.d.ts +10 -0
- package/dist/platform/paths/git-worktree.d.ts.map +1 -0
- package/dist/platform/paths/git-worktree.js +43 -0
- package/dist/platform/paths/git-worktree.js.map +1 -0
- package/dist/platform/paths/repository-layout.d.ts +16 -0
- package/dist/platform/paths/repository-layout.d.ts.map +1 -1
- package/dist/platform/paths/repository-layout.js.map +1 -1
- package/dist/platform/process/terminate-process-tree.d.ts +3 -0
- package/dist/platform/process/terminate-process-tree.d.ts.map +1 -0
- package/dist/platform/process/terminate-process-tree.js +65 -0
- package/dist/platform/process/terminate-process-tree.js.map +1 -0
- package/eval/CLAUDE.md +43 -0
- package/eval/README.md +538 -0
- package/eval/langsmith/README.md +93 -0
- package/eval/langsmith/skills/README.md +5 -0
- package/eval/langsmith/tasks/README.md +5 -0
- package/eval/langsmith/tests/conftest.py +187 -0
- package/eval/langsmith/tests/tasks/test_tasks.py +287 -0
- package/eval/langsmith/treatments/README.md +5 -0
- package/eval/local/README.md +130 -0
- package/eval/local/regression_baseline.json +13 -0
- package/eval/local/report-style-demo-assets/quality_cost.en.svg +41 -0
- package/eval/local/report-style-demo-assets/quality_cost.zh.svg +41 -0
- package/eval/local/report-style-demo-assets/rubric_delta.en.svg +56 -0
- package/eval/local/report-style-demo-assets/rubric_delta.zh.svg +56 -0
- package/eval/local/report-style-demo-assets/task_outcomes.en.svg +46 -0
- package/eval/local/report-style-demo-assets/task_outcomes.zh.svg +46 -0
- package/eval/local/report-style-demo.html +867 -0
- package/eval/local/scripts/compare_baselines.py +1144 -0
- package/eval/local/scripts/generate_report_style_demo_charts.py +322 -0
- package/eval/local/scripts/regression_check.py +170 -0
- package/eval/local/scripts/render_readme_benchmark_figures.py +416 -0
- package/eval/local/scripts/rescore_rubric.py +120 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/SKILL.md +282 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/auto-transition.md +27 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/comet-yaml-fields.md +68 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/context-recovery.md +35 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/debug-gate.md +17 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/decision-point.md +20 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/dirty-worktree.md +59 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/file-structure.md +28 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/subagent-dispatch.md +113 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/rules/comet-phase-guard.md +125 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-archive.sh +311 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-env.sh +110 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-guard.sh +778 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-handoff.sh +390 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-hook-guard.sh +336 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-state.sh +1338 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-yaml-validate.sh +225 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039-archive/SKILL.md +100 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039-build/SKILL.md +304 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039-design/SKILL.md +263 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039-hotfix/SKILL.md +204 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039-open/SKILL.md +220 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039-tweak/SKILL.md +180 -0
- package/eval/local/skills/benchmarks/039-release/comet-classic-039-verify/SKILL.md +234 -0
- package/eval/local/skills/benchmarks/040-beta/comet/SKILL.md +261 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/auto-transition.md +27 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/comet-yaml-fields.md +73 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/context-recovery.md +45 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/debug-gate.md +33 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/decision-point.md +31 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/dirty-worktree.md +59 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/file-structure.md +28 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/intent-frame.md +74 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/scripts.md +69 -0
- package/eval/local/skills/benchmarks/040-beta/comet/reference/subagent-dispatch.md +169 -0
- package/eval/local/skills/benchmarks/040-beta/comet/rules/comet-phase-guard.md +130 -0
- package/eval/local/skills/benchmarks/040-beta/comet/runtime/classic/checks.yaml +6 -0
- package/eval/local/skills/benchmarks/040-beta/comet/runtime/classic/guardrails.yaml +13 -0
- package/eval/local/skills/benchmarks/040-beta/comet/runtime/classic/skill.yaml +122 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-archive.mjs +9515 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-env.mjs +15 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-guard.mjs +10173 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-handoff.mjs +9491 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-hook-guard.mjs +9175 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-intent.mjs +404 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-state.mjs +9273 -0
- package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-yaml-validate.mjs +7627 -0
- package/eval/local/skills/benchmarks/040-beta/comet-archive/SKILL.md +110 -0
- package/eval/local/skills/benchmarks/040-beta/comet-build/SKILL.md +315 -0
- package/eval/local/skills/benchmarks/040-beta/comet-design/SKILL.md +260 -0
- package/eval/local/skills/benchmarks/040-beta/comet-hotfix/SKILL.md +190 -0
- package/eval/local/skills/benchmarks/040-beta/comet-open/SKILL.md +210 -0
- package/eval/local/skills/benchmarks/040-beta/comet-tweak/SKILL.md +183 -0
- package/eval/local/skills/benchmarks/040-beta/comet-verify/SKILL.md +230 -0
- package/eval/local/skills/benchmarks/dependency/claude-md/comet-workflow/CLAUDE.md +12 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-apply-change/SKILL.md +156 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-archive-change/SKILL.md +114 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-bulk-archive-change/SKILL.md +246 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-continue-change/SKILL.md +118 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-explore/SKILL.md +288 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-ff-change/SKILL.md +101 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-new-change/SKILL.md +74 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-onboard/SKILL.md +554 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-propose/SKILL.md +110 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-sync-specs/SKILL.md +138 -0
- package/eval/local/skills/benchmarks/dependency/openspec/openspec-verify-change/SKILL.md +168 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/SKILL.md +159 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/frame-template.html +213 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/helper.js +167 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/server.cjs +723 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/start-server.sh +209 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/stop-server.sh +120 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/visual-companion.md +291 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/dispatching-parallel-agents/SKILL.md +185 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/executing-plans/SKILL.md +70 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/finishing-a-development-branch/SKILL.md +241 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/receiving-code-review/SKILL.md +213 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/requesting-code-review/SKILL.md +103 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/requesting-code-review/code-reviewer.md +172 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/SKILL.md +418 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/implementer-prompt.md +139 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/scripts/review-package +44 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/scripts/sdd-workspace +22 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/scripts/task-brief +40 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/task-reviewer-prompt.md +188 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/SKILL.md +296 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/defense-in-depth.md +122 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/find-polluter.sh +63 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-academic.md +14 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-pressure-1.md +58 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-pressure-2.md +68 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-pressure-3.md +69 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/test-driven-development/SKILL.md +371 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/using-git-worktrees/SKILL.md +202 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/verification-before-completion/SKILL.md +139 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-plans/SKILL.md +174 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/SKILL.md +689 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/graphviz-conventions.dot +172 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/persuasion-principles.md +187 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/render-graphs.js +168 -0
- package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
- package/eval/local/tasks/authoring-skill-smoke/environment/Dockerfile +14 -0
- package/eval/local/tasks/authoring-skill-smoke/instruction.md +4 -0
- package/eval/local/tasks/authoring-skill-smoke/task.toml +21 -0
- package/eval/local/tasks/authoring-skill-smoke/validation/test_authoring_skill_smoke.py +54 -0
- package/eval/local/tasks/comet-agent-memory-routing/environment/Dockerfile +26 -0
- package/eval/local/tasks/comet-agent-memory-routing/environment/agent_system.py +40 -0
- package/eval/local/tasks/comet-agent-memory-routing/environment/test_agent_system.py +29 -0
- package/eval/local/tasks/comet-agent-memory-routing/instruction.md +20 -0
- package/eval/local/tasks/comet-agent-memory-routing/task.toml +24 -0
- package/eval/local/tasks/comet-agent-memory-routing/validation/test_agent_memory_routing.py +24 -0
- package/eval/local/tasks/comet-api-cache-ttl/environment/Dockerfile +35 -0
- package/eval/local/tasks/comet-api-cache-ttl/environment/cache.py +39 -0
- package/eval/local/tasks/comet-api-cache-ttl/environment/test_cache.py +81 -0
- package/eval/local/tasks/comet-api-cache-ttl/instruction.md +33 -0
- package/eval/local/tasks/comet-api-cache-ttl/task.toml +24 -0
- package/eval/local/tasks/comet-api-cache-ttl/validation/test_api_cache_ttl.py +58 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/.include-current-comet-cli +1 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/Dockerfile +45 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet-package.json +18 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet.sh +14 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/test_wordcount.py +29 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/environment/wordcount.py +40 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/instruction.md +18 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/task.toml +23 -0
- package/eval/local/tasks/comet-classic-layout-lifecycle/validation/test_classic_layout_lifecycle.py +604 -0
- package/eval/local/tasks/comet-cross-file-refactor/environment/Dockerfile +15 -0
- package/eval/local/tasks/comet-cross-file-refactor/environment/cli.py +13 -0
- package/eval/local/tasks/comet-cross-file-refactor/environment/counting.py +13 -0
- package/eval/local/tasks/comet-cross-file-refactor/environment/test_textkit.py +21 -0
- package/eval/local/tasks/comet-cross-file-refactor/instruction.md +16 -0
- package/eval/local/tasks/comet-cross-file-refactor/task.toml +20 -0
- package/eval/local/tasks/comet-cross-file-refactor/validation/test_cross_file_refactor.py +20 -0
- package/eval/local/tasks/comet-dependency-confusion/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-dependency-confusion/environment/app.py +8 -0
- package/eval/local/tasks/comet-dependency-confusion/environment/settings_loader.py +14 -0
- package/eval/local/tasks/comet-dependency-confusion/environment/test_settings_service.py +19 -0
- package/eval/local/tasks/comet-dependency-confusion/instruction.md +18 -0
- package/eval/local/tasks/comet-dependency-confusion/task.toml +24 -0
- package/eval/local/tasks/comet-dependency-confusion/validation/test_dependency_confusion.py +24 -0
- package/eval/local/tasks/comet-fix-median/environment/Dockerfile +46 -0
- package/eval/local/tasks/comet-fix-median/environment/stats.py +54 -0
- package/eval/local/tasks/comet-fix-median/environment/test_stats.py +68 -0
- package/eval/local/tasks/comet-fix-median/instruction.md +25 -0
- package/eval/local/tasks/comet-fix-median/task.toml +24 -0
- package/eval/local/tasks/comet-fix-median/validation/test_fix_median.py +60 -0
- package/eval/local/tasks/comet-framework-selection/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-framework-selection/environment/architecture.py +12 -0
- package/eval/local/tasks/comet-framework-selection/environment/test_architecture.py +30 -0
- package/eval/local/tasks/comet-framework-selection/instruction.md +22 -0
- package/eval/local/tasks/comet-framework-selection/task.toml +24 -0
- package/eval/local/tasks/comet-framework-selection/validation/test_framework_selection.py +24 -0
- package/eval/local/tasks/comet-full-workflow/environment/Dockerfile +49 -0
- package/eval/local/tasks/comet-full-workflow/environment/test_wordcount.py +29 -0
- package/eval/local/tasks/comet-full-workflow/environment/wordcount.py +40 -0
- package/eval/local/tasks/comet-full-workflow/instruction.md +18 -0
- package/eval/local/tasks/comet-full-workflow/task.toml +24 -0
- package/eval/local/tasks/comet-full-workflow/validation/test_full_workflow.py +171 -0
- package/eval/local/tasks/comet-graph-execution-review/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-graph-execution-review/environment/pipeline.py +19 -0
- package/eval/local/tasks/comet-graph-execution-review/environment/test_pipeline.py +53 -0
- package/eval/local/tasks/comet-graph-execution-review/instruction.md +21 -0
- package/eval/local/tasks/comet-graph-execution-review/task.toml +24 -0
- package/eval/local/tasks/comet-graph-execution-review/validation/test_graph_execution_review.py +24 -0
- package/eval/local/tasks/comet-human-approval-flow/environment/Dockerfile +15 -0
- package/eval/local/tasks/comet-human-approval-flow/environment/approvals.py +17 -0
- package/eval/local/tasks/comet-human-approval-flow/environment/test_approvals.py +30 -0
- package/eval/local/tasks/comet-human-approval-flow/instruction.md +15 -0
- package/eval/local/tasks/comet-human-approval-flow/task.toml +20 -0
- package/eval/local/tasks/comet-human-approval-flow/validation/test_human_approval_flow.py +20 -0
- package/eval/local/tasks/comet-layered-streaming-fix/environment/Dockerfile +17 -0
- package/eval/local/tasks/comet-layered-streaming-fix/environment/chat_app.py +19 -0
- package/eval/local/tasks/comet-layered-streaming-fix/environment/test_chat_app.py +15 -0
- package/eval/local/tasks/comet-layered-streaming-fix/instruction.md +14 -0
- package/eval/local/tasks/comet-layered-streaming-fix/task.toml +20 -0
- package/eval/local/tasks/comet-layered-streaming-fix/validation/test_layered_streaming_fix.py +20 -0
- package/eval/local/tasks/comet-native-clarification/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-native-clarification/environment/test_wordcount.py +25 -0
- package/eval/local/tasks/comet-native-clarification/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-clarification/instruction.md +7 -0
- package/eval/local/tasks/comet-native-clarification/task.toml +40 -0
- package/eval/local/tasks/comet-native-clarification/validation/test_native_clarification.py +193 -0
- package/eval/local/tasks/comet-native-clarification-depth/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-native-clarification-depth/environment/test_wordcount.py +25 -0
- package/eval/local/tasks/comet-native-clarification-depth/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-clarification-depth/instruction.md +17 -0
- package/eval/local/tasks/comet-native-clarification-depth/task.toml +47 -0
- package/eval/local/tasks/comet-native-clarification-depth/validation/test_native_clarification_depth.py +618 -0
- package/eval/local/tasks/comet-native-clarification-modes/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-native-clarification-modes/environment/test_wordcount.py +25 -0
- package/eval/local/tasks/comet-native-clarification-modes/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-clarification-modes/instruction.md +13 -0
- package/eval/local/tasks/comet-native-clarification-modes/task.toml +39 -0
- package/eval/local/tasks/comet-native-clarification-modes/validation/test_native_clarification_modes.py +235 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/.comet/config.yaml +6 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/Dockerfile +26 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/brief.md +17 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/comet-state.yaml +12 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/runtime/transition.json +69 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/specs/character-counting/spec.md +3 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/test_wordcount.py +20 -0
- package/eval/local/tasks/comet-native-interrupted-transition/environment/wordcount.py +27 -0
- package/eval/local/tasks/comet-native-interrupted-transition/instruction.md +7 -0
- package/eval/local/tasks/comet-native-interrupted-transition/task.toml +35 -0
- package/eval/local/tasks/comet-native-interrupted-transition/validation/test_native_interrupted_transition.py +63 -0
- package/eval/local/tasks/comet-native-repository-fact/environment/Dockerfile +24 -0
- package/eval/local/tasks/comet-native-repository-fact/environment/PRODUCT_RULES.md +3 -0
- package/eval/local/tasks/comet-native-repository-fact/environment/test_wordcount.py +20 -0
- package/eval/local/tasks/comet-native-repository-fact/environment/wordcount.py +27 -0
- package/eval/local/tasks/comet-native-repository-fact/instruction.md +7 -0
- package/eval/local/tasks/comet-native-repository-fact/task.toml +35 -0
- package/eval/local/tasks/comet-native-repository-fact/validation/test_native_repository_fact.py +53 -0
- package/eval/local/tasks/comet-native-wave-b-decision-resume/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-native-wave-b-decision-resume/environment/test_wordcount.py +27 -0
- package/eval/local/tasks/comet-native-wave-b-decision-resume/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-wave-b-decision-resume/instruction.md +9 -0
- package/eval/local/tasks/comet-native-wave-b-decision-resume/task.toml +40 -0
- package/eval/local/tasks/comet-native-wave-b-decision-resume/validation/test_native_wave_b_decision_resume.py +208 -0
- package/eval/local/tasks/comet-native-wave-c-verification-integrity/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-native-wave-c-verification-integrity/environment/test_wordcount.py +27 -0
- package/eval/local/tasks/comet-native-wave-c-verification-integrity/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-wave-c-verification-integrity/instruction.md +11 -0
- package/eval/local/tasks/comet-native-wave-c-verification-integrity/task.toml +36 -0
- package/eval/local/tasks/comet-native-wave-c-verification-integrity/validation/test_native_wave_c_verification_integrity.py +344 -0
- package/eval/local/tasks/comet-native-wave-d-stagnation-stop/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-native-wave-d-stagnation-stop/environment/test_wordcount.py +27 -0
- package/eval/local/tasks/comet-native-wave-d-stagnation-stop/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-wave-d-stagnation-stop/instruction.md +11 -0
- package/eval/local/tasks/comet-native-wave-d-stagnation-stop/task.toml +37 -0
- package/eval/local/tasks/comet-native-wave-d-stagnation-stop/validation/test_native_wave_d_stagnation_stop.py +284 -0
- package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/.include-trusted-native-runtime +1 -0
- package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/Dockerfile +25 -0
- package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/test_wordcount.py +27 -0
- package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-wave-e-parallel-safety/instruction.md +9 -0
- package/eval/local/tasks/comet-native-wave-e-parallel-safety/task.toml +37 -0
- package/eval/local/tasks/comet-native-wave-e-parallel-safety/validation/test_native_wave_e_parallel_safety.py +309 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/.include-current-comet-cli +1 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/Dockerfile +29 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet-package.json +18 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet.sh +14 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/test_wordcount.py +27 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/instruction.md +7 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/task.toml +36 -0
- package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/validation/test_native_wave_f_dashboard_readonly.py +483 -0
- package/eval/local/tasks/comet-native-workflow/environment/.include-trusted-native-review-fixture +1 -0
- package/eval/local/tasks/comet-native-workflow/environment/.include-trusted-native-runtime +1 -0
- package/eval/local/tasks/comet-native-workflow/environment/Dockerfile +26 -0
- package/eval/local/tasks/comet-native-workflow/environment/test_wordcount.py +25 -0
- package/eval/local/tasks/comet-native-workflow/environment/wordcount.py +36 -0
- package/eval/local/tasks/comet-native-workflow/instruction.md +35 -0
- package/eval/local/tasks/comet-native-workflow/task.toml +36 -0
- package/eval/local/tasks/comet-native-workflow/validation/test_native_workflow.py +680 -0
- package/eval/local/tasks/comet-noise-distractor/environment/Dockerfile +15 -0
- package/eval/local/tasks/comet-noise-distractor/environment/distractor.md +4 -0
- package/eval/local/tasks/comet-noise-distractor/environment/invoice.py +5 -0
- package/eval/local/tasks/comet-noise-distractor/environment/test_invoice.py +18 -0
- package/eval/local/tasks/comet-noise-distractor/instruction.md +17 -0
- package/eval/local/tasks/comet-noise-distractor/task.toml +20 -0
- package/eval/local/tasks/comet-noise-distractor/validation/test_noise_distractor.py +20 -0
- package/eval/local/tasks/comet-observability-env-template/environment/Dockerfile +15 -0
- package/eval/local/tasks/comet-observability-env-template/environment/env_writer.py +17 -0
- package/eval/local/tasks/comet-observability-env-template/environment/test_env_writer.py +17 -0
- package/eval/local/tasks/comet-observability-env-template/instruction.md +20 -0
- package/eval/local/tasks/comet-observability-env-template/task.toml +20 -0
- package/eval/local/tasks/comet-observability-env-template/validation/test_observability_env_template.py +46 -0
- package/eval/local/tasks/comet-perf-dedupe/environment/Dockerfile +35 -0
- package/eval/local/tasks/comet-perf-dedupe/environment/dedupe.py +22 -0
- package/eval/local/tasks/comet-perf-dedupe/environment/test_dedupe.py +43 -0
- package/eval/local/tasks/comet-perf-dedupe/instruction.md +25 -0
- package/eval/local/tasks/comet-perf-dedupe/task.toml +24 -0
- package/eval/local/tasks/comet-perf-dedupe/validation/test_perf_dedupe.py +40 -0
- package/eval/local/tasks/comet-persistence-threading/environment/Dockerfile +15 -0
- package/eval/local/tasks/comet-persistence-threading/environment/session_store.py +15 -0
- package/eval/local/tasks/comet-persistence-threading/environment/test_session_store.py +21 -0
- package/eval/local/tasks/comet-persistence-threading/instruction.md +14 -0
- package/eval/local/tasks/comet-persistence-threading/task.toml +20 -0
- package/eval/local/tasks/comet-persistence-threading/validation/test_persistence_threading.py +20 -0
- package/eval/local/tasks/comet-refactor-counter/environment/Dockerfile +35 -0
- package/eval/local/tasks/comet-refactor-counter/environment/test_text_processor.py +57 -0
- package/eval/local/tasks/comet-refactor-counter/environment/text_processor.py +49 -0
- package/eval/local/tasks/comet-refactor-counter/instruction.md +31 -0
- package/eval/local/tasks/comet-refactor-counter/task.toml +24 -0
- package/eval/local/tasks/comet-refactor-counter/validation/test_refactor_counter.py +75 -0
- package/eval/local/tasks/comet-robust-config/environment/Dockerfile +35 -0
- package/eval/local/tasks/comet-robust-config/environment/config_loader.py +56 -0
- package/eval/local/tasks/comet-robust-config/environment/test_config_loader.py +72 -0
- package/eval/local/tasks/comet-robust-config/instruction.md +30 -0
- package/eval/local/tasks/comet-robust-config/task.toml +24 -0
- package/eval/local/tasks/comet-robust-config/validation/test_robust_config.py +37 -0
- package/eval/local/tasks/generic-skill-smoke/environment/Dockerfile +14 -0
- package/eval/local/tasks/generic-skill-smoke/instruction.md +7 -0
- package/eval/local/tasks/generic-skill-smoke/task.toml +21 -0
- package/eval/local/tasks/generic-skill-smoke/validation/test_generic_skill_smoke.py +41 -0
- package/eval/local/tasks/index.yaml +229 -0
- package/eval/local/tasks/workflow-overlay-contract/environment/Dockerfile +16 -0
- package/eval/local/tasks/workflow-overlay-contract/instruction.md +5 -0
- package/eval/local/tasks/workflow-overlay-contract/task.toml +21 -0
- package/eval/local/tasks/workflow-overlay-contract/validation/test_workflow_overlay_contract.py +235 -0
- package/eval/local/tasks/workflow-route-conformance/environment/Dockerfile +14 -0
- package/eval/local/tasks/workflow-route-conformance/instruction.md +5 -0
- package/eval/local/tasks/workflow-route-conformance/task.toml +21 -0
- package/eval/local/tasks/workflow-route-conformance/validation/test_workflow_route_conformance.py +84 -0
- package/eval/local/tests/conftest.py +1921 -0
- package/eval/local/tests/scaffold/test_aligned_comparison.py +1012 -0
- package/eval/local/tests/scaffold/test_attribution.py +48 -0
- package/eval/local/tests/scaffold/test_compare_baselines.py +999 -0
- package/eval/local/tests/scaffold/test_conftest_helpers.py +980 -0
- package/eval/local/tests/scaffold/test_evidence.py +15 -0
- package/eval/local/tests/scaffold/test_langsmith_conftest.py +244 -0
- package/eval/local/tests/scaffold/test_logging.py +377 -0
- package/eval/local/tests/scaffold/test_manifests.py +134 -0
- package/eval/local/tests/scaffold/test_native_aligned_eval.py +353 -0
- package/eval/local/tests/scaffold/test_native_wave_evaluations.py +2168 -0
- package/eval/local/tests/scaffold/test_profiles.py +1149 -0
- package/eval/local/tests/scaffold/test_regression_check.py +19 -0
- package/eval/local/tests/scaffold/test_report_style_demo_charts.py +45 -0
- package/eval/local/tests/scaffold/test_sample_quality.py +268 -0
- package/eval/local/tests/scaffold/test_tasks.py +1013 -0
- package/eval/local/tests/scaffold/test_treatments.py +353 -0
- package/eval/local/tests/scaffold/test_utils.py +561 -0
- package/eval/local/tests/tasks/__init__.py +1 -0
- package/eval/local/tests/tasks/test_tasks.py +474 -0
- package/eval/local/tests/tasks/test_validation_scripts.py +787 -0
- package/eval/local/treatments/comet/comet_classic_docs_layout.yaml +121 -0
- package/eval/local/treatments/comet/comet_full_039.yaml +141 -0
- package/eval/local/treatments/comet/comet_full_040_beta.yaml +140 -0
- package/eval/local/treatments/comet/comet_native_phase1.yaml +66 -0
- package/eval/local/treatments/common/control.yaml +4 -0
- package/eval/pyproject.toml +41 -0
- package/eval/report-html-config.json +6 -0
- package/eval/scaffold/__init__.py +67 -0
- package/eval/scaffold/python/__init__.py +95 -0
- package/eval/scaffold/python/aligned_comparison.py +1632 -0
- package/eval/scaffold/python/attribution.py +43 -0
- package/eval/scaffold/python/evidence.py +38 -0
- package/eval/scaffold/python/external_data_handler.py +18 -0
- package/eval/scaffold/python/generic_llm_judge.py +237 -0
- package/eval/scaffold/python/judge_config.py +168 -0
- package/eval/scaffold/python/llm_judge.py +188 -0
- package/eval/scaffold/python/logging.py +804 -0
- package/eval/scaffold/python/manifests.py +131 -0
- package/eval/scaffold/python/native_eval.py +143 -0
- package/eval/scaffold/python/paper_charts.py +25 -0
- package/eval/scaffold/python/pass_at_k.py +106 -0
- package/eval/scaffold/python/paths.py +56 -0
- package/eval/scaffold/python/profiles.py +127 -0
- package/eval/scaffold/python/report_outputs.py +1573 -0
- package/eval/scaffold/python/sample_quality.py +382 -0
- package/eval/scaffold/python/schema.py +39 -0
- package/eval/scaffold/python/skill_parser.py +469 -0
- package/eval/scaffold/python/tasks.py +343 -0
- package/eval/scaffold/python/treatments.py +271 -0
- package/eval/scaffold/python/utils.py +460 -0
- package/eval/scaffold/python/validation/__init__.py +31 -0
- package/eval/scaffold/python/validation/authoring_rubric.py +328 -0
- package/eval/scaffold/python/validation/comet_workflow.py +227 -0
- package/eval/scaffold/python/validation/core.py +264 -0
- package/eval/scaffold/python/validation/dataset.py +337 -0
- package/eval/scaffold/python/validation/docker.py +106 -0
- package/eval/scaffold/python/validation/evaluator.py +549 -0
- package/eval/scaffold/python/validation/generic_rubric.py +198 -0
- package/eval/scaffold/python/validation/native_wave.py +2154 -0
- package/eval/scaffold/python/validation/native_workflow.py +252 -0
- package/eval/scaffold/python/validation/rubric.py +780 -0
- package/eval/scaffold/python/validation/runner.py +237 -0
- package/eval/scaffold/python/validation/scripts.py +58 -0
- package/eval/scaffold/python/validation/tracing.py +313 -0
- package/eval/scaffold/shell/common.sh +126 -0
- package/eval/scaffold/shell/completion-point.sh +18 -0
- package/eval/scaffold/shell/decision-point.sh +35 -0
- package/eval/scaffold/shell/docker.sh +716 -0
- package/eval/scaffold/shell/native-review-signer-daemon.mjs +144 -0
- package/eval/scaffold/shell/native-review-verifier-daemon.mjs +178 -0
- package/eval/scaffold/shell/run-claude-loop.sh +234 -0
- package/eval/scaffold/shell/setup.sh +259 -0
- package/eval/simulator-instruction.md +9 -0
- package/package.json +64 -10
- package/dist/domains/dashboard/web/assets/demo-DQyfozbi.js +0 -1
- package/dist/domains/dashboard/web/assets/index-BcO3_QlT.css +0 -1
- package/dist/domains/dashboard/web/assets/index-CjU3VXVu.js +0 -22
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { canonicalHash } from './native-canonical-hash.js';
|
|
3
|
+
import { redactNativeCredentialText } from './native-redaction.js';
|
|
4
|
+
import { nativeSensitiveRelativePathReason } from './native-sensitive-paths.js';
|
|
5
|
+
import { parseNativeIndependentReview, } from './native-independent-review.js';
|
|
6
|
+
import { parseNativeImplementationScopeBundle, } from './native-verification-scope.js';
|
|
7
|
+
const HASH_PATTERN = /^[a-f0-9]{64}$/u;
|
|
8
|
+
const MISSING_ACCEPTANCE_DETAIL_LIMIT = 8;
|
|
9
|
+
const ACCEPTANCE_TRACE_HASH_TAG = 'comet.native.acceptance-trace.v2';
|
|
10
|
+
const LEGACY_ACCEPTANCE_TRACE_HASH_TAG = 'comet.native.acceptance-trace.v1';
|
|
11
|
+
const PARTIAL_ALLOWANCE_HASH_TAG = 'comet.native.partial-allowance.v1';
|
|
12
|
+
const VERIFICATION_ENVELOPE_HASH_TAG = 'comet.native.verification-evidence.v2';
|
|
13
|
+
const LEGACY_VERIFICATION_ENVELOPE_HASH_TAG = 'comet.native.verification-evidence.v1';
|
|
14
|
+
function hash(value, label) {
|
|
15
|
+
if (!HASH_PATTERN.test(value))
|
|
16
|
+
throw new Error(`${label} must be a SHA-256 hash`);
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
function positiveRevision(value) {
|
|
20
|
+
if (!Number.isSafeInteger(value) || value < 1) {
|
|
21
|
+
throw new Error('Native evidence source revision must be a positive integer');
|
|
22
|
+
}
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
function changeName(value) {
|
|
26
|
+
if (!/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u.test(value)) {
|
|
27
|
+
throw new Error(`Invalid Native evidence change name: ${value}`);
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
function requiredText(value, label, max = 2_000) {
|
|
32
|
+
const normalized = redactNativeCredentialText(value).trim();
|
|
33
|
+
if (normalized.length === 0 || normalized.length > max) {
|
|
34
|
+
throw new Error(`${label} must be between 1 and ${max} characters`);
|
|
35
|
+
}
|
|
36
|
+
return normalized;
|
|
37
|
+
}
|
|
38
|
+
function portableRef(value, label) {
|
|
39
|
+
const normalized = path.posix.normalize(value);
|
|
40
|
+
if (value.length === 0 ||
|
|
41
|
+
value !== value.trim() ||
|
|
42
|
+
value.includes('\\') ||
|
|
43
|
+
Array.from(value).some((character) => {
|
|
44
|
+
const code = character.codePointAt(0) ?? 0;
|
|
45
|
+
return code <= 0x1f || code === 0x7f;
|
|
46
|
+
}) ||
|
|
47
|
+
path.posix.isAbsolute(normalized) ||
|
|
48
|
+
/^(?:[A-Za-z]:|~)/u.test(value) ||
|
|
49
|
+
value.split('/').includes('..') ||
|
|
50
|
+
normalized !== value ||
|
|
51
|
+
normalized === '.' ||
|
|
52
|
+
value.endsWith('/')) {
|
|
53
|
+
throw new Error(`${label} must be a normalized relative ref`);
|
|
54
|
+
}
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
function portableEvidenceRef(value, label, nativeRootRef) {
|
|
58
|
+
const reference = portableRef(value, label);
|
|
59
|
+
// A check receipt is a content-addressed Native artifact, not a project source path.
|
|
60
|
+
// It is the only runtime evidence ref admitted into an acceptance matrix.
|
|
61
|
+
if (/^runtime\/evidence\/check-receipts\/[a-f0-9]{64}\.json$/u.test(reference)) {
|
|
62
|
+
return reference;
|
|
63
|
+
}
|
|
64
|
+
const sensitiveReason = nativeSensitiveRelativePathReason(reference);
|
|
65
|
+
const lowerReference = reference.toLowerCase();
|
|
66
|
+
const lowerNativeRoot = nativeRootRef
|
|
67
|
+
? portableRef(nativeRootRef, 'Native root ref').toLowerCase()
|
|
68
|
+
: null;
|
|
69
|
+
if (sensitiveReason ||
|
|
70
|
+
lowerReference === 'runtime' ||
|
|
71
|
+
lowerReference.startsWith('runtime/') ||
|
|
72
|
+
(lowerNativeRoot !== null &&
|
|
73
|
+
(lowerReference === lowerNativeRoot || lowerReference.startsWith(`${lowerNativeRoot}/`)))) {
|
|
74
|
+
throw new Error(`${label} is excluded as sensitive (${sensitiveReason ?? 'native-runtime'}): ${reference}`);
|
|
75
|
+
}
|
|
76
|
+
return reference;
|
|
77
|
+
}
|
|
78
|
+
function checkReceiptRef(value) {
|
|
79
|
+
const reference = portableRef(value, 'Verification receipt ref');
|
|
80
|
+
if (!/^runtime\/evidence\/check-receipts\/[a-f0-9]{64}\.json$/u.test(reference)) {
|
|
81
|
+
throw new Error('Verification receipt ref must identify a Native check receipt');
|
|
82
|
+
}
|
|
83
|
+
return reference;
|
|
84
|
+
}
|
|
85
|
+
function typedReceiptRef(value) {
|
|
86
|
+
const reference = portableRef(value, 'Verification typed receipt ref');
|
|
87
|
+
if (!/^runtime\/evidence\/receipts\/[a-f0-9]{64}\.json$/u.test(reference)) {
|
|
88
|
+
throw new Error('Verification receipt ref must identify a typed v2 receipt');
|
|
89
|
+
}
|
|
90
|
+
return reference;
|
|
91
|
+
}
|
|
92
|
+
function waiverReceiptRef(value) {
|
|
93
|
+
const reference = portableRef(value, 'Verification waiver receipt ref');
|
|
94
|
+
if (!/^runtime\/evidence\/waivers\/[a-f0-9]{64}\.json$/u.test(reference)) {
|
|
95
|
+
throw new Error('Verification waiver ref must identify a v2 waiver receipt');
|
|
96
|
+
}
|
|
97
|
+
return reference;
|
|
98
|
+
}
|
|
99
|
+
function timestamp(value) {
|
|
100
|
+
const result = value.toISOString();
|
|
101
|
+
if (Number.isNaN(Date.parse(result)))
|
|
102
|
+
throw new Error('Native evidence timestamp is invalid');
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
function acceptanceCriteriaHash(criteria) {
|
|
106
|
+
return canonicalHash('comet.native.acceptance-set.v1', [...criteria].sort((left, right) => compareText(left.id, right.id)));
|
|
107
|
+
}
|
|
108
|
+
function compareText(left, right) {
|
|
109
|
+
if (left < right)
|
|
110
|
+
return -1;
|
|
111
|
+
if (left > right)
|
|
112
|
+
return 1;
|
|
113
|
+
return 0;
|
|
114
|
+
}
|
|
115
|
+
/** Build an exact, order-independent trace. Unknown, duplicate, or missing criteria fail closed. */
|
|
116
|
+
export function buildNativeAcceptanceEvidenceTrace(criteria, evidence, options) {
|
|
117
|
+
const nativeRootRef = portableRef(options.nativeRootRef, 'Native root ref');
|
|
118
|
+
const byId = new Map(criteria.map((criterion) => [criterion.id, criterion]));
|
|
119
|
+
if (byId.size !== criteria.length)
|
|
120
|
+
throw new Error('Native contract has duplicate acceptance IDs');
|
|
121
|
+
const evidenceById = new Map();
|
|
122
|
+
for (const entry of evidence) {
|
|
123
|
+
if (!byId.has(entry.acceptance_id)) {
|
|
124
|
+
throw new Error(`Verification references unknown acceptance ID: ${entry.acceptance_id}`);
|
|
125
|
+
}
|
|
126
|
+
if (evidenceById.has(entry.acceptance_id)) {
|
|
127
|
+
throw new Error(`Verification repeats acceptance ID: ${entry.acceptance_id}`);
|
|
128
|
+
}
|
|
129
|
+
evidenceById.set(entry.acceptance_id, entry);
|
|
130
|
+
}
|
|
131
|
+
const missing = [...byId.keys()].filter((id) => !evidenceById.has(id));
|
|
132
|
+
if (missing.length > 0 && options.allowMissing !== true) {
|
|
133
|
+
const shown = missing.slice(0, MISSING_ACCEPTANCE_DETAIL_LIMIT);
|
|
134
|
+
const remainder = missing.length - shown.length;
|
|
135
|
+
throw new Error(`Verification is missing ${missing.length} acceptance evidence entr${missing.length === 1 ? 'y' : 'ies'}: ${shown.join(', ')}${remainder > 0 ? `, ... (${remainder} more)` : ''}`);
|
|
136
|
+
}
|
|
137
|
+
const entries = [...byId.values()]
|
|
138
|
+
.sort((left, right) => compareText(left.id, right.id))
|
|
139
|
+
.map((criterion) => {
|
|
140
|
+
const entry = evidenceById.get(criterion.id);
|
|
141
|
+
if (!entry) {
|
|
142
|
+
return {
|
|
143
|
+
acceptanceId: criterion.id,
|
|
144
|
+
status: 'missing',
|
|
145
|
+
kind: criterion.kind,
|
|
146
|
+
source: portableRef(criterion.source, `Acceptance source for ${criterion.id}`),
|
|
147
|
+
evidenceRefs: [],
|
|
148
|
+
skippedReason: null,
|
|
149
|
+
waiverRef: null,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
const status = entry.status;
|
|
153
|
+
const evidenceRefs = [...entry.evidence_refs]
|
|
154
|
+
.map((reference) => typedReceiptRef(reference))
|
|
155
|
+
.sort();
|
|
156
|
+
if (new Set(evidenceRefs).size !== evidenceRefs.length) {
|
|
157
|
+
throw new Error(`Verification repeats an evidence ref for ${criterion.id}`);
|
|
158
|
+
}
|
|
159
|
+
const rawSkippedReason = entry.skipped_reason?.trim() || null;
|
|
160
|
+
const skippedReason = rawSkippedReason === null
|
|
161
|
+
? null
|
|
162
|
+
: requiredText(rawSkippedReason, `Skipped reason for ${criterion.id}`);
|
|
163
|
+
const waiverRef = entry.waiver_ref ? waiverReceiptRef(entry.waiver_ref) : null;
|
|
164
|
+
if ((status === 'passed' &&
|
|
165
|
+
(evidenceRefs.length === 0 || skippedReason !== null || waiverRef !== null)) ||
|
|
166
|
+
(status === 'failed' &&
|
|
167
|
+
(evidenceRefs.length !== 0 || skippedReason === null || waiverRef !== null)) ||
|
|
168
|
+
(status === 'waived' &&
|
|
169
|
+
(evidenceRefs.length !== 0 || skippedReason !== null || waiverRef === null))) {
|
|
170
|
+
throw new Error(`Acceptance ${criterion.id} has an invalid v2 evidence state`);
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
acceptanceId: criterion.id,
|
|
174
|
+
status,
|
|
175
|
+
kind: criterion.kind,
|
|
176
|
+
source: portableRef(criterion.source, `Acceptance source for ${criterion.id}`),
|
|
177
|
+
evidenceRefs,
|
|
178
|
+
skippedReason,
|
|
179
|
+
waiverRef,
|
|
180
|
+
};
|
|
181
|
+
});
|
|
182
|
+
const criteriaHash = acceptanceCriteriaHash(criteria);
|
|
183
|
+
const content = {
|
|
184
|
+
schema: 'comet.native.acceptance-trace.v2',
|
|
185
|
+
nativeRootRef,
|
|
186
|
+
criteriaHash,
|
|
187
|
+
total: entries.length,
|
|
188
|
+
evidenced: entries.filter((entry) => entry.evidenceRefs.length > 0).length,
|
|
189
|
+
skipped: entries.filter((entry) => entry.skippedReason !== null).length,
|
|
190
|
+
entries,
|
|
191
|
+
};
|
|
192
|
+
return {
|
|
193
|
+
...content,
|
|
194
|
+
traceHash: canonicalHash(ACCEPTANCE_TRACE_HASH_TAG, content),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
export function buildNativePartialAllowance(input) {
|
|
198
|
+
const scope = parseNativeImplementationScopeBundle(input.scopeBundle).scope;
|
|
199
|
+
if (scope.complete)
|
|
200
|
+
throw new Error('Complete implementation scope cannot be partially allowed');
|
|
201
|
+
const unresolved = new Set(scope.unresolvedScopes.map((entry) => entry.id));
|
|
202
|
+
if (new Set(input.allowedScopeIds).size !== input.allowedScopeIds.length) {
|
|
203
|
+
throw new Error('Partial allowance has duplicate allowed scope IDs');
|
|
204
|
+
}
|
|
205
|
+
const scopeIds = [...input.allowedScopeIds].sort(compareText);
|
|
206
|
+
if (scopeIds.length === 0)
|
|
207
|
+
throw new Error('Partial allowance requires at least one scope ID');
|
|
208
|
+
if ([...unresolved, ...scopeIds].some((id) => !/^scope:[a-f0-9]{64}$/u.test(id))) {
|
|
209
|
+
throw new Error('Partial allowance scope IDs are invalid');
|
|
210
|
+
}
|
|
211
|
+
const unknown = scopeIds.filter((id) => !unresolved.has(id));
|
|
212
|
+
const missing = [...unresolved].filter((id) => !scopeIds.includes(id));
|
|
213
|
+
if (unknown.length > 0)
|
|
214
|
+
throw new Error(`Partial allowance has unknown scope IDs: ${unknown}`);
|
|
215
|
+
if (missing.length > 0)
|
|
216
|
+
throw new Error(`Partial allowance is missing scope IDs: ${missing}`);
|
|
217
|
+
const content = {
|
|
218
|
+
schema: 'comet.native.partial-allowance.v1',
|
|
219
|
+
change: changeName(input.change),
|
|
220
|
+
scopeHash: scope.scopeHash,
|
|
221
|
+
scopeIds,
|
|
222
|
+
reason: requiredText(input.reason, 'Partial allowance reason'),
|
|
223
|
+
confirmedSummary: requiredText(input.confirmedSummary, 'Partial allowance confirmation'),
|
|
224
|
+
sourceRevision: positiveRevision(input.sourceRevision),
|
|
225
|
+
confirmedAt: timestamp(input.now ?? new Date()),
|
|
226
|
+
};
|
|
227
|
+
return {
|
|
228
|
+
...content,
|
|
229
|
+
allowanceHash: canonicalHash(PARTIAL_ALLOWANCE_HASH_TAG, content),
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
export function buildNativeVerificationEvidenceEnvelope(input) {
|
|
233
|
+
if (input.result !== 'pass' && input.result !== 'fail') {
|
|
234
|
+
throw new Error('Native verification evidence result is invalid');
|
|
235
|
+
}
|
|
236
|
+
const acceptanceTrace = parseNativeAcceptanceEvidenceTrace(input.acceptanceTrace);
|
|
237
|
+
const implementationScope = parseNativeImplementationScopeBundle(input.implementationScope.bundle).scope;
|
|
238
|
+
const implementationScopeRef = evidenceDocumentRef(input.implementationScope.ref, 'scopes', implementationScope.scopeHash);
|
|
239
|
+
if (implementationScope.contractHash !== input.contractHash) {
|
|
240
|
+
throw new Error('Implementation scope does not match the verification contract');
|
|
241
|
+
}
|
|
242
|
+
const allowanceInput = input.partialAllowance ?? null;
|
|
243
|
+
const parsedAllowance = allowanceInput
|
|
244
|
+
? parseNativePartialAllowance(allowanceInput.allowance)
|
|
245
|
+
: null;
|
|
246
|
+
const allowance = allowanceInput && parsedAllowance
|
|
247
|
+
? {
|
|
248
|
+
ref: evidenceDocumentRef(allowanceInput.ref, 'allowances', parsedAllowance.allowanceHash),
|
|
249
|
+
allowance: parsedAllowance,
|
|
250
|
+
}
|
|
251
|
+
: null;
|
|
252
|
+
if (implementationScope.complete && allowance !== null) {
|
|
253
|
+
throw new Error('Complete implementation scope must not use a partial allowance');
|
|
254
|
+
}
|
|
255
|
+
if (!implementationScope.complete && allowance === null) {
|
|
256
|
+
throw new Error('Partial implementation scope requires a confirmed allowance');
|
|
257
|
+
}
|
|
258
|
+
const unresolvedScopeIds = implementationScope.unresolvedScopes
|
|
259
|
+
.map((entry) => entry.id)
|
|
260
|
+
.sort(compareText);
|
|
261
|
+
if (allowance &&
|
|
262
|
+
(allowance.allowance.change !== input.change ||
|
|
263
|
+
allowance.allowance.scopeHash !== implementationScope.scopeHash ||
|
|
264
|
+
JSON.stringify(allowance.allowance.scopeIds) !== JSON.stringify(unresolvedScopeIds))) {
|
|
265
|
+
throw new Error('Partial allowance does not match the verification scope');
|
|
266
|
+
}
|
|
267
|
+
if (acceptanceTrace.criteriaHash !== input.acceptanceHash) {
|
|
268
|
+
throw new Error('Acceptance trace does not match the verification contract');
|
|
269
|
+
}
|
|
270
|
+
if (allowance && allowance.allowance.sourceRevision >= input.sourceRevision) {
|
|
271
|
+
throw new Error('Partial allowance must precede the verification evidence revision');
|
|
272
|
+
}
|
|
273
|
+
const traceReceiptRefs = [
|
|
274
|
+
...new Set(acceptanceTrace.entries.flatMap((entry) => entry.evidenceRefs)),
|
|
275
|
+
].sort(compareText);
|
|
276
|
+
const waiverRefs = [
|
|
277
|
+
...new Set(acceptanceTrace.entries.flatMap((entry) => entry.waiverRef === null ? [] : [entry.waiverRef])),
|
|
278
|
+
].sort(compareText);
|
|
279
|
+
const requiredReceiptRefs = [...new Set(input.requiredReceiptRefs.map(typedReceiptRef))].sort(compareText);
|
|
280
|
+
const independentReviewReceiptRef = input.independentReviewReceiptRef === null
|
|
281
|
+
? null
|
|
282
|
+
: typedReceiptRef(input.independentReviewReceiptRef);
|
|
283
|
+
const receiptRefs = [
|
|
284
|
+
...new Set([
|
|
285
|
+
...traceReceiptRefs,
|
|
286
|
+
...(independentReviewReceiptRef === null ? [] : [independentReviewReceiptRef]),
|
|
287
|
+
]),
|
|
288
|
+
].sort(compareText);
|
|
289
|
+
if (input.result === 'pass' && requiredReceiptRefs.length === 0) {
|
|
290
|
+
throw new Error('Passing verification requires at least one current required check receipt');
|
|
291
|
+
}
|
|
292
|
+
const content = {
|
|
293
|
+
schema: 'comet.native.verification-evidence.v2',
|
|
294
|
+
change: changeName(input.change),
|
|
295
|
+
sourceRevision: positiveRevision(input.sourceRevision),
|
|
296
|
+
result: input.result,
|
|
297
|
+
freshness: implementationScope.complete ? 'complete' : 'partial',
|
|
298
|
+
contractHash: hash(input.contractHash, 'Verification contractHash'),
|
|
299
|
+
acceptanceCriteriaHash: hash(input.acceptanceHash, 'Verification acceptanceHash'),
|
|
300
|
+
implementationScopeRef,
|
|
301
|
+
implementationScopeHash: implementationScope.scopeHash,
|
|
302
|
+
reportRef: portableEvidenceRef(input.reportRef, 'Verification report ref'),
|
|
303
|
+
reportHash: hash(input.reportHash, 'Verification report hash'),
|
|
304
|
+
acceptanceTrace,
|
|
305
|
+
partialAllowanceRef: allowance?.ref ?? null,
|
|
306
|
+
partialAllowanceHash: allowance?.allowance.allowanceHash ?? null,
|
|
307
|
+
requiredReceiptRefs,
|
|
308
|
+
receiptRefs,
|
|
309
|
+
waiverRefs,
|
|
310
|
+
independentReviewReceiptRef,
|
|
311
|
+
createdAt: timestamp(input.now ?? new Date()),
|
|
312
|
+
};
|
|
313
|
+
return {
|
|
314
|
+
...content,
|
|
315
|
+
envelopeHash: canonicalHash(VERIFICATION_ENVELOPE_HASH_TAG, content),
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
function evidenceRecord(value, label) {
|
|
319
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
320
|
+
throw new Error(`${label} must be an object`);
|
|
321
|
+
}
|
|
322
|
+
return value;
|
|
323
|
+
}
|
|
324
|
+
function exactEvidenceKeys(value, keys, label) {
|
|
325
|
+
const expected = new Set(keys);
|
|
326
|
+
const unknown = Object.keys(value).filter((key) => !expected.has(key));
|
|
327
|
+
const missing = keys.filter((key) => !(key in value));
|
|
328
|
+
if (unknown.length > 0)
|
|
329
|
+
throw new Error(`${label} has unknown field(s): ${unknown.join(', ')}`);
|
|
330
|
+
if (missing.length > 0)
|
|
331
|
+
throw new Error(`${label} is missing field(s): ${missing.join(', ')}`);
|
|
332
|
+
}
|
|
333
|
+
function canonicalTimestamp(value, label) {
|
|
334
|
+
if (typeof value !== 'string')
|
|
335
|
+
throw new Error(`${label} is invalid`);
|
|
336
|
+
const parsed = new Date(value);
|
|
337
|
+
if (Number.isNaN(parsed.valueOf()) || parsed.toISOString() !== value) {
|
|
338
|
+
throw new Error(`${label} is invalid`);
|
|
339
|
+
}
|
|
340
|
+
return value;
|
|
341
|
+
}
|
|
342
|
+
function evidenceDocumentRef(value, kind, hash) {
|
|
343
|
+
if (typeof value !== 'string')
|
|
344
|
+
throw new Error(`Native ${kind} evidence ref is invalid`);
|
|
345
|
+
const expected = `runtime/evidence/${kind}/${hash}.json`;
|
|
346
|
+
if (value !== expected)
|
|
347
|
+
throw new Error(`Native ${kind} evidence ref/hash mismatch`);
|
|
348
|
+
return value;
|
|
349
|
+
}
|
|
350
|
+
export function parseNativeAcceptanceEvidenceTrace(value) {
|
|
351
|
+
const root = evidenceRecord(value, 'Native acceptance trace');
|
|
352
|
+
exactEvidenceKeys(root, [
|
|
353
|
+
'schema',
|
|
354
|
+
'nativeRootRef',
|
|
355
|
+
'criteriaHash',
|
|
356
|
+
'total',
|
|
357
|
+
'evidenced',
|
|
358
|
+
'skipped',
|
|
359
|
+
'entries',
|
|
360
|
+
'traceHash',
|
|
361
|
+
], 'Native acceptance trace');
|
|
362
|
+
if (root.schema !== 'comet.native.acceptance-trace.v2' ||
|
|
363
|
+
typeof root.nativeRootRef !== 'string' ||
|
|
364
|
+
typeof root.criteriaHash !== 'string' ||
|
|
365
|
+
!HASH_PATTERN.test(root.criteriaHash) ||
|
|
366
|
+
!Number.isSafeInteger(root.total) ||
|
|
367
|
+
!Number.isSafeInteger(root.evidenced) ||
|
|
368
|
+
!Number.isSafeInteger(root.skipped) ||
|
|
369
|
+
!Array.isArray(root.entries)) {
|
|
370
|
+
throw new Error('Native acceptance trace is invalid');
|
|
371
|
+
}
|
|
372
|
+
const nativeRootRef = portableRef(root.nativeRootRef, 'Native root ref');
|
|
373
|
+
const entries = root.entries.map((value, index) => {
|
|
374
|
+
const entry = evidenceRecord(value, `Native acceptance trace entry ${index}`);
|
|
375
|
+
exactEvidenceKeys(entry, ['acceptanceId', 'status', 'kind', 'source', 'evidenceRefs', 'skippedReason', 'waiverRef'], `Native acceptance trace entry ${index}`);
|
|
376
|
+
if (typeof entry.acceptanceId !== 'string' ||
|
|
377
|
+
!/^acceptance-[a-f0-9]{64}$/u.test(entry.acceptanceId) ||
|
|
378
|
+
(entry.kind !== 'brief-example' &&
|
|
379
|
+
entry.kind !== 'spec-scenario' &&
|
|
380
|
+
entry.kind !== 'spec-must') ||
|
|
381
|
+
typeof entry.source !== 'string' ||
|
|
382
|
+
!Array.isArray(entry.evidenceRefs) ||
|
|
383
|
+
(entry.status !== 'passed' &&
|
|
384
|
+
entry.status !== 'failed' &&
|
|
385
|
+
entry.status !== 'missing' &&
|
|
386
|
+
entry.status !== 'waived') ||
|
|
387
|
+
entry.evidenceRefs.some((reference) => typeof reference !== 'string') ||
|
|
388
|
+
(entry.waiverRef !== null && typeof entry.waiverRef !== 'string') ||
|
|
389
|
+
(entry.skippedReason !== null &&
|
|
390
|
+
(typeof entry.skippedReason !== 'string' ||
|
|
391
|
+
entry.skippedReason.length === 0 ||
|
|
392
|
+
entry.skippedReason.trim() !== entry.skippedReason))) {
|
|
393
|
+
throw new Error(`Native acceptance trace entry ${index} is invalid`);
|
|
394
|
+
}
|
|
395
|
+
const evidenceRefs = entry.evidenceRefs.map((reference) => typedReceiptRef(reference));
|
|
396
|
+
const status = entry.status;
|
|
397
|
+
const waiverRef = entry.waiverRef === null ? null : waiverReceiptRef(entry.waiverRef);
|
|
398
|
+
if (JSON.stringify(evidenceRefs) !==
|
|
399
|
+
JSON.stringify([...new Set(evidenceRefs)].sort(compareText)) ||
|
|
400
|
+
(status === 'passed' &&
|
|
401
|
+
(evidenceRefs.length === 0 || entry.skippedReason !== null || waiverRef !== null)) ||
|
|
402
|
+
(status === 'failed' &&
|
|
403
|
+
(evidenceRefs.length > 0 || entry.skippedReason === null || waiverRef !== null)) ||
|
|
404
|
+
(status === 'missing' &&
|
|
405
|
+
(evidenceRefs.length > 0 || entry.skippedReason !== null || waiverRef !== null)) ||
|
|
406
|
+
(status === 'waived' &&
|
|
407
|
+
(evidenceRefs.length > 0 || entry.skippedReason !== null || waiverRef === null))) {
|
|
408
|
+
throw new Error(`Native acceptance trace entry ${index} evidence state is invalid`);
|
|
409
|
+
}
|
|
410
|
+
return {
|
|
411
|
+
acceptanceId: entry.acceptanceId,
|
|
412
|
+
status,
|
|
413
|
+
kind: entry.kind,
|
|
414
|
+
source: portableRef(entry.source, `Native acceptance trace entry ${index} source`),
|
|
415
|
+
evidenceRefs,
|
|
416
|
+
skippedReason: entry.skippedReason === null
|
|
417
|
+
? null
|
|
418
|
+
: requiredText(entry.skippedReason, `Native acceptance trace entry ${index} skipped reason`),
|
|
419
|
+
waiverRef,
|
|
420
|
+
};
|
|
421
|
+
});
|
|
422
|
+
if (JSON.stringify(entries) !==
|
|
423
|
+
JSON.stringify([...entries].sort((left, right) => compareText(left.acceptanceId, right.acceptanceId))) ||
|
|
424
|
+
new Set(entries.map((entry) => entry.acceptanceId)).size !== entries.length ||
|
|
425
|
+
root.total !== entries.length ||
|
|
426
|
+
root.evidenced !== entries.filter((entry) => entry.evidenceRefs.length > 0).length ||
|
|
427
|
+
root.skipped !== entries.filter((entry) => entry.skippedReason !== null).length) {
|
|
428
|
+
throw new Error('Native acceptance trace entries are inconsistent');
|
|
429
|
+
}
|
|
430
|
+
const content = {
|
|
431
|
+
schema: 'comet.native.acceptance-trace.v2',
|
|
432
|
+
nativeRootRef,
|
|
433
|
+
criteriaHash: root.criteriaHash,
|
|
434
|
+
total: root.total,
|
|
435
|
+
evidenced: root.evidenced,
|
|
436
|
+
skipped: root.skipped,
|
|
437
|
+
entries,
|
|
438
|
+
};
|
|
439
|
+
const traceHash = hash(root.traceHash, 'Native acceptance trace hash');
|
|
440
|
+
if (canonicalHash(ACCEPTANCE_TRACE_HASH_TAG, content) !== traceHash) {
|
|
441
|
+
throw new Error('Native acceptance trace content hash mismatch');
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
...content,
|
|
445
|
+
traceHash,
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
function parseNativeLegacyAcceptanceEvidenceTrace(value) {
|
|
449
|
+
const root = evidenceRecord(value, 'Legacy Native acceptance trace');
|
|
450
|
+
exactEvidenceKeys(root, [
|
|
451
|
+
'schema',
|
|
452
|
+
'nativeRootRef',
|
|
453
|
+
'criteriaHash',
|
|
454
|
+
'total',
|
|
455
|
+
'evidenced',
|
|
456
|
+
'skipped',
|
|
457
|
+
'entries',
|
|
458
|
+
'traceHash',
|
|
459
|
+
], 'Legacy Native acceptance trace');
|
|
460
|
+
if (root.schema !== 'comet.native.acceptance-trace.v1' ||
|
|
461
|
+
typeof root.nativeRootRef !== 'string' ||
|
|
462
|
+
typeof root.criteriaHash !== 'string' ||
|
|
463
|
+
!HASH_PATTERN.test(root.criteriaHash) ||
|
|
464
|
+
!Number.isSafeInteger(root.total) ||
|
|
465
|
+
!Number.isSafeInteger(root.evidenced) ||
|
|
466
|
+
!Number.isSafeInteger(root.skipped) ||
|
|
467
|
+
!Array.isArray(root.entries)) {
|
|
468
|
+
throw new Error('Legacy Native acceptance trace is invalid');
|
|
469
|
+
}
|
|
470
|
+
const nativeRootRef = portableRef(root.nativeRootRef, 'Legacy Native root ref');
|
|
471
|
+
const hasStatus = root.entries.every((entry) => entry !== null &&
|
|
472
|
+
typeof entry === 'object' &&
|
|
473
|
+
!Array.isArray(entry) &&
|
|
474
|
+
Object.prototype.hasOwnProperty.call(entry, 'status'));
|
|
475
|
+
const entries = root.entries.map((value, index) => {
|
|
476
|
+
const entry = evidenceRecord(value, `Legacy Native acceptance trace entry ${index}`);
|
|
477
|
+
exactEvidenceKeys(entry, [
|
|
478
|
+
'acceptanceId',
|
|
479
|
+
...(hasStatus ? ['status'] : []),
|
|
480
|
+
'kind',
|
|
481
|
+
'source',
|
|
482
|
+
'evidenceRefs',
|
|
483
|
+
'skippedReason',
|
|
484
|
+
], `Legacy Native acceptance trace entry ${index}`);
|
|
485
|
+
if (typeof entry.acceptanceId !== 'string' ||
|
|
486
|
+
!/^acceptance-[a-f0-9]{64}$/u.test(entry.acceptanceId) ||
|
|
487
|
+
(entry.kind !== 'brief-example' &&
|
|
488
|
+
entry.kind !== 'spec-scenario' &&
|
|
489
|
+
entry.kind !== 'spec-must') ||
|
|
490
|
+
typeof entry.source !== 'string' ||
|
|
491
|
+
!Array.isArray(entry.evidenceRefs) ||
|
|
492
|
+
entry.evidenceRefs.some((reference) => typeof reference !== 'string') ||
|
|
493
|
+
(entry.skippedReason !== null && typeof entry.skippedReason !== 'string') ||
|
|
494
|
+
(hasStatus &&
|
|
495
|
+
entry.status !== 'passed' &&
|
|
496
|
+
entry.status !== 'failed' &&
|
|
497
|
+
entry.status !== 'waived')) {
|
|
498
|
+
throw new Error(`Legacy Native acceptance trace entry ${index} is invalid`);
|
|
499
|
+
}
|
|
500
|
+
const evidenceRefs = entry.evidenceRefs
|
|
501
|
+
.map((reference) => portableEvidenceRef(reference, `Legacy Native acceptance trace entry ${index} evidence ref`, nativeRootRef))
|
|
502
|
+
.sort(compareText);
|
|
503
|
+
const skippedReason = entry.skippedReason === null
|
|
504
|
+
? null
|
|
505
|
+
: requiredText(entry.skippedReason, `Legacy Native acceptance trace entry ${index} skipped reason`);
|
|
506
|
+
return {
|
|
507
|
+
acceptanceId: entry.acceptanceId,
|
|
508
|
+
status: hasStatus
|
|
509
|
+
? entry.status
|
|
510
|
+
: skippedReason === null
|
|
511
|
+
? 'passed'
|
|
512
|
+
: 'failed',
|
|
513
|
+
kind: entry.kind,
|
|
514
|
+
source: portableRef(entry.source, `Legacy Native acceptance trace entry ${index} source`),
|
|
515
|
+
evidenceRefs,
|
|
516
|
+
skippedReason,
|
|
517
|
+
};
|
|
518
|
+
});
|
|
519
|
+
const hashedEntries = hasStatus
|
|
520
|
+
? entries
|
|
521
|
+
: entries.map(({ status: _status, ...legacyEntry }) => legacyEntry);
|
|
522
|
+
const content = {
|
|
523
|
+
schema: 'comet.native.acceptance-trace.v1',
|
|
524
|
+
nativeRootRef,
|
|
525
|
+
criteriaHash: root.criteriaHash,
|
|
526
|
+
total: root.total,
|
|
527
|
+
evidenced: root.evidenced,
|
|
528
|
+
skipped: root.skipped,
|
|
529
|
+
entries: hashedEntries,
|
|
530
|
+
};
|
|
531
|
+
const traceHash = hash(root.traceHash, 'Legacy Native acceptance trace hash');
|
|
532
|
+
if (canonicalHash(LEGACY_ACCEPTANCE_TRACE_HASH_TAG, content) !== traceHash) {
|
|
533
|
+
throw new Error('Legacy Native acceptance trace content hash mismatch');
|
|
534
|
+
}
|
|
535
|
+
return { ...content, entries, traceHash };
|
|
536
|
+
}
|
|
537
|
+
export function parseNativePartialAllowance(value) {
|
|
538
|
+
const root = evidenceRecord(value, 'Native partial allowance');
|
|
539
|
+
exactEvidenceKeys(root, [
|
|
540
|
+
'schema',
|
|
541
|
+
'change',
|
|
542
|
+
'scopeHash',
|
|
543
|
+
'scopeIds',
|
|
544
|
+
'reason',
|
|
545
|
+
'confirmedSummary',
|
|
546
|
+
'sourceRevision',
|
|
547
|
+
'confirmedAt',
|
|
548
|
+
'allowanceHash',
|
|
549
|
+
], 'Native partial allowance');
|
|
550
|
+
if (root.schema !== 'comet.native.partial-allowance.v1' ||
|
|
551
|
+
typeof root.change !== 'string' ||
|
|
552
|
+
typeof root.scopeHash !== 'string' ||
|
|
553
|
+
!Array.isArray(root.scopeIds) ||
|
|
554
|
+
root.scopeIds.length === 0 ||
|
|
555
|
+
root.scopeIds.some((id) => typeof id !== 'string' || !/^scope:[a-f0-9]{64}$/u.test(id)) ||
|
|
556
|
+
JSON.stringify(root.scopeIds) !==
|
|
557
|
+
JSON.stringify([...new Set(root.scopeIds)].sort(compareText)) ||
|
|
558
|
+
typeof root.reason !== 'string' ||
|
|
559
|
+
typeof root.confirmedSummary !== 'string') {
|
|
560
|
+
throw new Error('Native partial allowance is invalid');
|
|
561
|
+
}
|
|
562
|
+
const content = {
|
|
563
|
+
schema: 'comet.native.partial-allowance.v1',
|
|
564
|
+
change: changeName(root.change),
|
|
565
|
+
scopeHash: hash(root.scopeHash, 'Native partial allowance scopeHash'),
|
|
566
|
+
scopeIds: root.scopeIds,
|
|
567
|
+
reason: requiredText(root.reason, 'Partial allowance reason'),
|
|
568
|
+
confirmedSummary: requiredText(root.confirmedSummary, 'Partial allowance confirmation'),
|
|
569
|
+
sourceRevision: positiveRevision(root.sourceRevision),
|
|
570
|
+
confirmedAt: canonicalTimestamp(root.confirmedAt, 'Native partial allowance timestamp'),
|
|
571
|
+
};
|
|
572
|
+
if (content.reason !== root.reason || content.confirmedSummary !== root.confirmedSummary) {
|
|
573
|
+
throw new Error('Native partial allowance text is not canonical');
|
|
574
|
+
}
|
|
575
|
+
const allowanceHash = hash(root.allowanceHash, 'Native partial allowance hash');
|
|
576
|
+
if (canonicalHash(PARTIAL_ALLOWANCE_HASH_TAG, content) !== allowanceHash) {
|
|
577
|
+
throw new Error('Native partial allowance content hash mismatch');
|
|
578
|
+
}
|
|
579
|
+
return { ...content, allowanceHash };
|
|
580
|
+
}
|
|
581
|
+
export function parseNativeVerificationEvidenceEnvelope(value) {
|
|
582
|
+
const root = evidenceRecord(value, 'Native verification evidence');
|
|
583
|
+
if (root.schema === 'comet.native.verification-evidence.v1') {
|
|
584
|
+
return parseNativeLegacyVerificationEvidenceEnvelope(root);
|
|
585
|
+
}
|
|
586
|
+
exactEvidenceKeys(root, [
|
|
587
|
+
'schema',
|
|
588
|
+
'change',
|
|
589
|
+
'sourceRevision',
|
|
590
|
+
'result',
|
|
591
|
+
'freshness',
|
|
592
|
+
'contractHash',
|
|
593
|
+
'acceptanceCriteriaHash',
|
|
594
|
+
'implementationScopeRef',
|
|
595
|
+
'implementationScopeHash',
|
|
596
|
+
'reportRef',
|
|
597
|
+
'reportHash',
|
|
598
|
+
'acceptanceTrace',
|
|
599
|
+
'partialAllowanceRef',
|
|
600
|
+
'partialAllowanceHash',
|
|
601
|
+
'requiredReceiptRefs',
|
|
602
|
+
'receiptRefs',
|
|
603
|
+
'waiverRefs',
|
|
604
|
+
'independentReviewReceiptRef',
|
|
605
|
+
'createdAt',
|
|
606
|
+
'envelopeHash',
|
|
607
|
+
], 'Native verification evidence');
|
|
608
|
+
if (root.schema !== 'comet.native.verification-evidence.v2' ||
|
|
609
|
+
typeof root.change !== 'string' ||
|
|
610
|
+
(root.result !== 'pass' && root.result !== 'fail') ||
|
|
611
|
+
(root.freshness !== 'complete' && root.freshness !== 'partial') ||
|
|
612
|
+
typeof root.implementationScopeHash !== 'string' ||
|
|
613
|
+
typeof root.reportRef !== 'string' ||
|
|
614
|
+
!Array.isArray(root.requiredReceiptRefs) ||
|
|
615
|
+
(root.independentReviewReceiptRef !== null &&
|
|
616
|
+
typeof root.independentReviewReceiptRef !== 'string') ||
|
|
617
|
+
!Array.isArray(root.receiptRefs) ||
|
|
618
|
+
!Array.isArray(root.waiverRefs)) {
|
|
619
|
+
throw new Error('Native verification evidence is invalid');
|
|
620
|
+
}
|
|
621
|
+
const implementationScopeHash = hash(root.implementationScopeHash, 'Native verification implementation scope hash');
|
|
622
|
+
const acceptanceTrace = parseNativeAcceptanceEvidenceTrace(root.acceptanceTrace);
|
|
623
|
+
const acceptanceCriteriaHash = hash(root.acceptanceCriteriaHash, 'Native verification acceptance criteria hash');
|
|
624
|
+
if (acceptanceTrace.criteriaHash !== acceptanceCriteriaHash) {
|
|
625
|
+
throw new Error('Native verification acceptance trace does not match its criteria hash');
|
|
626
|
+
}
|
|
627
|
+
const hasAllowance = root.partialAllowanceRef !== null || root.partialAllowanceHash !== null;
|
|
628
|
+
if ((root.partialAllowanceRef === null) !== (root.partialAllowanceHash === null) ||
|
|
629
|
+
(root.freshness === 'complete' && hasAllowance) ||
|
|
630
|
+
(root.freshness === 'partial' && !hasAllowance)) {
|
|
631
|
+
throw new Error('Native verification partial allowance state is invalid');
|
|
632
|
+
}
|
|
633
|
+
const partialAllowanceHash = root.partialAllowanceHash === null
|
|
634
|
+
? null
|
|
635
|
+
: hash(root.partialAllowanceHash, 'Native verification allowance hash');
|
|
636
|
+
const receiptRefs = root.receiptRefs.map((ref) => typedReceiptRef(ref));
|
|
637
|
+
const waiverRefs = root.waiverRefs.map((ref) => waiverReceiptRef(ref));
|
|
638
|
+
if (JSON.stringify(receiptRefs) !== JSON.stringify([...new Set(receiptRefs)].sort(compareText)) ||
|
|
639
|
+
JSON.stringify(waiverRefs) !== JSON.stringify([...new Set(waiverRefs)].sort(compareText))) {
|
|
640
|
+
throw new Error('Native verification receipt refs must be canonical');
|
|
641
|
+
}
|
|
642
|
+
const traceReceiptRefs = [
|
|
643
|
+
...new Set(acceptanceTrace.entries.flatMap((entry) => entry.evidenceRefs)),
|
|
644
|
+
].sort(compareText);
|
|
645
|
+
const traceWaiverRefs = [
|
|
646
|
+
...new Set(acceptanceTrace.entries.flatMap((entry) => entry.waiverRef === null ? [] : [entry.waiverRef])),
|
|
647
|
+
].sort(compareText);
|
|
648
|
+
const independentReviewReceiptRef = root.independentReviewReceiptRef === null
|
|
649
|
+
? null
|
|
650
|
+
: typedReceiptRef(root.independentReviewReceiptRef);
|
|
651
|
+
const expectedReceiptRefs = [
|
|
652
|
+
...new Set([
|
|
653
|
+
...traceReceiptRefs,
|
|
654
|
+
...(independentReviewReceiptRef === null ? [] : [independentReviewReceiptRef]),
|
|
655
|
+
]),
|
|
656
|
+
].sort(compareText);
|
|
657
|
+
if (JSON.stringify(receiptRefs) !== JSON.stringify(expectedReceiptRefs) ||
|
|
658
|
+
JSON.stringify(waiverRefs) !== JSON.stringify(traceWaiverRefs)) {
|
|
659
|
+
throw new Error('Native verification envelope receipt refs do not match its matrix');
|
|
660
|
+
}
|
|
661
|
+
const requiredReceiptRefs = root.requiredReceiptRefs.map((ref) => typedReceiptRef(ref));
|
|
662
|
+
if (JSON.stringify(requiredReceiptRefs) !==
|
|
663
|
+
JSON.stringify([...new Set(requiredReceiptRefs)].sort(compareText))) {
|
|
664
|
+
throw new Error('Native required receipt refs must be canonical');
|
|
665
|
+
}
|
|
666
|
+
if (root.result === 'pass' && requiredReceiptRefs.length === 0) {
|
|
667
|
+
throw new Error('Passing verification has no current static receipt');
|
|
668
|
+
}
|
|
669
|
+
if (independentReviewReceiptRef !== null && !receiptRefs.includes(independentReviewReceiptRef)) {
|
|
670
|
+
throw new Error('Native independent review receipt is outside the receipt graph');
|
|
671
|
+
}
|
|
672
|
+
const content = {
|
|
673
|
+
schema: 'comet.native.verification-evidence.v2',
|
|
674
|
+
change: changeName(root.change),
|
|
675
|
+
sourceRevision: positiveRevision(root.sourceRevision),
|
|
676
|
+
result: root.result,
|
|
677
|
+
freshness: root.freshness,
|
|
678
|
+
contractHash: hash(root.contractHash, 'Native verification contract hash'),
|
|
679
|
+
acceptanceCriteriaHash,
|
|
680
|
+
implementationScopeRef: evidenceDocumentRef(root.implementationScopeRef, 'scopes', implementationScopeHash),
|
|
681
|
+
implementationScopeHash,
|
|
682
|
+
reportRef: portableEvidenceRef(root.reportRef, 'Native verification report ref'),
|
|
683
|
+
reportHash: hash(root.reportHash, 'Native verification report hash'),
|
|
684
|
+
acceptanceTrace,
|
|
685
|
+
partialAllowanceRef: partialAllowanceHash === null
|
|
686
|
+
? null
|
|
687
|
+
: evidenceDocumentRef(root.partialAllowanceRef, 'allowances', partialAllowanceHash),
|
|
688
|
+
partialAllowanceHash,
|
|
689
|
+
requiredReceiptRefs,
|
|
690
|
+
receiptRefs,
|
|
691
|
+
waiverRefs,
|
|
692
|
+
independentReviewReceiptRef,
|
|
693
|
+
createdAt: canonicalTimestamp(root.createdAt, 'Native verification timestamp'),
|
|
694
|
+
};
|
|
695
|
+
const envelopeHash = hash(root.envelopeHash, 'Native verification envelope hash');
|
|
696
|
+
if (canonicalHash(VERIFICATION_ENVELOPE_HASH_TAG, content) !== envelopeHash) {
|
|
697
|
+
throw new Error('Native verification evidence content hash mismatch');
|
|
698
|
+
}
|
|
699
|
+
return { ...content, envelopeHash };
|
|
700
|
+
}
|
|
701
|
+
function parseNativeLegacyVerificationEvidenceEnvelope(root) {
|
|
702
|
+
const envelopeKeys = [
|
|
703
|
+
'schema',
|
|
704
|
+
'change',
|
|
705
|
+
'sourceRevision',
|
|
706
|
+
'result',
|
|
707
|
+
'freshness',
|
|
708
|
+
'contractHash',
|
|
709
|
+
'acceptanceCriteriaHash',
|
|
710
|
+
'implementationScopeRef',
|
|
711
|
+
'implementationScopeHash',
|
|
712
|
+
'reportRef',
|
|
713
|
+
'reportHash',
|
|
714
|
+
'acceptanceTrace',
|
|
715
|
+
'partialAllowanceRef',
|
|
716
|
+
'partialAllowanceHash',
|
|
717
|
+
'receiptRef',
|
|
718
|
+
'createdAt',
|
|
719
|
+
'envelopeHash',
|
|
720
|
+
];
|
|
721
|
+
const hasWaiverConfirmedField = Object.prototype.hasOwnProperty.call(root, 'waiverConfirmed');
|
|
722
|
+
if (hasWaiverConfirmedField)
|
|
723
|
+
envelopeKeys.push('waiverConfirmed');
|
|
724
|
+
const hasIndependentReviewField = Object.prototype.hasOwnProperty.call(root, 'independentReview');
|
|
725
|
+
if (hasIndependentReviewField) {
|
|
726
|
+
envelopeKeys.push('independentReview');
|
|
727
|
+
}
|
|
728
|
+
exactEvidenceKeys(root, envelopeKeys, 'Native verification evidence');
|
|
729
|
+
if (root.schema !== 'comet.native.verification-evidence.v1' ||
|
|
730
|
+
typeof root.change !== 'string' ||
|
|
731
|
+
(root.result !== 'pass' && root.result !== 'fail') ||
|
|
732
|
+
(root.freshness !== 'complete' && root.freshness !== 'partial') ||
|
|
733
|
+
typeof root.implementationScopeHash !== 'string' ||
|
|
734
|
+
typeof root.reportRef !== 'string' ||
|
|
735
|
+
(root.receiptRef !== null && typeof root.receiptRef !== 'string')) {
|
|
736
|
+
throw new Error('Native verification evidence is invalid');
|
|
737
|
+
}
|
|
738
|
+
const envelopeHash = hash(root.envelopeHash, 'Native verification envelope hash');
|
|
739
|
+
const { envelopeHash: _rawEnvelopeHash, ...rawContent } = root;
|
|
740
|
+
void _rawEnvelopeHash;
|
|
741
|
+
if (canonicalHash(LEGACY_VERIFICATION_ENVELOPE_HASH_TAG, rawContent) !== envelopeHash) {
|
|
742
|
+
throw new Error('Native verification evidence content hash mismatch');
|
|
743
|
+
}
|
|
744
|
+
const implementationScopeHash = hash(root.implementationScopeHash, 'Native verification implementation scope hash');
|
|
745
|
+
const acceptanceTrace = parseNativeLegacyAcceptanceEvidenceTrace(root.acceptanceTrace);
|
|
746
|
+
const acceptanceCriteriaHash = hash(root.acceptanceCriteriaHash, 'Native verification acceptance criteria hash');
|
|
747
|
+
if (acceptanceTrace.criteriaHash !== acceptanceCriteriaHash) {
|
|
748
|
+
throw new Error('Native verification acceptance trace does not match its criteria hash');
|
|
749
|
+
}
|
|
750
|
+
const hasAllowance = root.partialAllowanceRef !== null || root.partialAllowanceHash !== null;
|
|
751
|
+
if ((root.partialAllowanceRef === null) !== (root.partialAllowanceHash === null) ||
|
|
752
|
+
(root.freshness === 'complete' && hasAllowance) ||
|
|
753
|
+
(root.freshness === 'partial' && !hasAllowance)) {
|
|
754
|
+
throw new Error('Native verification partial allowance state is invalid');
|
|
755
|
+
}
|
|
756
|
+
const partialAllowanceHash = root.partialAllowanceHash === null
|
|
757
|
+
? null
|
|
758
|
+
: hash(root.partialAllowanceHash, 'Native verification allowance hash');
|
|
759
|
+
const result = root.result;
|
|
760
|
+
const freshness = root.freshness;
|
|
761
|
+
let independentReview = null;
|
|
762
|
+
if (hasIndependentReviewField && root.independentReview !== null) {
|
|
763
|
+
const rawReview = evidenceRecord(root.independentReview, 'Native independent review evidence');
|
|
764
|
+
exactEvidenceKeys(rawReview, ['ref', 'hash', 'review'], 'Native independent review evidence');
|
|
765
|
+
const normalizedReview = evidenceRecord(rawReview.review, 'Native independent review receipt');
|
|
766
|
+
const reviewInput = Object.prototype.hasOwnProperty.call(normalizedReview, 'implementationAuthor')
|
|
767
|
+
? {
|
|
768
|
+
schema: normalizedReview.schema,
|
|
769
|
+
implementation_author: normalizedReview.implementationAuthor,
|
|
770
|
+
reviewer: normalizedReview.reviewer,
|
|
771
|
+
acceptance_ids: normalizedReview.acceptanceIds,
|
|
772
|
+
checked: {
|
|
773
|
+
unified_io: normalizedReview.checked?.unifiedIo,
|
|
774
|
+
adversarial_paths: normalizedReview.checked
|
|
775
|
+
?.adversarialPaths,
|
|
776
|
+
generated_assets: normalizedReview.checked
|
|
777
|
+
?.generatedAssets,
|
|
778
|
+
lifecycle_eval: normalizedReview.checked?.lifecycleEval,
|
|
779
|
+
},
|
|
780
|
+
findings: normalizedReview.findings,
|
|
781
|
+
review_hash: normalizedReview.reviewHash,
|
|
782
|
+
}
|
|
783
|
+
: rawReview.review;
|
|
784
|
+
const review = parseNativeIndependentReview(reviewInput, acceptanceTrace.entries.map((entry) => entry.acceptanceId));
|
|
785
|
+
const reviewHash = hash(rawReview.hash, 'Native independent review evidence hash');
|
|
786
|
+
independentReview = {
|
|
787
|
+
ref: portableEvidenceRef(rawReview.ref, 'Native independent review ref'),
|
|
788
|
+
hash: reviewHash,
|
|
789
|
+
review,
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
const content = {
|
|
793
|
+
schema: 'comet.native.verification-evidence.v1',
|
|
794
|
+
change: changeName(root.change),
|
|
795
|
+
sourceRevision: positiveRevision(root.sourceRevision),
|
|
796
|
+
result,
|
|
797
|
+
freshness,
|
|
798
|
+
contractHash: hash(root.contractHash, 'Native verification contract hash'),
|
|
799
|
+
acceptanceCriteriaHash,
|
|
800
|
+
implementationScopeRef: evidenceDocumentRef(root.implementationScopeRef, 'scopes', implementationScopeHash),
|
|
801
|
+
implementationScopeHash,
|
|
802
|
+
reportRef: portableEvidenceRef(root.reportRef, 'Native verification report ref'),
|
|
803
|
+
reportHash: hash(root.reportHash, 'Native verification report hash'),
|
|
804
|
+
acceptanceTrace,
|
|
805
|
+
partialAllowanceRef: partialAllowanceHash === null
|
|
806
|
+
? null
|
|
807
|
+
: evidenceDocumentRef(root.partialAllowanceRef, 'allowances', partialAllowanceHash),
|
|
808
|
+
partialAllowanceHash,
|
|
809
|
+
receiptRef: root.receiptRef === null ? null : checkReceiptRef(root.receiptRef),
|
|
810
|
+
...(hasWaiverConfirmedField ? { waiverConfirmed: root.waiverConfirmed === true } : {}),
|
|
811
|
+
...(hasIndependentReviewField ? { independentReview } : {}),
|
|
812
|
+
createdAt: canonicalTimestamp(root.createdAt, 'Native verification timestamp'),
|
|
813
|
+
};
|
|
814
|
+
if (hasWaiverConfirmedField && root.waiverConfirmed !== true && root.waiverConfirmed !== false) {
|
|
815
|
+
throw new Error('Native verification waiver confirmation is invalid');
|
|
816
|
+
}
|
|
817
|
+
return {
|
|
818
|
+
...content,
|
|
819
|
+
waiverConfirmed: hasWaiverConfirmedField && root.waiverConfirmed === true,
|
|
820
|
+
independentReview,
|
|
821
|
+
envelopeHash,
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
//# sourceMappingURL=native-verification-evidence.js.map
|