Files
future-map-OPEN/docs/insights-hub-integration.md
T

90 lines
5.3 KiB
Markdown
Raw Normal View History

2026-08-12 13:28:40 -06:00
# Future Map Insights Hub Integration
## Purpose
The Insights Hub adds a continuously refreshed signal layer to the curated Future Map repository. It republishes every Personal Organization JSON record whose `HubTags` array contains the exact value `Future Map`, copies associated local media, and generates a reverse-chronological Markdown digest for easy browsing.
## Implemented Architecture
```text
Personal Organization JSON database
├── hrecords/*.json
└── files/*
│
▼ exact tag membership: Future Map
scripts/future-map-insights-hub/
│
▼ daily local refresh
data/insights-hub/
├── hrecords/*.json structured record copies
├── files/* associated local media
├── future-map-insights.md human browsing layer
└── README.md source and maintenance guidance
```
The stable digest path is listed once in `content-index.json`. The repository manifest declares `data/insights-hub/` as a generated data collection. Individual JSON files are not duplicated into the repository-wide content index because hundreds of records would make that index cumbersome and noisy.
## Content Roles
| Layer | Role | Authority |
| --- | --- | --- |
| `core-docs/` | Curated, durable Future Map documents and presentations | Authoritative published documents |
| Personal Organization database | Live Insights Hub record source | Authoritative source records |
| `data/insights-hub/hrecords/` | Public structured snapshots | Generated copies |
| `data/insights-hub/files/` | Media needed to preserve record context | Generated copies |
| `data/insights-hub/future-map-insights.md` | Easy human browsing and inline images | Generated derivative view |
| `content-index.json` | Stable collection discovery | Repository-level discovery metadata |
## Daily Operation
The Windows scheduled task `FutureMap-InsightsHub-Daily` runs the local publisher every day at 6:00 AM in the machine’s local timezone. It writes a dated log under the ignored `logs/` directory.
The task does not run Git commands. Generated changes remain local until reviewed, committed, and pushed through the normal repository workflow.
Each run also prunes only stale generated JSON and media copies, keeping the publication aligned with the current exact-tag selection. The source database remains authoritative, so those generated copies can be recreated.
The initial full build contains 986 JSON records, 535 unique copied media files, and a 986-entry Markdown digest. The generated collection is approximately 168 MB. A single page with hundreds of inline images may render slowly in Gitea even though it remains convenient as one complete archive.
## Recommended Integration Policy
Use the generated Insights Hub as the high-volume signal and memory layer. Keep `core-docs` selective and editorial. Promote an insight into a core document only through deliberate human review when it becomes a durable framework, thesis, prediction, strategy, or synthesis.
This separation keeps the repository useful in two different modes:
- browse recent and historical signals in the generated digest;
- retrieve stable, deeply developed thinking from curated core documents.
## Next Integration Options
### 1. Generated collection manifest — recommended next
Add a deterministic `data/insights-hub/manifest.json` containing the source tag, record count, media count, latest source date, and generation timestamp. This would let AI agents and repository tooling assess freshness without parsing the full digest.
### 2. Year and month browsing views — recommended for usability
Generate smaller yearly or monthly Markdown digests while retaining the stable all-record digest. This would make Gitea browsing faster and reduce the number of images loaded on one page.
### 3. Topic and relationship rollups
Generate compact indexes by secondary Hub tag, year, source type, or referenced core document. This would improve retrieval without adding every hrecord to the root `content-index.json`.
### 4. Curated promotion workflow
Add a reviewed process for promoting selected records into an existing core document, a new synthesis, or an `UPDATES.md` proposal. Promotion should preserve the source Hub ID and JSON path for provenance.
### 5. Core-document relationship map
Maintain a small reviewed mapping from stable core-document IDs to relevant Hub IDs. Avoid fully automatic semantic linking until its quality can be measured and incorrect relationships can be reviewed efficiently.
### 6. Reviewed publication automation
If unattended Gitea publication is later desired, add a separate workflow that creates a dated branch and proposed commit only when generated outputs change. Automatic direct pushes to `main` are not recommended because source records or media may need privacy, licensing, and quality review.
## Guardrails
- Match the exact `Future Map` tag; do not infer inclusion from free text.
- Do not hand-edit generated records, media, or digest content; synchronization may replace or remove those generated copies.
- Do not treat the digest as more authoritative than its source JSON.
- Do not automatically promote every insight into `core-docs`.
- Review privacy, copyright, and document-specific licensing before pushing generated changes publicly.
- Keep local logs, credentials, and Google Drive runtime state out of Git.