coherra_onboard
Import JSON data from external tools into memory, then audit for duplicates, stale facts, and contradictions, auto-repairing safe issues and flagging conflicts for review.
Instructions
Import JSON data from another tool into Coherra.
Runs the full onboarding pipeline:
Parse the JSON into individual records
Categorize each record (category, name, confidence)
Write to Sibyl Memory using the Coherra schema
Audit for contradictions, duplicates, staleness
Auto-repair safe issues (duplicates + stale)
Flag contradictions for manual review
Args: import_data: A dict or list representing the JSON export. Accepts flat dicts, nested dicts, lists of dicts (with key/value fields), or lists of strings.
Returns: { "ok": True, "imported": N, # records written "auto_cleaned": X, # safe issues fixed "flagged_for_review": Y, # contradictions needing manual fix }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| import_data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||