@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,955 +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/context-capsule.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
- "manifestSchemaVersion": "1.0.0",
21
- "projectRoot": "Z:/fixture/project",
22
- "artifactRefs": [
23
- {
24
- "name": "symbolIndex",
25
- "path": "Z:/fixture/project/.my-dev-kit/symbol-index.json"
26
- },
27
- {
28
- "name": "codeGraph",
29
- "path": "Z:/fixture/project/.my-dev-kit/code-graph.json"
30
- }
31
- ]
32
- },
33
- "limits": {
34
- "maxCandidateFiles": 50,
35
- "maxSourceSlices": 20,
36
- "maxGraphNodes": null,
37
- "maxGraphEdges": 100
38
- },
39
- "requiredContext": [
40
- {
41
- "id": "fixture.context.required.001",
42
- "kind": "request-summary",
43
- "title": "Request summary",
44
- "reason": "Captures the literal task query for downstream planning.",
45
- "evidenceRefs": [
46
- {
47
- "path": "Z:/fixture/project/src/example.ts"
48
- }
49
- ],
50
- "classificationRefs": [
51
- {
52
- "filePath": "Z:/fixture/project/src/example.ts",
53
- "symbolId": null,
54
- "line": 1,
55
- "endLine": 10,
56
- "source": "static",
57
- "analyzer": "syntax-analyzer"
58
- }
59
- ],
60
- "classificationRoles": [
61
- {
62
- "role": "implementation-target",
63
- "subtype": null,
64
- "confidence": "likely"
65
- }
66
- ],
67
- "warnings": []
68
- }
69
- ],
70
- "optionalSupportContext": [
71
- {
72
- "id": "fixture.context.optional.001",
73
- "kind": "artifact-summary",
74
- "title": "Artifact: symbolIndex",
75
- "reason": "Lists an artifact available in this index for later batches to consume.",
76
- "evidenceRefs": [
77
- {
78
- "path": "Z:/fixture/project/.my-dev-kit/symbol-index.json"
79
- }
80
- ],
81
- "warnings": []
82
- }
83
- ],
84
- "droppedContext": [
85
- {
86
- "id": "fixture.context.dropped.001",
87
- "kind": "placeholder",
88
- "title": "Dropped placeholder",
89
- "reason": "Exceeded retention cap."
90
- }
91
- ],
92
- "warnings": [
93
- "Fixture warning: synthetic data only."
94
- ],
95
- "contextAdequacy": {
96
- "status": "context sufficient with listed assumptions",
97
- "summary": "A best-effort focus node was selected; some ambiguity or thin graph/source/metadata evidence remains.",
98
- "assumptions": [
99
- "Fixture assumption."
100
- ],
101
- "gaps": [
102
- "Fixture gap."
103
- ]
104
- },
105
- "queryPlan": {
106
- "originalQuery": "Inspect task implementation and tests",
107
- "normalizedQuery": "Inspect task implementation and tests",
108
- "mode": "feature-add",
109
- "searchQueries": [
110
- "Inspect task implementation and tests"
111
- ],
112
- "terms": {
113
- "raw": [
114
- "inspect",
115
- "task",
116
- "implementation",
117
- "tests"
118
- ],
119
- "quotedPhrases": [],
120
- "pathLike": [
121
- "src/example.ts"
122
- ],
123
- "symbolLike": [
124
- "exampleFunction"
125
- ],
126
- "routeLike": [],
127
- "commandLike": [],
128
- "artifactLike": [],
129
- "classificationLike": []
130
- }
131
- },
132
- "candidateFiles": [
133
- {
134
- "path": "src/example.ts",
135
- "score": 12.5,
136
- "baseScore": 10,
137
- "modeAdjustment": 2.5,
138
- "reasons": [
139
- "matched query term"
140
- ],
141
- "matchedTerms": [
142
- "example"
143
- ],
144
- "semanticRoles": [
145
- {
146
- "role": "canonical-type",
147
- "subtype": "canonical-type",
148
- "confidence": "explicit",
149
- "source": "syntax-analyzer",
150
- "artifactRefs": [
151
- {
152
- "artifact": "symbolIndex",
153
- "artifactKind": "symbol-index",
154
- "id": "symbol:src/example.ts#Example",
155
- "path": "src/example.ts"
156
- }
157
- ],
158
- "evidenceRefs": [
159
- {
160
- "filePath": "src/example.ts",
161
- "symbolId": "symbol:src/example.ts#Example",
162
- "line": 1,
163
- "endLine": 10,
164
- "source": "static",
165
- "analyzer": "syntax-analyzer"
166
- }
167
- ],
168
- "warnings": []
169
- }
170
- ],
171
- "artifactRefs": [
172
- {
173
- "artifact": "symbolIndex",
174
- "artifactKind": "symbol-index",
175
- "id": "symbol:src/example.ts#Example",
176
- "path": "src/example.ts"
177
- }
178
- ],
179
- "classificationRoles": [
180
- {
181
- "role": "implementation-target",
182
- "editGuidance": "safe-primary-edit-target",
183
- "readiness": "ready",
184
- "uncertainty": "likely"
185
- }
186
- ],
187
- "classificationRefs": [
188
- {
189
- "artifact": "classification",
190
- "artifactKind": "unknown",
191
- "id": "classification:src/example.ts",
192
- "path": "src/example.ts"
193
- }
194
- ],
195
- "retained": true,
196
- "roleScoreAdjustment": 1.5,
197
- "contextRole": "implementation",
198
- "focusMatch": true,
199
- "changedSurfaceMatch": false,
200
- "changedStatus": "modified"
201
- }
202
- ],
203
- "candidateNodes": [
204
- {
205
- "nodeId": "symbol:src/example.ts#Example",
206
- "kind": "symbol",
207
- "label": "Example",
208
- "filePath": "src/example.ts",
209
- "score": 12.5,
210
- "baseScore": 10,
211
- "modeAdjustment": 2.5,
212
- "reasons": [
213
- "matched query term"
214
- ],
215
- "matchedTerms": [
216
- "example"
217
- ],
218
- "semanticRoles": [],
219
- "artifactRefs": [],
220
- "classificationRoles": [],
221
- "classificationRefs": [],
222
- "androidArtifactId": "android:fixture:1",
223
- "androidMetadata": {
224
- "packageName": "com.fixture.app",
225
- "minSdk": 21,
226
- "usesCleartextTraffic": false,
227
- "notes": null
228
- },
229
- "retained": true,
230
- "droppedReason": "not dropped",
231
- "roleScoreAdjustment": 1.5,
232
- "contextRole": "implementation",
233
- "focusMatch": true,
234
- "changedSurfaceMatch": false,
235
- "changedStatus": "modified",
236
- "synthesized": false
237
- }
238
- ],
239
- "focus": {
240
- "focusNodeId": "symbol:src/example.ts#Example",
241
- "focusFilePath": "src/example.ts",
242
- "selectionMode": "single-best",
243
- "confidence": "high",
244
- "reasons": [
245
- "unambiguous top-ranked candidate"
246
- ],
247
- "ambiguityNotes": [],
248
- "warnings": []
249
- },
250
- "selectedGraph": {
251
- "nodes": [
252
- {
253
- "nodeId": "symbol:src/example.ts#Example",
254
- "kind": "symbol",
255
- "label": "Example",
256
- "filePath": "src/example.ts",
257
- "reasons": [
258
- "primary focus"
259
- ]
260
- },
261
- {
262
- "nodeId": "file:src/example.ts",
263
- "kind": "file",
264
- "label": "example.ts",
265
- "reasons": [
266
- "containing file"
267
- ]
268
- }
269
- ],
270
- "edges": [
271
- {
272
- "from": "file:src/example.ts",
273
- "to": "symbol:src/example.ts#Example",
274
- "kind": "defines",
275
- "reasons": [
276
- "structural containment"
277
- ]
278
- }
279
- ],
280
- "omittedNodeCount": 0,
281
- "omittedEdgeCount": 0,
282
- "warnings": []
283
- },
284
- "retention": {
285
- "retainedCandidateCount": 1,
286
- "droppedCandidateCount": 0,
287
- "retainedGraphNodeCount": 2,
288
- "droppedGraphNodeCount": 0,
289
- "retainedGraphEdgeCount": 1,
290
- "droppedGraphEdgeCount": 0,
291
- "capSettings": {
292
- "maxCandidateFiles": 50,
293
- "maxGraphNodes": null,
294
- "maxGraphEdges": 100
295
- }
296
- },
297
- "selectedSource": {
298
- "slices": [
299
- {
300
- "id": "fixture.slice.001",
301
- "kind": "symbol",
302
- "filePath": "src/example.ts",
303
- "startLine": 1,
304
- "endLine": 10,
305
- "nodeId": "symbol:src/example.ts#Example",
306
- "symbolName": "Example",
307
- "reason": "primary focus source",
308
- "sourceRetrievalMethod": "symbol",
309
- "includedBy": "primary-focus",
310
- "truncated": false,
311
- "continuationAvailable": true,
312
- "continuationUsed": false,
313
- "localExpansionUsed": false,
314
- "classificationRefs": [],
315
- "semanticRefs": [],
316
- "warnings": []
317
- }
318
- ],
319
- "omittedSliceCount": 0,
320
- "totalSelectedLines": 10,
321
- "maxSourceSlices": 20,
322
- "warnings": [],
323
- "skipped": [
324
- {
325
- "id": "fixture.skipped.001",
326
- "kind": "symbol",
327
- "filePath": "src/other.ts",
328
- "reason": "exceeded cap",
329
- "capType": "maxSourceSlices",
330
- "candidateScore": 3.2
331
- }
332
- ]
333
- },
334
- "selectedSourceBundles": {
335
- "bundles": [
336
- {
337
- "id": "fixture.bundle.001",
338
- "title": "Example bundle",
339
- "focusNodeId": "symbol:src/example.ts#Example",
340
- "focusFilePath": "src/example.ts",
341
- "reason": "primary focus bundle",
342
- "blocks": [
343
- {
344
- "id": "fixture.block.001",
345
- "kind": "symbol",
346
- "filePath": "src/example.ts",
347
- "startLine": 1,
348
- "endLine": 10,
349
- "symbolName": "Example",
350
- "reason": "primary focus source",
351
- "includedBy": "primary-focus",
352
- "truncated": false,
353
- "warnings": []
354
- }
355
- ],
356
- "totalLines": 10,
357
- "maxLines": 200,
358
- "skippedBlocks": [
359
- {
360
- "id": "fixture.skippedBlock.001",
361
- "kind": "symbol",
362
- "filePath": "src/other.ts",
363
- "reason": "exceeded cap",
364
- "capType": "maxLines",
365
- "candidateScore": 2.1
366
- }
367
- ],
368
- "warnings": []
369
- }
370
- ],
371
- "omittedBundleCount": 0,
372
- "totalSelectedLines": 10,
373
- "warnings": []
374
- },
375
- "semanticSummary": {
376
- "available": true,
377
- "roles": [
378
- {
379
- "role": "canonical-type",
380
- "subtype": null,
381
- "confidence": "explicit",
382
- "source": "syntax-analyzer",
383
- "artifactRefs": [],
384
- "evidenceRefs": [],
385
- "warnings": []
386
- }
387
- ],
388
- "artifactRefs": [],
389
- "evidenceRefs": [],
390
- "summariesByNode": {
391
- "symbol:src/example.ts#Example": {
392
- "roles": [],
393
- "artifactRefs": [],
394
- "evidenceRefs": []
395
- }
396
- },
397
- "summariesByFile": {
398
- "src/example.ts": {
399
- "roles": [],
400
- "artifactRefs": [],
401
- "evidenceRefs": []
402
- }
403
- },
404
- "warnings": []
405
- },
406
- "classificationSummary": {
407
- "available": true,
408
- "classificationArtifactPath": null,
409
- "roles": [
410
- {
411
- "role": "implementation-target",
412
- "subtype": null,
413
- "confidence": "likely"
414
- }
415
- ],
416
- "refs": [
417
- {
418
- "filePath": "src/example.ts",
419
- "symbolId": null,
420
- "line": 1,
421
- "endLine": 10,
422
- "source": "static",
423
- "analyzer": "syntax-analyzer"
424
- }
425
- ],
426
- "editGuidance": [
427
- "safe-primary-edit-target"
428
- ],
429
- "readiness": [
430
- "ready"
431
- ],
432
- "riskLabels": [
433
- "requires-test-validation"
434
- ],
435
- "uncertainty": [
436
- "likely"
437
- ],
438
- "summariesByNode": {
439
- "symbol:src/example.ts#Example": {
440
- "classifications": [
441
- {
442
- "role": "implementation-target",
443
- "subtype": null,
444
- "confidence": "likely"
445
- }
446
- ],
447
- "editGuidance": "safe-primary-edit-target",
448
- "readiness": "ready",
449
- "risks": [
450
- "requires-test-validation"
451
- ],
452
- "uncertainty": "likely",
453
- "warnings": []
454
- }
455
- },
456
- "summariesByFile": {},
457
- "warnings": []
458
- },
459
- "artifactReferenceSummary": [
460
- {
461
- "artifactKind": "symbol-index",
462
- "artifactPath": "Z:/fixture/project/.my-dev-kit/symbol-index.json",
463
- "available": true,
464
- "reason": "artifact present in manifest",
465
- "warnings": []
466
- },
467
- {
468
- "artifactKind": "frontend-semantic",
469
- "artifactPath": null,
470
- "available": false,
471
- "reason": "artifact not generated for this project",
472
- "warnings": []
473
- }
474
- ],
475
- "pruning": {
476
- "policyVersion": "1.0.0",
477
- "retainedCounts": {
478
- "candidateFiles": 1,
479
- "candidateNodes": 1,
480
- "graphNodes": 2,
481
- "graphEdges": 1,
482
- "sourceSlices": 1,
483
- "sourceBundles": 1
484
- },
485
- "droppedCounts": {
486
- "candidateFiles": 0,
487
- "candidateNodes": 0,
488
- "graphNodes": 0,
489
- "graphEdges": 0,
490
- "sourceSlices": 0,
491
- "sourceBundles": 0
492
- },
493
- "capSettings": {
494
- "maxCandidateFiles": 50,
495
- "maxGraphNodes": null,
496
- "maxGraphEdges": 100,
497
- "maxSourceSlices": 20
498
- },
499
- "retainedReasons": [
500
- "high relevance score"
501
- ],
502
- "droppedReasons": [],
503
- "warnings": []
504
- },
505
- "conflicts": {
506
- "status": "conflict",
507
- "conflicts": [
508
- {
509
- "id": "fixture.conflict.001",
510
- "status": "conflict",
511
- "reason": "Static edit-guidance evidence conflicts for the selected focus.",
512
- "evidenceRefs": [
513
- "src/example.ts"
514
- ],
515
- "affectedFiles": [
516
- "src/example.ts"
517
- ],
518
- "affectedNodes": [
519
- "symbol:src/example.ts#Example"
520
- ],
521
- "candidates": [
522
- {
523
- "nodeId": "symbol:src/example.ts#Example",
524
- "filePath": "src/example.ts",
525
- "score": 12.5,
526
- "editGuidance": [
527
- "safe-primary-edit-target",
528
- "inspect-before-edit"
529
- ]
530
- }
531
- ],
532
- "recommendedNextAction": "Review classification evidence before editing."
533
- }
534
- ],
535
- "warnings": []
536
- },
537
- "modeEffects": {
538
- "mode": "feature-add",
539
- "applied": true,
540
- "effects": [
541
- {
542
- "candidateId": "src/example.ts",
543
- "adjustment": 2.5,
544
- "reasons": [
545
- "feature-add mode boost"
546
- ]
547
- }
548
- ],
549
- "warnings": []
550
- },
551
- "sourceControl": {
552
- "enabled": true,
553
- "reason": "Git repository detected."
554
- },
555
- "deferredRequestFields": [
556
- "upstreamArtifactRefs"
557
- ],
558
- "roleContext": {
559
- "role": "implementation",
560
- "focus": {
561
- "focusFiles": [
562
- {
563
- "path": "src/example.ts",
564
- "resolved": true,
565
- "matchedFilePaths": [
566
- "src/example.ts"
567
- ],
568
- "containedSymbolIds": [
569
- "symbol:src/example.ts#Example"
570
- ]
571
- }
572
- ],
573
- "focusSymbols": [
574
- {
575
- "symbol": "Example",
576
- "resolved": true,
577
- "ambiguous": false,
578
- "matchedNodeIds": [
579
- "symbol:src/example.ts#Example"
580
- ]
581
- }
582
- ],
583
- "unresolvedFocusFiles": [],
584
- "unresolvedFocusSymbols": [],
585
- "ambiguousFocusSymbols": [],
586
- "warnings": []
587
- },
588
- "changedSurface": {
589
- "available": true,
590
- "diffRequested": true,
591
- "files": [
592
- {
593
- "path": "src/example.ts",
594
- "status": "modified",
595
- "provenance": "both"
596
- }
597
- ],
598
- "symbols": [
599
- {
600
- "symbolId": "symbol:src/example.ts#Example",
601
- "status": "modified",
602
- "provenance": "graph-diff",
603
- "filePath": "src/example.ts",
604
- "name": "Example",
605
- "kind": "symbol"
606
- }
607
- ],
608
- "conflicts": [],
609
- "warnings": []
610
- },
611
- "requestedEvidenceKinds": [
612
- "owner",
613
- "dependencies"
614
- ],
615
- "unsupportedRequestedEvidenceKinds": [
616
- "responsibility-mappings"
617
- ],
618
- "warnings": []
619
- },
620
- "evidenceGroups": [
621
- {
622
- "id": "implementation-owners",
623
- "kind": "owners",
624
- "role": "implementation",
625
- "title": "Owners",
626
- "required": true,
627
- "items": [
628
- {
629
- "id": "src/example.ts",
630
- "itemKind": "file",
631
- "path": "src/example.ts",
632
- "symbolId": "symbol:src/example.ts#Example",
633
- "nodeId": "symbol:src/example.ts#Example",
634
- "sourceLocation": {
635
- "filePath": "src/example.ts",
636
- "line": 1
637
- },
638
- "relationship": "owner",
639
- "basis": "candidate-ranking",
640
- "provenance": "candidate-ranking",
641
- "metadata": {
642
- "score": 12.5,
643
- "retained": true,
644
- "note": null
645
- }
646
- }
647
- ],
648
- "unresolved": [
649
- {
650
- "evidenceKind": "dependencies",
651
- "role": "implementation",
652
- "basis": "graph-neighborhood",
653
- "reason": "no dependency edges found",
654
- "blocking": false
655
- }
656
- ],
657
- "warnings": [],
658
- "limit": null,
659
- "availableCount": 1,
660
- "usedCount": 1,
661
- "truncated": false,
662
- "droppedCount": 0,
663
- "provenance": "candidate-ranking"
664
- }
665
- ],
666
- "selectedOwners": [
667
- {
668
- "id": "src/example.ts",
669
- "itemKind": "file",
670
- "path": "src/example.ts",
671
- "relationship": "owner",
672
- "basis": "candidate-ranking",
673
- "provenance": "candidate-ranking"
674
- }
675
- ],
676
- "selectedContracts": [],
677
- "selectedTests": [
678
- {
679
- "id": "tests/example.spec.ts",
680
- "itemKind": "test-file",
681
- "path": "tests/example.spec.ts",
682
- "relationship": "closest-test",
683
- "basis": "path-proximity",
684
- "provenance": "test-directory-walk"
685
- }
686
- ],
687
- "testInfrastructure": {
688
- "relatedTests": [
689
- {
690
- "id": "tests/example.spec.ts",
691
- "itemKind": "test-file",
692
- "path": "tests/example.spec.ts",
693
- "relationship": "closest-test",
694
- "basis": "path-proximity",
695
- "provenance": "test-directory-walk"
696
- }
697
- ],
698
- "fixtures": [],
699
- "factories": [],
700
- "mocks": [],
701
- "setupFiles": [],
702
- "testConfigurations": [
703
- {
704
- "path": "vitest.config.ts",
705
- "framework": "vitest",
706
- "supported": true,
707
- "fields": {
708
- "testDir": "tests",
709
- "include": [
710
- "tests/**/*.spec.ts"
711
- ],
712
- "timeout": 5000,
713
- "watch": false,
714
- "reporter": null
715
- },
716
- "warnings": []
717
- }
718
- ],
719
- "packageScripts": [
720
- {
721
- "name": "test",
722
- "command": "vitest run",
723
- "reason": "primary test entrypoint",
724
- "packageJsonPath": "package.json"
725
- }
726
- ],
727
- "testCommands": [
728
- {
729
- "commandText": "vitest run tests/example.spec.ts",
730
- "commandSource": "package-script",
731
- "testFiles": [
732
- "tests/example.spec.ts"
733
- ],
734
- "framework": "vitest",
735
- "scope": "file",
736
- "basis": "path-proximity"
737
- },
738
- {
739
- "commandText": null,
740
- "commandSource": "unresolved",
741
- "testFiles": [],
742
- "framework": null,
743
- "scope": "full-project",
744
- "basis": "fallback",
745
- "unresolvedReason": "no matching test command found"
746
- }
747
- ],
748
- "unresolved": [],
749
- "warnings": []
750
- },
751
- "unresolvedItems": [
752
- {
753
- "evidenceKind": "contracts",
754
- "role": "implementation",
755
- "basis": "graph-neighborhood",
756
- "reason": "no contract evidence found",
757
- "blocking": false
758
- }
759
- ],
760
- "groupTruncation": [
761
- {
762
- "groupId": "implementation-owners",
763
- "limit": null,
764
- "availableCount": 1,
765
- "usedCount": 1,
766
- "truncated": false,
767
- "droppedCount": 0
768
- }
769
- ],
770
- "responsibilityMappings": {
771
- "requested": true,
772
- "operational": true,
773
- "mappings": [
774
- {
775
- "responsibilityId": "fixture.responsibility.001",
776
- "behavior": "Example behaves correctly.",
777
- "invariant": null,
778
- "criticality": "critical",
779
- "productionSymbols": [
780
- {
781
- "id": "symbol:src/example.ts#Example",
782
- "itemKind": "symbol",
783
- "symbolId": "symbol:src/example.ts#Example",
784
- "relationship": "production-symbol",
785
- "basis": "candidate-ranking",
786
- "provenance": "candidate-ranking"
787
- }
788
- ],
789
- "contracts": [],
790
- "validators": [],
791
- "constants": [],
792
- "errors": [],
793
- "sideEffectEvidence": [],
794
- "proposedOrExistingTestFiles": [
795
- {
796
- "id": "tests/example.spec.ts",
797
- "itemKind": "test-file",
798
- "path": "tests/example.spec.ts",
799
- "relationship": "proposed-test",
800
- "basis": "path-proximity",
801
- "provenance": "test-directory-walk"
802
- }
803
- ],
804
- "reusableHelpers": [],
805
- "oracleEvidence": [],
806
- "testCommands": [],
807
- "mappingStatus": "mapped",
808
- "unresolvedReasons": [],
809
- "provenance": [
810
- {
811
- "id": "fixture.provenance.mapping.001",
812
- "category": "code-graph",
813
- "sourcePath": "src/example.ts",
814
- "sourceId": null,
815
- "evidenceId": "symbol:src/example.ts#Example",
816
- "relationshipBasis": "candidate-ranking",
817
- "role": "implementation",
818
- "requestField": null,
819
- "derivedByModule": "responsibilityMapping.ts"
820
- }
821
- ],
822
- "warnings": []
823
- }
824
- ],
825
- "unknownResponsibilityIds": [],
826
- "duplicateResponsibilityIds": [],
827
- "limit": null,
828
- "availableCount": 1,
829
- "usedCount": 1,
830
- "truncated": false,
831
- "droppedCount": 0,
832
- "criticalDropped": false,
833
- "warnings": []
834
- },
835
- "roleAdequacy": {
836
- "role": "implementation",
837
- "status": "context sufficient with listed assumptions",
838
- "requiredConditions": [
839
- "single high-confidence focus node"
840
- ],
841
- "satisfiedConditions": [
842
- "single high-confidence focus node"
843
- ],
844
- "missingConditions": [],
845
- "blockingConditions": [],
846
- "warnings": [],
847
- "supportingEvidence": [
848
- "symbol:src/example.ts#Example"
849
- ],
850
- "affectedResponsibilityIds": [
851
- "fixture.responsibility.001"
852
- ],
853
- "truncationImpact": false,
854
- "freshnessImpact": false
855
- },
856
- "freshness": {
857
- "state": "fresh",
858
- "role": "implementation",
859
- "evidenceUsed": [
860
- "code-graph"
861
- ],
862
- "evidenceUnavailable": [
863
- "before-index"
864
- ],
865
- "comparedIdentities": [
866
- {
867
- "label": "index-manifest-hash",
868
- "value": "fixture-hash-001"
869
- },
870
- {
871
- "label": "before-index-manifest-hash",
872
- "value": null
873
- }
874
- ],
875
- "reason": "Active index manifest hash matches the most recent recorded identity.",
876
- "relevantChangedPaths": [
877
- "src/example.ts"
878
- ],
879
- "warnings": []
880
- },
881
- "budget": {
882
- "limits": [
883
- {
884
- "name": "candidates",
885
- "declaredValue": 50,
886
- "usedValue": 1,
887
- "availableCount": 49,
888
- "droppedCount": 0,
889
- "truncated": false,
890
- "requiredEvidenceAffected": false,
891
- "adequacyImpact": null
892
- }
893
- ],
894
- "characters": {
895
- "measured": 1200,
896
- "limit": 8000,
897
- "truncated": false
898
- },
899
- "warnings": []
900
- },
901
- "truncation": {
902
- "truncated": false,
903
- "records": [
904
- {
905
- "id": "fixture.truncation.001",
906
- "affectedGroup": "implementation-owners",
907
- "limit": 10,
908
- "used": 1,
909
- "available": 1,
910
- "droppedCount": 0,
911
- "droppedEvidenceIds": [],
912
- "requiredEvidenceLost": false,
913
- "adequacyImpact": null,
914
- "reason": "within declared limit"
915
- }
916
- ],
917
- "warnings": []
918
- },
919
- "fullFileFallback": {
920
- "enabled": true,
921
- "limit": null,
922
- "used": 0,
923
- "fallbacks": [
924
- {
925
- "id": "fixture.fallback.001",
926
- "filePath": "src/other.ts",
927
- "reason": "bounded retrieval insufficient",
928
- "requestedEvidenceKind": null,
929
- "boundedRetrievalAttempted": true,
930
- "sourceRangesAttempted": 2,
931
- "includedLineCount": 40,
932
- "includedCharacterCount": 900,
933
- "role": "implementation",
934
- "responsibilityIdsAffected": [],
935
- "allowed": false,
936
- "provenance": "full-file-fallback"
937
- }
938
- ],
939
- "warnings": []
940
- },
941
- "provenance": [
942
- {
943
- "id": "fixture.provenance.001",
944
- "category": "code-graph",
945
- "sourcePath": "src/example.ts",
946
- "sourceId": null,
947
- "evidenceId": "symbol:src/example.ts#Example",
948
- "relationshipBasis": "candidate-ranking",
949
- "role": "implementation",
950
- "requestField": null,
951
- "derivedByModule": "candidateRanking.ts"
952
- }
953
- ],
954
- "futureMinorRootField": "preserved"
955
- }