Architecture Seams (what to refactor)
hokmah_seamsArchitecture seams of an imported repository: a DISTINCT axis from risk — not "where is
the code fragile?" but "where does the code fight its own structure?". A seam is a source of
truth split across module boundaries: files in different packages that keep being edited
together over the history (e.g. the same list enumerated in two packages). Read from the
co-change history alone, scored by near-inseparability (jaccard) with a hub penalty, so
wanted shared contracts (api-types/dto/schema...) are listed apart, never counted as debt.
Each seam carries its evidence (shared identifiers, co-commits, span) and a confidence; the
tool proposes, it does not decide — a seam is not a bug and never appears in the risk axis.
scope = actionable (default) | all | expected; min_jaccard filters weaker seams; zone
(path prefix or words) narrows to seams touching that zone. Backed by a retrospective bench
(backtest_coupling): on the reference repo a flagged seam predicts future co-change with a
lift of several times over a random previously-coupled pair.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_url": "<repo_url>"
},
"name": "hokmah_seams"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | ||
| limit | No | ||
| scope | No | actionable | |
| repo_url | Yes | ||
| min_jaccard | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||