Idea detail
rope-output
reqlan rq/core_analysis/rope.rq:93
Summary
rope returns the click_output shape ( `ClickResult`, camelCase JSON; optional fields are omitted, never null ).
Always: `sessionKey` and `candidates` ( empty array when nothing qualifies ).
`kind` is `rope`, `ambiguous`, `search`, or `none` ( never click ' s `unique` / `revisit` ).
`rope`: `target` is the centre — idea centres carry `name`, `id` ( `<file>#<name>` ), `fileUri`, `lineStart`, body `content`, and optional `status`; file centres carry `id` ( `file:<uri>` ), `name` ( basename ), `fileUri`, `lineStart` 0, no content. `candidates` are the chain: ordered by hop distance ascending, then cardinality descending within a hop, each row `{name, id, kind, fileUri, summary, score, hops}` where `summary` is the idea ' s context text ( absent for file rows ), `score` is normalised cardinality ( top = 1, threshold 0. 5, cap 24 ), and `hops` is BFS distance ( a file centre seeds its referencing ideas at hop 1 ); session-surfaced ideas are dropped.
`ambiguous`: no `target`; `candidates` ranked by click-session hop distance — `hops` 0 means already surfaced in the session, absent means unconnected; `score` = `1 / (1 + hops)`, `1/9` when unknown.
`search`: no `target`; fuzzy `candidates` with raw fuzzy `score` and no `hops`.
`none`: empty `candidates`, no `target`.
Rope-kind candidate rows also carry `via`: the id of the idea the row hangs from ( BFS parent; the centre id at hop 1, `file:<uri>` under a file centre ). Other kinds omit `via`.
Rope never emits click ' s `outbound`, `backlinks`, `commentRefs`, `siblings`, or `connected`.
CLI text output renders the chain and colours it when stdout is a terminal: bold centre, cyan idea names, dim hops and scores; JSON and MCP output stay plain.
Navigation
Attributes
| Key | Value |
|---|---|
| status | done |
| tests | rope.rs, rope.rs:rope_chain_orders_hops_then_cardinality, rope.test.ts, rope.test.ts:formatClickResult colours the rope chain, rope.test.ts:rope command emits kind rope with frayed candidates, rope.test.ts:rope text output prints the chain with context, server.test.ts:rope forwards target, session, fray, and tuning |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | rope-graph | reqlan rq/core_analysis/rope.rq | rope-output |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…