Files
future-map-OPEN/docs/insights-hub-integration.md
T
2026-08-12 16:41:20 -06:00

71 lines
4.3 KiB
Markdown

# Future Map Insights Hub Integration
## Purpose
The Insights Hub is the high-volume signal and evidence layer beneath curated `core-docs/`. Its contained six-stage workflow converts private exact-tag records into structured public signals that AI can retrieve, parse, compare, and relate to the Future Map corpus.
## Architecture
```text
Private source database (authoritative source facts)
|
v
data/insights-hub/
1. ingest deterministic exact-tag selection
2. sanitize normalize source fields, notes, links, and privacy-sensitive data
3. enrich AI reasoning against content-index.json and relevant core-docs
4. validate schemas, invariants, links, media, and source/reasoning separation
5. review pending, stale, failed, warnings, contradictions, and proposals
6. publish derivative JSON, connected files, indexes, manifest, and Markdown
```
All workflow-specific scripts, skills, schemas, configuration, evaluations, tests, templates, review state, and generated outputs live under `data/insights-hub/`. The repository-wide structural audit remains under root `scripts/` because it serves the whole repository.
## Content Roles
| Layer | Role | Authority |
| --- | --- | --- |
| `core-docs/` | Curated Future Map frameworks, theses, predictions, and plans | Authoritative published documents |
| Private Personal Organization database | Original Insights Hub source fields and connected files | Authoritative source facts |
| `data/insights-hub/hrecords/` | Sanitized, source/reasoning-separated public signals | Generated derivatives |
| `data/insights-hub/files/` | Connected publication files | Generated copies |
| `data/insights-hub/signal-index.jsonl` | Compact record-level AI retrieval | Generated discovery index |
| `data/insights-hub/future-map-insights.md` | Human browsing | Generated view |
| `data/insights-hub/review/pending.jsonl` | Pending, stale, failed, and warning-bearing work | Generated review queue |
## Deterministic And Reasoned Fields
Deterministic preparation preserves the source record ID, original title and summary, normalized notes, dates, tags, company references, link and media relationships, hashes, and any explicit source or rights metadata. It excludes raw contact identifiers while recording their count.
AI enrichment creates analysis, implications, claims, classification, confidence, novelty, and relationships to core documents. The AI must read the complete signal, the repository content index, and relevant complete core documents. It may not overwrite source-derived fields or invent provenance.
Completed reasoning remains intact when source and media fingerprints are unchanged. A source or connected-file change marks completed reasoning `stale` and returns it to review.
## Publication Policy
The repository owner has explicitly chosen `publish-with-attribution` for connected files even when redistribution rights are unknown or absent. The workflow records that decision without claiming permission. Rights uncertainty does not block copying; security, privacy, confidentiality, malware, and explicit do-not-publish findings do.
## Daily Operation
The Windows task `FutureMap-InsightsHub-Daily` runs `data/insights-hub/scripts/run_daily.ps1` every day at 6:00 AM local time. It performs deterministic preparation and writes ignored logs under `data/insights-hub/runtime/logs/`.
The daily task does not invoke AI, edit core documents, stage, commit, push, or publish externally. AI enrichment is a separate bounded use of `data/insights-hub/skills/process-future-map-insights/SKILL.md`.
## Core-Document Integration
Signals link to core documents through explicit reasoned relationships: `supports`, `challenges`, `updates`, `illustrates`, `early-warning`, `contradicts`, or `supersedes`. Generated relationships begin as machine proposals. Promotion into a core document remains a separate human-reviewed action.
This keeps the evidence layer broad while preserving the editorial authority and coherence of `core-docs/`.
## Validation
Run:
```text
python -m unittest discover -s data/insights-hub/tests -v
python data/insights-hub/scripts/future_map_pipeline.py validate
python scripts/audit_repository.py . --profile documentation-guide
```
Also validate the local skill with the available skill validator, confirm all indexed paths exist, and verify Markdown image references.