Directories
¶
| Path | Synopsis |
|---|---|
|
Package agenttask assembles the structured repair-task block (spec §13) from gate findings.
|
Package agenttask assembles the structured repair-task block (spec §13) from gate findings. |
|
Package baseline handles loading and saving the archfit baseline file, which tracks accepted findings and metric snapshots across runs.
|
Package baseline handles loading and saving the archfit baseline file, which tracks accepted findings and metric snapshots across runs. |
|
Package classify assigns Balanced Coupling classifications to graph edges: strength, distance, volatility, and explicitness.
|
Package classify assigns Balanced Coupling classifications to graph edges: strength, distance, volatility, and explicitness. |
|
Package config defines the Config struct, its view projections, and the Load function that parses and validates an archfit.yaml configuration file.
|
Package config defines the Config struct, its view projections, and the Load function that parses and validates an archfit.yaml configuration file. |
|
Package engine implements the pipeline orchestrator that runs extractors, classify, rules, status, metrics, and renderers in sequence.
|
Package engine implements the pipeline orchestrator that runs extractors, classify, rules, status, metrics, and renderers in sequence. |
|
extract
|
|
|
astgrep
Package astgrep implements the ports.PatternProvider port for ast-grep.
|
Package astgrep implements the ports.PatternProvider port for ast-grep. |
|
clones
Package clones provides a clone-detection runner that identifies duplicated code blocks across files.
|
Package clones provides a clone-detection runner that identifies duplicated code blocks across files. |
|
complexity
Package complexity provides a cyclomatic-complexity runner that collects per-function CCN values via the external lizard tool.
|
Package complexity provides a cyclomatic-complexity runner that collects per-function CCN values via the external lizard tool. |
|
gitnexus
Package gitnexus provides an optional, opt-in dependant-count provider backed by the gitnexus CLI's knowledge graph.
|
Package gitnexus provides an optional, opt-in dependant-count provider backed by the gitnexus CLI's knowledge graph. |
|
golang
Package golang implements the Go import extractor using golang.org/x/tools/go/packages.
|
Package golang implements the Go import extractor using golang.org/x/tools/go/packages. |
|
loc
Package loc counts source-file line counts for the structural_weight metric.
|
Package loc counts source-file line counts for the structural_weight metric. |
|
py
Package py implements the Python import extractor using grimp.
|
Package py implements the Python import extractor using grimp. |
|
scip
Package scip implements the ports.SymbolResolver port using SCIP indexers.
|
Package scip implements the ports.SymbolResolver port using SCIP indexers. |
|
ts
Package ts implements the TypeScript import extractor using dependency-cruiser.
|
Package ts implements the TypeScript import extractor using dependency-cruiser. |
|
Package facts assembles per-module structural facts from already-collected data (symbol graph, file LOC, co-change history, optional gitnexus impact).
|
Package facts assembles per-module structural facts from already-collected data (symbol graph, file LOC, co-change history, optional gitnexus impact). |
|
Package fitness detects architecture-intent ENFORCEMENT signals in a repository.
|
Package fitness detects architecture-intent ENFORCEMENT signals in a repository. |
|
history
|
|
|
git
Package git provides functions for reading git history: changed files between refs, the HEAD ref, repo root, and a churn stats stub.
|
Package git provides functions for reading git history: changed files between refs, the HEAD ref, repo root, and a churn stats stub. |
|
Package initcfg discovers project structure and renders a starter .archfit.yaml.
|
Package initcfg discovers project structure and renders a starter .archfit.yaml. |
|
Package labels loads and validates pinned coupling-strength labels — the human-reviewed output of `archfit enrich`.
|
Package labels loads and validates pinned coupling-strength labels — the human-reviewed output of `archfit enrich`. |
|
Package llm is the thin off-gate LLM provider layer for archfit's enrich and explain commands.
|
Package llm is the thin off-gate LLM provider layer for archfit's enrich and explain commands. |
|
Package metrics defines the Metric interface, the generic Calculator[In] adapter, and the New() registry.
|
Package metrics defines the Metric interface, the generic Calculator[In] adapter, and the New() registry. |
|
boundary
Package boundary implements the five boundary-health metrics: encapsulation, unbalanced_edge, cycle, coverage, and change_locality.
|
Package boundary implements the five boundary-health metrics: encapsulation, unbalanced_edge, cycle, coverage, and change_locality. |
|
internal/modgraph
Package modgraph provides the shared module-level graph and history helpers used by the modularity metrics: collapsing nodes/files to module units, aggregating churn, and computing SCC-condensed blast radius.
|
Package modgraph provides the shared module-level graph and history helpers used by the modularity metrics: collapsing nodes/files to module units, aggregating churn, and computing SCC-condensed blast radius. |
|
internal/result
Package result provides shared scoring helpers for the metrics layer: band names, confidence constants, mode constants, and the utility functions that map scores to bands, apply confidence caps, compute deltas, and build indeterminate (n/a) count results.
|
Package result provides shared scoring helpers for the metrics layer: band names, confidence constants, mode constants, and the utility functions that map scores to bands, apply confidence caps, compute deltas, and build indeterminate (n/a) count results. |
|
intramodule
Package intramodule holds the intra-module quality metrics — signals about the internals of a module (function complexity, architecture-enforcement presence) rather than its coupling to other modules.
|
Package intramodule holds the intra-module quality metrics — signals about the internals of a module (function complexity, architecture-enforcement presence) rather than its coupling to other modules. |
|
metricstest
Package metricstest provides shared test helpers for metric family packages.
|
Package metricstest provides shared test helpers for metric family packages. |
|
modularity
Package modularity implements the modularity metrics (blast_radius, change_amplification, hidden_coupling, structural_weight) and the functional_candidates metric.
|
Package modularity implements the modularity metrics (blast_radius, change_amplification, hidden_coupling, structural_weight) and the functional_candidates metric. |
|
risk
Package risk implements the risk_hub architecture metric, which surfaces modules whose cross-module symbol-surface breadth and explicit config volatility identify the highest-risk coupling hubs.
|
Package risk implements the risk_hub architecture metric, which surfaces modules whose cross-module symbol-surface breadth and explicit config volatility identify the highest-risk coupling hubs. |
|
model
|
|
|
clone
Package clone holds the neutral value types for clone-detection results so that core-ring packages (e.g.
|
Package clone holds the neutral value types for clone-detection results so that core-ring packages (e.g. |
|
coupling
Package coupling defines the Balanced Coupling classification types: Strength, Distance, Volatility, Explicitness, and the Classification index.
|
Package coupling defines the Balanced Coupling classification types: Strength, Distance, Volatility, Explicitness, and the Classification index. |
|
diagnostic
Package diagnostic defines the top-level output contract: Diagnostic, MetricResult, Verdict, and the supporting summary and coverage types.
|
Package diagnostic defines the top-level output contract: Diagnostic, MetricResult, Verdict, and the supporting summary and coverage types. |
|
finding
Package finding defines the Finding type and its sealed constructor.
|
Package finding defines the Finding type and its sealed constructor. |
|
graph
Package graph defines the sealed graph types: Node, Edge, and the Build constructor that deduplicates, sorts, and freezes extractor output into a deterministic, immutable Graph.
|
Package graph defines the sealed graph types: Node, Edge, and the Build constructor that deduplicates, sorts, and freezes extractor output into a deterministic, immutable Graph. |
|
pattern
Package pattern defines the shared structural match result type produced by pattern-search ports (PatternProvider) and consumed by rules as evidence.
|
Package pattern defines the shared structural match result type produced by pattern-search ports (PatternProvider) and consumed by rules as evidence. |
|
signal
Package signal defines the carrier types that flow between signal producers (fitness scanner, git history, complexity tool) and the metrics layer: the per-family metric inputs (CommonInput, HistoryInput, SymbolInput, SizeInput, ComplexityInput, FitnessInput, DuplicationInput), the CollectedSignals bag the engine assembles and projects per family, and the RunSignals bundle the cmd layer produces.
|
Package signal defines the carrier types that flow between signal producers (fitness scanner, git history, complexity tool) and the metrics layer: the per-family metric inputs (CommonInput, HistoryInput, SymbolInput, SizeInput, ComplexityInput, FitnessInput, DuplicationInput), the CollectedSignals bag the engine assembles and projects per family, and the RunSignals bundle the cmd layer produces. |
|
symbol
Package symbol defines the domain type for per-symbol metadata extracted from a SCIP (or equivalent) index.
|
Package symbol defines the domain type for per-symbol metadata extracted from a SCIP (or equivalent) index. |
|
output
|
|
|
console
Package console renders a Diagnostic as clean, LLM-friendly plain text: labelled sections of aligned key/value lines, no box-drawing tables.
|
Package console renders a Diagnostic as clean, LLM-friendly plain text: labelled sections of aligned key/value lines, no box-drawing tables. |
|
jsonout
Package jsonout implements the JSON renderer for diagnostic output.
|
Package jsonout implements the JSON renderer for diagnostic output. |
|
markdown
Package markdown renders a Diagnostic as clean, LLM-friendly Markdown: `##` sections and `-` lists, no box-drawing tables (which do not align in raw text).
|
Package markdown renders a Diagnostic as clean, LLM-friendly Markdown: `##` sections and `-` lists, no box-drawing tables (which do not align in raw text). |
|
sarif
Package sarif renders a Diagnostic as a SARIF 2.1.0 log (spec §12) so CI systems (GitHub code scanning et al.) can surface findings inline on PRs — the agent/CI half of the feedback loop.
|
Package sarif renders a Diagnostic as a SARIF 2.1.0 log (spec §12) so CI systems (GitHub code scanning et al.) can surface findings inline on PRs — the agent/CI half of the feedback loop. |
|
Package ownership resolves module owners from CODEOWNERS files or git-author history, producing a module→owner map that fills gaps in config-authored ownership metadata.
|
Package ownership resolves module owners from CODEOWNERS files or git-author history, producing a module→owner map that fills gaps in config-authored ownership metadata. |
|
Package ports defines the hexagonal port interfaces that separate the engine orchestrator from its adapters.
|
Package ports defines the hexagonal port interfaces that separate the engine orchestrator from its adapters. |
|
Package rules defines the Rule interface and the built-in rule implementations: forbidden_dependency, public_api_only, forbidden_layer_direction, internal_api_access, new_cross_module_dependency, and cycle.
|
Package rules defines the Rule interface and the built-in rule implementations: forbidden_dependency, public_api_only, forbidden_layer_direction, internal_api_access, new_cross_module_dependency, and cycle. |
|
Package scope resolves the analysis scope: the repo root, changed files (delta mode), and the mode (full vs delta) for a run.
|
Package scope resolves the analysis scope: the repo root, changed files (delta mode), and the mode (full vs delta) for a run. |
|
Package staleness detects map-quality advisory findings: uncovered paths, dead module rules, and stale reviewed_at timestamps.
|
Package staleness detects map-quality advisory findings: uncovered paths, dead module rules, and stale reviewed_at timestamps. |
|
Package status assigns status labels (new, baseline, excepted, expired_exception, fixed) to findings by comparing against a baseline and exception set.
|
Package status assigns status labels (new, baseline, excepted, expired_exception, fixed) to findings by comparing against a baseline and exception set. |
|
Package toolrun defines the Runner interface and its concrete implementation.
|
Package toolrun defines the Runner interface and its concrete implementation. |
Click to show internal directories.
Click to hide internal directories.