Idea detail
algorithm
reqlan rq/core_analysis/rope.rq:147
Summary
rope shall, in this order:
1. Resolve target: idea name, `path#idea`, file basename, or indexed code file.
More than one match returns cardinality-free candidates ranked by click session context; none falls through to search.
2. Determine base fray: user input `--fray` when given, else the dynamic-rope-tuning base.
3. Apply rope-tuning to reach the effective fray, clamped to the fray cap.
4. Perform breadth-first search from the target up to effective-fray hops over content edges
( ideaset membership, imports, and comment links are excluded; a file centre starts one hop out on ideas that reference it ).
5. Score each neighbour with rope-idea-cardinality; normalise to the top candidate and drop ideas below a 0. 5 ratio.
6. Deduplicate using the click session store: skip ideas already surfaced in the session ( click-store-context-optimisation ).
7. Order the chain: hop distance ascending, then cardinality descending within a hop, then by name.
8. Return compact context: the centre target plus candidate rows ( names, ids, file URIs, scores, hops ).
9. Track the centre and listed ideas in the click session store.
Navigation
Attributes
| Key | Value |
|---|---|
| status | done |
| tests | rope.rs, rope.test.ts, rope.test.ts |
Ancestor context
No ancestor chain recorded.
Outbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | rope | reqlan rq/core_analysis/rope.rq | rope |
| references | click | reqlan rq/cli/click.rq | click |
| references | fray | reqlan rq/core_analysis/rope.rq | fray |
| references | dynamic-rope-tuning | reqlan rq/core_analysis/rope.rq | dynamic-rope-tuning |
| references | rope-tuning | reqlan rq/core_analysis/rope.rq | rope-tuning |
| references | rope-idea-cardinality | reqlan rq/core_analysis/rope.rq | rope-idea-cardinality |
| references | click-store-context-optimisation | reqlan rq/core_analysis/rope.rq | click-store-context-optimisation |
| file_reference | "../../crates/reqlan-analytical/tests/rope.rs" | crates/reqlan-analytical/tests/rope.rs | rope.rs |
| file_reference | "../../packages/analytical/test/rope.test.ts" | packages/analytical/test/rope.test.ts | rope.test.ts |
| file_reference | "../../packages/cli/test/rope.test.ts" | packages/cli/test/rope.test.ts | rope.test.ts |
| comment_link | algorithm | reqlan rq/core_analysis/crates/reqlan-analytical/src/rope.rs | /// rq:algorithm |
| comment_link | algorithm | reqlan rq/core_analysis/crates/reqlan-analytical/tests/rope.rs | //! rq:algorithm |
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…