sourcecode 1.31.26__tar.gz → 1.31.28__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.
- sourcecode-1.31.28/.continue-here.md +98 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/PKG-INFO +3 -3
- {sourcecode-1.31.26 → sourcecode-1.31.28}/README.md +2 -2
- {sourcecode-1.31.26 → sourcecode-1.31.28}/pyproject.toml +1 -1
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/__init__.py +1 -1
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/canonical_ir.py +2 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/cli.py +13 -6
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/server.py +36 -3
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/prepare_context.py +99 -17
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/repository_ir.py +71 -2
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_v1_10_regressions.py +5 -4
- sourcecode-1.31.26/.continue-here.md +0 -70
- {sourcecode-1.31.26 → sourcecode-1.31.28}/.agents/skills/source-command-gsd-join-discord/SKILL.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/.agents/skills/source-command-gsd-review-backlog/SKILL.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/.agents/skills/source-command-gsd-workstreams/SKILL.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/.github/workflows/build-windows.yml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/.gitignore +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/.ruff.toml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/.sourcecode-cache/snapshot-3b5997a-fa5c742c.json +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/AUDIT_REAL_REPOS.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/AUDIT_v1.31.23.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/CHANGELOG.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/CONTRIBUTING.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/LICENSE +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/SECURITY.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/docs/PRODUCT_TIERS.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/docs/privacy.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/docs/schema.md +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/raw +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/run_cli.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/adaptive_scanner.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/architecture_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/architecture_summary.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/ast_extractor.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/cache.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/classifier.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/code_notes_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/confidence_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/context_scorer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/context_summarizer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/contract_model.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/contract_pipeline.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/coverage_parser.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/dependency_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/__init__.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/base.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/csproj_parser.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/dart.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/dotnet.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/elixir.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/go.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/heuristic.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/hybrid.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/java.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/jvm_ext.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/nodejs.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/parsers.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/php.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/project.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/python.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/ruby.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/rust.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/systems.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/terraform.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/detectors/tooling.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/doc_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/entrypoint_classifier.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/env_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/file_classifier.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/flow_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/git_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/graph_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/__init__.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/onboarding/__init__.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/onboarding/applier.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/onboarding/backup.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/onboarding/detector.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/onboarding/planner.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/mcp/runner.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/metrics_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/output_budget.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/path_filters.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/pr_comment_renderer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/progress.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/ranking_engine.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/redactor.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/relevance_scorer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/repo_classifier.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/runtime_classifier.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/scanner.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/schema.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/semantic_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/serializer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/summarizer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/telemetry/__init__.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/telemetry/config.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/telemetry/consent.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/telemetry/events.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/telemetry/filters.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/telemetry/transport.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/tree_utils.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/src/sourcecode/workspace.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/__init__.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/conftest.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/coverage.xml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/fastapi_app/pyproject.toml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/fastapi_app/src/main.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/go_service/cmd/api/main.go +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/go_service/go.mod +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/jacoco.xml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/latin1_sample.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/latin1_sample_iso.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/lcov.info +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/nextjs_app/app/page.tsx +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/nextjs_app/package.json +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/nextjs_app/pnpm-lock.yaml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/pnpm_monorepo/apps/web/app/page.tsx +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/pnpm_monorepo/apps/web/package.json +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/pnpm_monorepo/packages/api/main.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/pnpm_monorepo/packages/api/pyproject.toml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/pnpm_monorepo/pnpm-workspace.yaml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/pom.xml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/ausente/application/service/FindAusenteService.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/ausente/domain/entities/Ausente.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/ausente/infrastructure/rest/AusenteRestController.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/autocoberturas/application/service/FindAutocoberturasService.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/autocoberturas/domain/entities/Autocoberturas.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/autocoberturas/infrastructure/rest/AutocoberturasRestController.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/calendarioTrabajador/application/service/FindCalendarioTrabajadorService.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/calendarioTrabajador/domain/entities/CalendarioTrabajador.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/calendarioTrabajador/infrastructure/rest/CalendarioTrabajadorRestController.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/departamento/application/service/FindDepartamentoService.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/departamento/domain/entities/Departamento.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/departamento/infrastructure/rest/DepartamentoRestController.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/empleado/application/service/FindEmpleadoService.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/empleado/domain/entities/Empleado.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/ddd/empleado/infrastructure/rest/EmpleadoRestController.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/DemoApplication.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/config/FilterConfig.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/domain/Health.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/mapper/HealthMapper.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/repository/HealthRepository.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/service/HealthService.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/web/HealthRestController.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/java/com/example/demo/web/NominaRestController.java +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/resources/application-dev.yml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/resources/application.yml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/fixtures/spring_boot_minimal/src/main/resources/mapper/HealthMapper.xml +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_architecture_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_architecture_summary.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_ast_extractor.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_audit_fixes.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_audit_sas_v2.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_block1_reliability.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_block2_coverage.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_block5_quality.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_broadleaf_fixes.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v1302.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v13115.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v1312.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v13122.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v1313.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v1321.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v16.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_bug_fixes_v2.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_cache.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_canonical_ir.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_classifier.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_cli.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_code_notes_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_context_scorer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_contract_pipeline.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_coverage_parser.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_cross_consistency.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_dependency_analyzer_node_python.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_dependency_analyzer_polyglot.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_dependency_schema.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detector_dotnet.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detector_go_rust_java.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detector_nodejs.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detector_php_ruby_dart.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detector_python.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detector_universal_managed.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detector_universal_systems.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_detectors_base.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_doc_analyzer_jsdom.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_doc_analyzer_python.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_encoding_regression.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_enterprise_benchmarks.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_graph_analyzer_polyglot.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_graph_analyzer_python_node.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_graph_schema.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_hybrid_inference.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_dependencies.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_detection.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_docs.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_graph_modules.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_lqn.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_metrics.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_multistack.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_semantics.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_integration_universal.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_java_spring_integration.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_mcp_runner.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_mcp_serve.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_mcp_tools.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_metrics_analyzer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_output_ux.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_packaging.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_phase1_improvements.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_pipeline_integrity.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_real_projects.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_redactor.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_repository_ir.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_scanner.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_schema.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_schema_normalization.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_scoring_calibration.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_semantic_analyzer_node.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_semantic_analyzer_python.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_semantic_import_resolution.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_semantic_schema.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_signal_hierarchy.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_summarizer.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_surface_honesty.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_task_differentiation.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_telemetry.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_v131_improvements.py +0 -0
- {sourcecode-1.31.26 → sourcecode-1.31.28}/tests/test_workspace_analyzer.py +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Handoff — Sesión 33 (2026-05-26)
|
|
2
|
+
|
|
3
|
+
## Position
|
|
4
|
+
|
|
5
|
+
**Project:** sourcecode (atlas-cli)
|
|
6
|
+
**Activity:** Post-audit bug fixing — four correctness fixes (P0/P1/P2)
|
|
7
|
+
**Branch:** master
|
|
8
|
+
**Last commit:** f3d44c3 — fix(prepare-context,cli,mcp): four correctness fixes — fast fallback, flag errors, review-pr CI, modernize MCP
|
|
9
|
+
**Tests:** 1590 passed, 3 skipped ✅
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Work Done This Session
|
|
14
|
+
|
|
15
|
+
### Session 33 (this session)
|
|
16
|
+
**Four bugs fixed from new audit batch + backlog:**
|
|
17
|
+
|
|
18
|
+
**FIX 1 — P0: `--fast` returns `relevant_files: []`** (`prepare_context.py`)
|
|
19
|
+
- When `fast=True` on large repo, `_rank_files` received only noise/IDE files → returned `[]`
|
|
20
|
+
- Added fast-mode fallback block after `_rank_files`: injects entry points + git log -10 files +
|
|
21
|
+
symptom path matches (up to 20) when `relevant_files` is empty and `fast=True`
|
|
22
|
+
- Validated: `sourcecode prepare-context fix-bug . --fast --symptom "spinner"` → 3 results
|
|
23
|
+
|
|
24
|
+
**FIX 2 — P1: Incompatible flags → stderr plain text** (`cli.py`)
|
|
25
|
+
- `--compact --full` wrote plain text to stderr; agents couldn't parse it
|
|
26
|
+
- Replaced `typer.echo(err=True)` with `sys.stdout.write(json.dumps({...}))` for `incompatible_flags`
|
|
27
|
+
- Validated: `sourcecode . --compact --full 2>/dev/null | jq .error` → `"incompatible_flags"`
|
|
28
|
+
|
|
29
|
+
**FIX 3 — P1: `review-pr` without `--since` exits 0 silently in CI** (`prepare_context.py`)
|
|
30
|
+
- Clean tree (CI) → previously fell back to HEAD~1 diff silently, masking missing --since
|
|
31
|
+
- Removed HEAD~1 fallback: clean tree + no `--since` → `_get_pr_scope_files` returns
|
|
32
|
+
`([], "no_staged_changes", [], [])` sentinel
|
|
33
|
+
- Step 5d detects sentinel → `no_diff_source` error (exit 1)
|
|
34
|
+
- Staged/unstaged changes still proceed normally (local dev use case)
|
|
35
|
+
- Validated: clean repo → `error: no_diff_source`, `exit_code=1`
|
|
36
|
+
- Test `test_review_pr_requires_git_diff` updated: added `no_diff_source` to expected error set
|
|
37
|
+
|
|
38
|
+
**FIX 4 — P2: `modernize` missing from MCP server** (`mcp/server.py`)
|
|
39
|
+
- Added `modernize_context` as MCP tool #17 (was #16 before)
|
|
40
|
+
- Mirrors CLI `sourcecode modernize <repo_path>` exactly
|
|
41
|
+
- Returns: hotspot_candidates, dead_zones, high_coupling_nodes, subsystem_summary, recommendation
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Remaining from AUDIT_v1.31.23.md
|
|
46
|
+
|
|
47
|
+
### P1 backlog (from HANDOFF.json session 28)
|
|
48
|
+
| # | Issue | File | Effort |
|
|
49
|
+
|---|---|---|---|
|
|
50
|
+
| P1-5 | `project_summary` quality — picks license/badges/marketing blurbs | `summarizer.py` | Medium |
|
|
51
|
+
| P1-6 | `relevant_files.score` ranking quality audit (score exposed, ranking weak) | `ranking_engine.py` | Medium |
|
|
52
|
+
|
|
53
|
+
### P2 unfixed
|
|
54
|
+
| # | Issue | File | Effort |
|
|
55
|
+
|---|---|---|---|
|
|
56
|
+
| P2-13 | `--no-cache` flag inconsistent across subcommands | `cli.py` | Medium |
|
|
57
|
+
| P2-14 | URLs in code_notes truncated (needs repro) | `code_notes_analyzer.py` | Low |
|
|
58
|
+
| P2-16 | `entry_points.controllers.methods` mismatches `endpoints` count | `cli.py` | Medium |
|
|
59
|
+
| P2-17 | `--compact --help` token claim stale (now runs arch analyzer too) | `cli.py` | Trivial |
|
|
60
|
+
| P2-18 | `impact <file_path>` fails FQN resolution | `repository_ir.py` | Low |
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Key Files Modified (this session)
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
src/sourcecode/prepare_context.py — FIX 1: fast-mode fallback; FIX 3: no_diff_source sentinel
|
|
68
|
+
src/sourcecode/cli.py — FIX 2: incompatible_flags to stdout JSON
|
|
69
|
+
src/sourcecode/mcp/server.py — FIX 4: modernize_context tool
|
|
70
|
+
tests/test_v1_10_regressions.py — test: no_diff_source added to expected error set
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Decisions This Session
|
|
76
|
+
|
|
77
|
+
| Decision | Rationale |
|
|
78
|
+
|---|---|
|
|
79
|
+
| Fast-mode fallback injects after `_rank_files`, not before | Keeps ranking path clean; fallback only fires when needed |
|
|
80
|
+
| `no_diff_source` check via sentinel in `_get_pr_scope_files` | Allows test mocks to bypass (mock overrides entire method); inline check before mock fires broke tests |
|
|
81
|
+
| HEAD~1 fallback removed entirely for `since=None` clean tree | CI pipelines always commit first; HEAD~1 fallback was silently hiding missing `--since` |
|
|
82
|
+
| `modernize_context` MCP `format` param is cosmetic (only json) | CLI `modernize` has no `--format` flag; param included per spec schema, yaml rejected with INVALID_ARGUMENT |
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Next Session
|
|
87
|
+
|
|
88
|
+
**Recommended:** P2-17 (trivial) → P2-18 (low) → P2-14 (low, needs repro) → P1-5 (medium) → P1-6 (medium) → P2-13 (medium) → P2-16 (medium)
|
|
89
|
+
|
|
90
|
+
**P2-17:** `--compact --help` says token count — now that `--compact` also runs ArchitectureAnalyzer (P2-10 fix from session 32), verify claim still accurate. Update if stale.
|
|
91
|
+
|
|
92
|
+
**P2-18:** `sourcecode impact <file_path>` — resolve file path to FQN before IR lookup. Currently passes raw path to `_resolve_target()`, fails to match.
|
|
93
|
+
|
|
94
|
+
**P1-5:** Audit `summarizer.py`. Prefer: first real descriptive paragraph, architecture, domain/stack description. Exclude: 'Important:', license, badges, install snippets, TOC, link collections, sponsorship, release notes.
|
|
95
|
+
|
|
96
|
+
**Resume command:** `/gsd:resume-work`
|
|
97
|
+
|
|
98
|
+
**Test baseline:** `python3 -m pytest tests/ → 1590 passed, 3 skipped`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sourcecode
|
|
3
|
-
Version: 1.31.
|
|
3
|
+
Version: 1.31.28
|
|
4
4
|
Summary: Deterministic codebase context for AI coding agents
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
@@ -225,7 +225,7 @@ Description-Content-Type: text/markdown
|
|
|
225
225
|
|
|
226
226
|
**AI-ready change intelligence for Java/Spring enterprise monoliths.**
|
|
227
227
|
|
|
228
|
-

|
|
229
229
|

|
|
230
230
|
|
|
231
231
|
---
|
|
@@ -263,7 +263,7 @@ pipx install sourcecode
|
|
|
263
263
|
|
|
264
264
|
```bash
|
|
265
265
|
sourcecode version
|
|
266
|
-
# sourcecode 1.31.
|
|
266
|
+
# sourcecode 1.31.28
|
|
267
267
|
```
|
|
268
268
|
|
|
269
269
|
---
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**AI-ready change intelligence for Java/Spring enterprise monoliths.**
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|
|
|
8
8
|
---
|
|
@@ -40,7 +40,7 @@ pipx install sourcecode
|
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
sourcecode version
|
|
43
|
-
# sourcecode 1.31.
|
|
43
|
+
# sourcecode 1.31.28
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
---
|
|
@@ -332,6 +332,7 @@ def ir_dict_to_canonical(
|
|
|
332
332
|
"spring_events": ir.get("spring_events") or {},
|
|
333
333
|
"score_basis": (ir.get("impact") or {}).get("score_basis", "none"),
|
|
334
334
|
"reverse_graph_size": len(ir.get("reverse_graph") or {}),
|
|
335
|
+
"security_model": ir.get("security_model", "unknown"),
|
|
335
336
|
}
|
|
336
337
|
|
|
337
338
|
cir_hash = _compute_cir_hash(
|
|
@@ -452,6 +453,7 @@ def project_endpoint_surface(cir: CanonicalRepositoryIR) -> dict:
|
|
|
452
453
|
"endpoints": endpoints,
|
|
453
454
|
"total": len(endpoints),
|
|
454
455
|
"no_security_signal": no_security_signal,
|
|
456
|
+
"security_model": cir.metadata.get("security_model", "unknown"),
|
|
455
457
|
# Legacy field alias — same count, kept for backward compat
|
|
456
458
|
"undocumented": no_security_signal,
|
|
457
459
|
}
|
|
@@ -739,12 +739,15 @@ def main(
|
|
|
739
739
|
# compact is designed to be a bounded summary; --full removes truncation limits,
|
|
740
740
|
# which contradicts compact's purpose. Use --agent --full for expanded output.
|
|
741
741
|
if compact and full:
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
|
|
747
|
-
|
|
742
|
+
import json as _json_flags, sys as _sys_flags
|
|
743
|
+
_sys_flags.stdout.write(_json_flags.dumps({
|
|
744
|
+
"error": "incompatible_flags",
|
|
745
|
+
"message": "--compact and --full are mutually exclusive. "
|
|
746
|
+
"--compact produces a bounded summary; --full removes truncation limits "
|
|
747
|
+
"and is meant for --agent mode. Use --agent --full for expanded output.",
|
|
748
|
+
"exit_code": 1,
|
|
749
|
+
}, ensure_ascii=False) + "\n")
|
|
750
|
+
_sys_flags.stdout.flush()
|
|
748
751
|
raise typer.Exit(code=1)
|
|
749
752
|
|
|
750
753
|
# P0-2 FIX: --full without --compact or --agent has no effect in contract/raw mode.
|
|
@@ -1127,10 +1130,14 @@ def main(
|
|
|
1127
1130
|
|
|
1128
1131
|
# --compact implicitly enables lightweight analysis passes so that
|
|
1129
1132
|
# dependency_summary, env_summary and code_notes_summary are never null.
|
|
1133
|
+
# architecture=True is also enabled so that architecture.confidence is
|
|
1134
|
+
# consistent with --agent (which auto-enables architecture). The
|
|
1135
|
+
# ArchitectureAnalyzer is path-based and adds negligible latency.
|
|
1130
1136
|
if compact:
|
|
1131
1137
|
dependencies = True
|
|
1132
1138
|
env_map = True
|
|
1133
1139
|
code_notes = True
|
|
1140
|
+
architecture = True
|
|
1134
1141
|
|
|
1135
1142
|
dependency_analyzer = DependencyAnalyzer() if dependencies else None
|
|
1136
1143
|
graph_analyzer = GraphAnalyzer() if graph_modules else None
|
|
@@ -158,9 +158,12 @@ def get_endpoints(repo_path: str = ".") -> dict:
|
|
|
158
158
|
Returns: endpoints list with method, path, controller, handler fields;
|
|
159
159
|
security dict when authorization annotations are present
|
|
160
160
|
(policy: roles_allowed|permit_all|deny_all|authenticated|...);
|
|
161
|
-
total (int)
|
|
162
|
-
no_security_signal counts endpoints with no recognized auth annotation
|
|
163
|
-
|
|
161
|
+
total (int), no_security_signal (int), and security_model (str) fields.
|
|
162
|
+
no_security_signal counts endpoints with no recognized auth annotation.
|
|
163
|
+
security_model values: "filter_based" (centralized Spring Security config —
|
|
164
|
+
high no_security_signal is expected and does NOT mean endpoints are unprotected),
|
|
165
|
+
"annotation_based" (per-endpoint annotations only), "mixed" (both),
|
|
166
|
+
"unknown" (no security signals detected).
|
|
164
167
|
Supports Spring MVC (@GetMapping etc.) and JAX-RS (@GET/@POST etc.).
|
|
165
168
|
Security annotations detected: @RolesAllowed, @PermitAll, @DenyAll,
|
|
166
169
|
@Authenticated, @PreAuthorize, @Secured, @SecurityRequirement, @M3FiltroSeguridad.
|
|
@@ -450,6 +453,36 @@ def get_impact_context(repo_path: str = ".", target: str = "", depth: int = 4) -
|
|
|
450
453
|
)
|
|
451
454
|
|
|
452
455
|
|
|
456
|
+
@mcp.tool()
|
|
457
|
+
def modernize_context(repo_path: str = ".", format: str = "json") -> dict:
|
|
458
|
+
"""Analyzes codebase for modernization opportunities: dead zones, hotspot scores, upgrade candidates.
|
|
459
|
+
|
|
460
|
+
Maps to: sourcecode modernize <repo_path>
|
|
461
|
+
Returns: hotspot_candidates (high fan-in + git churn), dead_zone_candidates (isolated classes),
|
|
462
|
+
high_coupling_nodes, subsystem_summary, cross_module_tangles, recommendation.
|
|
463
|
+
|
|
464
|
+
Best for: refactor planning, identifying where to start, finding safe removal candidates.
|
|
465
|
+
Use get_compact_context or get_agent_context first for project orientation.
|
|
466
|
+
|
|
467
|
+
repo_path: absolute path to the Java repository (default: current working directory).
|
|
468
|
+
format: output format — "json" (default). Only json is supported; yaml is not available
|
|
469
|
+
for modernize output.
|
|
470
|
+
"""
|
|
471
|
+
_raw = repo_path
|
|
472
|
+
try:
|
|
473
|
+
if not isinstance(repo_path, str):
|
|
474
|
+
return _err("repo_path must be a string", "INVALID_ARGUMENT")
|
|
475
|
+
if not isinstance(format, str) or format not in ("json", "yaml"):
|
|
476
|
+
return _err("format must be 'json' or 'yaml'", "INVALID_ARGUMENT")
|
|
477
|
+
repo_path = _normalize_repo_path(repo_path)
|
|
478
|
+
return _execute(["modernize", repo_path])
|
|
479
|
+
except Exception as exc:
|
|
480
|
+
return _err(
|
|
481
|
+
f"Internal error: {type(exc).__name__}: {exc} — repo_path recibido: {_raw}",
|
|
482
|
+
"INTERNAL_ERROR",
|
|
483
|
+
)
|
|
484
|
+
|
|
485
|
+
|
|
453
486
|
_TELEMETRY_ACTIONS = frozenset({"status", "enable", "disable"})
|
|
454
487
|
|
|
455
488
|
|
|
@@ -1134,6 +1134,27 @@ class TaskContextBuilder:
|
|
|
1134
1134
|
# No-git and invalid-ref cases were already handled in step 0 (early returns).
|
|
1135
1135
|
if task_name == "review-pr":
|
|
1136
1136
|
if not _pr_scope_files:
|
|
1137
|
+
# Distinguish: no_staged_changes (CI, no --since) vs no_diff (empty range)
|
|
1138
|
+
if _pr_scope_source == "no_staged_changes":
|
|
1139
|
+
_no_diff_msg = (
|
|
1140
|
+
"No --since ref provided and no staged changes found. "
|
|
1141
|
+
"Use --since <ref>"
|
|
1142
|
+
)
|
|
1143
|
+
return TaskOutput(
|
|
1144
|
+
task="review-pr", goal=spec.goal,
|
|
1145
|
+
project_summary=None, architecture_summary=None,
|
|
1146
|
+
relevant_files=[], suspected_areas=[],
|
|
1147
|
+
improvement_opportunities=[], test_gaps=[],
|
|
1148
|
+
key_dependencies=[], code_notes_summary=None,
|
|
1149
|
+
limitations=[], confidence="low",
|
|
1150
|
+
error_code="no_diff_source",
|
|
1151
|
+
error_message=_no_diff_msg,
|
|
1152
|
+
gaps=[_no_diff_msg],
|
|
1153
|
+
ci_decision="no_diff_source",
|
|
1154
|
+
scope_source=_pr_scope_source,
|
|
1155
|
+
scope_files=[],
|
|
1156
|
+
repo_root=str(_pr_git_root),
|
|
1157
|
+
)
|
|
1137
1158
|
_no_diff_hint = "review-pr requires changed files or --since <ref>."
|
|
1138
1159
|
return TaskOutput(
|
|
1139
1160
|
task="review-pr", goal=spec.goal,
|
|
@@ -1221,6 +1242,76 @@ class TaskContextBuilder:
|
|
|
1221
1242
|
symptom=symptom if task_name == "fix-bug" else None,
|
|
1222
1243
|
)
|
|
1223
1244
|
|
|
1245
|
+
# ── Fast-mode fallback: never return empty relevant_files when source files exist ──
|
|
1246
|
+
# When --fast is active on a large repo, all_paths may be restricted to a handful of
|
|
1247
|
+
# changed/noise files that all get filtered out by _rank_files. Inject fallback signals:
|
|
1248
|
+
# 1. detected entry points (already computed, zero I/O cost)
|
|
1249
|
+
# 2. recently committed files (git log -10 --name-only)
|
|
1250
|
+
# 3. files matching symptom keywords in path (when fix-bug + --symptom)
|
|
1251
|
+
if fast and not relevant_files and task_name not in ("delta", "review-pr"):
|
|
1252
|
+
import subprocess as _sp_fb
|
|
1253
|
+
_fb_seen: set[str] = set()
|
|
1254
|
+
_fb_candidates: list[RelevantFile] = []
|
|
1255
|
+
|
|
1256
|
+
# 1. Entry points from detection
|
|
1257
|
+
for _ep in entry_points:
|
|
1258
|
+
_ep_path = _ep.path.replace("\\", "/")
|
|
1259
|
+
if _ep_path not in _fb_seen and (self.root / _ep_path).exists():
|
|
1260
|
+
_fb_candidates.append(RelevantFile(
|
|
1261
|
+
path=_ep_path,
|
|
1262
|
+
role="entrypoint",
|
|
1263
|
+
score=0.5,
|
|
1264
|
+
reason="fast-mode fallback: detected entry point",
|
|
1265
|
+
why="entry_point signal from manifest/annotation detection",
|
|
1266
|
+
))
|
|
1267
|
+
_fb_seen.add(_ep_path)
|
|
1268
|
+
|
|
1269
|
+
# 2. Recently committed files (git log -10 --name-only)
|
|
1270
|
+
try:
|
|
1271
|
+
_gl_r = _sp_fb.run(
|
|
1272
|
+
["git", "log", "--name-only", "--pretty=format:", "-10"],
|
|
1273
|
+
capture_output=True, text=True, cwd=str(self.root), timeout=5,
|
|
1274
|
+
)
|
|
1275
|
+
for _gl_f in _gl_r.stdout.splitlines():
|
|
1276
|
+
_gl_f = _gl_f.strip().replace("\\", "/")
|
|
1277
|
+
if (not _gl_f or _gl_f in _fb_seen):
|
|
1278
|
+
continue
|
|
1279
|
+
if Path(_gl_f).suffix.lower() not in _ALL_EXTENSIONS:
|
|
1280
|
+
continue
|
|
1281
|
+
if not (self.root / _gl_f).exists():
|
|
1282
|
+
continue
|
|
1283
|
+
_fb_candidates.append(RelevantFile(
|
|
1284
|
+
path=_gl_f,
|
|
1285
|
+
role="source",
|
|
1286
|
+
score=0.3,
|
|
1287
|
+
reason="fast-mode fallback: recently committed file (git log -10)",
|
|
1288
|
+
why="recent commit history signal",
|
|
1289
|
+
))
|
|
1290
|
+
_fb_seen.add(_gl_f)
|
|
1291
|
+
except Exception:
|
|
1292
|
+
pass
|
|
1293
|
+
|
|
1294
|
+
# 3. Symptom keyword path matches (fix-bug only)
|
|
1295
|
+
if task_name == "fix-bug" and symptom:
|
|
1296
|
+
import re as _re_fb
|
|
1297
|
+
_fb_kws = [w.lower() for w in _re_fb.split(r"[\s\W]+", symptom) if len(w) > 2]
|
|
1298
|
+
for _fb_p in all_paths:
|
|
1299
|
+
if _fb_p in _fb_seen:
|
|
1300
|
+
continue
|
|
1301
|
+
if Path(_fb_p).suffix.lower() not in _ALL_EXTENSIONS:
|
|
1302
|
+
continue
|
|
1303
|
+
if any(kw in _fb_p.lower() for kw in _fb_kws):
|
|
1304
|
+
_fb_candidates.append(RelevantFile(
|
|
1305
|
+
path=_fb_p,
|
|
1306
|
+
role="source",
|
|
1307
|
+
score=0.2,
|
|
1308
|
+
reason=f"fast-mode fallback: path matches symptom ({symptom!r})",
|
|
1309
|
+
why="symptom keyword in file path",
|
|
1310
|
+
))
|
|
1311
|
+
_fb_seen.add(_fb_p)
|
|
1312
|
+
|
|
1313
|
+
relevant_files = _fb_candidates[:20]
|
|
1314
|
+
|
|
1224
1315
|
# ── IC-006: fix-bug suspected_areas — recompute from ranked files + bug notes ──
|
|
1225
1316
|
# relevant_files is now ranked by RankingEngine (git churn, fan_in, centrality, notes).
|
|
1226
1317
|
# suspected_areas should reflect that ranking, not raw comment count.
|
|
@@ -2569,24 +2660,15 @@ class TaskContextBuilder:
|
|
|
2569
2660
|
if DiffSourceType.WORKTREE_STAGED.value not in sources:
|
|
2570
2661
|
sources.append(DiffSourceType.WORKTREE_STAGED.value)
|
|
2571
2662
|
|
|
2572
|
-
# ──
|
|
2573
|
-
#
|
|
2574
|
-
#
|
|
2663
|
+
# ── FIX-P1: no --since + clean working tree → no_staged_changes signal ──
|
|
2664
|
+
# Previously: silently fell back to HEAD~1 diff, masking a missing --since.
|
|
2665
|
+
# Now: emit "no_staged_changes" scope so the caller can return no_diff_source
|
|
2666
|
+
# (exit 1) and prompt the user to provide --since.
|
|
2667
|
+
# Rationale: in CI, the tree is always clean; without --since there is no
|
|
2668
|
+
# meaningful diff to review. Local dev should stage changes before review-pr.
|
|
2575
2669
|
if since is None and not committed_files and not uncommitted_files:
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
head_committed = _run("git", "diff", "--name-only", "--relative", "HEAD~1..HEAD")
|
|
2579
|
-
if head_committed:
|
|
2580
|
-
committed_files = head_committed
|
|
2581
|
-
sources.append(DiffSourceType.HEAD_MINUS_1.value)
|
|
2582
|
-
else:
|
|
2583
|
-
# First commit — no HEAD~1; diff against git empty tree
|
|
2584
|
-
_GIT_EMPTY_TREE = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
|
|
2585
|
-
first_committed = _run("git", "diff", "--name-only", "--relative",
|
|
2586
|
-
_GIT_EMPTY_TREE, "HEAD")
|
|
2587
|
-
if first_committed:
|
|
2588
|
-
committed_files = first_committed
|
|
2589
|
-
sources.append("initial_commit")
|
|
2670
|
+
# Return sentinel — step 5d converts this to no_diff_source (exit 1).
|
|
2671
|
+
return [], "no_staged_changes", [], []
|
|
2590
2672
|
|
|
2591
2673
|
# ── Drop paths outside self.root ──────────────────────────────────────
|
|
2592
2674
|
def _drop_outside(lst: list[str]) -> list[str]:
|
|
@@ -192,6 +192,15 @@ _SECURITY_MARKER_ANNOTATIONS: frozenset[str] = frozenset({
|
|
|
192
192
|
"@PermitAll", "@DenyAll", "@Authenticated",
|
|
193
193
|
})
|
|
194
194
|
|
|
195
|
+
# Annotations on config classes that indicate a centralized security filter chain
|
|
196
|
+
# (Spring Security / Spring Boot). When present, per-endpoint no_security_signal
|
|
197
|
+
# is expected and does NOT mean endpoints are unprotected.
|
|
198
|
+
_FILTER_SECURITY_ANNOTATIONS: frozenset[str] = frozenset({
|
|
199
|
+
"@EnableWebSecurity",
|
|
200
|
+
"@EnableMethodSecurity",
|
|
201
|
+
"@EnableGlobalMethodSecurity",
|
|
202
|
+
})
|
|
203
|
+
|
|
195
204
|
_MODIFIER_WORDS: frozenset[str] = frozenset({
|
|
196
205
|
"public", "private", "protected", "static", "final", "abstract",
|
|
197
206
|
"synchronized", "native", "strictfp", "transient", "volatile", "default",
|
|
@@ -1711,6 +1720,7 @@ def _detect_subsystems(all_fqns: list[str], relations: list[RelationEdge]) -> li
|
|
|
1711
1720
|
"label": label,
|
|
1712
1721
|
"package_prefix": pkg_prefix,
|
|
1713
1722
|
"member_count": len(members),
|
|
1723
|
+
"members": members,
|
|
1714
1724
|
"summary": summary,
|
|
1715
1725
|
})
|
|
1716
1726
|
return result
|
|
@@ -2132,17 +2142,47 @@ def _assemble(
|
|
|
2132
2142
|
"change_set": change_set_out,
|
|
2133
2143
|
}
|
|
2134
2144
|
|
|
2135
|
-
|
|
2145
|
+
_extends_map = {
|
|
2136
2146
|
e.from_symbol: e.to_symbol.split(".")[-1]
|
|
2137
2147
|
for e in sorted_rels if e.type == "extends"
|
|
2138
|
-
}
|
|
2148
|
+
}
|
|
2149
|
+
_route_surface = _build_route_surface(sorted_syms, route_diffs, extends_map=_extends_map)
|
|
2139
2150
|
_analysis_gaps = _compute_analysis_gaps(sorted_syms, spring_summary, _route_surface, sorted_rels)
|
|
2140
2151
|
|
|
2152
|
+
# Detect filter-based security model for the assembled IR.
|
|
2153
|
+
# Stored here so CIR projections (project_endpoint_surface) can read it without
|
|
2154
|
+
# re-parsing symbols.
|
|
2155
|
+
_class_syms_asm = [s for s in sorted_syms if s.type in ("class", "interface")]
|
|
2156
|
+
_filter_based_asm = (
|
|
2157
|
+
any(
|
|
2158
|
+
ann in _FILTER_SECURITY_ANNOTATIONS
|
|
2159
|
+
for sym in _class_syms_asm
|
|
2160
|
+
for ann in sym.annotations
|
|
2161
|
+
)
|
|
2162
|
+
or any(
|
|
2163
|
+
_extends_map.get(sym.symbol, "") == "WebSecurityConfigurerAdapter"
|
|
2164
|
+
for sym in _class_syms_asm
|
|
2165
|
+
)
|
|
2166
|
+
)
|
|
2167
|
+
_has_ann_sec_asm = any(
|
|
2168
|
+
r.get("security_annotations") for r in _route_surface
|
|
2169
|
+
if isinstance(r, dict)
|
|
2170
|
+
)
|
|
2171
|
+
if _filter_based_asm and _has_ann_sec_asm:
|
|
2172
|
+
_security_model_asm = "mixed"
|
|
2173
|
+
elif _filter_based_asm:
|
|
2174
|
+
_security_model_asm = "filter_based"
|
|
2175
|
+
elif _has_ann_sec_asm:
|
|
2176
|
+
_security_model_asm = "annotation_based"
|
|
2177
|
+
else:
|
|
2178
|
+
_security_model_asm = "unknown"
|
|
2179
|
+
|
|
2141
2180
|
return {
|
|
2142
2181
|
**_base,
|
|
2143
2182
|
"route_surface": _route_surface,
|
|
2144
2183
|
"spring_events": _spring_events,
|
|
2145
2184
|
"analysis_gaps": _analysis_gaps,
|
|
2185
|
+
"security_model": _security_model_asm,
|
|
2146
2186
|
"audit": {
|
|
2147
2187
|
"dropped_fields": dropped_fields,
|
|
2148
2188
|
},
|
|
@@ -2908,10 +2948,39 @@ def extract_java_endpoints(root: Path) -> "dict[str, Any]":
|
|
|
2908
2948
|
# Note: repos may use framework-level security (e.g. Keycloak itself) with no
|
|
2909
2949
|
# per-endpoint annotations — this count reflects annotation-based coverage only.
|
|
2910
2950
|
no_security_signal = sum(1 for e in endpoints if "security" not in e)
|
|
2951
|
+
|
|
2952
|
+
# Detect filter-based security: centralized Spring Security config class.
|
|
2953
|
+
# When present, high no_security_signal is expected — security is enforced by
|
|
2954
|
+
# the filter chain, not per-endpoint annotations.
|
|
2955
|
+
_class_syms = [s for s in all_symbols if s.type in ("class", "interface")]
|
|
2956
|
+
_filter_based = (
|
|
2957
|
+
# Config class annotated with EnableWebSecurity / EnableMethodSecurity
|
|
2958
|
+
any(
|
|
2959
|
+
ann in _FILTER_SECURITY_ANNOTATIONS
|
|
2960
|
+
for sym in _class_syms
|
|
2961
|
+
for ann in sym.annotations
|
|
2962
|
+
)
|
|
2963
|
+
# Class extends WebSecurityConfigurerAdapter (pre-Spring 5.7 style)
|
|
2964
|
+
or any(
|
|
2965
|
+
extends_map.get(sym.symbol, "") == "WebSecurityConfigurerAdapter"
|
|
2966
|
+
for sym in _class_syms
|
|
2967
|
+
)
|
|
2968
|
+
)
|
|
2969
|
+
_has_annotation_security = any("security" in e for e in endpoints)
|
|
2970
|
+
if _filter_based and _has_annotation_security:
|
|
2971
|
+
security_model = "mixed"
|
|
2972
|
+
elif _filter_based:
|
|
2973
|
+
security_model = "filter_based"
|
|
2974
|
+
elif _has_annotation_security:
|
|
2975
|
+
security_model = "annotation_based"
|
|
2976
|
+
else:
|
|
2977
|
+
security_model = "unknown"
|
|
2978
|
+
|
|
2911
2979
|
return {
|
|
2912
2980
|
"endpoints": endpoints,
|
|
2913
2981
|
"total": len(endpoints),
|
|
2914
2982
|
"no_security_signal": no_security_signal,
|
|
2983
|
+
"security_model": security_model,
|
|
2915
2984
|
# Keep legacy field name for backward compat, now means same as no_security_signal
|
|
2916
2985
|
"undocumented": no_security_signal,
|
|
2917
2986
|
}
|
|
@@ -537,15 +537,16 @@ class TestReviewPrSuspectedAreas:
|
|
|
537
537
|
|
|
538
538
|
def test_review_pr_requires_git_diff(self):
|
|
539
539
|
# FIXTURE has no uncommitted changes (or no git repo) — returns structured error.
|
|
540
|
-
# When running inside the atlas-cli git tree with no staged changes
|
|
541
|
-
#
|
|
540
|
+
# When running inside the atlas-cli git tree with no staged changes:
|
|
541
|
+
# - no_diff_source: no --since and no staged/unstaged changes (clean tree) → exit 1
|
|
542
|
+
# - no_diff: scope resolved but empty → exit 0
|
|
542
543
|
# When running outside any git repo, error is "no_git_repo" (exit 1 — true error).
|
|
543
544
|
result = _invoke("prepare-context", "review-pr", str(FIXTURE))
|
|
544
545
|
data = _json(result)
|
|
545
|
-
_git_errors = {"no_git_repo", "no_diff", "git_ref_not_found"}
|
|
546
|
+
_git_errors = {"no_git_repo", "no_diff", "no_diff_source", "git_ref_not_found"}
|
|
546
547
|
assert data.get("error") in _git_errors, f"Expected git error, got: {data}"
|
|
547
548
|
assert "ci_decision" in data
|
|
548
|
-
# Exit code: 0 for no_diff (no changes = success), 1 for
|
|
549
|
+
# Exit code: 0 for no_diff (no changes = success), 1 for all other errors
|
|
549
550
|
if data.get("error") == "no_diff":
|
|
550
551
|
assert result.exit_code == 0, f"no_diff must exit 0, got {result.exit_code}"
|
|
551
552
|
else:
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Handoff — Sesión 30 (2026-05-26)
|
|
2
|
-
|
|
3
|
-
## Position
|
|
4
|
-
|
|
5
|
-
**Project:** sourcecode (atlas-cli)
|
|
6
|
-
**Activity:** Post-audit bug fixing — AUDIT_v1.31.23.md
|
|
7
|
-
**Branch:** master
|
|
8
|
-
**Last commit:** f225ab2 — (fix) updating flags in order to copy the output in the clipboard
|
|
9
|
-
**Tests:** 1590 passed, 3 skipped ✅
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Work Done This Session
|
|
14
|
-
|
|
15
|
-
### Session 30 (this session)
|
|
16
|
-
**`--copy/-c` flag parity across all output commands** (`cli.py`):
|
|
17
|
-
- `impact_cmd`: added `--copy/-c` option + copy logic (fires only when no `--output`)
|
|
18
|
-
- `repo_ir_cmd`: added `--copy/-c` option + copy logic (after stdout write, before UnicodeEncodeError path)
|
|
19
|
-
- `endpoints_cmd`: added `--copy/-c` option + copy logic
|
|
20
|
-
|
|
21
|
-
All three now consistent with existing commands (`main`, `prepare-context`, `onboard`, `review-pr`, `fix-bug`, `modernize`).
|
|
22
|
-
|
|
23
|
-
Pattern: `if copy: if _copy_to_clipboard(output): typer.echo("✓ copied to clipboard", err=True)`
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Remaining from AUDIT_v1.31.23.md
|
|
28
|
-
|
|
29
|
-
### P2 unfixed (section 13, items 6–18)
|
|
30
|
-
| # | Issue | File | Effort |
|
|
31
|
-
|---|---|---|---|
|
|
32
|
-
| P2-06 | `subsystem_summary.member_count` always 0 | cli.py modernize_cmd | Medium |
|
|
33
|
-
| P2-07 | `no_security_signal` → detect filter-based security → `security_model: "filter_based"` | repository_ir.py | Medium |
|
|
34
|
-
| P2-10 | `architecture.confidence` inconsistent between `--compact` and `--agent` | serializer.py | Low |
|
|
35
|
-
| P2-13 | `--no-cache` flag inconsistent across subcommands (`--copy` now fixed) | cli.py | Medium |
|
|
36
|
-
| P2-14 | URLs in code_notes truncated (missing `https://bugs.` prefix) | code_notes_analyzer.py | Low (needs repro) |
|
|
37
|
-
| P2-16 | `entry_points.controllers.methods` mismatches `endpoints` count | cli.py | Medium |
|
|
38
|
-
| P2-17 | `--compact --help` token claim outdated | cli.py | Trivial |
|
|
39
|
-
| P2-18 | `impact` via file path: resolve to FQN before IR lookup | repository_ir.py | Low |
|
|
40
|
-
|
|
41
|
-
### Score from Session 29
|
|
42
|
-
| Dimension | v1.31.23 | After S29 | Fix applied |
|
|
43
|
-
|---|---|---|---|
|
|
44
|
-
| Correctness impl classes | 8/10 | 8.5/10 | BFS sampling |
|
|
45
|
-
| Onboarding context quality | 7/10 | 8/10 | project_summary quantitative + bounded_contexts |
|
|
46
|
-
| Modernize/dead code | 3/10 | 5.5/10 | hotspots with churn, roles classified |
|
|
47
|
-
| Java/Spring depth | 8/10 | 8.5/10 | bounded_contexts Maven modules |
|
|
48
|
-
| **TOTAL** | **6.5/10** | **~7.2/10** | |
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Key Files Modified (this session)
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
src/sourcecode/cli.py — --copy/-c added to impact_cmd, repo_ir_cmd, endpoints_cmd
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## Next Session
|
|
61
|
-
|
|
62
|
-
**Recommended start:** Fix `subsystem_summary.member_count` (P2-06).
|
|
63
|
-
|
|
64
|
-
Root cause: `_detect_subsystems()` in `repository_ir.py` builds subsystems but doesn't populate the `members` list that `modernize_cmd` reads via `len(s.get("members") or [])`. Fix: ensure each subsystem dict includes the list of FQNs.
|
|
65
|
-
|
|
66
|
-
Then: `--no-cache` flag consistency audit (P2-13 remainder).
|
|
67
|
-
|
|
68
|
-
**Resume command:** `/gsd:resume-work`
|
|
69
|
-
|
|
70
|
-
**Test baseline:** `python3 -m pytest tests/ → 1590 passed, 3 skipped`
|
{sourcecode-1.31.26 → sourcecode-1.31.28}/.agents/skills/source-command-gsd-join-discord/SKILL.md
RENAMED
|
File without changes
|
{sourcecode-1.31.26 → sourcecode-1.31.28}/.agents/skills/source-command-gsd-review-backlog/SKILL.md
RENAMED
|
File without changes
|
{sourcecode-1.31.26 → sourcecode-1.31.28}/.agents/skills/source-command-gsd-workstreams/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|