sourcecode 4.10.6__tar.gz → 4.10.7__tar.gz

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 (224) hide show
  1. {sourcecode-4.10.6 → sourcecode-4.10.7}/CHANGELOG.md +80 -0
  2. {sourcecode-4.10.6 → sourcecode-4.10.7}/PKG-INFO +6 -3
  3. {sourcecode-4.10.6 → sourcecode-4.10.7}/README.md +5 -2
  4. {sourcecode-4.10.6 → sourcecode-4.10.7}/pyproject.toml +1 -1
  5. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/__init__.py +1 -1
  6. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/cache.py +8 -3
  7. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/cache_model.py +100 -43
  8. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/canonical_ir.py +2 -1
  9. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/change_plan.py +8 -3
  10. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/cli.py +352 -62
  11. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/data_exposure.py +10 -1
  12. sourcecode-4.10.7/src/sourcecode/execution_plan.py +428 -0
  13. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/posture.py +3 -3
  14. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/remedies.py +37 -5
  15. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/repository_ir.py +25 -1
  16. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/security_posture.py +1 -1
  17. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/serializer.py +13 -0
  18. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/verify_repo.py +2 -2
  19. {sourcecode-4.10.6 → sourcecode-4.10.7}/.github/workflows/build-windows.yml +0 -0
  20. {sourcecode-4.10.6 → sourcecode-4.10.7}/.gitignore +0 -0
  21. {sourcecode-4.10.6 → sourcecode-4.10.7}/.ruff.toml +0 -0
  22. {sourcecode-4.10.6 → sourcecode-4.10.7}/CLAUDE.md +0 -0
  23. {sourcecode-4.10.6 → sourcecode-4.10.7}/CONTRIBUTING.md +0 -0
  24. {sourcecode-4.10.6 → sourcecode-4.10.7}/LICENSE +0 -0
  25. {sourcecode-4.10.6 → sourcecode-4.10.7}/SECURITY.md +0 -0
  26. {sourcecode-4.10.6 → sourcecode-4.10.7}/raw +0 -0
  27. {sourcecode-4.10.6 → sourcecode-4.10.7}/scripts/compare_integration_engines.py +0 -0
  28. {sourcecode-4.10.6 → sourcecode-4.10.7}/scripts/customer_smoke_test.sh +0 -0
  29. {sourcecode-4.10.6 → sourcecode-4.10.7}/scripts/generate_jdk_exports.py +0 -0
  30. {sourcecode-4.10.6 → sourcecode-4.10.7}/scripts/perf_harness.py +0 -0
  31. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/adaptive_scanner.py +0 -0
  32. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/archetype.py +0 -0
  33. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/architectural_baseline.py +0 -0
  34. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/architectural_delta.py +0 -0
  35. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/architecture_analyzer.py +0 -0
  36. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/architecture_summary.py +0 -0
  37. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/ast_extractor.py +0 -0
  38. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/audit_report.py +0 -0
  39. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/baseline_autocapture.py +0 -0
  40. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/call_surface.py +0 -0
  41. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/caller_metrics.py +0 -0
  42. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/caller_reach.py +0 -0
  43. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/chain_rules.py +0 -0
  44. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/cir_graphs.py +0 -0
  45. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/classifier.py +0 -0
  46. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/client_calls.py +0 -0
  47. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/code_notes_analyzer.py +0 -0
  48. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/compare.py +0 -0
  49. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/confidence_analyzer.py +0 -0
  50. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/constraint_diff.py +0 -0
  51. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/container_wiring.py +0 -0
  52. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/context_cache.py +0 -0
  53. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/context_graph.py +0 -0
  54. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/context_scorer.py +0 -0
  55. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/context_summarizer.py +0 -0
  56. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/contract_diff.py +0 -0
  57. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/contract_init.py +0 -0
  58. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/contract_model.py +0 -0
  59. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/contract_pipeline.py +0 -0
  60. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/coverage_parser.py +0 -0
  61. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/data_labels.py +0 -0
  62. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/defect_identity.py +0 -0
  63. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/degradation.py +0 -0
  64. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/dependency_analyzer.py +0 -0
  65. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/deployment_prefix.py +0 -0
  66. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detach.py +0 -0
  67. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/__init__.py +0 -0
  68. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/base.py +0 -0
  69. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/csproj_parser.py +0 -0
  70. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/dart.py +0 -0
  71. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/dotnet.py +0 -0
  72. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/elixir.py +0 -0
  73. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/go.py +0 -0
  74. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/heuristic.py +0 -0
  75. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/hybrid.py +0 -0
  76. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/java.py +0 -0
  77. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/jvm_ext.py +0 -0
  78. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/nodejs.py +0 -0
  79. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/parsers.py +0 -0
  80. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/php.py +0 -0
  81. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/project.py +0 -0
  82. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/python.py +0 -0
  83. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/ruby.py +0 -0
  84. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/rust.py +0 -0
  85. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/systems.py +0 -0
  86. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/terraform.py +0 -0
  87. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/detectors/tooling.py +0 -0
  88. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/doc_analyzer.py +0 -0
  89. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/dynamic_argument_surface.py +0 -0
  90. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/endpoint_literals.py +0 -0
  91. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/endpoint_metrics.py +0 -0
  92. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/entrypoint_classifier.py +0 -0
  93. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/env_analyzer.py +0 -0
  94. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/envelope.py +0 -0
  95. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/environment_resolution.py +0 -0
  96. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/error_schema.py +0 -0
  97. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/evidence_provider.py +0 -0
  98. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/explain.py +0 -0
  99. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/facts/__init__.py +0 -0
  100. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/facts/registry.json +0 -0
  101. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/file_chunker.py +0 -0
  102. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/file_classifier.py +0 -0
  103. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/filter_surface.py +0 -0
  104. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/format_contract.py +0 -0
  105. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/fqn_utils.py +0 -0
  106. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/git_analyzer.py +0 -0
  107. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/git_checkout.py +0 -0
  108. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/graph_analyzer.py +0 -0
  109. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/graph_evidence.py +0 -0
  110. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/hibernate_strat.py +0 -0
  111. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/identity_fallback.py +0 -0
  112. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/integration_coordinates.py +0 -0
  113. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/jdk_exports.py +0 -0
  114. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/license.py +0 -0
  115. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/__init__.py +0 -0
  116. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/onboarding/__init__.py +0 -0
  117. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/onboarding/applier.py +0 -0
  118. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/onboarding/backup.py +0 -0
  119. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/onboarding/detector.py +0 -0
  120. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/onboarding/planner.py +0 -0
  121. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/orchestrator.py +0 -0
  122. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/registry.py +0 -0
  123. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/runner.py +0 -0
  124. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp/server.py +0 -0
  125. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/mcp_nudge.py +0 -0
  126. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/metrics_analyzer.py +0 -0
  127. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/migrate_check.py +0 -0
  128. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/migration_blast.py +0 -0
  129. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/non_coverage.py +0 -0
  130. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/openapi_surface.py +0 -0
  131. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/openrewrite_recipe.py +0 -0
  132. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/output_budget.py +0 -0
  133. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/output_encoding.py +0 -0
  134. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/parse_cache.py +0 -0
  135. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/path_admission.py +0 -0
  136. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/path_filters.py +0 -0
  137. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/perf.py +0 -0
  138. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/phased_run.py +0 -0
  139. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/pipe_contract.py +0 -0
  140. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/pr_comment_renderer.py +0 -0
  141. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/pr_impact.py +0 -0
  142. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/prepare_context.py +0 -0
  143. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/progress.py +0 -0
  144. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/provenance.py +0 -0
  145. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/ranking_engine.py +0 -0
  146. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/readiness_timeline.py +0 -0
  147. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/reconciliation.py +0 -0
  148. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/redactor.py +0 -0
  149. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/reference_facts.py +0 -0
  150. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/release_info.py +0 -0
  151. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/relevance_scorer.py +0 -0
  152. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/rename_refactor.py +0 -0
  153. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/repo_classifier.py +0 -0
  154. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/__init__.py +0 -0
  155. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/context.py +0 -0
  156. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/errors.py +0 -0
  157. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/executor.py +0 -0
  158. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/planner.py +0 -0
  159. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/query.py +0 -0
  160. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/request.py +0 -0
  161. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/resolution.py +0 -0
  162. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/result.py +0 -0
  163. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/retriever.py +0 -0
  164. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/runtime.py +0 -0
  165. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/steps.py +0 -0
  166. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/steps_endpoint.py +0 -0
  167. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/steps_graph.py +0 -0
  168. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/steps_impact.py +0 -0
  169. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/steps_intf.py +0 -0
  170. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/steps_struct.py +0 -0
  171. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/retrieval/steps_txsec.py +0 -0
  172. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/ris.py +0 -0
  173. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/risk.py +0 -0
  174. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/rule_catalog.py +0 -0
  175. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/runs.py +0 -0
  176. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/runtime_classifier.py +0 -0
  177. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/sarif.py +0 -0
  178. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/scanner.py +0 -0
  179. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/schema.py +0 -0
  180. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/schemas/envelope-v1.schema.json +0 -0
  181. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/security_config.py +0 -0
  182. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/security_config_scan.py +0 -0
  183. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/semantic_analyzer.py +0 -0
  184. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/semantic_impact_engine.py +0 -0
  185. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/semantic_integration_engine.py +0 -0
  186. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/semantic_services.py +0 -0
  187. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/servlet_surface.py +0 -0
  188. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/source_text.py +0 -0
  189. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_event_topology.py +0 -0
  190. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_findings.py +0 -0
  191. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_impact.py +0 -0
  192. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_model.py +0 -0
  193. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_profiles.py +0 -0
  194. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_properties.py +0 -0
  195. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_security_audit.py +0 -0
  196. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_semantic.py +0 -0
  197. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/spring_tx_analyzer.py +0 -0
  198. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/summarizer.py +0 -0
  199. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/target_admission.py +0 -0
  200. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/telemetry/__init__.py +0 -0
  201. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/telemetry/config.py +0 -0
  202. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/telemetry/consent.py +0 -0
  203. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/telemetry/events.py +0 -0
  204. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/telemetry/filters.py +0 -0
  205. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/telemetry/transport.py +0 -0
  206. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/test_gap_ranking.py +0 -0
  207. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/test_sources.py +0 -0
  208. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/text_input.py +0 -0
  209. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/token_estimate.py +0 -0
  210. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/tree_utils.py +0 -0
  211. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/type_usage_surface.py +0 -0
  212. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/validation_inference.py +0 -0
  213. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/validation_surface.py +0 -0
  214. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/verify_edit.py +0 -0
  215. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/verify_rules.py +0 -0
  216. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/version_check.py +0 -0
  217. {sourcecode-4.10.6 → sourcecode-4.10.7}/src/sourcecode/workspace.py +0 -0
  218. {sourcecode-4.10.6 → sourcecode-4.10.7}/supabase/functions/README.md +0 -0
  219. {sourcecode-4.10.6 → sourcecode-4.10.7}/supabase/functions/get-license/index.ts +0 -0
  220. {sourcecode-4.10.6 → sourcecode-4.10.7}/supabase/functions/lemonsqueezy-webhook/index.ts +0 -0
  221. {sourcecode-4.10.6 → sourcecode-4.10.7}/supabase/functions/telemetry/index.ts +0 -0
  222. {sourcecode-4.10.6 → sourcecode-4.10.7}/supabase/sql/license_event_ordering.sql +0 -0
  223. {sourcecode-4.10.6 → sourcecode-4.10.7}/supabase/sql/licensing_schema.sql +0 -0
  224. {sourcecode-4.10.6 → sourcecode-4.10.7}/supabase/sql/telemetry_events.sql +0 -0
@@ -2,6 +2,86 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [4.10.7] — 2026-08-07
6
+
7
+ **Tier D, and with it the M13 bug queue.** Five ledger rows close (C4-17 · C4-18 ·
8
+ C4-19 · C4-20 · C4-21), one commit each, all of them discoverability: none was
9
+ publishing a false claim, and together they are the ergonomics score two field
10
+ evaluations put at 5/10. What remains of the queue is a *measurement*, not a fix —
11
+ the C3-53 re-run on Windows under an agent harness, which is written the same way
12
+ in the ledger and in the 4.10.6 entry below.
13
+
14
+ ⚠ **Three behaviour changes to read before upgrading a pipeline:**
15
+
16
+ - **`ask cache status --json` renames `cores` to `cached_cores`.** It always
17
+ counted cached core entries; `cores` is what a captured baseline calls the
18
+ machine's CPU count (C4-18).
19
+ - **`--output/-o` is now accepted after every command that publishes `--copy`**,
20
+ including eleven that refused it. On those the answer goes to the file and
21
+ stdout carries one `Written to <path>` line (C4-17).
22
+ - **`--detach` accepts every repository-wide and deep command**, not the six that
23
+ happened to be listed in a hand-kept table. `posture`, `modernize`, `repo-ir`
24
+ and `verify-edit` — four of the commands the field could not run in a session —
25
+ could not be detached before this release (C4-19).
26
+
27
+ ### Fixed
28
+
29
+ - **`ask --help` orders its front page by what will run on the repository being
30
+ read** (C4-19). *Start here* was, on the field repository, exactly the set of
31
+ commands that could not run there — four of five unrunnable in one evaluation,
32
+ three of five killing the session in the next. The help now measures the scope
33
+ (a capped tree walk plus two stat calls, paid only when help is what was asked
34
+ for) and groups the entries into **Runs now**, **Warm the cache first** and
35
+ **Too big for this session — `--output <file> --detach`**. What it deliberately
36
+ does not do is project a duration: `spring-audit` is 8.8 s on the 2 000-file
37
+ reference and was measured at 408 s on 3 342 files, so a scaled estimate would
38
+ be a confident falsehood; the class and the measured anchors are published
39
+ instead, and a command measured fast at field size (`endpoints`, 4.2 s) stays
40
+ on the fast list whatever its class. `--detach` accepts every repository-wide
41
+ and deep command now, not the six that happened to be in a hand-kept table:
42
+ `posture`, `modernize`, `repo-ir` and `verify-edit` were on the field's blocked
43
+ list and could not be detached.
44
+ - **A remedy is checked against the repository it is printed on** (C4-20).
45
+ `plan` pointed an unresolved symbol at `ask repo-ir`, and `onboard` named
46
+ `ask posture --profile <set>` as the authority — both correct, and neither
47
+ finished in an interactive session on the repository whose answer named them.
48
+ Every remedy block (`posture`, `data-exposure`, `verify`, the security-surface
49
+ limitation, the unresolved-target message) now carries `how_to_run_here` when
50
+ there is something to say: run it detached, or warm the cache first. Nothing is
51
+ added where the command runs in the foreground, and nothing is guessed where
52
+ the scope is unknown.
53
+ - **`--output/-o` works after every command that produces an answer** (C4-17).
54
+ It was a per-command decision, and the decisions disagreed: `endpoints`,
55
+ `validation` and `data-exposure` accepted it after the command, `baseline
56
+ capture` refused it — while its own siblings `baseline diff` and `baseline
57
+ trend` accepted it — and the refusal's hint blamed the placement rather than
58
+ the gap. The rule is now one line with its population taken from the CLI
59
+ registry: **a command that publishes `--copy` publishes `--output`**. Eleven
60
+ commands gained it (`version`, `baseline capture`, `cache status/warm/model/
61
+ freshness/context-stats`, `auth status`, `mcp status`, `mcp list-tools`,
62
+ `telemetry status`); on those the answer goes to the file and stdout carries
63
+ only `Written to <path>`. The hint for a genuinely global flag typed after a
64
+ subcommand was corrected with it: it said *"it goes before the command"*, which
65
+ is a placement that does nothing, since the root analysis is skipped as soon as
66
+ a subcommand is invoked.
67
+ - **`ask config` lists the repository's own declaration** (C4-21). `data-exposure`
68
+ answers `answered: false` until `sourcecode.config.json` declares which types
69
+ and fields are sensitive — the right refusal, since a label is a judgement
70
+ about a domain and is never inferred — but nothing afterwards said whether the
71
+ file had been picked up, so the last step of the cold start was a guess.
72
+ `ask config [path]` now resolves that file and reports its path, the labels
73
+ read from it, the custom security annotations, and any declaration that could
74
+ not be used; when it is absent, the path it looked at and the answer that
75
+ absence produces. The `data-exposure` refusal points at it (`declare.confirm`).
76
+ - **`cache status` no longer calls a cache count `Cores:`** (C4-18). The line
77
+ counted `core-*.json.gz` entries under the field name a captured baseline uses
78
+ for the machine's CPU count (`env: {cores: 20}` on the same machine, same
79
+ scope, minutes apart), and it sat beside `Views: 0 / CAS blobs: 0`, so
80
+ `Cores: 0` read as *the cache is empty* rather than *no core entries yet*. The
81
+ text line is `Cached cores: N entries` and the JSON key is `cached_cores`.
82
+ **Behaviour change for consumers of `ask cache status --json`: the `cores` key
83
+ is gone, replaced by `cached_cores`** — one fact, one name.
84
+
5
85
  ## [4.10.6] — 2026-08-07
6
86
 
7
87
  The M13 sanitation queue, tiers A through C plus the claims tier: **eighteen ledger
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sourcecode
3
- Version: 4.10.6
3
+ Version: 4.10.7
4
4
  Summary: Persistent structural context and ultra-fast repeated analysis for AI coding agents
5
5
  License-File: LICENSE
6
6
  Keywords: agents,ai,codebase,context,developer-tools,llm
@@ -42,7 +42,7 @@ Description-Content-Type: text/markdown
42
42
 
43
43
  **Context · Impact · Migration · Architecture · Review — everything from one structural model.**
44
44
 
45
- ![Version](https://img.shields.io/badge/version-4.10.6-blue)
45
+ ![Version](https://img.shields.io/badge/version-4.10.7-blue)
46
46
  ![Python](https://img.shields.io/badge/python-3.9%2B-green)
47
47
 
48
48
  > **ASK Engine** is the product. The CLI command is **`ask`**. The legacy **`sourcecode`**
@@ -106,7 +106,7 @@ brew tap haroundominique/sourcecode && brew install sourcecode
106
106
  # pip / pipx
107
107
  pipx install sourcecode # or: pip install sourcecode
108
108
 
109
- ask version # ask 4.10.6 — and, on a build that has aged,
109
+ ask version # ask 4.10.7 — and, on a build that has aged,
110
110
  # how many releases have probably shipped since
111
111
  ```
112
112
 
@@ -467,6 +467,9 @@ Full breakdown: [docs/PRODUCT_TIERS.md](docs/PRODUCT_TIERS.md).
467
467
 
468
468
  ```bash
469
469
  ask config # version, config file path, telemetry status
470
+ ask config /repo # + the repository's own sourcecode.config.json:
471
+ # data labels, custom security annotations,
472
+ # and any declaration that could not be used
470
473
  ask telemetry enable # anonymous telemetry is OFF by default (opt-in)
471
474
  ```
472
475
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  **Context · Impact · Migration · Architecture · Review — everything from one structural model.**
6
6
 
7
- ![Version](https://img.shields.io/badge/version-4.10.6-blue)
7
+ ![Version](https://img.shields.io/badge/version-4.10.7-blue)
8
8
  ![Python](https://img.shields.io/badge/python-3.9%2B-green)
9
9
 
10
10
  > **ASK Engine** is the product. The CLI command is **`ask`**. The legacy **`sourcecode`**
@@ -68,7 +68,7 @@ brew tap haroundominique/sourcecode && brew install sourcecode
68
68
  # pip / pipx
69
69
  pipx install sourcecode # or: pip install sourcecode
70
70
 
71
- ask version # ask 4.10.6 — and, on a build that has aged,
71
+ ask version # ask 4.10.7 — and, on a build that has aged,
72
72
  # how many releases have probably shipped since
73
73
  ```
74
74
 
@@ -429,6 +429,9 @@ Full breakdown: [docs/PRODUCT_TIERS.md](docs/PRODUCT_TIERS.md).
429
429
 
430
430
  ```bash
431
431
  ask config # version, config file path, telemetry status
432
+ ask config /repo # + the repository's own sourcecode.config.json:
433
+ # data labels, custom security annotations,
434
+ # and any declaration that could not be used
432
435
  ask telemetry enable # anonymous telemetry is OFF by default (opt-in)
433
436
  ```
434
437
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sourcecode"
7
- version = "4.10.6"
7
+ version = "4.10.7"
8
8
  description = "Persistent structural context and ultra-fast repeated analysis for AI coding agents"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -4,4 +4,4 @@ ASK Engine is the product. ``ask`` is the canonical CLI command; ``sourcecode``
4
4
  the legacy compatibility alias and the Python/PyPI package name. See
5
5
  docs/PRODUCT_IDENTITY.md (normative)."""
6
6
 
7
- __version__ = "4.10.6"
7
+ __version__ = "4.10.7"
@@ -336,10 +336,15 @@ def cache_dir(repo_root: Path) -> Path:
336
336
  def status(repo_root: Path) -> dict[str, Any]:
337
337
  """Return a stats dict describing the current cache state for *repo_root*.
338
338
 
339
- Keys: ``cache_dir``, ``cores``, ``views``, ``cas_blobs``,
339
+ Keys: ``cache_dir``, ``cached_cores``, ``views``, ``cas_blobs``,
340
340
  ``total_size_bytes``, ``total_size_mb``, ``ris_exists``, ``ris_git_head``,
341
341
  ``ris_last_updated_at``, ``ris_is_stale``, ``current_git_head``.
342
342
 
343
+ ``cached_cores`` counts ``core-*.json.gz`` entries in this cache. It was
344
+ named ``cores`` until 4.10.7, which is the field name a captured baseline
345
+ uses for the machine's CPU count (``env.cores``) — two different facts under
346
+ one name, on the same machine, minutes apart (C4-18).
347
+
343
348
  Note: ``snapshots`` is a legacy v1 field — always 0 in v2 (kept for
344
349
  backward compatibility; v2 writes ``core-*`` and ``view-*`` files only).
345
350
  """
@@ -377,7 +382,7 @@ def status(repo_root: Path) -> dict[str, Any]:
377
382
  if not cache_d.exists():
378
383
  return {
379
384
  "cache_dir": str(cache_d),
380
- "cores": 0, "snapshots": 0, "views": 0, "cas_blobs": 0,
385
+ "cached_cores": 0, "snapshots": 0, "views": 0, "cas_blobs": 0,
381
386
  "total_size_bytes": 0, "total_size_mb": 0.0,
382
387
  "current_git_head": current_head,
383
388
  "stores": _store_breakdown(repo_root, 0),
@@ -391,7 +396,7 @@ def status(repo_root: Path) -> dict[str, Any]:
391
396
  total_bytes = sum(f.stat().st_size for f in all_files if f.exists())
392
397
  return {
393
398
  "cache_dir": str(cache_d),
394
- "cores": len(cores),
399
+ "cached_cores": len(cores),
395
400
  "snapshots": len(snapshots),
396
401
  "views": len(views),
397
402
  "cas_blobs": len(cas_blobs),
@@ -27,6 +27,7 @@ warm buys `endpoints` and `migrate-check` **nothing**, and on a small diff it ma
27
27
  from __future__ import annotations
28
28
 
29
29
  from dataclasses import dataclass
30
+ from typing import Optional
30
31
 
31
32
 
32
33
  @dataclass(frozen=True)
@@ -54,6 +55,32 @@ class CommandCache:
54
55
  #: then the command — because measuring them in sequence lets one command warm the
55
56
  #: next and reports a benefit the user will not get.
56
57
  measured: str = ""
58
+ #: What the command has to touch to answer, in the vocabulary the budget
59
+ #: floors already use (C4-19). This is the axis that decides how a command can
60
+ #: be *run* — in the foreground, after a warm, or detached — as opposed to how
61
+ #: much a warm saves it, which is `warm` above:
62
+ #: ``core`` — a symbol, one file, a diff, or stored metadata
63
+ #: ``repo-wide`` — one pass over the repository
64
+ #: ``deep`` — a composition of several repo-wide passes
65
+ #: ``none`` — not an analysis of a repository at all
66
+ #: It lives here because this is where the measurements live; `cli`'s budget
67
+ #: floors and `detach.detachable_commands()` read it rather than keeping a
68
+ #: second table, which is how `posture`, `modernize` and `repo-ir` — three of
69
+ #: the commands the field could not run — ended up undetachable.
70
+ analysis_class: str = "repo-wide"
71
+ #: The same figures `measured` describes, in machine form: seconds on the
72
+ #: reference repository, cold and after `cache warm`. ``None`` where the row
73
+ #: was never timed — an axis that could not be measured is never a number.
74
+ cold_seconds: "Optional[float]" = None
75
+ warm_seconds: "Optional[float]" = None
76
+ #: The other measured point: this command on the field repository
77
+ #: (3 342 Java files, Windows 11 / PowerShell 5.1 / pipx, cold), from field
78
+ #: evaluations #13 and #14. Seconds where a run finished; `field_blocked`
79
+ #: where it did not — the harness promoted the process and the session died,
80
+ #: which is a measurement of a different kind and is never written as a
81
+ #: duration. Rows with neither were not attempted there.
82
+ field_seconds: "Optional[float]" = None
83
+ field_blocked: bool = False
57
84
 
58
85
 
59
86
  #: Where every `measured` figure comes from.
@@ -61,6 +88,25 @@ REFERENCE_REPOSITORY = (
61
88
  "BroadleafCommerce (2 000+ Java files, dirty tree), warm machine, 3.2.2"
62
89
  )
63
90
 
91
+ #: The size of that repository, so a reader on a different one knows what the
92
+ #: figures are relative to.
93
+ REFERENCE_JAVA_FILES = 2000
94
+
95
+ #: The other end of the measured range, and the reason this module publishes a
96
+ #: *class* rather than a projected duration (C4-19). Field evaluation #13, on
97
+ #: Windows 11 / PowerShell 5.1 / pipx / Python 3.10: `spring-audit` on a
98
+ #: 3 342-file repository ran **408 s** — 46× the 8.8 s the same command takes on
99
+ #: the 2 000-file reference. Cost does not scale with file count in any way this
100
+ #: product has measured, so a projected "~15 s on your repository" would be a
101
+ #: confident falsehood of exactly the kind the ledger exists to prevent. What can
102
+ #: be said honestly is the class, the two measured anchors, and how to run it.
103
+ FIELD_ANCHOR = (
104
+ "field evaluation #13: spring-audit on 3 342 Java files took 408 s "
105
+ "(Windows, pipx, cold) against 8.8 s on the 2 000-file reference"
106
+ )
107
+ FIELD_ANCHOR_JAVA_FILES = 3342
108
+ FIELD_ANCHOR_SECONDS = 408.0
109
+
64
110
 
65
111
  #: Every layer keys on `cache.worktree_signature` — the exact tree state (C1-9).
66
112
  #: One sentence covers all of them: **any change to the analysed files invalidates,
@@ -125,78 +171,78 @@ COMMANDS: tuple[CommandCache, ...] = (
125
171
  "`--env-map`, `--depth N` and `--exclude` change the *analysis*, so they miss the "
126
172
  "warmed core and rescan — this is the 171 s the field measured after a 103 s warm.",
127
173
  "--compact 13.3 s cold → 0.3 s warm (cold re-measured on 3.7.0: was 19.3 s, C3-6); "
128
- "--agent --full --env-map --depth 20 34.7 s → 33.9 s (no gain)"),
174
+ "--agent --full --env-map --depth 20 34.7 s → 33.9 s (no gain)", analysis_class="repo-wide", cold_seconds=13.3, warm_seconds=0.3, field_seconds=115.0),
129
175
  CommandCache("posture", ("cir", "parse"), "shared", False,
130
176
  "Resolves the conditional bean graph on every run, over the shared CIR a warm "
131
177
  "builds — the parse it used to repeat for itself. `--diff` compares two profile "
132
178
  "sets over that one IR, so the second side costs the resolution only.",
133
- "10.1 s → 1.6 s"),
179
+ "10.1 s → 1.6 s", analysis_class="repo-wide", cold_seconds=10.1, warm_seconds=1.6, field_blocked=True),
134
180
  CommandCache("risk", ("cir", "parse"), "shared", False,
135
181
  "Composes what the audit, impact-chain and the posture already answer, so it "
136
182
  "pays each of their costs once over the shared CIR a warm builds — one parse "
137
183
  "for the whole composition, and the reachability query is cached per symbol "
138
184
  "within the run.",
139
185
  "not measured on the battery yet — the composition is bounded by the "
140
- "`spring-audit` + `impact-chain` costs listed here, not by new analysis"),
186
+ "`spring-audit` + `impact-chain` costs listed here, not by new analysis", analysis_class="deep"),
141
187
  CommandCache("enrich", ("cir", "parse"), "shared", False,
142
188
  "Runs the same composition as `risk` over the repository, then joins a SARIF "
143
189
  "log to it. Reading the log is negligible; everything a warm helps with is the "
144
190
  "repository side, so what it buys is what it buys `risk`.",
145
191
  "not measured on the battery yet — bounded by the `risk` composition, plus "
146
- "reading one JSON file"),
192
+ "reading one JSON file", analysis_class="deep"),
147
193
  CommandCache("audit-report", ("cir", "parse"), "shared", False,
148
194
  "Packages `risk` and `posture` evidence. A warm helps the repository side; "
149
195
  "`--from-risk risk.json` skips risk recomputation entirely and only builds "
150
196
  "the posture/report projection.",
151
197
  "not measured on the battery yet — bounded by `risk` + `posture`, or by "
152
- "`posture` when `--from-risk` is supplied"),
198
+ "`posture` when `--from-risk` is supplied", analysis_class="deep"),
153
199
  CommandCache("migrate-recipe", ("parse",), "shared", False,
154
200
  "Runs the same scan as `migrate-check` and projects its findings into an "
155
201
  "OpenRewrite recipe, so it buys exactly what a warm buys `migrate-check`: "
156
202
  "the parse, not the rule pass.",
157
203
  "not measured on the battery yet — bounded by `migrate-check` on the same "
158
- "repository (openmrs-core ~2 s)"),
204
+ "repository (openmrs-core ~2 s)", analysis_class="repo-wide"),
159
205
  CommandCache("data-exposure", ("cir", "parse"), "shared", False,
160
206
  "Walks the same call reach as `impact-chain` once per declared type and "
161
207
  "reads the endpoint security surface, both over the shared CIR a warm "
162
208
  "builds. Cost scales with the number of declared types, not with the "
163
209
  "size of the label.",
164
210
  "not measured on the battery yet — one `impact-chain` traversal per "
165
- "declared seed type over a CIR the warm already paid for"),
211
+ "declared seed type over a CIR the warm already paid for", analysis_class="repo-wide"),
166
212
  CommandCache("endpoints", ("ris", "parse"), "shared", False,
167
213
  "Recomputes the endpoint surface on every run, over a parse a warm has already "
168
214
  "paid for. Until 3.7.0 the extractor parsed every file itself instead of reading "
169
215
  "the shared parse cache, and a warm measurably bought it nothing (C3-6).",
170
- "3.3 s → 1.4 s (re-measured on 3.7.0; was 2.8 s → 2.9 s)"),
216
+ "3.3 s → 1.4 s (re-measured on 3.7.0; was 2.8 s → 2.9 s)", analysis_class="repo-wide", cold_seconds=3.3, warm_seconds=1.4, field_seconds=4.2),
171
217
  CommandCache("spring-audit", ("ris", "parse"), "shared", False,
172
218
  "Recomputes every run, but over a parse a warm has already paid for.",
173
- "8.8 s → 3.7 s"),
219
+ "8.8 s → 3.7 s", analysis_class="repo-wide", cold_seconds=8.8, warm_seconds=3.7, field_seconds=408.0),
174
220
  CommandCache("migrate-check", ("cir",), "none", False,
175
221
  "Computes its own inventory and shares nothing a warm builds. Only `--blast-radius` "
176
222
  "reuses the shared CIR.",
177
- "4.8 s → 4.8 s"),
223
+ "4.8 s → 4.8 s", analysis_class="repo-wide", cold_seconds=4.8, warm_seconds=4.8, field_blocked=True),
178
224
  CommandCache("impact-chain", ("cir", "parse"), "shared", False,
179
225
  "The CIR is the expensive half — this is where a warm pays most.",
180
- "9.9 s → 1.7 s"),
181
- CommandCache("impact", ("parse",), "shared", False, "", "4.9 s → 2.8 s"),
226
+ "9.9 s → 1.7 s", analysis_class="core", cold_seconds=9.9, warm_seconds=1.7),
227
+ CommandCache("impact", ("parse",), "shared", False, "", "4.9 s → 2.8 s", analysis_class="core", cold_seconds=4.9, warm_seconds=2.8),
182
228
  CommandCache("pr-impact", ("parse",), "shared", False,
183
- "Diff-dependent: the answer itself is never stored."),
184
- CommandCache("verify", (), "none", False, "Runs the contracts against a fresh reading."),
229
+ "Diff-dependent: the answer itself is never stored.", analysis_class="core"),
230
+ CommandCache("verify", (), "none", False, "Runs the contracts against a fresh reading.", analysis_class="core"),
185
231
  CommandCache("verify-edit", ("parse",), "shared", True,
186
232
  "Built for the edit loop: the parse cache is what keeps an unchanged file out of the "
187
233
  "next run. Its own second run is faster again.",
188
- "14.6 s → 9.6 s → 5.6 s on repeat"),
234
+ "14.6 s → 9.6 s → 5.6 s on repeat", analysis_class="repo-wide", cold_seconds=14.6, warm_seconds=9.6, field_blocked=True),
189
235
  CommandCache("review-pr", ("cir",), "none", False,
190
236
  "Diff-dependent, and it reuses the CIR only if one exists. On a small diff, loading "
191
237
  "the warmed CIR costs more than the work it saves.",
192
- "1.1 s → 2.3 s (slower)"),
193
- CommandCache("plan", ("parse",), "shared", False, "", "9.3 s → 3.8 s"),
194
- CommandCache("compare", ("parse",), "shared", False, ""),
195
- CommandCache("delta", (), "none", False, "Analyses two states — two checkouts, or two refs materialised into temporary trees; neither is the tree the cache describes."),
196
- CommandCache("contract-diff", (), "none", False, "Analyses two states (checkouts or refs); neither is the tree the cache describes."),
238
+ "1.1 s → 2.3 s (slower)", analysis_class="core", cold_seconds=1.1, warm_seconds=2.3),
239
+ CommandCache("plan", ("parse",), "shared", False, "", "9.3 s → 3.8 s", analysis_class="core", cold_seconds=9.3, warm_seconds=3.8),
240
+ CommandCache("compare", ("parse",), "shared", False, "", analysis_class="core"),
241
+ CommandCache("delta", (), "none", False, "Analyses two states — two checkouts, or two refs materialised into temporary trees; neither is the tree the cache describes.", analysis_class="repo-wide"),
242
+ CommandCache("contract-diff", (), "none", False, "Analyses two states (checkouts or refs); neither is the tree the cache describes.", analysis_class="repo-wide"),
197
243
  CommandCache("fix-bug", ("task",), "none", True,
198
- "Shorthand for `prepare-context fix-bug`; caches its own answer, which a warm never runs."),
199
- CommandCache("rename-class", (), "none", False, ""),
244
+ "Shorthand for `prepare-context fix-bug`; caches its own answer, which a warm never runs.", analysis_class="core"),
245
+ CommandCache("rename-class", (), "none", False, "", analysis_class="core"),
200
246
  CommandCache("prepare-context", ("task", "ris", "cir", "parse"), "answer", True,
201
247
  "Per task: `onboard` and `explain` are served from the RIS a warm rebuilds; "
202
248
  "`refactor`, `fix-bug` and `generate-tests` cache their own answer, but a warm does "
@@ -204,7 +250,7 @@ COMMANDS: tuple[CommandCache, ...] = (
204
250
  "diff-dependent and never cached.",
205
251
  "onboard 6.5 s → 0.3 s with a warm — but a second run with NO warm recomputes "
206
252
  "(10.2 s → 9.4 s at 5 486 files; C1-40) · refactor 7.7 s → 7.7 s (0.3 s on "
207
- "repeat) · generate-tests 12.4 s → 11.0 s (0.3 s on repeat)"),
253
+ "repeat) · generate-tests 12.4 s → 11.0 s (0.3 s on repeat)", analysis_class="repo-wide", cold_seconds=6.5, warm_seconds=0.3),
208
254
  CommandCache("onboard", ("task", "ris"), "answer", False,
209
255
  "Shorthand for `prepare-context onboard`. A warm stores its answer; the command "
210
256
  "does NOT store its own, so a second run without a warm pays full price. C1-40: "
@@ -212,33 +258,33 @@ COMMANDS: tuple[CommandCache, ...] = (
212
258
  "56 s then 23,5 s — this row said it would be a hit.",
213
259
  "with a warm: 6.5 s → 0.3 s (2 000 files) · 10.2 s → 0.7 s (5 486 files). "
214
260
  "WITHOUT a warm, a second identical run: 10.2 s → 9.4 s (5 486 files) — "
215
- "no answer hit"),
261
+ "no answer hit", analysis_class="repo-wide", cold_seconds=6.5, warm_seconds=0.3),
216
262
  CommandCache("explain", ("cir",), "shared", False, "Serves from the shared CIR a warm builds.",
217
- "9.8 s → 1.6 s"),
218
- CommandCache("export", ("parse",), "shared", False, "", "8.8 s → 3.7 s"),
219
- CommandCache("repo-ir", ("parse",), "shared", False, "", "5.1 s → 2.9 s"),
220
- CommandCache("validation", ("parse",), "shared", False, "", "11.6 s → 6.4 s"),
221
- CommandCache("modernize", ("parse",), "shared", False, "", "5.2 s → 3.0 s"),
222
- CommandCache("chunk-file", (), "none", False, "Reads one file; nothing to cache."),
263
+ "9.8 s → 1.6 s", analysis_class="core", cold_seconds=9.8, warm_seconds=1.6),
264
+ CommandCache("export", ("parse",), "shared", False, "", "8.8 s → 3.7 s", analysis_class="repo-wide", cold_seconds=8.8, warm_seconds=3.7),
265
+ CommandCache("repo-ir", ("parse",), "shared", False, "", "5.1 s → 2.9 s", analysis_class="repo-wide", cold_seconds=5.1, warm_seconds=2.9, field_blocked=True),
266
+ CommandCache("validation", ("parse",), "shared", False, "", "11.6 s → 6.4 s", analysis_class="repo-wide", cold_seconds=11.6, warm_seconds=6.4),
267
+ CommandCache("modernize", ("parse",), "shared", False, "", "5.2 s → 3.0 s", analysis_class="repo-wide", cold_seconds=5.2, warm_seconds=3.0, field_blocked=True),
268
+ CommandCache("chunk-file", (), "none", False, "Reads one file; nothing to cache.", analysis_class="core"),
223
269
  CommandCache("cold-start", ("ris",), "answer", True,
224
270
  "Reads the RIS a warm rebuilds — that is all it does. Without one it answers "
225
271
  "`no_ris` instead of a snapshot.",
226
- "0.2 s either way"),
227
- CommandCache("trend", (), "none", False, "Reads stored baseline artifacts from disk; analyses no source, so no cache layer applies. Same command as `baseline trend`."),
272
+ "0.2 s either way", analysis_class="core", cold_seconds=0.2, warm_seconds=0.2),
273
+ CommandCache("trend", (), "none", False, "Reads stored baseline artifacts from disk; analyses no source, so no cache layer applies. Same command as `baseline trend`.", analysis_class="none"),
228
274
  CommandCache("baseline", ("parse",), "shared", False, "`capture`/`diff`/`trend` over architectural metrics.",
229
- "capture 8.7 s → 3.6 s"),
275
+ "capture 8.7 s → 3.6 s", analysis_class="repo-wide", cold_seconds=8.7, warm_seconds=3.6, field_seconds=11.0),
230
276
  CommandCache("retrieve", ("cir", "parse"), "shared", False,
231
- "Every query builds or reuses the shared CIR a warm builds."),
232
- CommandCache("archetype", ("parse",), "shared", False, "", "9.3 s → 5.6 s"),
233
- CommandCache("activate", (), "none", False, "Not an analysis."),
234
- CommandCache("auth", (), "none", False, "Not an analysis."),
235
- CommandCache("cache", (), "none", False, "Operates on the caches themselves."),
236
- CommandCache("config", (), "none", False, "Not an analysis."),
277
+ "Every query builds or reuses the shared CIR a warm builds.", analysis_class="core"),
278
+ CommandCache("archetype", ("parse",), "shared", False, "", "9.3 s → 5.6 s", analysis_class="repo-wide", cold_seconds=9.3, warm_seconds=5.6),
279
+ CommandCache("activate", (), "none", False, "Not an analysis.", analysis_class="none"),
280
+ CommandCache("auth", (), "none", False, "Not an analysis.", analysis_class="none"),
281
+ CommandCache("cache", (), "none", False, "Operates on the caches themselves.", analysis_class="none"),
282
+ CommandCache("config", (), "none", False, "Not an analysis.", analysis_class="none"),
237
283
  CommandCache("mcp", ("snapshot", "ris", "cir", "parse"), "shared", True,
238
- "Serves the same commands over MCP, with the same layers."),
239
- CommandCache("schema", (), "none", False, "Prints registries; reads no repository."),
240
- CommandCache("telemetry", (), "none", False, "Not an analysis."),
241
- CommandCache("version", (), "none", False, "Not an analysis."),
284
+ "Serves the same commands over MCP, with the same layers.", analysis_class="none"),
285
+ CommandCache("schema", (), "none", False, "Prints registries; reads no repository.", analysis_class="none"),
286
+ CommandCache("telemetry", (), "none", False, "Not an analysis.", analysis_class="none"),
287
+ CommandCache("version", (), "none", False, "Not an analysis.", analysis_class="none"),
242
288
  )
243
289
 
244
290
  _WARM_LABEL = {
@@ -274,6 +320,11 @@ def as_dict() -> dict:
274
320
  for lyr in LAYERS
275
321
  ],
276
322
  "reference_repository": REFERENCE_REPOSITORY,
323
+ "reference_java_files": REFERENCE_JAVA_FILES,
324
+ # Published beside the reference so no consumer reads the figures as a
325
+ # law: the same command has been measured 46× slower on a repository 1.7×
326
+ # the size, on a different platform (C4-19).
327
+ "field_anchor": FIELD_ANCHOR,
277
328
  "commands": [
278
329
  {
279
330
  "command": cmd.command,
@@ -282,6 +333,12 @@ def as_dict() -> dict:
282
333
  "repeat_run_is_cached": cmd.repeat,
283
334
  "note": cmd.note,
284
335
  "measured": cmd.measured or None,
336
+ "analysis_class": cmd.analysis_class,
337
+ "reference_seconds": (
338
+ None
339
+ if cmd.cold_seconds is None
340
+ else {"cold": cmd.cold_seconds, "warm": cmd.warm_seconds}
341
+ ),
285
342
  }
286
343
  for cmd in COMMANDS
287
344
  ],
@@ -636,6 +636,7 @@ def project_blast_radius(
636
636
  target: str,
637
637
  *,
638
638
  max_depth: int = 4,
639
+ root=None,
639
640
  ) -> dict:
640
641
  """Project blast radius from CIR.
641
642
 
@@ -645,7 +646,7 @@ def project_blast_radius(
645
646
  All endpoints in the result come from cir.endpoints (via route_surface).
646
647
  No independent endpoint reconstruction.
647
648
  """
648
- return _compute_blast_radius(cir._raw_ir, target, max_depth=max_depth)
649
+ return _compute_blast_radius(cir._raw_ir, target, max_depth=max_depth, root=root)
649
650
 
650
651
 
651
652
  # ---------------------------------------------------------------------------
@@ -81,10 +81,15 @@ def _node_meta(cir: "CanonicalRepositoryIR") -> dict[str, dict]:
81
81
 
82
82
 
83
83
  def build_change_plan(
84
- cir: "CanonicalRepositoryIR", target: str, *, max_depth: int = 4
84
+ cir: "CanonicalRepositoryIR", target: str, *, max_depth: int = 4, root=None
85
85
  ) -> dict:
86
- """Build the deterministic change plan for `target` over `cir`."""
87
- blast = project_blast_radius(cir, target, max_depth=max_depth)
86
+ """Build the deterministic change plan for `target` over `cir`.
87
+
88
+ `root` is optional and is used for one thing: the advice attached to an
89
+ unresolved target names a command, and whether that command can be run on
90
+ this repository is a property of the repository (C4-20).
91
+ """
92
+ blast = project_blast_radius(cir, target, max_depth=max_depth, root=root)
88
93
  resolution = blast.get("resolution", "not_found")
89
94
 
90
95
  # Unresolvable target → return a plan-shaped resolution notice (never crash).