@dailephd/my-dev-kit-lab 0.4.5 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/README.md +43 -3
  3. package/dist/scripts/cli.js +9 -0
  4. package/dist/src/audits/core/typescriptJavaScriptAnalyzer.js +30 -12
  5. package/dist/src/browser/index.js +2 -0
  6. package/dist/src/browser/playwrightRuntime.js +74 -0
  7. package/dist/src/browser/types.js +10 -0
  8. package/dist/src/cli/help.js +376 -0
  9. package/dist/src/cli/index.js +2 -0
  10. package/dist/src/cli/runLabCli.js +257 -0
  11. package/dist/src/commands/runAuditCommand.js +132 -0
  12. package/dist/src/commands/runControlledExperimentCommand.js +7 -3
  13. package/dist/{scripts/experiments/describeExperiment.js → src/commands/runExperimentDescribeCommand.js} +14 -10
  14. package/dist/{scripts/experiments/listExperiments.js → src/commands/runExperimentListCommand.js} +3 -6
  15. package/dist/{scripts/experiments/runExperiment.js → src/commands/runExperimentRunCommand.js} +80 -22
  16. package/dist/src/commands/runFinalDemoCommand.js +2 -3
  17. package/dist/src/commands/runSecurityValidationCommand.js +271 -0
  18. package/dist/src/commands/runTutorialRunCommand.js +170 -0
  19. package/dist/src/commands/runTutorialValidateCommand.js +138 -0
  20. package/dist/src/core/processTree.js +52 -0
  21. package/dist/src/core/resolveCommand.js +34 -0
  22. package/dist/src/core/runMeasuredCommand.js +39 -31
  23. package/dist/src/runtime/index.js +4 -0
  24. package/dist/src/runtime/labExecutionContext.js +22 -0
  25. package/dist/src/runtime/managedProcess.js +380 -0
  26. package/dist/src/runtime/packageResource.js +22 -0
  27. package/dist/src/runtime/packageRoot.js +37 -0
  28. package/dist/src/screenshot/captureReportScreenshot.js +30 -27
  29. package/dist/src/securityValidation/packageChecks/requiredPackageContents.js +14 -1
  30. package/dist/src/tutorial/index.js +16 -0
  31. package/dist/src/tutorial/loadTutorialContracts.js +60 -0
  32. package/dist/src/tutorial/markdownTutorialWriter.js +53 -0
  33. package/dist/src/tutorial/runTutorial.js +465 -0
  34. package/dist/src/tutorial/scenarioValidation.js +383 -0
  35. package/dist/src/tutorial/subtitleWriter.js +88 -0
  36. package/dist/src/tutorial/targetContractValidation.js +212 -0
  37. package/dist/src/tutorial/tutorialActions.js +110 -0
  38. package/dist/src/tutorial/tutorialArtifacts.js +176 -0
  39. package/dist/src/tutorial/tutorialAssertions.js +249 -0
  40. package/dist/src/tutorial/tutorialCursor.js +149 -0
  41. package/dist/src/tutorial/tutorialLocators.js +37 -0
  42. package/dist/src/tutorial/tutorialManifest.js +74 -0
  43. package/dist/src/tutorial/tutorialOverlay.js +180 -0
  44. package/dist/src/tutorial/tutorialPaths.js +86 -0
  45. package/dist/src/tutorial/tutorialSession.js +398 -0
  46. package/dist/src/tutorial/types.js +48 -0
  47. package/dist/src/tutorial/validationPrimitives.js +141 -0
  48. package/examples/tutorial-browser/index.html +47 -0
  49. package/examples/tutorial-browser/prepare.mjs +14 -0
  50. package/examples/tutorial-browser/scenario.json +17 -0
  51. package/examples/tutorial-browser/server.mjs +14 -0
  52. package/package.json +13 -9
  53. package/dist/scripts/audits/runAudit.js +0 -135
  54. package/dist/scripts/build-gallery.js +0 -3
  55. package/dist/scripts/capture-demo-report.js +0 -3
  56. package/dist/scripts/evaluate-token-savings.js +0 -2
  57. package/dist/scripts/generate-experiment-plots.js +0 -3
  58. package/dist/scripts/generate-prompt-variants.js +0 -2
  59. package/dist/scripts/render-experiment-report.js +0 -2
  60. package/dist/scripts/report-context-integrity-smoke.js +0 -70
  61. package/dist/scripts/run-agent-prompt.js +0 -2
  62. package/dist/scripts/run-controlled-experiment.js +0 -2
  63. package/dist/scripts/run-lab-demo.js +0 -5
  64. package/dist/scripts/run-visualization-demos.js +0 -3
  65. package/dist/scripts/security/resolveToolRoot.js +0 -16
  66. package/dist/scripts/security/runCodeql.js +0 -58
  67. package/dist/scripts/security/runDependencyChecks.js +0 -58
  68. package/dist/scripts/security/runFuzzSmoke.js +0 -29
  69. package/dist/scripts/security/runPackageChecks.js +0 -57
  70. package/dist/scripts/security/runSemgrep.js +0 -64
  71. package/dist/scripts/security/validate.js +0 -266
  72. package/dist/scripts/verify-benchmarks.js +0 -202
  73. package/examples/demo-report-input.json +0 -78
  74. package/examples/lab-demo-cases.json +0 -35
  75. package/examples/real-agent-campaign-cases.json +0 -118
  76. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-a/src/debug/res/xml/ambiguous_backup_rules.xml +0 -4
  77. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-a/src/main/res/xml/ambiguous_backup_rules.xml +0 -4
  78. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-a/src/main/res/xml/backup_rules.xml +0 -5
  79. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-a/src/main/res/xml/broad_backup_rules.xml +0 -4
  80. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-a/src/main/res/xml/data_extraction_rules.xml +0 -10
  81. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-a/src/main/res/xml/unsupported_domain_rules.xml +0 -4
  82. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-b/src/main/res/xml/malformed_backup_rules.xml +0 -4
  83. package/tests/fixtures/android/advanced-security-fixtures/backup-configuration/module-b/src/main/res/xml/unsupported_root.xml +0 -4
  84. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-a/src/debug/res/xml/ambiguous_config.xml +0 -4
  85. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-a/src/main/res/xml/ambiguous_config.xml +0 -4
  86. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-a/src/main/res/xml/base_cleartext_false.xml +0 -8
  87. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-a/src/main/res/xml/broad_and_duplicate_domains.xml +0 -8
  88. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-a/src/main/res/xml/empty_domain.xml +0 -6
  89. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-a/src/main/res/xml/malformed_pin.xml +0 -11
  90. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-a/src/main/res/xml/network_security_config.xml +0 -26
  91. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-b/src/main/res/xml/malformed_network_security_config.xml +0 -6
  92. package/tests/fixtures/android/advanced-security-fixtures/network-security/module-b/src/main/res/xml/unsupported_root.xml +0 -4
  93. package/tests/fixtures/android/advanced-security-fixtures/release-configuration/groovy-release-debuggable-dynamic.gradle +0 -7
  94. package/tests/fixtures/android/advanced-security-fixtures/release-configuration/groovy-release-debuggable-false.gradle +0 -9
  95. package/tests/fixtures/android/advanced-security-fixtures/release-configuration/groovy-release-debuggable-true.gradle +0 -13
  96. package/tests/fixtures/android/advanced-security-fixtures/release-configuration/kotlin-release-debuggable-false.gradle.kts +0 -7
  97. package/tests/fixtures/android/advanced-security-fixtures/release-configuration/kotlin-release-debuggable-true.gradle.kts +0 -10
  98. package/tests/fixtures/android/advanced-security-fixtures/release-configuration/missing-release-build-type.gradle.kts +0 -7
  99. package/tests/fixtures/android/advanced-security-fixtures/resource-resolution/module-a/src/debug/res/xml/network_security_config.xml +0 -8
  100. package/tests/fixtures/android/advanced-security-fixtures/resource-resolution/module-a/src/main/res/xml/backup_rules.xml +0 -4
  101. package/tests/fixtures/android/advanced-security-fixtures/resource-resolution/module-a/src/main/res/xml/network_security_config.xml +0 -8
  102. package/tests/fixtures/android/advanced-security-fixtures/resource-resolution/module-b/src/main/res/xml/malformed_network_security_config.xml +0 -7
  103. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates/SampleActivity.java +0 -8
  104. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates/SampleActivity.kt +0 -9
  105. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates/build.gradle +0 -11
  106. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates/build.gradle.kts +0 -11
  107. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates/google-services.json +0 -16
  108. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates/local.properties +0 -3
  109. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates-bounds/module/binary.properties +0 -0
  110. package/tests/fixtures/android/advanced-security-fixtures/secret-candidates-bounds/module/oversized.json +0 -1
  111. package/tests/fixtures/android/advanced-security-fixtures/signing-configuration/app/fake-release-keystore.jks +0 -1
  112. package/tests/fixtures/android/advanced-security-fixtures/signing-configuration/build/generated-fake.keystore +0 -1
  113. package/tests/fixtures/android/compose-app/app/build.gradle.kts +0 -21
  114. package/tests/fixtures/android/compose-app/app/src/main/AndroidManifest.xml +0 -22
  115. package/tests/fixtures/android/compose-app/app/src/main/java/com/example/composeapp/MainActivity.kt +0 -11
  116. package/tests/fixtures/android/compose-app/build.gradle.kts +0 -4
  117. package/tests/fixtures/android/compose-app/gradle/wrapper/gradle-wrapper.properties +0 -4
  118. package/tests/fixtures/android/compose-app/settings.gradle.kts +0 -2
  119. package/tests/fixtures/android/gradle-metadata-fixtures/catalog-only-plugin/build.gradle.kts +0 -3
  120. package/tests/fixtures/android/gradle-metadata-fixtures/catalog-only-plugin/gradle/libs.versions.toml +0 -5
  121. package/tests/fixtures/android/gradle-metadata-fixtures/comment-safety.gradle.kts +0 -21
  122. package/tests/fixtures/android/gradle-metadata-fixtures/dynamic-values.gradle.kts +0 -17
  123. package/tests/fixtures/android/gradle-metadata-fixtures/groovy-literal.gradle +0 -23
  124. package/tests/fixtures/android/gradle-metadata-fixtures/wrapper-malformed.properties +0 -4
  125. package/tests/fixtures/android/gradle-metadata-fixtures/wrapper-missing-url.properties +0 -3
  126. package/tests/fixtures/android/gradle-metadata-fixtures/wrapper-with-checksum.properties +0 -5
  127. package/tests/fixtures/android/java-app/app/build.gradle +0 -16
  128. package/tests/fixtures/android/java-app/app/src/main/AndroidManifest.xml +0 -19
  129. package/tests/fixtures/android/java-app/app/src/main/java/com/example/javaapp/MainActivity.java +0 -4
  130. package/tests/fixtures/android/java-app/build.gradle +0 -3
  131. package/tests/fixtures/android/java-app/gradle/wrapper/gradle-wrapper.properties +0 -4
  132. package/tests/fixtures/android/java-app/settings.gradle +0 -2
  133. package/tests/fixtures/android/library/build.gradle.kts +0 -3
  134. package/tests/fixtures/android/library/gradle/wrapper/gradle-wrapper.properties +0 -4
  135. package/tests/fixtures/android/library/mylibrary/build.gradle.kts +0 -13
  136. package/tests/fixtures/android/library/mylibrary/src/main/AndroidManifest.xml +0 -2
  137. package/tests/fixtures/android/library/settings.gradle.kts +0 -2
  138. package/tests/fixtures/android/manifest-audit-fixtures/incomplete-intent-filter.xml +0 -14
  139. package/tests/fixtures/android/manifest-audit-fixtures/malformed-exported.xml +0 -10
  140. package/tests/fixtures/android/manifest-audit-fixtures/malformed.xml +0 -5
  141. package/tests/fixtures/android/manifest-audit-fixtures/missing-application.xml +0 -7
  142. package/tests/fixtures/android/manifest-audit-fixtures/missing-component-name.xml +0 -11
  143. package/tests/fixtures/android/manifest-audit-fixtures/permission-coverage.xml +0 -29
  144. package/tests/fixtures/android/manifest-audit-fixtures/risky-components.xml +0 -62
  145. package/tests/fixtures/android/manifest-audit-fixtures/risky-deep-links.xml +0 -45
  146. package/tests/fixtures/android/manifest-audit-fixtures/unresolved-placeholder.xml +0 -14
  147. package/tests/fixtures/android/manifest-audit-fixtures/unusual-namespace-prefix.xml +0 -11
  148. package/tests/fixtures/android/multi-module/app/build.gradle.kts +0 -22
  149. package/tests/fixtures/android/multi-module/app/src/androidTest/java/com/example/multimodule/app/ExampleInstrumentedTest.kt +0 -3
  150. package/tests/fixtures/android/multi-module/app/src/main/AndroidManifest.xml +0 -11
  151. package/tests/fixtures/android/multi-module/app/src/test/java/com/example/multimodule/app/ExampleUnitTest.kt +0 -3
  152. package/tests/fixtures/android/multi-module/build.gradle.kts +0 -5
  153. package/tests/fixtures/android/multi-module/core/build.gradle.kts +0 -14
  154. package/tests/fixtures/android/multi-module/core/src/main/AndroidManifest.xml +0 -2
  155. package/tests/fixtures/android/multi-module/feature-login/build.gradle.kts +0 -18
  156. package/tests/fixtures/android/multi-module/feature-login/src/main/AndroidManifest.xml +0 -2
  157. package/tests/fixtures/android/multi-module/gradle/libs.versions.toml +0 -8
  158. package/tests/fixtures/android/multi-module/gradle/wrapper/gradle-wrapper.properties +0 -4
  159. package/tests/fixtures/android/multi-module/settings.gradle.kts +0 -4
  160. package/tests/fixtures/android/non-android-gradle/build.gradle.kts +0 -3
  161. package/tests/fixtures/android/non-android-gradle/core/build.gradle.kts +0 -3
  162. package/tests/fixtures/android/non-android-gradle/core/src/main/java/com/example/core/Core.java +0 -4
  163. package/tests/fixtures/android/non-android-gradle/gradle/wrapper/gradle-wrapper.properties +0 -4
  164. package/tests/fixtures/android/non-android-gradle/settings.gradle.kts +0 -2
  165. package/tests/fixtures/android/partial/app/build.gradle.kts +0 -7
  166. package/tests/fixtures/android/partial/settings.gradle.kts +0 -2
  167. package/tests/fixtures/android/xml-view-app/app/build.gradle.kts +0 -17
  168. package/tests/fixtures/android/xml-view-app/app/src/main/AndroidManifest.xml +0 -31
  169. package/tests/fixtures/android/xml-view-app/app/src/main/kotlin/com/example/xmlviewapp/MainActivity.kt +0 -7
  170. package/tests/fixtures/android/xml-view-app/app/src/main/res/layout/activity_main.xml +0 -4
  171. package/tests/fixtures/android/xml-view-app/build.gradle.kts +0 -4
  172. package/tests/fixtures/android/xml-view-app/gradle/wrapper/gradle-wrapper.properties +0 -4
  173. package/tests/fixtures/android/xml-view-app/settings.gradle.kts +0 -2
  174. package/tests/fixtures/audits/mixed-language/mixed-docs-claims/README.md +0 -16
  175. package/tests/fixtures/audits/mixed-language/mixed-docs-claims/build.gradle.kts +0 -4
  176. package/tests/fixtures/audits/mixed-language/mixed-docs-claims/src/main/java/com/example/Widget.java +0 -7
  177. package/tests/fixtures/audits/mixed-language/mixed-docs-claims/src/main/kotlin/com/example/Gadget.kt +0 -7
  178. package/tests/fixtures/audits/mixed-language/mixed-generated-vendor/README.md +0 -10
  179. package/tests/fixtures/audits/mixed-language/mixed-generated-vendor/build/Main.class +0 -1
  180. package/tests/fixtures/audits/mixed-language/mixed-generated-vendor/dist/index.js +0 -1
  181. package/tests/fixtures/audits/mixed-language/mixed-generated-vendor/generated/schema.ts +0 -1
  182. package/tests/fixtures/audits/mixed-language/mixed-generated-vendor/src/index.ts +0 -3
  183. package/tests/fixtures/audits/mixed-language/mixed-generated-vendor/vendor/lib.py +0 -2
  184. package/tests/fixtures/audits/mixed-language/mixed-java-kotlin/README.md +0 -10
  185. package/tests/fixtures/audits/mixed-language/mixed-java-kotlin/build.gradle.kts +0 -8
  186. package/tests/fixtures/audits/mixed-language/mixed-java-kotlin/settings.gradle.kts +0 -1
  187. package/tests/fixtures/audits/mixed-language/mixed-java-kotlin/src/main/java/com/example/FooService.java +0 -7
  188. package/tests/fixtures/audits/mixed-language/mixed-java-kotlin/src/main/kotlin/com/example/BarService.kt +0 -7
  189. package/tests/fixtures/audits/mixed-language/mixed-java-kotlin/src/test/java/com/example/FooServiceTest.java +0 -8
  190. package/tests/fixtures/audits/mixed-language/mixed-java-kotlin/src/test/kotlin/com/example/BarServiceTest.kt +0 -8
  191. package/tests/fixtures/audits/mixed-language/mixed-python-ts/README.md +0 -8
  192. package/tests/fixtures/audits/mixed-language/mixed-python-ts/src/app.py +0 -7
  193. package/tests/fixtures/audits/mixed-language/mixed-python-ts/src/index.ts +0 -3
  194. package/tests/fixtures/audits/mixed-language/mixed-python-ts/tests/test_app.py +0 -5
  195. package/tests/fixtures/audits/mixed-language/mixed-ts-js/README.md +0 -7
  196. package/tests/fixtures/audits/mixed-language/mixed-ts-js/src/helper.js +0 -5
  197. package/tests/fixtures/audits/mixed-language/mixed-ts-js/src/index.ts +0 -3
  198. package/tests/fixtures/audits/mixed-language/mixed-ts-js/tests/index.sample.ts +0 -5
  199. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/README.md +0 -10
  200. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/build.gradle.kts +0 -4
  201. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/pytests/test_app.py +0 -5
  202. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/src/app.py +0 -2
  203. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/src/helper.js +0 -5
  204. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/src/index.ts +0 -3
  205. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/src/main/java/com/example/Multiplier.java +0 -7
  206. package/tests/fixtures/audits/mixed-language/mixed-ts-python-jvm/src/main/kotlin/com/example/Divider.kt +0 -7
  207. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/corrected-replay/derived/run-integrity-evidence.json +0 -99
  208. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/corrected-replay/producer/implementation-audit.json +0 -1585
  209. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/corrected-replay/producer/implementation-capsule.json +0 -11455
  210. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/00-request.txt +0 -1
  211. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/architecture-context-packet.txt +0 -82
  212. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/behavior-model.txt +0 -104
  213. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/final-report.txt +0 -41
  214. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/implementation-context-packet.txt +0 -114
  215. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/implementation-report.txt +0 -92
  216. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/judge-report.txt +0 -34
  217. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/pseudocode-packet.txt +0 -244
  218. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/request-brief.txt +0 -40
  219. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/test-context-packet.txt +0 -93
  220. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/test-implementation-report.txt +0 -69
  221. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/test-strategy-packet.txt +0 -354
  222. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/artifacts/verification-report.txt +0 -85
  223. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/derived/run-integrity-evidence.json +0 -98
  224. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/architecture-audit.json +0 -1169
  225. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/architecture-request.json +0 -29
  226. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/implementation-audit.json +0 -1494
  227. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/implementation-capsule.json +0 -11364
  228. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/implementation-request.json +0 -33
  229. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/producer/test-request.json +0 -74
  230. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/reports/architecture-context-retrieval-report.txt +0 -58
  231. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/reports/implementation-context-retrieval-report.txt +0 -75
  232. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/reports/test-context-retrieval-report.txt +0 -84
  233. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/run.json +0 -62
  234. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/tool-versions/my-dev-kit-version.txt +0 -1
  235. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/failed-run/tool-versions/orchestrator-version.txt +0 -1
  236. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/manifests/corrected-replay-manifest.json +0 -19
  237. package/tests/fixtures/ecosystem/context-integrity/v0.4.5/manifests/failed-run-manifest.json +0 -56
  238. package/tests/fixtures/fake-adversarial-cli.js +0 -152
  239. package/tests/fixtures/fake-my-dev-kit-cli.js +0 -83
  240. package/tests/fixtures/full-workflow-library/complete-v1.0.0.json +0 -24
  241. package/tests/fixtures/full-workflow-library/future-minor-v1.1.0-additive.json +0 -25
  242. package/tests/fixtures/stage-context-expectations/complete-v1.0.0.json +0 -230
  243. package/tests/fixtures/stage-context-expectations/future-minor-v1.1.0-additive.json +0 -232
  244. package/tests/fixtures/stage-context-expectations/invalid/malformed-json.txt +0 -1
  245. package/tests/fixtures/stage-context-expectations/invalid/non-object-root.json +0 -1
  246. package/tests/fixtures/stage-context-expectations/minimal-v1.0.0.json +0 -18
  247. package/tests/fixtures/upstream-artifacts/invalid/malformed-json.txt +0 -1
  248. package/tests/fixtures/upstream-artifacts/invalid/non-object-root.json +0 -1
  249. package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/context-capsule/complete-v1.0.0.json +0 -504
  250. package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/context-capsule/future-minor-v1.1.0-additive.json +0 -955
  251. package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/retrieval-audit-record/complete-v1.0.0.json +0 -190
  252. package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.2/retrieval-audit-record/future-minor-v1.1.0-additive.json +0 -327
  253. package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.4/PROVENANCE.txt +0 -18
  254. package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.4/context-capsule/complete-v1.0.0.json +0 -556
  255. package/tests/fixtures/upstream-artifacts/my-dev-kit/1.10.4/retrieval-audit-record/complete-v1.0.0.json +0 -238
  256. package/tests/fixtures/upstream-artifacts/my-dev-kit-1.10.2-identity/PROVENANCE.txt +0 -13
  257. package/tests/fixtures/upstream-artifacts/my-dev-kit-1.10.2-identity/context-capsule.json +0 -7874
  258. package/tests/fixtures/upstream-artifacts/my-dev-kit-1.10.2-identity/retrieval-audit-record.json +0 -1076
  259. package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.1/workflow-instruction-packet/complete-v1.0.0.json +0 -160
  260. package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.1/workflow-instruction-packet/future-minor-v1.1.0-additive.json +0 -186
  261. package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.3/run-integrity/PROVENANCE.txt +0 -31
  262. package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.3/run-integrity/ready-pass-final-pass.json +0 -132
  263. package/tests/fixtures/upstream-artifacts/my-dev-kit-orchestrator/1.2.3/run-integrity/refresh-required-need-context.json +0 -146
@@ -1,190 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-07-21T00:00:00.000Z",
4
- "tool": { "name": "my-dev-kit", "version": "1.10.2" },
5
- "request": {
6
- "originalQuery": "Inspect task implementation and tests",
7
- "normalizedQuery": "Inspect task implementation and tests",
8
- "mode": "feature-add",
9
- "requestedOutputPath": "Z:/fixture/project/.my-dev-kit/retrieval-audit-record.json",
10
- "role": "implementation",
11
- "requestFilePath": null
12
- },
13
- "index": {
14
- "indexPath": "Z:/fixture/project/.my-dev-kit",
15
- "manifestPath": "Z:/fixture/project/.my-dev-kit/manifest.json"
16
- },
17
- "steps": [
18
- {
19
- "id": "fixture.step.001",
20
- "kind": "validate-inputs",
21
- "description": "Validate CLI inputs.",
22
- "inputs": { "query": "Inspect task implementation and tests", "mode": "feature-add", "role": "implementation", "notes": null },
23
- "outputs": { "valid": true, "warningCount": 0 },
24
- "status": "ok",
25
- "warnings": []
26
- },
27
- {
28
- "id": "fixture.step.002",
29
- "kind": "run-search",
30
- "description": "Run search against the index.",
31
- "inputs": { "query": "Inspect task implementation and tests" },
32
- "outputs": { "resultCount": 1, "topScore": 12.5 },
33
- "status": "ok",
34
- "warnings": []
35
- },
36
- {
37
- "id": "fixture.step.003",
38
- "kind": "use-local-source-expansion",
39
- "description": "Attempted local source expansion.",
40
- "inputs": { "focusNodeId": "symbol:src/example.ts#Example" },
41
- "outputs": { "used": false },
42
- "status": "skipped",
43
- "warnings": ["local expansion not required"]
44
- }
45
- ],
46
- "fallbacks": [],
47
- "fullFileReadRecommendations": [
48
- {
49
- "filePath": "src/other.ts",
50
- "reason": "bounded retrieval insufficient",
51
- "missingContext": "full implementation detail",
52
- "continuationOrExpansionAttempted": true
53
- },
54
- {
55
- "filePath": "src/legacy.ts",
56
- "reason": "continuation could not be attempted",
57
- "missingContext": "legacy behavior detail",
58
- "continuationOrExpansionAttempted": "unavailable"
59
- }
60
- ],
61
- "warnings": ["Fixture warning: synthetic data only."],
62
- "contextAdequacy": {
63
- "status": "context sufficient with listed assumptions",
64
- "summary": "A best-effort focus node was selected; some ambiguity or thin graph/source/metadata evidence remains.",
65
- "assumptions": ["Fixture assumption."],
66
- "gaps": ["Fixture gap."]
67
- },
68
- "roleContext": {
69
- "role": "implementation",
70
- "focus": {
71
- "focusFiles": [{ "path": "src/example.ts", "resolved": true, "matchedFilePaths": ["src/example.ts"], "containedSymbolIds": ["symbol:src/example.ts#Example"] }],
72
- "focusSymbols": [{ "symbol": "Example", "resolved": true, "ambiguous": false, "matchedNodeIds": ["symbol:src/example.ts#Example"] }],
73
- "unresolvedFocusFiles": [],
74
- "unresolvedFocusSymbols": [],
75
- "ambiguousFocusSymbols": [],
76
- "warnings": []
77
- },
78
- "changedSurface": {
79
- "available": true,
80
- "diffRequested": true,
81
- "files": [{ "path": "src/example.ts", "status": "modified", "provenance": "both" }],
82
- "symbols": [{ "symbolId": "symbol:src/example.ts#Example", "status": "modified", "provenance": "graph-diff", "filePath": "src/example.ts", "name": "Example", "kind": "symbol" }],
83
- "conflicts": [],
84
- "warnings": []
85
- },
86
- "requestedEvidenceKinds": ["owner", "dependencies"],
87
- "unsupportedRequestedEvidenceKinds": ["responsibility-mappings"],
88
- "warnings": []
89
- },
90
- "responsibilityMappings": {
91
- "requested": true,
92
- "operational": true,
93
- "mappings": [
94
- {
95
- "responsibilityId": "fixture.responsibility.001",
96
- "behavior": "Example behaves correctly.",
97
- "invariant": null,
98
- "criticality": "critical",
99
- "productionSymbols": [{ "id": "symbol:src/example.ts#Example", "itemKind": "symbol", "symbolId": "symbol:src/example.ts#Example", "relationship": "production-symbol", "basis": "candidate-ranking", "provenance": "candidate-ranking" }],
100
- "contracts": [],
101
- "validators": [],
102
- "constants": [],
103
- "errors": [],
104
- "sideEffectEvidence": [],
105
- "proposedOrExistingTestFiles": [{ "id": "tests/example.spec.ts", "itemKind": "test-file", "path": "tests/example.spec.ts", "relationship": "proposed-test", "basis": "path-proximity", "provenance": "test-directory-walk" }],
106
- "reusableHelpers": [],
107
- "oracleEvidence": [],
108
- "testCommands": [],
109
- "mappingStatus": "mapped",
110
- "unresolvedReasons": [],
111
- "provenance": [
112
- { "id": "fixture.provenance.mapping.001", "category": "code-graph", "sourcePath": "src/example.ts", "sourceId": null, "evidenceId": "symbol:src/example.ts#Example", "relationshipBasis": "candidate-ranking", "role": "implementation", "requestField": null, "derivedByModule": "responsibilityMapping.ts" }
113
- ],
114
- "warnings": []
115
- }
116
- ],
117
- "unknownResponsibilityIds": [],
118
- "duplicateResponsibilityIds": [],
119
- "limit": null,
120
- "availableCount": 1,
121
- "usedCount": 1,
122
- "truncated": false,
123
- "droppedCount": 0,
124
- "criticalDropped": false,
125
- "warnings": []
126
- },
127
- "roleAdequacy": {
128
- "role": "implementation",
129
- "status": "context sufficient with listed assumptions",
130
- "requiredConditions": ["single high-confidence focus node"],
131
- "satisfiedConditions": ["single high-confidence focus node"],
132
- "missingConditions": [],
133
- "blockingConditions": [],
134
- "warnings": [],
135
- "supportingEvidence": ["symbol:src/example.ts#Example"],
136
- "affectedResponsibilityIds": ["fixture.responsibility.001"],
137
- "truncationImpact": false,
138
- "freshnessImpact": false
139
- },
140
- "freshness": {
141
- "state": "fresh",
142
- "role": "implementation",
143
- "evidenceUsed": ["code-graph"],
144
- "evidenceUnavailable": ["before-index"],
145
- "comparedIdentities": [
146
- { "label": "index-manifest-hash", "value": "fixture-hash-001" },
147
- { "label": "before-index-manifest-hash", "value": null }
148
- ],
149
- "reason": "Active index manifest hash matches the most recent recorded identity.",
150
- "relevantChangedPaths": ["src/example.ts"],
151
- "warnings": []
152
- },
153
- "budget": {
154
- "limits": [
155
- { "name": "candidates", "declaredValue": 50, "usedValue": 1, "availableCount": 49, "droppedCount": 0, "truncated": false, "requiredEvidenceAffected": false, "adequacyImpact": null }
156
- ],
157
- "characters": null,
158
- "warnings": []
159
- },
160
- "truncation": {
161
- "truncated": false,
162
- "records": [],
163
- "warnings": []
164
- },
165
- "fullFileFallback": {
166
- "enabled": true,
167
- "limit": null,
168
- "used": 1,
169
- "fallbacks": [
170
- {
171
- "id": "fixture.fallback.001",
172
- "filePath": "src/other.ts",
173
- "reason": "bounded retrieval insufficient",
174
- "requestedEvidenceKind": null,
175
- "boundedRetrievalAttempted": true,
176
- "sourceRangesAttempted": 2,
177
- "includedLineCount": 40,
178
- "includedCharacterCount": 900,
179
- "role": "implementation",
180
- "responsibilityIdsAffected": [],
181
- "allowed": true,
182
- "provenance": "full-file-fallback"
183
- }
184
- ],
185
- "warnings": []
186
- },
187
- "provenance": [
188
- { "id": "fixture.provenance.001", "category": "code-graph", "sourcePath": "src/example.ts", "sourceId": null, "evidenceId": "symbol:src/example.ts#Example", "relationshipBasis": "candidate-ranking", "role": "implementation", "requestField": null, "derivedByModule": "candidateRanking.ts" }
189
- ]
190
- }
@@ -1,327 +0,0 @@
1
- {
2
- "schemaVersion": "1.1.0",
3
- "generatedAt": "2026-07-21T00:00:00.000Z",
4
- "tool": {
5
- "name": "my-dev-kit",
6
- "version": "1.10.2",
7
- "futureNestedField": "preserved"
8
- },
9
- "request": {
10
- "originalQuery": "Inspect task implementation and tests",
11
- "normalizedQuery": "Inspect task implementation and tests",
12
- "mode": "feature-add",
13
- "requestedOutputPath": "Z:/fixture/project/.my-dev-kit/retrieval-audit-record.json",
14
- "role": "implementation",
15
- "requestFilePath": null
16
- },
17
- "index": {
18
- "indexPath": "Z:/fixture/project/.my-dev-kit",
19
- "manifestPath": "Z:/fixture/project/.my-dev-kit/manifest.json"
20
- },
21
- "steps": [
22
- {
23
- "id": "fixture.step.001",
24
- "kind": "validate-inputs",
25
- "description": "Validate CLI inputs.",
26
- "inputs": {
27
- "query": "Inspect task implementation and tests",
28
- "mode": "feature-add",
29
- "role": "implementation",
30
- "notes": null
31
- },
32
- "outputs": {
33
- "valid": true,
34
- "warningCount": 0
35
- },
36
- "status": "ok",
37
- "warnings": []
38
- },
39
- {
40
- "id": "fixture.step.002",
41
- "kind": "run-search",
42
- "description": "Run search against the index.",
43
- "inputs": {
44
- "query": "Inspect task implementation and tests"
45
- },
46
- "outputs": {
47
- "resultCount": 1,
48
- "topScore": 12.5
49
- },
50
- "status": "ok",
51
- "warnings": []
52
- },
53
- {
54
- "id": "fixture.step.003",
55
- "kind": "use-local-source-expansion",
56
- "description": "Attempted local source expansion.",
57
- "inputs": {
58
- "focusNodeId": "symbol:src/example.ts#Example"
59
- },
60
- "outputs": {
61
- "used": false
62
- },
63
- "status": "skipped",
64
- "warnings": [
65
- "local expansion not required"
66
- ]
67
- }
68
- ],
69
- "fallbacks": [],
70
- "fullFileReadRecommendations": [
71
- {
72
- "filePath": "src/other.ts",
73
- "reason": "bounded retrieval insufficient",
74
- "missingContext": "full implementation detail",
75
- "continuationOrExpansionAttempted": true
76
- },
77
- {
78
- "filePath": "src/legacy.ts",
79
- "reason": "continuation could not be attempted",
80
- "missingContext": "legacy behavior detail",
81
- "continuationOrExpansionAttempted": "unavailable"
82
- }
83
- ],
84
- "warnings": [
85
- "Fixture warning: synthetic data only."
86
- ],
87
- "contextAdequacy": {
88
- "status": "context sufficient with listed assumptions",
89
- "summary": "A best-effort focus node was selected; some ambiguity or thin graph/source/metadata evidence remains.",
90
- "assumptions": [
91
- "Fixture assumption."
92
- ],
93
- "gaps": [
94
- "Fixture gap."
95
- ]
96
- },
97
- "roleContext": {
98
- "role": "implementation",
99
- "focus": {
100
- "focusFiles": [
101
- {
102
- "path": "src/example.ts",
103
- "resolved": true,
104
- "matchedFilePaths": [
105
- "src/example.ts"
106
- ],
107
- "containedSymbolIds": [
108
- "symbol:src/example.ts#Example"
109
- ]
110
- }
111
- ],
112
- "focusSymbols": [
113
- {
114
- "symbol": "Example",
115
- "resolved": true,
116
- "ambiguous": false,
117
- "matchedNodeIds": [
118
- "symbol:src/example.ts#Example"
119
- ]
120
- }
121
- ],
122
- "unresolvedFocusFiles": [],
123
- "unresolvedFocusSymbols": [],
124
- "ambiguousFocusSymbols": [],
125
- "warnings": []
126
- },
127
- "changedSurface": {
128
- "available": true,
129
- "diffRequested": true,
130
- "files": [
131
- {
132
- "path": "src/example.ts",
133
- "status": "modified",
134
- "provenance": "both"
135
- }
136
- ],
137
- "symbols": [
138
- {
139
- "symbolId": "symbol:src/example.ts#Example",
140
- "status": "modified",
141
- "provenance": "graph-diff",
142
- "filePath": "src/example.ts",
143
- "name": "Example",
144
- "kind": "symbol"
145
- }
146
- ],
147
- "conflicts": [],
148
- "warnings": []
149
- },
150
- "requestedEvidenceKinds": [
151
- "owner",
152
- "dependencies"
153
- ],
154
- "unsupportedRequestedEvidenceKinds": [
155
- "responsibility-mappings"
156
- ],
157
- "warnings": []
158
- },
159
- "responsibilityMappings": {
160
- "requested": true,
161
- "operational": true,
162
- "mappings": [
163
- {
164
- "responsibilityId": "fixture.responsibility.001",
165
- "behavior": "Example behaves correctly.",
166
- "invariant": null,
167
- "criticality": "critical",
168
- "productionSymbols": [
169
- {
170
- "id": "symbol:src/example.ts#Example",
171
- "itemKind": "symbol",
172
- "symbolId": "symbol:src/example.ts#Example",
173
- "relationship": "production-symbol",
174
- "basis": "candidate-ranking",
175
- "provenance": "candidate-ranking"
176
- }
177
- ],
178
- "contracts": [],
179
- "validators": [],
180
- "constants": [],
181
- "errors": [],
182
- "sideEffectEvidence": [],
183
- "proposedOrExistingTestFiles": [
184
- {
185
- "id": "tests/example.spec.ts",
186
- "itemKind": "test-file",
187
- "path": "tests/example.spec.ts",
188
- "relationship": "proposed-test",
189
- "basis": "path-proximity",
190
- "provenance": "test-directory-walk"
191
- }
192
- ],
193
- "reusableHelpers": [],
194
- "oracleEvidence": [],
195
- "testCommands": [],
196
- "mappingStatus": "mapped",
197
- "unresolvedReasons": [],
198
- "provenance": [
199
- {
200
- "id": "fixture.provenance.mapping.001",
201
- "category": "code-graph",
202
- "sourcePath": "src/example.ts",
203
- "sourceId": null,
204
- "evidenceId": "symbol:src/example.ts#Example",
205
- "relationshipBasis": "candidate-ranking",
206
- "role": "implementation",
207
- "requestField": null,
208
- "derivedByModule": "responsibilityMapping.ts"
209
- }
210
- ],
211
- "warnings": []
212
- }
213
- ],
214
- "unknownResponsibilityIds": [],
215
- "duplicateResponsibilityIds": [],
216
- "limit": null,
217
- "availableCount": 1,
218
- "usedCount": 1,
219
- "truncated": false,
220
- "droppedCount": 0,
221
- "criticalDropped": false,
222
- "warnings": []
223
- },
224
- "roleAdequacy": {
225
- "role": "implementation",
226
- "status": "context sufficient with listed assumptions",
227
- "requiredConditions": [
228
- "single high-confidence focus node"
229
- ],
230
- "satisfiedConditions": [
231
- "single high-confidence focus node"
232
- ],
233
- "missingConditions": [],
234
- "blockingConditions": [],
235
- "warnings": [],
236
- "supportingEvidence": [
237
- "symbol:src/example.ts#Example"
238
- ],
239
- "affectedResponsibilityIds": [
240
- "fixture.responsibility.001"
241
- ],
242
- "truncationImpact": false,
243
- "freshnessImpact": false
244
- },
245
- "freshness": {
246
- "state": "fresh",
247
- "role": "implementation",
248
- "evidenceUsed": [
249
- "code-graph"
250
- ],
251
- "evidenceUnavailable": [
252
- "before-index"
253
- ],
254
- "comparedIdentities": [
255
- {
256
- "label": "index-manifest-hash",
257
- "value": "fixture-hash-001"
258
- },
259
- {
260
- "label": "before-index-manifest-hash",
261
- "value": null
262
- }
263
- ],
264
- "reason": "Active index manifest hash matches the most recent recorded identity.",
265
- "relevantChangedPaths": [
266
- "src/example.ts"
267
- ],
268
- "warnings": []
269
- },
270
- "budget": {
271
- "limits": [
272
- {
273
- "name": "candidates",
274
- "declaredValue": 50,
275
- "usedValue": 1,
276
- "availableCount": 49,
277
- "droppedCount": 0,
278
- "truncated": false,
279
- "requiredEvidenceAffected": false,
280
- "adequacyImpact": null
281
- }
282
- ],
283
- "characters": null,
284
- "warnings": []
285
- },
286
- "truncation": {
287
- "truncated": false,
288
- "records": [],
289
- "warnings": []
290
- },
291
- "fullFileFallback": {
292
- "enabled": true,
293
- "limit": null,
294
- "used": 1,
295
- "fallbacks": [
296
- {
297
- "id": "fixture.fallback.001",
298
- "filePath": "src/other.ts",
299
- "reason": "bounded retrieval insufficient",
300
- "requestedEvidenceKind": null,
301
- "boundedRetrievalAttempted": true,
302
- "sourceRangesAttempted": 2,
303
- "includedLineCount": 40,
304
- "includedCharacterCount": 900,
305
- "role": "implementation",
306
- "responsibilityIdsAffected": [],
307
- "allowed": true,
308
- "provenance": "full-file-fallback"
309
- }
310
- ],
311
- "warnings": []
312
- },
313
- "provenance": [
314
- {
315
- "id": "fixture.provenance.001",
316
- "category": "code-graph",
317
- "sourcePath": "src/example.ts",
318
- "sourceId": null,
319
- "evidenceId": "symbol:src/example.ts#Example",
320
- "relationshipBasis": "candidate-ranking",
321
- "role": "implementation",
322
- "requestField": null,
323
- "derivedByModule": "candidateRanking.ts"
324
- }
325
- ],
326
- "futureMinorRootField": "preserved"
327
- }
@@ -1,18 +0,0 @@
1
- Artifact source: hand-built schema fixtures derived from the local my-dev-kit v1.10.4
2
- readiness-candidate producer contract (not a byte-for-byte real-command capture).
3
- Producer repository: Z:/Users/newuser/Projects/my-dev-kit-v1
4
- Producer branch: fix/v1.10.4-context-adequacy-semantics
5
- Producer candidate commit: d09068fc8190ba8bde3fcc7b045ca62a3ce18876
6
- Producer contract files inspected: src/context/roleConditionCoverage.ts, src/context/types.ts
7
- Context capsule schema version: 1.0.0
8
- Retrieval audit schema version: 1.0.0
9
- Additive fields covered: groupTruncation[].{droppedEvidenceIds,required,reservation,
10
- initiallySelectedCount,unusedReservationContributed,borrowedCapacity,requiredOmittedCount,
11
- optionalOmittedCount,adequacyAffected,governingHardBound,aggregateCapacityUsed,
12
- aggregateCapacityRemaining}, roleConditionCoverage[], truncation.requiredEvidenceLost.
13
- context-capsule/complete-v1.0.0.json and retrieval-audit-record/complete-v1.0.0.json share
14
- identical values for every field the capsule/audit parity check compares (contextAdequacy,
15
- roleContext, roleConditionCoverage, responsibilityMappings, roleAdequacy, freshness, budget,
16
- truncation, fullFileFallback, provenance) so they form a valid matching pair as-is.
17
- Copy policy: hand-authored fixtures; edit directly when the mirrored contract changes, and
18
- update this file's "Additive fields covered" list to match.