Code reference detail
rope.test.ts
reqlan rq/core_analysis/packages/analytical/test/rope.test.ts
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| rope | done | Rope is the command / function used for [roping], It is used in the [analysers] and the [cli] / [mcp]. Surface: CLI `reqlan rope <target> [--fray <n>] [--tuning <mode>] [--graph]`, MCP tool `rope`, and AnalysisApi `rope`. Default `fray` is dynamic ( see [dynamic-rope-tuning] ); `--fray <n>` overrides it. Returns the chain of ideas around the target with each idea ' s context, respecting click session deduplication ( [click-store-context-optimisation] ). Ambiguous targets return ranked matches; no match falls through to search. The target may be `@root` ( [rope-graph] ). Implemented by ["../../crates/reqlan-analytical/src/rope.rs"], `rope` in ["../../crates/reqlan-analytical/src/api.rs"], `rope` in ["../../crates/reqlan-napi/src/analysis.rs"], `rope` in ["../../packages/analytical/src/native/native-analysis-api.ts"], ["../../packages/cli/src/commands/rope.ts"], and `handleRopeTool` in ["../../packages/mcp/src/server.ts"]. | 0.065 | |
| rope-idea-cardinality | done | rope [idea] cardinality is defined by a combination of the file position ( i. e. depth ), the number of ideas linked one directionally to the [idea] lower on the same branch, and the idea ' s position in a page, the idea ' s references, and the idea ' s [katz_centrality]. Many cardinality signals may be combined. Formula: `cardinality = depth_weight * depth + branch_factor * direction_links + position_weight * page_position + reference_weight * inbound_refs + katz_weight * katz_centrality` Depth is the hop distance to the rope centre ( farther means lower ), `depth_gap = max_hops - hops`. Implemented as fixed constants in `cardinality_raw` in ["../../crates/reqlan-analytical/src/rope.rs"]; default: depth_weight = 0. 3, branch_factor = 1. 5, position_weight = 0. 2, reference_weight = 0. 2, katz_weight = 0. 3. | 0.047 | |
| rope-tuning | done | Depending on model, or harness, or user input, the [fray] can be adjusted. Tuning modes: `default`, `focused`, `exploratory`, `deep`. Effective fray per [dynamic-rope-tuning] base: `default` = base, `focused` = 1, `exploratory` = ceil ( base * 1. 5 ), `deep` = base * 2, always clamped to the [fray] cap. User input `--tuning <mode>` adjusts the fray accordingly; unknown modes are an error. | 0.056 |
Reference labels
rope, rope-idea-cardinality, rope-tuning