consciousness/src
ProofOfConcept fa7fe8c14b query: rich QueryResult + toolkit cleanup
QueryResult carries a fields map (BTreeMap<String, Value>) so callers
don't re-resolve fields after queries run. Neighbors queries inject
edge context (strength, rel_type) at construction time.

New public API:
- run_query(): parse + execute + format in one call
- format_value(): format a Value for display
- execute_parsed(): internal, avoids double-parse in run_query

Removed: output_stages(), format_field()

Simplified commands:
- cmd_query, cmd_graph, cmd_link, cmd_list_keys all delegate to run_query
- cmd_experience_mine uses existing find_current_transcript()

Deduplication:
- now_epoch() 3 copies → 1 (capnp_store's public fn)
- hub_threshold → Graph::hub_threshold() method
- eval_node + eval_edge → single eval() with closure for field resolution
- compare() collapsed via Ordering (35 → 15 lines)

Modernization:
- 12 sites of partial_cmp().unwrap_or(Ordering::Equal) → total_cmp()
2026-03-03 12:07:04 -05:00
..
bin spectral decomposition, search improvements, char boundary fix 2026-03-03 01:33:31 -05:00
capnp_store.rs store: filter deleted relations from graph building and snapshots 2026-03-03 10:55:56 -05:00
digest.rs link-audit: parallelize Sonnet calls with rayon 2026-03-03 10:56:00 -05:00
graph.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
main.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
migrate.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
neuro.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
query.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
search.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
similarity.rs query: rich QueryResult + toolkit cleanup 2026-03-03 12:07:04 -05:00
spectral.rs spectral decomposition, search improvements, char boundary fix 2026-03-03 01:33:31 -05:00