openclaw - 💡(How to fix) Fix NC criminal court pilot: connect to Grey Matter and run verifiable prediction benchmark [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#55392Fetched 2026-04-08 01:40:03
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
1
Author
Participants
Timeline (top)
mentioned ×3subscribed ×3commented ×1

The NC criminal court pilot (nc-criminal-court-pilot/) already exists with a 7,475-node knowledge graph. Connect it to Grey Matter and run the prediction benchmark.

Root Cause

  • First non-sports verifiable benchmark
  • Validates 'pre-computed weights as interface' architectural pattern
  • Legal contradiction detection use case demo
  • Paul Dryden adapter case #1 once brain-to-brain interface is defined
RAW_BUFFERClick to expand / collapse

Summary

The NC criminal court pilot (nc-criminal-court-pilot/) already exists with a 7,475-node knowledge graph. Connect it to Grey Matter and run the prediction benchmark.

What exists

  • knowledge_graph.json — 7,475 nodes (statute/case/concept), 15,205 typed edges
  • citation_graph.json, nc_criminal_opinions.json
  • ~20 actual opinion PDFs (2013–2018)
  • collect_opinions.py — CourtListener ingestion script
  • prediction_test.py — prediction test harness (partially built)

Work

  1. Translate knowledge_graph.json schema → Grey Matter engram headers + edges
  2. Ingest into Grey Matter brain
  3. Define verifiable benchmark: given case facts/statutes, predict ruling. Ground truth = published decisions.
  4. Run prediction_test.py against GM brain
  5. Compare to keyword/string matching baseline

Why this matters

  • First non-sports verifiable benchmark
  • Validates 'pre-computed weights as interface' architectural pattern
  • Legal contradiction detection use case demo
  • Paul Dryden adapter case #1 once brain-to-brain interface is defined

extent analysis

Fix Plan

To connect the NC criminal court pilot to Grey Matter and run the prediction benchmark, we need to perform the following steps:

  • Translate the knowledge graph schema to Grey Matter engram headers and edges
  • Ingest the data into Grey Matter brain
  • Define and run a verifiable benchmark

Step-by-Step Solution

  1. Translate knowledge graph schema:
    • Use a Python script to read knowledge_graph.json and create Grey Matter engram headers and edges.
    • Example code:

import json

with open('knowledge_graph.json') as f: knowledge_graph = json.load(f)

engram_headers = [] engram_edges = []

for node in knowledge_graph['nodes']: engram_headers.append({ 'id': node['id'], 'type': node['type'] })

for edge in knowledge_graph['edges']: engram_edges.append({ 'source': edge['source'], 'target': edge['target'], 'type': edge['type'] })

2. **Ingest data into Grey Matter brain**:
   * Use the Grey Matter API to create a new brain and add the translated engram headers and edges.
   * Example code:
     ```python
import requests

brain_id = 'nc-criminal-court-pilot'
response = requests.post(f'https://grey-matter.com/brains/{brain_id}/engrams', json={'headers': engram_headers, 'edges': engram_edges})
  1. Define and run verifiable benchmark:
    • Create a test harness using prediction_test.py to predict rulings based on case facts and statutes.
    • Compare the results to a keyword/string matching baseline.

Verification

  • Verify that the data has been successfully ingested into Grey Matter brain by checking the brain's engram headers and edges.
  • Run the prediction benchmark and compare the results to the ground truth (published decisions).

Extra Tips

  • Ensure that the knowledge graph schema is correctly translated to Grey Matter engram headers and edges.
  • Use a robust testing framework to verify the accuracy of the prediction benchmark.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING