Printable idea sheet
algorithm
reqlan rq/core_analysis/rope.rq:147
Katz 0.036
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.
- status
- done
- tests
- rope.rs, rope.test.ts, rope.test.ts
Interactive page: algorithm