archy 0.53.2__tar.gz → 0.53.4__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.
- {archy-0.53.2 → archy-0.53.4}/.github/workflows/ci.yml +2 -2
- {archy-0.53.2 → archy-0.53.4}/.github/workflows/install-e2e.yml +1 -1
- {archy-0.53.2 → archy-0.53.4}/.github/workflows/install.yml +2 -2
- {archy-0.53.2 → archy-0.53.4}/.github/workflows/publish.yml +1 -1
- {archy-0.53.2 → archy-0.53.4}/.github/workflows/score-delta.yml +1 -1
- {archy-0.53.2 → archy-0.53.4}/.gitignore +4 -0
- {archy-0.53.2 → archy-0.53.4}/AGENTS.md +2 -2
- {archy-0.53.2 → archy-0.53.4}/PKG-INFO +7 -7
- {archy-0.53.2 → archy-0.53.4}/README.md +6 -6
- {archy-0.53.2 → archy-0.53.4}/action.yml +1 -1
- {archy-0.53.2 → archy-0.53.4}/archy.yaml +3 -0
- {archy-0.53.2 → archy-0.53.4}/docs/LEARNINGS.md +2 -2
- {archy-0.53.2 → archy-0.53.4}/docs/MCP_DIRECTORIES.md +1 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SAFETY.md +1 -2
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_GRAPH_MCP.md +1 -1
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_TYPED_CONNECTORS_AND_CONFORMANCE.md +2 -2
- {archy-0.53.2 → archy-0.53.4}/plugins/claude/README.md +4 -4
- {archy-0.53.2 → archy-0.53.4}/plugins/claude/bin/archy-mcp.mjs +1 -1
- {archy-0.53.2 → archy-0.53.4/plugins/claude}/skills/archy/SKILL.md +5 -5
- {archy-0.53.2 → archy-0.53.4}/pyproject.toml +1 -1
- {archy-0.53.2 → archy-0.53.4}/server.json +2 -2
- {archy-0.53.2/plugins/claude → archy-0.53.4}/skills/archy/SKILL.md +5 -5
- {archy-0.53.2 → archy-0.53.4}/src/archy/__init__.py +1 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/affected.py +45 -3
- {archy-0.53.2 → archy-0.53.4}/src/archy/cli.py +154 -1523
- archy-0.53.4/src/archy/cli_render.py +1627 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/contracts.py +3 -3
- {archy-0.53.2 → archy-0.53.4}/src/archy/conventions.py +111 -25
- {archy-0.53.2 → archy-0.53.4}/src/archy/coupling.py +9 -4
- {archy-0.53.2 → archy-0.53.4}/src/archy/cycles.py +0 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/diff.py +50 -42
- {archy-0.53.2 → archy-0.53.4}/src/archy/diff_summary.py +1 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/dsm.py +24 -7
- {archy-0.53.2 → archy-0.53.4}/src/archy/duplicates.py +6 -6
- archy-0.53.4/src/archy/gitlog.py +181 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/graph.py +145 -25
- {archy-0.53.2 → archy-0.53.4}/src/archy/headers.py +13 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/history.py +3 -2
- {archy-0.53.2 → archy-0.53.4}/src/archy/hotspots.py +12 -7
- {archy-0.53.2 → archy-0.53.4}/src/archy/impact.py +2 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/instability.py +1 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/merge.py +9 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/layers.py +13 -13
- archy-0.53.4/src/archy/mcp.py +966 -0
- archy-0.53.4/src/archy/mcp_payloads.py +469 -0
- archy-0.53.4/src/archy/mcp_runs.py +1340 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/parser.py +19 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/refactor.py +1 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/risk.py +1 -1
- {archy-0.53.2 → archy-0.53.4}/src/archy/scan_config.py +3 -3
- {archy-0.53.2 → archy-0.53.4}/src/archy/score.py +2 -3
- {archy-0.53.2 → archy-0.53.4}/src/archy/simulate.py +3 -2
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_merge.py +23 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_affected.py +78 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_cli.py +167 -7
- {archy-0.53.2 → archy-0.53.4}/tests/test_conventions.py +68 -1
- {archy-0.53.2 → archy-0.53.4}/tests/test_coupling.py +4 -4
- {archy-0.53.2 → archy-0.53.4}/tests/test_cycles.py +51 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_diff.py +49 -2
- {archy-0.53.2 → archy-0.53.4}/tests/test_dsm.py +39 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_graph.py +38 -1
- {archy-0.53.2 → archy-0.53.4}/tests/test_hotspots.py +118 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_mcp.py +354 -144
- {archy-0.53.2 → archy-0.53.4}/tests/test_parser.py +39 -1
- {archy-0.53.2 → archy-0.53.4}/tests/test_plugin.py +63 -1
- {archy-0.53.2 → archy-0.53.4}/tests/test_safety_claims.py +35 -2
- {archy-0.53.2 → archy-0.53.4}/tests/test_strict_rules.py +5 -4
- {archy-0.53.2 → archy-0.53.4}/uv.lock +1 -1
- archy-0.53.2/src/archy/gitlog.py +0 -73
- archy-0.53.2/src/archy/mcp.py +0 -2600
- {archy-0.53.2 → archy-0.53.4}/.claude-plugin/marketplace.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {archy-0.53.2 → archy-0.53.4}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {archy-0.53.2 → archy-0.53.4}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {archy-0.53.2 → archy-0.53.4}/.github/dependabot.yml +0 -0
- {archy-0.53.2 → archy-0.53.4}/.github/workflows/score-comment.yml +0 -0
- {archy-0.53.2 → archy-0.53.4}/.github/workflows/smoke.yml +0 -0
- {archy-0.53.2 → archy-0.53.4}/.pre-commit-config.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/.pre-commit-hooks.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/ADOPTERS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/CLAUDE.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/CODE_OF_CONDUCT.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/CONTRIBUTING.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/Dockerfile +0 -0
- {archy-0.53.2 → archy-0.53.4}/GOVERNANCE.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/LICENSE +0 -0
- {archy-0.53.2 → archy-0.53.4}/MAINTAINERS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/SECURITY.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/_common.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/_supervise.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/acyclicity_dilution.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/acyclicity_dilution_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/records_282_flask.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/run_tests.sh +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/task_flask_endpoint_origins.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/task_rich_style_resolution.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/variant_b_flask_file_map.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/variant_b_flask_sansio_app.patch +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/variant_b_rich_console.patch +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint/variant_b_rich_console_file_map.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/agent_footprint_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/call_weighted_modularity.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/call_weighted_modularity_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/community_partitioner.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/community_partitioner_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/contract_decay.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/contract_decay.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/contract_decay_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/contract_prevalence.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/contract_prevalence.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/contract_prevalence_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/contract_repos.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/conventions_bench.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/conventions_bench_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/conventions_key.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/coupling_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/coupling_sweep.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/delta_direction.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/delta_direction_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/distribution.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/distribution.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/dsm.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/dsm_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/duplicates_cochange_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/duplicates_cochange_sweep.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/duplicates_recall_experiment.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/duplicates_recall_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/duplicates_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/duplicates_sweep.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/archy.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/models/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/models/article.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/repositories/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/repositories/article_repo.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/routes/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/routes/articles.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/services/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/compliant/services/article_service.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/degenerate/app.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/models/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/models/article.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/repositories/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/repositories/article_repo.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/routes/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/routes/articles.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/services/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/conduit_clean/violating/services/article_service.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/fixtures/flask_realworld.importlinter +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/greenfield_eval.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/greenfield_pilot/contaminated_chunk1.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/greenfield_pilot/smoke_arm_a.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/greenfield_prereg.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/greenfield_results.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/greenfield_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/greenfield_run.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/hotspots_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/hotspots_sweep.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/inloop_prevalence.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/inloop_prevalence_results.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/inloop_prevalence_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/mirror_precision.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/mirror_precision.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/mutate.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/near_duplicates_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/near_duplicates_sweep.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/pattern_detection.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/pattern_detection_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/projects.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers/README.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers/django.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers/matplotlib.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers/requests.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers/scikit-learn.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers/sympy.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers/xarray.yaml +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_layers_check.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_results.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_run.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_score.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_tasks.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/q1b_tasks.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/reach_asymmetry_precision.jsonl +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/reach_asymmetry_precision.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/retrievability_draw.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/retrievability_prereg.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/retrievability_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/run.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/score_redesign.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/score_redesign_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/simulate_oracle.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/simulate_oracle_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/typehint_coverage.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/typehint_coverage_results.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/bench/walkthrough.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/AGENT_LOOP.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/AGENT_LOOP_CONTRACTS_TEST.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/CASE_STUDIES.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/CI_HISTORY.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/DISTRIBUTION.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/FUTURE.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/INSTALL.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/OPENSSF_BADGE.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/ROADMAP.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SCORING.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SHIPPED.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SIXTY_SECOND_TOUR.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_AGENT_FOOTPRINT_BENCH.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_INDEX_AND_INSTALL.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_INSTALL_HOOKS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_INSTALL_TESTING.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_SIMULATE.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/SPEC_VISUALIZATION.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/WALKTHROUGH.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/WHAT_DIDNT_WORK.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/agent-loop.html +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/agent-loop.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/agent-loop.svg +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/architecture.html +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/architecture.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/architecture.svg +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/import-cycle.html +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/import-cycle.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/import-cycle.svg +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/layer-contract.html +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/layer-contract.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/layer-contract.svg +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/three-surfaces.html +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/three-surfaces.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/three-surfaces.svg +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/transitive-violation.html +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/transitive-violation.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/diagrams/transitive-violation.svg +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/logo-icon.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/assets/logo-wordmark.png +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/demo.gif +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/demo.tape +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/ACYCLICITY_DILUTION_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/AGENT_CAUSAL_REASONING_SYNTHESIS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/AUTONOMY_CONTINUUM_SYNTHESIS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/AXIS_REVIEW.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/CALL_WEIGHTED_Q_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/CODEGRAPH_COMPETITIVE_ANALYSIS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/CONSTRAINT_AWARE_ORCHESTRATION_SYNTHESIS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/DSM_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/INLOOP_PREVALENCE_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/MIRROR_SURFACE_PRECISION.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/PATTERN_DETECTION_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/PREWALK_READ_REDUCTION_SYNTHESIS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/REACH_ASYMMETRY_PRECISION.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/README.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/RESEARCH_METRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/SCORE_SHAPE_REDESIGN_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/SIMULATE_ORACLE_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/TOKEN_REDUCTION_CLAIMS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/TYPE_HINT_COVERAGE_EMPIRICS.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/adversarial_2026_06/README.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/adversarial_2026_06/round1_findings.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/adversarial_2026_06/round1_findings.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/docs/research/adversarial_2026_06/round2_findings.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/glama.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/plugins/claude/.claude-plugin/plugin.json +0 -0
- {archy-0.53.2 → archy-0.53.4}/pstack-evidence.md +0 -0
- {archy-0.53.2 → archy-0.53.4}/scripts/archy_history.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/scripts/archy_score_delta.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/complexity.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/entrypoints.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/index.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/adapters/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/adapters/claude.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/adapters/codex.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/adapters/continue_.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/adapters/cursor.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/adapters/opencode.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/base.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/paths.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/registry.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/runner.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/install/writer.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/mcp_compat.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/ratchet.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/reach.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/render.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/trend.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/src/archy/watcher.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/conftest.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/conftest.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/contract/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/contract/test_contracts.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/e2e_assert_config.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/integration/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/integration/test_filesystem.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/snapshot/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/snapshot/__snapshots__/test_snapshots.ambr +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/snapshot/test_snapshots.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/__init__.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_base.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_claude.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_cli_malformed_config.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_cli_print_config.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_cli_unknown_agent.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_codex.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_continue.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_cursor.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_install_atomic_multi_client.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_opencode.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_paths.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_read_text_errors.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_registry.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_runner.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/install/unit/test_tool_names_pin.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/smoke_install.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_action_yml.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_agent_footprint.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_archy_history.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_archy_score_delta.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_ci_workflow.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_complexity.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_contracts.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_delta_direction.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_diff_summary.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_duplicates.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_entrypoints.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_git_config_isolation.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_greenfield_eval.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_greenfield_prereg.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_greenfield_run.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_headers.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_history.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_impact.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_index.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_instability.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_layers.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_mcp_protocol.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_q1b_run.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_q1b_score.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_ratchet.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_reach.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_refactor.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_render.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_risk.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_score.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_server_json.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_simulate.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_supervise.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_trend.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_walkthrough.py +0 -0
- {archy-0.53.2 → archy-0.53.4}/tests/test_watcher.py +0 -0
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
16
16
|
|
|
17
17
|
- name: Install uv
|
|
18
|
-
uses: astral-sh/setup-uv@
|
|
18
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
19
19
|
with:
|
|
20
20
|
enable-cache: true
|
|
21
21
|
|
|
@@ -77,7 +77,7 @@ jobs:
|
|
|
77
77
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
78
78
|
|
|
79
79
|
- name: Install uv
|
|
80
|
-
uses: astral-sh/setup-uv@
|
|
80
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
81
81
|
with:
|
|
82
82
|
enable-cache: true
|
|
83
83
|
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
35
35
|
|
|
36
36
|
- name: Install uv
|
|
37
|
-
uses: astral-sh/setup-uv@
|
|
37
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
38
38
|
with:
|
|
39
39
|
enable-cache: true
|
|
40
40
|
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
21
|
|
|
22
22
|
- name: Install uv
|
|
23
|
-
uses: astral-sh/setup-uv@
|
|
23
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
24
24
|
with:
|
|
25
25
|
enable-cache: true
|
|
26
26
|
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
47
47
|
|
|
48
48
|
- name: Install uv
|
|
49
|
-
uses: astral-sh/setup-uv@
|
|
49
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
50
50
|
with:
|
|
51
51
|
enable-cache: true
|
|
52
52
|
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
21
|
|
|
22
22
|
- name: Install uv
|
|
23
|
-
uses: astral-sh/setup-uv@
|
|
23
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
24
24
|
with:
|
|
25
25
|
enable-cache: true
|
|
26
26
|
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
fetch-depth: 0 # the base commit has to be present to score it
|
|
20
20
|
|
|
21
21
|
- name: Install uv
|
|
22
|
-
uses: astral-sh/setup-uv@
|
|
22
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
23
23
|
with:
|
|
24
24
|
enable-cache: true
|
|
25
25
|
|
|
@@ -73,7 +73,7 @@ Fetch the job's failing *step*, then its log.
|
|
|
73
73
|
**Wire it to every surface in one change.** Three at the time of writing.
|
|
74
74
|
Confirm that is still current by picking an existing gate and grepping for
|
|
75
75
|
every site that renders it: its `_<cmd>_to_text` helper and `_<cmd>_to_dict` payload in
|
|
76
|
-
`src/archy/cli.py
|
|
76
|
+
`src/archy/cli_render.py` (the command wiring stays in `src/archy/cli.py`), and its tool's return model in `src/archy/mcp_payloads.py` (the tool wiring stays in `src/archy/mcp.py` and the work behind each tool in `src/archy/mcp_runs.py`). A fourth
|
|
77
77
|
surface would show up as a site that none of those three patterns match. A presence check shipped to the CLI alone
|
|
78
78
|
left the MCP surface, the one agents actually call, reporting `passed=true` for
|
|
79
79
|
the exact case the check existed to catch. Three consecutive review rounds each
|
|
@@ -102,7 +102,7 @@ an existing ticket by the symptom ("empty", "exits 0"), not only the mechanism:
|
|
|
102
102
|
**mcp 2.x used to drop a tool's `ValueError` text** (#636, fixed). Expected
|
|
103
103
|
refusals (`ValueError` / `LookupError`) are re-raised as `ToolError` at the tool
|
|
104
104
|
boundary so the reason reaches agents on both majors. Pin the exact message on
|
|
105
|
-
the direct `
|
|
105
|
+
the direct `mcp_runs.run_*` call and through `_call_tool`. Reproduce the
|
|
106
106
|
`mcp 2.x compatibility` job locally with its own install (`uv venv`, then
|
|
107
107
|
`uv pip install -e ".[contracts]" "mcp>=2,<3" pytest pytest-snapshot`) before
|
|
108
108
|
pushing a change to a tool's error path.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: archy
|
|
3
|
-
Version: 0.53.
|
|
3
|
+
Version: 0.53.4
|
|
4
4
|
Summary: Architectural sensor for Python codebases
|
|
5
5
|
Project-URL: Homepage, https://github.com/hslee16/archy
|
|
6
6
|
Project-URL: Issues, https://github.com/hslee16/archy/issues
|
|
@@ -256,7 +256,7 @@ uvx archy check . # layer rules from archy.yaml; exits 1 on violation
|
|
|
256
256
|
|
|
257
257
|
**Free, MIT licensed, no commercial version planned.** One maintainer, Python only. Built by [Alex Lee](https://github.com/hslee16/Archy).
|
|
258
258
|
|
|
259
|
-
**Status:** v0.53.
|
|
259
|
+
**Status:** v0.53.4, working, installed and maintained. Usable today via:
|
|
260
260
|
|
|
261
261
|
| Mode | Command |
|
|
262
262
|
|---|---|
|
|
@@ -462,7 +462,7 @@ git diff --name-only HEAD | archy affected . --stdin --quiet | xargs pytest
|
|
|
462
462
|
archy affected . src/foo.py --filter "tests/integration/**" --json
|
|
463
463
|
```
|
|
464
464
|
|
|
465
|
-
Test classification defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `--filter <glob>`. Internal modules only; vendored or third-party code is not traced.
|
|
465
|
+
Test classification defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `--filter <glob>`. A filter that matches no file in the graph is an error (exit 1) rather than an empty selection, and it ends with a `did you mean` when a directory is close. A `tests/` with no `__init__.py` beside a `src/` layout is not in the graph, so a filter for it is refused too. Internal modules only; vendored or third-party code is not traced.
|
|
466
466
|
|
|
467
467
|
### Design Structure Matrix (`archy dsm`)
|
|
468
468
|
|
|
@@ -526,13 +526,13 @@ The server is backed by a persistent parse cache (`.archy/index.db`): each tool
|
|
|
526
526
|
| `archy_score` | Compute the five-metric score (modularity, acyclicity, depth, equality, complexity, geometric mean); optional `record=True` and `strict=True` for the same regression-gate behaviour the CLI offers. Pass `record=True` to record a start-of-session baseline (replaces the removed `archy_record_baseline`). `view="history"` returns the recent score history from `.archy/history.jsonl` (up to `last_n` rows, oldest-first, for comparing deltas over time; replaces the removed `archy_trend`). |
|
|
527
527
|
| `archy_cycles` | Find import cycles. |
|
|
528
528
|
| `archy_check` | Run direct-edge layer rules from `archy.yaml`. Pass `contracts=True` to also run the transitive import-linter contracts (Layers, Forbidden, Independence, Protected, AcyclicSiblings; stricter than the direct edges), nested under the `contracts` field (replaces the removed `archy_contracts`; requires `archy[contracts]`, and degrades to `available=false` with an advisory if the extra is absent). Contracts are skipped when no `archy.yaml` is found (you get a `CheckErrorPayload` first). Always returns `coverage`: how many modules and import edges the rules actually reach, so `passed=true` can be told apart from a config that governs almost nothing. `transitive_checked` says whether this run actually evaluated the `forbid` rules transitively; it is false when contracts were never requested, when they produced no verdict, and when any contract could not have failed, since none of the three evaluated the rules. `transitive_unverified_reason` then says which, naming `archy_check(contracts=True)` if it was never requested, the actual failure if it produced no verdict, and how many contracts matched nothing if that is what happened. So a clean pass is never silent about having seen direct edges only. `min_layers_present:` in `archy.yaml` also gates `passed` here, not just the CLI exit code. `required_violations` reports unsatisfied `required:` rules (module X must transitively reach Y, counting the implicit package-`__init__` import), and gates `passed` too; fix by adding the missing import, not by deleting the rule. Within `contracts`, read `verified`, not `all_kept`: a contract whose module expressions match nothing in the graph is `kept` because it could not have failed, `unverifiable` counts those, and each one carries `matched_nothing` and `unmatched_expressions` naming the patterns that matched no module. |
|
|
529
|
-
| `archy_impact` | Given changed file paths, return what they affect. `mode="blast"` (**default**) returns the modules that transitively import them (blast radius), plus `chains`: the shortest import path back to a changed module (with line numbers) explaining why each is impacted. `mode="affected"` (replaces the removed `archy_affected`) is the CI-shaped lookup instead: modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped (default 5 hops) so a single-line edit doesn't fan out to thousands of nodes; `test_filter` overrides pytest test detection with a recursive glob. `co_change=true` (blast mode, opt-in) adds a `co_changed` list: modules that historically co-change with the edit in git but have no import/call edge to it, so the structural blast radius misses them (`archy coupling` scoped to your edit; source-only, best-effort, the only path that reads git). A file that matches no module comes back in `unresolved` with a `did you mean` in `unresolved_hints`, and `nothing_resolved` is true when none matched, so an empty blast radius is not mistaken for a safe edit. |
|
|
529
|
+
| `archy_impact` | Given changed file paths, return what they affect. `mode="blast"` (**default**) returns the modules that transitively import them (blast radius), plus `chains`: the shortest import path back to a changed module (with line numbers) explaining why each is impacted. `mode="affected"` (replaces the removed `archy_affected`) is the CI-shaped lookup instead: modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped (default 5 hops) so a single-line edit doesn't fan out to thousands of nodes; `test_filter` overrides pytest test detection with a recursive glob, and one that matches no file in the graph is an error, not an empty `impacted_tests`, ending with a `did you mean` when a directory is close. `co_change=true` (blast mode, opt-in) adds a `co_changed` list: modules that historically co-change with the edit in git but have no import/call edge to it, so the structural blast radius misses them (`archy coupling` scoped to your edit; source-only, best-effort, the only path that reads git). A file that matches no module comes back in `unresolved` with a `did you mean` in `unresolved_hints`, and `nothing_resolved` is true when none matched, so an empty blast radius is not mistaken for a safe edit. |
|
|
530
530
|
| `archy_snapshot` | Capture score, cycles, and violations to `.archy/baseline.json`. Call at session start. Also returns an `invariant_brief` (declared layers, forbidden edges, declared `required:` reach rules, acyclic invariant, baseline score, load-bearing modules) to read before the first edit. |
|
|
531
531
|
| `archy_diff` | Compare current state against the snapshot; returns added/resolved cycles & violations, per-component score deltas, and a risk-weighted `summary` whose items carry a `prompt` reframing each delta as a judgment question ("new cycle a -> b; intended, or invert an edge?"). `strict=True` with `baseline` (a committed file) adds a `strict` verdict whose `passed` is false on any cycle or layer violation that baseline does not carry, with `reason` naming the closing edges. |
|
|
532
532
|
| `archy_simulate` | Counterfactual pre-edit check: given a proposed import-edge delta (`add`/`remove` of `{from, to}` pairs), return the would-be cycles, back-edges, layer/SDP/required-reach violations, per-axis score delta, and blast-radius change, with no file written. Test a refactoring hypothesis before committing to it. An endpoint that matches no module gets a `did you mean` (`applied.unresolved_hints`) and its spec is listed in `applied.skipped`; `applied.coverage` is `complete`, `partial` or `none`, and `none` means nothing was simulated, so the zero deltas are not a prediction. |
|
|
533
533
|
| `archy_graph` | Inspect the dependency graph. With no `focus`, `response_format="summary"` (**default**) returns the top-N overview by fan-in / fan-out / PageRank plus top external deps (replaces the removed `archy_graph_summary`; `top_n` controls N); `response_format="full"` returns the complete node/edge dump matching `archy graph --format json`, refusing graphs larger than `max_nodes` (default 500) with an explicit `GraphTooLargePayload`. Pass `focus=[...]` (replaces the removed `archy_graph_focus`) for a bounded subgraph around one or more modules (qualnames or file paths): `depth` caps hops, `direction` is `in`/`out`/`both`, each edge carries import line numbers, and `response_format`/`max_nodes`/`top_n` do not apply. A `focus` name that matches no module comes back in `unresolved` with a `did you mean` in `unresolved_hints`. |
|
|
534
534
|
| `archy_what_to_refactor_next` | Ranked refactor-priority list (replaces the removed `archy_hotspots` and `archy_high_risk_modules` via `lens`). `lens="fused"` (**default**) sums the behavioral lens (CC x churn) and the structural lens (edit-risk: central+fragile) into a `priority`, so a module flagged by *both* generally outranks a comparable single-lens one (a dominant single-lens signal can still rank first). `lens="behavioral"` ranks CC x churn hotspots only (needs git); `lens="structural"` ranks the edit-risk composite only (git-free; pass `min_risk=0` for no floor). Each entry names which lenses fired and carries a one-line `rationale`. An empty list plus a `note` is a real answer. |
|
|
535
|
-
| `archy_dsm` | Design Structure Matrix view of the import graph. `response_format="summary"` (**default**) returns a compact overview (block structure, counts, back-edges, cross-block coupling) without the full cell list. `response_format="full"` returns the positional matrix (cell `(row=source, col=target)` non-empty when source imports target), refusing matrices over `DEFAULT_MAX_DSM_CELLS` cells with a `DSMTooLargePayload`. `group_by` controls row/col ordering (`community` for block-diagonal cohesion, `layer` for layer-violation forensics, `topological` to localize back-edges). `weight` is `imports` or `calls`. Narrow large projects with `focus=<qualname>` + `focus_depth` or `package=<prefix>`. When `baseline_path` is provided, returns a structured diff (regardless of `response_format`) whose `new_back_edges` field flags cycles the edit just introduced. Visualization-only; see [`docs/research/DSM_EMPIRICS.md`](docs/research/DSM_EMPIRICS.md). A `focus` or `package` that matches no module is an error, not an empty matrix. |
|
|
535
|
+
| `archy_dsm` | Design Structure Matrix view of the import graph. `response_format="summary"` (**default**) returns a compact overview (block structure, counts, back-edges, cross-block coupling) without the full cell list. `response_format="full"` returns the positional matrix (cell `(row=source, col=target)` non-empty when source imports target), refusing matrices over `DEFAULT_MAX_DSM_CELLS` cells with a `DSMTooLargePayload`. `group_by` controls row/col ordering (`community` for block-diagonal cohesion, `layer` for layer-violation forensics, `topological` to localize back-edges). `weight` is `imports` or `calls`. Narrow large projects with `focus=<qualname>` + `focus_depth` or `package=<prefix>`. When `baseline_path` is provided, returns a structured diff (regardless of `response_format`) whose `new_back_edges` field flags cycles the edit just introduced. Visualization-only; see [`docs/research/DSM_EMPIRICS.md`](docs/research/DSM_EMPIRICS.md). A `focus` or `package` that matches no module is an error, not an empty matrix, and the error ends with a `did you mean` naming the closest module names when any are close. |
|
|
536
536
|
| `archy_duplicates` | Cluster functions with identical normalized body shape into two tiers: `duplicates` (likely-real, investigate) and `variants` (demoted likely-intentional clusters - same-class / boilerplate / test / vendored / `independent`, each with a `variant_reason`). `co_change=true` (**default**, needs git) adds the `independent` demotion: copies in actively-maintained files that never co-change (deliberately parallel implementations), the principled precision lever that lifts the primary tier above the ~50% syntactic ceiling (§12f). Within the primary tier, `exact=true` marks byte-identical (Type-1) clusters, the highest-confidence subset. `near_miss=true` (opt-in, slower) adds a lower-confidence `near_miss` tier: Type-3 (gapped) clones the exact shape-hash misses, found by token-multiset overlap (§12h). `response_format="summary"` (**default**) returns ranking fields + one sample member per cluster; `"full"` returns member lists. Advisory surfacer, not a score axis: refactorability is a semantic call (see [`docs/research/RESEARCH_METRICS.md`](docs/research/RESEARCH_METRICS.md) §12c/§12f/§12h). `min_nodes` (default 30) skips trivial stubs. |
|
|
537
537
|
| `archy_conventions` | Report the project's own house style, derived from its source: `naming` (class-name suffix families grouped by **home module**, so the module you are about to edit shows its own patterns), `surfaces` (mirrored helper sets like `_x_to_text`/`_x_to_json`, plus names defined in several modules - the "wire all of these together" list), `gates` (sites where a **failed finding** exits non-zero, each with its literal exit `code` and controlling lever: `flag:--strict`, `config:<attr>`, `param:<name>`, `hardcoded`), `errors` (the separate user-error exits - bad config, missing file - kept apart so the gate count stays meaningful), `models` (base-class / frozen / tuple-vs-list census), `bases` (kind families grouped by what they derive from *transitively*, counting only bases the project defines, with suffix agreement reported so a family whose name is not the rule says so), `registries` (`NAME = Ctor(...)` families and the distribution of every keyword passed - how a project declares codes or flags when it does not use classes), `export_gaps` (members absent from an `__all__`, or from a `from .x import Y as Y` block, that already lists their siblings) and `doc_gaps` (members the project's own `.rst`/`.md` surface does not name). Call before adding a class, field, or command to a project you do not know. Advisory: never fails, mutates nothing. `min_family` (default 2) raises the reporting floor; `include_tests` censuses test modules too (default false, because test fixtures dilute a real family). |
|
|
538
538
|
| `archy_module_view` | Everything known about ONE module, complete and unranked - the **lookup** counterpart to `archy_conventions`'s ranked report. Because the report truncates, a module's absence from it means nothing; every list here is complete for the module named, so absence is the answer to "does `risk` import `hotspots`" or "does anything still reach `layers`". Returns `imports_internal` (relative imports resolved), `imported_by` (counting test importers even when tests are otherwise set aside, because a module imported only by tests is imported), `classes`, `functions`, `exports` (null when the module declares no `__all__` and no explicit re-exports - different from an empty one), `suffix_families`, `gates`, and `status`, which says whether the module was censused or set aside and why, so an empty view is never mistaken for "nothing to report". An unknown module name raises rather than returning an empty view. Advisory: never mutates. |
|
|
@@ -577,7 +577,7 @@ The lowest-friction path specifically on Claude Code is the bundled plugin at [`
|
|
|
577
577
|
archy ships a composite action you can drop into any workflow:
|
|
578
578
|
|
|
579
579
|
```yaml
|
|
580
|
-
- uses: hslee16/archy@v0.53.
|
|
580
|
+
- uses: hslee16/archy@v0.53.4
|
|
581
581
|
with:
|
|
582
582
|
command: score # score | check | cycles | diff | history
|
|
583
583
|
path: .
|
|
@@ -607,7 +607,7 @@ Add to `.pre-commit-config.yaml`:
|
|
|
607
607
|
```yaml
|
|
608
608
|
repos:
|
|
609
609
|
- repo: https://github.com/hslee16/archy
|
|
610
|
-
rev: v0.53.
|
|
610
|
+
rev: v0.53.4
|
|
611
611
|
hooks:
|
|
612
612
|
- id: archy-check # layer rules from archy.yaml
|
|
613
613
|
- id: archy-score-strict # regression gate against last recorded score
|
|
@@ -205,7 +205,7 @@ uvx archy check . # layer rules from archy.yaml; exits 1 on violation
|
|
|
205
205
|
|
|
206
206
|
**Free, MIT licensed, no commercial version planned.** One maintainer, Python only. Built by [Alex Lee](https://github.com/hslee16/Archy).
|
|
207
207
|
|
|
208
|
-
**Status:** v0.53.
|
|
208
|
+
**Status:** v0.53.4, working, installed and maintained. Usable today via:
|
|
209
209
|
|
|
210
210
|
| Mode | Command |
|
|
211
211
|
|---|---|
|
|
@@ -411,7 +411,7 @@ git diff --name-only HEAD | archy affected . --stdin --quiet | xargs pytest
|
|
|
411
411
|
archy affected . src/foo.py --filter "tests/integration/**" --json
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
Test classification defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `--filter <glob>`. Internal modules only; vendored or third-party code is not traced.
|
|
414
|
+
Test classification defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `--filter <glob>`. A filter that matches no file in the graph is an error (exit 1) rather than an empty selection, and it ends with a `did you mean` when a directory is close. A `tests/` with no `__init__.py` beside a `src/` layout is not in the graph, so a filter for it is refused too. Internal modules only; vendored or third-party code is not traced.
|
|
415
415
|
|
|
416
416
|
### Design Structure Matrix (`archy dsm`)
|
|
417
417
|
|
|
@@ -475,13 +475,13 @@ The server is backed by a persistent parse cache (`.archy/index.db`): each tool
|
|
|
475
475
|
| `archy_score` | Compute the five-metric score (modularity, acyclicity, depth, equality, complexity, geometric mean); optional `record=True` and `strict=True` for the same regression-gate behaviour the CLI offers. Pass `record=True` to record a start-of-session baseline (replaces the removed `archy_record_baseline`). `view="history"` returns the recent score history from `.archy/history.jsonl` (up to `last_n` rows, oldest-first, for comparing deltas over time; replaces the removed `archy_trend`). |
|
|
476
476
|
| `archy_cycles` | Find import cycles. |
|
|
477
477
|
| `archy_check` | Run direct-edge layer rules from `archy.yaml`. Pass `contracts=True` to also run the transitive import-linter contracts (Layers, Forbidden, Independence, Protected, AcyclicSiblings; stricter than the direct edges), nested under the `contracts` field (replaces the removed `archy_contracts`; requires `archy[contracts]`, and degrades to `available=false` with an advisory if the extra is absent). Contracts are skipped when no `archy.yaml` is found (you get a `CheckErrorPayload` first). Always returns `coverage`: how many modules and import edges the rules actually reach, so `passed=true` can be told apart from a config that governs almost nothing. `transitive_checked` says whether this run actually evaluated the `forbid` rules transitively; it is false when contracts were never requested, when they produced no verdict, and when any contract could not have failed, since none of the three evaluated the rules. `transitive_unverified_reason` then says which, naming `archy_check(contracts=True)` if it was never requested, the actual failure if it produced no verdict, and how many contracts matched nothing if that is what happened. So a clean pass is never silent about having seen direct edges only. `min_layers_present:` in `archy.yaml` also gates `passed` here, not just the CLI exit code. `required_violations` reports unsatisfied `required:` rules (module X must transitively reach Y, counting the implicit package-`__init__` import), and gates `passed` too; fix by adding the missing import, not by deleting the rule. Within `contracts`, read `verified`, not `all_kept`: a contract whose module expressions match nothing in the graph is `kept` because it could not have failed, `unverifiable` counts those, and each one carries `matched_nothing` and `unmatched_expressions` naming the patterns that matched no module. |
|
|
478
|
-
| `archy_impact` | Given changed file paths, return what they affect. `mode="blast"` (**default**) returns the modules that transitively import them (blast radius), plus `chains`: the shortest import path back to a changed module (with line numbers) explaining why each is impacted. `mode="affected"` (replaces the removed `archy_affected`) is the CI-shaped lookup instead: modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped (default 5 hops) so a single-line edit doesn't fan out to thousands of nodes; `test_filter` overrides pytest test detection with a recursive glob. `co_change=true` (blast mode, opt-in) adds a `co_changed` list: modules that historically co-change with the edit in git but have no import/call edge to it, so the structural blast radius misses them (`archy coupling` scoped to your edit; source-only, best-effort, the only path that reads git). A file that matches no module comes back in `unresolved` with a `did you mean` in `unresolved_hints`, and `nothing_resolved` is true when none matched, so an empty blast radius is not mistaken for a safe edit. |
|
|
478
|
+
| `archy_impact` | Given changed file paths, return what they affect. `mode="blast"` (**default**) returns the modules that transitively import them (blast radius), plus `chains`: the shortest import path back to a changed module (with line numbers) explaining why each is impacted. `mode="affected"` (replaces the removed `archy_affected`) is the CI-shaped lookup instead: modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped (default 5 hops) so a single-line edit doesn't fan out to thousands of nodes; `test_filter` overrides pytest test detection with a recursive glob, and one that matches no file in the graph is an error, not an empty `impacted_tests`, ending with a `did you mean` when a directory is close. `co_change=true` (blast mode, opt-in) adds a `co_changed` list: modules that historically co-change with the edit in git but have no import/call edge to it, so the structural blast radius misses them (`archy coupling` scoped to your edit; source-only, best-effort, the only path that reads git). A file that matches no module comes back in `unresolved` with a `did you mean` in `unresolved_hints`, and `nothing_resolved` is true when none matched, so an empty blast radius is not mistaken for a safe edit. |
|
|
479
479
|
| `archy_snapshot` | Capture score, cycles, and violations to `.archy/baseline.json`. Call at session start. Also returns an `invariant_brief` (declared layers, forbidden edges, declared `required:` reach rules, acyclic invariant, baseline score, load-bearing modules) to read before the first edit. |
|
|
480
480
|
| `archy_diff` | Compare current state against the snapshot; returns added/resolved cycles & violations, per-component score deltas, and a risk-weighted `summary` whose items carry a `prompt` reframing each delta as a judgment question ("new cycle a -> b; intended, or invert an edge?"). `strict=True` with `baseline` (a committed file) adds a `strict` verdict whose `passed` is false on any cycle or layer violation that baseline does not carry, with `reason` naming the closing edges. |
|
|
481
481
|
| `archy_simulate` | Counterfactual pre-edit check: given a proposed import-edge delta (`add`/`remove` of `{from, to}` pairs), return the would-be cycles, back-edges, layer/SDP/required-reach violations, per-axis score delta, and blast-radius change, with no file written. Test a refactoring hypothesis before committing to it. An endpoint that matches no module gets a `did you mean` (`applied.unresolved_hints`) and its spec is listed in `applied.skipped`; `applied.coverage` is `complete`, `partial` or `none`, and `none` means nothing was simulated, so the zero deltas are not a prediction. |
|
|
482
482
|
| `archy_graph` | Inspect the dependency graph. With no `focus`, `response_format="summary"` (**default**) returns the top-N overview by fan-in / fan-out / PageRank plus top external deps (replaces the removed `archy_graph_summary`; `top_n` controls N); `response_format="full"` returns the complete node/edge dump matching `archy graph --format json`, refusing graphs larger than `max_nodes` (default 500) with an explicit `GraphTooLargePayload`. Pass `focus=[...]` (replaces the removed `archy_graph_focus`) for a bounded subgraph around one or more modules (qualnames or file paths): `depth` caps hops, `direction` is `in`/`out`/`both`, each edge carries import line numbers, and `response_format`/`max_nodes`/`top_n` do not apply. A `focus` name that matches no module comes back in `unresolved` with a `did you mean` in `unresolved_hints`. |
|
|
483
483
|
| `archy_what_to_refactor_next` | Ranked refactor-priority list (replaces the removed `archy_hotspots` and `archy_high_risk_modules` via `lens`). `lens="fused"` (**default**) sums the behavioral lens (CC x churn) and the structural lens (edit-risk: central+fragile) into a `priority`, so a module flagged by *both* generally outranks a comparable single-lens one (a dominant single-lens signal can still rank first). `lens="behavioral"` ranks CC x churn hotspots only (needs git); `lens="structural"` ranks the edit-risk composite only (git-free; pass `min_risk=0` for no floor). Each entry names which lenses fired and carries a one-line `rationale`. An empty list plus a `note` is a real answer. |
|
|
484
|
-
| `archy_dsm` | Design Structure Matrix view of the import graph. `response_format="summary"` (**default**) returns a compact overview (block structure, counts, back-edges, cross-block coupling) without the full cell list. `response_format="full"` returns the positional matrix (cell `(row=source, col=target)` non-empty when source imports target), refusing matrices over `DEFAULT_MAX_DSM_CELLS` cells with a `DSMTooLargePayload`. `group_by` controls row/col ordering (`community` for block-diagonal cohesion, `layer` for layer-violation forensics, `topological` to localize back-edges). `weight` is `imports` or `calls`. Narrow large projects with `focus=<qualname>` + `focus_depth` or `package=<prefix>`. When `baseline_path` is provided, returns a structured diff (regardless of `response_format`) whose `new_back_edges` field flags cycles the edit just introduced. Visualization-only; see [`docs/research/DSM_EMPIRICS.md`](docs/research/DSM_EMPIRICS.md). A `focus` or `package` that matches no module is an error, not an empty matrix. |
|
|
484
|
+
| `archy_dsm` | Design Structure Matrix view of the import graph. `response_format="summary"` (**default**) returns a compact overview (block structure, counts, back-edges, cross-block coupling) without the full cell list. `response_format="full"` returns the positional matrix (cell `(row=source, col=target)` non-empty when source imports target), refusing matrices over `DEFAULT_MAX_DSM_CELLS` cells with a `DSMTooLargePayload`. `group_by` controls row/col ordering (`community` for block-diagonal cohesion, `layer` for layer-violation forensics, `topological` to localize back-edges). `weight` is `imports` or `calls`. Narrow large projects with `focus=<qualname>` + `focus_depth` or `package=<prefix>`. When `baseline_path` is provided, returns a structured diff (regardless of `response_format`) whose `new_back_edges` field flags cycles the edit just introduced. Visualization-only; see [`docs/research/DSM_EMPIRICS.md`](docs/research/DSM_EMPIRICS.md). A `focus` or `package` that matches no module is an error, not an empty matrix, and the error ends with a `did you mean` naming the closest module names when any are close. |
|
|
485
485
|
| `archy_duplicates` | Cluster functions with identical normalized body shape into two tiers: `duplicates` (likely-real, investigate) and `variants` (demoted likely-intentional clusters - same-class / boilerplate / test / vendored / `independent`, each with a `variant_reason`). `co_change=true` (**default**, needs git) adds the `independent` demotion: copies in actively-maintained files that never co-change (deliberately parallel implementations), the principled precision lever that lifts the primary tier above the ~50% syntactic ceiling (§12f). Within the primary tier, `exact=true` marks byte-identical (Type-1) clusters, the highest-confidence subset. `near_miss=true` (opt-in, slower) adds a lower-confidence `near_miss` tier: Type-3 (gapped) clones the exact shape-hash misses, found by token-multiset overlap (§12h). `response_format="summary"` (**default**) returns ranking fields + one sample member per cluster; `"full"` returns member lists. Advisory surfacer, not a score axis: refactorability is a semantic call (see [`docs/research/RESEARCH_METRICS.md`](docs/research/RESEARCH_METRICS.md) §12c/§12f/§12h). `min_nodes` (default 30) skips trivial stubs. |
|
|
486
486
|
| `archy_conventions` | Report the project's own house style, derived from its source: `naming` (class-name suffix families grouped by **home module**, so the module you are about to edit shows its own patterns), `surfaces` (mirrored helper sets like `_x_to_text`/`_x_to_json`, plus names defined in several modules - the "wire all of these together" list), `gates` (sites where a **failed finding** exits non-zero, each with its literal exit `code` and controlling lever: `flag:--strict`, `config:<attr>`, `param:<name>`, `hardcoded`), `errors` (the separate user-error exits - bad config, missing file - kept apart so the gate count stays meaningful), `models` (base-class / frozen / tuple-vs-list census), `bases` (kind families grouped by what they derive from *transitively*, counting only bases the project defines, with suffix agreement reported so a family whose name is not the rule says so), `registries` (`NAME = Ctor(...)` families and the distribution of every keyword passed - how a project declares codes or flags when it does not use classes), `export_gaps` (members absent from an `__all__`, or from a `from .x import Y as Y` block, that already lists their siblings) and `doc_gaps` (members the project's own `.rst`/`.md` surface does not name). Call before adding a class, field, or command to a project you do not know. Advisory: never fails, mutates nothing. `min_family` (default 2) raises the reporting floor; `include_tests` censuses test modules too (default false, because test fixtures dilute a real family). |
|
|
487
487
|
| `archy_module_view` | Everything known about ONE module, complete and unranked - the **lookup** counterpart to `archy_conventions`'s ranked report. Because the report truncates, a module's absence from it means nothing; every list here is complete for the module named, so absence is the answer to "does `risk` import `hotspots`" or "does anything still reach `layers`". Returns `imports_internal` (relative imports resolved), `imported_by` (counting test importers even when tests are otherwise set aside, because a module imported only by tests is imported), `classes`, `functions`, `exports` (null when the module declares no `__all__` and no explicit re-exports - different from an empty one), `suffix_families`, `gates`, and `status`, which says whether the module was censused or set aside and why, so an empty view is never mistaken for "nothing to report". An unknown module name raises rather than returning an empty view. Advisory: never mutates. |
|
|
@@ -526,7 +526,7 @@ The lowest-friction path specifically on Claude Code is the bundled plugin at [`
|
|
|
526
526
|
archy ships a composite action you can drop into any workflow:
|
|
527
527
|
|
|
528
528
|
```yaml
|
|
529
|
-
- uses: hslee16/archy@v0.53.
|
|
529
|
+
- uses: hslee16/archy@v0.53.4
|
|
530
530
|
with:
|
|
531
531
|
command: score # score | check | cycles | diff | history
|
|
532
532
|
path: .
|
|
@@ -556,7 +556,7 @@ Add to `.pre-commit-config.yaml`:
|
|
|
556
556
|
```yaml
|
|
557
557
|
repos:
|
|
558
558
|
- repo: https://github.com/hslee16/archy
|
|
559
|
-
rev: v0.53.
|
|
559
|
+
rev: v0.53.4
|
|
560
560
|
hooks:
|
|
561
561
|
- id: archy-check # layer rules from archy.yaml
|
|
562
562
|
- id: archy-score-strict # regression gate against last recorded score
|
|
@@ -58,7 +58,7 @@ runs:
|
|
|
58
58
|
# Pinned to the same full SHA as this repository's own workflows. A mutable
|
|
59
59
|
# tag lets whoever controls it run code in every consumer's job.
|
|
60
60
|
- name: Install uv
|
|
61
|
-
uses: astral-sh/setup-uv@
|
|
61
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
62
62
|
with:
|
|
63
63
|
enable-cache: true
|
|
64
64
|
|
|
@@ -197,7 +197,7 @@ The breaking final item of the #230 modernization tracker. The surface had grown
|
|
|
197
197
|
|
|
198
198
|
- **Clean removal over aliases.** Keeping the old names as deprecated shims would have left `tools/list` at ~19 entries, which is exactly the cost #227 set out to cut: aliases defer the token saving rather than achieving it. The discoverability gap (an agent that knew the old name gets an unknown-tool error) is handled where agents actually look, in the *surviving* tools' descriptions ("replaces `archy_X`"), not in source comments they never read. Source comments at the deletion sites serve human maintainers only.
|
|
199
199
|
|
|
200
|
-
- **The folds reuse existing helpers; the CLI is untouched.** MCP and CLI are independent presentation layers over the same lib functions, so the consolidation is MCP-only: `archy impact`, `archy affected`, `archy hotspots`, etc. stay as separate CLI commands. `archy_impact(mode="affected")` routes to `
|
|
200
|
+
- **The folds reuse existing helpers; the CLI is untouched.** MCP and CLI are independent presentation layers over the same lib functions, so the consolidation is MCP-only: `archy impact`, `archy affected`, `archy hotspots`, etc. stay as separate CLI commands. `archy_impact(mode="affected")` routes to `mcp_runs.run_affected`; `archy_graph(focus=...)` routes to `mcp_runs.run_graph_focus`; the refactor lenses filter `compute_refactor_priorities` output (the lib fn is unchanged). v0.35 had already pre-shaped the graph fold by making `archy_graph(response_format="summary")` return the exact `archy_graph_summary` shape, so that removal was mechanical.
|
|
201
201
|
|
|
202
202
|
- **Lens semantics carry one documented behavior change.** `archy_what_to_refactor_next(lens="structural")` applies the `min_risk` floor that the old `archy_high_risk_modules` never had, so a very clean project can return fewer rows; callers pass `min_risk=0` to restore the old "top-N unconditionally" behavior. `lens="behavioral"` re-sorts by `hotspot_score` to match the old `archy_hotspots` ranking exactly (the fused `priority` would otherwise let a both-lens module outrank a bigger pure hotspot).
|
|
203
203
|
|
|
@@ -400,5 +400,5 @@ All four were fixed under #625 to #627 (PRs #628, #630, #632, #633), with #624 t
|
|
|
400
400
|
- **An empty result is a false clean.** The fix is never to resolve more (a bare `cli` would match `archy.cli` and every `tests.*cli*` module). It is to refuse, name the nearest candidates, and say in the verdict that nothing was looked up.
|
|
401
401
|
- **Search for the symptom, not the mechanism.** #556 (`dsm --focus` typo prints an empty matrix) already described the worst case, and the duplicate search before filing #625 used the words "ambiguous", "did you mean" and "not found", so it missed it. #628 fixes it (CLI and MCP) and tests it, but #556 stays open: a contributor claimed it and has a pull request in review (#574), which the maintainer has to close or rebase.
|
|
402
402
|
- **Similarity ratios are tuned to a kind of string.** Applied to whole paths, the shared `src/archy/` prefix lifted every sibling over the 0.8 floor (`clx.py` matched `dsm.py` at 0.81). The fix compares the module name the path would have, and `suggest_modules` keeps only misspellings within 0.1 of the closest, so a clear winner is not diluted by siblings that share its prefix (`tests.test_dsmm` offered `test_mcp`, `test_diff` and `test_risk` before that).
|
|
403
|
-
- **mcp 2.x used to drop a tool's `ValueError` text (#636, fixed).** The tool call used to surface `UnexpectedToolError("Error executing tool archy_dsm")` (a `ToolError` subclass) without the message. Expected refusals (`ValueError` / `LookupError`) are now re-raised as `ToolError` at the tool boundary so the reason reaches agents on both majors. Tests pin the exact message on the direct `
|
|
403
|
+
- **mcp 2.x used to drop a tool's `ValueError` text (#636, fixed).** The tool call used to surface `UnexpectedToolError("Error executing tool archy_dsm")` (a `ToolError` subclass) without the message. Expected refusals (`ValueError` / `LookupError`) are now re-raised as `ToolError` at the tool boundary so the reason reaches agents on both majors. Tests pin the exact message on the direct `mcp_runs.run_*` call and through `_call_tool`.
|
|
404
404
|
- **A mutation can be inert twice over.** A mutation helper whose replacement string did not match left the tree unmutated, and the suite "survived". One test also used a stdlib name for an external node, but external nodes are top-level names (`os`, `requests`), so it could never fail. Check that the mutation applied, and assert the fixture reaches the branch.
|
|
@@ -115,6 +115,7 @@ When cutting a new version (Nx.y.z):
|
|
|
115
115
|
- [ ] Glama: log in, navigate to https://glama.ai/mcp/servers/hslee16/archy, edit metadata to match the new tagline / short description if anything changed.
|
|
116
116
|
- [ ] Smithery: same flow at https://smithery.ai/skills/alex-1c6e/archy.
|
|
117
117
|
- [ ] mcp.so / PulseMCP / official registry / awesome-mcp-servers / awesome-claude-code-toolkit: only refresh when there is a substantive change (new MCP tool, new core feature). Patch releases skip these.
|
|
118
|
+
- [ ] If the bundled skill gained a new MCP tool name, raise the Claude plugin floor (`EXPECTED_SPEC` / shim / README) and extend `TOOL_FIRST_VERSION` in `tests/test_plugin.py` (#668).
|
|
118
119
|
- [ ] Update `Last refreshed` to today's date.
|
|
119
120
|
|
|
120
121
|
## Source
|
|
@@ -123,8 +123,7 @@ Known gaps in the tests behind the claims above, each tracked: the network check
|
|
|
123
123
|
subprocess scan can be bypassed with `os.spawn*`, asyncio subprocesses or aliased
|
|
124
124
|
imports ([#694](https://github.com/hslee16/archy/issues/694)); the git check does
|
|
125
125
|
not look at flags after the subcommand
|
|
126
|
-
([#695](https://github.com/hslee16/archy/issues/695));
|
|
127
|
-
file-tree comparison ([#696](https://github.com/hslee16/archy/issues/696)); and
|
|
126
|
+
([#695](https://github.com/hslee16/archy/issues/695)); and
|
|
128
127
|
uninstall is only weakly pinned, with no test on an existing config
|
|
129
128
|
([#697](https://github.com/hslee16/archy/issues/697)). Also, the MCP entry
|
|
130
129
|
install writes runs `uvx archy mcp`, so your agent's launcher fetches archy from
|
|
@@ -76,7 +76,7 @@ Concise-by-default, with a full-dump escape hatch (the #226 response-shaping wor
|
|
|
76
76
|
|
|
77
77
|
## Response models
|
|
78
78
|
|
|
79
|
-
Add to `src/archy/mcp.py
|
|
79
|
+
Add to `src/archy/mcp_payloads.py` (the tool wiring stays in `src/archy/mcp.py`):
|
|
80
80
|
|
|
81
81
|
```python
|
|
82
82
|
class GraphNode(BaseModel):
|
|
@@ -39,7 +39,7 @@ Grounding references, so this spec stays honest about the delta:
|
|
|
39
39
|
(call edges). Each edge carries a `kinds: tuple[str, ...]` that today holds only
|
|
40
40
|
`"import"` and/or `"call"`, plus `is_relative`, `lines`, `call_lines`,
|
|
41
41
|
`call_count`. Extraction is tree-sitter (`parser.py`, `ImportRef` / `CallRef`).
|
|
42
|
-
- **The wire model drops the type.** The MCP `GraphEdge` model (`
|
|
42
|
+
- **The wire model drops the type.** The MCP `GraphEdge` model (`mcp_payloads.py`) exposes
|
|
43
43
|
only `source / target / is_relative / lines`. `kinds` and `call_count` never
|
|
44
44
|
reach an agent.
|
|
45
45
|
- **DSM weight is type-blind.** `dsm.py` weights a cell `1.0` for imports or
|
|
@@ -109,7 +109,7 @@ Notes:
|
|
|
109
109
|
1. `graph.py` `_add_or_extend_edge` / `_add_or_extend_call_edge`: populate the
|
|
110
110
|
richer kinds. `graph_to_dict` already emits all edge attrs, so JSON output gets
|
|
111
111
|
it for free.
|
|
112
|
-
2. `
|
|
112
|
+
2. `mcp_payloads.py` `GraphEdge`: **add `kinds` (and optionally `severity`) to the wire
|
|
113
113
|
model.** This is the single most impactful line for agent consumers, who
|
|
114
114
|
currently cannot see edge type at all.
|
|
115
115
|
3. `dsm.py`: add a `weight="severity"` option alongside `imports` / `calls`, using
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The lowest-friction install path for archy on Claude Code. Bundles:
|
|
4
4
|
|
|
5
|
-
- The archy MCP server registration. It launches through a small Node shim (`bin/archy-mcp.mjs`) that finds a working way to run `archy mcp` over stdio: an installed `archy` (any method), else `uvx archy>=0.
|
|
5
|
+
- The archy MCP server registration. It launches through a small Node shim (`bin/archy-mcp.mjs`) that finds a working way to run `archy mcp` over stdio: an installed `archy` (any method), else `uvx archy>=0.51,<1.0 mcp`, else `python -m archy mcp`. The lower bound guarantees the full current 0.x tool set, including `archy_what_to_refactor_next`, is exposed, and the `<1.0` cap keeps a future breaking 1.0 from being auto-pulled. `uv` is no longer a hard requirement (see ["Why a Node shim"](#why-a-node-shim) below).
|
|
6
6
|
- The canonical [`archy` skill](skills/archy/SKILL.md) (a byte-identical copy of [`skills/archy/SKILL.md`](../../skills/archy/SKILL.md) at the repo root; `tests/test_plugin.py` asserts the two stay in sync)
|
|
7
7
|
|
|
8
8
|
What this plugin does **not** ship (current Claude Code plugin constraints, May 2026):
|
|
@@ -16,7 +16,7 @@ Two gotchas worth knowing up front:
|
|
|
16
16
|
|
|
17
17
|
**(1) If you already wired archy in manually, remove it first.** If `~/.claude/settings.json` already has an `mcpServers.archy` stanza from a previous manual install, every archy tool will appear twice once the plugin loads (once as `mcp__archy__*` from the manual stanza, once as `mcp__plugin_archy_archy__*` from the plugin). Both work, but the agent sees 28 tool descriptions instead of 14 and has to disambiguate. Remove the manual stanza before installing the plugin, or remove it after if you preferred the shorter prefix.
|
|
18
18
|
|
|
19
|
-
**(2) If you've installed archy as a `uv tool`, make sure it's recent.** When the shim falls through to `uvx`, `uvx` prefers an installed tool over fetching from PyPI, so a stale `uv tool install archy` (say, from a year ago) will mask the release the plugin pins to. The `archy>=0.
|
|
19
|
+
**(2) If you've installed archy as a `uv tool`, make sure it's recent.** When the shim falls through to `uvx`, `uvx` prefers an installed tool over fetching from PyPI, so a stale `uv tool install archy` (say, from a year ago) will mask the release the plugin pins to. The `archy>=0.51,<1.0` specifier the shim passes will refuse to use an older installed tool, but to avoid the confusion either remove the install (`uv tool uninstall archy`) and let `uvx` cache fresh, or refresh it deliberately (`uv tool upgrade archy`). (If you have a current `archy` on `PATH`, the shim uses it directly and never reaches `uvx`.)
|
|
20
20
|
|
|
21
21
|
## Install (local development)
|
|
22
22
|
|
|
@@ -56,8 +56,8 @@ plugins/claude/
|
|
|
56
56
|
|
|
57
57
|
## Why a Node shim?
|
|
58
58
|
|
|
59
|
-
The manifest runs `node ${CLAUDE_PLUGIN_ROOT}/bin/archy-mcp.mjs` rather than `uvx archy ... mcp` directly. The shim removes the previous **hard `uv` requirement**: before, a user without `uv` on `PATH` got a silent "server failed to start" and none of the `archy_*` tools loaded. Now the shim tries, in order, an installed `archy` (from any of `pipx`/`uv tool`/`pip`), then `uvx archy>=0.
|
|
59
|
+
The manifest runs `node ${CLAUDE_PLUGIN_ROOT}/bin/archy-mcp.mjs` rather than `uvx archy ... mcp` directly. The shim removes the previous **hard `uv` requirement**: before, a user without `uv` on `PATH` got a silent "server failed to start" and none of the `archy_*` tools loaded. Now the shim tries, in order, an installed `archy` (from any of `pipx`/`uv tool`/`pip`), then `uvx archy>=0.51,<1.0 mcp` (which fetches archy on demand if `uv` is present), then `python -m archy mcp`; if none are available it prints an actionable message telling you exactly what to install. The version bound is unchanged in meaning: the lower bound exposes the full current tool set (e.g. `archy_what_to_refactor_next`) and the `<1.0` cap stops a future breaking 1.0 from being auto-pulled.
|
|
60
60
|
|
|
61
61
|
`node` is the launcher rather than a shell script because Claude Code spawns MCP servers without a shell and there is no per-OS override in the plugin manifest, so a POSIX `.sh` would not run on Windows. `node` is the one interpreter Claude Code guarantees on `PATH` across macOS, Linux, and Windows, so a single `.mjs` entry point covers all three: it spawns `.exe` launchers (how `uv`, `pip`, and `python` ship on Windows) directly, and routes the rarer `.cmd`/`.bat` shims through `cmd.exe`. It also skips unusable matches (a directory or non-executable file sharing the name, or the 0-byte Windows Store `python` alias) and falls through to the next candidate.
|
|
62
62
|
|
|
63
|
-
**No prerequisite for the common case.** If you have `uv` *or* any `archy` install, the tools just work. If you have neither, you will see a one-line hint to run `curl -LsSf https://astral.sh/uv/install.sh | sh` (uv bootstraps its own Python) or `pipx install archy`, then restart Claude Code. The shim's version specifier (`archy>=0.
|
|
63
|
+
**No prerequisite for the common case.** If you have `uv` *or* any `archy` install, the tools just work. If you have neither, you will see a one-line hint to run `curl -LsSf https://astral.sh/uv/install.sh | sh` (uv bootstraps its own Python) or `pipx install archy`, then restart Claude Code. The shim's version specifier (`archy>=0.51,<1.0`) lives in `bin/archy-mcp.mjs`; `tests/test_plugin.py` pins it so the README and launcher cannot drift.
|
|
@@ -27,7 +27,7 @@ import { delimiter, join } from "node:path";
|
|
|
27
27
|
// Keep in sync with plugins/claude/README.md and tests/test_plugin.py. The lower
|
|
28
28
|
// bound guarantees the full current tool set; the `<1.0` cap stops a breaking
|
|
29
29
|
// 1.0 from being auto-pulled into the stanza.
|
|
30
|
-
const SPEC = "archy>=0.
|
|
30
|
+
const SPEC = "archy>=0.51,<1.0";
|
|
31
31
|
|
|
32
32
|
const isWindows = process.platform === "win32";
|
|
33
33
|
// Only extensions we can actually launch: .exe/.com directly, .cmd/.bat via
|
|
@@ -112,7 +112,7 @@ For CI-shaped test selection (a depth-bounded variant of `archy_impact` that pre
|
|
|
112
112
|
archy_impact(path=".", files=["src/app/db.py"], mode="affected", depth=5)
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
Use this instead of the default `mode="blast"` when the question is "given this diff, which tests should I run?" rather than "what's the full blast radius?". Returns `impacted_tests` and `impacted_modules` as separate lists. Test detection defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `test_filter=<recursive glob>`. The depth cap prevents a single-line edit on a monorepo from fanning out to thousands of nodes. The CLI form `git diff --name-only HEAD | archy affected . --stdin -q | xargs pytest` is the canonical CI / pre-commit shape.
|
|
115
|
+
Use this instead of the default `mode="blast"` when the question is "given this diff, which tests should I run?" rather than "what's the full blast radius?". Returns `impacted_tests` and `impacted_modules` as separate lists. Test detection defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `test_filter=<recursive glob>`. A filter that matches no file in the graph is an error, not an empty `impacted_tests`, ending with a `did you mean` when a directory is close. The depth cap prevents a single-line edit on a monorepo from fanning out to thousands of nodes. The CLI form `git diff --name-only HEAD | archy affected . --stdin -q | xargs pytest` is the canonical CI / pre-commit shape.
|
|
116
116
|
|
|
117
117
|
For positional context (where blocks are dense, where back-edges sit, where layer leakage shows up), reach for the Design Structure Matrix:
|
|
118
118
|
|
|
@@ -191,17 +191,17 @@ Returns a `DSMDiff` whose `new_back_edges` lists each `source -> target` pair th
|
|
|
191
191
|
|---|---|---|
|
|
192
192
|
| `archy_snapshot` | `(path)` | Once at session start. Writes `.archy/baseline.json`. |
|
|
193
193
|
| `archy_diff` | `(path, baseline=None, strict=False)` | After every edit. Compares current state to the snapshot. `strict=True` needs `baseline` (a committed file) and adds a `strict` verdict: `passed=false` on a cycle or layer violation that baseline does not carry. |
|
|
194
|
-
| `archy_impact` | `(path, files: list[str], mode="blast", max_chains=..., depth=5, test_filter=None, co_change=False)` | `mode="blast"` (default): sizing a refactor or removal by transitive reverse-dependents (with `chains`). `mode="affected"` (replaces `archy_affected`): CI-shaped impact, returns modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped for monorepos. Use `affected` for "which tests should I run for this diff?". `co_change=True` (blast mode, opt-in) adds `co_changed`: modules that co-change with the edit in git history but have no import/call edge (the behavioral blind spot the structural blast radius misses); source-only, best-effort. A file that matches no module comes back in `unresolved` (with `unresolved_hints`); `nothing_resolved: true` means no blast radius was computed, not that the edit is safe. |
|
|
194
|
+
| `archy_impact` | `(path, files: list[str], mode="blast", max_chains=..., depth=5, test_filter=None, co_change=False)` | `mode="blast"` (default): sizing a refactor or removal by transitive reverse-dependents (with `chains`). `mode="affected"` (replaces `archy_affected`): CI-shaped impact, returns modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped for monorepos. Use `affected` for "which tests should I run for this diff?"; a `test_filter` that matches no file in the graph is an error. `co_change=True` (blast mode, opt-in) adds `co_changed`: modules that co-change with the edit in git history but have no import/call edge (the behavioral blind spot the structural blast radius misses); source-only, best-effort. A file that matches no module comes back in `unresolved` (with `unresolved_hints`); `nothing_resolved: true` means no blast radius was computed, not that the edit is safe. |
|
|
195
195
|
| `archy_simulate` | `(path, add: list[{from,to}]=None, remove=None)` | Predict an import-edge change *before writing it*: would-be cycles, layer violations, score + blast-radius delta. Reshape a plan that introduces a cycle before editing. An endpoint that matches no module is skipped and named in `applied.skipped` with a `did you mean` in `applied.unresolved_hints`; read `applied.coverage`: `none` means nothing was simulated and the zero deltas are NOT a prediction that the edit is free. |
|
|
196
196
|
| `archy_graph` | `(path, response_format="summary", focus=None, depth=2, direction="both", internal_only=True, max_nodes=500, top_n=20)` | No `focus`: `response_format="summary"` (default) = top-N overview by fan-in / fan-out / PageRank (replaces `archy_graph_summary`); `response_format="full"` = full dump, refused over `max_nodes`. With `focus=[...]` (replaces `archy_graph_focus`): bounded local neighborhood with edges + line numbers; `depth`/`direction` apply and `response_format`/`max_nodes`/`top_n` do not. |
|
|
197
197
|
| `archy_what_to_refactor_next` | `(path, lens="fused", top_n=10, since=None, min_risk=0.15)` | "What should I refactor first?" `lens="fused"` (default) sums hotspots (CC x churn) and edit-risk (central+fragile) into a `priority`. `lens="behavioral"` (replaces `archy_hotspots`): CC x churn only, needs git. `lens="structural"` (replaces `archy_high_risk_modules`): edit-risk only, git-free; pass `min_risk=0` for no floor. Each entry names the firing `lenses` + a `rationale`. |
|
|
198
198
|
| `archy_check` | `(path, config_path=None, contracts=False, contracts_config_path=None)` | After import changes. Direct-edge layer + SDP rules from `archy.yaml`. `contracts=True` also runs transitive import-linter contracts (replaces `archy_contracts`), nested under `contracts`; requires `archy[contracts]` (else `available=false` advisory), and is skipped when no `archy.yaml` is found. Always returns `coverage`: modules and edges the layer rules actually reach, plus per-layer sizes, so a clean `passed=true` can be told apart from a config that governs almost nothing. `transitive_checked` says whether this run actually evaluated the `forbid` rules transitively; it is false when contracts were never requested, when they produced no verdict, and when any contract could not have failed, since none of the three evaluated the rules. `transitive_unverified_reason` then says which, naming `archy_check(contracts=True)` if it was never requested, the actual failure if it produced no verdict, and how many contracts matched nothing if that is what happened. So a clean pass is never silent about having seen direct edges only. `min_layers_present:` in archy.yaml additionally fails the check when declared layers are absent from the tree. `required_violations` reports unsatisfied `required:` rules (module X must transitively reach Y, counting the implicit package-`__init__` import); fix by adding the missing import, not by deleting the rule. Within `contracts`, read `verified`, not `all_kept`: a contract whose module expressions match nothing in the graph is `kept` because it could not have failed, `unverifiable` counts those, and each one carries `matched_nothing` and `unmatched_expressions` naming the patterns that matched no module. |
|
|
199
199
|
| `archy_cycles` | `(path, min_size=2, internal_only=True)` | Standalone cycle listing (Tarjan SCCs + self-loops). |
|
|
200
200
|
| `archy_score` | `(path, view="current", internal_only=True, record=False, strict=False, strict_tolerance=0.02, last_n=10)` | Composite five-axis quality score (modularity, acyclicity, depth, equality, complexity). Exposes a call-weighted Newman Q diagnostic alongside the unweighted modularity axis. `record=True` appends to `.archy/history.jsonl` (replaces `archy_record_baseline` for the start-of-session entry); `strict=True` fails on regression beyond tolerance. `view="history"` returns the recent score history (up to `last_n` rows, oldest-first) instead of the current score (replaces `archy_trend`). |
|
|
201
|
-
| `archy_dsm` | `(path, response_format="summary", group_by="community", weight="imports", focus=None, focus_depth=1, package=None, baseline_path=None)` | Design Structure Matrix view of the import graph. `response_format="summary"` (default) = compact block structure + counts + back-edges; `response_format="full"` = full matrix (refused over `DEFAULT_MAX_DSM_CELLS` cells). `group_by` is `community` / `layer` / `topological`. Narrow large projects with `focus` + `focus_depth` or `package`. When `baseline_path` is provided, returns a `DSMDiff` (regardless of `response_format`) whose `new_back_edges` flags cycles the edit just introduced. Visualization-only; not part of any score. A `focus` or `package` that matches nothing is an error. |
|
|
201
|
+
| `archy_dsm` | `(path, response_format="summary", group_by="community", weight="imports", focus=None, focus_depth=1, package=None, baseline_path=None)` | Design Structure Matrix view of the import graph. `response_format="summary"` (default) = compact block structure + counts + back-edges; `response_format="full"` = full matrix (refused over `DEFAULT_MAX_DSM_CELLS` cells). `group_by` is `community` / `layer` / `topological`. Narrow large projects with `focus` + `focus_depth` or `package`. When `baseline_path` is provided, returns a `DSMDiff` (regardless of `response_format`) whose `new_back_edges` flags cycles the edit just introduced. Visualization-only; not part of any score. A `focus` or `package` that matches nothing is an error, ending with a `did you mean` that names the closest modules when any are close. |
|
|
202
202
|
| `archy_duplicates` | `(path, response_format="summary", min_nodes=30, top_n=20, members=2, co_change=True, near_miss=False)` | Two-tier duplicate-function clusters (identical normalized body shape): `duplicates` (likely-real, investigate) + `variants` (demoted likely-intentional clusters - same-class / boilerplate / test / vendored / `independent`, each with a `variant_reason`). `co_change=True` (default, needs git) demotes `independent` clusters (copies in actively-maintained files that never co-change = deliberately parallel), the principled lever that lifts primary precision above the ~50% syntactic ceiling (§12f). `near_miss=True` (opt-in, slower) adds a lower-confidence `near_miss` tier: Type-3 (gapped) clones the exact shape-hash misses (a copy with statements inserted/removed), found by token-multiset overlap, each with a `similarity` (§12h). Within `duplicates`, `exact=true` marks byte-identical (Type-1) clusters, the highest-confidence "definitely refactor these" subset. Advisory surfacer, not a score axis; refactorability is a semantic call you make. `response_format="summary"` (default) = ranking fields + one sample member per cluster; `"full"` = full member lists. |
|
|
203
|
-
| `archy_conventions` | `(path, min_family=2, include_tests=False)` | The project's derived house style: `naming` (class-suffix families grouped by **home module**, each with `concentration`), `surfaces` (per-output-surface helper sets and cross-module mirrored names - update these together), `gates` (**finding-failure** exits only, each with its literal exit `code` and lever `flag:--strict` / `config:<attr>` / `param:<name>` / `hardcoded`, so "gate or warn?" is answered from the code), `errors` (user-error exits, counted separately), `models` (base-class, frozen, tuple-vs-list census), `bases` (kind families by *transitive* project-defined base, with suffix agreement, so a family reached through an intermediate class is reported under the base that names it), `registries` (`NAME = Ctor(...)` families and the keywords passed), `export_gaps` and `doc_gaps` (members an `__all__` or the project's own docs leave out while listing their siblings). Read it BEFORE naming a new class or wiring a new field. Advisory; never fails. `include_tests` censuses test modules too (default false). |
|
|
204
|
-
| `archy_module_view` | `(path, module, include_tests=False)` | **The lookup form, for a NEGATIVE.** `archy_conventions` ranks and truncates, so a module's absence from it proves nothing; every list here is COMPLETE for the one `module` named
|
|
203
|
+
| `archy_conventions` | `(path, min_family=2, include_tests=False)` | The project's derived house style: `naming` (class-suffix families grouped by **home module**, each with `concentration`), `surfaces` (per-output-surface helper sets and cross-module mirrored names - update these together), `gates` (**finding-failure** exits only, each with its literal exit `code` and lever `flag:--strict` / `config:<attr>` / `param:<name>` / `hardcoded`, so "gate or warn?" is answered from the code), `errors` (user-error exits, counted separately), `models` (base-class, frozen, tuple-vs-list census), `bases` (kind families by *transitive* project-defined base, with suffix agreement, so a family reached through an intermediate class is reported under the base that names it), `registries` (`NAME = Ctor(...)` families and the keywords passed), `export_gaps` and `doc_gaps` (members an `__all__` or the project's own docs leave out while listing their siblings). Read it BEFORE naming a new class or wiring a new field. Also reports `unparsed_modules` when some modules could not be parsed (census still advisory). Advisory; never fails. `include_tests` censuses test modules too (default false). |
|
|
204
|
+
| `archy_module_view` | `(path, module, include_tests=False)` | **The lookup form, for a NEGATIVE.** `archy_conventions` ranks and truncates, so a module's absence from it proves nothing; every list here is COMPLETE for the one `module` named **when `census_complete` is true**, so absence IS the answer only then. When some modules could not be parsed, `census_complete` is false and `unparsed_modules` names each skip (an unparsed target returns a view instead of raising). Use for "does `risk` import `hotspots`", "does anything still reach `layers`", "is this module dead". Returns `imports_internal` (relative imports resolved), `imported_by` (test importers counted even when tests are otherwise set aside), `classes`, `functions`, `exports` (null when there is no `__all__` and no explicit re-export, which differs from an empty one), `suffix_families`, `gates`, `census_complete`, `unparsed_modules`, and `status` (censused, unparsed with reason, or set aside and why - so an empty result is never read as "nothing to report"). Raises only on a truly unknown module name. Advisory; mutates nothing. |
|
|
205
205
|
| `archy_brief` | `(path, top_n=8, contracts=False, include_tests=False)` | **One call before starting on an unfamiliar repository.** Composes `archy_conventions` (bounded to `top_n` rows per ranked section; `conventions.totals` says how many were dropped, and `gates`, `errors`, `export_gaps`, `doc_gaps` are never truncated), the layer `coverage` of `archy.yaml` (null when there is none), and with `contracts=True` the transitive import-linter verdict. Does NOT run the direct-edge check, so `transitive_checked=false` plus a `transitive_unverified_reason` means the `forbid` rules are unverified, not that they hold. Ranked and truncated, so for a negative use `archy_module_view`. Same field names as `archy brief --format json`. Advisory; mutates nothing. |
|
|
206
206
|
|
|
207
207
|
The MCP server also exposes a `loop` **prompt** containing the canonical playbook in archy's own words. Fetch it via `prompts/get name="loop"` for the always-current version.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.hslee16/archy",
|
|
4
4
|
"title": "archy",
|
|
5
5
|
"description": "Architectural sensor for Python codebases.",
|
|
6
|
-
"version": "0.53.
|
|
6
|
+
"version": "0.53.4",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "https://github.com/hslee16/archy",
|
|
9
9
|
"source": "github"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"registryType": "pypi",
|
|
15
15
|
"identifier": "archy",
|
|
16
|
-
"version": "0.53.
|
|
16
|
+
"version": "0.53.4",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|
|
@@ -112,7 +112,7 @@ For CI-shaped test selection (a depth-bounded variant of `archy_impact` that pre
|
|
|
112
112
|
archy_impact(path=".", files=["src/app/db.py"], mode="affected", depth=5)
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
Use this instead of the default `mode="blast"` when the question is "given this diff, which tests should I run?" rather than "what's the full blast radius?". Returns `impacted_tests` and `impacted_modules` as separate lists. Test detection defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `test_filter=<recursive glob>`. The depth cap prevents a single-line edit on a monorepo from fanning out to thousands of nodes. The CLI form `git diff --name-only HEAD | archy affected . --stdin -q | xargs pytest` is the canonical CI / pre-commit shape.
|
|
115
|
+
Use this instead of the default `mode="blast"` when the question is "given this diff, which tests should I run?" rather than "what's the full blast radius?". Returns `impacted_tests` and `impacted_modules` as separate lists. Test detection defaults to pytest conventions (`test_*.py`, `*_test.py`, anything under a `tests/` directory); override with `test_filter=<recursive glob>`. A filter that matches no file in the graph is an error, not an empty `impacted_tests`, ending with a `did you mean` when a directory is close. The depth cap prevents a single-line edit on a monorepo from fanning out to thousands of nodes. The CLI form `git diff --name-only HEAD | archy affected . --stdin -q | xargs pytest` is the canonical CI / pre-commit shape.
|
|
116
116
|
|
|
117
117
|
For positional context (where blocks are dense, where back-edges sit, where layer leakage shows up), reach for the Design Structure Matrix:
|
|
118
118
|
|
|
@@ -191,17 +191,17 @@ Returns a `DSMDiff` whose `new_back_edges` lists each `source -> target` pair th
|
|
|
191
191
|
|---|---|---|
|
|
192
192
|
| `archy_snapshot` | `(path)` | Once at session start. Writes `.archy/baseline.json`. |
|
|
193
193
|
| `archy_diff` | `(path, baseline=None, strict=False)` | After every edit. Compares current state to the snapshot. `strict=True` needs `baseline` (a committed file) and adds a `strict` verdict: `passed=false` on a cycle or layer violation that baseline does not carry. |
|
|
194
|
-
| `archy_impact` | `(path, files: list[str], mode="blast", max_chains=..., depth=5, test_filter=None, co_change=False)` | `mode="blast"` (default): sizing a refactor or removal by transitive reverse-dependents (with `chains`). `mode="affected"` (replaces `archy_affected`): CI-shaped impact, returns modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped for monorepos. Use `affected` for "which tests should I run for this diff?". `co_change=True` (blast mode, opt-in) adds `co_changed`: modules that co-change with the edit in git history but have no import/call edge (the behavioral blind spot the structural blast radius misses); source-only, best-effort. A file that matches no module comes back in `unresolved` (with `unresolved_hints`); `nothing_resolved: true` means no blast radius was computed, not that the edit is safe. |
|
|
194
|
+
| `archy_impact` | `(path, files: list[str], mode="blast", max_chains=..., depth=5, test_filter=None, co_change=False)` | `mode="blast"` (default): sizing a refactor or removal by transitive reverse-dependents (with `chains`). `mode="affected"` (replaces `archy_affected`): CI-shaped impact, returns modules pre-classified into `impacted_tests` and `impacted_modules`, depth-capped for monorepos. Use `affected` for "which tests should I run for this diff?"; a `test_filter` that matches no file in the graph is an error. `co_change=True` (blast mode, opt-in) adds `co_changed`: modules that co-change with the edit in git history but have no import/call edge (the behavioral blind spot the structural blast radius misses); source-only, best-effort. A file that matches no module comes back in `unresolved` (with `unresolved_hints`); `nothing_resolved: true` means no blast radius was computed, not that the edit is safe. |
|
|
195
195
|
| `archy_simulate` | `(path, add: list[{from,to}]=None, remove=None)` | Predict an import-edge change *before writing it*: would-be cycles, layer violations, score + blast-radius delta. Reshape a plan that introduces a cycle before editing. An endpoint that matches no module is skipped and named in `applied.skipped` with a `did you mean` in `applied.unresolved_hints`; read `applied.coverage`: `none` means nothing was simulated and the zero deltas are NOT a prediction that the edit is free. |
|
|
196
196
|
| `archy_graph` | `(path, response_format="summary", focus=None, depth=2, direction="both", internal_only=True, max_nodes=500, top_n=20)` | No `focus`: `response_format="summary"` (default) = top-N overview by fan-in / fan-out / PageRank (replaces `archy_graph_summary`); `response_format="full"` = full dump, refused over `max_nodes`. With `focus=[...]` (replaces `archy_graph_focus`): bounded local neighborhood with edges + line numbers; `depth`/`direction` apply and `response_format`/`max_nodes`/`top_n` do not. |
|
|
197
197
|
| `archy_what_to_refactor_next` | `(path, lens="fused", top_n=10, since=None, min_risk=0.15)` | "What should I refactor first?" `lens="fused"` (default) sums hotspots (CC x churn) and edit-risk (central+fragile) into a `priority`. `lens="behavioral"` (replaces `archy_hotspots`): CC x churn only, needs git. `lens="structural"` (replaces `archy_high_risk_modules`): edit-risk only, git-free; pass `min_risk=0` for no floor. Each entry names the firing `lenses` + a `rationale`. |
|
|
198
198
|
| `archy_check` | `(path, config_path=None, contracts=False, contracts_config_path=None)` | After import changes. Direct-edge layer + SDP rules from `archy.yaml`. `contracts=True` also runs transitive import-linter contracts (replaces `archy_contracts`), nested under `contracts`; requires `archy[contracts]` (else `available=false` advisory), and is skipped when no `archy.yaml` is found. Always returns `coverage`: modules and edges the layer rules actually reach, plus per-layer sizes, so a clean `passed=true` can be told apart from a config that governs almost nothing. `transitive_checked` says whether this run actually evaluated the `forbid` rules transitively; it is false when contracts were never requested, when they produced no verdict, and when any contract could not have failed, since none of the three evaluated the rules. `transitive_unverified_reason` then says which, naming `archy_check(contracts=True)` if it was never requested, the actual failure if it produced no verdict, and how many contracts matched nothing if that is what happened. So a clean pass is never silent about having seen direct edges only. `min_layers_present:` in archy.yaml additionally fails the check when declared layers are absent from the tree. `required_violations` reports unsatisfied `required:` rules (module X must transitively reach Y, counting the implicit package-`__init__` import); fix by adding the missing import, not by deleting the rule. Within `contracts`, read `verified`, not `all_kept`: a contract whose module expressions match nothing in the graph is `kept` because it could not have failed, `unverifiable` counts those, and each one carries `matched_nothing` and `unmatched_expressions` naming the patterns that matched no module. |
|
|
199
199
|
| `archy_cycles` | `(path, min_size=2, internal_only=True)` | Standalone cycle listing (Tarjan SCCs + self-loops). |
|
|
200
200
|
| `archy_score` | `(path, view="current", internal_only=True, record=False, strict=False, strict_tolerance=0.02, last_n=10)` | Composite five-axis quality score (modularity, acyclicity, depth, equality, complexity). Exposes a call-weighted Newman Q diagnostic alongside the unweighted modularity axis. `record=True` appends to `.archy/history.jsonl` (replaces `archy_record_baseline` for the start-of-session entry); `strict=True` fails on regression beyond tolerance. `view="history"` returns the recent score history (up to `last_n` rows, oldest-first) instead of the current score (replaces `archy_trend`). |
|
|
201
|
-
| `archy_dsm` | `(path, response_format="summary", group_by="community", weight="imports", focus=None, focus_depth=1, package=None, baseline_path=None)` | Design Structure Matrix view of the import graph. `response_format="summary"` (default) = compact block structure + counts + back-edges; `response_format="full"` = full matrix (refused over `DEFAULT_MAX_DSM_CELLS` cells). `group_by` is `community` / `layer` / `topological`. Narrow large projects with `focus` + `focus_depth` or `package`. When `baseline_path` is provided, returns a `DSMDiff` (regardless of `response_format`) whose `new_back_edges` flags cycles the edit just introduced. Visualization-only; not part of any score. A `focus` or `package` that matches nothing is an error. |
|
|
201
|
+
| `archy_dsm` | `(path, response_format="summary", group_by="community", weight="imports", focus=None, focus_depth=1, package=None, baseline_path=None)` | Design Structure Matrix view of the import graph. `response_format="summary"` (default) = compact block structure + counts + back-edges; `response_format="full"` = full matrix (refused over `DEFAULT_MAX_DSM_CELLS` cells). `group_by` is `community` / `layer` / `topological`. Narrow large projects with `focus` + `focus_depth` or `package`. When `baseline_path` is provided, returns a `DSMDiff` (regardless of `response_format`) whose `new_back_edges` flags cycles the edit just introduced. Visualization-only; not part of any score. A `focus` or `package` that matches nothing is an error, ending with a `did you mean` that names the closest modules when any are close. |
|
|
202
202
|
| `archy_duplicates` | `(path, response_format="summary", min_nodes=30, top_n=20, members=2, co_change=True, near_miss=False)` | Two-tier duplicate-function clusters (identical normalized body shape): `duplicates` (likely-real, investigate) + `variants` (demoted likely-intentional clusters - same-class / boilerplate / test / vendored / `independent`, each with a `variant_reason`). `co_change=True` (default, needs git) demotes `independent` clusters (copies in actively-maintained files that never co-change = deliberately parallel), the principled lever that lifts primary precision above the ~50% syntactic ceiling (§12f). `near_miss=True` (opt-in, slower) adds a lower-confidence `near_miss` tier: Type-3 (gapped) clones the exact shape-hash misses (a copy with statements inserted/removed), found by token-multiset overlap, each with a `similarity` (§12h). Within `duplicates`, `exact=true` marks byte-identical (Type-1) clusters, the highest-confidence "definitely refactor these" subset. Advisory surfacer, not a score axis; refactorability is a semantic call you make. `response_format="summary"` (default) = ranking fields + one sample member per cluster; `"full"` = full member lists. |
|
|
203
|
-
| `archy_conventions` | `(path, min_family=2, include_tests=False)` | The project's derived house style: `naming` (class-suffix families grouped by **home module**, each with `concentration`), `surfaces` (per-output-surface helper sets and cross-module mirrored names - update these together), `gates` (**finding-failure** exits only, each with its literal exit `code` and lever `flag:--strict` / `config:<attr>` / `param:<name>` / `hardcoded`, so "gate or warn?" is answered from the code), `errors` (user-error exits, counted separately), `models` (base-class, frozen, tuple-vs-list census), `bases` (kind families by *transitive* project-defined base, with suffix agreement, so a family reached through an intermediate class is reported under the base that names it), `registries` (`NAME = Ctor(...)` families and the keywords passed), `export_gaps` and `doc_gaps` (members an `__all__` or the project's own docs leave out while listing their siblings). Read it BEFORE naming a new class or wiring a new field. Advisory; never fails. `include_tests` censuses test modules too (default false). |
|
|
204
|
-
| `archy_module_view` | `(path, module, include_tests=False)` | **The lookup form, for a NEGATIVE.** `archy_conventions` ranks and truncates, so a module's absence from it proves nothing; every list here is COMPLETE for the one `module` named
|
|
203
|
+
| `archy_conventions` | `(path, min_family=2, include_tests=False)` | The project's derived house style: `naming` (class-suffix families grouped by **home module**, each with `concentration`), `surfaces` (per-output-surface helper sets and cross-module mirrored names - update these together), `gates` (**finding-failure** exits only, each with its literal exit `code` and lever `flag:--strict` / `config:<attr>` / `param:<name>` / `hardcoded`, so "gate or warn?" is answered from the code), `errors` (user-error exits, counted separately), `models` (base-class, frozen, tuple-vs-list census), `bases` (kind families by *transitive* project-defined base, with suffix agreement, so a family reached through an intermediate class is reported under the base that names it), `registries` (`NAME = Ctor(...)` families and the keywords passed), `export_gaps` and `doc_gaps` (members an `__all__` or the project's own docs leave out while listing their siblings). Read it BEFORE naming a new class or wiring a new field. Also reports `unparsed_modules` when some modules could not be parsed (census still advisory). Advisory; never fails. `include_tests` censuses test modules too (default false). |
|
|
204
|
+
| `archy_module_view` | `(path, module, include_tests=False)` | **The lookup form, for a NEGATIVE.** `archy_conventions` ranks and truncates, so a module's absence from it proves nothing; every list here is COMPLETE for the one `module` named **when `census_complete` is true**, so absence IS the answer only then. When some modules could not be parsed, `census_complete` is false and `unparsed_modules` names each skip (an unparsed target returns a view instead of raising). Use for "does `risk` import `hotspots`", "does anything still reach `layers`", "is this module dead". Returns `imports_internal` (relative imports resolved), `imported_by` (test importers counted even when tests are otherwise set aside), `classes`, `functions`, `exports` (null when there is no `__all__` and no explicit re-export, which differs from an empty one), `suffix_families`, `gates`, `census_complete`, `unparsed_modules`, and `status` (censused, unparsed with reason, or set aside and why - so an empty result is never read as "nothing to report"). Raises only on a truly unknown module name. Advisory; mutates nothing. |
|
|
205
205
|
| `archy_brief` | `(path, top_n=8, contracts=False, include_tests=False)` | **One call before starting on an unfamiliar repository.** Composes `archy_conventions` (bounded to `top_n` rows per ranked section; `conventions.totals` says how many were dropped, and `gates`, `errors`, `export_gaps`, `doc_gaps` are never truncated), the layer `coverage` of `archy.yaml` (null when there is none), and with `contracts=True` the transitive import-linter verdict. Does NOT run the direct-edge check, so `transitive_checked=false` plus a `transitive_unverified_reason` means the `forbid` rules are unverified, not that they hold. Ranked and truncated, so for a negative use `archy_module_view`. Same field names as `archy brief --format json`. Advisory; mutates nothing. |
|
|
206
206
|
|
|
207
207
|
The MCP server also exposes a `loop` **prompt** containing the canonical playbook in archy's own words. Fetch it via `prompts/get name="loop"` for the always-current version.
|